clientnode 4.0.1436 → 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/cli.js
DELETED
|
@@ -1,85 +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 */ CLI_COLOR: function() { return /* binding */ CLI_COLOR; }
|
|
65
|
-
/* harmony export */ });
|
|
66
|
-
// #!/usr/bin/env babel-node
|
|
67
|
-
// -*- coding: utf-8 -*-
|
|
68
|
-
/** @module cli *//* !
|
|
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
|
-
*/var CLI_COLOR={black:"\x1B[30m",blink:"\x1B[5m",blue:"\x1B[0;34m",bold:"\x1B[1m",cyan:"\x1B[36m",darkGray:"\x1B[0;90m",default:"\x1B[0m",dim:"\x1B[2m",green:"\x1B[32m",invert:"\x1B[7m",invisible:"\x1B[8m",lightBlue:"\x1B[0;94m",lightCyan:"\x1B[0;96m",lightGray:"\x1B[0;37m",lightGreen:"\x1B[0;92m",lightMagenta:"\x1B[0;95m",lightRed:"\x1B[0;91m",lightYellow:"\x1B[0;93m",magenta:"\x1B[35m",nodim:"\x1B[22m",noblink:"\x1B[25m",nobold:"\x1B[21m",noinvert:"\x1B[27m",noinvisible:"\x1B[28m",nounderline:"\x1B[24m",red:"\x1B[31m",underline:"\x1B[4m",white:"\x1B[37m",yellow:"\x1B[33m"};
|
|
82
|
-
/******/ return __webpack_exports__;
|
|
83
|
-
/******/ })()
|
|
84
|
-
;
|
|
85
|
-
});
|
package/dist/bundle/constants.js
DELETED
|
@@ -1,225 +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
|
-
/******/ var __webpack_modules__ = ({
|
|
14
|
-
|
|
15
|
-
/***/ 8:
|
|
16
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
|
-
|
|
18
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
-
/* harmony export */ Lock: function() { return /* binding */ Lock; }
|
|
20
|
-
/* harmony export */ });
|
|
21
|
-
// #!/usr/bin/env babel-node
|
|
22
|
-
// -*- coding: utf-8 -*-
|
|
23
|
-
/** @module Lock *//* !
|
|
24
|
-
region header
|
|
25
|
-
[Project page](https://torben.website/clientnode)
|
|
26
|
-
|
|
27
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
28
|
-
|
|
29
|
-
License
|
|
30
|
-
-------
|
|
31
|
-
|
|
32
|
-
This library written by Torben Sickert stands under a creative commons
|
|
33
|
-
naming 3.0 unported license.
|
|
34
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
35
|
-
endregion
|
|
36
|
-
*/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):(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 _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)}/**
|
|
37
|
-
* Represents the lock state.
|
|
38
|
-
* @property locks - Mapping of lock descriptions to their corresponding
|
|
39
|
-
* callbacks.
|
|
40
|
-
*/var Lock=/*#__PURE__*/function(){/**
|
|
41
|
-
* Initializes locks.
|
|
42
|
-
* @param locks - Mapping of a lock description to callbacks for calling
|
|
43
|
-
* when given lock should be released.
|
|
44
|
-
*/function Lock(locks){if(locks===void 0){locks={}}_classCallCheck(this,Lock);_defineProperty(this,"lock",void 0);_defineProperty(this,"locks",void 0);this.locks=locks}/**
|
|
45
|
-
* Calling this method introduces a starting point for a critical area with
|
|
46
|
-
* potential race conditions. The area will be bind to given description
|
|
47
|
-
* string. So don't use same names for different areas.
|
|
48
|
-
* @param description - A short string describing the critical areas
|
|
49
|
-
* properties.
|
|
50
|
-
* @param callback - A procedure which should only be executed if the
|
|
51
|
-
* interpreter isn't in the given critical area. The lock description
|
|
52
|
-
* string will be given to the callback function.
|
|
53
|
-
* @param autoRelease - Release the lock after execution of given callback.
|
|
54
|
-
* @returns Returns a promise which will be resolved after releasing lock.
|
|
55
|
-
*/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)}})}/**
|
|
56
|
-
* Calling this method causes the given critical area to be finished and
|
|
57
|
-
* all functions given to "acquire()" will be executed in right order.
|
|
58
|
-
* @param description - A short string describing the critical areas
|
|
59
|
-
* properties.
|
|
60
|
-
* @returns Returns the return (maybe promise resolved) value of the
|
|
61
|
-
* callback given to the "acquire" method.
|
|
62
|
-
*/},{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}())}])}();/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (Lock)));
|
|
63
|
-
|
|
64
|
-
/***/ }),
|
|
65
|
-
|
|
66
|
-
/***/ 9:
|
|
67
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
68
|
-
|
|
69
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
70
|
-
/* harmony export */ Semaphore: function() { return /* binding */ Semaphore; }
|
|
71
|
-
/* harmony export */ });
|
|
72
|
-
// #!/usr/bin/env babel-node
|
|
73
|
-
// -*- coding: utf-8 -*-
|
|
74
|
-
/** @module Semaphore *//* !
|
|
75
|
-
region header
|
|
76
|
-
[Project page](https://torben.website/clientnode)
|
|
77
|
-
|
|
78
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
79
|
-
|
|
80
|
-
License
|
|
81
|
-
-------
|
|
82
|
-
|
|
83
|
-
This library written by Torben Sickert stands under a creative commons
|
|
84
|
-
naming 3.0 unported license.
|
|
85
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
86
|
-
endregion
|
|
87
|
-
*/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 _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)}/**
|
|
88
|
-
* Represents the semaphore state.
|
|
89
|
-
* @property queue - List of waiting resource requests.
|
|
90
|
-
* @property numberOfFreeResources - Number free allowed concurrent resource
|
|
91
|
-
* uses.
|
|
92
|
-
* @property numberOfResources - Number of allowed concurrent resource uses.
|
|
93
|
-
*/var Semaphore=/*#__PURE__*/function(){/**
|
|
94
|
-
* Initializes number of resources.
|
|
95
|
-
* @param numberOfResources - Number of resources to manage.
|
|
96
|
-
*/function Semaphore(numberOfResources){if(numberOfResources===void 0){numberOfResources=2}_classCallCheck(this,Semaphore);_defineProperty(this,"queue",[]);_defineProperty(this,"numberOfResources",void 0);_defineProperty(this,"numberOfFreeResources",void 0);this.numberOfResources=numberOfResources;this.numberOfFreeResources=numberOfResources}/**
|
|
97
|
-
* Acquires a new resource and runs given callback if available.
|
|
98
|
-
* @returns A promise which will be resolved if requested resource is
|
|
99
|
-
* available.
|
|
100
|
-
*/return _createClass(Semaphore,[{key:"acquire",value:function acquire(){var _this=this;return new Promise(function(resolve){if(_this.numberOfFreeResources<=0)_this.queue.push(resolve);else{_this.numberOfFreeResources-=1;resolve(_this.numberOfFreeResources)}})}/**
|
|
101
|
-
* Releases a resource and runs a waiting resolver if there exists some.
|
|
102
|
-
*/},{key:"release",value:function release(){var callback=this.queue.shift();if(callback===undefined)this.numberOfFreeResources+=1;else callback(this.numberOfFreeResources)}}])}();/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (Semaphore)));
|
|
103
|
-
|
|
104
|
-
/***/ })
|
|
105
|
-
|
|
106
|
-
/******/ });
|
|
107
|
-
/************************************************************************/
|
|
108
|
-
/******/ // The module cache
|
|
109
|
-
/******/ var __webpack_module_cache__ = {};
|
|
110
|
-
/******/
|
|
111
|
-
/******/ // The require function
|
|
112
|
-
/******/ function __webpack_require__(moduleId) {
|
|
113
|
-
/******/ // Check if module is in cache
|
|
114
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
115
|
-
/******/ if (cachedModule !== undefined) {
|
|
116
|
-
/******/ return cachedModule.exports;
|
|
117
|
-
/******/ }
|
|
118
|
-
/******/ // Create a new module (and put it into the cache)
|
|
119
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
120
|
-
/******/ // no module.id needed
|
|
121
|
-
/******/ // no module.loaded needed
|
|
122
|
-
/******/ exports: {}
|
|
123
|
-
/******/ };
|
|
124
|
-
/******/
|
|
125
|
-
/******/ // Execute the module function
|
|
126
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
127
|
-
/******/
|
|
128
|
-
/******/ // Return the exports of the module
|
|
129
|
-
/******/ return module.exports;
|
|
130
|
-
/******/ }
|
|
131
|
-
/******/
|
|
132
|
-
/************************************************************************/
|
|
133
|
-
/******/ /* webpack/runtime/define property getters */
|
|
134
|
-
/******/ !function() {
|
|
135
|
-
/******/ // define getter/value functions for harmony exports
|
|
136
|
-
/******/ __webpack_require__.d = function(exports, definition) {
|
|
137
|
-
/******/ if(Array.isArray(definition)) {
|
|
138
|
-
/******/ var i = 0;
|
|
139
|
-
/******/ while(i < definition.length) {
|
|
140
|
-
/******/ var key = definition[i++];
|
|
141
|
-
/******/ var binding = definition[i++];
|
|
142
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
143
|
-
/******/ if(binding === 0) {
|
|
144
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
145
|
-
/******/ } else {
|
|
146
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
147
|
-
/******/ }
|
|
148
|
-
/******/ } else if(binding === 0) { i++; }
|
|
149
|
-
/******/ }
|
|
150
|
-
/******/ } else {
|
|
151
|
-
/******/ for(var key in definition) {
|
|
152
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
153
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
154
|
-
/******/ }
|
|
155
|
-
/******/ }
|
|
156
|
-
/******/ }
|
|
157
|
-
/******/ };
|
|
158
|
-
/******/ }();
|
|
159
|
-
/******/
|
|
160
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
161
|
-
/******/ !function() {
|
|
162
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
163
|
-
/******/ }();
|
|
164
|
-
/******/
|
|
165
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
166
|
-
/******/ !function() {
|
|
167
|
-
/******/ // define __esModule on exports
|
|
168
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
169
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
170
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
171
|
-
/******/ }
|
|
172
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
173
|
-
/******/ };
|
|
174
|
-
/******/ }();
|
|
175
|
-
/******/
|
|
176
|
-
/************************************************************************/
|
|
177
|
-
var __webpack_exports__ = {};
|
|
178
|
-
__webpack_require__.r(__webpack_exports__);
|
|
179
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
180
|
-
/* harmony export */ ABBREVIATIONS: function() { return /* binding */ ABBREVIATIONS; },
|
|
181
|
-
/* harmony export */ ANIMATION_END_EVENT_NAMES: function() { return /* binding */ ANIMATION_END_EVENT_NAMES; },
|
|
182
|
-
/* harmony export */ CLASS_TO_TYPE_MAPPING: function() { return /* binding */ CLASS_TO_TYPE_MAPPING; },
|
|
183
|
-
/* harmony export */ CLOSE_EVENT_NAMES: function() { return /* binding */ CLOSE_EVENT_NAMES; },
|
|
184
|
-
/* harmony export */ CONSOLE_METHODS: function() { return /* binding */ CONSOLE_METHODS; },
|
|
185
|
-
/* harmony export */ DEFAULT_ENCODING: function() { return /* binding */ DEFAULT_ENCODING; },
|
|
186
|
-
/* harmony export */ IGNORE_NULL_AND_UNDEFINED_SYMBOL: function() { return /* binding */ IGNORE_NULL_AND_UNDEFINED_SYMBOL; },
|
|
187
|
-
/* harmony export */ KEYBOARD_CODES: function() { return /* binding */ KEYBOARD_CODES; },
|
|
188
|
-
/* harmony export */ KEY_CODES: function() { return /* binding */ KEY_CODES; },
|
|
189
|
-
/* harmony export */ LOCALES: function() { return /* binding */ LOCALES; },
|
|
190
|
-
/* harmony export */ Lock: function() { return /* reexport safe */ _Lock__WEBPACK_IMPORTED_MODULE_0__.Lock; },
|
|
191
|
-
/* harmony export */ PLAIN_OBJECT_PROTOTYPES: function() { return /* binding */ PLAIN_OBJECT_PROTOTYPES; },
|
|
192
|
-
/* harmony export */ SPECIAL_REGEX_SEQUENCES: function() { return /* binding */ SPECIAL_REGEX_SEQUENCES; },
|
|
193
|
-
/* harmony export */ Semaphore: function() { return /* reexport safe */ _Semaphore__WEBPACK_IMPORTED_MODULE_1__.Semaphore; },
|
|
194
|
-
/* harmony export */ TRANSITION_END_EVENT_NAMES: function() { return /* binding */ TRANSITION_END_EVENT_NAMES; },
|
|
195
|
-
/* harmony export */ VALUE_COPY_SYMBOL: function() { return /* binding */ VALUE_COPY_SYMBOL; }
|
|
196
|
-
/* harmony export */ });
|
|
197
|
-
/* harmony import */ var _Lock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
198
|
-
/* harmony import */ var _Semaphore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
|
|
199
|
-
// #!/usr/bin/env babel-node
|
|
200
|
-
// -*- coding: utf-8 -*-
|
|
201
|
-
/** @module constants *//* !
|
|
202
|
-
region header
|
|
203
|
-
[Project page](https://torben.website/clientnode)
|
|
204
|
-
|
|
205
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
206
|
-
|
|
207
|
-
License
|
|
208
|
-
-------
|
|
209
|
-
|
|
210
|
-
This library written by Torben Sickert stands under a creative commons
|
|
211
|
-
naming 3.0 unported license.
|
|
212
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
213
|
-
endregion
|
|
214
|
-
*/var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"];var CONSOLE_METHODS=["debug","error","info","log","warn"];var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
|
|
215
|
-
// conversion.
|
|
216
|
-
var ABBREVIATIONS=["html","id","url","us","de","api","href"];// Saves a string with all css3 browser specific animation end event names.
|
|
217
|
-
var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
|
|
218
|
-
var CLASS_TO_TYPE_MAPPING={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"};// Saves a mapping from key codes to their corresponding name.
|
|
219
|
-
var KEY_CODES={BACKSPACE:8,SPACE:32,TAB:9,DELETE:46,ENTER:13,COMMA:188,PERIOD:190,END:35,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,HOME:36,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,PAGE_UP:33,PAGE_DOWN:34,UP:38,DOWN:40,LEFT:37,RIGHT:39};var KEYBOARD_CODES={BACKSPACE:"Backspace",SPACE:"Space",TAB:"Tab",DELETE:"Delete",ENTER:"Enter",COMMA:"Comma",PERIOD:"Period",END:"End",ESCAPE:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F111",F12:"F12",HOME:"Home",NUMPAD_ADD:"NumpadAdd",NUMPAD_SUBTRACT:"NumpadSubtract",NUMPAD_DECIMAL:"NumpadDecimal",NUMPAD_DIVIDE:"NumpadDivide",NUMPAD_ENTER:"NumpadEnter",NUMPAD_MULTIPLY:"NumpadMultiply",PAGE_UP:"PageUp",PAGE_DOWN:"PageUp",UP:"ArrowUp",DOWN:"ArrowDown",LEFT:"ArrowLeft",RIGHT:"ArrowUp"};var LOCALES=[];var PLAIN_OBJECT_PROTOTYPES=[Object.prototype];// A list of special regular expression symbols.
|
|
220
|
-
var SPECIAL_REGEX_SEQUENCES=["-","[","]","(",")","^","$","*","+",".","{","}"];// Saves a string with all css3 browser specific transition end event names.
|
|
221
|
-
var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd";
|
|
222
|
-
/******/ return __webpack_exports__;
|
|
223
|
-
/******/ })()
|
|
224
|
-
;
|
|
225
|
-
});
|
package/dist/bundle/context.js
DELETED
|
@@ -1,243 +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
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
15
|
-
|
|
16
|
-
"use strict";
|
|
17
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18
|
-
/* harmony export */ CONSOLE_METHODS: function() { return /* binding */ CONSOLE_METHODS; }
|
|
19
|
-
/* harmony export */ });
|
|
20
|
-
/* unused harmony exports DEFAULT_ENCODING, CLOSE_EVENT_NAMES, VALUE_COPY_SYMBOL, IGNORE_NULL_AND_UNDEFINED_SYMBOL, ABBREVIATIONS, ANIMATION_END_EVENT_NAMES, CLASS_TO_TYPE_MAPPING, KEY_CODES, KEYBOARD_CODES, LOCALES, PLAIN_OBJECT_PROTOTYPES, SPECIAL_REGEX_SEQUENCES, TRANSITION_END_EVENT_NAMES */
|
|
21
|
-
// #!/usr/bin/env babel-node
|
|
22
|
-
// -*- coding: utf-8 -*-
|
|
23
|
-
/** @module constants *//* !
|
|
24
|
-
region header
|
|
25
|
-
[Project page](https://torben.website/clientnode)
|
|
26
|
-
|
|
27
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
28
|
-
|
|
29
|
-
License
|
|
30
|
-
-------
|
|
31
|
-
|
|
32
|
-
This library written by Torben Sickert stands under a creative commons
|
|
33
|
-
naming 3.0 unported license.
|
|
34
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
35
|
-
endregion
|
|
36
|
-
*/var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=["debug","error","info","log","warn"];var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
|
|
37
|
-
// conversion.
|
|
38
|
-
var ABBREVIATIONS=(/* unused pure expression or super */ null && (["html","id","url","us","de","api","href"]));// Saves a string with all css3 browser specific animation end event names.
|
|
39
|
-
var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
|
|
40
|
-
var CLASS_TO_TYPE_MAPPING=(/* unused pure expression or super */ null && ({"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"}));// Saves a mapping from key codes to their corresponding name.
|
|
41
|
-
var KEY_CODES=(/* unused pure expression or super */ null && ({BACKSPACE:8,SPACE:32,TAB:9,DELETE:46,ENTER:13,COMMA:188,PERIOD:190,END:35,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,HOME:36,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,PAGE_UP:33,PAGE_DOWN:34,UP:38,DOWN:40,LEFT:37,RIGHT:39}));var KEYBOARD_CODES=(/* unused pure expression or super */ null && ({BACKSPACE:"Backspace",SPACE:"Space",TAB:"Tab",DELETE:"Delete",ENTER:"Enter",COMMA:"Comma",PERIOD:"Period",END:"End",ESCAPE:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F111",F12:"F12",HOME:"Home",NUMPAD_ADD:"NumpadAdd",NUMPAD_SUBTRACT:"NumpadSubtract",NUMPAD_DECIMAL:"NumpadDecimal",NUMPAD_DIVIDE:"NumpadDivide",NUMPAD_ENTER:"NumpadEnter",NUMPAD_MULTIPLY:"NumpadMultiply",PAGE_UP:"PageUp",PAGE_DOWN:"PageUp",UP:"ArrowUp",DOWN:"ArrowDown",LEFT:"ArrowLeft",RIGHT:"ArrowUp"}));var LOCALES=(/* unused pure expression or super */ null && ([]));var PLAIN_OBJECT_PROTOTYPES=[Object.prototype];// A list of special regular expression symbols.
|
|
42
|
-
var SPECIAL_REGEX_SEQUENCES=(/* unused pure expression or super */ null && (["-","[","]","(",")","^","$","*","+",".","{","}"]));// Saves a string with all css3 browser specific transition end event names.
|
|
43
|
-
var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd";
|
|
44
|
-
|
|
45
|
-
/***/ }),
|
|
46
|
-
/* 1 */
|
|
47
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
48
|
-
|
|
49
|
-
"use strict";
|
|
50
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51
|
-
/* harmony export */ determineGlobalContext: function() { return /* binding */ determineGlobalContext; },
|
|
52
|
-
/* harmony export */ optionalImport: function() { return /* binding */ optionalImport; },
|
|
53
|
-
/* harmony export */ optionalRequire: function() { return /* binding */ optionalRequire; }
|
|
54
|
-
/* harmony export */ });
|
|
55
|
-
/* unused harmony exports currentRequire, clearRequireCache, isolatedRequire, isImportSyntaxSupported */
|
|
56
|
-
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
57
|
-
// #!/usr/bin/env babel-node
|
|
58
|
-
// -*- coding: utf-8 -*-
|
|
59
|
-
/** @module module *//* !
|
|
60
|
-
region header
|
|
61
|
-
[Project page](https://torben.website/clientnode)
|
|
62
|
-
|
|
63
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
64
|
-
|
|
65
|
-
License
|
|
66
|
-
-------
|
|
67
|
-
|
|
68
|
-
This library written by Torben Sickert stands under a creative commons
|
|
69
|
-
naming 3.0 unported license.
|
|
70
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
71
|
-
endregion
|
|
72
|
-
*/function _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.
|
|
73
|
-
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
|
|
74
|
-
}catch(error){throw error}finally{restoreRequireCache(requireFunction.cache,backup)}};// Make preprocessed import function available at runtime.
|
|
75
|
-
var isImportSyntaxSupported=function isImportSyntaxSupported(){try{// eslint-disable-next-line @typescript-eslint/no-implied-eval
|
|
76
|
-
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}();
|
|
77
|
-
|
|
78
|
-
/***/ }),
|
|
79
|
-
/* 2 */,
|
|
80
|
-
/* 3 */,
|
|
81
|
-
/* 4 */
|
|
82
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
83
|
-
|
|
84
|
-
"use strict";
|
|
85
|
-
__webpack_require__.r(__webpack_exports__);
|
|
86
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
87
|
-
/* harmony export */ MAXIMAL_NUMBER_OF_ITERATIONS: function() { return /* binding */ MAXIMAL_NUMBER_OF_ITERATIONS; },
|
|
88
|
-
/* harmony export */ NOOP: function() { return /* binding */ NOOP; },
|
|
89
|
-
/* harmony export */ globalContext: function() { return /* binding */ globalContext; },
|
|
90
|
-
/* harmony export */ mockConsole: function() { return /* binding */ mockConsole; },
|
|
91
|
-
/* harmony export */ setGlobalContext: function() { return /* binding */ setGlobalContext; }
|
|
92
|
-
/* harmony export */ });
|
|
93
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
|
|
94
|
-
/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
95
|
-
// #!/usr/bin/env babel-node
|
|
96
|
-
// -*- coding: utf-8 -*-
|
|
97
|
-
/** @module context *//* !
|
|
98
|
-
region header
|
|
99
|
-
[Project page](https://torben.website/clientnode)
|
|
100
|
-
|
|
101
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
102
|
-
|
|
103
|
-
License
|
|
104
|
-
-------
|
|
105
|
-
|
|
106
|
-
This library written by Torben Sickert stands under a creative commons
|
|
107
|
-
naming 3.0 unported license.
|
|
108
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
109
|
-
endregion
|
|
110
|
-
*/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={value:100};// A no-op dummy function.
|
|
111
|
-
var NOOP=function NOOP(){// Do nothing.
|
|
112
|
-
};var mockConsole=function mockConsole(){// Avoid errors in browsers that lack a console.
|
|
113
|
-
if(!Object.prototype.hasOwnProperty.call(globalContext,"console"))globalContext.console={};if(!globalContext.console)globalContext.console={};var _iterator=_createForOfIteratorHelper(_constants__WEBPACK_IMPORTED_MODULE_1__.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()}};
|
|
114
|
-
|
|
115
|
-
/***/ }),
|
|
116
|
-
/* 5 */
|
|
117
|
-
/***/ (function(module) {
|
|
118
|
-
|
|
119
|
-
function webpackEmptyContext(req) {
|
|
120
|
-
var e = new Error("Cannot find module '" + req + "'");
|
|
121
|
-
e.code = 'MODULE_NOT_FOUND';
|
|
122
|
-
throw e;
|
|
123
|
-
}
|
|
124
|
-
webpackEmptyContext.keys = function() { return []; };
|
|
125
|
-
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
126
|
-
webpackEmptyContext.id = 5;
|
|
127
|
-
module.exports = webpackEmptyContext;
|
|
128
|
-
|
|
129
|
-
/***/ })
|
|
130
|
-
/******/ ]);
|
|
131
|
-
/************************************************************************/
|
|
132
|
-
/******/ // The module cache
|
|
133
|
-
/******/ var __webpack_module_cache__ = {};
|
|
134
|
-
/******/
|
|
135
|
-
/******/ // The require function
|
|
136
|
-
/******/ function __webpack_require__(moduleId) {
|
|
137
|
-
/******/ // Check if module is in cache
|
|
138
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
139
|
-
/******/ if (cachedModule !== undefined) {
|
|
140
|
-
/******/ return cachedModule.exports;
|
|
141
|
-
/******/ }
|
|
142
|
-
/******/ // Create a new module (and put it into the cache)
|
|
143
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
144
|
-
/******/ id: moduleId,
|
|
145
|
-
/******/ loaded: false,
|
|
146
|
-
/******/ exports: {}
|
|
147
|
-
/******/ };
|
|
148
|
-
/******/
|
|
149
|
-
/******/ // Execute the module function
|
|
150
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
151
|
-
/******/
|
|
152
|
-
/******/ // Flag the module as loaded
|
|
153
|
-
/******/ module.loaded = true;
|
|
154
|
-
/******/
|
|
155
|
-
/******/ // Return the exports of the module
|
|
156
|
-
/******/ return module.exports;
|
|
157
|
-
/******/ }
|
|
158
|
-
/******/
|
|
159
|
-
/******/ // expose the module cache
|
|
160
|
-
/******/ __webpack_require__.c = __webpack_module_cache__;
|
|
161
|
-
/******/
|
|
162
|
-
/************************************************************************/
|
|
163
|
-
/******/ /* webpack/runtime/define property getters */
|
|
164
|
-
/******/ !function() {
|
|
165
|
-
/******/ // define getter/value functions for harmony exports
|
|
166
|
-
/******/ __webpack_require__.d = function(exports, definition) {
|
|
167
|
-
/******/ if(Array.isArray(definition)) {
|
|
168
|
-
/******/ var i = 0;
|
|
169
|
-
/******/ while(i < definition.length) {
|
|
170
|
-
/******/ var key = definition[i++];
|
|
171
|
-
/******/ var binding = definition[i++];
|
|
172
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
173
|
-
/******/ if(binding === 0) {
|
|
174
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
175
|
-
/******/ } else {
|
|
176
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
177
|
-
/******/ }
|
|
178
|
-
/******/ } else if(binding === 0) { i++; }
|
|
179
|
-
/******/ }
|
|
180
|
-
/******/ } else {
|
|
181
|
-
/******/ for(var key in definition) {
|
|
182
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
183
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
184
|
-
/******/ }
|
|
185
|
-
/******/ }
|
|
186
|
-
/******/ }
|
|
187
|
-
/******/ };
|
|
188
|
-
/******/ }();
|
|
189
|
-
/******/
|
|
190
|
-
/******/ /* webpack/runtime/global */
|
|
191
|
-
/******/ !function() {
|
|
192
|
-
/******/ __webpack_require__.g = (function() {
|
|
193
|
-
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
194
|
-
/******/ try {
|
|
195
|
-
/******/ return this || new Function('return this')();
|
|
196
|
-
/******/ } catch (e) {
|
|
197
|
-
/******/ if (typeof window === 'object') return window;
|
|
198
|
-
/******/ }
|
|
199
|
-
/******/ })();
|
|
200
|
-
/******/ }();
|
|
201
|
-
/******/
|
|
202
|
-
/******/ /* webpack/runtime/harmony module decorator */
|
|
203
|
-
/******/ !function() {
|
|
204
|
-
/******/ __webpack_require__.hmd = function(module) {
|
|
205
|
-
/******/ module = Object.create(module);
|
|
206
|
-
/******/ if (!module.children) module.children = [];
|
|
207
|
-
/******/ Object.defineProperty(module, 'exports', {
|
|
208
|
-
/******/ enumerable: true,
|
|
209
|
-
/******/ set: function() {
|
|
210
|
-
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
211
|
-
/******/ }
|
|
212
|
-
/******/ });
|
|
213
|
-
/******/ return module;
|
|
214
|
-
/******/ };
|
|
215
|
-
/******/ }();
|
|
216
|
-
/******/
|
|
217
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
218
|
-
/******/ !function() {
|
|
219
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
220
|
-
/******/ }();
|
|
221
|
-
/******/
|
|
222
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
223
|
-
/******/ !function() {
|
|
224
|
-
/******/ // define __esModule on exports
|
|
225
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
226
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
227
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
228
|
-
/******/ }
|
|
229
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
230
|
-
/******/ };
|
|
231
|
-
/******/ }();
|
|
232
|
-
/******/
|
|
233
|
-
/************************************************************************/
|
|
234
|
-
/******/
|
|
235
|
-
/******/ // module cache are used so entry inlining is disabled
|
|
236
|
-
/******/ // startup
|
|
237
|
-
/******/ // Load entry module and return exports
|
|
238
|
-
/******/ var __webpack_exports__ = __webpack_require__(4);
|
|
239
|
-
/******/
|
|
240
|
-
/******/ return __webpack_exports__;
|
|
241
|
-
/******/ })()
|
|
242
|
-
;
|
|
243
|
-
});
|