mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Dependencies update 03.04.2021
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+12
-12
@@ -28,7 +28,7 @@
|
||||
"chalk": "4.1.0",
|
||||
"chance": "1.1.7",
|
||||
"class-validator": "0.13.1",
|
||||
"commander": "7.1.0",
|
||||
"commander": "7.2.0",
|
||||
"eslint-scope": "5.1.1",
|
||||
"estraverse": "5.2.0",
|
||||
"fast-deep-equal": "3.1.3",
|
||||
@@ -46,33 +46,33 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@istanbuljs/nyc-config-typescript": "1.0.1",
|
||||
"@types/chai": "4.2.15",
|
||||
"@types/chai": "4.2.16",
|
||||
"@types/chance": "1.1.1",
|
||||
"@types/escodegen": "0.0.6",
|
||||
"@types/eslint-scope": "3.7.0",
|
||||
"@types/estraverse": "5.1.0",
|
||||
"@types/estree": "0.0.45",
|
||||
"@types/estree": "0.0.47",
|
||||
"@types/js-string-escape": "1.0.0",
|
||||
"@types/md5": "2.3.0",
|
||||
"@types/mkdirp": "1.0.1",
|
||||
"@types/mocha": "8.2.2",
|
||||
"@types/multimatch": "4.0.0",
|
||||
"@types/node": "14.14.35",
|
||||
"@types/node": "14.14.37",
|
||||
"@types/rimraf": "3.0.0",
|
||||
"@types/sinon": "9.0.11",
|
||||
"@types/string-template": "1.0.2",
|
||||
"@types/webpack-env": "1.16.0",
|
||||
"@typescript-eslint/eslint-plugin": "4.18.0",
|
||||
"@typescript-eslint/parser": "4.18.0",
|
||||
"@typescript-eslint/eslint-plugin": "4.20.0",
|
||||
"@typescript-eslint/parser": "4.20.0",
|
||||
"chai": "4.3.4",
|
||||
"chai-exclude": "2.0.2",
|
||||
"cross-env": "7.0.3",
|
||||
"eslint": "7.22.0",
|
||||
"eslint": "7.23.0",
|
||||
"eslint-plugin-import": "2.22.1",
|
||||
"eslint-plugin-jsdoc": "32.3.0",
|
||||
"eslint-plugin-no-null": "1.0.2",
|
||||
"eslint-plugin-prefer-arrow": "1.2.3",
|
||||
"eslint-plugin-unicorn": "28.0.2",
|
||||
"eslint-plugin-unicorn": "29.0.0",
|
||||
"fork-ts-checker-notifier-webpack-plugin": "3.0.0",
|
||||
"fork-ts-checker-webpack-plugin": "6.2.0",
|
||||
"mocha": "8.3.2",
|
||||
@@ -80,13 +80,13 @@
|
||||
"pjson": "1.0.9",
|
||||
"pre-commit": "1.2.2",
|
||||
"rimraf": "3.0.2",
|
||||
"sinon": "9.2.4",
|
||||
"sinon": "10.0.0",
|
||||
"threads": "1.6.3",
|
||||
"ts-loader": "8.0.18",
|
||||
"ts-loader": "8.1.0",
|
||||
"ts-node": "9.1.1",
|
||||
"typescript": "4.2.3",
|
||||
"webpack": "5.27.0",
|
||||
"webpack-cli": "4.5.0",
|
||||
"webpack": "5.30.0",
|
||||
"webpack-cli": "4.6.0",
|
||||
"webpack-node-externals": "2.5.2"
|
||||
},
|
||||
"repository": {
|
||||
|
||||
Vendored
+5
@@ -39,6 +39,11 @@ declare module 'estree' {
|
||||
scope?: eslintScope.Scope | null;
|
||||
}
|
||||
|
||||
interface BigIntLiteral extends BaseNode {
|
||||
metadata?: LiteralNodeMetadata;
|
||||
'x-verbatim-property'?: escodegen.XVerbatimProperty;
|
||||
}
|
||||
|
||||
interface RegExpLiteral extends BaseNode {
|
||||
metadata?: LiteralNodeMetadata;
|
||||
'x-verbatim-property'?: escodegen.XVerbatimProperty;
|
||||
|
||||
@@ -27,9 +27,12 @@ export class NumberLiteralTransformer extends AbstractNodeTransformer {
|
||||
];
|
||||
|
||||
/**
|
||||
* @type {Map<string, string>}
|
||||
* @type {Map<ESTree.SimpleLiteral['value'] | ESTree.BigIntLiteral['value'], string>}
|
||||
*/
|
||||
private readonly numberLiteralCache: Map <number, string> = new Map();
|
||||
private readonly numberLiteralCache: Map <
|
||||
ESTree.SimpleLiteral['value'] | ESTree.BigIntLiteral['value'],
|
||||
string
|
||||
> = new Map();
|
||||
|
||||
/**
|
||||
* @param {IRandomGenerator} randomGenerator
|
||||
@@ -78,7 +81,7 @@ export class NumberLiteralTransformer extends AbstractNodeTransformer {
|
||||
return literalNode;
|
||||
}
|
||||
|
||||
const literalValue: ESTree.SimpleLiteral['value'] = literalNode.value;
|
||||
const literalValue: number = <number>literalNode.value;
|
||||
|
||||
let rawValue: string;
|
||||
|
||||
|
||||
@@ -83,6 +83,10 @@ export class TemplateLiteralTransformer extends AbstractNodeTransformer {
|
||||
let nodes: ESTree.Expression[] = [];
|
||||
|
||||
templateLiteralNode.quasis.forEach((templateElement: ESTree.TemplateElement) => {
|
||||
if (templateElement.value.cooked === undefined || templateElement.value.cooked === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
nodes.push(NodeFactory.literalNode(templateElement.value.cooked));
|
||||
|
||||
const expression: ESTree.Expression | undefined = templateLiteralExpressions.shift();
|
||||
|
||||
@@ -81,7 +81,7 @@ export class EvalCallExpressionTransformer extends AbstractNodeTransformer {
|
||||
return null;
|
||||
}
|
||||
|
||||
return quasis[0].value.cooked;
|
||||
return quasis[0].value.cooked ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user