clientnode 4.0.1504 → 4.0.1506

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.
Files changed (60) hide show
  1. package/dist/Lock.js +8 -27
  2. package/dist/Logger.js +34 -85
  3. package/dist/Semaphore.js +8 -27
  4. package/dist/array.js +10 -48
  5. package/dist/bundle/index.js +424 -440
  6. package/dist/cli.d.ts +1 -31
  7. package/dist/cli.js +77 -32
  8. package/dist/compatible/Lock.js +8 -27
  9. package/dist/compatible/Logger.js +34 -85
  10. package/dist/compatible/Semaphore.js +8 -27
  11. package/dist/compatible/array.js +10 -48
  12. package/dist/compatible/cli.js +77 -32
  13. package/dist/compatible/constants.js +11 -29
  14. package/dist/compatible/context.js +29 -57
  15. package/dist/compatible/cookie.js +27 -58
  16. package/dist/compatible/data-transfer.js +29 -61
  17. package/dist/compatible/datetime.js +41 -68
  18. package/dist/compatible/domNode.js +27 -59
  19. package/dist/compatible/expression/evaluators.js +41 -60
  20. package/dist/compatible/expression/helper.js +8 -31
  21. package/dist/compatible/expression/index.js +45 -85
  22. package/dist/compatible/expression/indicator-functions.js +10 -44
  23. package/dist/compatible/filesystem.js +29 -57
  24. package/dist/compatible/function.js +8 -32
  25. package/dist/compatible/index.js +98 -115
  26. package/dist/compatible/indicators.js +10 -41
  27. package/dist/compatible/module.js +27 -50
  28. package/dist/compatible/number.js +10 -36
  29. package/dist/compatible/object.js +39 -65
  30. package/dist/compatible/process.js +27 -55
  31. package/dist/compatible/scope.js +58 -146
  32. package/dist/compatible/string.js +39 -68
  33. package/dist/compatible/test-helper.js +10 -35
  34. package/dist/compatible/utility.js +27 -55
  35. package/dist/constants.d.ts +31 -0
  36. package/dist/constants.js +11 -29
  37. package/dist/context.js +29 -57
  38. package/dist/cookie.js +27 -58
  39. package/dist/data-transfer.js +29 -61
  40. package/dist/datetime.js +41 -68
  41. package/dist/domNode.js +27 -59
  42. package/dist/expression/evaluators.js +41 -60
  43. package/dist/expression/helper.js +8 -31
  44. package/dist/expression/index.js +45 -85
  45. package/dist/expression/indicator-functions.js +10 -44
  46. package/dist/filesystem.js +29 -57
  47. package/dist/function.js +8 -32
  48. package/dist/index.js +98 -115
  49. package/dist/indicators.js +10 -41
  50. package/dist/module.js +27 -50
  51. package/dist/number.js +10 -36
  52. package/dist/object.js +39 -65
  53. package/dist/process.js +27 -55
  54. package/dist/scope.js +58 -146
  55. package/dist/string.d.ts +5 -4
  56. package/dist/string.js +39 -68
  57. package/dist/test-helper.js +10 -35
  58. package/dist/type.d.ts +1 -1
  59. package/dist/utility.js +27 -55
  60. package/package.json +4 -4
@@ -18,7 +18,7 @@ module.exports = x({ });
18
18
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
19
  /* harmony export */ rq: function() { return /* binding */ CLASS_TO_TYPE_MAPPING; }
20
20
  /* harmony export */ });
21
- /* unused harmony exports DEFAULT_ENCODING, CLOSE_EVENT_NAMES, CONSOLE_METHODS, VALUE_COPY_SYMBOL, IGNORE_NULL_AND_UNDEFINED_SYMBOL, ABBREVIATIONS, ANIMATION_END_EVENT_NAMES, KEY_CODES, KEYBOARD_CODES, LOCALES, PLAIN_OBJECT_PROTOTYPES, SPECIAL_REGEX_SEQUENCES, TRANSITION_END_EVENT_NAMES */
21
+ /* unused harmony exports CLI_COLOR, DEFAULT_ENCODING, CLOSE_EVENT_NAMES, CONSOLE_METHODS, VALUE_COPY_SYMBOL, IGNORE_NULL_AND_UNDEFINED_SYMBOL, ABBREVIATIONS, ANIMATION_END_EVENT_NAMES, KEY_CODES, KEYBOARD_CODES, LOCALES, PLAIN_OBJECT_PROTOTYPES, SPECIAL_REGEX_SEQUENCES, TRANSITION_END_EVENT_NAMES */
22
22
  // #!/usr/bin/env babel-node
23
23
  // -*- coding: utf-8 -*-
