clientnode 4.0.1451 → 4.0.1452

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 (67) hide show
  1. package/dist/Logger.js +106 -70
  2. package/dist/array.js +18 -17
  3. package/dist/bundle/Logger.js +106 -70
  4. package/dist/bundle/array.js +18 -17
  5. package/dist/bundle/constants.js +6 -6
  6. package/dist/bundle/context.js +85 -49
  7. package/dist/bundle/cookie.js +54 -17
  8. package/dist/bundle/data-transfer.js +111 -75
  9. package/dist/bundle/datetime.js +105 -69
  10. package/dist/bundle/domNode.js +74 -37
  11. package/dist/bundle/expression/evaluators.js +118 -82
  12. package/dist/bundle/expression/index.js +126 -90
  13. package/dist/bundle/expression/indicator-functions.js +20 -20
  14. package/dist/bundle/filesystem.js +88 -52
  15. package/dist/bundle/index.js +223 -187
  16. package/dist/bundle/indicators.js +13 -12
  17. package/dist/bundle/module.js +46 -9
  18. package/dist/bundle/number.js +13 -12
  19. package/dist/bundle/object.js +106 -70
  20. package/dist/bundle/process.js +54 -17
  21. package/dist/bundle/scope.js +159 -123
  22. package/dist/bundle/string.js +106 -70
  23. package/dist/bundle/test-helper.js +49 -49
  24. package/dist/bundle/utility.js +95 -59
  25. package/dist/compatible/Logger.js +106 -70
  26. package/dist/compatible/array.js +18 -17
  27. package/dist/compatible/constants.js +6 -6
  28. package/dist/compatible/context.js +85 -49
  29. package/dist/compatible/cookie.js +54 -17
  30. package/dist/compatible/data-transfer.js +111 -75
  31. package/dist/compatible/datetime.js +105 -69
  32. package/dist/compatible/domNode.js +74 -37
  33. package/dist/compatible/expression/evaluators.js +118 -82
  34. package/dist/compatible/expression/index.js +126 -90
  35. package/dist/compatible/expression/indicator-functions.js +20 -20
  36. package/dist/compatible/filesystem.js +88 -52
  37. package/dist/compatible/index.js +223 -187
  38. package/dist/compatible/indicators.js +13 -12
  39. package/dist/compatible/module.js +46 -9
  40. package/dist/compatible/number.js +13 -12
  41. package/dist/compatible/object.js +106 -70
  42. package/dist/compatible/process.js +54 -17
  43. package/dist/compatible/scope.js +159 -123
  44. package/dist/compatible/string.js +106 -70
  45. package/dist/compatible/test-helper.js +49 -49
  46. package/dist/compatible/utility.js +95 -59
  47. package/dist/constants.js +6 -6
  48. package/dist/context.js +85 -49
  49. package/dist/cookie.js +54 -17
  50. package/dist/data-transfer.js +111 -75
  51. package/dist/datetime.js +105 -69
  52. package/dist/domNode.js +74 -37
  53. package/dist/expression/evaluators.js +118 -82
  54. package/dist/expression/index.js +126 -90
  55. package/dist/expression/indicator-functions.js +20 -20
  56. package/dist/filesystem.js +88 -52
  57. package/dist/index.js +223 -187
  58. package/dist/indicators.js +13 -12
  59. package/dist/module.js +46 -9
  60. package/dist/number.js +13 -12
  61. package/dist/object.js +106 -70
  62. package/dist/process.js +54 -17
  63. package/dist/scope.js +159 -123
  64. package/dist/string.js +106 -70
  65. package/dist/test-helper.js +49 -49
  66. package/dist/utility.js +95 -59
  67. package/package.json +12 -18
@@ -11,11 +11,56 @@ module.exports = x({ });
11
11
 
12
12
  /***/ }),
13
13
  /* 1 */,
14
- /* 2 */,
15
- /* 3 */
16
- /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
14
+ /* 2 */
15
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
17
16
 
