jscrewit 2.40.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 +143 -876
- 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 +396 -2028
- 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
|
@@ -72,7 +72,7 @@ An array of all elementary feature names included in this feature object, withou
|
|
|
72
72
|
|
|
73
73
|
### name?
|
|
74
74
|
|
|
75
|
-
> `optional` **name
|
|
75
|
+
> `optional` **name?**: `string`
|
|
76
76
|
|
|
77
77
|
The primary name of this feature object, useful for identification purpose.
|
|
78
78
|
|
|
@@ -124,6 +124,8 @@ that require strict mode code, or inside web workers.
|
|
|
124
124
|
|
|
125
125
|
##### environment
|
|
126
126
|
|
|
127
|
+
`"forced-strict-mode"` \| `"web-worker"`
|
|
128
|
+
|
|
127
129
|
The environment to which this feature should be restricted.
|
|
128
130
|
Two environments are currently supported.
|
|
129
131
|
|
|
@@ -139,8 +141,6 @@ Removes features that are not available in environments that require strict mode
|
|
|
139
141
|
|
|
140
142
|
</dl>
|
|
141
143
|
|
|
142
|
-
`"forced-strict-mode"` | `"web-worker"`
|
|
143
|
-
|
|
144
144
|
##### engineFeatureObjs?
|
|
145
145
|
|
|
146
146
|
readonly [`PredefinedFeature`](PredefinedFeature.md)[]
|
|
@@ -124,6 +124,8 @@ that require strict mode code, or inside web workers.
|
|
|
124
124
|
|
|
125
125
|
##### environment
|
|
126
126
|
|
|
127
|
+
`"forced-strict-mode"` \| `"web-worker"`
|
|
128
|
+
|
|
127
129
|
The environment to which this feature should be restricted.
|
|
128
130
|
Two environments are currently supported.
|
|
129
131
|
|
|
@@ -139,8 +141,6 @@ Removes features that are not available in environments that require strict mode
|
|
|
139
141
|
|
|
140
142
|
</dl>
|
|
141
143
|
|
|
142
|
-
`"forced-strict-mode"` | `"web-worker"`
|
|
143
|
-
|
|
144
144
|
##### engineFeatureObjs?
|
|
145
145
|
|
|
146
146
|
readonly [`PredefinedFeature`](PredefinedFeature.md)[]
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
### features?
|
|
10
10
|
|
|
11
|
-
> `optional` **features
|
|
11
|
+
> `optional` **features?**: [`FeatureElementOrCompatibleArray`](../type-aliases/FeatureElementOrCompatibleArray.md)
|
|
12
12
|
|
|
13
13
|
Specifies the features available in the engines that evaluate the encoded output.
|
|
14
14
|
|
|
@@ -20,7 +20,7 @@ To generate shorter code, specify all features available in all target engines e
|
|
|
20
20
|
|
|
21
21
|
### runAs?
|
|
22
22
|
|
|
23
|
-
> `optional` **runAs
|
|
23
|
+
> `optional` **runAs?**: [`RunAs`](../JScrewIt/namespaces/EncodeOptions/type-aliases/RunAs.md)
|
|
24
24
|
|
|
25
25
|
This option controls the type of code generated from the given input.
|
|
26
26
|
Allowed values are listed below.
|
|
@@ -73,7 +73,7 @@ plain string.
|
|
|
73
73
|
|
|
74
74
|
### trimCode?
|
|
75
75
|
|
|
76
|
-
> `optional` **trimCode
|
|
76
|
+
> `optional` **trimCode?**: `boolean`
|
|
77
77
|
|
|
78
78
|
If this parameter is truthy, lines in the beginning and in the end of the file containing
|
|
79
79
|
nothing but space characters and JavaScript comments are removed from the generated output.
|
|
@@ -89,6 +89,6 @@ code.
|
|
|
89
89
|
|
|
90
90
|
### wrapWith?
|
|
91
91
|
|
|
92
|
-
> `optional` **wrapWith
|
|
92
|
+
> `optional` **wrapWith?**: [`RunAs`](../JScrewIt/namespaces/EncodeOptions/type-aliases/RunAs.md)
|
|
93
93
|
|
|
94
94
|
An alias for `runAs`.
|
|
@@ -61,7 +61,7 @@ An array of all elementary feature names included in this feature object, withou
|
|
|
61
61
|
|
|
62
62
|
### name?
|
|
63
63
|
|
|
64
|
-
> `optional` **name
|
|
64
|
+
> `optional` **name?**: `string`
|
|
65
65
|
|
|
66
66
|
The primary name of this feature object, useful for identification purpose.
|
|
67
67
|
|
|
@@ -105,6 +105,8 @@ that require strict mode code, or inside web workers.
|
|
|
105
105
|
|
|
106
106
|
##### environment
|
|
107
107
|
|
|
108
|
+
`"forced-strict-mode"` \| `"web-worker"`
|
|
109
|
+
|
|
108
110
|
The environment to which this feature should be restricted.
|
|
109
111
|
Two environments are currently supported.
|
|
110
112
|
|
|
@@ -120,8 +122,6 @@ Removes features that are not available in environments that require strict mode
|
|
|
120
122
|
|
|
121
123
|
</dl>
|
|
122
124
|
|
|
123
|
-
`"forced-strict-mode"` | `"web-worker"`
|
|
124
|
-
|
|
125
125
|
##### engineFeatureObjs?
|
|
126
126
|
|
|
127
127
|
readonly [`PredefinedFeature`](PredefinedFeature.md)[]
|