clientnode 4.0.1430 → 4.0.1432

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 (142) hide show
  1. package/dist/Lock.d.ts +39 -0
  2. package/dist/Lock.js +94 -83
  3. package/dist/Logger.d.ts +102 -0
  4. package/dist/Logger.js +700 -163
  5. package/dist/Semaphore.d.ts +29 -0
  6. package/dist/Semaphore.js +81 -46
  7. package/dist/array.d.ts +150 -0
  8. package/dist/array.js +554 -337
  9. package/dist/bundle/Lock.js +111 -0
  10. package/dist/bundle/Logger.js +690 -0
  11. package/dist/bundle/Semaphore.js +100 -0
  12. package/dist/bundle/array.js +634 -0
  13. package/dist/bundle/cli.js +85 -0
  14. package/dist/bundle/constants.js +225 -0
  15. package/dist/bundle/context.js +242 -0
  16. package/dist/bundle/cookie.js +261 -0
  17. package/dist/bundle/data-transfer.js +726 -0
  18. package/dist/bundle/datetime.js +1036 -0
  19. package/dist/bundle/domNode.js +470 -0
  20. package/dist/bundle/expression/evaluators.js +1087 -0
  21. package/dist/bundle/expression/helper.js +106 -0
  22. package/dist/bundle/expression/index.js +1195 -0
  23. package/dist/bundle/expression/indicator-functions.js +235 -0
  24. package/dist/bundle/expression/type.js +50 -0
  25. package/dist/bundle/filesystem.js +373 -0
  26. package/dist/bundle/function.js +105 -0
  27. package/dist/bundle/index.js +2654 -0
  28. package/dist/bundle/indicators.js +445 -0
  29. package/dist/bundle/number.js +411 -0
  30. package/dist/bundle/object.js +975 -0
  31. package/dist/bundle/process.js +274 -0
  32. package/dist/bundle/property-types.js +167 -0
  33. package/dist/bundle/require.js +179 -0
  34. package/dist/bundle/scope.js +1778 -0
  35. package/dist/bundle/string.js +1066 -0
  36. package/dist/bundle/test-helper.js +676 -0
  37. package/dist/bundle/type.js +50 -0
  38. package/dist/bundle/utility.js +361 -0
  39. package/dist/cli.d.ts +31 -0
  40. package/dist/cli.js +71 -37
  41. package/dist/compatible/Lock.js +111 -0
  42. package/dist/compatible/Logger.js +690 -0
  43. package/dist/compatible/Semaphore.js +100 -0
  44. package/dist/compatible/array.js +634 -0
  45. package/dist/compatible/cli.js +85 -0
  46. package/dist/compatible/constants.js +225 -0
  47. package/dist/compatible/context.js +242 -0
  48. package/dist/compatible/cookie.js +261 -0
  49. package/dist/compatible/data-transfer.js +726 -0
  50. package/dist/compatible/datetime.js +1036 -0
  51. package/dist/compatible/domNode.js +470 -0
  52. package/dist/compatible/expression/evaluators.js +1087 -0
  53. package/dist/compatible/expression/helper.js +106 -0
  54. package/dist/compatible/expression/index.js +1195 -0
  55. package/dist/compatible/expression/indicator-functions.js +235 -0
  56. package/dist/compatible/expression/type.js +50 -0
  57. package/dist/compatible/filesystem.js +373 -0
  58. package/dist/compatible/function.js +105 -0
  59. package/dist/compatible/index.js +2654 -0
  60. package/dist/compatible/indicators.js +445 -0
  61. package/dist/compatible/number.js +411 -0
  62. package/dist/compatible/object.js +975 -0
  63. package/dist/compatible/process.js +274 -0
  64. package/dist/compatible/property-types.js +167 -0
  65. package/dist/compatible/require.js +179 -0
  66. package/dist/compatible/scope.js +1778 -0
  67. package/dist/compatible/string.js +1066 -0
  68. package/dist/compatible/test-helper.js +676 -0
  69. package/dist/compatible/type.js +50 -0
  70. package/dist/compatible/utility.js +361 -0
  71. package/dist/constants.d.ts +99 -0
  72. package/dist/constants.js +209 -110
  73. package/dist/context.d.ts +8 -0
  74. package/dist/context.js +228 -25
  75. package/dist/cookie.d.ts +31 -0
  76. package/dist/cookie.js +225 -48
  77. package/dist/data-transfer.d.ts +45 -0
  78. package/dist/data-transfer.js +710 -166
  79. package/dist/datetime.d.ts +37 -0
  80. package/dist/datetime.js +1031 -241
  81. package/dist/domNode.d.ts +82 -0
  82. package/dist/domNode.js +440 -277
  83. package/dist/expression/evaluators.d.ts +55 -0
  84. package/dist/expression/evaluators.js +1084 -234
  85. package/dist/expression/helper.d.ts +4 -0
  86. package/dist/expression/helper.js +135 -82
  87. package/dist/expression/index.d.ts +7 -0
  88. package/dist/expression/index.js +1217 -10
  89. package/dist/expression/indicator-functions.d.ts +14 -0
  90. package/dist/expression/indicator-functions.js +239 -21
  91. package/dist/expression/type.d.ts +70 -0
  92. package/dist/expression/type.js +34 -4
  93. package/dist/filesystem.d.ts +143 -0
  94. package/dist/filesystem.js +308 -323
  95. package/dist/function.d.ts +20 -0
  96. package/dist/function.js +125 -51
  97. package/dist/index.d.ts +23 -0
  98. package/dist/index.js +2677 -26
  99. package/dist/indicators.d.ts +68 -0
  100. package/dist/indicators.js +426 -68
  101. package/dist/number.d.ts +35 -0
  102. package/dist/number.js +409 -25
  103. package/dist/object.d.ts +215 -0
  104. package/dist/object.js +836 -759
  105. package/dist/process.d.ts +22 -0
  106. package/dist/process.js +245 -40
  107. package/dist/property-types.d.ts +460 -0
  108. package/dist/property-types.js +157 -96
  109. package/dist/require.d.ts +8 -0
  110. package/dist/require.js +163 -66
  111. package/dist/scope.d.ts +44 -0
  112. package/dist/scope.js +1795 -56
  113. package/dist/string.d.ts +299 -0
  114. package/dist/string.js +891 -595
  115. package/dist/test/Lock.d.ts +1 -0
  116. package/dist/test/Logger.d.ts +1 -0
  117. package/dist/test/Semaphore.d.ts +1 -0
  118. package/dist/test/array.d.ts +1 -0
  119. package/dist/test/cookie.d.ts +1 -0
  120. package/dist/test/data-transfer.d.ts +1 -0
  121. package/dist/test/datetime.d.ts +1 -0
  122. package/dist/test/domNode.d.ts +1 -0
  123. package/dist/test/expression/evaluators.d.ts +1 -0
  124. package/dist/test/expression/helper.d.ts +1 -0
  125. package/dist/test/expression/indicator-functions.d.ts +1 -0
  126. package/dist/test/filesystem.d.ts +1 -0
  127. package/dist/test/function.d.ts +1 -0
  128. package/dist/test/indicators.d.ts +1 -0
  129. package/dist/test/number.d.ts +1 -0
  130. package/dist/test/object.d.ts +1 -0
  131. package/dist/test/process.d.ts +1 -0
  132. package/dist/test/property-types.d.ts +1 -0
  133. package/dist/test/scope.d.ts +1 -0
  134. package/dist/test/string.d.ts +1 -0
  135. package/dist/test/utility.d.ts +1 -0
  136. package/dist/test-helper.d.ts +143 -0
  137. package/dist/test-helper.js +527 -172
  138. package/dist/type.d.ts +217 -0
  139. package/dist/type.js +37 -8
  140. package/dist/utility.d.ts +44 -0
  141. package/dist/utility.js +335 -91
  142. package/package.json +3 -3
