clientnode 4.0.1435 → 4.0.1437
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Lock.js +83 -94
- package/dist/Logger.js +163 -715
- package/dist/Semaphore.js +46 -81
- package/dist/array.js +337 -568
- package/dist/cli.js +37 -71
- package/dist/constants.js +110 -209
- package/dist/context.js +25 -229
- package/dist/cookie.js +48 -226
- package/dist/data-transfer.js +166 -725
- package/dist/datetime.js +241 -1059
- package/dist/domNode.js +277 -441
- package/dist/expression/evaluators.js +234 -1112
- package/dist/expression/helper.js +82 -135
- package/dist/expression/index.js +10 -1245
- package/dist/expression/indicator-functions.js +21 -239
- package/dist/expression/type.js +4 -34
- package/dist/filesystem.js +323 -309
- package/dist/function.js +51 -125
- package/dist/index.js +26 -2709
- package/dist/indicators.js +68 -440
- package/dist/module.js +78 -164
- package/dist/number.js +25 -423
- package/dist/object.js +771 -852
- package/dist/process.js +39 -245
- package/dist/property-types.js +96 -157
- package/dist/scope.js +56 -1825
- package/dist/string.js +603 -909
- package/dist/test-helper.js +171 -541
- package/dist/type.js +8 -37
- package/dist/utility.js +91 -336
- package/package.json +2 -2
- package/dist/Lock.d.ts +0 -39
- package/dist/Logger.d.ts +0 -102
- package/dist/Semaphore.d.ts +0 -29
- package/dist/array.d.ts +0 -150
- package/dist/bundle/Lock.js +0 -111
- package/dist/bundle/Logger.js +0 -705
- package/dist/bundle/Semaphore.js +0 -100
- package/dist/bundle/array.js +0 -648
- package/dist/bundle/cli.js +0 -85
- package/dist/bundle/constants.js +0 -225
- package/dist/bundle/context.js +0 -243
- package/dist/bundle/cookie.js +0 -262
- package/dist/bundle/data-transfer.js +0 -741
- package/dist/bundle/datetime.js +0 -1064
- package/dist/bundle/domNode.js +0 -471
- package/dist/bundle/expression/evaluators.js +0 -1115
- package/dist/bundle/expression/helper.js +0 -106
- package/dist/bundle/expression/index.js +0 -1223
- package/dist/bundle/expression/indicator-functions.js +0 -235
- package/dist/bundle/expression/type.js +0 -50
- package/dist/bundle/filesystem.js +0 -374
- package/dist/bundle/function.js +0 -105
- package/dist/bundle/index.js +0 -2686
- package/dist/bundle/indicators.js +0 -459
- package/dist/bundle/module.js +0 -180
- package/dist/bundle/number.js +0 -425
- package/dist/bundle/object.js +0 -1004
- package/dist/bundle/process.js +0 -275
- package/dist/bundle/property-types.js +0 -167
- package/dist/bundle/scope.js +0 -1808
- package/dist/bundle/string.js +0 -1095
- package/dist/bundle/test-helper.js +0 -690
- package/dist/bundle/type.js +0 -50
- package/dist/bundle/utility.js +0 -362
- package/dist/cli.d.ts +0 -31
- package/dist/compatible/Lock.js +0 -111
- package/dist/compatible/Logger.js +0 -705
- package/dist/compatible/Semaphore.js +0 -100
- package/dist/compatible/array.js +0 -648
- package/dist/compatible/cli.js +0 -85
- package/dist/compatible/constants.js +0 -225
- package/dist/compatible/context.js +0 -243
- package/dist/compatible/cookie.js +0 -262
- package/dist/compatible/data-transfer.js +0 -741
- package/dist/compatible/datetime.js +0 -1064
- package/dist/compatible/domNode.js +0 -471
- package/dist/compatible/expression/evaluators.js +0 -1115
- package/dist/compatible/expression/helper.js +0 -106
- package/dist/compatible/expression/index.js +0 -1223
- package/dist/compatible/expression/indicator-functions.js +0 -235
- package/dist/compatible/expression/type.js +0 -50
- package/dist/compatible/filesystem.js +0 -374
- package/dist/compatible/function.js +0 -105
- package/dist/compatible/index.js +0 -2686
- package/dist/compatible/indicators.js +0 -459
- package/dist/compatible/module.js +0 -180
- package/dist/compatible/number.js +0 -425
- package/dist/compatible/object.js +0 -1004
- package/dist/compatible/process.js +0 -275
- package/dist/compatible/property-types.js +0 -167
- package/dist/compatible/scope.js +0 -1808
- package/dist/compatible/string.js +0 -1095
- package/dist/compatible/test-helper.js +0 -690
- package/dist/compatible/type.js +0 -50
- package/dist/compatible/utility.js +0 -362
- package/dist/constants.d.ts +0 -99
- package/dist/context.d.ts +0 -8
- package/dist/cookie.d.ts +0 -31
- package/dist/data-transfer.d.ts +0 -45
- package/dist/datetime.d.ts +0 -37
- package/dist/domNode.d.ts +0 -82
- package/dist/expression/evaluators.d.ts +0 -55
- package/dist/expression/helper.d.ts +0 -4
- package/dist/expression/index.d.ts +0 -7
- package/dist/expression/indicator-functions.d.ts +0 -14
- package/dist/expression/type.d.ts +0 -70
- package/dist/filesystem.d.ts +0 -143
- package/dist/function.d.ts +0 -20
- package/dist/index.d.ts +0 -23
- package/dist/indicators.d.ts +0 -68
- package/dist/module.d.ts +0 -8
- package/dist/number.d.ts +0 -35
- package/dist/object.d.ts +0 -231
- package/dist/process.d.ts +0 -22
- package/dist/property-types.d.ts +0 -460
- package/dist/scope.d.ts +0 -44
- package/dist/string.d.ts +0 -312
- package/dist/test/Lock.d.ts +0 -1
- package/dist/test/Logger.d.ts +0 -1
- package/dist/test/Semaphore.d.ts +0 -1
- package/dist/test/array.d.ts +0 -1
- package/dist/test/cookie.d.ts +0 -1
- package/dist/test/data-transfer.d.ts +0 -1
- package/dist/test/datetime.d.ts +0 -1
- package/dist/test/domNode.d.ts +0 -1
- package/dist/test/expression/evaluators.d.ts +0 -1
- package/dist/test/expression/helper.d.ts +0 -1
- package/dist/test/expression/indicator-functions.d.ts +0 -1
- package/dist/test/filesystem.d.ts +0 -1
- package/dist/test/function.d.ts +0 -1
- package/dist/test/indicators.d.ts +0 -1
- package/dist/test/number.d.ts +0 -1
- package/dist/test/object.d.ts +0 -1
- package/dist/test/process.d.ts +0 -1
- package/dist/test/property-types.d.ts +0 -1
- package/dist/test/scope.d.ts +0 -1
- package/dist/test/string.d.ts +0 -1
- package/dist/test/utility.d.ts +0 -1
- package/dist/test-helper.d.ts +0 -143
- package/dist/type.d.ts +0 -230
- package/dist/utility.d.ts +0 -44
package/dist/bundle/type.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
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("clientnode", [], factory);
|
|
6
|
-
else if(typeof exports === 'object')
|
|
7
|
-
exports["clientnode"] = factory();
|
|
8
|
-
else
|
|
9
|
-
root["clientnode"] = factory();
|
|
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
|
-
});
|
package/dist/bundle/utility.js
DELETED
|
@@ -1,362 +0,0 @@
|
|
|
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("clientnode", [], factory);
|
|
6
|
-
else if(typeof exports === 'object')
|
|
7
|
-
exports["clientnode"] = factory();
|
|
8
|
-
else
|
|
9
|
-
root["clientnode"] = factory();
|
|
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 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 _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{// eslint-disable-next-line @typescript-eslint/no-implied-eval
|
|
44
|
-
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=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}();
|
|
45
|
-
|
|
46
|
-
/***/ }),
|
|
47
|
-
/* 2 */,
|
|
48
|
-
/* 3 */
|
|
49
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
50
|
-
|
|
51
|
-
"use strict";
|
|
52
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
53
|
-
/* harmony export */ isFunction: function() { return /* binding */ isFunction; }
|
|
54
|
-
/* harmony export */ });
|
|
55
|
-
/* unused harmony exports isNumeric, isWindow, isArrayLike, isAnyMatching, isObject, isPlainObject, isSet, isMap, isProxy */
|
|
56
|
-
/* unused harmony import specifier */ var PLAIN_OBJECT_PROTOTYPES;
|
|
57
|
-
/* unused harmony import specifier */ var determineType;
|
|
58
|
-
// #!/usr/bin/env babel-node
|
|
59
|
-
// -*- coding: utf-8 -*-
|
|
60
|
-
/** @module indicators *//* !
|
|
61
|
-
region header
|
|
62
|
-
[Project page](https://torben.website/clientnode)
|
|
63
|
-
|
|
64
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
65
|
-
|
|
66
|
-
License
|
|
67
|
-
-------
|
|
68
|
-
|
|
69
|
-
This library written by Torben Sickert stands under a creative commons
|
|
70
|
-
naming 3.0 unported license.
|
|
71
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
72
|
-
endregion
|
|
73
|
-
*/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)}/**
|
|
74
|
-
* Determines whether its argument represents a JavaScript number.
|
|
75
|
-
* @param value - Value to analyze.
|
|
76
|
-
* @returns A boolean value indicating whether given object is numeric
|
|
77
|
-
* like.
|
|
78
|
-
*/var isNumeric=function isNumeric(value){var type=determineType(value);/*
|
|
79
|
-
NOTE: "parseFloat" "NaNs" numeric-cast false positives ("") but
|
|
80
|
-
misinterprets leading-number strings, particularly hex literals
|
|
81
|
-
("0x...") subtraction forces infinities to NaN.
|
|
82
|
-
*/return["number","string"].includes(type)&&!isNaN(value-parseFloat(value))};/**
|
|
83
|
-
* Determine whether the argument is a window.
|
|
84
|
-
* @param value - Value to check for.
|
|
85
|
-
* @returns Boolean value indicating the result.
|
|
86
|
-
*/var isWindow=function isWindow(value){return![null,undefined].includes(value)&&_typeof(value)==="object"&&value===(value===null||value===void 0?void 0:value.window)};/**
|
|
87
|
-
* Checks if given object is similar to an array and can be handled like an
|
|
88
|
-
* array.
|
|
89
|
-
* @param object - Object to check behavior for.
|
|
90
|
-
* @returns A boolean value indicating whether given object is array like.
|
|
91
|
-
*/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.
|
|
92
|
-
}return false};/**
|
|
93
|
-
* Checks whether one of the given pattern matches given string.
|
|
94
|
-
* @param target - Target to check in pattern for.
|
|
95
|
-
* @param pattern - List of pattern to check for.
|
|
96
|
-
* @returns Value "true" if given object is matches by at leas one of the
|
|
97
|
-
* given pattern and "false" otherwise.
|
|
98
|
-
*/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};/**
|
|
99
|
-
* Checks whether given object is a native object but not null.
|
|
100
|
-
* @param value - Value to check.
|
|
101
|
-
* @returns Value "true" if given object is a plain javaScript object and
|
|
102
|
-
* "false" otherwise.
|
|
103
|
-
*/var isObject=function isObject(value){return value!==null&&_typeof(value)==="object"};/**
|
|
104
|
-
* Checks whether given object is a plain native object.
|
|
105
|
-
* @param value - Value to check.
|
|
106
|
-
* @returns Value "true" if given object is a plain javaScript object and
|
|
107
|
-
* "false" otherwise.
|
|
108
|
-
*/var isPlainObject=function isPlainObject(value){return isObject(value)&&PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(value))};/**
|
|
109
|
-
* Checks whether given object is a set.
|
|
110
|
-
* @param value - Value to check.
|
|
111
|
-
* @returns Value "true" if given object is a set and "false" otherwise.
|
|
112
|
-
*/var isSet=function isSet(value){return determineType(value)==="set"};/**
|
|
113
|
-
* Checks whether given object is a map.
|
|
114
|
-
* @param value - Value to check.
|
|
115
|
-
* @returns Value "true" if given object is a map and "false" otherwise.
|
|
116
|
-
*/var isMap=function isMap(value){return determineType(value)==="map"};/**
|
|
117
|
-
* Checks whether given object is a proxy.
|
|
118
|
-
* @param value - Value to check.
|
|
119
|
-
* @returns Value "true" if given object is a proxy and "false" otherwise.
|
|
120
|
-
*/var isProxy=function isProxy(value){return Boolean(value.__target__)};/**
|
|
121
|
-
* Checks whether given object is a function.
|
|
122
|
-
* @param value - Value to check.
|
|
123
|
-
* @returns Value "true" if given object is a function and "false"
|
|
124
|
-
* otherwise.
|
|
125
|
-
*/var isFunction=function isFunction(value){return Boolean(value)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(value))};
|
|
126
|
-
|
|
127
|
-
/***/ }),
|
|
128
|
-
/* 4 */
|
|
129
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
130
|
-
|
|
131
|
-
"use strict";
|
|
132
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
133
|
-
/* harmony export */ NOOP: function() { return /* binding */ NOOP; }
|
|
134
|
-
/* harmony export */ });
|
|
135
|
-
/* unused harmony exports globalContext, setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, mockConsole */
|
|
136
|
-
/* unused harmony import specifier */ var CONSOLE_METHODS;
|
|
137
|
-
/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
138
|
-
// #!/usr/bin/env babel-node
|
|
139
|
-
// -*- coding: utf-8 -*-
|
|
140
|
-
/** @module context *//* !
|
|
141
|
-
region header
|
|
142
|
-
[Project page](https://torben.website/clientnode)
|
|
143
|
-
|
|
144
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
145
|
-
|
|
146
|
-
License
|
|
147
|
-
-------
|
|
148
|
-
|
|
149
|
-
This library written by Torben Sickert stands under a creative commons
|
|
150
|
-
naming 3.0 unported license.
|
|
151
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
152
|
-
endregion
|
|
153
|
-
*/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__WEBPACK_IMPORTED_MODULE_0__.determineGlobalContext)();var setGlobalContext=function setGlobalContext(context){globalContext=context};globalContext.fetch=globalContext.fetch?globalContext.fetch.bind(globalContext):(_optionalRequire$defa=(_optionalRequire=(0,_module__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,_module__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.
|
|
154
|
-
var NOOP=function NOOP(){// Do nothing.
|
|
155
|
-
};var mockConsole=function mockConsole(){// Avoid errors in browsers that lack a console.
|
|
156
|
-
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()}};
|
|
157
|
-
|
|
158
|
-
/***/ }),
|
|
159
|
-
/* 5 */
|
|
160
|
-
/***/ (function(module) {
|
|
161
|
-
|
|
162
|
-
function webpackEmptyContext(req) {
|
|
163
|
-
var e = new Error("Cannot find module '" + req + "'");
|
|
164
|
-
e.code = 'MODULE_NOT_FOUND';
|
|
165
|
-
throw e;
|
|
166
|
-
}
|
|
167
|
-
webpackEmptyContext.keys = function() { return []; };
|
|
168
|
-
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
169
|
-
webpackEmptyContext.id = 5;
|
|
170
|
-
module.exports = webpackEmptyContext;
|
|
171
|
-
|
|
172
|
-
/***/ }),
|
|
173
|
-
/* 6 */,
|
|
174
|
-
/* 7 */,
|
|
175
|
-
/* 8 */,
|
|
176
|
-
/* 9 */,
|
|
177
|
-
/* 10 */,
|
|
178
|
-
/* 11 */
|
|
179
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
180
|
-
|
|
181
|
-
"use strict";
|
|
182
|
-
__webpack_require__.r(__webpack_exports__);
|
|
183
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
184
|
-
/* harmony export */ debounce: function() { return /* binding */ debounce; },
|
|
185
|
-
/* harmony export */ preventDefault: function() { return /* binding */ preventDefault; },
|
|
186
|
-
/* harmony export */ stopPropagation: function() { return /* binding */ stopPropagation; },
|
|
187
|
-
/* harmony export */ timeout: function() { return /* binding */ timeout; },
|
|
188
|
-
/* harmony export */ trailingThrottle: function() { return /* binding */ trailingThrottle; }
|
|
189
|
-
/* harmony export */ });
|
|
190
|
-
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
191
|
-
/* harmony import */ var _indicators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
192
|
-
// #!/usr/bin/env babel-node
|
|
193
|
-
// -*- coding: utf-8 -*-
|
|
194
|
-
/** @module utility *//* !
|
|
195
|
-
region header
|
|
196
|
-
[Project page](https://torben.website/clientnode)
|
|
197
|
-
|
|
198
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
199
|
-
|
|
200
|
-
License
|
|
201
|
-
-------
|
|
202
|
-
|
|
203
|
-
This library written by Torben Sickert stands under a creative commons
|
|
204
|
-
naming 3.0 unported license.
|
|
205
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
206
|
-
endregion
|
|
207
|
-
*/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}/**
|
|
208
|
-
* Prevents event functions from triggering too often by defining a minimal
|
|
209
|
-
* span between each function call. Additional arguments given to this function
|
|
210
|
-
* will be forwarded to the given event function call.
|
|
211
|
-
* @param callback - The function to call debounced.
|
|
212
|
-
* @param thresholdInMilliseconds - The minimum time span between each
|
|
213
|
-
* function call.
|
|
214
|
-
* @param additionalArguments - Additional arguments to forward to given
|
|
215
|
-
* function.
|
|
216
|
-
* @returns Returns the wrapped method.
|
|
217
|
-
*/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.
|
|
218
|
-
timeoutID=null;recentParameters=[]},thresholdInMilliseconds)}};/**
|
|
219
|
-
* Prevents event functions from triggering too close after each trigger by
|
|
220
|
-
* defining a minimal span between each function call. Additional arguments
|
|
221
|
-
* given to this function will be forwarded to the given event function call.
|
|
222
|
-
* @param callback - The function to call debounced.
|
|
223
|
-
* @param thresholdInMilliseconds - The minimum time span between each
|
|
224
|
-
* function call.
|
|
225
|
-
* @param additionalArguments - Additional arguments to forward to given
|
|
226
|
-
* function.
|
|
227
|
-
* @returns Returns the wrapped method.
|
|
228
|
-
*/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}};/**
|
|
229
|
-
* Triggers given callback after given duration. Supports unlimited
|
|
230
|
-
* duration length and returns a promise which will be resolved after given
|
|
231
|
-
* duration has been passed.
|
|
232
|
-
* @param parameters - Observes the first three existing parameters. If one
|
|
233
|
-
* is a number it will be interpreted as delay in milliseconds until given
|
|
234
|
-
* callback will be triggered. If one is of type function it will be used
|
|
235
|
-
* as callback and if one is of type boolean it will indicate if returning
|
|
236
|
-
* promise should be rejected or resolved if given internally created
|
|
237
|
-
* timeout should be canceled. Additional parameters will be forwarded to
|
|
238
|
-
* given callback.
|
|
239
|
-
* @returns A promise resolving after given delay or being rejected if
|
|
240
|
-
* value "true" is within one of the first three parameters. The promise
|
|
241
|
-
* holds a boolean indicating whether timeout has been canceled or
|
|
242
|
-
* resolved.
|
|
243
|
-
*/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{/*
|
|
244
|
-
Determine the number of times we need to delay by maximum
|
|
245
|
-
possible timeout duration.
|
|
246
|
-
*/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()};
|
|
247
|
-
|
|
248
|
-
/***/ })
|
|
249
|
-
/******/ ]);
|
|
250
|
-
/************************************************************************/
|
|
251
|
-
/******/ // The module cache
|
|
252
|
-
/******/ var __webpack_module_cache__ = {};
|
|
253
|
-
/******/
|
|
254
|
-
/******/ // The require function
|
|
255
|
-
/******/ function __webpack_require__(moduleId) {
|
|
256
|
-
/******/ // Check if module is in cache
|
|
257
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
258
|
-
/******/ if (cachedModule !== undefined) {
|
|
259
|
-
/******/ return cachedModule.exports;
|
|
260
|
-
/******/ }
|
|
261
|
-
/******/ // Create a new module (and put it into the cache)
|
|
262
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
263
|
-
/******/ id: moduleId,
|
|
264
|
-
/******/ loaded: false,
|
|
265
|
-
/******/ exports: {}
|
|
266
|
-
/******/ };
|
|
267
|
-
/******/
|
|
268
|
-
/******/ // Execute the module function
|
|
269
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
270
|
-
/******/
|
|
271
|
-
/******/ // Flag the module as loaded
|
|
272
|
-
/******/ module.loaded = true;
|
|
273
|
-
/******/
|
|
274
|
-
/******/ // Return the exports of the module
|
|
275
|
-
/******/ return module.exports;
|
|
276
|
-
/******/ }
|
|
277
|
-
/******/
|
|
278
|
-
/******/ // expose the module cache
|
|
279
|
-
/******/ __webpack_require__.c = __webpack_module_cache__;
|
|
280
|
-
/******/
|
|
281
|
-
/************************************************************************/
|
|
282
|
-
/******/ /* webpack/runtime/define property getters */
|
|
283
|
-
/******/ !function() {
|
|
284
|
-
/******/ // define getter/value functions for harmony exports
|
|
285
|
-
/******/ __webpack_require__.d = function(exports, definition) {
|
|
286
|
-
/******/ if(Array.isArray(definition)) {
|
|
287
|
-
/******/ var i = 0;
|
|
288
|
-
/******/ while(i < definition.length) {
|
|
289
|
-
/******/ var key = definition[i++];
|
|
290
|
-
/******/ var binding = definition[i++];
|
|
291
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
292
|
-
/******/ if(binding === 0) {
|
|
293
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
294
|
-
/******/ } else {
|
|
295
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
296
|
-
/******/ }
|
|
297
|
-
/******/ } else if(binding === 0) { i++; }
|
|
298
|
-
/******/ }
|
|
299
|
-
/******/ } else {
|
|
300
|
-
/******/ for(var key in definition) {
|
|
301
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
302
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
303
|
-
/******/ }
|
|
304
|
-
/******/ }
|
|
305
|
-
/******/ }
|
|
306
|
-
/******/ };
|
|
307
|
-
/******/ }();
|
|
308
|
-
/******/
|
|
309
|
-
/******/ /* webpack/runtime/global */
|
|
310
|
-
/******/ !function() {
|
|
311
|
-
/******/ __webpack_require__.g = (function() {
|
|
312
|
-
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
313
|
-
/******/ try {
|
|
314
|
-
/******/ return this || new Function('return this')();
|
|
315
|
-
/******/ } catch (e) {
|
|
316
|
-
/******/ if (typeof window === 'object') return window;
|
|
317
|
-
/******/ }
|
|
318
|
-
/******/ })();
|
|
319
|
-
/******/ }();
|
|
320
|
-
/******/
|
|
321
|
-
/******/ /* webpack/runtime/harmony module decorator */
|
|
322
|
-
/******/ !function() {
|
|
323
|
-
/******/ __webpack_require__.hmd = function(module) {
|
|
324
|
-
/******/ module = Object.create(module);
|
|
325
|
-
/******/ if (!module.children) module.children = [];
|
|
326
|
-
/******/ Object.defineProperty(module, 'exports', {
|
|
327
|
-
/******/ enumerable: true,
|
|
328
|
-
/******/ set: function() {
|
|
329
|
-
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
330
|
-
/******/ }
|
|
331
|
-
/******/ });
|
|
332
|
-
/******/ return module;
|
|
333
|
-
/******/ };
|
|
334
|
-
/******/ }();
|
|
335
|
-
/******/
|
|
336
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
337
|
-
/******/ !function() {
|
|
338
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
339
|
-
/******/ }();
|
|
340
|
-
/******/
|
|
341
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
342
|
-
/******/ !function() {
|
|
343
|
-
/******/ // define __esModule on exports
|
|
344
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
345
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
346
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
347
|
-
/******/ }
|
|
348
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
349
|
-
/******/ };
|
|
350
|
-
/******/ }();
|
|
351
|
-
/******/
|
|
352
|
-
/************************************************************************/
|
|
353
|
-
/******/
|
|
354
|
-
/******/ // module cache are used so entry inlining is disabled
|
|
355
|
-
/******/ // startup
|
|
356
|
-
/******/ // Load entry module and return exports
|
|
357
|
-
/******/ var __webpack_exports__ = __webpack_require__(11);
|
|
358
|
-
/******/
|
|
359
|
-
/******/ return __webpack_exports__;
|
|
360
|
-
/******/ })()
|
|
361
|
-
;
|
|
362
|
-
});
|
package/dist/cli.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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/compatible/Lock.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
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("clientnode", [], factory);
|
|
6
|
-
else if(typeof exports === 'object')
|
|
7
|
-
exports["clientnode"] = factory();
|
|
8
|
-
else
|
|
9
|
-
root["clientnode"] = factory();
|
|
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 */ Lock: function() { return /* binding */ Lock; }
|
|
65
|
-
/* harmony export */ });
|
|
66
|
-
// #!/usr/bin/env babel-node
|
|
67
|
-
// -*- coding: utf-8 -*-
|
|
68
|
-
/** @module Lock *//* !
|
|
69
|
-
region header
|
|
70
|
-
[Project page](https://torben.website/clientnode)
|
|
71
|
-
|
|
72
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
73
|
-
|
|
74
|
-
License
|
|
75
|
-
-------
|
|
76
|
-
|
|
77
|
-
This library written by Torben Sickert stands under a creative commons
|
|
78
|
-
naming 3.0 unported license.
|
|
79
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
80
|
-
endregion
|
|
81
|
-
*/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 _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _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 _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}/**
|
|
82
|
-
* Represents the lock state.
|
|
83
|
-
* @property locks - Mapping of lock descriptions to their corresponding
|
|
84
|
-
* callbacks.
|
|
85
|
-
*/var Lock=/*#__PURE__*/function(){/**
|
|
86
|
-
* Initializes locks.
|
|
87
|
-
* @param locks - Mapping of a lock description to callbacks for calling
|
|
88
|
-
* when given lock should be released.
|
|
89
|
-
*/function Lock(locks){if(locks===void 0){locks={}}_classCallCheck(this,Lock);_defineProperty(this,"lock",void 0);_defineProperty(this,"locks",void 0);this.locks=locks}/**
|
|
90
|
-
* Calling this method introduces a starting point for a critical area with
|
|
91
|
-
* potential race conditions. The area will be bind to given description
|
|
92
|
-
* string. So don't use same names for different areas.
|
|
93
|
-
* @param description - A short string describing the critical areas
|
|
94
|
-
* properties.
|
|
95
|
-
* @param callback - A procedure which should only be executed if the
|
|
96
|
-
* interpreter isn't in the given critical area. The lock description
|
|
97
|
-
* string will be given to the callback function.
|
|
98
|
-
* @param autoRelease - Release the lock after execution of given callback.
|
|
99
|
-
* @returns Returns a promise which will be resolved after releasing lock.
|
|
100
|
-
*/return _createClass(Lock,[{key:"acquire",value:function acquire(description,callback,autoRelease){var _this=this;if(autoRelease===void 0){autoRelease=false}return new Promise(function(resolve){var wrappedCallback=function wrappedCallback(description){var _result;var result;if(callback)result=callback(description);var finish=function finish(value){if(autoRelease)void _this.release(description);resolve(value);return value};if((_result=result)!==null&&_result!==void 0&&_result.then)return result.then(finish);finish(result);return result};if(description){if(Object.prototype.hasOwnProperty.call(_this.locks,description))_this.locks[description].push(wrappedCallback);else{_this.locks[description]=[];void wrappedCallback(description)}return}if(_this.lock)_this.lock.push(wrappedCallback);else{_this.lock=[];void wrappedCallback(description)}})}/**
|
|
101
|
-
* Calling this method causes the given critical area to be finished and
|
|
102
|
-
* all functions given to "acquire()" will be executed in right order.
|
|
103
|
-
* @param description - A short string describing the critical areas
|
|
104
|
-
* properties.
|
|
105
|
-
* @returns Returns the return (maybe promise resolved) value of the
|
|
106
|
-
* callback given to the "acquire" method.
|
|
107
|
-
*/},{key:"release",value:(function(){var _release=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(description){var _this$lock;var _callback,callback;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:if(!description){_context.n=4;break}if(!Object.prototype.hasOwnProperty.call(this.locks,description)){_context.n=3;break}_callback=this.locks[description].shift();if(!(_callback===undefined)){_context.n=1;break}delete this.locks[description];_context.n=3;break;case 1:_context.n=2;return _callback(description);case 2:return _context.a(2,_context.v);case 3:return _context.a(2);case 4:callback=(_this$lock=this.lock)===null||_this$lock===void 0?void 0:_this$lock.shift();if(!(callback===undefined)){_context.n=5;break}this.lock=undefined;_context.n=7;break;case 5:_context.n=6;return callback();case 6:return _context.a(2,_context.v);case 7:return _context.a(2)}},_callee,this)}));function release(_x){return _release.apply(this,arguments)}return release}())}])}();/* harmony default export */ __webpack_exports__["default"] = (Lock);
|
|
108
|
-
/******/ return __webpack_exports__;
|
|
109
|
-
/******/ })()
|
|
110
|
-
;
|
|
111
|
-
});
|