clientnode 3.0.1330 → 3.0.1332
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/array.d.ts +1 -2
- package/dist/test-helper.d.ts +13 -13
- package/package.json +2 -2
package/dist/array.d.ts
CHANGED
|
@@ -74,8 +74,7 @@ export declare const makeArray: <T = unknown>(object: unknown) => Array<T>;
|
|
|
74
74
|
* @param ignoreLastStep - Removes last step.
|
|
75
75
|
* @returns Produced array of integers.
|
|
76
76
|
*/
|
|
77
|
-
export declare const makeRange: (range: number | Array<number
|
|
78
|
-
step?: number, ignoreLastStep?: boolean) => Array<number>;
|
|
77
|
+
export declare const makeRange: (range: number | Array<number> | [number] | [number, number], step?: number, ignoreLastStep?: boolean) => Array<number>;
|
|
79
78
|
/**
|
|
80
79
|
* Merge the contents of two arrays together into the first array.
|
|
81
80
|
* @param target - Target array.
|
package/dist/test-helper.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyFunction, FirstParameter, FunctionTestTuple, FunctionTestPromiseTuple, FunctionTestPromiseRejectionTuple, TestMatchers as Matchers, TestSymbol, UnknownFunction } from './type';
|
|
1
|
+
import { AnyFunction, FirstParameter, FunctionTestTuple, FunctionTestPromiseTuple, FunctionTestPromiseRejectionTuple, TestMatchers as Matchers, TestSymbol, ThenParameter, UnknownFunction } from './type';
|
|
2
2
|
export declare const TEST_DEFINED_SYMBOL: unique symbol;
|
|
3
3
|
export declare const TEST_THROW_SYMBOL: unique symbol;
|
|
4
4
|
export declare const TEST_UNDEFINED_SYMBOL: unique symbol;
|
|
@@ -63,9 +63,9 @@ export declare const testEachPromiseRejection: {
|
|
|
63
63
|
* @param parameters - Additional first parameters to test given function with.
|
|
64
64
|
*/
|
|
65
65
|
export declare const testEachSingleParameterAgainstSameExpectation: {
|
|
66
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
67
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
68
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
66
|
+
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
67
|
+
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
68
|
+
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* Tests each given single parameter against same given expected value. It
|
|
@@ -77,9 +77,9 @@ export declare const testEachSingleParameterAgainstSameExpectation: {
|
|
|
77
77
|
* @param parameters - Additional first parameters to test given function with.
|
|
78
78
|
*/
|
|
79
79
|
export declare const testEachSingleParameterAgainstSamePromisedExpectation: {
|
|
80
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol
|
|
81
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol
|
|
82
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol
|
|
80
|
+
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
81
|
+
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
82
|
+
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
85
|
* Tests each given single parameter against same given expected value. It
|
|
@@ -106,9 +106,9 @@ export declare const testEachSingleParameterAgainstSameRejectedExpectation: {
|
|
|
106
106
|
* function again.
|
|
107
107
|
*/
|
|
108
108
|
export declare const testEachAgainstSameExpectation: {
|
|
109
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
110
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
111
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
109
|
+
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
110
|
+
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
111
|
+
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
112
112
|
};
|
|
113
113
|
/**
|
|
114
114
|
* Tests each given test set (various list of function parameters) against same
|
|
@@ -121,9 +121,9 @@ export declare const testEachAgainstSameExpectation: {
|
|
|
121
121
|
* function again.
|
|
122
122
|
*/
|
|
123
123
|
export declare const testEachPromiseAgainstSameExpectation: {
|
|
124
|
-
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol
|
|
125
|
-
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol
|
|
126
|
-
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol
|
|
124
|
+
<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
125
|
+
only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
126
|
+
skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
|
|
127
127
|
};
|
|
128
128
|
/**
|
|
129
129
|
* Tests each given test set (various list of function parameters) against same
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clientnode",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1332",
|
|
4
4
|
"description": "upgrade to object orientated rock solid plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"prop-types": "^15.8.1",
|
|
99
99
|
"rimraf": "^6.1.2",
|
|
100
100
|
"typescript-eslint": "^8.48.0",
|
|
101
|
-
"weboptimizer": "^2.0.
|
|
101
|
+
"weboptimizer": "^2.0.1625",
|
|
102
102
|
"webpack-dev-server": "^5.2.2"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|