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
package/dist/Lock.js CHANGED
@@ -3,36 +3,17 @@ if(typeof window==='undefined'||window===null)var window=(typeof globalThis==='u
3
3
  /******/
4
4
  /************************************************************************/
5
5
  /******/ /* webpack/runtime/define property getters */
6
- /******/ !function() {
7
- /******/ // define getter/value functions for harmony exports
8
- /******/ __webpack_require__.d = function(exports, definition) {
9
- /******/ if(Array.isArray(definition)) {
10
- /******/ var i = 0;
11
- /******/ while(i < definition.length) {
12
- /******/ var key = definition[i++];
13
- /******/ var binding = definition[i++];
14
- /******/ if(!__webpack_require__.o(exports, key)) {
15
- /******/ if(binding === 0) {
16
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
17
- /******/ } else {
18
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
19
- /******/ }
20
- /******/ } else if(binding === 0) { i++; }
21
- /******/ }
22
- /******/ } else {
23
- /******/ for(var key in definition) {
24
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
- /******/ }
27
- /******/ }
6
+ /******/ // define getter/value functions for harmony exports
7
+ /******/ __webpack_require__.d = function(exports, definition) {
8
+ /******/ for(var key in definition) {
9
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
10
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
28
11
  /******/ }
29
- /******/ };
30
- /******/ }();
12
+ /******/ }
13
+ /******/ };
31
14
  /******/
32
15
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
33
- /******/ !function() {
34
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
35
- /******/ }();
16
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
36
17
  /******/
37
18
  /************************************************************************/
38
19
  var __webpack_exports__ = {};
package/dist/Logger.js CHANGED
@@ -15,6 +15,7 @@ module.exports = x({ });
15
15
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
16
16
 
17
17
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18
+ /* harmony export */ l_: function() { return /* binding */ CLI_COLOR; },
18
19
  /* harmony export */ rq: function() { return /* binding */ CLASS_TO_TYPE_MAPPING; }
19
20
  /* harmony export */ });
20
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 */
@@ -33,7 +34,7 @@ module.exports = x({ });
33
34
  naming 3.0 unported license.
34
35
  See https://creativecommons.org/licenses/by/3.0/deed.de
35
36
  endregion
36
- */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={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
37
38
  // conversion.
38
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.
39
40
  var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
@@ -46,11 +47,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
46
47
  /* 2 */
47
48
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
48
49
 
49
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
50
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
51
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
52
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
53
- /* harmony export */ });
54
50
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
55
51
  /* module decorator */ module = __webpack_require__.hmd(module);
56
52
  // #!/usr/bin/env babel-node
@@ -497,36 +493,12 @@ module.exports = x({ });
497
493
  /* 15 */
498
494
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
499
495
 
500
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
501
- /* harmony export */ l: function() { return /* binding */ CLI_COLOR; }
502
- /* harmony export */ });
503
- // #!/usr/bin/env babel-node
504
- // -*- coding: utf-8 -*-
505
- /** @module cli *//* !
506
- region header
507
- [Project page](https://torben.website/clientnode)
508
-
509
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
510
-
511
- License
512
- -------
513
-
514
- This library written by Torben Sickert stands under a creative commons
515
- naming 3.0 unported license.
516
- See https://creativecommons.org/licenses/by/3.0/deed.de
517
- endregion
518
- */var CLI_COLOR={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"};
519
-
520
- /***/ }),
521
- /* 16 */
522
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
523
-
524
496
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
525
497
  /* harmony export */ A_: function() { return /* binding */ LEVELS; },
526
498
  /* harmony export */ Vy: function() { return /* binding */ Logger; },
527
499
  /* harmony export */ Wh: function() { return /* binding */ LEVELS_COLOR; }
528
500
  /* harmony export */ });
529
- /* harmony import */ var _cli_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
501
+ /* harmony import */ var _cli_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
530
502
  /* harmony import */ var _context_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
531
503
  /* harmony import */ var _indicators_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
