clientnode 4.0.1430 → 4.0.1432
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +3 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AnyFunction } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* Determines all parameter names from given callable (function or class,
|
|
4
|
+
* ...).
|
|
5
|
+
* @param callable - Function or function code to inspect.
|
|
6
|
+
* @returns List of parameter names.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getParameterNames: (callable: AnyFunction | string) => Array<string>;
|
|
9
|
+
/**
|
|
10
|
+
* Implements the identity function.
|
|
11
|
+
* @param value - A value to return.
|
|
12
|
+
* @returns Returns the given value.
|
|
13
|
+
*/
|
|
14
|
+
export declare const identity: <T>(value: T) => T;
|
|
15
|
+
/**
|
|
16
|
+
* Inverted filter helper to inverse each given filter.
|
|
17
|
+
* @param filter - A function that filters an array.
|
|
18
|
+
* @returns The inverted filter.
|
|
19
|
+
*/
|
|
20
|
+
export declare const invertArrayFilter: <T, D = Array<unknown>>(filter: T) => T;
|
package/dist/function.js
CHANGED
|
@@ -1,9 +1,117 @@
|
|
|
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"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["core-js/modules/es.array.includes.js"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("core-js/modules/es.array.includes.js")) : factory(root["core-js/modules/es.array.includes.js"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__0__) {
|
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ([
|
|
14
|
+
/* 0 */
|
|
15
|
+
/***/ (function(module) {
|
|
16
|
+
|
|
17
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
|
|
18
|
+
|
|
19
|
+
/***/ })
|
|
20
|
+
/******/ ]);
|
|
21
|
+
/************************************************************************/
|
|
22
|
+
/******/ // The module cache
|
|
23
|
+
/******/ var __webpack_module_cache__ = {};
|
|
24
|
+
/******/
|
|
25
|
+
/******/ // The require function
|
|
26
|
+
/******/ function __webpack_require__(moduleId) {
|
|
27
|
+
/******/ // Check if module is in cache
|
|
28
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
29
|
+
/******/ if (cachedModule !== undefined) {
|
|
30
|
+
/******/ return cachedModule.exports;
|
|
31
|
+
/******/ }
|
|
32
|
+
/******/ // Create a new module (and put it into the cache)
|
|
33
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
34
|
+
/******/ // no module.id needed
|
|
35
|
+
/******/ // no module.loaded needed
|
|
36
|
+
/******/ exports: {}
|
|
37
|
+
/******/ };
|
|
38
|
+
/******/
|
|
39
|
+
/******/ // Execute the module function
|
|
40
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
41
|
+
/******/
|
|
42
|
+
/******/ // Return the exports of the module
|
|
43
|
+
/******/ return module.exports;
|
|
44
|
+
/******/ }
|
|
45
|
+
/******/
|
|
46
|
+
/************************************************************************/
|
|
47
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
48
|
+
/******/ !function() {
|
|
49
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
50
|
+
/******/ __webpack_require__.n = function(module) {
|
|
51
|
+
/******/ var getter = module && module.__esModule ?
|
|
52
|
+
/******/ function() { return module['default']; } :
|
|
53
|
+
/******/ function() { return module; };
|
|
54
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
55
|
+
/******/ return getter;
|
|
56
|
+
/******/ };
|
|
57
|
+
/******/ }();
|
|
58
|
+
/******/
|
|
59
|
+
/******/ /* webpack/runtime/define property getters */
|
|
60
|
+
/******/ !function() {
|
|
61
|
+
/******/ // define getter/value functions for harmony exports
|
|
62
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
63
|
+
/******/ if(Array.isArray(definition)) {
|
|
64
|
+
/******/ var i = 0;
|
|
65
|
+
/******/ while(i < definition.length) {
|
|
66
|
+
/******/ var key = definition[i++];
|
|
67
|
+
/******/ var binding = definition[i++];
|
|
68
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
69
|
+
/******/ if(binding === 0) {
|
|
70
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
71
|
+
/******/ } else {
|
|
72
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
73
|
+
/******/ }
|
|
74
|
+
/******/ } else if(binding === 0) { i++; }
|
|
75
|
+
/******/ }
|
|
76
|
+
/******/ } else {
|
|
77
|
+
/******/ for(var key in definition) {
|
|
78
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
79
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
80
|
+
/******/ }
|
|
81
|
+
/******/ }
|
|
82
|
+
/******/ }
|
|
83
|
+
/******/ };
|
|
84
|
+
/******/ }();
|
|
85
|
+
/******/
|
|
86
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
87
|
+
/******/ !function() {
|
|
88
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
89
|
+
/******/ }();
|
|
90
|
+
/******/
|
|
91
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
92
|
+
/******/ !function() {
|
|
93
|
+
/******/ // define __esModule on exports
|
|
94
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
95
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
96
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
97
|
+
/******/ }
|
|
98
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
99
|
+
/******/ };
|
|
100
|
+
/******/ }();
|
|
101
|
+
/******/
|
|
102
|
+
/************************************************************************/
|
|
103
|
+
var __webpack_exports__ = {};
|
|
104
|
+
__webpack_require__.r(__webpack_exports__);
|
|
105
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
106
|
+
/* harmony export */ getParameterNames: function() { return /* binding */ _getParameterNames; },
|
|
107
|
+
/* harmony export */ identity: function() { return /* binding */ identity; },
|
|
108
|
+
/* harmony export */ invertArrayFilter: function() { return /* binding */ invertArrayFilter; }
|
|
109
|
+
/* harmony export */ });
|
|
110
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
111
|
+
/* 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__);
|
|
1
112
|
// #!/usr/bin/env babel-node
|
|
2
113
|
// -*- coding: utf-8 -*-
|
|
3
|
-
/** @module function
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
/* !
|
|
114
|
+
/** @module function *//* !
|
|
7
115
|
region header
|
|
8
116
|
[Project page](https://torben.website/clientnode)
|
|
9
117
|
|
|
@@ -16,60 +124,26 @@
|
|
|
16
124
|
naming 3.0 unported license.
|
|
17
125
|
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
18
126
|
endregion
|
|
19
|
-
*/
|
|
20
|
-
import "core-js/modules/es.array.includes.js";
|
|
21
|
-
import "core-js/modules/es.array.push.js";
|
|
22
|
-
/**
|
|
127
|
+
*/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}/**
|
|
23
128
|
* Determines all parameter names from given callable (function or class,
|
|
24
129
|
* ...).
|
|
25
130
|
* @param callable - Function or function code to inspect.
|
|
26
131
|
* @returns List of parameter names.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// Try classic function declaration.
|
|
35
|
-
let parameter = /^function\s*[^(]*\(\s*([^)]*)\)/m.exec(functionCode);
|
|
36
|
-
if (parameter === null)
|
|
37
|
-
// Try arrow function declaration.
|
|
38
|
-
parameter = /^[^(]*\(\s*([^)]*)\) *=>.*/m.exec(functionCode);
|
|
39
|
-
if (parameter === null)
|
|
40
|
-
// Try one argument and without brackets arrow function declaration.
|
|
41
|
-
parameter = /([^= ]+) *=>.*/m.exec(functionCode);
|
|
42
|
-
const names = [];
|
|
43
|
-
if (parameter && parameter.length > 1 && parameter[1].trim().length) {
|
|
44
|
-
for (const name of parameter[1].split(','))
|
|
45
|
-
// Remove default parameter values.
|
|
46
|
-
names.push(name.replace(/=.+$/g, '').trim());
|
|
47
|
-
return names;
|
|
48
|
-
}
|
|
49
|
-
return names;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
132
|
+
*/var _getParameterNames=function getParameterNames(callable){var functionCode=(typeof callable==="string"?callable:// Strip comments.
|
|
133
|
+
callable.toString()).replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,"");if(functionCode.startsWith("class"))return _getParameterNames("function "+functionCode.replace(/.*(constructor\([^)]+\))/m,"$1"));// Try classic function declaration.
|
|
134
|
+
var parameter=/^function\s*[^(]*\(\s*([^)]*)\)/m.exec(functionCode);if(parameter===null)// Try arrow function declaration.
|
|
135
|
+
parameter=/^[^(]*\(\s*([^)]*)\) *=>.*/m.exec(functionCode);if(parameter===null)// Try one argument and without brackets arrow function declaration.
|
|
136
|
+
parameter=/([^= ]+) *=>.*/m.exec(functionCode);var names=[];if(parameter&¶meter.length>1&¶meter[1].trim().length){var _iterator=_createForOfIteratorHelper(parameter[1].split(",")),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;)// Remove default parameter values.
|
|
137
|
+
{var name=_step.value;names.push(name.replace(/=.+$/g,"").trim())}}catch(err){_iterator.e(err)}finally{_iterator.f()}return names}return names};/**
|
|
52
138
|
* Implements the identity function.
|
|
53
139
|
* @param value - A value to return.
|
|
54
140
|
* @returns Returns the given value.
|
|
55
|
-
*/
|
|
56
|
-
export const identity = value => value;
|
|
57
|
-
/**
|
|
141
|
+
*/var identity=function identity(value){return value};/**
|
|
58
142
|
* Inverted filter helper to inverse each given filter.
|
|
59
143
|
* @param filter - A function that filters an array.
|
|
60
144
|
* @returns The inverted filter.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
let result = [];
|
|
67
|
-
if (filteredData.length) {
|
|
68
|
-
for (const date of data) if (!filteredData.includes(date)) result.push(date);
|
|
69
|
-
} else result = data;
|
|
70
|
-
return result;
|
|
71
|
-
}
|
|
72
|
-
return data;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vc3JjL2Z1bmN0aW9uLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vICMhL3Vzci9iaW4vZW52IGJhYmVsLW5vZGVcbi8vIC0qLSBjb2Rpbmc6IHV0Zi04IC0qLVxuLyoqIEBtb2R1bGUgZnVuY3Rpb24gKi9cbid1c2Ugc3RyaWN0J1xuLyogIVxuICAgIHJlZ2lvbiBoZWFkZXJcbiAgICBbUHJvamVjdCBwYWdlXShodHRwczovL3RvcmJlbi53ZWJzaXRlL2NsaWVudG5vZGUpXG5cbiAgICBDb3B5cmlnaHQgVG9yYmVuIFNpY2tlcnQgKGluZm9bXCJ+YXR+XCJddG9yYmVuLndlYnNpdGUpIDE2LjEyLjIwMTJcblxuICAgIExpY2Vuc2VcbiAgICAtLS0tLS0tXG5cbiAgICBUaGlzIGxpYnJhcnkgd3JpdHRlbiBieSBUb3JiZW4gU2lja2VydCBzdGFuZHMgdW5kZXIgYSBjcmVhdGl2ZSBjb21tb25zXG4gICAgbmFtaW5nIDMuMCB1bnBvcnRlZCBsaWNlbnNlLlxuICAgIFNlZSBodHRwczovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnkvMy4wL2RlZWQuZGVcbiAgICBlbmRyZWdpb25cbiovXG5pbXBvcnQgdHlwZSB7QW55RnVuY3Rpb24sIEFycmF5VHJhbnNmb3JtZXJ9IGZyb20gJy4vdHlwZSdcblxuLyoqXG4gKiBEZXRlcm1pbmVzIGFsbCBwYXJhbWV0ZXIgbmFtZXMgZnJvbSBnaXZlbiBjYWxsYWJsZSAoZnVuY3Rpb24gb3IgY2xhc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|
145
|
+
*/var invertArrayFilter=function invertArrayFilter(filter){return function(data){if(Array.isArray(data)){for(var _len=arguments.length,additionalParameter=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){additionalParameter[_key-1]=arguments[_key]}var filteredData=filter.apply(void 0,[data].concat(additionalParameter));var result=[];if(filteredData.length){var _iterator2=_createForOfIteratorHelper(data),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var date=_step2.value;if(!filteredData.includes(date))result.push(date)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}else result=data;return result}return data}};
|
|
146
|
+
/******/ return __webpack_exports__;
|
|
147
|
+
/******/ })()
|
|
148
|
+
;
|
|
149
|
+
});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './array';
|
|
2
|
+
export * from './domNode';
|
|
3
|
+
export * from './cli';
|
|
4
|
+
export * from './constants';
|
|
5
|
+
export * from './context';
|
|
6
|
+
export * from './cookie';
|
|
7
|
+
export * from './data-transfer';
|
|
8
|
+
export * from './datetime';
|
|
9
|
+
export * from './expression/index';
|
|
10
|
+
export * from './filesystem';
|
|
11
|
+
export * from './function';
|
|
12
|
+
export * from './indicators';
|
|
13
|
+
export * from './Lock';
|
|
14
|
+
export * from './number';
|
|
15
|
+
export * from './object';
|
|
16
|
+
export * from './process';
|
|
17
|
+
export * from './require';
|
|
18
|
+
export * from './scope';
|
|
19
|
+
export * from './Semaphore';
|
|
20
|
+
export * from './string';
|
|
21
|
+
export * from './Logger';
|
|
22
|
+
export * from './type';
|
|
23
|
+
export * from './utility';
|