18
- __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
17
+ __webpack_require__.a(module, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
20
+ /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
21
+ /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
22
+ /* harmony export */ });
23
+ /* unused harmony exports isImportSyntaxSupported, currentRequire, clearRequireCache, isolatedRequire */
24
+ /* module decorator */ module = __webpack_require__.hmd(module);
25
+ // #!/usr/bin/env babel-node
26
+ // -*- coding: utf-8 -*-
27
+ /** @module module *//* !
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 _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}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):(_defaults(e,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 import function available at runtime.
41
+ var isImportSyntaxSupported=function isImportSyntaxSupported(){try{// eslint-disable-next-line @typescript-eslint/no-implied-eval
42
+ new Function("import(\"data:text/javascript,\")");return true}catch(_unused){return false}};// Make preprocessed require function available at runtime.
43
+ var customRequire=typeof globalContext.require==="undefined"?null:globalContext.require;if(!customRequire&&isImportSyntaxSupported())try{var _await$Function=/*
44
+ eslint-disable
45
+ @typescript-eslint/no-implied-eval,
46
+ @typescript-eslint/no-unsafe-call
47
+ */await new Function("return import(\"node:module\")")(),createRequire=_await$Function.createRequire;/*
48
+ eslint-enable
49
+ @typescript-eslint/no-implied-eval,
50
+ @typescript-eslint/no-unsafe-call
51
+ */// eslint-disable-next-line @typescript-eslint/no-unsafe-call
52
+ customRequire=createRequire("file:///__w/clientnode/clientnode/src/module.ts")}catch(_unused2){// Ignore error.
53
+ }var currentRequire=customRequire;var optionalRequire=function optionalRequire(id){try{return currentRequire?currentRequire(id):null}catch(_unused3){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__(6)}var backup=clearRequireCache(requireFunction.cache);try{return requireFunction(path);// eslint-disable-next-line no-useless-catch
54
+ }catch(error){throw error}finally{restoreRequireCache(requireFunction.cache,backup)}};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=5;break;case 3:_context.n=4;return Promise.resolve(null);case 4:_t=_context.v;case 5:return _context.a(2,_t);case 6:_context.p=6;_t2=_context.v;_context.n=7;return Promise.resolve(null);case 7:return _context.a(2,_context.v)}},_callee,null,[[1,6]])}));function optionalImport(_x,_x2){return _optionalImport.apply(this,arguments)}return optionalImport}();
55
+ __webpack_async_result__();
56
+ } catch(e) { __webpack_async_result__(e); } }, 1);
57
+
58
+ /***/ }),
59
+ /* 3 */,
60
+ /* 4 */
61
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
62
+
63
+ __webpack_require__.a(module, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
19
64
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20
65
  /* harmony export */ Tn: function() { return /* binding */ isFunction; }
21
66
  /* harmony export */ });
@@ -95,16 +140,16 @@ __webpack_async_result__();
95
140
  } catch(e) { __webpack_async_result__(e); } });
96
141
 
97
142
  /***/ }),
98
- /* 4 */
99
- /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
143
+ /* 5 */
144
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
100
145
 
101
- __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
146
+ __webpack_require__.a(module, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
102
147
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
103
148
  /* harmony export */ tE: function() { return /* binding */ NOOP; }
104
149
  /* harmony export */ });
105
150
  /* unused harmony exports globalContext, setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, mockConsole */
106
151
  /* unused harmony import specifier */ var CONSOLE_METHODS;
107
- /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
152
+ /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
108
153
  var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_module_js__WEBPACK_IMPORTED_MODULE_0__]);
109
154
  var __webpack_async_dependencies_result__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
110
155
  _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_async_dependencies_result__[0];
@@ -131,60 +176,30 @@ __webpack_async_result__();
131
176
  } catch(e) { __webpack_async_result__(e); } });
132
177
 
133
178
  /***/ }),