532
504
  /* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
@@ -545,7 +517,7 @@ module.exports = x({ });
545
517
  naming 3.0 unported license.
546
518
  See https://creativecommons.org/licenses/by/3.0/deed.de
547
519
  endregion
548
- */var _Logger;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)};var LEVELS=["error","critical","warn","info","debug"];var LEVELS_COLOR=[_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.red,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.magenta,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.yellow,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.green,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.blue];/**
520
+ */var _Logger;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)};var LEVELS=["error","critical","warn","info","debug"];var LEVELS_COLOR=[_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.red,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.magenta,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.yellow,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.green,_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.blue];/**
549
521
  * This plugin provides such interface logic like generic controller logic for
550
522
  * integrating plugins into $, mutual exclusion for dependent gui elements,
551
523
  * logging additional string, array or function handling. A set of helper
@@ -572,8 +544,8 @@ module.exports = x({ });
572
544
  * log level specific annotations.
573
545
  * @param level - Description of log messages importance.
574
546
  * @param additionalArguments - Additional values to print.
575
- */},{key:"log",value:function log(object,force,avoidAnnotation,level){if(force===void 0){force=false}if(avoidAnnotation===void 0){avoidAnnotation=false}if(level===void 0){level="info"}var currentLevelIndex=LEVELS.indexOf(this.level);var levelIndex=LEVELS.indexOf(level);if(force||currentLevelIndex>=levelIndex){var _globalContext$consol;var messages=[];var annotation="".concat(LEVELS_COLOR[levelIndex]).concat(level)+"".concat(_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.default,":").concat(this.name,":")+"".concat(new Date().toISOString(),":");for(var _len=arguments.length,additionalArguments=new Array(_len>4?_len-4:0),_key=4;_key<_len;_key++){additionalArguments[_key-4]=arguments[_key]}if(avoidAnnotation)messages.push(object);else if(typeof object==="string")messages.push.apply(messages,[annotation,object].concat(additionalArguments));else if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_2__/* .isNumeric */ .kf)(object)||typeof object==="boolean")messages.push.apply(messages,[annotation,object.toString()].concat(additionalArguments));else{var multiLineAnnotation=annotation.substring(0,annotation.length-1);var lineLength=79-2;// Color codes are invisible so we have to add it.
576
- var remainingLength=lineLength+LEVELS_COLOR[levelIndex].length+_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l.default.length-multiLineAnnotation.length;var halfRemainingLength=Math.floor(remainingLength/2);this.log(",".concat("-".repeat(halfRemainingLength))+multiLineAnnotation+"-".repeat(halfRemainingLength)+"".concat("-".repeat(remainingLength%2),","),force,true,level);this.log(object,force,true,level);this.log("'".concat("-".repeat(lineLength),"'"),force,true,level)}if(messages.length)if(!(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console&&level in _context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console)||_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console[level]===_context_js__WEBPACK_IMPORTED_MODULE_1__/* .NOOP */ .tE){var _globalContext$window;if(Object.prototype.hasOwnProperty.call(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz,"window")&&Object.prototype.hasOwnProperty.call(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.window,"alert"))(_globalContext$window=_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.window)===null||_globalContext$window===void 0||_globalContext$window.alert(messages.join(" "))}else(_globalContext$consol=_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console)[level].apply(_globalContext$consol,messages)}}/**
547
+ */},{key:"log",value:function log(object,force,avoidAnnotation,level){if(force===void 0){force=false}if(avoidAnnotation===void 0){avoidAnnotation=false}if(level===void 0){level="info"}var currentLevelIndex=LEVELS.indexOf(this.level);var levelIndex=LEVELS.indexOf(level);if(force||currentLevelIndex>=levelIndex){var _globalContext$consol;var messages=[];var annotation="".concat(LEVELS_COLOR[levelIndex]).concat(level)+"".concat(_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.default,":").concat(this.name,":")+"".concat(new Date().toISOString(),":");for(var _len=arguments.length,additionalArguments=new Array(_len>4?_len-4:0),_key=4;_key<_len;_key++){additionalArguments[_key-4]=arguments[_key]}if(avoidAnnotation)messages.push(object);else if(typeof object==="string")messages.push.apply(messages,[annotation,object].concat(additionalArguments));else if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_2__/* .isNumeric */ .kf)(object)||typeof object==="boolean")messages.push.apply(messages,[annotation,object.toString()].concat(additionalArguments));else{var multiLineAnnotation=annotation.substring(0,annotation.length-1);var lineLength=79-2;// Color codes are invisible so we have to add it.
548
+ var remainingLength=lineLength+LEVELS_COLOR[levelIndex].length+_cli_js__WEBPACK_IMPORTED_MODULE_0__/* .CLI_COLOR */ .l_.default.length-multiLineAnnotation.length;var halfRemainingLength=Math.floor(remainingLength/2);this.log(",".concat("-".repeat(halfRemainingLength))+multiLineAnnotation+"-".repeat(halfRemainingLength)+"".concat("-".repeat(remainingLength%2),","),force,true,level);this.log(object,force,true,level);this.log("'".concat("-".repeat(lineLength),"'"),force,true,level)}if(messages.length)if(!(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console&&level in _context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console)||_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console[level]===_context_js__WEBPACK_IMPORTED_MODULE_1__/* .NOOP */ .tE){var _globalContext$window;if(Object.prototype.hasOwnProperty.call(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz,"window")&&Object.prototype.hasOwnProperty.call(_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.window,"alert"))(_globalContext$window=_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.window)===null||_globalContext$window===void 0||_globalContext$window.alert(messages.join(" "))}else(_globalContext$consol=_context_js__WEBPACK_IMPORTED_MODULE_1__/* .globalContext */ .Lz.console)[level].apply(_globalContext$consol,messages)}}/**
577
549
  * Wrapper method for the native console method usually provided by
578
550
  * interpreter.
579
551
  * @param object - Any object to print.
@@ -650,70 +622,47 @@ var remainingLength=lineLength+LEVELS_COLOR[levelIndex].length+_cli_js__WEBPACK_
650
622
  /******/
