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
package/lib/feature.d.ts
CHANGED
|
@@ -108,11 +108,8 @@ export interface Feature
|
|
|
108
108
|
CustomFeature;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
export const Feature: FeatureConstructor;
|
|
112
|
-
|
|
113
111
|
export interface FeatureConstructor extends FeatureAll
|
|
114
112
|
{
|
|
115
|
-
|
|
116
113
|
/**
|
|
117
114
|
* Creates a new feature object from the union of the specified features.
|
|
118
115
|
*
|
|
@@ -124,19 +121,19 @@ export interface FeatureConstructor extends FeatureAll
|
|
|
124
121
|
* @example
|
|
125
122
|
*
|
|
126
123
|
* The following statements are equivalent, and will all construct a new feature object
|
|
127
|
-
* including both {@link FeatureConstructor.
|
|
128
|
-
* FeatureConstructor.
|
|
124
|
+
* including both {@link FeatureConstructor.DOCUMENT | `DOCUMENT`} and {@link
|
|
125
|
+
* FeatureConstructor.WINDOW | `WINDOW`}.
|
|
129
126
|
*
|
|
130
127
|
* ```js
|
|
131
|
-
* new JScrewIt.Feature("
|
|
128
|
+
* new JScrewIt.Feature("DOCUMENT", "WINDOW");
|
|
132
129
|
* ```
|
|
133
130
|
*
|
|
134
131
|
* ```js
|
|
135
|
-
* new JScrewIt.Feature(JScrewIt.Feature.
|
|
132
|
+
* new JScrewIt.Feature(JScrewIt.Feature.DOCUMENT, JScrewIt.Feature.WINDOW);
|
|
136
133
|
* ```
|
|
137
134
|
*
|
|
138
135
|
* ```js
|
|
139
|
-
* new JScrewIt.Feature([JScrewIt.Feature.
|
|
136
|
+
* new JScrewIt.Feature([JScrewIt.Feature.DOCUMENT, JScrewIt.Feature.WINDOW]);
|
|
140
137
|
* ```
|
|
141
138
|
*
|
|
142
139
|
* @throws
|
|
@@ -178,19 +175,19 @@ export interface FeatureConstructor extends FeatureAll
|
|
|
178
175
|
* @example
|
|
179
176
|
*
|
|
180
177
|
* The following statements are equivalent, and will all construct a new feature object
|
|
181
|
-
* including both {@link FeatureConstructor.
|
|
182
|
-
* FeatureConstructor.
|
|
178
|
+
* including both {@link FeatureConstructor.DOCUMENT | `DOCUMENT`} and {@link
|
|
179
|
+
* FeatureConstructor.WINDOW | `WINDOW`}.
|
|
183
180
|
*
|
|
184
181
|
* ```js
|
|
185
|
-
* JScrewIt.Feature("
|
|
182
|
+
* JScrewIt.Feature("DOCUMENT", "WINDOW");
|
|
186
183
|
* ```
|
|
187
184
|
*
|
|
188
185
|
* ```js
|
|
189
|
-
* JScrewIt.Feature(JScrewIt.Feature.
|
|
186
|
+
* JScrewIt.Feature(JScrewIt.Feature.DOCUMENT, JScrewIt.Feature.WINDOW);
|
|
190
187
|
* ```
|
|
191
188
|
*
|
|
192
189
|
* ```js
|
|
193
|
-
* JScrewIt.Feature([JScrewIt.Feature.
|
|
190
|
+
* JScrewIt.Feature([JScrewIt.Feature.DOCUMENT, JScrewIt.Feature.WINDOW]);
|
|
194
191
|
* ```
|
|
195
192
|
*
|
|
196
193
|
* @throws
|
|
@@ -255,20 +252,21 @@ export interface FeatureConstructor extends FeatureAll
|
|
|
255
252
|
*
|
|
256
253
|
* @example
|
|
257
254
|
*
|
|
258
|
-
*
|
|
255
|
+
* The following declaration creates a new feature object equivalent to
|
|
256
|
+
* {@link FeatureConstructor.NAME | `NAME`}.
|
|
259
257
|
*
|
|
260
258
|
* ```js
|
|
261
|
-
* const newFeature = JScrewIt.Feature.commonOf(["
|
|
259
|
+
* const newFeature = JScrewIt.Feature.commonOf(["AT", "NAME"], ["NAME", "WINDOW"]);
|
|
262
260
|
* ```
|
|
263
261
|
*
|
|
264
|
-
*
|
|
265
|
-
* `
|
|
266
|
-
* This is because both {@link FeatureConstructor.
|
|
267
|
-
* FeatureConstructor.
|
|
268
|
-
* `
|
|
262
|
+
* The following declaration creates a new feature object equivalent to {@link
|
|
263
|
+
* FeatureConstructor.NO_IE_SRC | `NO_IE_SRC`}.
|
|
264
|
+
* This is because both {@link FeatureConstructor.FF_SRC | `FF_SRC`} and {@link
|
|
265
|
+
* FeatureConstructor.V8_SRC | `V8_SRC`} imply {@link
|
|
266
|
+
* FeatureConstructor.NO_IE_SRC | `NO_IE_SRC`}.
|
|
269
267
|
*
|
|
270
268
|
* ```js
|
|
271
|
-
* const newFeature = JScrewIt.Feature.commonOf("
|
|
269
|
+
* const newFeature = JScrewIt.Feature.commonOf("FF_SRC", "V8_SRC");
|
|
272
270
|
* ```
|
|
273
271
|
*/
|
|
274
272
|
commonOf(...features: FeatureElementOrCompatibleArray[]): CustomFeature | null;
|
package/lib/jscrewit.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// Type definitions for JScrewIt
|
|
2
2
|
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
3
|
+
import type { EncodeInterface } from './encode';
|
|
4
|
+
import type { FeatureConstructor } from './feature';
|
|
5
5
|
|
|
6
|
-
export *
|
|
7
|
-
export *
|
|
6
|
+
export type * from './encode';
|
|
7
|
+
export type * from './feature';
|
|
8
8
|
export type * from './feature-all';
|
|
9
9
|
|
|
10
10
|
interface JScrewIt
|
|
11
11
|
{
|
|
12
|
-
Feature:
|
|
13
|
-
encode:
|
|
12
|
+
Feature: FeatureConstructor;
|
|
13
|
+
encode: EncodeInterface;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare global
|