8000 Merge pull request #474 from javascript-obfuscator/enums-export-in-ty… · sec-js/javascript-obfuscator@7f820b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f820b6

Browse files
authored
Merge pull request javascript-obfuscator#474 from javascript-obfuscator/enums-export-in-typings
Fixed typings. Now string values correctly assignable to enum-like op…
2 parents f273af1 + 07e5a84 commit 7f820b6

File tree

9 files changed

+19
-16
lines changed

9 files changed

+19
-16
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
Change Log
22

3+
v0.20.4
4+
---
5+
* Fixed typings. Now string values correctly assignable to enum-like options
6+
37
v0.20.3
48
---
59
* Fixed `for-await-of` statement: https://github.com/javascript-obfuscator/javascript-obfuscator/issues/419
6-
* Fixed typings. Now string values correctly assignable to enum-like options
710

811
v0.20.2
912
---

dist/index.browser.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.cli.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "javascript-obfuscator",
3-
"version": "0.20.3",
3+
"version": "0.20.4",
44
"description": "JavaScript obfuscator",
55
"keywords": [
66
"obfuscator",

src/enums/ObfuscationTarget.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { MakeEnum } from '@gradecam/tsenum';
22

33
export const ObfuscationTarget: Readonly<{
4-
BrowserNoEval: string;
5-
Node: string;
6-
Browser: string;
4+
Browser: 'browser';
5+
BrowserNoEval: 'browser-no-eval';
6+
Node: 'node';
77
}> = MakeEnum({
88
Browser: 'browser',
99
BrowserNoEval: 'browser-no-eval',

src/enums/StringArrayEncoding.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { MakeEnum } from '@gradecam/tsenum';
22

33
export const StringArrayEncoding: Readonly<{
4-
Rc4: string;
5-
Base64: string;
4+
Base64: 'base64';
5+
Rc4: 'rc4';
66
}> = MakeEnum({
77
Base64: 'base64',
88
Rc4: 'rc4'

src/enums/generators/identifier-names-generators/IdentifierNamesGenerator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { MakeEnum } from '@gradecam/tsenum';
22

33
export const IdentifierNamesGenerator: Readonly<{
4-
MangledIdentifierNamesGenerator: string;
5-
DictionaryIdentifierNamesGenerator: string;
6-
HexadecimalIdentifierNamesGenerator: string;
4+
DictionaryIdentifierNamesGenerator: 'dictionary';
5+
HexadecimalIdentifierNamesGenerator: 'hexadecimal';
6+
MangledIdentifierNamesGenerator: 'mangled';
77
}> = MakeEnum({
88
DictionaryIdentifierNamesGenerator: 'dictionary',
99
HexadecimalIdentifierNamesGenerator: 'hexadecimal',

src/enums/source-map/SourceMapMode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { MakeEnum } from '@gradecam/tsenum';
22

33
export const SourceMapMode: Readonly<{
4-
Separate: string;
5-
Inline: string;
4+
Inline: 'inline';
5+
Separate: 'separate';
66
}> = MakeEnum({
77
Inline: 'inline',
88
Separate: 'separate'

0 commit comments

Comments
 (0)
0