651
623
  /************************************************************************/
652
624
  /******/ /* webpack/runtime/define property getters */
653
- /******/ !function() {
654
- /******/ // define getter/value functions for harmony exports
655
- /******/ __webpack_require__.d = function(exports, definition) {
656
- /******/ if(Array.isArray(definition)) {
657
- /******/ var i = 0;
658
- /******/ while(i < definition.length) {
659
- /******/ var key = definition[i++];
660
- /******/ var binding = definition[i++];
661
- /******/ if(!__webpack_require__.o(exports, key)) {
662
- /******/ if(binding === 0) {
663
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
664
- /******/ } else {
665
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
666
- /******/ }
667
- /******/ } else if(binding === 0) { i++; }
668
- /******/ }
669
- /******/ } else {
670
- /******/ for(var key in definition) {
671
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
672
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
673
- /******/ }
674
- /******/ }
625
+ /******/ // define getter/value functions for harmony exports
626
+ /******/ __webpack_require__.d = function(exports, definition) {
627
+ /******/ for(var key in definition) {
628
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
629
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
675
630
  /******/ }
676
- /******/ };
677
- /******/ }();
631
+ /******/ }
632
+ /******/ };
678
633
  /******/
679
634
  /******/ /* webpack/runtime/global */
680
- /******/ !function() {
681
- /******/ __webpack_require__.g = (function() {
682
- /******/ if (typeof globalThis === 'object') return globalThis;
683
- /******/ try {
684
- /******/ return this || new Function('return this')();
685
- /******/ } catch (e) {
686
- /******/ if (typeof window === 'object') return window;
687
- /******/ }
688
- /******/ })();
689
- /******/ }();
635
+ /******/ __webpack_require__.g = (function() {
636
+ /******/ if (typeof globalThis === 'object') return globalThis;
637
+ /******/ try {
638
+ /******/ return this || new Function('return this')();
639
+ /******/ } catch (e) {
640
+ /******/ if (typeof window === 'object') return window;
641
+ /******/ }
642
+ /******/ })();
690
643
  /******/
691
644
  /******/ /* webpack/runtime/harmony module decorator */
692
- /******/ !function() {
693
- /******/ __webpack_require__.hmd = function(module) {
694
- /******/ module = Object.create(module);
695
- /******/ if (!module.children) module.children = [];
696
- /******/ Object.defineProperty(module, 'exports', {
697
- /******/ enumerable: true,
698
- /******/ set: function() {
699
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
700
- /******/ }
701
- /******/ });
702
- /******/ return module;
703
- /******/ };
704
- /******/ }();
645
+ /******/ __webpack_require__.hmd = function(module) {
646
+ /******/ module = Object.create(module);
647
+ /******/ if (!module.children) module.children = [];
648
+ /******/ Object.defineProperty(module, 'exports', {
649
+ /******/ enumerable: true,
650
+ /******/ set: function() {
651
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
652
+ /******/ }
653
+ /******/ });
654
+ /******/ return module;
655
+ /******/ };
705
656
  /******/
706
657
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
707
- /******/ !function() {
708
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
709
- /******/ }();
658
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
710
659
  /******/
711
660
  /************************************************************************/
712
661
  /******/
713
662
  /******/ // module cache are used so entry inlining is disabled
714
663
  /******/ // startup
715
664
  /******/ // Load entry module and return exports
716
- /******/ var __webpack_exports__ = __webpack_require__(16);
665
+ /******/ var __webpack_exports__ = __webpack_require__(15);
717
666
  /******/ var __webpack_exports__LEVELS = __webpack_exports__.A_;
718
667
  /******/ var __webpack_exports__LEVELS_COLOR = __webpack_exports__.Wh;
719
668
  /******/ var __webpack_exports__Logger = __webpack_exports__.Vy;
