jscrewit 2.41.0 → 3.0.0
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/Features.md +46 -180
- package/{readme.md → README.md} +30 -30
- package/api-doc/JScrewIt/namespaces/EncodeOptions/README.md +9 -0
- package/api-doc/{type-aliases → JScrewIt/namespaces/EncodeOptions/type-aliases}/RunAs.md +3 -2
- package/api-doc/README.md +5 -4
- package/api-doc/interfaces/CustomFeature.md +3 -3
- package/api-doc/interfaces/ElementaryFeature.md +2 -2
- package/api-doc/interfaces/{encode.md → EncodeInterface.md} +2 -2
- package/api-doc/interfaces/EncodeOptions.md +4 -4
- package/api-doc/interfaces/Feature.md +3 -3
- package/api-doc/interfaces/FeatureAll.md +64 -582
- package/api-doc/interfaces/FeatureConstructor.md +141 -874
- package/api-doc/interfaces/PredefinedFeature.md +2 -2
- package/api-doc/interfaces/default.md +1 -1
- package/api-doc/type-aliases/ElementaryFeatureName.md +1 -1
- package/api-doc/type-aliases/PredefinedFeatureName.md +1 -1
- package/lib/encode.d.ts +12 -10
- package/lib/feature-all.d.ts +80 -428
- package/lib/feature.d.ts +19 -21
- package/lib/jscrewit.d.ts +6 -6
- package/lib/jscrewit.js +407 -2090
- package/lib/jscrewit.min.js +2 -2
- package/package.json +2 -2
- package/screw.js +87 -103
- package/tools/cli.js +57 -73
- package/tools/time-utils.js +10 -26
- package/ui/ui.js +1 -1
- package/api-doc/variables/Feature.md +0 -7
- package/api-doc/variables/encode.md +0 -7
- package/tools/text-utils.js +0 -37
- /package/{license.txt → LICENSE.txt} +0 -0
|
@@ -128,6 +128,8 @@ that require strict mode code, or inside web workers.
|
|
|
128
128
|
|
|
129
129
|
##### environment
|
|
130
130
|
|
|
131
|
+
`"forced-strict-mode"` \| `"web-worker"`
|
|
132
|
+
|
|
131
133
|
The environment to which this feature should be restricted.
|
|
132
134
|
Two environments are currently supported.
|
|
133
135
|
|
|
@@ -143,8 +145,6 @@ Removes features that are not available in environments that require strict mode
|
|
|
143
145
|
|
|
144
146
|
</dl>
|
|
145
147
|
|
|
146
|
-
`"forced-strict-mode"` | `"web-worker"`
|
|
147
|
-
|
|
148
148
|
##### engineFeatureObjs?
|
|
149
149
|
|
|
150
150
|
readonly `PredefinedFeature`[]
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
# Type Alias: ElementaryFeatureName
|
|
6
6
|
|
|
7
|
-
> **ElementaryFeatureName** = `"
|
|
7
|
+
> **ElementaryFeatureName** = `"ARRAY_ITERATOR"` \| `"ARROW"` \| `"AT"` \| `"BARPROP"` \| `"CAPITAL_HTML"` \| `"CONSOLE"` \| `"DOCUMENT"` \| `"ESC_HTML_QUOT"` \| `"FF_SRC"` \| `"FILL"` \| `"FLAT"` \| `"FROM_CODE_POINT"` \| `"FUNCTION_19_LF"` \| `"FUNCTION_22_LF"` \| `"IE_SRC"` \| `"INCR_CHAR"` \| `"ITERATOR_HELPER"` \| `"LOCALE_INFINITY"` \| `"LOCALE_NUMERALS_BN"` \| `"LOCALE_NUMERALS_EXT"` \| `"NAME"` \| `"NO_FF_SRC"` \| `"NO_IE_SRC"` \| `"NO_V8_SRC"` \| `"OBJECT_ARRAY_ENTRIES_CTOR"` \| `"OBJECT_W_SELF"` \| `"PLAIN_INTL"` \| `"REGEXP_STRING_ITERATOR"` \| `"SELF"` \| `"SHORT_LOCALES"` \| `"STATUS"` \| `"V8_SRC"` \| `"WINDOW"`
|
|
8
8
|
|
|
9
9
|
Name of an elementary feature.
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
# Type Alias: PredefinedFeatureName
|
|
6
6
|
|
|
7
|
-
> **PredefinedFeatureName** = [`ElementaryFeatureName`](ElementaryFeatureName.md) \| `"
|
|
7
|
+
> **PredefinedFeatureName** = [`ElementaryFeatureName`](ElementaryFeatureName.md) \| `"AUTO"` \| `"BROWSER"` \| `"CHROME_122"` \| `"COMPACT"` \| `"DEFAULT"` \| `"FF_131"` \| `"FF_134"` \| `"FF_90"` \| `"IE_11"` \| `"IE_11_WIN_10"` \| `"NODE_20"` \| `"NODE_22"` \| `"NODE_22_12"` \| `"SAFARI_17_4"` \| `"SAFARI_18_0"` \| `"SAFARI_18_4"`
|
|
8
8
|
|
|
9
9
|
Name of a predefined feature.
|
package/lib/encode.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export interface EncodeOptions
|
|
|
60
60
|
*
|
|
61
61
|
* </dl>
|
|
62
62
|
*/
|
|
63
|
-
runAs?: RunAs | undefined;
|
|
63
|
+
runAs?: EncodeOptions.RunAs | undefined;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* If this parameter is truthy, lines in the beginning and in the end of the file containing
|
|
@@ -76,16 +76,20 @@ export interface EncodeOptions
|
|
|
76
76
|
trimCode?: boolean | undefined;
|
|
77
77
|
|
|
78
78
|
/** An alias for `runAs`. */
|
|
79
|
-
wrapWith?: RunAs | undefined;
|
|
79
|
+
wrapWith?: EncodeOptions.RunAs | undefined;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
export namespace EncodeOptions
|
|
83
|
+
{
|
|
84
|
+
/**
|
|
85
|
+
* Values of this type control the type of code generated from a given input.
|
|
86
|
+
* See {@link EncodeOptions.runAs | `EncodeOptions.runAs`} for the meaning of each possible
|
|
87
|
+
* value.
|
|
88
|
+
*/
|
|
89
|
+
type RunAs = 'call' | 'eval' | 'express' | 'express-call' | 'express-eval' | 'none';
|
|
90
|
+
}
|
|
87
91
|
|
|
88
|
-
interface
|
|
92
|
+
export interface EncodeInterface
|
|
89
93
|
{
|
|
90
94
|
/**
|
|
91
95
|
* Encodes a given string into JSFuck.
|
|
@@ -152,5 +156,3 @@ interface encode
|
|
|
152
156
|
*/
|
|
153
157
|
permanentCaching: boolean;
|
|
154
158
|
}
|
|
155
|
-
|
|
156
|
-
export const encode: encode;
|