134
- /* 5 */
135
- /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
179
+ /* 6 */
180
+ /***/ (function(module) {
136
181
 
137
- __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
138
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
139
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
140
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
141
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
142
- /* harmony export */ });
143
- /* unused harmony exports isImportSyntaxSupported, currentRequire, clearRequireCache, isolatedRequire */
144
- // #!/usr/bin/env babel-node
145
- // -*- coding: utf-8 -*-
146
- /** @module module *//* !
147
- region header
148
- [Project page](https://torben.website/clientnode)
149
-
150
- Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
151
-
152
- License
153
- -------
154
-
155
- This library written by Torben Sickert stands under a creative commons
156
- naming 3.0 unported license.
157
- See https://creativecommons.org/licenses/by/3.0/deed.de
158
- endregion
159
- */function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}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):(_defaults(e,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 typeof module==="undefined"?{}: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 import function available at runtime.
160
- var isImportSyntaxSupported=function isImportSyntaxSupported(){try{// eslint-disable-next-line @typescript-eslint/no-implied-eval
161
- new Function("import(\"data:text/javascript,\")");return true}catch(_unused){return false}};// Make preprocessed require function available at runtime.
162
- var customRequire=typeof globalContext.require==="undefined"?null:globalContext.require;if(!customRequire&&isImportSyntaxSupported())try{var _await$Function=/*
163
- eslint-disable
164
- @typescript-eslint/no-implied-eval,
165
- @typescript-eslint/no-unsafe-call
166
- */await new Function("return import(\"node:module\")")(),createRequire=_await$Function.createRequire;/*
167
- eslint-enable
168
- @typescript-eslint/no-implied-eval,
169
- @typescript-eslint/no-unsafe-call
170
- */// eslint-disable-next-line @typescript-eslint/no-unsafe-call
171
- customRequire=createRequire("file:///__w/clientnode/clientnode/src/module.ts")}catch(_unused2){// Ignore error.
172
- }var currentRequire=customRequire;var optionalRequire=function optionalRequire(id){try{return currentRequire?currentRequire(id):null}catch(_unused3){return null}};var clearRequireCache=function clearRequireCache(cache){if(cache===void 0){cache=(currentRequire===null||currentRequire===void 0?void 0:currentRequire.cache)||require.cache}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)||require.cache}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||require}var backup=clearRequireCache(requireFunction.cache);try{return requireFunction(path);// eslint-disable-next-line no-useless-catch
173
- }catch(error){throw error}finally{restoreRequireCache(requireFunction.cache,backup)}};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=5;break;case 3:_context.n=4;return Promise.resolve(null);case 4:_t=_context.v;case 5:return _context.a(2,_t);case 6:_context.p=6;_t2=_context.v;_context.n=7;return Promise.resolve(null);case 7:return _context.a(2,_context.v)}},_callee,null,[[1,6]])}));function optionalImport(_x,_x2){return _optionalImport.apply(this,arguments)}return optionalImport}();
174
- __webpack_async_result__();
175
- } catch(e) { __webpack_async_result__(e); } }, 1);
182
+ function webpackEmptyContext(req) {
183
+ var e = new Error("Cannot find module '" + req + "'");
184
+ e.code = 'MODULE_NOT_FOUND';
185
+ throw e;
186
+ }
187
+ webpackEmptyContext.keys = function() { return []; };
188
+ webpackEmptyContext.resolve = webpackEmptyContext;
189
+ webpackEmptyContext.id = 6;
190
+ module.exports = webpackEmptyContext;
176
191
 
177
192
  /***/ }),
178
- /* 6 */,
179
193
  /* 7 */,
180
194
  /* 8 */,
181
195
  /* 9 */,
182
196
  /* 10 */,
183
197
  /* 11 */,
184
- /* 12 */
185
- /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
198
+ /* 12 */,
199
+ /* 13 */
200
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
186
201
 
187
- __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
202
+ __webpack_require__.a(module, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
188
203
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
189
204
  /* harmony export */ dG: function() { return /* binding */ stopPropagation; },
190
205
  /* harmony export */ p0: function() { return /* binding */ trailingThrottle; },
@@ -192,8 +207,8 @@ __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async
192
207
  /* harmony export */ wR: function() { return /* binding */ timeout; },
193
208
  /* harmony export */ wo: function() { return /* binding */ preventDefault; }
194
209
  /* harmony export */ });
195
- /* harmony import */ var _context_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
196
- /* harmony import */ var _indicators_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
210
+ /* harmony import */ var _context_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
211
+ /* harmony import */ var _indicators_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
197
212
  var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_context_js__WEBPACK_IMPORTED_MODULE_0__, _indicators_js__WEBPACK_IMPORTED_MODULE_1__]);
198
213
  var __webpack_async_dependencies_result__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
199
214
  _context_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_async_dependencies_result__[0];
@@ -271,18 +286,24 @@ __webpack_async_result__();
271
286
  /******/ }
272
287
  /******/ // Create a new module (and put it into the cache)
273
288
  /******/ var module = __webpack_module_cache__[moduleId] = {
274
- /******/ // no module.id needed
275
- /******/ // no module.loaded needed
289
+ /******/ id: moduleId,
290
+ /******/ loaded: false,
276
291
  /******/ exports: {}
277
292
  /******/ };
278
293
  /******/
279
294
  /******/ // Execute the module function
280
295
  /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
281
296
  /******/