24
24
  /** @module constants *//* !
@@ -34,7 +34,7 @@ module.exports = x({ });
34
34
  naming 3.0 unported license.
35
35
  See https://creativecommons.org/licenses/by/3.0/deed.de
36
36
  endregion
37
- */var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=(/* unused pure expression or super */ null && (["debug","error","info","log","warn"]));var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
37
+ */var CLI_COLOR=(/* unused pure expression or super */ null && ({black:"\x1B[30m",blink:"\x1B[5m",blue:"\x1B[0;34m",bold:"\x1B[1m",cyan:"\x1B[36m",darkGray:"\x1B[0;90m",default:"\x1B[0m",dim:"\x1B[2m",green:"\x1B[32m",invert:"\x1B[7m",invisible:"\x1B[8m",lightBlue:"\x1B[0;94m",lightCyan:"\x1B[0;96m",lightGray:"\x1B[0;37m",lightGreen:"\x1B[0;92m",lightMagenta:"\x1B[0;95m",lightRed:"\x1B[0;91m",lightYellow:"\x1B[0;93m",magenta:"\x1B[35m",nodim:"\x1B[22m",noblink:"\x1B[25m",nobold:"\x1B[21m",noinvert:"\x1B[27m",noinvisible:"\x1B[28m",nounderline:"\x1B[24m",red:"\x1B[31m",underline:"\x1B[4m",white:"\x1B[37m",yellow:"\x1B[33m"}));var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=(/* unused pure expression or super */ null && (["debug","error","info","log","warn"]));var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
38
38
  // conversion.
39
39
  var ABBREVIATIONS=(/* unused pure expression or super */ null && (["html","id","url","us","de","api","href"]));// Saves a string with all css3 browser specific animation end event names.
40
40
  var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
@@ -317,12 +317,6 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
317
317
  /* 4 */
318
318
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
319
319
 
320
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
321
- /* harmony export */ Tn: function() { return /* binding */ isFunction; },
322
- /* harmony export */ jh: function() { return /* binding */ isMap; },
323
- /* harmony export */ kf: function() { return /* binding */ isNumeric; },
324
- /* harmony export */ vM: function() { return /* binding */ isSet; }
325
- /* harmony export */ });
326
320
  /* unused harmony exports isWindow, isArrayLike, isAnyMatching, isObject, isPlainObject, isProxy */
327
321
  /* unused harmony import specifier */ var PLAIN_OBJECT_PROTOTYPES;
328
322
  /* unused harmony import specifier */ var determineType;
@@ -443,36 +437,17 @@ module.exports = x({ });
443
437
  /******/
444
438
  /************************************************************************/
445
439
  /******/ /* webpack/runtime/define property getters */
446
- /******/ !function() {
447
- /******/ // define getter/value functions for harmony exports
448
- /******/ __webpack_require__.d = function(exports, definition) {
449
- /******/ if(Array.isArray(definition)) {
450
- /******/ var i = 0;
451
- /******/ while(i < definition.length) {
452
- /******/ var key = definition[i++];
453
- /******/ var binding = definition[i++];
454
- /******/ if(!__webpack_require__.o(exports, key)) {
455
- /******/ if(binding === 0) {
456
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
457
- /******/ } else {
458
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
459
- /******/ }
460
- /******/ } else if(binding === 0) { i++; }
461
- /******/ }
462
- /******/ } else {
463
- /******/ for(var key in definition) {
464
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
465
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
466
- /******/ }
467
- /******/ }
440
+ /******/ // define getter/value functions for harmony exports
441
+ /******/ __webpack_require__.d = function(exports, definition) {
442
+ /******/ for(var key in definition) {
443
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
444
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
468
445
  /******/ }
469
- /******/ };
470
- /******/ }();
446
+ /******/ }
447
+ /******/ };
471
448
  /******/
472
449
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
473
- /******/ !function() {
474
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
475
- /******/ }();
450
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
476
451
  /******/
477
452
  /************************************************************************/
478
453
 
package/dist/type.d.ts CHANGED
@@ -218,7 +218,7 @@ export type EvaluationResult<Type = string> = PositiveEvaluationResult<Type> | N
218
218
  export type LockCallbackFunction<Type> = (description?: string) => Promise<Type> | Type;
219
219
  export interface StringMarkOptions {
220
220
  marker: ((foundWord: string, markedTarget: Array<unknown>) => unknown) | string;
221
- normalizer: (value: unknown) => string;
221
+ normalizer: <T extends RegExp | string>(value: T) => T;
222
222
  skipTagDelimitedParts: null | [string, string];
223
223
  }
224
224
  export interface InterruptableScrollToOptions {
package/dist/utility.js CHANGED
@@ -14,11 +14,6 @@ module.exports = x({ });
14
14
  /* 2 */
15
15
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
16
16
 
17
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
19
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
20
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
21
- /* harmony export */ });
22
17
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
23
18
  /* module decorator */ module = __webpack_require__.hmd(module);
