javascript-obfuscator 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +245 -289
- package/.prettierignore +34 -0
- package/.prettierrc.js +50 -0
- package/CHANGELOG.md +4 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cli.js +1 -1
- package/dist/index.cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index_debug.js +14907 -0
- package/dist/index_debug.js.LICENSE.txt +23 -0
- package/dist/index_debug.js.map +1 -0
- package/package.json +10 -4
- package/typings/src/types/node/TNodeWithSingleStatementBody.d.ts +2 -2
- package/typings/src/types/utils/TTypeFromEnum.d.ts +1 -1
package/.prettierignore
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules
|
|
3
|
+
|
|
4
|
+
# Build output
|
|
5
|
+
dist
|
|
6
|
+
*.browser.js
|
|
7
|
+
|
|
8
|
+
# Coverage
|
|
9
|
+
coverage
|
|
10
|
+
.nyc_output
|
|
11
|
+
|
|
12
|
+
# Type definitions
|
|
13
|
+
typings
|
|
14
|
+
|
|
15
|
+
# Webpack bundles
|
|
16
|
+
webpack
|
|
17
|
+
|
|
18
|
+
# Lock files
|
|
19
|
+
package-lock.json
|
|
20
|
+
yarn.lock
|
|
21
|
+
|
|
22
|
+
# Logs
|
|
23
|
+
*.log
|
|
24
|
+
|
|
25
|
+
# Temporary files
|
|
26
|
+
*.tmp
|
|
27
|
+
.DS_Store
|
|
28
|
+
|
|
29
|
+
# Test fixtures and expected output
|
|
30
|
+
test/**/*.expected.js
|
|
31
|
+
test/**/*.fixture.js
|
|
32
|
+
|
|
33
|
+
# Templates (custom code helpers - these are code templates, not regular code)
|
|
34
|
+
src/custom-code-helpers/**/templates/*.ts
|
package/.prettierrc.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
// Basic formatting
|
|
3
|
+
printWidth: 120,
|
|
4
|
+
tabWidth: 4,
|
|
5
|
+
useTabs: false,
|
|
6
|
+
semi: true,
|
|
7
|
+
singleQuote: true,
|
|
8
|
+
quoteProps: 'consistent',
|
|
9
|
+
trailingComma: 'none',
|
|
10
|
+
|
|
11
|
+
// Spacing
|
|
12
|
+
bracketSpacing: true,
|
|
13
|
+
arrowParens: 'always',
|
|
14
|
+
|
|
15
|
+
// Line breaks
|
|
16
|
+
endOfLine: 'lf',
|
|
17
|
+
|
|
18
|
+
// TypeScript
|
|
19
|
+
parser: 'typescript',
|
|
20
|
+
|
|
21
|
+
// Override for specific file types
|
|
22
|
+
overrides: [
|
|
23
|
+
{
|
|
24
|
+
files: '*.ts',
|
|
25
|
+
options: {
|
|
26
|
+
parser: 'typescript'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
files: '*.js',
|
|
31
|
+
options: {
|
|
32
|
+
parser: 'babel'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
files: '*.json',
|
|
37
|
+
options: {
|
|
38
|
+
parser: 'json',
|
|
39
|
+
tabWidth: 2
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
files: '*.md',
|
|
44
|
+
options: {
|
|
45
|
+
parser: 'markdown',
|
|
46
|
+
proseWrap: 'preserve'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
};
|