297
+ /******/ // Flag the module as loaded
298
+ /******/ module.loaded = true;
299
+ /******/
282
300
  /******/ // Return the exports of the module
283
301
  /******/ return module.exports;
284
302
  /******/ }
285
303
  /******/
304
+ /******/ // expose the module cache
305
+ /******/ __webpack_require__.c = __webpack_module_cache__;
306
+ /******/
286
307
  /************************************************************************/
287
308
  /******/ /* webpack/runtime/async module */
288
309
  /******/ !function() {
@@ -399,6 +420,21 @@ __webpack_async_result__();
399
420
  /******/ })();
400
421
  /******/ }();
401
422
  /******/
423
+ /******/ /* webpack/runtime/harmony module decorator */
424
+ /******/ !function() {
425
+ /******/ __webpack_require__.hmd = function(module) {
426
+ /******/ module = Object.create(module);
427
+ /******/ if (!module.children) module.children = [];
428
+ /******/ Object.defineProperty(module, 'exports', {
429
+ /******/ enumerable: true,
430
+ /******/ set: function() {
431
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
432
+ /******/ }
433
+ /******/ });
434
+ /******/ return module;
435
+ /******/ };
436
+ /******/ }();
437
+ /******/
402
438
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
403
439
  /******/ !function() {
404
440
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
@@ -406,10 +442,10 @@ __webpack_async_result__();
406
442
  /******/
407
443
  /************************************************************************/
408
444
  /******/
445
+ /******/ // module cache are used so entry inlining is disabled
409
446
  /******/ // startup
410
447
  /******/ // Load entry module and return exports
411
- /******/ // This entry module used 'module' so it can't be inlined
412
- /******/ var __webpack_exports__ = __webpack_require__(12);
448
+ /******/ var __webpack_exports__ = __webpack_require__(13);
413
449
  /******/ __webpack_exports__ = await __webpack_exports__;
414
450
  /******/ var __webpack_exports__debounce = __webpack_exports__.sg;
415
451
  /******/ var __webpack_exports__preventDefault = __webpack_exports__.wo;
package/dist/constants.js CHANGED
@@ -1,7 +1,7 @@
1
1
  if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;/******/ var __webpack_modules__ = ({
2
2
 
3
- /***/ 9:
4
- /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
3
+ /***/ 10:
4
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5
5
 
6
6
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7
7
  /* harmony export */ c: function() { return /* binding */ Lock; }
@@ -51,8 +51,8 @@ if(typeof window==='undefined'||window===null)var window=(typeof global==='undef
51
51
 
52
52
  /***/ }),
53
53
 
54
- /***/ 10:
55
- /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
54
+ /***/ 11:
55
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
56
56
 
57
57
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
58
58
  /* harmony export */ j: function() { return /* binding */ Semaphore; }
@@ -170,8 +170,8 @@ var __webpack_exports__ = {};
170
170
  /* harmony export */ rq: function() { return /* binding */ CLASS_TO_TYPE_MAPPING; },
171
171
  /* harmony export */ uJ: function() { return /* binding */ DEFAULT_ENCODING; }
172
172
  /* harmony export */ });
173
- /* harmony import */ var _Lock_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
174
- /* harmony import */ var _Semaphore_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
173
+ /* harmony import */ var _Lock_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
174
+ /* harmony import */ var _Semaphore_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11);
175
175
  // #!/usr/bin/env babel-node
176
176
  // -*- coding: utf-8 -*-
177
177
  /** @module constants *//* !
package/dist/context.js CHANGED
@@ -1,7 +1,7 @@
1
1
  if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;/******/ var __webpack_modules__ = ([
2
2
  /* 0 */,
3
3
  /* 1 */
4
- /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
4
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5
5
 
6
6
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7
7
  /* harmony export */ jg: function() { return /* binding */ CONSOLE_METHODS; }
@@ -32,27 +32,20 @@ var SPECIAL_REGEX_SEQUENCES=(/* unused pure expression or super */ null && (["-"
32
32
  var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd";
33
33
 
34
34
  /***/ }),
35
- /* 2 */,
36
- /* 3 */,
37
- /* 4 */
38
- /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
35
+ /* 2 */
36
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
39
37
 
40
- __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
38
+ __webpack_require__.a(module, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
41
39
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42
- /* harmony export */ $Q: function() { return /* binding */ MAXIMAL_NUMBER_OF_ITERATIONS; },
43
- /* harmony export */ Lz: function() { return /* binding */ globalContext; },
44
- /* harmony export */ QH: function() { return /* binding */ mockConsole; },
45
- /* harmony export */ tE: function() { return /* binding */ NOOP; },
46
- /* harmony export */ zm: function() { return /* binding */ setGlobalContext; }
40
+ /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
41
+ /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
42
+ /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
47
43
  /* harmony export */ });
48
- /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
49
- /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
50
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_module_js__WEBPACK_IMPORTED_MODULE_0__]);
51
- var __webpack_async_dependencies_result__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
52
- _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_async_dependencies_result__[0];
44
+ /* unused harmony exports isImportSyntaxSupported, currentRequire, clearRequireCache, isolatedRequire */
45
+ /* module decorator */ module = __webpack_require__.hmd(module);
53
46
  // #!/usr/bin/env babel-node