24
19
  // #!/usr/bin/env babel-node
@@ -285,63 +280,40 @@ timeoutID=null;recentParameters=[]},thresholdInMilliseconds)}};/**
285
280
  /******/
286
281
  /************************************************************************/
287
282
  /******/ /* webpack/runtime/define property getters */
288
- /******/ !function() {
289
- /******/ // define getter/value functions for harmony exports
290
- /******/ __webpack_require__.d = function(exports, definition) {
291
- /******/ if(Array.isArray(definition)) {
292
- /******/ var i = 0;
293
- /******/ while(i < definition.length) {
294
- /******/ var key = definition[i++];
295
- /******/ var binding = definition[i++];
296
- /******/ if(!__webpack_require__.o(exports, key)) {
297
- /******/ if(binding === 0) {
298
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
299
- /******/ } else {
300
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
301
- /******/ }
302
- /******/ } else if(binding === 0) { i++; }
303
- /******/ }
304
- /******/ } else {
305
- /******/ for(var key in definition) {
306
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
307
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
308
- /******/ }
309
- /******/ }
283
+ /******/ // define getter/value functions for harmony exports
284
+ /******/ __webpack_require__.d = function(exports, definition) {
285
+ /******/ for(var key in definition) {
286
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
287
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
310
288
  /******/ }
311
- /******/ };
312
- /******/ }();
289
+ /******/ }
290
+ /******/ };
313
291
  /******/
314
292
  /******/ /* webpack/runtime/global */
315
- /******/ !function() {
316
- /******/ __webpack_require__.g = (function() {
317
- /******/ if (typeof globalThis === 'object') return globalThis;
318
- /******/ try {
319
- /******/ return this || new Function('return this')();
320
- /******/ } catch (e) {
321
- /******/ if (typeof window === 'object') return window;
322
- /******/ }
323
- /******/ })();
324
- /******/ }();
293
+ /******/ __webpack_require__.g = (function() {
294
+ /******/ if (typeof globalThis === 'object') return globalThis;
295
+ /******/ try {
296
+ /******/ return this || new Function('return this')();
297
+ /******/ } catch (e) {
298
+ /******/ if (typeof window === 'object') return window;
299
+ /******/ }
300
+ /******/ })();
325
301
  /******/
326
302
  /******/ /* webpack/runtime/harmony module decorator */
327
- /******/ !function() {
328
- /******/ __webpack_require__.hmd = function(module) {
329
- /******/ module = Object.create(module);
330
- /******/ if (!module.children) module.children = [];
331
- /******/ Object.defineProperty(module, 'exports', {
332
- /******/ enumerable: true,
333
- /******/ set: function() {
334
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
335
- /******/ }
336
- /******/ });
337
- /******/ return module;
338
- /******/ };
339
- /******/ }();
303
+ /******/ __webpack_require__.hmd = function(module) {
304
+ /******/ module = Object.create(module);
305
+ /******/ if (!module.children) module.children = [];
306
+ /******/ Object.defineProperty(module, 'exports', {
307
+ /******/ enumerable: true,
308
+ /******/ set: function() {
309
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
310
+ /******/ }
311
+ /******/ });
312
+ /******/ return module;
313
+ /******/ };
340
314
  /******/
341
315
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
342
- /******/ !function() {
343
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
344
- /******/ }();
316
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
345
317
  /******/
346
318
  /************************************************************************/
347
319
  /******/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clientnode",
3
- "version": "4.0.1504",
3
+ "version": "4.0.1506",
4
4
  "description": "Handy utilities for any JavaScript environments.",
5
5
  "keywords": [
6
6
  "client",
@@ -93,10 +93,10 @@
93
93
  "clientnode": "workspace:.",
94
94
  "eslint": "^10.9.1",
95
95
  "eslint-config-google": "^0.14.0",
96
- "eslint-plugin-jsdoc": "^64.3.4",
96
+ "eslint-plugin-jsdoc": "^64.3.5",
97
97
  "favicons-webpack-plugin": "^6.0.1",
98
98
  "image-minimizer-webpack-plugin": "^5.0.0",
99
- "jest": "30.5.1",
99
+ "jest": "^30.5.1",
100
100
  "jsdoc": "^4.0.5",
101
101
  "node-fetch": "^3.3.2",
102
102
  "prop-types": "^15.8.1",
@@ -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
- "webpack": ">=5.109.2 <5.110.0"
130
+ "weboptimizer/clientnode": "4.0.1504"
131
131
  },
132
132
  "engines": {
133
133
  "node": ">=26",