javascript-obfuscator
Advanced tools
Comparing version
@@ -332,4 +332,17 @@ module.exports = { | ||
"unicorn/no-unreadable-array-destructuring": "error", | ||
"unicorn/numeric-separators-style": [ | ||
"error", | ||
{ | ||
number: { | ||
minimumDigits: 7, | ||
groupLength: 3 | ||
} | ||
} | ||
], | ||
"unicorn/prefer-array-find": "error", | ||
"unicorn/prefer-includes": "error", | ||
"unicorn/prefer-optional-catch-binding": "error", | ||
"unicorn/prefer-starts-ends-with": "error", | ||
"unicorn/prefer-set-has": "error", | ||
"unicorn/prefer-string-slice": "error", | ||
"unicorn/prefer-trim-start-end": "error", | ||
@@ -336,0 +349,0 @@ "use-isnan": "error", |
Change Log | ||
v2.6.2 | ||
--- | ||
* Fixed installation in `PowerShell`. Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/783 | ||
* Tested under `Node.js@15` | ||
v2.6.1 | ||
@@ -4,0 +9,0 @@ --- |
{ | ||
"name": "javascript-obfuscator", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "JavaScript obfuscator", | ||
@@ -57,7 +57,7 @@ "keywords": [ | ||
"@types/js-string-escape": "1.0.0", | ||
"@types/md5": "2.2.0", | ||
"@types/md5": "2.2.1", | ||
"@types/mkdirp": "1.0.1", | ||
"@types/mocha": "8.0.3", | ||
"@types/multimatch": "4.0.0", | ||
"@types/node": "14.11.10", | ||
"@types/node": "14.14.2", | ||
"@types/rimraf": "3.0.0", | ||
@@ -67,4 +67,4 @@ "@types/sinon": "9.0.8", | ||
"@types/webpack-env": "1.15.3", | ||
"@typescript-eslint/eslint-plugin": "4.4.1", | ||
"@typescript-eslint/parser": "4.4.1", | ||
"@typescript-eslint/eslint-plugin": "4.5.0", | ||
"@typescript-eslint/parser": "4.5.0", | ||
"chai": "4.2.0", | ||
@@ -74,11 +74,11 @@ "chai-exclude": "2.0.2", | ||
"cross-env": "7.0.2", | ||
"eslint": "7.11.0", | ||
"eslint": "7.12.0", | ||
"eslint-plugin-import": "2.22.1", | ||
"eslint-plugin-jsdoc": "30.6.5", | ||
"eslint-plugin-jsdoc": "30.7.3", | ||
"eslint-plugin-no-null": "1.0.2", | ||
"eslint-plugin-prefer-arrow": "1.2.2", | ||
"eslint-plugin-unicorn": "22.0.0", | ||
"eslint-plugin-unicorn": "23.0.0", | ||
"fork-ts-checker-notifier-webpack-plugin": "3.0.0", | ||
"fork-ts-checker-webpack-plugin": "5.2.0", | ||
"mocha": "8.1.3", | ||
"mocha": "8.2.0", | ||
"nyc": "15.1.0", | ||
@@ -90,7 +90,7 @@ "pjson": "1.0.9", | ||
"threads": "1.6.3", | ||
"ts-loader": "8.0.5", | ||
"ts-loader": "8.0.6", | ||
"ts-node": "9.0.0", | ||
"typescript": "4.1.0-beta", | ||
"webpack": "5.1.3", | ||
"webpack-cli": "4.0.0", | ||
"webpack": "5.2.0", | ||
"webpack-cli": "4.1.0", | ||
"webpack-node-externals": "2.5.2" | ||
@@ -120,3 +120,3 @@ }, | ||
"git:addFiles": "git add .", | ||
"postinstall": "opencollective || exit 0" | ||
"postinstall": "opencollective" | ||
}, | ||
@@ -123,0 +123,0 @@ "pre-commit": [ |
@@ -109,3 +109,3 @@ import * as acorn from 'acorn'; | ||
const formattedCodeSlice: string = `...${ | ||
errorLine.substring(startErrorIndex, endErrorIndex).replace(/^\s+/, '') | ||
errorLine.slice(startErrorIndex, endErrorIndex).replace(/^\s+/, '') | ||
}...`; | ||
@@ -112,0 +112,0 @@ |
@@ -70,3 +70,3 @@ import { IInitializable } from '../interfaces/IInitializable'; | ||
const ownPropertyNames: string[] = Object.getOwnPropertyNames(target); | ||
const prohibitedPropertyNames: string[] = [initializeMethodName, constructorMethodName]; | ||
const prohibitedPropertyNames: Set<string> = new Set([initializeMethodName, constructorMethodName]); | ||
@@ -79,3 +79,3 @@ ownPropertyNames.forEach((propertyName: string) => { | ||
const isProhibitedPropertyName: boolean = prohibitedPropertyNames.includes(propertyName) | ||
const isProhibitedPropertyName: boolean = prohibitedPropertyNames.has(propertyName) | ||
|| initializablePropertiesSet.has(propertyName) | ||
@@ -82,0 +82,0 @@ || wrappedMethodsSet.has(propertyName); |
@@ -43,3 +43,3 @@ import { inject, injectable } from 'inversify'; | ||
+ prefixLength; | ||
const baseIdentifierName: string = hexadecimalNumber.substr(0, baseNameLength); | ||
const baseIdentifierName: string = hexadecimalNumber.slice(0, baseNameLength); | ||
const identifierName: string = `_${baseIdentifierName}`; | ||
@@ -46,0 +46,0 @@ |
@@ -213,3 +213,3 @@ import { inject, injectable } from 'inversify'; | ||
if (indexInSequence !== lastNameSequenceIndex) { | ||
const previousNamePart: string = name.substring(0, index); | ||
const previousNamePart: string = name.slice(0, index); | ||
const nextCharacter: string = nameSequence[indexInSequence + 1]; | ||
@@ -216,0 +216,0 @@ const zeroSequenceLength: number = nameLength - (index + 1); |
@@ -71,2 +71,3 @@ import { inject, injectable, } from 'inversify'; | ||
) { | ||
// eslint-disable-next-line unicorn/prefer-string-slice | ||
chunks[chunkIndex] = stringz.substr(string, nextChunkStartIndex, chunkSize); | ||
@@ -73,0 +74,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
11356434
0.01%35738
0.04%