@@ -0,0 +1,50 @@
1
+ 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;(function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([], factory);
6
+ else {
7
+ var a = factory();
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(this, function() {
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ // The require scope
14
+ /******/ var __webpack_require__ = {};
15
+ /******/
16
+ /************************************************************************/
17
+ /******/ /* webpack/runtime/make namespace object */
18
+ /******/ !function() {
19
+ /******/ // define __esModule on exports
20
+ /******/ __webpack_require__.r = function(exports) {
21
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
22
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
23
+ /******/ }
24
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
25
+ /******/ };
26
+ /******/ }();
27
+ /******/
28
+ /************************************************************************/
29
+ var __webpack_exports__ = {};
30
+ __webpack_require__.r(__webpack_exports__);
31
+ // -*- coding: utf-8 -*-
32
+ /** @module type *//* !
33
+ region header
34
+ [Project page](https://torben.website/clientnode)
35
+
36
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
37
+
38
+ License
39
+ -------
40
+
41
+ This library written by Torben Sickert stands under a creative commons
42
+ naming 3.0 unported license.
43
+ See https://creativecommons.org/licenses/by/3.0/deed.de
44
+ endregion
45
+ */// region imports
46
+
47
+ /******/ return __webpack_exports__;
48
+ /******/ })()
49
+ ;
50
+ });
@@ -0,0 +1,361 @@
1
+ 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;(function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([], factory);
6
+ else {
7
+ var a = factory();
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(this, function() {
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ([
13
+ /* 0 */,
14
+ /* 1 */
15
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
16
+
17
+ "use strict";
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ determineGlobalContext: function() { return /* binding */ determineGlobalContext; },
20
+ /* harmony export */ optionalImport: function() { return /* binding */ optionalImport; },
21
+ /* harmony export */ optionalRequire: function() { return /* binding */ optionalRequire; }
22
+ /* harmony export */ });
23
+ /* unused harmony exports currentRequire, clearRequireCache, isolatedRequire, isImportSyntaxSupported */
24
+ /* module decorator */ module = __webpack_require__.hmd(module);
25
+ // #!/usr/bin/env babel-node
26
+ // -*- coding: utf-8 -*-
27
+ /** @module require *//* !
28
+ region header
29
+ [Project page](https://torben.website/clientnode)
30
+
31
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
32
+
33
+ License
34
+ -------
35
+
36
+ This library written by Torben Sickert stands under a creative commons
37
+ naming 3.0 unported license.
38
+ See https://creativecommons.org/licenses/by/3.0/deed.de
39
+ endregion
40
+ */function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}}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}var determineGlobalContext=function determineGlobalContext(){if(typeof globalThis==="undefined"){if(typeof window==="undefined"){if(typeof __webpack_require__.g==="undefined")return false?0:module;if(Object.prototype.hasOwnProperty.call(__webpack_require__.g,"window"))return __webpack_require__.g.window;return __webpack_require__.g}return window}return globalThis};var globalContext=determineGlobalContext();// Make preprocessed require function available at runtime.
41
+ var currentRequire=typeof globalContext.require==="undefined"?null:globalContext.require;var optionalRequire=function optionalRequire(id){try{return currentRequire?currentRequire(id):null}catch(_unused){return null}};var clearRequireCache=function clearRequireCache(cache){if(cache===void 0){cache=(currentRequire===null||currentRequire===void 0?void 0:currentRequire.cache)||__webpack_require__.c}var backup={};for(var _i=0,_Object$entries=Object.entries(cache);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],_module=_Object$entries$_i[1];backup[key]=_module;delete cache[key]}return backup};var restoreRequireCache=function restoreRequireCache(cache,backup){if(cache===void 0){cache=(currentRequire===null||currentRequire===void 0?void 0:currentRequire.cache)||__webpack_require__.c}clearRequireCache();for(var _i2=0,_Object$entries2=Object.entries(backup);_i2<_Object$entries2.length;_i2++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i2],2),key=_Object$entries2$_i[0],_module2=_Object$entries2$_i[1];cache[key]=_module2}};var isolatedRequire=function isolatedRequire(path,requireFunction){if(requireFunction===void 0){requireFunction=currentRequire||__webpack_require__(5)}var backup=clearRequireCache(requireFunction.cache);try{return requireFunction(path);// eslint-disable-next-line no-useless-catch
42
+ }catch(error){throw error}finally{restoreRequireCache(requireFunction.cache,backup)}};// Make preprocessed import function available at runtime.
43
+ var isImportSyntaxSupported=function isImportSyntaxSupported(){try{new Function("import(\"data:text/javascript,\")");return true}catch(_unused2){return false}};var optionalImport=/*#__PURE__*/function(){var _optionalImport=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id,options){var _t,_t2;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(options===void 0){options={}}_context.p=1;if(!isImportSyntaxSupported()){_context.n=3;break}_context.n=2;return new Function("options","return import('".concat(id,"', options)"))(options);case 2:_t=_context.v;_context.n=4;break;case 3:_t=Promise.resolve(null);case 4:return _context.a(2,_t);case 5:_context.p=5;_t2=_context.v;return _context.a(2,Promise.resolve(null))}},_callee,null,[[1,5]])}));function optionalImport(_x,_x2){return _optionalImport.apply(this,arguments)}return optionalImport}();
44
+
45
+ /***/ }),
46
+ /* 2 */,
47
+ /* 3 */
48
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
49
+
50
+ "use strict";
51
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
52
+ /* harmony export */ isFunction: function() { return /* binding */ isFunction; }
53
+ /* harmony export */ });
54
+ /* unused harmony exports isNumeric, isWindow, isArrayLike, isAnyMatching, isObject, isPlainObject, isSet, isMap, isProxy */
55
+ /* unused harmony import specifier */ var PLAIN_OBJECT_PROTOTYPES;
56
+ /* unused harmony import specifier */ var determineType;
57
+ // #!/usr/bin/env babel-node
58
+ // -*- coding: utf-8 -*-
59
+ /** @module indicators *//* !
60
+ region header
61
+ [Project page](https://torben.website/clientnode)
62
+
63
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
64
+
65
+ License
66
+ -------
67
+
68
+ This library written by Torben Sickert stands under a creative commons
69
+ naming 3.0 unported license.
70
+ See https://creativecommons.org/licenses/by/3.0/deed.de
71
+ endregion
72
+ */function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}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 _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)}/**
73
+ * Determines whether its argument represents a JavaScript number.
74
+ * @param value - Value to analyze.
75
+ * @returns A boolean value indicating whether given object is numeric
76
+ * like.
77
+ */var isNumeric=function isNumeric(value){var type=determineType(value);/*
78
+ NOTE: "parseFloat" "NaNs" numeric-cast false positives ("") but
79
+ misinterprets leading-number strings, particularly hex literals
80
+ ("0x...") subtraction forces infinities to NaN.
81
+ */return["number","string"].includes(type)&&!isNaN(value-parseFloat(value))};/**
82
+ * Determine whether the argument is a window.
83
+ * @param value - Value to check for.
84
+ * @returns Boolean value indicating the result.
85
+ */var isWindow=function isWindow(value){return![null,undefined].includes(value)&&_typeof(value)==="object"&&value===(value===null||value===void 0?void 0:value.window)};/**
86
+ * Checks if given object is similar to an array and can be handled like an
87
+ * array.
88
+ * @param object - Object to check behavior for.
89
+ * @returns A boolean value indicating whether given object is array like.
90
+ */var isArrayLike=function isArrayLike(object){var length;try{length=Boolean(object)&&object.length}catch(_unused){return false}var type=determineType(object);if(type==="function"||isWindow(object))return false;if(type==="array"||length===0)return true;if(typeof length==="number"&&length>0)try{var _dump=object[length-1];return true}catch(_unused2){// Continue regardless of an error.
91
+ }return false};/**
92
+ * Checks whether one of the given pattern matches given string.
93
+ * @param target - Target to check in pattern for.
94
+ * @param pattern - List of pattern to check for.
95
+ * @returns Value "true" if given object is matches by at leas one of the
96
+ * given pattern and "false" otherwise.
97
+ */var isAnyMatching=function isAnyMatching(target,pattern){var _iterator=_createForOfIteratorHelper(pattern),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var currentPattern=_step.value;if(typeof currentPattern==="string"){if(currentPattern===target)return true}else if(currentPattern.test(target))return true}}catch(err){_iterator.e(err)}finally{_iterator.f()}return false};/**
98
+ * Checks whether given object is a native object but not null.
99
+ * @param value - Value to check.
100
+ * @returns Value "true" if given object is a plain javaScript object and
101
+ * "false" otherwise.
102
+ */var isObject=function isObject(value){return value!==null&&_typeof(value)==="object"};/**
103
+ * Checks whether given object is a plain native object.
104
+ * @param value - Value to check.
105
+ * @returns Value "true" if given object is a plain javaScript object and
106
+ * "false" otherwise.
107
+ */var isPlainObject=function isPlainObject(value){return isObject(value)&&PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(value))};/**
108
+ * Checks whether given object is a set.
109
+ * @param value - Value to check.
110
+ * @returns Value "true" if given object is a set and "false" otherwise.
111
+ */var isSet=function isSet(value){return determineType(value)==="set"};/**
112
+ * Checks whether given object is a map.
113
+ * @param value - Value to check.
114
+ * @returns Value "true" if given object is a map and "false" otherwise.
115
+ */var isMap=function isMap(value){return determineType(value)==="map"};/**
116
+ * Checks whether given object is a proxy.
117
+ * @param value - Value to check.
118
+ * @returns Value "true" if given object is a proxy and "false" otherwise.
119
+ */var isProxy=function isProxy(value){return Boolean(value.__target__)};/**
120
+ * Checks whether given object is a function.
121
+ * @param value - Value to check.
122
+ * @returns Value "true" if given object is a function and "false"
123
+ * otherwise.
124
+ */var isFunction=function isFunction(value){return Boolean(value)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(value))};
125
+
126
+ /***/ }),
127
+ /* 4 */
128
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
129
+
130
+ "use strict";
131
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
132
+ /* harmony export */ NOOP: function() { return /* binding */ NOOP; }
133
+ /* harmony export */ });
134
+ /* unused harmony exports globalContext, setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, mockConsole */
135
+ /* unused harmony import specifier */ var CONSOLE_METHODS;
136
+ /* harmony import */ var _require__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
137
+ // #!/usr/bin/env babel-node
138
+ // -*- coding: utf-8 -*-
139
+ /** @module context *//* !
140
+ region header
141
+ [Project page](https://torben.website/clientnode)
142
+
143
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
144
+
145
+ License
146
+ -------
147
+
148
+ This library written by Torben Sickert stands under a creative commons
149
+ naming 3.0 unported license.
150
+ See https://creativecommons.org/licenses/by/3.0/deed.de
151
+ endregion
152
+ */var _optionalRequire$defa,_optionalRequire;function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}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}var globalContext=(0,_require__WEBPACK_IMPORTED_MODULE_0__.determineGlobalContext)();var setGlobalContext=function setGlobalContext(context){globalContext=context};globalContext.fetch=globalContext.fetch?globalContext.fetch.bind(globalContext):(_optionalRequire$defa=(_optionalRequire=(0,_require__WEBPACK_IMPORTED_MODULE_0__.optionalRequire)("node-fetch"))===null||_optionalRequire===void 0?void 0:_optionalRequire.default)!==null&&_optionalRequire$defa!==void 0?_optionalRequire$defa:function(){for(var _len=arguments.length,parameters=new Array(_len),_key=0;_key<_len;_key++){parameters[_key]=arguments[_key]}return (0,_require__WEBPACK_IMPORTED_MODULE_0__.optionalImport)(/* webpackIgnore: true */"node-fetch").then(function(module){var _ref;return(_ref=module).default.apply(_ref,parameters)})};var MAXIMAL_NUMBER_OF_ITERATIONS=(/* unused pure expression or super */ null && ({value:100}));// A no-op dummy function.
153
+ var NOOP=function NOOP(){// Do nothing.
154
+ };var mockConsole=function mockConsole(){// Avoid errors in browsers that lack a console.
155
+ if(!Object.prototype.hasOwnProperty.call(globalContext,"console"))globalContext.console={};if(!globalContext.console)globalContext.console={};var _iterator=_createForOfIteratorHelper(CONSOLE_METHODS),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var methodName=_step.value;if(!(methodName in globalContext.console))globalContext.console[methodName]=NOOP}}catch(err){_iterator.e(err)}finally{_iterator.f()}};
156
+
157
+ /***/ }),
158
+ /* 5 */
159
+ /***/ (function(module) {
160
+
161
+ function webpackEmptyContext(req) {
162
+ var e = new Error("Cannot find module '" + req + "'");
163
+ e.code = 'MODULE_NOT_FOUND';
164
+ throw e;
165
+ }
166
+ webpackEmptyContext.keys = function() { return []; };
167
+ webpackEmptyContext.resolve = webpackEmptyContext;
168
+ webpackEmptyContext.id = 5;
169
+ module.exports = webpackEmptyContext;
170
+
171
+ /***/ }),
172
+ /* 6 */,
173
+ /* 7 */,
174
+ /* 8 */,
175
+ /* 9 */,
176
+ /* 10 */,
177
+ /* 11 */
178
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
179
+
180
+ "use strict";
181
+ __webpack_require__.r(__webpack_exports__);
182
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
183
+ /* harmony export */ debounce: function() { return /* binding */ debounce; },
184
+ /* harmony export */ preventDefault: function() { return /* binding */ preventDefault; },
185
+ /* harmony export */ stopPropagation: function() { return /* binding */ stopPropagation; },
186
+ /* harmony export */ timeout: function() { return /* binding */ timeout; },
187
+ /* harmony export */ trailingThrottle: function() { return /* binding */ trailingThrottle; }
188
+ /* harmony export */ });
189
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
190
+ /* harmony import */ var _indicators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
191
+ // #!/usr/bin/env babel-node
192
+ // -*- coding: utf-8 -*-
193
+ /** @module utility *//* !
194
+ region header
195
+ [Project page](https://torben.website/clientnode)
196
+
197
+ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
198
+
199
+ License
200
+ -------
201
+
202
+ This library written by Torben Sickert stands under a creative commons
203
+ naming 3.0 unported license.
204
+ See https://creativecommons.org/licenses/by/3.0/deed.de
205
+ endregion
206
+ */function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread 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 _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}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}/**
207
+ * Prevents event functions from triggering too often by defining a minimal
208
+ * span between each function call. Additional arguments given to this function
209
+ * will be forwarded to the given event function call.
210
+ * @param callback - The function to call debounced.
211
+ * @param thresholdInMilliseconds - The minimum time span between each
212
+ * function call.
213
+ * @param additionalArguments - Additional arguments to forward to given
214
+ * function.
215
+ * @returns Returns the wrapped method.
216
+ */var trailingThrottle=function trailingThrottle(callback,thresholdInMilliseconds){if(thresholdInMilliseconds===void 0){thresholdInMilliseconds=600}for(var _len=arguments.length,additionalArguments=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++){additionalArguments[_key-2]=arguments[_key]}var timeoutID=null;var recentParameters=[];return function(){for(var _len2=arguments.length,parameters=new Array(_len2),_key2=0;_key2<_len2;_key2++){parameters[_key2]=arguments[_key2]}recentParameters=parameters;if(timeoutID)return;timeoutID=setTimeout(function(){callback.apply(void 0,_toConsumableArray(recentParameters).concat(additionalArguments));// Reset for next cycle.
217
+ timeoutID=null;recentParameters=[]},thresholdInMilliseconds)}};/**
218
+ * Prevents event functions from triggering too close after each trigger by
219
+ * defining a minimal span between each function call. Additional arguments
220
+ * given to this function will be forwarded to the given event function call.
221
+ * @param callback - The function to call debounced.
222
+ * @param thresholdInMilliseconds - The minimum time span between each
223
+ * function call.
224
+ * @param additionalArguments - Additional arguments to forward to given
225
+ * function.
226
+ * @returns Returns the wrapped method.
227
+ */var debounce=function debounce(callback,thresholdInMilliseconds){if(thresholdInMilliseconds===void 0){thresholdInMilliseconds=600}for(var _len3=arguments.length,additionalArguments=new Array(_len3>2?_len3-2:0),_key3=2;_key3<_len3;_key3++){additionalArguments[_key3-2]=arguments[_key3]}var timeoutPromise;var nextResultPromiseResolver;var nextResultPromise=new Promise(function(resolve){nextResultPromiseResolver=resolve});return function(){var _timeoutPromise;for(var _len4=arguments.length,parameters=new Array(_len4),_key4=0;_key4<_len4;_key4++){parameters[_key4]=arguments[_key4]}parameters=parameters.concat(additionalArguments);(_timeoutPromise=timeoutPromise)===null||_timeoutPromise===void 0||_timeoutPromise.clear();timeoutPromise=timeout(function(){nextResultPromiseResolver(callback.apply(void 0,_toConsumableArray(parameters)));nextResultPromise=new Promise(function(resolve){nextResultPromiseResolver=resolve})},thresholdInMilliseconds);return nextResultPromise}};/**
228
+ * Triggers given callback after given duration. Supports unlimited
229
+ * duration length and returns a promise which will be resolved after given
230
+ * duration has been passed.
231
+ * @param parameters - Observes the first three existing parameters. If one
232
+ * is a number it will be interpreted as delay in milliseconds until given
233
+ * callback will be triggered. If one is of type function it will be used
234
+ * as callback and if one is of type boolean it will indicate if returning
235
+ * promise should be rejected or resolved if given internally created
236
+ * timeout should be canceled. Additional parameters will be forwarded to
237
+ * given callback.
238
+ * @returns A promise resolving after given delay or being rejected if
239
+ * value "true" is within one of the first three parameters. The promise
240
+ * holds a boolean indicating whether timeout has been canceled or
241
+ * resolved.
242
+ */var timeout=function timeout(){for(var _len5=arguments.length,parameters=new Array(_len5),_key5=0;_key5<_len5;_key5++){parameters[_key5]=arguments[_key5]}var callback=_context__WEBPACK_IMPORTED_MODULE_0__.NOOP;var delayInMilliseconds=0;var throwOnTimeoutClear=false;for(var _i=0,_parameters=parameters;_i<_parameters.length;_i++){var value=_parameters[_i];if(typeof value==="number"&&!isNaN(value))delayInMilliseconds=value;else if(typeof value==="boolean")throwOnTimeoutClear=value;else if((0,_indicators__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value))callback=value}var rejectCallback;var resolveCallback;var result=new Promise(function(resolve,reject){rejectCallback=reject;resolveCallback=resolve});var wrappedCallback=function wrappedCallback(){var _callback;(_callback=callback).call.apply(_callback,[result].concat(parameters));resolveCallback(false)};var maximumTimeoutDelayInMilliseconds=2147483647;if(delayInMilliseconds<=maximumTimeoutDelayInMilliseconds)result.timeoutID=setTimeout(wrappedCallback,delayInMilliseconds);else{/*
243
+ Determine the number of times we need to delay by maximum
244
+ possible timeout duration.
245
+ */var numberOfRemainingTimeouts=Math.floor(delayInMilliseconds/maximumTimeoutDelayInMilliseconds);var finalTimeoutDuration=delayInMilliseconds%maximumTimeoutDelayInMilliseconds;var _delay=function delay(){if(numberOfRemainingTimeouts>0){numberOfRemainingTimeouts-=1;result.timeoutID=setTimeout(_delay,maximumTimeoutDelayInMilliseconds)}else result.timeoutID=setTimeout(wrappedCallback,finalTimeoutDuration)};_delay()}result.clear=function(){if(Object.prototype.hasOwnProperty.call(result,"timeoutID")){clearTimeout(result.timeoutID);(throwOnTimeoutClear?rejectCallback:resolveCallback)(true)}};return result};var preventDefault=function preventDefault(event){event.preventDefault()};var stopPropagation=function stopPropagation(event){event.stopPropagation()};
246
+
247
+ /***/ })
248
+ /******/ ]);
249
+ /************************************************************************/
250
+ /******/ // The module cache
251
+ /******/ var __webpack_module_cache__ = {};
252
+ /******/
253
+ /******/ // The require function
254
+ /******/ function __webpack_require__(moduleId) {
255
+ /******/ // Check if module is in cache
256
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
257
+ /******/ if (cachedModule !== undefined) {
258
+ /******/ return cachedModule.exports;
259
+ /******/ }
260
+ /******/ // Create a new module (and put it into the cache)
261
+ /******/ var module = __webpack_module_cache__[moduleId] = {
262
+ /******/ id: moduleId,
263
+ /******/ loaded: false,
264
+ /******/ exports: {}
265
+ /******/ };
266
+ /******/
267
+ /******/ // Execute the module function
268
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
269
+ /******/
270
+ /******/ // Flag the module as loaded
271
+ /******/ module.loaded = true;
272
+ /******/
273
+ /******/ // Return the exports of the module
274
+ /******/ return module.exports;
275
+ /******/ }
276
+ /******/
277
+ /******/ // expose the module cache
278
+ /******/ __webpack_require__.c = __webpack_module_cache__;
279
+ /******/
280
+ /************************************************************************/
281
+ /******/ /* webpack/runtime/define property getters */
282
+ /******/ !function() {
283
+ /******/ // define getter/value functions for harmony exports
284
+ /******/ __webpack_require__.d = function(exports, definition) {
285
+ /******/ if(Array.isArray(definition)) {
286
+ /******/ var i = 0;
287
+ /******/ while(i < definition.length) {
288
+ /******/ var key = definition[i++];
289
+ /******/ var binding = definition[i++];
290
+ /******/ if(!__webpack_require__.o(exports, key)) {
291
+ /******/ if(binding === 0) {
292
+ /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
293
+ /******/ } else {
294
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
295
+ /******/ }
296
+ /******/ } else if(binding === 0) { i++; }
297
+ /******/ }
298
+ /******/ } else {
299
+ /******/ for(var key in definition) {
300
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
301
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
302
+ /******/ }
303
+ /******/ }
304
+ /******/ }
305
+ /******/ };
306
+ /******/ }();
307
+ /******/
308
+ /******/ /* webpack/runtime/global */
309
+ /******/ !function() {
310
+ /******/ __webpack_require__.g = (function() {
311
+ /******/ if (typeof globalThis === 'object') return globalThis;
312
+ /******/ try {
313
+ /******/ return this || new Function('return this')();
314
+ /******/ } catch (e) {
315
+ /******/ if (typeof window === 'object') return window;
316
+ /******/ }
317
+ /******/ })();
318
+ /******/ }();
319
+ /******/
320
+ /******/ /* webpack/runtime/harmony module decorator */
321
+ /******/ !function() {
322
+ /******/ __webpack_require__.hmd = function(module) {
323
+ /******/ module = Object.create(module);
324
+ /******/ if (!module.children) module.children = [];
325
+ /******/ Object.defineProperty(module, 'exports', {
326
+ /******/ enumerable: true,
327
+ /******/ set: function() {
328
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
329
+ /******/ }
330
+ /******/ });
331
+ /******/ return module;
332
+ /******/ };
333
+ /******/ }();
334
+ /******/
335
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
336
+ /******/ !function() {
337
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
338
+ /******/ }();
339
+ /******/
340
+ /******/ /* webpack/runtime/make namespace object */
341
+ /******/ !function() {
342
+ /******/ // define __esModule on exports
343
+ /******/ __webpack_require__.r = function(exports) {
344
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
345
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
346
+ /******/ }
347
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
348
+ /******/ };
349
+ /******/ }();
350
+ /******/
351
+ /************************************************************************/
352
+ /******/
353
+ /******/ // module cache are used so entry inlining is disabled
354
+ /******/ // startup
355
+ /******/ // Load entry module and return exports
356
+ /******/ var __webpack_exports__ = __webpack_require__(11);
357
+ /******/
358
+ /******/ return __webpack_exports__;
359
+ /******/ })()
360
+ ;
361
+ });
package/dist/cli.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ export declare const CLI_COLOR: {
2
+ readonly black: "\u001B[30m";
3
+ readonly blink: "\u001B[5m";
4
+ readonly blue: "\u001B[0;34m";
5
+ readonly bold: "\u001B[1m";
6
+ readonly cyan: "\u001B[36m";
7
+ readonly darkGray: "\u001B[0;90m";
8
+ readonly default: "\u001B[0m";
9
+ readonly dim: "\u001B[2m";
10
+ readonly green: "\u001B[32m";
11
+ readonly invert: "\u001B[7m";
12
+ readonly invisible: "\u001B[8m";
13
+ readonly lightBlue: "\u001B[0;94m";
14
+ readonly lightCyan: "\u001B[0;96m";
15
+ readonly lightGray: "\u001B[0;37m";
16
+ readonly lightGreen: "\u001B[0;92m";
17
+ readonly lightMagenta: "\u001B[0;95m";
18
+ readonly lightRed: "\u001B[0;91m";
19
+ readonly lightYellow: "\u001B[0;93m";
20
+ readonly magenta: "\u001B[35m";
21
+ readonly nodim: "\u001B[22m";
22
+ readonly noblink: "\u001B[25m";
23
+ readonly nobold: "\u001B[21m";
24
+ readonly noinvert: "\u001B[27m";
25
+ readonly noinvisible: "\u001B[28m";
26
+ readonly nounderline: "\u001B[24m";
27
+ readonly red: "\u001B[31m";
28
+ readonly underline: "\u001B[4m";
29
+ readonly white: "\u001B[37m";
30
+ readonly yellow: "\u001B[33m";
31
+ };
package/dist/cli.js CHANGED
@@ -1,9 +1,71 @@
1
+ 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;(function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([], factory);
6
+ else {
7
+ var a = factory();
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(this, function() {
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ // The require scope
14
+ /******/ var __webpack_require__ = {};
15
+ /******/
16
+ /************************************************************************/
17
+ /******/ /* webpack/runtime/define property getters */
18
+ /******/ !function() {
19
+ /******/ // define getter/value functions for harmony exports
20
+ /******/ __webpack_require__.d = function(exports, definition) {
21
+ /******/ if(Array.isArray(definition)) {
22
+ /******/ var i = 0;
23
+ /******/ while(i < definition.length) {
24
+ /******/ var key = definition[i++];
25
+ /******/ var binding = definition[i++];
26
+ /******/ if(!__webpack_require__.o(exports, key)) {
27
+ /******/ if(binding === 0) {
28
+ /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
29
+ /******/ } else {
30
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
31
+ /******/ }
32
+ /******/ } else if(binding === 0) { i++; }
33
+ /******/ }
34
+ /******/ } else {
35
+ /******/ for(var key in definition) {
36
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
37
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
38
+ /******/ }
39
+ /******/ }
40
+ /******/ }
41
+ /******/ };
42
+ /******/ }();
43
+ /******/
44
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
45
+ /******/ !function() {
46
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
47
+ /******/ }();
48
+ /******/
49
+ /******/ /* webpack/runtime/make namespace object */
50
+ /******/ !function() {
51
+ /******/ // define __esModule on exports
52
+ /******/ __webpack_require__.r = function(exports) {
53
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
54
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
55
+ /******/ }
56
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
57
+ /******/ };
58
+ /******/ }();
59
+ /******/
60
+ /************************************************************************/
61
+ var __webpack_exports__ = {};
62
+ __webpack_require__.r(__webpack_exports__);
63
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
64
+ /* harmony export */ CLI_COLOR: function() { return /* binding */ CLI_COLOR; }
65
+ /* harmony export */ });
1
66
  // #!/usr/bin/env babel-node