54
47
  // -*- coding: utf-8 -*-
55
- /** @module context *//* !
48
+ /** @module module *//* !
56
49
  region header
57
50
  [Project page](https://torben.website/clientnode)
58
51
 
@@ -65,27 +58,46 @@ _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_async_dependencies_result__[
65
58
  naming 3.0 unported license.
66
59
  See https://creativecommons.org/licenses/by/3.0/deed.de
67
60
  endregion
68
- */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,_module_js__WEBPACK_IMPORTED_MODULE_0__/* .determineGlobalContext */ .a8)();var setGlobalContext=function setGlobalContext(context){globalContext=context};globalContext.fetch=globalContext.fetch?globalContext.fetch.bind(globalContext):(_optionalRequire$defa=(_optionalRequire=(0,_module_js__WEBPACK_IMPORTED_MODULE_0__/* .optionalRequire */ .I5)("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,_module_js__WEBPACK_IMPORTED_MODULE_0__/* .optionalImport */ .Sw)(/* webpackIgnore: true */"node-fetch").then(function(module){var _ref;return(_ref=module).default.apply(_ref,parameters)})};var MAXIMAL_NUMBER_OF_ITERATIONS={value:100};// A no-op dummy function.
69
- var NOOP=function NOOP(){// Do nothing.
70
- };var mockConsole=function mockConsole(){// Avoid errors in browsers that lack a console.
71
- if(!Object.prototype.hasOwnProperty.call(globalContext,"console"))globalContext.console={};if(!globalContext.console)globalContext.console={};var _iterator=_createForOfIteratorHelper(_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CONSOLE_METHODS */ .jg),_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()}};
61
+ */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 import function available at runtime.
62
+ var isImportSyntaxSupported=function isImportSyntaxSupported(){try{// eslint-disable-next-line @typescript-eslint/no-implied-eval
63
+ new Function("import(\"data:text/javascript,\")");return true}catch(_unused){return false}};// Make preprocessed require function available at runtime.
64
+ var customRequire=typeof globalContext.require==="undefined"?null:globalContext.require;if(!customRequire&&isImportSyntaxSupported())try{var _await$Function=/*
65
+ eslint-disable
66
+ @typescript-eslint/no-implied-eval,
67
+ @typescript-eslint/no-unsafe-call
68
+ */await new Function("return import(\"node:module\")")(),createRequire=_await$Function.createRequire;/*
69
+ eslint-enable
70
+ @typescript-eslint/no-implied-eval,
71
+ @typescript-eslint/no-unsafe-call
72
+ */// eslint-disable-next-line @typescript-eslint/no-unsafe-call
73
+ customRequire=createRequire("file:///__w/clientnode/clientnode/src/module.ts")}catch(_unused2){// Ignore error.
74
+ }var currentRequire=customRequire;var optionalRequire=function optionalRequire(id){try{return currentRequire?currentRequire(id):null}catch(_unused3){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__(6)}var backup=clearRequireCache(requireFunction.cache);try{return requireFunction(path);// eslint-disable-next-line no-useless-catch
75
+ }catch(error){throw error}finally{restoreRequireCache(requireFunction.cache,backup)}};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=5;break;case 3:_context.n=4;return Promise.resolve(null);case 4:_t=_context.v;case 5:return _context.a(2,_t);case 6:_context.p=6;_t2=_context.v;_context.n=7;return Promise.resolve(null);case 7:return _context.a(2,_context.v)}},_callee,null,[[1,6]])}));function optionalImport(_x,_x2){return _optionalImport.apply(this,arguments)}return optionalImport}();
72
76
  __webpack_async_result__();
