clientnode 3.0.1138 → 3.0.1139
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/index.d.ts +1 -1
- package/package.json +7 -7
- package/testHelper.d.ts +10 -10
package/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare let globalContext: $Global;
|
|
|
14
14
|
export declare const setGlobalContext: (context: $Global) => void;
|
|
15
15
|
export declare const currentRequire: null | typeof require;
|
|
16
16
|
export declare const currentImport: null | ImportFunction;
|
|
17
|
-
export declare const optionalRequire: <T = unknown>(id: string) =>
|
|
17
|
+
export declare const optionalRequire: <T = unknown>(id: string) => null | T;
|
|
18
18
|
export declare const determine$: (() => $TStatic);
|
|
19
19
|
export declare let $: JQueryStatic;
|
|
20
20
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clientnode",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1139",
|
|
4
4
|
"description": "upgrade to object orientated rock solid plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
"@types/html-minifier": "^4.0.5",
|
|
69
69
|
"@types/imagemin": "^8.0.5",
|
|
70
70
|
"@types/jquery": "^3.5.29",
|
|
71
|
-
"@types/node": "^20.11.
|
|
71
|
+
"@types/node": "^20.11.27",
|
|
72
72
|
"@types/prop-types": "^15.7.11",
|
|
73
73
|
"@types/webpack-env": "^1.18.4",
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
75
|
-
"@typescript-eslint/parser": "^7.
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
75
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
76
76
|
"clientnode": "3.0.1136",
|
|
77
77
|
"documentation-website": "^1.0.326",
|
|
78
78
|
"eslint": "^8.57.0",
|
|
79
79
|
"eslint-config-google": "^0.14.0",
|
|
80
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
80
|
+
"eslint-plugin-jsdoc": "^48.2.1",
|
|
81
81
|
"favicons-webpack-plugin": "^6.0.1",
|
|
82
82
|
"image-minimizer-webpack-plugin": "^4.0.0",
|
|
83
83
|
"jest": "^29.7.0",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"node-fetch": "^3.3.2",
|
|
87
87
|
"prop-types": "^15.8.1",
|
|
88
88
|
"rimraf": "^5.0.5",
|
|
89
|
-
"weboptimizer": "^2.0.
|
|
90
|
-
"webpack-dev-server": "^5.0.
|
|
89
|
+
"weboptimizer": "^2.0.1456",
|
|
90
|
+
"webpack-dev-server": "^5.0.3"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"@babel/runtime": "*",
|
package/testHelper.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const UndefinedSymbol: unique symbol;
|
|
|
11
11
|
*
|
|
12
12
|
* @returns Nothing.
|
|
13
13
|
*/
|
|
14
|
-
export declare const testExpectedType: <Type = unknown, Result extends void | Promise<void> = void>(givenResult: Result |
|
|
14
|
+
export declare const testExpectedType: <Type = unknown, Result extends void | Promise<void> = void>(givenResult: Matchers<Result> | Result, expected: TestSymbol | Type, wrap?: boolean) => Result;
|
|
15
15
|
/**
|
|
16
16
|
* Tests each given test set (expected value follows by various list of
|
|
17
17
|
* function parameters). It respects function signature to raise compile time
|
|
@@ -23,7 +23,7 @@ export declare const testExpectedType: <Type = unknown, Result extends void | Pr
|
|
|
23
23
|
*
|
|
24
24
|
* @returns Nothing.
|
|
25
25
|
*/
|
|
26
|
-
export declare const testEach: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple:
|
|
26
|
+
export declare const testEach: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>) => void;
|
|
27
27
|
/**
|
|
28
28
|
* Tests each given test set (expected value follows by various list of
|
|
29
29
|
* function parameters). It respects function signature to raise compile time
|
|
@@ -35,7 +35,7 @@ export declare const testEach: <FunctionType extends AnyFunction = UnknownFuncti
|
|
|
35
35
|
*
|
|
36
36
|
* @returns Nothing.
|
|
37
37
|
*/
|
|
38
|
-
export declare const testEachPromise: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple:
|
|
38
|
+
export declare const testEachPromise: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>) => void;
|
|
39
39
|
/**
|
|
40
40
|
* Tests each given test set (expected value follows by various list of
|
|
41
41
|
* function parameters). It respects function signature to raise compile time
|
|
@@ -47,7 +47,7 @@ export declare const testEachPromise: <FunctionType extends AnyFunction = Unknow
|
|
|
47
47
|
*
|
|
48
48
|
* @returns Nothing.
|
|
49
49
|
*/
|
|
50
|
-
export declare const testEachPromiseRejection: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple:
|
|
50
|
+
export declare const testEachPromiseRejection: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>) => void;
|
|
51
51
|
/**
|
|
52
52
|
* Tests each given single parameter against same given expected value. It
|
|
53
53
|
* respects function signature to raise compile time errors if given test set
|
|
@@ -59,7 +59,7 @@ export declare const testEachPromiseRejection: <FunctionType extends AnyFunction
|
|
|
59
59
|
*
|
|
60
60
|
* @returns Nothing.
|
|
61
61
|
*/
|
|
62
|
-
export declare const testEachSingleParameterAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected:
|
|
62
|
+
export declare const testEachSingleParameterAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
63
63
|
/**
|
|
64
64
|
* Tests each given single parameter against same given expected value. It
|
|
65
65
|
* respects function signature to raise compile time errors if given test set
|
|
@@ -71,7 +71,7 @@ export declare const testEachSingleParameterAgainstSameExpectation: <FunctionTyp
|
|
|
71
71
|
*
|
|
72
72
|
* @returns Nothing.
|
|
73
73
|
*/
|
|
74
|
-
export declare const testEachSingleParameterAgainstSamePromisedExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: FirstParameter<FunctionType
|
|
74
|
+
export declare const testEachSingleParameterAgainstSamePromisedExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
75
75
|
/**
|
|
76
76
|
* Tests each given single parameter against same given expected value. It
|
|
77
77
|
* respects function signature to raise compile time errors if given test set
|
|
@@ -83,7 +83,7 @@ export declare const testEachSingleParameterAgainstSamePromisedExpectation: <Fun
|
|
|
83
83
|
*
|
|
84
84
|
* @returns Nothing.
|
|
85
85
|
*/
|
|
86
|
-
export declare const testEachSingleParameterAgainstSameRejectedExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: FirstParameter<FunctionType
|
|
86
|
+
export declare const testEachSingleParameterAgainstSameRejectedExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>) => void;
|
|
87
87
|
/**
|
|
88
88
|
* Tests each given test set (various list of function parameters) against same
|
|
89
89
|
* given expected value. It respects function signature to raise compile time
|
|
@@ -96,7 +96,7 @@ export declare const testEachSingleParameterAgainstSameRejectedExpectation: <Fun
|
|
|
96
96
|
*
|
|
97
97
|
* @returns Nothing.
|
|
98
98
|
*/
|
|
99
|
-
export declare const testEachAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected:
|
|
99
|
+
export declare const testEachAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
100
100
|
/**
|
|
101
101
|
* Tests each given test set (various list of function parameters) against same
|
|
102
102
|
* given expected value. It respects function signature to raise compile time
|
|
@@ -109,7 +109,7 @@ export declare const testEachAgainstSameExpectation: <FunctionType extends AnyFu
|
|
|
109
109
|
*
|
|
110
110
|
* @returns Nothing.
|
|
111
111
|
*/
|
|
112
|
-
export declare const testEachPromiseAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Parameters<FunctionType
|
|
112
|
+
export declare const testEachPromiseAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
113
113
|
/**
|
|
114
114
|
* Tests each given test set (various list of function parameters) against same
|
|
115
115
|
* given expected value. It respects function signature to raise compile time
|
|
@@ -122,5 +122,5 @@ export declare const testEachPromiseAgainstSameExpectation: <FunctionType extend
|
|
|
122
122
|
*
|
|
123
123
|
* @returns Nothing.
|
|
124
124
|
*/
|
|
125
|
-
export declare const testEachPromiseRejectionAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Parameters<FunctionType
|
|
125
|
+
export declare const testEachPromiseRejectionAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>) => void;
|
|
126
126
|
export default testEach;
|