2
67
  // -*- coding: utf-8 -*-
3
- /** @module cli */
4
- 'use strict';
5
-
6
- /* !
68
+ /** @module cli *//* !
7
69
  region header
8
70
  [Project page](https://torben.website/clientnode)
9
71
 
@@ -16,36 +78,8 @@
16
78
  naming 3.0 unported license.
17
79
  See https://creativecommons.org/licenses/by/3.0/deed.de
18
80
  endregion
19
- */
20
- export const CLI_COLOR = {
21
- black: '\x1b[30m',
22
- blink: '\x1b[5m',
23
- blue: '\x1b[0;34m',
24
- bold: '\x1b[1m',
25
- cyan: '\x1b[36m',
26
- darkGray: '\x1b[0;90m',
27
- default: '\x1b[0m',
28
- dim: '\x1b[2m',
29
- green: '\x1b[32m',
30
- invert: '\x1b[7m',
31
- invisible: '\x1b[8m',
32
- lightBlue: '\x1b[0;94m',
33
- lightCyan: '\x1b[0;96m',
34
- lightGray: '\x1b[0;37m',
35
- lightGreen: '\x1b[0;92m',
36
- lightMagenta: '\x1b[0;95m',
37
- lightRed: '\x1b[0;91m',
38
- lightYellow: '\x1b[0;93m',
39
- magenta: '\x1b[35m',
40
- nodim: '\x1b[22m',
41
- noblink: '\x1b[25m',
42
- nobold: '\x1b[21m',
43
- noinvert: '\x1b[27m',
44
- noinvisible: '\x1b[28m',
45
- nounderline: '\x1b[24m',
46
- red: '\x1b[31m',
47
- underline: '\x1b[4m',
48
- white: '\x1b[37m',
49
- yellow: '\x1b[33m'
50
- };
51
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vc3JjL2NsaS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyAjIS91c3IvYmluL2VudiBiYWJlbC1ub2RlXG4vLyAtKi0gY29kaW5nOiB1dGYtOCAtKi1cbi8qKiBAbW9kdWxlIGNsaSAqL1xuJ3VzZSBzdHJpY3QnXG4vKiAhXG4gICAgcmVnaW9uIGhlYWRlclxuICAgIFtQcm9qZWN0IHBhZ2VdKGh0dHBzOi8vdG9yYmVuLndlYnNpdGUvY2xpZW50bm9kZSlcblxuICAgIENvcHlyaWdodCBUb3JiZW4gU2lja2VydCAoaW5mb1tcIn5hdH5cIl10b3JiZW4ud2Vic2l0ZSkgMTYuMTIuMjAxMlxuXG4gICAgTGljZW5zZVxuICAgIC0tLS0tLS1cblxuICAgIFRoaXMgbGlicmFyeSB3cml0dGVuIGJ5IFRvcmJlbiBTaWNrZXJ0IHN0YW5kcyB1bmRlciBhIGNyZWF0aXZlIGNvbW1vbnNcbiAgICBuYW1pbmcgMy4wIHVucG9ydGVkIGxpY2Vuc2UuXG4gICAgU2VlIGh0dHBzOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS8zLjAvZGVlZC5kZVxuICAgIGVuZHJlZ2lvblxuKi9cbmV4cG9ydCBjb25zdCBDTElfQ09MT1IgPSB7XG4gICAgYmxhY2s6ICdcXHgxYlszMG0nLFxuICAgIGJsaW5rOiAnXFx4MWJbNW0nLFxuICAgIGJsdWU6ICdcXHgxYlswOzM0bScsXG4gICAgYm9sZDogJ1xceDFiWzFtJyxcbiAgICBjeWFuOiAnXFx4MWJbMzZtJyxcbiAgICBkYXJrR3JheTogJ1xceDFiWzA7OTBtJyxcbiAgICBkZWZhdWx0OiAnXFx4MWJbMG0nLFxuICAgIGRpbTogJ1xceDFiWzJtJyxcbiAgICBncmVlbjogJ1xceDFiWzMybScsXG4gICAgaW52ZXJ0OiAnXFx4MWJbN20nLFxuICAgIGludmlzaWJsZTogJ1xceDFiWzhtJyxcbiAgICBsaWdodEJsdWU6ICdcXHgxYlswOzk0bScsXG4gICAgbGlnaHRDeWFuOiAnXFx4MWJbMDs5Nm0nLFxuICAgIGxpZ2h0R3JheTogJ1xceDFiWzA7MzdtJyxcbiAgICBsaWdodEdyZWVuOiAnXFx4MWJbMDs5Mm0nLFxuICAgIGxpZ2h0TWFnZW50YTogJ1xceDFiWzA7OTVtJyxcbiAgICBsaWdodFJlZDogJ1xceDFiWzA7OTFtJyxcbiAgICBsaWdodFllbGxvdzogJ1xceDFiWzA7OTNtJyxcbiAgICBtYWdlbnRhOiAnXFx4MWJbMzVtJyxcbiAgICBub2RpbTogJ1xceDFiWzIybScsXG4gICAgbm9ibGluazogJ1xceDFiWzI1bScsXG4gICAgbm9ib2xkOiAnXFx4MWJbMjFtJyxcbiAgICBub2ludmVydDogJ1xceDFiWzI3bScsXG4gICAgbm9pbnZpc2libGU6ICdcXHgxYlsyOG0nLFxuICAgIG5vdW5kZXJsaW5lOiAnXFx4MWJbMjRtJyxcbiAgICByZWQ6ICdcXHgxYlszMW0nLFxuICAgIHVuZGVybGluZTogJ1xceDFiWzRtJyxcbiAgICB3aGl0ZTogJ1xceDFiWzM3bScsXG4gICAgeWVsbG93OiAnXFx4MWJbMzNtJ1xufSBhcyBjb25zdFxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQSxZQUFZOztBQUNaO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxPQUFPLE1BQU0sU0FBUyxHQUFHO0VBQ3JCLEtBQUssRUFBRSxVQUFVO0VBQ2pCLEtBQUssRUFBRSxTQUFTO0VBQ2hCLElBQUksRUFBRSxZQUFZO0VBQ2xCLElBQUksRUFBRSxTQUFTO0VBQ2YsSUFBSSxFQUFFLFVBQVU7RUFDaEIsUUFBUSxFQUFFLFlBQVk7RUFDdEIsT0FBTyxFQUFFLFNBQVM7RUFDbEIsR0FBRyxFQUFFLFNBQVM7RUFDZCxLQUFLLEVBQUUsVUFBVTtFQUNqQixNQUFNLEVBQUUsU0FBUztFQUNqQixTQUFTLEVBQUUsU0FBUztFQUNwQixTQUFTLEVBQUUsWUFBWTtFQUN2QixTQUFTLEVBQUUsWUFBWTtFQUN2QixTQUFTLEVBQUUsWUFBWTtFQUN2QixVQUFVLEVBQUUsWUFBWTtFQUN4QixZQUFZLEVBQUUsWUFBWTtFQUMxQixRQUFRLEVBQUUsWUFBWTtFQUN0QixXQUFXLEVBQUUsWUFBWTtFQUN6QixPQUFPLEVBQUUsVUFBVTtFQUNuQixLQUFLLEVBQUUsVUFBVTtFQUNqQixPQUFPLEVBQUUsVUFBVTtFQUNuQixNQUFNLEVBQUUsVUFBVTtFQUNsQixRQUFRLEVBQUUsVUFBVTtFQUNwQixXQUFXLEVBQUUsVUFBVTtFQUN2QixXQUFXLEVBQUUsVUFBVTtFQUN2QixHQUFHLEVBQUUsVUFBVTtFQUNmLFNBQVMsRUFBRSxTQUFTO0VBQ3BCLEtBQUssRUFBRSxVQUFVO0VBQ2pCLE1BQU0sRUFBRTtBQUNaLENBQVUiLCJpZ25vcmVMaXN0IjpbXX0=
81
+ */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"};
82
+ /******/ return __webpack_exports__;
83
+ /******/ })()
84
+ ;
85
+ });