Skip to content

Commit 5d0ba34

Browse files
committed
typings update
1 parent 5d93cb5 commit 5d0ba34

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,19 @@
2222
"multimatch": "^2.0.0",
2323
"through2": "^2.0.0",
2424
"webpack-core": "^0.6.8",
25-
"typescript": "^1.8.10"
25+
"typescript": "^1.8.10",
26+
"typings": "^0.8.1"
2627
},
2728
"repository": {
2829
"type": "git",
2930
"url": "git+https://github.com/sanex3339/webpack-obfuscator.git"
3031
},
3132
"scripts": {
33+
"start": "concurrent \"npm run tsc:w\" \"npm run lite\" ",
34+
"lite": "lite-server",
3235
"tsc": "tsc",
3336
"tsc:w": "tsc -w",
34-
"lite": "lite-server",
35-
"start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
37+
"typings": "node_modules/.bin/typings install"
3638
},
3739
"author": {
3840
"name": "Timofey Kachalov"

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"noImplicitAny": false
1010
},
1111
"exclude": [
12+
"node_modules",
1213
"typings/browser",
1314
"typings/browser.d.ts"
1415
]

typings/browser/ambient/javascript-obfuscator/index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ declare module 'javascript-obfuscator' {
1212
debugProtectionInterval?: boolean;
1313
disableConsoleOutput?: boolean;
1414
encodeUnicodeLiterals?: boolean;
15+
reservedNames?: string[];
1516
rotateUnicodeArray?: boolean;
17+
selfDefending?: boolean;
1618
unicodeArray?: boolean;
19+
unicodeArrayThreshold?: number;
1720
wrapUnicodeArrayCalls?: boolean;
1821
[id: string]: any;
1922
}

typings/main/ambient/javascript-obfuscator/index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ declare module 'javascript-obfuscator' {
1212
debugProtectionInterval?: boolean;
1313
disableConsoleOutput?: boolean;
1414
encodeUnicodeLiterals?: boolean;
15+
reservedNames?: string[];
1516
rotateUnicodeArray?: boolean;
17+
selfDefending?: boolean;
1618
unicodeArray?: boolean;
19+
unicodeArrayThreshold?: number;
1720
wrapUnicodeArrayCalls?: boolean;
1821
[id: string]: any;
1922
}

0 commit comments

Comments
 (0)