diff --git a/package-lock.json b/package-lock.json index f96788dfa..30adb4234 100644 --- a/package-lock.json +++ b/package-lock.json @@ -968,9 +968,9 @@ "optional": true }, "aws4": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz", + "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==", "dev": true, "optional": true }, @@ -7838,9 +7838,9 @@ } }, "less": { - "version": "3.10.3", - "resolved": "https://registry.npmjs.org/less/-/less-3.10.3.tgz", - "integrity": "sha512-vz32vqfgmoxF1h3K4J+yKCtajH0PWmjkIFgbs5d78E/c/e+UQTnI+lWK+1eQRE95PXM2mC3rJlLSSP9VQHnaow==", + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/less/-/less-3.11.0.tgz", + "integrity": "sha512-dAui5qzfxuWY7BIEt9/gy5EbDhwDb44rqaIUFYeu8wEE8huMZ/PzB+gNFONEG5DUPrOrOGcAjGeYVg6AFiA9KQ==", "dev": true, "requires": { "clone": "^2.1.2", @@ -13487,9 +13487,9 @@ "dev": true }, "psl": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", - "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.7.0.tgz", + "integrity": "sha512-5NsSEDv8zY70ScRnOTn7bK7eanl2MvFrOrS/R6x+dBt5g1ghnj9Zv90kO8GwT8gxcu2ANyFprnFYB85IogIJOQ==", "dev": true, "optional": true }, diff --git a/package.json b/package.json index 99d6f874d..1f92d8896 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "karma-mocha": "^1.3.0", "karma-sourcemap-loader": "^0.3.7", "karma-webpack": "^4.0.2", - "less": "^3.10.3", + "less": "^3.11.0", "less-loader": "^4.1.0", "lint-staged": "^8.2.1", "merge-stream": "^2.0.0", diff --git a/src/modules/helpers/JoditArray.ts b/src/modules/helpers/JoditArray.ts index 51514ccdf..99cb898e9 100644 --- a/src/modules/helpers/JoditArray.ts +++ b/src/modules/helpers/JoditArray.ts @@ -7,8 +7,9 @@ import { extend } from './extend'; export class JoditArray { - public length: number = 0; - public toString() { + length: number = 0; + + toString() { const out = []; for (let i = 0; i < this.length; i += 1) { @@ -17,6 +18,7 @@ export class JoditArray { return out.toString(); } + constructor(data: any[]) { extend(true, this, data); this.length = data.length; diff --git a/src/plugins/source/editor/engines/custom.ts b/src/plugins/source/editor/engines/custom.ts index e33891457..44a06ab60 100644 --- a/src/plugins/source/editor/engines/custom.ts +++ b/src/plugins/source/editor/engines/custom.ts @@ -4,13 +4,13 @@ * Copyright (c) 2013-2020 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ -import { IJodit, ISourceEditor } from '../../../../types'; +import { ISourceEditor } from '../../../../types'; import { SourceEditor } from '../SourceEditor'; export class CustomEditor extends SourceEditor implements ISourceEditor { - init(editor: IJodit): any { + init(): any { this.onReady(); } diff --git a/tsconfig.json b/tsconfig.json index 7c16e01da..5659b9d04 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,26 +3,31 @@ "target": "es5", "moduleResolution": "node", + "resolveJsonModule": true, + "allowJs": true, + "removeComments": true, + "strict": true, "strictNullChecks": true, "strictFunctionTypes": true, "strictBindCallApply": true, - - "forceConsistentCasingInFileNames": true, "strictPropertyInitialization": true, - "sourceMap": true, - "noImplicitAny": true, "noImplicitReturns": true, "noUnusedLocals": true, + "noUnusedParameters": false, "noImplicitThis": true, - "importHelpers": true, + "forceConsistentCasingInFileNames": true, + + "sourceMap": true, + "importHelpers": true, + "typeRoots": ["./node_modules/@types"], "lib": ["es5", "esnext", "dom", "scripthost"] }, - + "include": ["./src/**/*.ts", "./test/**/*.ts", "./types/**/*.d.ts"], "exclude": ["node_modules", "build"] }