clientnode 4.0.1431 → 4.0.1432
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Lock.d.ts +39 -0
- package/dist/Lock.js +94 -83
- package/dist/Logger.d.ts +102 -0
- package/dist/Logger.js +700 -163
- package/dist/Semaphore.d.ts +29 -0
- package/dist/Semaphore.js +81 -46
- package/dist/array.d.ts +150 -0
- package/dist/array.js +554 -337
- package/dist/bundle/Lock.js +111 -0
- package/dist/bundle/Logger.js +690 -0
- package/dist/bundle/Semaphore.js +100 -0
- package/dist/bundle/array.js +634 -0
- package/dist/bundle/cli.js +85 -0
- package/dist/bundle/constants.js +225 -0
- package/dist/bundle/context.js +242 -0
- package/dist/bundle/cookie.js +261 -0
- package/dist/bundle/data-transfer.js +726 -0
- package/dist/bundle/datetime.js +1036 -0
- package/dist/bundle/domNode.js +470 -0
- package/dist/bundle/expression/evaluators.js +1087 -0
- package/dist/bundle/expression/helper.js +106 -0
- package/dist/bundle/expression/index.js +1195 -0
- package/dist/bundle/expression/indicator-functions.js +235 -0
- package/dist/bundle/expression/type.js +50 -0
- package/dist/bundle/filesystem.js +373 -0
- package/dist/bundle/function.js +105 -0
- package/dist/bundle/index.js +2654 -0
- package/dist/bundle/indicators.js +445 -0
- package/dist/bundle/number.js +411 -0
- package/dist/bundle/object.js +975 -0
- package/dist/bundle/process.js +274 -0
- package/dist/bundle/property-types.js +167 -0
- package/dist/bundle/require.js +179 -0
- package/dist/bundle/scope.js +1778 -0
- package/dist/bundle/string.js +1066 -0
- package/dist/bundle/test-helper.js +676 -0
- package/dist/bundle/type.js +50 -0
- package/dist/bundle/utility.js +361 -0
- package/dist/cli.d.ts +31 -0
- package/dist/cli.js +71 -37
- package/dist/compatible/Lock.js +111 -0
- package/dist/compatible/Logger.js +690 -0
- package/dist/compatible/Semaphore.js +100 -0
- package/dist/compatible/array.js +634 -0
- package/dist/compatible/cli.js +85 -0
- package/dist/compatible/constants.js +225 -0
- package/dist/compatible/context.js +242 -0
- package/dist/compatible/cookie.js +261 -0
- package/dist/compatible/data-transfer.js +726 -0
- package/dist/compatible/datetime.js +1036 -0
- package/dist/compatible/domNode.js +470 -0
- package/dist/compatible/expression/evaluators.js +1087 -0
- package/dist/compatible/expression/helper.js +106 -0
- package/dist/compatible/expression/index.js +1195 -0
- package/dist/compatible/expression/indicator-functions.js +235 -0
- package/dist/compatible/expression/type.js +50 -0
- package/dist/compatible/filesystem.js +373 -0
- package/dist/compatible/function.js +105 -0
- package/dist/compatible/index.js +2654 -0
- package/dist/compatible/indicators.js +445 -0
- package/dist/compatible/number.js +411 -0
- package/dist/compatible/object.js +975 -0
- package/dist/compatible/process.js +274 -0
- package/dist/compatible/property-types.js +167 -0
- package/dist/compatible/require.js +179 -0
- package/dist/compatible/scope.js +1778 -0
- package/dist/compatible/string.js +1066 -0
- package/dist/compatible/test-helper.js +676 -0
- package/dist/compatible/type.js +50 -0
- package/dist/compatible/utility.js +361 -0
- package/dist/constants.d.ts +99 -0
- package/dist/constants.js +209 -110
- package/dist/context.d.ts +8 -0
- package/dist/context.js +228 -25
- package/dist/cookie.d.ts +31 -0
- package/dist/cookie.js +225 -48
- package/dist/data-transfer.d.ts +45 -0
- package/dist/data-transfer.js +710 -166
- package/dist/datetime.d.ts +37 -0
- package/dist/datetime.js +1031 -241
- package/dist/domNode.d.ts +82 -0
- package/dist/domNode.js +440 -277
- package/dist/expression/evaluators.d.ts +55 -0
- package/dist/expression/evaluators.js +1084 -234
- package/dist/expression/helper.d.ts +4 -0
- package/dist/expression/helper.js +135 -82
- package/dist/expression/index.d.ts +7 -0
- package/dist/expression/index.js +1217 -10
- package/dist/expression/indicator-functions.d.ts +14 -0
- package/dist/expression/indicator-functions.js +239 -21
- package/dist/expression/type.d.ts +70 -0
- package/dist/expression/type.js +34 -4
- package/dist/filesystem.d.ts +143 -0
- package/dist/filesystem.js +308 -323
- package/dist/function.d.ts +20 -0
- package/dist/function.js +125 -51
- package/dist/index.d.ts +23 -0
- package/dist/index.js +2677 -26
- package/dist/indicators.d.ts +68 -0
- package/dist/indicators.js +426 -68
- package/dist/number.d.ts +35 -0
- package/dist/number.js +409 -25
- package/dist/object.d.ts +215 -0
- package/dist/object.js +836 -759
- package/dist/process.d.ts +22 -0
- package/dist/process.js +245 -40
- package/dist/property-types.d.ts +460 -0
- package/dist/property-types.js +157 -96
- package/dist/require.d.ts +8 -0
- package/dist/require.js +163 -66
- package/dist/scope.d.ts +44 -0
- package/dist/scope.js +1795 -56
- package/dist/string.d.ts +299 -0
- package/dist/string.js +891 -595
- package/dist/test/Lock.d.ts +1 -0
- package/dist/test/Logger.d.ts +1 -0
- package/dist/test/Semaphore.d.ts +1 -0
- package/dist/test/array.d.ts +1 -0
- package/dist/test/cookie.d.ts +1 -0
- package/dist/test/data-transfer.d.ts +1 -0
- package/dist/test/datetime.d.ts +1 -0
- package/dist/test/domNode.d.ts +1 -0
- package/dist/test/expression/evaluators.d.ts +1 -0
- package/dist/test/expression/helper.d.ts +1 -0
- package/dist/test/expression/indicator-functions.d.ts +1 -0
- package/dist/test/filesystem.d.ts +1 -0
- package/dist/test/function.d.ts +1 -0
- package/dist/test/indicators.d.ts +1 -0
- package/dist/test/number.d.ts +1 -0
- package/dist/test/object.d.ts +1 -0
- package/dist/test/process.d.ts +1 -0
- package/dist/test/property-types.d.ts +1 -0
- package/dist/test/scope.d.ts +1 -0
- package/dist/test/string.d.ts +1 -0
- package/dist/test/utility.d.ts +1 -0
- package/dist/test-helper.d.ts +143 -0
- package/dist/test-helper.js +527 -172
- package/dist/type.d.ts +217 -0
- package/dist/type.js +37 -8
- package/dist/utility.d.ts +44 -0
- package/dist/utility.js +335 -91
- package/package.json +2 -2
package/dist/property-types.js
CHANGED
|
@@ -1,9 +1,151 @@
|
|
|
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(require("core-js/modules/es.array.includes.js"), require("prop-types"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["core-js/modules/es.array.includes.js", "prop-types"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("core-js/modules/es.array.includes.js"), require("prop-types")) : factory(root["core-js/modules/es.array.includes.js"], root["prop-types"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__32__) {
|
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 0:
|
|
16
|
+
/***/ (function(module) {
|
|
17
|
+
|
|
18
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
|
|
19
|
+
|
|
20
|
+
/***/ }),
|
|
21
|
+
|
|
22
|
+
/***/ 32:
|
|
23
|
+
/***/ (function(module) {
|
|
24
|
+
|
|
25
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__32__;
|
|
26
|
+
|
|
27
|
+
/***/ })
|
|
28
|
+
|
|
29
|
+
/******/ });
|
|
30
|
+
/************************************************************************/
|
|
31
|
+
/******/ // The module cache
|
|
32
|
+
/******/ var __webpack_module_cache__ = {};
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // The require function
|
|
35
|
+
/******/ function __webpack_require__(moduleId) {
|
|
36
|
+
/******/ // Check if module is in cache
|
|
37
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
38
|
+
/******/ if (cachedModule !== undefined) {
|
|
39
|
+
/******/ return cachedModule.exports;
|
|
40
|
+
/******/ }
|
|
41
|
+
/******/ // Create a new module (and put it into the cache)
|
|
42
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
43
|
+
/******/ // no module.id needed
|
|
44
|
+
/******/ // no module.loaded needed
|
|
45
|
+
/******/ exports: {}
|
|
46
|
+
/******/ };
|
|
47
|
+
/******/
|
|
48
|
+
/******/ // Execute the module function
|
|
49
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
50
|
+
/******/
|
|
51
|
+
/******/ // Return the exports of the module
|
|
52
|
+
/******/ return module.exports;
|
|
53
|
+
/******/ }
|
|
54
|
+
/******/
|
|
55
|
+
/************************************************************************/
|
|
56
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
57
|
+
/******/ !function() {
|
|
58
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
59
|
+
/******/ __webpack_require__.n = function(module) {
|
|
60
|
+
/******/ var getter = module && module.__esModule ?
|
|
61
|
+
/******/ function() { return module['default']; } :
|
|
62
|
+
/******/ function() { return module; };
|
|
63
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
64
|
+
/******/ return getter;
|
|
65
|
+
/******/ };
|
|
66
|
+
/******/ }();
|
|
67
|
+
/******/
|
|
68
|
+
/******/ /* webpack/runtime/define property getters */
|
|
69
|
+
/******/ !function() {
|
|
70
|
+
/******/ // define getter/value functions for harmony exports
|
|
71
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
72
|
+
/******/ if(Array.isArray(definition)) {
|
|
73
|
+
/******/ var i = 0;
|
|
74
|
+
/******/ while(i < definition.length) {
|
|
75
|
+
/******/ var key = definition[i++];
|
|
76
|
+
/******/ var binding = definition[i++];
|
|
77
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
78
|
+
/******/ if(binding === 0) {
|
|
79
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
80
|
+
/******/ } else {
|
|
81
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
82
|
+
/******/ }
|
|
83
|
+
/******/ } else if(binding === 0) { i++; }
|
|
84
|
+
/******/ }
|
|
85
|
+
/******/ } else {
|
|
86
|
+
/******/ for(var key in definition) {
|
|
87
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
88
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
89
|
+
/******/ }
|
|
90
|
+
/******/ }
|
|
91
|
+
/******/ }
|
|
92
|
+
/******/ };
|
|
93
|
+
/******/ }();
|
|
94
|
+
/******/
|
|
95
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
96
|
+
/******/ !function() {
|
|
97
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
98
|
+
/******/ }();
|
|
99
|
+
/******/
|
|
100
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
101
|
+
/******/ !function() {
|
|
102
|
+
/******/ // define __esModule on exports
|
|
103
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
104
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
105
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
106
|
+
/******/ }
|
|
107
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
108
|
+
/******/ };
|
|
109
|
+
/******/ }();
|
|
110
|
+
/******/
|
|
111
|
+
/************************************************************************/
|
|
112
|
+
var __webpack_exports__ = {};
|
|
113
|
+
__webpack_require__.r(__webpack_exports__);
|
|
114
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
115
|
+
/* harmony export */ DummyTypes: function() { return /* binding */ DummyTypes; },
|
|
116
|
+
/* harmony export */ NullSymbol: function() { return /* binding */ NullSymbol; },
|
|
117
|
+
/* harmony export */ PropertyTypes: function() { return /* binding */ PropertyTypes; },
|
|
118
|
+
/* harmony export */ RealTypes: function() { return /* binding */ RealTypes; },
|
|
119
|
+
/* harmony export */ UndefinedSymbol: function() { return /* binding */ UndefinedSymbol; },
|
|
120
|
+
/* harmony export */ ValidationError: function() { return /* binding */ ValidationError; },
|
|
121
|
+
/* harmony export */ any: function() { return /* binding */ any; },
|
|
122
|
+
/* harmony export */ array: function() { return /* binding */ array; },
|
|
123
|
+
/* harmony export */ arrayOf: function() { return /* binding */ arrayOf; },
|
|
124
|
+
/* harmony export */ bool: function() { return /* binding */ bool; },
|
|
125
|
+
/* harmony export */ boolean: function() { return /* binding */ property_types_boolean; },
|
|
126
|
+
/* harmony export */ createDummy: function() { return /* binding */ createDummy; },
|
|
127
|
+
/* harmony export */ element: function() { return /* binding */ property_types_element; },
|
|
128
|
+
/* harmony export */ elementType: function() { return /* binding */ elementType; },
|
|
129
|
+
/* harmony export */ exact: function() { return /* binding */ exact; },
|
|
130
|
+
/* harmony export */ func: function() { return /* binding */ func; },
|
|
131
|
+
/* harmony export */ instanceOf: function() { return /* binding */ instanceOf; },
|
|
132
|
+
/* harmony export */ node: function() { return /* binding */ node; },
|
|
133
|
+
/* harmony export */ number: function() { return /* binding */ number; },
|
|
134
|
+
/* harmony export */ object: function() { return /* binding */ object; },
|
|
135
|
+
/* harmony export */ objectOf: function() { return /* binding */ objectOf; },
|
|
136
|
+
/* harmony export */ oneOf: function() { return /* binding */ oneOf; },
|
|
137
|
+
/* harmony export */ oneOfType: function() { return /* binding */ oneOfType; },
|
|
138
|
+
/* harmony export */ shape: function() { return /* binding */ shape; },
|
|
139
|
+
/* harmony export */ string: function() { return /* binding */ string; },
|
|
140
|
+
/* harmony export */ symbol: function() { return /* binding */ symbol; }
|
|
141
|
+
/* harmony export */ });
|
|
142
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
143
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
144
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32);
|
|
145
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
1
146
|
// #!/usr/bin/env babel-node
|
|
2
147
|
// -*- coding: utf-8 -*-
|
|
3
|
-
/** @module propertTypes
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
/* !
|
|
148
|
+
/** @module propertTypes *//* !
|
|
7
149
|
region header
|
|
8
150
|
[Project page](https://torben.website/react-material-input)
|
|
9
151
|
|
|
@@ -16,100 +158,19 @@
|
|
|
16
158
|
naming 3.0 unported license.
|
|
17
159
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
18
160
|
endregion
|
|
19
|
-
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
24
|
-
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); }
|
|
25
|
-
import PropTypes, { Requireable } from 'prop-types';
|
|
26
|
-
// endregion
|
|
27
|
-
export const NullSymbol = Symbol('clientnodePropertyTypesNull');
|
|
28
|
-
export const UndefinedSymbol = Symbol('clientnodePropertyTypesUndefined');
|
|
29
|
-
export const RealTypes = {
|
|
30
|
-
any: PropTypes.any,
|
|
31
|
-
array: PropTypes.array,
|
|
32
|
-
arrayOf: PropTypes.arrayOf,
|
|
33
|
-
bool: PropTypes.bool,
|
|
34
|
-
boolean: PropTypes.bool,
|
|
35
|
-
element: PropTypes.element,
|
|
36
|
-
elementType: PropTypes.elementType,
|
|
37
|
-
exact: PropTypes.exact,
|
|
38
|
-
func: PropTypes.func,
|
|
39
|
-
instanceOf: PropTypes.instanceOf,
|
|
40
|
-
node: PropTypes.node,
|
|
41
|
-
number: PropTypes.number,
|
|
42
|
-
object: PropTypes.object,
|
|
43
|
-
objectOf: PropTypes.objectOf,
|
|
44
|
-
oneOf: PropTypes.oneOf,
|
|
45
|
-
oneOfType: PropTypes.oneOfType,
|
|
46
|
-
shape: PropTypes.shape,
|
|
47
|
-
string: PropTypes.string,
|
|
48
|
-
symbol: PropTypes.symbol
|
|
49
|
-
};
|
|
50
|
-
export const createDummy = (result = null) => {
|
|
51
|
-
const type = () => result;
|
|
52
|
-
type.isRequired = () => null;
|
|
53
|
-
return type;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
161
|
+
*/// region imports
|
|
162
|
+
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 _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 _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e))}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&_setPrototypeOf(p,r.prototype),p}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(n){return"function"==typeof t}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}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)}// endregion
|
|
163
|
+
var NullSymbol=Symbol("clientnodePropertyTypesNull");var UndefinedSymbol=Symbol("clientnodePropertyTypesUndefined");var RealTypes={any:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().any),array:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().array),arrayOf:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf),bool:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),boolean:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),element:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().element),elementType:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().elementType),exact:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().exact),func:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),instanceOf:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().instanceOf),node:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),number:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),object:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().object),objectOf:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().objectOf),oneOf:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf),oneOfType:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType),shape:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape),string:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),symbol:(prop_types__WEBPACK_IMPORTED_MODULE_1___default().symbol)};var createDummy=function createDummy(result){if(result===void 0){result=null}var type=function type(){return result};type.isRequired=function(){return null};return type};/**
|
|
56
164
|
* Dummy validation class.
|
|
57
165
|
* @property message - Holds error message as string.
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
* Initializes dummy validation error instance.
|
|
62
|
-
*/
|
|
63
|
-
constructor() {
|
|
64
|
-
super('return null');
|
|
65
|
-
_defineProperty(this, "message", 'DummyErrorMessage');
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
/*
|
|
166
|
+
*/var ValidationError=/*#__PURE__*/function(_Function){/**
|
|
167
|
+
* Initializes dummy validation error instance.
|
|
168
|
+
*/function ValidationError(){var _this;_classCallCheck(this,ValidationError);_this=_callSuper(this,ValidationError,["return null"]);_defineProperty(_this,"message","DummyErrorMessage");return _this}_inherits(ValidationError,_Function);return _createClass(ValidationError)}(/*#__PURE__*/_wrapNativeSuper(Function));/*
|
|
69
169
|
NOTE: Each value has to be different (a real copy) to distinguish them from
|
|
70
170
|
each other during runtime property reflections.
|
|
71
171
|
Strict equality checks between different values have to be negative.
|
|
72
|
-
*/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
bool: createDummy(),
|
|
78
|
-
boolean: createDummy(),
|
|
79
|
-
element: createDummy(),
|
|
80
|
-
elementType: createDummy(new ValidationError()),
|
|
81
|
-
exact: createDummy(),
|
|
82
|
-
func: createDummy(),
|
|
83
|
-
instanceOf: createDummy(new ValidationError()),
|
|
84
|
-
node: createDummy(),
|
|
85
|
-
number: createDummy(),
|
|
86
|
-
object: createDummy(),
|
|
87
|
-
objectOf: createDummy(new ValidationError()),
|
|
88
|
-
oneOf: createDummy(new ValidationError()),
|
|
89
|
-
oneOfType: createDummy(new ValidationError()),
|
|
90
|
-
shape: createDummy(new ValidationError()),
|
|
91
|
-
string: createDummy(),
|
|
92
|
-
symbol: createDummy()
|
|
93
|
-
};
|
|
94
|
-
export const PropertyTypes = ['debug', 'dev', 'development'].includes((process.env.NODE_ENV || '').trim().toLowerCase()) ? RealTypes : DummyTypes;
|
|
95
|
-
export const any = PropertyTypes.any;
|
|
96
|
-
export const array = PropertyTypes.array;
|
|
97
|
-
export const arrayOf = PropertyTypes.arrayOf;
|
|
98
|
-
export const bool = PropertyTypes.bool;
|
|
99
|
-
export const boolean = PropertyTypes.bool;
|
|
100
|
-
export const element = PropertyTypes.element;
|
|
101
|
-
export const elementType = PropertyTypes.elementType;
|
|
102
|
-
export const exact = PropertyTypes.exact;
|
|
103
|
-
export const func = PropertyTypes.func;
|
|
104
|
-
export const instanceOf = PropertyTypes.instanceOf;
|
|
105
|
-
export const node = PropertyTypes.node;
|
|
106
|
-
export const number = PropertyTypes.number;
|
|
107
|
-
export const object = PropertyTypes.object;
|
|
108
|
-
export const objectOf = PropertyTypes.objectOf;
|
|
109
|
-
export const oneOf = PropertyTypes.oneOf;
|
|
110
|
-
export const oneOfType = PropertyTypes.oneOfType;
|
|
111
|
-
export const shape = PropertyTypes.shape;
|
|
112
|
-
export const string = PropertyTypes.string;
|
|
113
|
-
export const symbol = PropertyTypes.symbol;
|
|
114
|
-
export default PropertyTypes;
|
|
115
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vc3JjL3Byb3BlcnR5LXR5cGVzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vICMhL3Vzci9iaW4vZW52IGJhYmVsLW5vZGVcbi8vIC0qLSBjb2Rpbmc6IHV0Zi04IC0qLVxuLyoqIEBtb2R1bGUgcHJvcGVydFR5cGVzICovXG4ndXNlIHN0cmljdCdcbi8qICFcbiAgICByZWdpb24gaGVhZGVyXG4gICAgW1Byb2plY3QgcGFnZV0oaHR0cHM6Ly90b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YSxDQUFDLEtBQUs7QUFDeEMsT0FBTyxNQUFNLElBQUksR0FBRyxhQUFhLENBQUMsSUFBSTtBQUN0QyxPQUFPLE1BQU0sVUFBVSxHQUFHLGFBQWEsQ0FBQyxVQUFVO0FBQ2xELE9BQU8sTUFBTSxJQUFJLEdBQUcsYUFBYSxDQUFDLElBQUk7QUFDdEMsT0FBTyxNQUFNLE1BQU0sR0FBRyxhQUFhLENBQUMsTUFBTTtBQUMxQyxPQUFPLE1BQU0sTUFBTSxHQUFHLGFBQWEsQ0FBQyxNQUFNO0FBQzFDLE9BQU8sTUFBTSxRQUFRLEdBQUcsYUFBYSxDQUFDLFFBQVE7QUFDOUMsT0FBTyxNQUFNLEtBQUssR0FBRyxhQUFhLENBQUMsS0FBSztBQUN4QyxPQUFPLE1BQU0sU0FBUyxHQUFHLGFBQWEsQ0FBQyxTQUFTO0FBQ2hELE9BQU8sTUFBTSxLQUFLLEdBQUcsYUFBYSxDQUFDLEtBQUs7QUFDeEMsT0FBTyxNQUFNLE1BQU0sR0FBRyxhQUFhLENBQUMsTUFBTTtBQUMxQyxPQUFPLE1BQU0sTUFBTSxHQUFHLGFBQWEsQ0FBQyxNQUFNO0FBSTFDLGVBQWUsYUFBYSIsImlnbm9yZUxpc3QiOltdfQ==
|
|
172
|
+
*/var DummyTypes={any:createDummy(),array:createDummy(),arrayOf:createDummy(new ValidationError),bool:createDummy(),boolean:createDummy(),element:createDummy(),elementType:createDummy(new ValidationError),exact:createDummy(),func:createDummy(),instanceOf:createDummy(new ValidationError),node:createDummy(),number:createDummy(),object:createDummy(),objectOf:createDummy(new ValidationError),oneOf:createDummy(new ValidationError),oneOfType:createDummy(new ValidationError),shape:createDummy(new ValidationError),string:createDummy(),symbol:createDummy()};var PropertyTypes=["debug","dev","development"].includes((process.env.NODE_ENV||"").trim().toLowerCase())?RealTypes:DummyTypes;var any=PropertyTypes.any;var array=PropertyTypes.array;var arrayOf=PropertyTypes.arrayOf;var bool=PropertyTypes.bool;var property_types_boolean=PropertyTypes.bool;var property_types_element=PropertyTypes.element;var elementType=PropertyTypes.elementType;var exact=PropertyTypes.exact;var func=PropertyTypes.func;var instanceOf=PropertyTypes.instanceOf;var node=PropertyTypes.node;var number=PropertyTypes.number;var object=PropertyTypes.object;var objectOf=PropertyTypes.objectOf;var oneOf=PropertyTypes.oneOf;var oneOfType=PropertyTypes.oneOfType;var shape=PropertyTypes.shape;var string=PropertyTypes.string;var symbol=PropertyTypes.symbol;/* harmony default export */ __webpack_exports__["default"] = (PropertyTypes);
|
|
173
|
+
/******/ return __webpack_exports__;
|
|
174
|
+
/******/ })()
|
|
175
|
+
;
|
|
176
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FirstParameter } from './type';
|
|
2
|
+
export declare const determineGlobalContext: () => Partial<typeof globalThis>;
|
|
3
|
+
export declare const currentRequire: null | typeof require;
|
|
4
|
+
export declare const optionalRequire: <T = unknown>(id: string) => null | T;
|
|
5
|
+
export declare const clearRequireCache: (cache?: typeof require.cache) => typeof require.cache;
|
|
6
|
+
export declare const isolatedRequire: (path: FirstParameter<typeof require>, requireFunction?: typeof require) => ReturnType<typeof require>;
|
|
7
|
+
export declare const isImportSyntaxSupported: () => boolean;
|
|
8
|
+
export declare const optionalImport: <T = unknown>(id: string, options?: {}) => Promise<null | T>;
|
package/dist/require.js
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
|
+
'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = factory();
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(this, function() {
|
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
|
12
|
+
/******/ var __webpack_modules__ = ({
|
|
13
|
+
|
|
14
|
+
/***/ 2:
|
|
15
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16
|
+
|
|
17
|
+
"use strict";
|
|
18
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20
|
+
/* harmony export */ clearRequireCache: function() { return /* binding */ clearRequireCache; },
|
|
21
|
+
/* harmony export */ currentRequire: function() { return /* binding */ currentRequire; },
|
|
22
|
+
/* harmony export */ determineGlobalContext: function() { return /* binding */ determineGlobalContext; },
|
|
23
|
+
/* harmony export */ isImportSyntaxSupported: function() { return /* binding */ isImportSyntaxSupported; },
|
|
24
|
+
/* harmony export */ isolatedRequire: function() { return /* binding */ isolatedRequire; },
|
|
25
|
+
/* harmony export */ optionalImport: function() { return /* binding */ optionalImport; },
|
|
26
|
+
/* harmony export */ optionalRequire: function() { return /* binding */ optionalRequire; }
|
|
27
|
+
/* harmony export */ });
|
|
28
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
1
29
|
// #!/usr/bin/env babel-node
|
|
2
30
|
// -*- coding: utf-8 -*-
|
|
3
|
-
/** @module require
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
/* !
|
|
31
|
+
/** @module require *//* !
|
|
7
32
|
region header
|
|
8
33
|
[Project page](https://torben.website/clientnode)
|
|
9
34
|
|
|
@@ -16,67 +41,139 @@
|
|
|
16
41
|
naming 3.0 unported license.
|
|
17
42
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
18
43
|
endregion
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
44
|
+
*/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.
|
|
45
|
+
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__(6)}var backup=clearRequireCache(requireFunction.cache);try{return requireFunction(path);// eslint-disable-next-line no-useless-catch
|
|
46
|
+
}catch(error){throw error}finally{restoreRequireCache(requireFunction.cache,backup)}};// Make preprocessed import function available at runtime.
|
|
47
|
+
var isImportSyntaxSupported=function isImportSyntaxSupported(){try{new Function("import(\"data:text/javascript,\")");return true}catch(_unused2){return false}};var optionalImport=/*#__PURE__*/function(){var _optionalImport=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id,options){var _t,_t2;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:if(options===void 0){options={}}_context.p=1;if(!isImportSyntaxSupported()){_context.n=3;break}_context.n=2;return new Function("options","return import('".concat(id,"', options)"))(options);case 2:_t=_context.v;_context.n=4;break;case 3:_t=Promise.resolve(null);case 4:return _context.a(2,_t);case 5:_context.p=5;_t2=_context.v;return _context.a(2,Promise.resolve(null))}},_callee,null,[[1,5]])}));function optionalImport(_x,_x2){return _optionalImport.apply(this,arguments)}return optionalImport}();
|
|
48
|
+
|
|
49
|
+
/***/ }),
|
|
50
|
+
|
|
51
|
+
/***/ 6:
|
|
52
|
+
/***/ (function(module) {
|
|
53
|
+
|
|
54
|
+
function webpackEmptyContext(req) {
|
|
55
|
+
var e = new Error("Cannot find module '" + req + "'");
|
|
56
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
57
|
+
throw e;
|
|
58
|
+
}
|
|
59
|
+
webpackEmptyContext.keys = function() { return []; };
|
|
60
|
+
webpackEmptyContext.resolve = webpackEmptyContext;
|
|
61
|
+
webpackEmptyContext.id = 6;
|
|
62
|
+
module.exports = webpackEmptyContext;
|
|
32
63
|
|
|
33
|
-
|
|
34
|
-
export const currentRequire = typeof globalContext.require === 'undefined' ? null : globalContext.require;
|
|
35
|
-
export const optionalRequire = id => {
|
|
36
|
-
try {
|
|
37
|
-
return currentRequire ? currentRequire(id) : null;
|
|
38
|
-
} catch {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
export const clearRequireCache = (cache = currentRequire?.cache || require.cache) => {
|
|
43
|
-
const backup = {};
|
|
44
|
-
for (const [key, module] of Object.entries(cache)) {
|
|
45
|
-
backup[key] = module;
|
|
46
|
-
delete cache[key];
|
|
47
|
-
}
|
|
48
|
-
return backup;
|
|
49
|
-
};
|
|
50
|
-
const restoreRequireCache = (cache = currentRequire?.cache || require.cache, backup) => {
|
|
51
|
-
clearRequireCache();
|
|
52
|
-
for (const [key, module] of Object.entries(backup)) cache[key] = module;
|
|
53
|
-
};
|
|
54
|
-
export const isolatedRequire = (path, requireFunction = currentRequire || require) => {
|
|
55
|
-
const backup = clearRequireCache(requireFunction.cache);
|
|
56
|
-
try {
|
|
57
|
-
return requireFunction(path);
|
|
58
|
-
// eslint-disable-next-line no-useless-catch
|
|
59
|
-
} catch (error) {
|
|
60
|
-
throw error;
|
|
61
|
-
} finally {
|
|
62
|
-
restoreRequireCache(requireFunction.cache, backup);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
64
|
+
/***/ })
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
66
|
+
/******/ });
|
|
67
|
+
/************************************************************************/
|
|
68
|
+
/******/ // The module cache
|
|
69
|
+
/******/ var __webpack_module_cache__ = {};
|
|
70
|
+
/******/
|
|
71
|
+
/******/ // The require function
|
|
72
|
+
/******/ function __webpack_require__(moduleId) {
|
|
73
|
+
/******/ // Check if module is in cache
|
|
74
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
75
|
+
/******/ if (cachedModule !== undefined) {
|
|
76
|
+
/******/ return cachedModule.exports;
|
|
77
|
+
/******/ }
|
|
78
|
+
/******/ // Create a new module (and put it into the cache)
|
|
79
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
80
|
+
/******/ id: moduleId,
|
|
81
|
+
/******/ loaded: false,
|
|
82
|
+
/******/ exports: {}
|
|
83
|
+
/******/ };
|
|
84
|
+
/******/
|
|
85
|
+
/******/ // Execute the module function
|
|
86
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
87
|
+
/******/
|
|
88
|
+
/******/ // Flag the module as loaded
|
|
89
|
+
/******/ module.loaded = true;
|
|
90
|
+
/******/
|
|
91
|
+
/******/ // Return the exports of the module
|
|
92
|
+
/******/ return module.exports;
|
|
93
|
+
/******/ }
|
|
94
|
+
/******/
|
|
95
|
+
/******/ // expose the module cache
|
|
96
|
+
/******/ __webpack_require__.c = __webpack_module_cache__;
|
|
97
|
+
/******/
|
|
98
|
+
/************************************************************************/
|
|
99
|
+
/******/ /* webpack/runtime/define property getters */
|
|
100
|
+
/******/ !function() {
|
|
101
|
+
/******/ // define getter/value functions for harmony exports
|
|
102
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
103
|
+
/******/ if(Array.isArray(definition)) {
|
|
104
|
+
/******/ var i = 0;
|
|
105
|
+
/******/ while(i < definition.length) {
|
|
106
|
+
/******/ var key = definition[i++];
|
|
107
|
+
/******/ var binding = definition[i++];
|
|
108
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
109
|
+
/******/ if(binding === 0) {
|
|
110
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
111
|
+
/******/ } else {
|
|
112
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
113
|
+
/******/ }
|
|
114
|
+
/******/ } else if(binding === 0) { i++; }
|
|
115
|
+
/******/ }
|
|
116
|
+
/******/ } else {
|
|
117
|
+
/******/ for(var key in definition) {
|
|
118
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
119
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
120
|
+
/******/ }
|
|
121
|
+
/******/ }
|
|
122
|
+
/******/ }
|
|
123
|
+
/******/ };
|
|
124
|
+
/******/ }();
|
|
125
|
+
/******/
|
|
126
|
+
/******/ /* webpack/runtime/global */
|
|
127
|
+
/******/ !function() {
|
|
128
|
+
/******/ __webpack_require__.g = (function() {
|
|
129
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
130
|
+
/******/ try {
|
|
131
|
+
/******/ return this || new Function('return this')();
|
|
132
|
+
/******/ } catch (e) {
|
|
133
|
+
/******/ if (typeof window === 'object') return window;
|
|
134
|
+
/******/ }
|
|
135
|
+
/******/ })();
|
|
136
|
+
/******/ }();
|
|
137
|
+
/******/
|
|
138
|
+
/******/ /* webpack/runtime/harmony module decorator */
|
|
139
|
+
/******/ !function() {
|
|
140
|
+
/******/ __webpack_require__.hmd = function(module) {
|
|
141
|
+
/******/ module = Object.create(module);
|
|
142
|
+
/******/ if (!module.children) module.children = [];
|
|
143
|
+
/******/ Object.defineProperty(module, 'exports', {
|
|
144
|
+
/******/ enumerable: true,
|
|
145
|
+
/******/ set: function() {
|
|
146
|
+
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
147
|
+
/******/ }
|
|
148
|
+
/******/ });
|
|
149
|
+
/******/ return module;
|
|
150
|
+
/******/ };
|
|
151
|
+
/******/ }();
|
|
152
|
+
/******/
|
|
153
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
154
|
+
/******/ !function() {
|
|
155
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
156
|
+
/******/ }();
|
|
157
|
+
/******/
|
|
158
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
159
|
+
/******/ !function() {
|
|
160
|
+
/******/ // define __esModule on exports
|
|
161
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
162
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
163
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
164
|
+
/******/ }
|
|
165
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
166
|
+
/******/ };
|
|
167
|
+
/******/ }();
|
|
168
|
+
/******/
|
|
169
|
+
/************************************************************************/
|
|
170
|
+
/******/
|
|
171
|
+
/******/ // module cache are used so entry inlining is disabled
|
|
172
|
+
/******/ // startup
|
|
173
|
+
/******/ // Load entry module and return exports
|
|
174
|
+
/******/ var __webpack_exports__ = __webpack_require__(2);
|
|
175
|
+
/******/
|
|
176
|
+
/******/ return __webpack_exports__;
|
|
177
|
+
/******/ })()
|
|
178
|
+
;
|
|
179
|
+
});
|
package/dist/scope.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Mapping } from './type';
|
|
2
|
+
import * as array from './array';
|
|
3
|
+
import * as datetime from './datetime';
|
|
4
|
+
import * as filesystem from './filesystem';
|
|
5
|
+
import * as functions from './function';
|
|
6
|
+
import * as indicators from './indicators';
|
|
7
|
+
import * as logger from './Logger';
|
|
8
|
+
import * as number from './number';
|
|
9
|
+
import * as object from './object';
|
|
10
|
+
import * as require from './require';
|
|
11
|
+
import * as string from './string';
|
|
12
|
+
import * as utility from './utility';
|
|
13
|
+
export declare const UTILITY_SCOPE: {
|
|
14
|
+
readonly array: typeof array;
|
|
15
|
+
readonly datetime: typeof datetime;
|
|
16
|
+
readonly filesystem: typeof filesystem;
|
|
17
|
+
readonly functions: typeof functions;
|
|
18
|
+
readonly indicators: typeof indicators;
|
|
19
|
+
readonly logger: typeof logger;
|
|
20
|
+
readonly number: typeof number;
|
|
21
|
+
readonly object: typeof object;
|
|
22
|
+
readonly require: typeof require;
|
|
23
|
+
readonly string: typeof string;
|
|
24
|
+
readonly utility: typeof utility;
|
|
25
|
+
};
|
|
26
|
+
export declare const UTILITY_SCOPE_NAMES: readonly ["array", "datetime", "filesystem", "functions", "indicators", "logger", "number", "object", "require", "string", "utility"];
|
|
27
|
+
export declare const UTILITY_SCOPE_VALUES: readonly [typeof array, typeof datetime, typeof filesystem, typeof functions, typeof indicators, typeof logger, typeof number, typeof object, typeof require, typeof string, typeof utility];
|
|
28
|
+
/**
|
|
29
|
+
* Overwrites all inherited variables from parent scope with "undefined".
|
|
30
|
+
* @param scope - A scope where inherited names will be removed.
|
|
31
|
+
* @param prefixesToIgnore - Name prefixes to ignore during deleting names in
|
|
32
|
+
* given scope.
|
|
33
|
+
* @returns The isolated scope.
|
|
34
|
+
*/
|
|
35
|
+
export declare const isolateScope: <T extends Mapping<unknown>>(scope: T, prefixesToIgnore?: Array<string>) => T;
|
|
36
|
+
/**
|
|
37
|
+
* Generates a unique name in given scope (useful for jsonp requests).
|
|
38
|
+
* @param prefix - A prefix which will be prepended to unique name.
|
|
39
|
+
* @param suffix - A suffix which will be prepended to unique name.
|
|
40
|
+
* @param scope - A scope where the name should be unique.
|
|
41
|
+
* @param initialUniqueName - An initial scope name to use if not exists.
|
|
42
|
+
* @returns The function name.
|
|
43
|
+
*/
|
|
44
|
+
export declare const determineUniqueScopeName: (prefix?: string, suffix?: string, scope?: Mapping<unknown>, initialUniqueName?: string) => string;
|