73
- } catch(e) { __webpack_async_result__(e); } });
77
+ } catch(e) { __webpack_async_result__(e); } }, 1);
74
78
 
75
79
  /***/ }),
80
+ /* 3 */,
81
+ /* 4 */,
76
82
  /* 5 */
77
- /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
83
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
78
84
 
79
- __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
85
+ __webpack_require__.a(module, async function (__webpack_handle_async_dependencies__, __webpack_async_result__) { try {
80
86
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
81
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
82
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
83
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
87
+ /* harmony export */ $Q: function() { return /* binding */ MAXIMAL_NUMBER_OF_ITERATIONS; },
88
+ /* harmony export */ Lz: function() { return /* binding */ globalContext; },
89
+ /* harmony export */ QH: function() { return /* binding */ mockConsole; },
90
+ /* harmony export */ tE: function() { return /* binding */ NOOP; },
91
+ /* harmony export */ zm: function() { return /* binding */ setGlobalContext; }
84
92
  /* harmony export */ });
85
- /* unused harmony exports isImportSyntaxSupported, currentRequire, clearRequireCache, isolatedRequire */
93
+ /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
94
+ /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
95
+ var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_module_js__WEBPACK_IMPORTED_MODULE_0__]);
96
+ var __webpack_async_dependencies_result__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
97
+ _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_async_dependencies_result__[0];
86
98
  // #!/usr/bin/env babel-node
87
99
  // -*- coding: utf-8 -*-
88
- /** @module module *//* !
100
+ /** @module context *//* !
89
101
  region header
90
102
  [Project page](https://torben.website/clientnode)
91
103
 
@@ -98,23 +110,26 @@ __webpack_require__.a(__webpack_module__, async function (__webpack_handle_async
98
110
  naming 3.0 unported license.
99
111
  See https://creativecommons.org/licenses/by/3.0/deed.de
100
112
  endregion
101
- */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 typeof module==="undefined"?{}: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 import function available at runtime.
102
- var isImportSyntaxSupported=function isImportSyntaxSupported(){try{// eslint-disable-next-line @typescript-eslint/no-implied-eval
103
- new Function("import(\"data:text/javascript,\")");return true}catch(_unused){return false}};// Make preprocessed require function available at runtime.
104
- var customRequire=typeof globalContext.require==="undefined"?null:globalContext.require;if(!customRequire&&isImportSyntaxSupported())try{var _await$Function=/*
105
- eslint-disable
106
- @typescript-eslint/no-implied-eval,
107
- @typescript-eslint/no-unsafe-call
108
- */await new Function("return import(\"node:module\")")(),createRequire=_await$Function.createRequire;/*
109
- eslint-enable
110
- @typescript-eslint/no-implied-eval,
111
- @typescript-eslint/no-unsafe-call
112
- */// eslint-disable-next-line @typescript-eslint/no-unsafe-call
113
- customRequire=createRequire("file:///__w/clientnode/clientnode/src/module.ts")}catch(_unused2){// Ignore error.
114
- }var currentRequire=customRequire;var optionalRequire=function optionalRequire(id){try{return currentRequire?currentRequire(id):null}catch(_unused3){return null}};var clearRequireCache=function clearRequireCache(cache){if(cache===void 0){cache=(currentRequire===null||currentRequire===void 0?void 0:currentRequire.cache)||require.cache}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)||require.cache}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||require}var backup=clearRequireCache(requireFunction.cache);try{return requireFunction(path);// eslint-disable-next-line no-useless-catch
115
- }catch(error){throw error}finally{restoreRequireCache(requireFunction.cache,backup)}};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=5;break;case 3:_context.n=4;return Promise.resolve(null);case 4:_t=_context.v;case 5:return _context.a(2,_t);case 6:_context.p=6;_t2=_context.v;_context.n=7;return Promise.resolve(null);case 7:return _context.a(2,_context.v)}},_callee,null,[[1,6]])}));function optionalImport(_x,_x2){return _optionalImport.apply(this,arguments)}return optionalImport}();
113
+ */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,_module_js__WEBPACK_IMPORTED_MODULE_0__/* .determineGlobalContext */ .a8)();var setGlobalContext=function setGlobalContext(context){globalContext=context};globalContext.fetch=globalContext.fetch?globalContext.fetch.bind(globalContext):(_optionalRequire$defa=(_optionalRequire=(0,_module_js__WEBPACK_IMPORTED_MODULE_0__/* .optionalRequire */ .I5)("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,_module_js__WEBPACK_IMPORTED_MODULE_0__/* .optionalImport */ .Sw)(/* webpackIgnore: true */"node-fetch").then(function(module){var _ref;return(_ref=module).default.apply(_ref,parameters)})};var MAXIMAL_NUMBER_OF_ITERATIONS={value:100};// A no-op dummy function.
114
+ var NOOP=function NOOP(){// Do nothing.
115
+ };var mockConsole=function mockConsole(){// Avoid errors in browsers that lack a console.
116
+ if(!Object.prototype.hasOwnProperty.call(globalContext,"console"))globalContext.console={};if(!globalContext.console)globalContext.console={};var _iterator=_createForOfIteratorHelper(_constants_js__WEBPACK_IMPORTED_MODULE_1__/* .CONSOLE_METHODS */ .jg),_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()}};
116
117
  __webpack_async_result__();
117
- } catch(e) { __webpack_async_result__(e); } }, 1);
118
+ } catch(e) { __webpack_async_result__(e); } });
119
+
120
+ /***/ }),
121
+ /* 6 */
122
+ /***/ (function(module) {
123
+
124
+ function webpackEmptyContext(req) {
125
+ var e = new Error("Cannot find module '" + req + "'");
126
+ e.code = 'MODULE_NOT_FOUND';
127
+ throw e;
128
+ }
129
+ webpackEmptyContext.keys = function() { return []; };
130
+ webpackEmptyContext.resolve = webpackEmptyContext;
131
+ webpackEmptyContext.id = 6;
132
+ module.exports = webpackEmptyContext;
118
133
 
119
134
  /***/ })
