Skip to content

Commit abb7f16

Browse files
committed
MakeEnum moved to Utils class
1 parent 5b05f95 commit abb7f16

21 files changed

Lines changed: 44 additions & 94 deletions

File tree

dist/index.browser.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.browser.js.LICENSE.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ and limitations under the License.
5252
***************************************************************************** */
5353

5454
/*! *****************************************************************************
55-
Copyright (c) Microsoft Corporation.
55+
Copyright (c) Microsoft Corporation. All rights reserved.
56+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
57+
this file except in compliance with the License. You may obtain a copy of the
58+
License at http://www.apache.org/licenses/LICENSE-2.0
5659

57-
Permission to use, copy, modify, and/or distribute this software for any
58-
purpose with or without fee is hereby granted.
60+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
61+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
62+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
63+
MERCHANTABLITY OR NON-INFRINGEMENT.
5964

60-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
61-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
62-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
63-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
64-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
65-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
66-
PERFORMANCE OF THIS SOFTWARE.
65+
See the Apache Version 2.0 License for specific language governing permissions
66+
and limitations under the License.
6767
***************************************************************************** */

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.

src/enums/ObfuscationTarget.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { MakeEnum } from '../utils/TsEnum';
1+
import { Utils } from '../utils/Utils';
22

33
export const ObfuscationTarget: Readonly<{
44
Browser: 'browser';
55
BrowserNoEval: 'browser-no-eval';
66
Node: 'node';
7-
}> = MakeEnum({
7+
}> = Utils.makeEnum({
88
Browser: 'browser',
99
BrowserNoEval: 'browser-no-eval',
1010
Node: 'node'

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { MakeEnum } from '../../../utils/TsEnum';
1+
import { Utils } from '../../../utils/Utils';
22

33
export const IdentifierNamesGenerator: Readonly<{
44
DictionaryIdentifierNamesGenerator: 'dictionary';
55
HexadecimalIdentifierNamesGenerator: 'hexadecimal';
66
MangledIdentifierNamesGenerator: 'mangled';
77
MangledShuffledIdentifierNamesGenerator: 'mangled-shuffled';
8-
}> = MakeEnum({
8+
}> = Utils.makeEnum({
99
DictionaryIdentifierNamesGenerator: 'dictionary',
1010
HexadecimalIdentifierNamesGenerator: 'hexadecimal',
1111
MangledIdentifierNamesGenerator: 'mangled',

src/enums/node-transformers/string-array-transformers/StringArrayEncoding.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { MakeEnum } from '../../../utils/TsEnum';
1+
import { Utils } from '../../../utils/Utils';
22

33
export const StringArrayEncoding: Readonly<{
44
None: 'none';
55
Base64: 'base64';
66
Rc4: 'rc4';
7-
}> = MakeEnum({
7+
}> = Utils.makeEnum({
88
None: 'none',
99
Base64: 'base64',
1010
Rc4: 'rc4'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { MakeEnum } from '../../../utils/TsEnum';
1+
import { Utils } from '../../../utils/Utils';
22

33
export const StringArrayWrappersType: Readonly<{
44
Variable: 'variable';
55
Function: 'function';
6-
}> = MakeEnum({
6+
}> = Utils.makeEnum({
77
Variable: 'variable',
88
Function: 'function',
99
});

src/enums/options/presets/OptionsPreset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { MakeEnum } from '../../../utils/TsEnum';
1+
import { Utils } from '../../../utils/Utils';
22

33
export const OptionsPreset: Readonly<{
44
Default: 'default';
55
LowObfuscation: 'low-obfuscation';
66
MediumObfuscation: 'medium-obfuscation';
77
HighObfuscation: 'high-obfuscation';
8-
}> = MakeEnum({
8+
}> = Utils.makeEnum({
99
Default: 'default',
1010
LowObfuscation: 'low-obfuscation',
1111
MediumObfuscation: 'medium-obfuscation',
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { MakeEnum } from '../../utils/TsEnum';
1+
import { Utils } from '../../utils/Utils';
22

33
export const SourceMapMode: Readonly<{
44
Inline: 'inline';
55
Separate: 'separate';
6-
}> = MakeEnum({
6+
}> = Utils.makeEnum({
77
Inline: 'inline',
88
Separate: 'separate'
99
});

0 commit comments

Comments
 (0)