clientnode 4.0.1484 → 4.0.1486
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.js +2 -2
- package/dist/array.js +2 -2
- package/dist/bundle/index.js +9 -5
- package/dist/compatible/Logger.js +2 -2
- package/dist/compatible/array.js +2 -2
- package/dist/compatible/data-transfer.js +2 -2
- package/dist/compatible/datetime.js +5 -5
- package/dist/compatible/expression/evaluators.js +5 -5
- package/dist/compatible/expression/index.js +5 -5
- package/dist/compatible/index.js +9 -5
- package/dist/compatible/indicators.js +2 -2
- package/dist/compatible/number.js +2 -2
- package/dist/compatible/object.js +5 -5
- package/dist/compatible/scope.js +6 -4
- package/dist/compatible/string.js +7 -5
- package/dist/compatible/test-helper.js +2 -2
- package/dist/data-transfer.js +2 -2
- package/dist/datetime.js +5 -5
- package/dist/expression/evaluators.js +5 -5
- package/dist/expression/index.js +5 -5
- package/dist/index.js +9 -5
- package/dist/indicators.js +2 -2
- package/dist/number.js +2 -2
- package/dist/object.js +5 -5
- package/dist/scope.js +6 -4
- package/dist/string.d.ts +1 -0
- package/dist/string.js +7 -5
- package/dist/test-helper.js +2 -2
- package/package.json +47 -47
package/dist/test-helper.js
CHANGED
|
@@ -207,7 +207,7 @@ if(Object.prototype.hasOwnProperty.call(value,options.expressionIndicatorKey)||O
|
|
|
207
207
|
*//*
|
|
208
208
|
NOTE: Very complicated section, do only
|
|
209
209
|
changes while having good tests.
|
|
210
|
-
*/for(var _i15=0,_arr6=[options.expressionIndicatorKey,options.executionIndicatorKey];_i15<_arr6.length;_i15++){var type=_arr6[_i15];if(key===type&&typeof target[key]==="string")return _resolve(internalEvaluateAndThrowError(target[key],type))}var resolvedTarget=_resolve(target);if(key==="toString"){var result=internalEvaluateAndThrowError(resolvedTarget);return result[key].bind(result)}if(typeof key!=="string"){var _result$key;var _result=internalEvaluateAndThrowError(resolvedTarget);if((_result$key=_result[key])!==null&&_result$key!==void 0&&_result$key.bind)return _result[key].bind(_result);return _result[key]}for(var _i16=0,_arr7=[options.expressionIndicatorKey,options.executionIndicatorKey];_i16<_arr7.length;_i16++){var _type=_arr7[_i16];if(Object.prototype.hasOwnProperty.call(target,_type))
|
|
210
|
+
*/for(var _i15=0,_arr6=[options.expressionIndicatorKey,options.executionIndicatorKey];_i15<_arr6.length;_i15++){var type=_arr6[_i15];if(key===type&&typeof target[key]==="string")return _resolve(internalEvaluateAndThrowError(target[key],type))}var resolvedTarget=_resolve(target);if(key==="toString"){var result=internalEvaluateAndThrowError(resolvedTarget);return result[key].bind(result)}if(typeof key!=="string"){var _result$key;var _result=internalEvaluateAndThrowError(resolvedTarget);if((_result$key=_result[key])!==null&&_result$key!==void 0&&_result$key.bind)return _result[key].bind(_result);return _result[key]}for(var _i16=0,_arr7=[options.expressionIndicatorKey,options.executionIndicatorKey];_i16<_arr7.length;_i16++){var _type=_arr7[_i16];if(Object.prototype.hasOwnProperty.call(target,_type)){var _result2$key;var _result2=_resolve(internalEvaluateAndThrowError(target[_type],_type));if((_result2$key=_result2[key])!==null&&_result2$key!==void 0&&_result2$key.bind)return _result2[key].bind(_result2);return _result2[key]}}return resolvedTarget[key];// End of complicated stuff.
|
|
211
211
|
},ownKeys:function ownKeys(target){for(var _i17=0,_arr8=[options.expressionIndicatorKey,options.executionIndicatorKey];_i17<_arr8.length;_i17++){var type=_arr8[_i17];if(Object.prototype.hasOwnProperty.call(target,type))return Object.getOwnPropertyNames(_resolve(internalEvaluateAndThrowError(target[type],type)))}return Object.getOwnPropertyNames(target)}});/*
|
|
212
212
|
NOTE: Known proxy polyfills does not provide the
|
|
213
213
|
"__target__" api.
|
|
@@ -294,7 +294,7 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
|
|
|
294
294
|
* @param numberOfLevels - Specifies number of levels to traverse given
|
|
295
295
|
* data structure.
|
|
296
296
|
* @returns Representation string.
|
|
297
|
-
*/var _represent=function represent(object,maximumLengthOfLists,indention,initialIndention,maximumNumberOfLevelsReachedIdentifier,numberOfLevels){if(maximumLengthOfLists===void 0){maximumLengthOfLists=30}if(indention===void 0){indention=" "}if(initialIndention===void 0){initialIndention=""}if(maximumNumberOfLevelsReachedIdentifier===void 0){maximumNumberOfLevelsReachedIdentifier="__maximum_number_of_levels_reached__"}if(numberOfLevels===void 0){numberOfLevels=8}if(numberOfLevels===0)return String(maximumNumberOfLevelsReachedIdentifier);if(object===null)return"null";if(object===undefined)return"undefined";if(typeof object==="string")return"\"".concat(object.replace(/\n/g,"\n".concat(initialIndention)),"\"");if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isNumeric */ .kf)(object)||typeof object==="boolean")return String(object);if(object instanceof Date)return object.toISOString();if(Array.isArray(object)){var
|
|
297
|
+
*/var _represent=function represent(object,maximumLengthOfLists,indention,initialIndention,maximumNumberOfLevelsReachedIdentifier,numberOfLevels){if(maximumLengthOfLists===void 0){maximumLengthOfLists=30}if(indention===void 0){indention=" "}if(initialIndention===void 0){initialIndention=""}if(maximumNumberOfLevelsReachedIdentifier===void 0){maximumNumberOfLevelsReachedIdentifier="__maximum_number_of_levels_reached__"}if(numberOfLevels===void 0){numberOfLevels=8}if(numberOfLevels===0)return String(maximumNumberOfLevelsReachedIdentifier);if(object===null)return"null";if(object===undefined)return"undefined";if(typeof object==="string")return"\"".concat(object.replace(/\n/g,"\n".concat(initialIndention)),"\"");if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isNumeric */ .kf)(object)||typeof object==="boolean")return String(object);if(object instanceof Date)return object.toISOString();if(Array.isArray(object)){var _result3="[";var _firstSeen=false;var _counter=1;var _iterator29=_createForOfIteratorHelper(object),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var item=_step29.value;if(_counter>maximumLengthOfLists){_result3+="\n".concat(initialIndention,"...");break}if(_firstSeen)_result3+=",";_result3+="\n".concat(initialIndention).concat(indention)+_represent(item,maximumLengthOfLists,indention,"".concat(initialIndention).concat(indention),maximumNumberOfLevelsReachedIdentifier,numberOfLevels-1);_firstSeen=true;_counter+=1}}catch(err){_iterator29.e(err)}finally{_iterator29.f()}if(_firstSeen)_result3+="\n".concat(initialIndention);_result3+="]";return _result3}if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isMap */ .jh)(object)){var _result4="";var _firstSeen2=false;var _counter2=1;var _iterator30=_createForOfIteratorHelper(object),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _step30$value=_slicedToArray(_step30.value,2),key=_step30$value[0],_item=_step30$value[1];if(_counter2>maximumLengthOfLists){_result4+=",\n".concat(initialIndention,"...");break}if(_firstSeen2)_result4+=",\n".concat(initialIndention).concat(indention);_result4+=_represent(key,maximumLengthOfLists,indention,"".concat(initialIndention).concat(indention),maximumNumberOfLevelsReachedIdentifier,numberOfLevels-1)+" -> "+_represent(_item,maximumLengthOfLists,indention,"".concat(initialIndention).concat(indention),maximumNumberOfLevelsReachedIdentifier,numberOfLevels-1);_firstSeen2=true;_counter2+=1}}catch(err){_iterator30.e(err)}finally{_iterator30.f()}if(!_firstSeen2)_result4="EmptyMap";return _result4}if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isSet */ .vM)(object)){var _result5="{";var _firstSeen3=false;var _counter3=1;var _iterator31=_createForOfIteratorHelper(object),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _item2=_step31.value;if(_counter3>maximumLengthOfLists){_result5+=",\n".concat(initialIndention,"...");break}if(_firstSeen3)_result5+=",";_result5+="\n".concat(initialIndention).concat(indention)+_represent(_item2,maximumLengthOfLists,indention,"".concat(initialIndention).concat(indention),maximumNumberOfLevelsReachedIdentifier,numberOfLevels-1);_firstSeen3=true;_counter3+=1}}catch(err){_iterator31.e(err)}finally{_iterator31.f()}if(_firstSeen3)_result5+="\n".concat(initialIndention,"}");else _result5="EmptySet";return _result5}if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isFunction */ .Tn)(object))return"__function__";var result="{";var keys=Object.getOwnPropertyNames(object).sort();var firstSeen=false;var counter=1;var _iterator32=_createForOfIteratorHelper(keys),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _key10=_step32.value;if(counter>maximumLengthOfLists){result+=",\n".concat(initialIndention,"...");break}if(firstSeen)result+=",";result+="\n".concat(initialIndention).concat(indention).concat(_key10,": ")+_represent(object[_key10],maximumLengthOfLists,indention,"".concat(initialIndention).concat(indention),maximumNumberOfLevelsReachedIdentifier,numberOfLevels-1);firstSeen=true;counter+=1}}catch(err){_iterator32.e(err)}finally{_iterator32.f()}if(firstSeen)result+="\n".concat(initialIndention);result+="}";return result};/**
|
|
298
298
|
* Sort given objects keys.
|
|
299
299
|
* @param object - Object which keys should be sorted.
|
|
300
300
|
* @returns Sorted list of given keys.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clientnode",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1486",
|
|
4
4
|
"description": "Handy utilities for any JavaScript environments.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
@@ -15,7 +15,15 @@
|
|
|
15
15
|
"url": "https://github.com/thaibault/clientnode/issues"
|
|
16
16
|
},
|
|
17
17
|
"license": "CC-BY-3.0",
|
|
18
|
-
"
|
|
18
|
+
"author": {
|
|
19
|
+
"email": "info@torben.website",
|
|
20
|
+
"name": "Torben Sickert",
|
|
21
|
+
"url": "https://torben.website"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/thaibault/clientnode"
|
|
26
|
+
},
|
|
19
27
|
"type": "module",
|
|
20
28
|
"exports": {
|
|
21
29
|
".": "./dist/index.js",
|
|
@@ -24,6 +32,7 @@
|
|
|
24
32
|
"./property-types": "./dist/property-types.js",
|
|
25
33
|
"./test-helper": "./dist/test-helper.js"
|
|
26
34
|
},
|
|
35
|
+
"main": "dist/index.js",
|
|
27
36
|
"typesVersions": {
|
|
28
37
|
"*": {
|
|
29
38
|
"property-types": [
|
|
@@ -34,25 +43,17 @@
|
|
|
34
43
|
]
|
|
35
44
|
}
|
|
36
45
|
},
|
|
37
|
-
"author": {
|
|
38
|
-
"name": "Torben Sickert",
|
|
39
|
-
"email": "info@torben.website",
|
|
40
|
-
"url": "https://torben.website"
|
|
41
|
-
},
|
|
42
46
|
"files": [
|
|
43
47
|
"dist"
|
|
44
48
|
],
|
|
45
|
-
"
|
|
46
|
-
"type": "git",
|
|
47
|
-
"url": "https://github.com/thaibault/clientnode"
|
|
48
|
-
},
|
|
49
|
+
"sideEffects": false,
|
|
49
50
|
"scripts": {
|
|
50
51
|
"build": "yarn build:types; yarn build:plain; yarn build:compatible; yarn build:compatible:bundle",
|
|
51
|
-
"build:standalone": "npx babel --config-file ./standalone.babel.config.json --source-maps inline --extensions .ts,.tsx --ignore 'src/test/**' --out-dir dist src; yarn make:executable",
|
|
52
|
-
"build:compatible": "weboptimizer build '{__reference__: \"target:compatible\"}'",
|
|
53
52
|
"build:bundle": "weboptimizer build '{__reference__: \"target:bundle\"}'",
|
|
53
|
+
"build:compatible": "weboptimizer build '{__reference__: \"target:compatible\"}'",
|
|
54
54
|
"build:compatible:bundle": "weboptimizer build '{__reference__: [\"target:compatible\", \"target:bundle\"]}'",
|
|
55
55
|
"build:plain": "weboptimizer build",
|
|
56
|
+
"build:standalone": "npx babel --config-file ./standalone.babel.config.json --source-maps inline --extensions .ts,.tsx --ignore 'src/test/**' --out-dir dist src; yarn make:executable",
|
|
56
57
|
"build:types": "weboptimizer build:types",
|
|
57
58
|
"check": "yarn check:types; yarn lint",
|
|
58
59
|
"check:types": "weboptimizer check:types",
|
|
@@ -82,17 +83,17 @@
|
|
|
82
83
|
"@types/ejs": "^3.1.5",
|
|
83
84
|
"@types/html-minifier": "^4.0.6",
|
|
84
85
|
"@types/imagemin": "^9.0.1",
|
|
85
|
-
"@types/node": "^26.
|
|
86
|
+
"@types/node": "^26.2.0",
|
|
86
87
|
"@types/prop-types": "^15.7.15",
|
|
87
88
|
"@types/webpack-env": "^1.18.8",
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
89
|
-
"@typescript-eslint/parser": "^8.
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "^8.67.0",
|
|
90
|
+
"@typescript-eslint/parser": "^8.67.0",
|
|
90
91
|
"babel-plugin-polyfill-corejs3": "^1.0.0",
|
|
91
92
|
"babel-plugin-transform-rewrite-imports": "^1.5.4",
|
|
92
93
|
"clientnode": "workspace:.",
|
|
93
|
-
"eslint": "^10.
|
|
94
|
+
"eslint": "^10.9.0",
|
|
94
95
|
"eslint-config-google": "^0.14.0",
|
|
95
|
-
"eslint-plugin-jsdoc": "^
|
|
96
|
+
"eslint-plugin-jsdoc": "^64.2.1",
|
|
96
97
|
"favicons-webpack-plugin": "^6.0.1",
|
|
97
98
|
"image-minimizer-webpack-plugin": "^5.0.0",
|
|
98
99
|
"jest": "30.4.2",
|
|
@@ -100,9 +101,9 @@
|
|
|
100
101
|
"node-fetch": "^3.3.2",
|
|
101
102
|
"prop-types": "^15.8.1",
|
|
102
103
|
"rimraf": "^6.1.3",
|
|
103
|
-
"typescript-eslint": "^8.
|
|
104
|
-
"web-documentation": "^1.0.
|
|
105
|
-
"weboptimizer": "^4.0.
|
|
104
|
+
"typescript-eslint": "^8.67.0",
|
|
105
|
+
"web-documentation": "^1.0.49",
|
|
106
|
+
"weboptimizer": "^4.0.55",
|
|
106
107
|
"webpack-dev-server": "^6.0.0"
|
|
107
108
|
},
|
|
108
109
|
"peerDependencies": {
|
|
@@ -121,19 +122,18 @@
|
|
|
121
122
|
"optional": true
|
|
122
123
|
}
|
|
123
124
|
},
|
|
124
|
-
"engines": {
|
|
125
|
-
"node": ">=24",
|
|
126
|
-
"npm": ">=11",
|
|
127
|
-
"yarn": ">=4"
|
|
128
|
-
},
|
|
129
125
|
"resolutions": {
|
|
130
|
-
"weboptimizer/clientnode": "4.0.1478",
|
|
131
126
|
"colors": "1.4.0",
|
|
132
|
-
"globals@npm:^14.0.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
133
127
|
"globals@npm:^11.1.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
134
|
-
"globals@npm:^
|
|
128
|
+
"globals@npm:^14.0.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
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.1478"
|
|
131
|
+
},
|
|
132
|
+
"engines": {
|
|
133
|
+
"node": ">=26",
|
|
134
|
+
"npm": ">=12",
|
|
135
|
+
"yarn": ">=4"
|
|
135
136
|
},
|
|
136
|
-
"sideEffects": false,
|
|
137
137
|
"webDocumentation": {
|
|
138
138
|
"languages": [
|
|
139
139
|
"deDE",
|
|
@@ -197,13 +197,24 @@
|
|
|
197
197
|
"base": "dist/"
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
|
-
"target:
|
|
200
|
+
"target:bundle": {
|
|
201
|
+
"injection": {
|
|
202
|
+
"entry": {
|
|
203
|
+
"__evaluate__": "2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2].startsWith('test') ? {testBundle: './test'} : {index: './index'}"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"inPlace": {
|
|
207
|
+
"externalLibrary": {
|
|
208
|
+
"dynamic": true,
|
|
209
|
+
"normal": true
|
|
210
|
+
}
|
|
211
|
+
},
|
|
201
212
|
"module": {
|
|
202
213
|
"preprocessor": {
|
|
203
214
|
"javaScript": {
|
|
204
215
|
"options": {
|
|
205
216
|
"plugins": {
|
|
206
|
-
"
|
|
217
|
+
"__remove__": 1
|
|
207
218
|
}
|
|
208
219
|
}
|
|
209
220
|
}
|
|
@@ -211,28 +222,17 @@
|
|
|
211
222
|
},
|
|
212
223
|
"path": {
|
|
213
224
|
"target": {
|
|
214
|
-
"base": "dist/
|
|
225
|
+
"base": "dist/bundle/"
|
|
215
226
|
}
|
|
216
227
|
}
|
|
217
228
|
},
|
|
218
|
-
"target:
|
|
219
|
-
"injection": {
|
|
220
|
-
"entry": {
|
|
221
|
-
"__evaluate__": "2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2].startsWith('test') ? {testBundle: './test'} : {index: './index'}"
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
"inPlace": {
|
|
225
|
-
"externalLibrary": {
|
|
226
|
-
"dynamic": true,
|
|
227
|
-
"normal": true
|
|
228
|
-
}
|
|
229
|
-
},
|
|
229
|
+
"target:compatible": {
|
|
230
230
|
"module": {
|
|
231
231
|
"preprocessor": {
|
|
232
232
|
"javaScript": {
|
|
233
233
|
"options": {
|
|
234
234
|
"plugins": {
|
|
235
|
-
"
|
|
235
|
+
"__append__": "@babel/plugin-transform-proto-to-assign"
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
}
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
},
|
|
241
241
|
"path": {
|
|
242
242
|
"target": {
|
|
243
|
-
"base": "dist/
|
|
243
|
+
"base": "dist/compatible/"
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
},
|