package/dist/Semaphore.js CHANGED
@@ -3,36 +3,17 @@ if(typeof window==='undefined'||window===null)var window=(typeof globalThis==='u
3
3
  /******/
4
4
  /************************************************************************/
5
5
  /******/ /* webpack/runtime/define property getters */
6
- /******/ !function() {
7
- /******/ // define getter/value functions for harmony exports
8
- /******/ __webpack_require__.d = function(exports, definition) {
9
- /******/ if(Array.isArray(definition)) {
10
- /******/ var i = 0;
11
- /******/ while(i < definition.length) {
12
- /******/ var key = definition[i++];
13
- /******/ var binding = definition[i++];
14
- /******/ if(!__webpack_require__.o(exports, key)) {
15
- /******/ if(binding === 0) {
16
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
17
- /******/ } else {
18
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
19
- /******/ }
20
- /******/ } else if(binding === 0) { i++; }
21
- /******/ }
22
- /******/ } else {
23
- /******/ for(var key in definition) {
24
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
- /******/ }
27
- /******/ }
6
+ /******/ // define getter/value functions for harmony exports
7
+ /******/ __webpack_require__.d = function(exports, definition) {
8
+ /******/ for(var key in definition) {
9
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
10
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
28
11
  /******/ }
29
- /******/ };
30
- /******/ }();
12
+ /******/ }
13
+ /******/ };
31
14
  /******/
32
15
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
33
- /******/ !function() {
34
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
35
- /******/ }();
16
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
36
17
  /******/
37
18
  /************************************************************************/
38
19
  var __webpack_exports__ = {};
package/dist/array.js CHANGED
@@ -18,7 +18,7 @@ module.exports = x({ });
18
18
  /* harmony export */ jE: function() { return /* binding */ PLAIN_OBJECT_PROTOTYPES; },
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, 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, 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.
@@ -440,58 +440,20 @@ module.exports = x({ });
440
440
  /******/
441
441
  /************************************************************************/
442
442
  /******/ /* webpack/runtime/define property getters */
443
- /******/ !function() {
444
- /******/ // define getter/value functions for harmony exports
445
- /******/ __webpack_require__.d = function(exports, definition) {
446
- /******/ if(Array.isArray(definition)) {
447
- /******/ var i = 0;
448
- /******/ while(i < definition.length) {
449
- /******/ var key = definition[i++];
450
- /******/ var binding = definition[i++];
451
- /******/ if(!__webpack_require__.o(exports, key)) {
452
- /******/ if(binding === 0) {
453
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
454
- /******/ } else {
455
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
456
- /******/ }
457
- /******/ } else if(binding === 0) { i++; }
458
- /******/ }
459
- /******/ } else {
460
- /******/ for(var key in definition) {
461
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
462
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
463
- /******/ }
464
- /******/ }
443
+ /******/ // define getter/value functions for harmony exports
444
+ /******/ __webpack_require__.d = function(exports, definition) {
445
+ /******/ for(var key in definition) {
446
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
447
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
465
448
  /******/ }
466
- /******/ };
467
- /******/ }();
449
+ /******/ }
450
+ /******/ };
468
451
  /******/
469
452
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
470
- /******/ !function() {
471
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
472
- /******/ }();
453
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
473
454
  /******/
474
455
  /************************************************************************/
475
456
  var __webpack_exports__ = {};
476
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
477
- /* harmony export */ Am: function() { return /* binding */ unique; },
478
- /* harmony export */ En: function() { return /* binding */ paginate; },
479
- /* harmony export */ Hb: function() { return /* binding */ removeArrayItem; },
480
- /* harmony export */ Ht: function() { return /* binding */ extractIfPropertyMatches; },
481
- /* harmony export */ Ny: function() { return /* binding */ _permute2; },
482
- /* harmony export */ QR: function() { return /* binding */ makeRange; },
483
- /* harmony export */ ST: function() { return /* binding */ aggregatePropertyIfEqual; },
484
- /* harmony export */ UX: function() { return /* binding */ sortTopological; },
485
- /* harmony export */ _2: function() { return /* binding */ sumUpProperty; },
486
- /* harmony export */ bH: function() { return /* binding */ permuteLength; },
487
- /* harmony export */ dO: function() { return /* binding */ deleteEmptyItems; },
488
- /* harmony export */ gv: function() { return /* binding */ makeArray; },
489
- /* harmony export */ h1: function() { return /* binding */ merge; },
490
- /* harmony export */ o6: function() { return /* binding */ extract; },
491
- /* harmony export */ q6: function() { return /* binding */ extractIfPropertyExists; },
492
- /* harmony export */ u7: function() { return /* binding */ extractIfMatches; },
493
- /* harmony export */ y$: function() { return /* binding */ intersect; }
494
- /* harmony export */ });
495
457
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
496
458
  /* harmony import */ var _indicators_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
497
459
  // #!/usr/bin/env babel-node