clientnode 4.0.1500 → 4.0.1502
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/dist/Logger.d.ts +2 -2
- package/dist/cli.d.ts +29 -29
- package/dist/constants.d.ts +47 -47
- package/dist/domNode.d.ts +1 -1
- package/dist/property-types.d.ts +253 -253
- package/dist/scope.d.ts +1 -1
- package/dist/string.d.ts +1 -1
- package/dist/test-helper.d.ts +77 -221
- package/package.json +5 -5
package/dist/scope.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const UTILITY_SCOPE: {
|
|
|
23
23
|
readonly string: typeof string;
|
|
24
24
|
readonly utility: typeof utility;
|
|
25
25
|
};
|
|
26
|
-
export declare const UTILITY_SCOPE_NAMES: readonly [
|
|
26
|
+
export declare const UTILITY_SCOPE_NAMES: readonly ['array', 'datetime', 'filesystem', 'functions', 'indicators', 'logger', 'module', 'number', 'object', 'string', 'utility'];
|
|
27
27
|
export declare const UTILITY_SCOPE_VALUES: readonly [typeof array, typeof datetime, typeof filesystem, typeof functions, typeof indicators, typeof logger, typeof module, typeof number, typeof object, typeof string, typeof utility];
|
|
28
28
|
/**
|
|
29
29
|
* Overwrites all inherited variables from parent scope with "undefined".
|
package/dist/string.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const POLYFILL_TEMPLATE_STRINGS: {
|
|
|
5
5
|
};
|
|
6
6
|
export declare const ALLOWED_VARIABLE_SYMBOLS = "0-9a-zA-Z_$";
|
|
7
7
|
export declare const ALLOWED_STARTING_VARIABLE_SYMBOLS = "a-zA-Z_$";
|
|
8
|
-
export declare const FIX_ENCODING_ERROR_MAPPING: readonly [readonly [
|
|
8
|
+
export declare const FIX_ENCODING_ERROR_MAPPING: readonly [readonly ['Ã\\x84', 'Ä'], readonly ['Ã\\x96', 'Ö'], readonly ['Ã\\x9c', 'Ü'], readonly ['ä', 'ä'], readonly ['ö', 'ö'], readonly ['ü', 'ü'], readonly ['\\x96', '-'], readonly ['é', 'é'], readonly ['è', 'e'], readonly ['ô', 'o'], readonly ['à ', 'á'], readonly ['ø', 'ø'], readonly ['Ã\\x9f', 'ß'], readonly ['Ã', 'ß']];
|
|
9
9
|
export declare const AsyncFunction: any;
|
|
10
10
|
/**
|
|
11
11
|
* Translates a given string into the regular expression validated
|
package/dist/test-helper.d.ts
CHANGED
|
@@ -11,49 +11,23 @@ export declare const TEST_UNDEFINED_SYMBOL: unique symbol;
|
|
|
11
11
|
* @returns Nothing or a promise resolving to nothing.
|
|
12
12
|
*/
|
|
13
13
|
export declare const expectExpectedType: <Type = unknown, Result extends Promise<void> | void = void>(givenResult: Matchers<Result> | Result, expected: TestSymbol | Type, wrap?: boolean) => Result;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
* raise compile time errors if given test set does not match given function
|
|
32
|
-
* signature.
|
|
33
|
-
* @param functionName - Function description to test.
|
|
34
|
-
* @param callback - Function reference to test.
|
|
35
|
-
* @param functionTestTuple - Additional arrays of test sets to test given
|
|
36
|
-
* function again.
|
|
37
|
-
*/
|
|
38
|
-
export declare const testEachAgainstResolvedPromise: {
|
|
39
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
|
|
40
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
|
|
41
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Tests each given test set (expected value follows by various list of
|
|
45
|
-
* function parameters). It respects function signature to raise compile time
|
|
46
|
-
* errors if given test set does not match given function signature.
|
|
47
|
-
* @param functionName - Function description to test.
|
|
48
|
-
* @param callback - Function reference to test.
|
|
49
|
-
* @param functionTestTuple - Additional arrays of test sets to test given
|
|
50
|
-
* function again.
|
|
51
|
-
*/
|
|
52
|
-
export declare const testEachResolvedPromise: {
|
|
53
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
|
|
54
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
|
|
55
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
|
|
56
|
-
};
|
|
14
|
+
export declare function testEach<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>): void;
|
|
15
|
+
export declare namespace testEach {
|
|
16
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>) => void;
|
|
17
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare function testEachAgainstResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
|
|
20
|
+
export declare namespace testEachAgainstResolvedPromise {
|
|
21
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>) => void;
|
|
22
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function testEachResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
|
|
25
|
+
export declare namespace testEachResolvedPromise {
|
|
26
|
+
var only: (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>) => void) | (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void);
|
|
27
|
+
var skip: (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>) => void) | (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void);
|
|
28
|
+
var only: (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>) => void) | (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void);
|
|
29
|
+
var skip: (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>) => void) | (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void);
|
|
30
|
+
}
|
|
57
31
|
/**
|
|
58
32
|
* Tests each given test set (expected value follows by various list of
|
|
59
33
|
* function parameters). It respects function signature to raise compile time
|
|
@@ -64,182 +38,64 @@ export declare const testEachResolvedPromise: {
|
|
|
64
38
|
* function again.
|
|
65
39
|
*/
|
|
66
40
|
export declare const testEachResolvedPromiseAgainstResolvedPromise: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
export declare
|
|
119
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
* @param functionName - Function description to test.
|
|
128
|
-
* @param callback - Function reference to test.
|
|
129
|
-
* @param expected - Promise resolving to value to check each function call
|
|
130
|
-
* return value against.
|
|
131
|
-
* @param parameters - Additional first parameters to test given function with.
|
|
132
|
-
*/
|
|
133
|
-
export declare const testEachResolvedPromiseWithSingleParameterAgainstSameResolvedPromise: {
|
|
134
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
135
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
136
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Tests each given single parameter against same given expected value. It
|
|
140
|
-
* respects function signature to raise compile time errors if given test set
|
|
141
|
-
* does not match given function signature.
|
|
142
|
-
* @param functionName - Function description to test.
|
|
143
|
-
* @param callback - Function reference to test.
|
|
144
|
-
* @param expected - Value to check each function call return value against.
|
|
145
|
-
* @param parameters - Additional first parameters to test given function with.
|
|
146
|
-
*/
|
|
147
|
-
export declare const testEachRejectedPromiseWithSingleParameterAgainstSameExpectation: {
|
|
148
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
149
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
150
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* Tests each given single parameter against same given expected value. It
|
|
154
|
-
* respects function signature to raise compile time errors if given test set
|
|
155
|
-
* does not match given function signature.
|
|
156
|
-
* @param functionName - Function description to test.
|
|
157
|
-
* @param callback - Function reference to test.
|
|
158
|
-
* @param expected - Value to check each function call return value against.
|
|
159
|
-
* @param parameters - Additional first parameters to test given function with.
|
|
160
|
-
*/
|
|
161
|
-
export declare const testEachRejectedPromiseWithSingleParameterAgainstSameResolvedPromise: {
|
|
162
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
163
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
164
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* Tests each given test set (various list of function parameters) against same
|
|
168
|
-
* given expected value. It respects function signature to raise compile time
|
|
169
|
-
* errors if given test set does not match given function signature.
|
|
170
|
-
* @param functionName - Function description to test.
|
|
171
|
-
* @param callback - Function reference to test.
|
|
172
|
-
* @param expected - Value to check each function call return value against.
|
|
173
|
-
* @param functionParameters - Additional lists of parameters to test given
|
|
174
|
-
* function again.
|
|
175
|
-
*/
|
|
176
|
-
export declare const testEachAgainstSameExpectation: {
|
|
177
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
178
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
179
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Tests each given test set (various list of function parameters) against same
|
|
183
|
-
* given expected value. It respects function signature to raise compile time
|
|
184
|
-
* errors if given test set does not match given function signature.
|
|
185
|
-
* @param functionName - Function description to test.
|
|
186
|
-
* @param callback - Function reference to test.
|
|
187
|
-
* @param expected - Value to check each function call return value against.
|
|
188
|
-
* @param functionParameters - Additional lists of parameters to test given
|
|
189
|
-
* function again.
|
|
190
|
-
*/
|
|
191
|
-
export declare const testEachResolvedPromiseAgainstSameExpectation: {
|
|
192
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
193
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
194
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
195
|
-
};
|
|
196
|
-
/**
|
|
197
|
-
* Tests each given test set (various list of function parameters) against same
|
|
198
|
-
* given promise resolving expected value. It respects function signature to
|
|
199
|
-
* raise compile time errors if given test set does not match given function
|
|
200
|
-
* signature.
|
|
201
|
-
* @param functionName - Function description to test.
|
|
202
|
-
* @param callback - Function reference to test.
|
|
203
|
-
* @param expected - Promise resolving to value to check each function call
|
|
204
|
-
* return value against.
|
|
205
|
-
* @param functionParameters - Additional lists of parameters to test given
|
|
206
|
-
* function again.
|
|
207
|
-
*/
|
|
208
|
-
export declare const testEachResolvedPromiseAgainstSameResolvedPromise: {
|
|
209
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
210
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
211
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* Tests each given test set (various list of function parameters) against same
|
|
215
|
-
* given expected value. It respects function signature to raise compile time
|
|
216
|
-
* errors if given test set does not match given function signature.
|
|
217
|
-
* @param functionName - Function description to test.
|
|
218
|
-
* @param callback - Function reference to test.
|
|
219
|
-
* @param expected - Value to check each function call return value against.
|
|
220
|
-
* @param functionParameters - Additional lists of parameters to test given
|
|
221
|
-
* function again.
|
|
222
|
-
*/
|
|
223
|
-
export declare const testEachRejectedPromiseAgainstSameExpectation: {
|
|
224
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
225
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
226
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
227
|
-
};
|
|
228
|
-
/**
|
|
229
|
-
* Tests each given test set (various list of function parameters) against same
|
|
230
|
-
* given promise resolving expected value. It respects function signature to
|
|
231
|
-
* raise compile time errors if given test set does not match given function
|
|
232
|
-
* signature.
|
|
233
|
-
* @param functionName - Function description to test.
|
|
234
|
-
* @param callback - Function reference to test.
|
|
235
|
-
* @param expected - Promise resolving to value to check each function call
|
|
236
|
-
* return value against.
|
|
237
|
-
* @param functionParameters - Additional lists of parameters to test given
|
|
238
|
-
* function again.
|
|
239
|
-
*/
|
|
240
|
-
export declare const testEachRejectedPromiseAgainstSameResolvedPromise: {
|
|
241
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
242
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
243
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
244
|
-
};
|
|
41
|
+
export declare function testEachRejectedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>): void;
|
|
42
|
+
export declare namespace testEachRejectedPromise {
|
|
43
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>) => void;
|
|
44
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>) => void;
|
|
45
|
+
}
|
|
46
|
+
export declare function testEachRejectedPromiseAgainstResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>): void;
|
|
47
|
+
export declare namespace testEachRejectedPromiseAgainstResolvedPromise {
|
|
48
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>) => void;
|
|
49
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>) => void;
|
|
50
|
+
}
|
|
51
|
+
export declare function testEachSingleParameterAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
52
|
+
export declare namespace testEachSingleParameterAgainstSameExpectation {
|
|
53
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
54
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
55
|
+
}
|
|
56
|
+
export declare function testEachResolvedPromiseWithSingleParameterAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
57
|
+
export declare namespace testEachResolvedPromiseWithSingleParameterAgainstSameExpectation {
|
|
58
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
59
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
60
|
+
}
|
|
61
|
+
export declare function testEachResolvedPromiseWithSingleParameterAgainstSameResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
62
|
+
export declare namespace testEachResolvedPromiseWithSingleParameterAgainstSameResolvedPromise {
|
|
63
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
64
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
65
|
+
}
|
|
66
|
+
export declare function testEachRejectedPromiseWithSingleParameterAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
67
|
+
export declare namespace testEachRejectedPromiseWithSingleParameterAgainstSameExpectation {
|
|
68
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
69
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
70
|
+
}
|
|
71
|
+
export declare function testEachRejectedPromiseWithSingleParameterAgainstSameResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
72
|
+
export declare namespace testEachRejectedPromiseWithSingleParameterAgainstSameResolvedPromise {
|
|
73
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
74
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
75
|
+
}
|
|
76
|
+
export declare function testEachAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
77
|
+
export declare namespace testEachAgainstSameExpectation {
|
|
78
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
79
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
80
|
+
}
|
|
81
|
+
export declare function testEachResolvedPromiseAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
82
|
+
export declare namespace testEachResolvedPromiseAgainstSameExpectation {
|
|
83
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
84
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
85
|
+
}
|
|
86
|
+
export declare function testEachResolvedPromiseAgainstSameResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
87
|
+
export declare namespace testEachResolvedPromiseAgainstSameResolvedPromise {
|
|
88
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
89
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
90
|
+
}
|
|
91
|
+
export declare function testEachRejectedPromiseAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
92
|
+
export declare namespace testEachRejectedPromiseAgainstSameExpectation {
|
|
93
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
94
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
95
|
+
}
|
|
96
|
+
export declare function testEachRejectedPromiseAgainstSameResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
97
|
+
export declare namespace testEachRejectedPromiseAgainstSameResolvedPromise {
|
|
98
|
+
var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
99
|
+
var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
100
|
+
}
|
|
245
101
|
export default testEach;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clientnode",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1502",
|
|
4
4
|
"description": "Handy utilities for any JavaScript environments.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
"prop-types": "^15.8.1",
|
|
103
103
|
"rimraf": "^6.1.3",
|
|
104
104
|
"typescript-eslint": "^8.68.0",
|
|
105
|
-
"web-documentation": "^1.0.
|
|
106
|
-
"weboptimizer": "^4.0.
|
|
105
|
+
"web-documentation": "^1.0.51",
|
|
106
|
+
"weboptimizer": "^4.0.66",
|
|
107
107
|
"webpack-dev-server": "^6.0.0"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"globals@npm:^11.1.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
128
128
|
"globals@npm:^14.0.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
129
129
|
"globals@npm:^9.18.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
130
|
-
"weboptimizer/clientnode": "4.0.
|
|
130
|
+
"weboptimizer/clientnode": "4.0.1500"
|
|
131
131
|
},
|
|
132
132
|
"engines": {
|
|
133
133
|
"node": ">=26",
|
|
@@ -272,5 +272,5 @@
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
|
-
"packageManager": "yarn@4.
|
|
275
|
+
"packageManager": "yarn@4.18.0"
|
|
276
276
|
}
|