120
135
  /******/ ]);
@@ -131,18 +146,24 @@ __webpack_async_result__();
131
146
  /******/ }
132
147
  /******/ // Create a new module (and put it into the cache)
133
148
  /******/ var module = __webpack_module_cache__[moduleId] = {
134
- /******/ // no module.id needed
135
- /******/ // no module.loaded needed
149
+ /******/ id: moduleId,
150
+ /******/ loaded: false,
136
151
  /******/ exports: {}
137
152
  /******/ };
138
153
  /******/
139
154
  /******/ // Execute the module function
140
155
  /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
141
156
  /******/
157
+ /******/ // Flag the module as loaded
158
+ /******/ module.loaded = true;
159
+ /******/
142
160
  /******/ // Return the exports of the module
143
161
  /******/ return module.exports;
144
162
  /******/ }
145
163
  /******/
164
+ /******/ // expose the module cache
165
+ /******/ __webpack_require__.c = __webpack_module_cache__;
166
+ /******/
146
167
  /************************************************************************/
147
168
  /******/ /* webpack/runtime/async module */
148
169
  /******/ !function() {
@@ -259,6 +280,21 @@ __webpack_async_result__();
259
280
  /******/ })();
260
281
  /******/ }();
261
282
  /******/
283
+ /******/ /* webpack/runtime/harmony module decorator */
284
+ /******/ !function() {
285
+ /******/ __webpack_require__.hmd = function(module) {
286
+ /******/ module = Object.create(module);
287
+ /******/ if (!module.children) module.children = [];
288
+ /******/ Object.defineProperty(module, 'exports', {
289
+ /******/ enumerable: true,
290
+ /******/ set: function() {
291
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
292
+ /******/ }
293
+ /******/ });
294
+ /******/ return module;
295
+ /******/ };
296
+ /******/ }();
297
+ /******/
262
298
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
263
299
  /******/ !function() {
264
300
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
@@ -266,10 +302,10 @@ __webpack_async_result__();
266
302
  /******/
267
303
  /************************************************************************/
268
304
  /******/
305
+ /******/ // module cache are used so entry inlining is disabled
269
306
  /******/ // startup
270
307
  /******/ // Load entry module and return exports
271
- /******/ // This entry module used 'module' so it can't be inlined
272
- /******/ var __webpack_exports__ = __webpack_require__(4);
308
+ /******/ var __webpack_exports__ = __webpack_require__(5);
273
309
  /******/ __webpack_exports__ = await __webpack_exports__;
274
310
  /******/ var __webpack_exports__MAXIMAL_NUMBER_OF_ITERATIONS = __webpack_exports__.$Q;
275
311
  /******/ var __webpack_exports__NOOP = __webpack_exports__.tE;