clientnode 4.0.1504 → 4.0.1505
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 +8 -27
- package/dist/Logger.js +27 -55
- package/dist/Semaphore.js +8 -27
- package/dist/array.js +8 -46
- package/dist/bundle/index.js +410 -432
- package/dist/cli.js +8 -30
- package/dist/compatible/Lock.js +8 -27
- package/dist/compatible/Logger.js +27 -55
- package/dist/compatible/Semaphore.js +8 -27
- package/dist/compatible/array.js +8 -46
- package/dist/compatible/cli.js +8 -30
- package/dist/compatible/constants.js +8 -27
- package/dist/compatible/context.js +27 -55
- package/dist/compatible/cookie.js +27 -58
- package/dist/compatible/data-transfer.js +27 -59
- package/dist/compatible/datetime.js +37 -63
- package/dist/compatible/domNode.js +27 -59
- package/dist/compatible/expression/evaluators.js +37 -55
- package/dist/compatible/expression/helper.js +8 -31
- package/dist/compatible/expression/index.js +37 -76
- package/dist/compatible/expression/indicator-functions.js +8 -42
- package/dist/compatible/filesystem.js +27 -55
- package/dist/compatible/function.js +8 -32
- package/dist/compatible/index.js +44 -71
- package/dist/compatible/indicators.js +8 -39
- package/dist/compatible/module.js +27 -50
- package/dist/compatible/number.js +8 -34
- package/dist/compatible/object.js +37 -63
- package/dist/compatible/process.js +27 -55
- package/dist/compatible/scope.js +44 -113
- package/dist/compatible/string.js +37 -66
- package/dist/compatible/test-helper.js +8 -33
- package/dist/compatible/utility.js +27 -55
- package/dist/constants.js +8 -27
- package/dist/context.js +27 -55
- package/dist/cookie.js +27 -58
- package/dist/data-transfer.js +27 -59
- package/dist/datetime.js +37 -63
- package/dist/domNode.js +27 -59
- package/dist/expression/evaluators.js +37 -55
- package/dist/expression/helper.js +8 -31
- package/dist/expression/index.js +37 -76
- package/dist/expression/indicator-functions.js +8 -42
- package/dist/filesystem.js +27 -55
- package/dist/function.js +8 -32
- package/dist/index.js +44 -71
- package/dist/indicators.js +8 -39
- package/dist/module.js +27 -50
- package/dist/number.js +8 -34
- package/dist/object.js +37 -63
- package/dist/process.js +27 -55
- package/dist/scope.js +44 -113
- package/dist/string.d.ts +5 -4
- package/dist/string.js +37 -66
- package/dist/test-helper.js +8 -33
- package/dist/type.d.ts +1 -1
- package/dist/utility.js +27 -55
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -802,7 +802,11 @@ var _compile=compile(expression,options),error=_compile.error,originalScopeNames
|
|
|
802
802
|
* @param skipTagDelimitedParts - Indicates whether to, for example, ignore
|
|
803
803
|
* html tags via "['<', '>']" (the default).
|
|
804
804
|
* @returns Start and end index of matching range.
|
|
805
|
-
*/var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return
|
|
805
|
+
*/var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var stringNormalizedQuery;if(typeof normalizedQuery==="string")stringNormalizedQuery=normalizedQuery;else{var match=target.match(normalizedQuery);stringNormalizedQuery=match?match[0]:""}if(!stringNormalizedQuery)return null;var normalizedTarget=normalizer(target);if(!normalizedTarget)return null;var stringTarget=typeof target==="string"?target:normalizedTarget;var inTag=false;for(var index=0;index<stringTarget.length;index+=1){if(inTag){if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[1])inTag=false;continue}if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[0]){inTag=true;continue}/*
|
|
806
|
+
Skip positions the normalizer strips away (e.g. leading
|
|
807
|
+
whitespace), so the reported match index aligns with the real
|
|
808
|
+
character.
|
|
809
|
+
*/if(!normalizer(stringTarget.charAt(index)))continue;if(normalizer(stringTarget.substring(index)).startsWith(stringNormalizedQuery)){if(stringNormalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(stringNormalizedQuery))return[index,subIndex+1]}}return null};/**
|
|
806
810
|
* Fixes known encoding problems in given data.
|
|
807
811
|
* @param data - To process.
|
|
808
812
|
* @returns Processed data.
|
|
@@ -846,8 +850,9 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
|
|
|
846
850
|
* @returns The formatted string.
|
|
847
851
|
*/var lowerCase=function lowerCase(string){return string.charAt(0).toLowerCase()+string.substring(1)};/**
|
|
848
852
|
* Wraps given mark strings in a given target with a given marker.
|
|
849
|
-
* @param target - String to search
|
|
850
|
-
* @param
|
|
853
|
+
* @param target - String to search in.
|
|
854
|
+
* @param givenSearchWords - String or regular expression or array of those to
|
|
855
|
+
* search for.
|
|
851
856
|
* @param givenOptions - Defines highlighting behavior.
|
|
852
857
|
* @param givenOptions.marker - HTML template string to mark.
|
|
853
858
|
* @param givenOptions.normalizer - Pure normalization function to use before
|
|
@@ -855,11 +860,11 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
|
|
|
855
860
|
* @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
|
|
856
861
|
* example, ignore html tags via "['<', '>']" (the default).
|
|
857
862
|
* @returns Processed result.
|
|
858
|
-
*/var mark=function mark(target,
|
|
863
|
+
*/var mark=function mark(target,givenSearchWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&(Array.isArray(givenSearchWords)&&givenSearchWords.length||givenSearchWords instanceof RegExp||typeof givenSearchWords==="string"&&givenSearchWords.length)){var options=_objectSpread({marker:"<span class=\"tools-mark\">{1}</span>",normalizer:function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value},skipTagDelimitedParts:["<",">"]},givenOptions);target=target.trim();var markedTarget=[];var searchWords=[].concat(givenSearchWords);var index=0;var _iterator6=_createForOfIteratorHelper(searchWords),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _word=_step6.value;searchWords[index]=options.normalizer(_word);index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}var restTarget=target;var offset=0;/*
|
|
859
864
|
Search for matches as long there is enough target text remaining to
|
|
860
865
|
walk through.
|
|
861
866
|
*/for(var iteration=0;iteration<_context_js__WEBPACK_IMPORTED_MODULE_2__/* .MAXIMAL_NUMBER_OF_ITERATIONS */ .$Q.value;iteration++){var nearestRange=null;var currentRange=void 0;// Find the nearest next matching word.
|
|
862
|
-
var _iterator7=_createForOfIteratorHelper(
|
|
867
|
+
var _iterator7=_createForOfIteratorHelper(searchWords),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var word=_step7.value;currentRange=findNormalizedMatchRange(restTarget,word,options.normalizer,options.skipTagDelimitedParts);if(currentRange&&(!nearestRange||currentRange[0]<nearestRange[0]))nearestRange=currentRange}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(nearestRange){if(nearestRange[0]>0)markedTarget.push(target.substring(offset,offset+nearestRange[0]));markedTarget.push(typeof options.marker==="string"?format(options.marker,target.substring(offset+nearestRange[0],offset+nearestRange[1])):options.marker(target.substring(offset+nearestRange[0],offset+nearestRange[1]),markedTarget));offset+=nearestRange[1];restTarget=target.substring(offset)}else{if(restTarget.length)markedTarget.push(restTarget);break}}return typeof options.marker==="string"?markedTarget.join(""):markedTarget}return target};/**
|
|
863
868
|
* Normalizes a given phone number for automatic dialing or comparison.
|
|
864
869
|
* @param value - Number to normalize.
|
|
865
870
|
* @param dialable - Indicates whether the result should be dialed or
|
|
@@ -1318,9 +1323,6 @@ timeoutID=null;recentParameters=[]},thresholdInMilliseconds)}};/**
|
|
|
1318
1323
|
/* 15 */
|
|
1319
1324
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1320
1325
|
|
|
1321
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1322
|
-
/* harmony export */ l: function() { return /* binding */ CLI_COLOR; }
|
|
1323
|
-
/* harmony export */ });
|
|
1324
1326
|
// #!/usr/bin/env babel-node
|
|
1325
1327
|
// -*- coding: utf-8 -*-
|
|
1326
1328
|
/** @module cli *//* !
|
|
@@ -1880,10 +1882,6 @@ var result=scope;var index=0;var _iterator6=_createForOfIteratorHelper(path),_st
|
|
|
1880
1882
|
/* 21 */
|
|
1881
1883
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1882
1884
|
|
|
1883
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1884
|
-
/* harmony export */ b: function() { return /* binding */ viewArrayAsScope; },
|
|
1885
|
-
/* harmony export */ x: function() { return /* binding */ _viewObjectAsScope; }
|
|
1886
|
-
/* harmony export */ });
|
|
1887
1885
|
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
1888
1886
|
// #!/usr/bin/env babel-node
|
|
1889
1887
|
// -*- coding: utf-8 -*-
|
|
@@ -2793,74 +2791,49 @@ __webpack_require__.d(_utility_js__WEBPACK_IMPORTED_MODULE_12___namespace_object
|
|
|
2793
2791
|
/******/
|
|
2794
2792
|
/************************************************************************/
|
|
2795
2793
|
/******/ /* webpack/runtime/define property getters */
|
|
2796
|
-
/******/
|
|
2797
|
-
/******/
|
|
2798
|
-
/******/
|
|
2799
|
-
/******/ if(
|
|
2800
|
-
/******/
|
|
2801
|
-
/******/ while(i < definition.length) {
|
|
2802
|
-
/******/ var key = definition[i++];
|
|
2803
|
-
/******/ var binding = definition[i++];
|
|
2804
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
2805
|
-
/******/ if(binding === 0) {
|
|
2806
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
2807
|
-
/******/ } else {
|
|
2808
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
2809
|
-
/******/ }
|
|
2810
|
-
/******/ } else if(binding === 0) { i++; }
|
|
2811
|
-
/******/ }
|
|
2812
|
-
/******/ } else {
|
|
2813
|
-
/******/ for(var key in definition) {
|
|
2814
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
2815
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
2816
|
-
/******/ }
|
|
2817
|
-
/******/ }
|
|
2794
|
+
/******/ // define getter/value functions for harmony exports
|
|
2795
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
2796
|
+
/******/ for(var key in definition) {
|
|
2797
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
2798
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
2818
2799
|
/******/ }
|
|
2819
|
-
/******/ }
|
|
2820
|
-
/******/ }
|
|
2800
|
+
/******/ }
|
|
2801
|
+
/******/ };
|
|
2821
2802
|
/******/
|
|
2822
2803
|
/******/ /* webpack/runtime/global */
|
|
2823
|
-
/******/
|
|
2824
|
-
/******/
|
|
2825
|
-
/******/
|
|
2826
|
-
/******/
|
|
2827
|
-
/******/
|
|
2828
|
-
/******/
|
|
2829
|
-
/******/
|
|
2830
|
-
/******/
|
|
2831
|
-
/******/ })();
|
|
2832
|
-
/******/ }();
|
|
2804
|
+
/******/ __webpack_require__.g = (function() {
|
|
2805
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
2806
|
+
/******/ try {
|
|
2807
|
+
/******/ return this || new Function('return this')();
|
|
2808
|
+
/******/ } catch (e) {
|
|
2809
|
+
/******/ if (typeof window === 'object') return window;
|
|
2810
|
+
/******/ }
|
|
2811
|
+
/******/ })();
|
|
2833
2812
|
/******/
|
|
2834
2813
|
/******/ /* webpack/runtime/harmony module decorator */
|
|
2835
|
-
/******/
|
|
2836
|
-
/******/
|
|
2837
|
-
/******/
|
|
2838
|
-
/******/
|
|
2839
|
-
/******/
|
|
2840
|
-
/******/
|
|
2841
|
-
/******/
|
|
2842
|
-
/******/
|
|
2843
|
-
/******/
|
|
2844
|
-
/******/
|
|
2845
|
-
/******/
|
|
2846
|
-
/******/ };
|
|
2847
|
-
/******/ }();
|
|
2814
|
+
/******/ __webpack_require__.hmd = function(module) {
|
|
2815
|
+
/******/ module = Object.create(module);
|
|
2816
|
+
/******/ if (!module.children) module.children = [];
|
|
2817
|
+
/******/ Object.defineProperty(module, 'exports', {
|
|
2818
|
+
/******/ enumerable: true,
|
|
2819
|
+
/******/ set: function() {
|
|
2820
|
+
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
2821
|
+
/******/ }
|
|
2822
|
+
/******/ });
|
|
2823
|
+
/******/ return module;
|
|
2824
|
+
/******/ };
|
|
2848
2825
|
/******/
|
|
2849
2826
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
2850
|
-
/******/
|
|
2851
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
2852
|
-
/******/ }();
|
|
2827
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
2853
2828
|
/******/
|
|
2854
2829
|
/******/ /* webpack/runtime/make namespace object */
|
|
2855
|
-
/******/
|
|
2856
|
-
/******/
|
|
2857
|
-
/******/
|
|
2858
|
-
/******/
|
|
2859
|
-
/******/
|
|
2860
|
-
/******/
|
|
2861
|
-
/******/
|
|
2862
|
-
/******/ };
|
|
2863
|
-
/******/ }();
|
|
2830
|
+
/******/ // define __esModule on exports
|
|
2831
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
2832
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
2833
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2834
|
+
/******/ }
|
|
2835
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
2836
|
+
/******/ };
|
|
2864
2837
|
/******/
|
|
2865
2838
|
/************************************************************************/
|
|
2866
2839
|
/******/
|
package/dist/indicators.js
CHANGED
|
@@ -355,51 +355,20 @@ module.exports = x({ });
|
|
|
355
355
|
/******/
|
|
356
356
|
/************************************************************************/
|
|
357
357
|
/******/ /* webpack/runtime/define property getters */
|
|
358
|
-
/******/
|
|
359
|
-
/******/
|
|
360
|
-
/******/
|
|
361
|
-
/******/ if(
|
|
362
|
-
/******/
|
|
363
|
-
/******/ while(i < definition.length) {
|
|
364
|
-
/******/ var key = definition[i++];
|
|
365
|
-
/******/ var binding = definition[i++];
|
|
366
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
367
|
-
/******/ if(binding === 0) {
|
|
368
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
369
|
-
/******/ } else {
|
|
370
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
371
|
-
/******/ }
|
|
372
|
-
/******/ } else if(binding === 0) { i++; }
|
|
373
|
-
/******/ }
|
|
374
|
-
/******/ } else {
|
|
375
|
-
/******/ for(var key in definition) {
|
|
376
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
377
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
378
|
-
/******/ }
|
|
379
|
-
/******/ }
|
|
358
|
+
/******/ // define getter/value functions for harmony exports
|
|
359
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
360
|
+
/******/ for(var key in definition) {
|
|
361
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
362
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
380
363
|
/******/ }
|
|
381
|
-
/******/ }
|
|
382
|
-
/******/ }
|
|
364
|
+
/******/ }
|
|
365
|
+
/******/ };
|
|
383
366
|
/******/
|
|
384
367
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
385
|
-
/******/
|
|
386
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
387
|
-
/******/ }();
|
|
368
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
388
369
|
/******/
|
|
389
370
|
/************************************************************************/
|
|
390
371
|
var __webpack_exports__ = {};
|
|
391
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
392
|
-
/* harmony export */ GP: function() { return /* binding */ isAnyMatching; },
|
|
393
|
-
/* harmony export */ Gv: function() { return /* binding */ isObject; },
|
|
394
|
-
/* harmony export */ Qd: function() { return /* binding */ isPlainObject; },
|
|
395
|
-
/* harmony export */ Tn: function() { return /* binding */ isFunction; },
|
|
396
|
-
/* harmony export */ Xj: function() { return /* binding */ isArrayLike; },
|
|
397
|
-
/* harmony export */ jh: function() { return /* binding */ isMap; },
|
|
398
|
-
/* harmony export */ ju: function() { return /* binding */ isProxy; },
|
|
399
|
-
/* harmony export */ kf: function() { return /* binding */ isNumeric; },
|
|
400
|
-
/* harmony export */ l6: function() { return /* binding */ isWindow; },
|
|
401
|
-
/* harmony export */ vM: function() { return /* binding */ isSet; }
|
|
402
|
-
/* harmony export */ });
|
|
403
372
|
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
404
373
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
405
374
|
/* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
|
package/dist/module.js
CHANGED
|
@@ -91,63 +91,40 @@ module.exports = webpackEmptyContext;
|
|
|
91
91
|
/******/
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ /* webpack/runtime/define property getters */
|
|
94
|
-
/******/
|
|
95
|
-
/******/
|
|
96
|
-
/******/
|
|
97
|
-
/******/ if(
|
|
98
|
-
/******/
|
|
99
|
-
/******/ while(i < definition.length) {
|
|
100
|
-
/******/ var key = definition[i++];
|
|
101
|
-
/******/ var binding = definition[i++];
|
|
102
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
103
|
-
/******/ if(binding === 0) {
|
|
104
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
105
|
-
/******/ } else {
|
|
106
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
107
|
-
/******/ }
|
|
108
|
-
/******/ } else if(binding === 0) { i++; }
|
|
109
|
-
/******/ }
|
|
110
|
-
/******/ } else {
|
|
111
|
-
/******/ for(var key in definition) {
|
|
112
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
113
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
114
|
-
/******/ }
|
|
115
|
-
/******/ }
|
|
94
|
+
/******/ // define getter/value functions for harmony exports
|
|
95
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
96
|
+
/******/ for(var key in definition) {
|
|
97
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
98
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
116
99
|
/******/ }
|
|
117
|
-
/******/ }
|
|
118
|
-
/******/ }
|
|
100
|
+
/******/ }
|
|
101
|
+
/******/ };
|
|
119
102
|
/******/
|
|
120
103
|
/******/ /* webpack/runtime/global */
|
|
121
|
-
/******/
|
|
122
|
-
/******/
|
|
123
|
-
/******/
|
|
124
|
-
/******/
|
|
125
|
-
/******/
|
|
126
|
-
/******/
|
|
127
|
-
/******/
|
|
128
|
-
/******/
|
|
129
|
-
/******/ })();
|
|
130
|
-
/******/ }();
|
|
104
|
+
/******/ __webpack_require__.g = (function() {
|
|
105
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
106
|
+
/******/ try {
|
|
107
|
+
/******/ return this || new Function('return this')();
|
|
108
|
+
/******/ } catch (e) {
|
|
109
|
+
/******/ if (typeof window === 'object') return window;
|
|
110
|
+
/******/ }
|
|
111
|
+
/******/ })();
|
|
131
112
|
/******/
|
|
132
113
|
/******/ /* webpack/runtime/harmony module decorator */
|
|
133
|
-
/******/
|
|
134
|
-
/******/
|
|
135
|
-
/******/
|
|
136
|
-
/******/
|
|
137
|
-
/******/
|
|
138
|
-
/******/
|
|
139
|
-
/******/
|
|
140
|
-
/******/
|
|
141
|
-
/******/
|
|
142
|
-
/******/
|
|
143
|
-
/******/
|
|
144
|
-
/******/ };
|
|
145
|
-
/******/ }();
|
|
114
|
+
/******/ __webpack_require__.hmd = function(module) {
|
|
115
|
+
/******/ module = Object.create(module);
|
|
116
|
+
/******/ if (!module.children) module.children = [];
|
|
117
|
+
/******/ Object.defineProperty(module, 'exports', {
|
|
118
|
+
/******/ enumerable: true,
|
|
119
|
+
/******/ set: function() {
|
|
120
|
+
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
121
|
+
/******/ }
|
|
122
|
+
/******/ });
|
|
123
|
+
/******/ return module;
|
|
124
|
+
/******/ };
|
|
146
125
|
/******/
|
|
147
126
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
148
|
-
/******/
|
|
149
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
150
|
-
/******/ }();
|
|
127
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
151
128
|
/******/
|
|
152
129
|
/************************************************************************/
|
|
153
130
|
/******/
|
package/dist/number.js
CHANGED
|
@@ -354,46 +354,20 @@ module.exports = x({ });
|
|
|
354
354
|
/******/
|
|
355
355
|
/************************************************************************/
|
|
356
356
|
/******/ /* webpack/runtime/define property getters */
|
|
357
|
-
/******/
|
|
358
|
-
/******/
|
|
359
|
-
/******/
|
|
360
|
-
/******/ if(
|
|
361
|
-
/******/
|
|
362
|
-
/******/ while(i < definition.length) {
|
|
363
|
-
/******/ var key = definition[i++];
|
|
364
|
-
/******/ var binding = definition[i++];
|
|
365
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
366
|
-
/******/ if(binding === 0) {
|
|
367
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
368
|
-
/******/ } else {
|
|
369
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
370
|
-
/******/ }
|
|
371
|
-
/******/ } else if(binding === 0) { i++; }
|
|
372
|
-
/******/ }
|
|
373
|
-
/******/ } else {
|
|
374
|
-
/******/ for(var key in definition) {
|
|
375
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
376
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
377
|
-
/******/ }
|
|
378
|
-
/******/ }
|
|
357
|
+
/******/ // define getter/value functions for harmony exports
|
|
358
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
359
|
+
/******/ for(var key in definition) {
|
|
360
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
361
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
379
362
|
/******/ }
|
|
380
|
-
/******/ }
|
|
381
|
-
/******/ }
|
|
363
|
+
/******/ }
|
|
364
|
+
/******/ };
|
|
382
365
|
/******/
|
|
383
366
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
384
|
-
/******/
|
|
385
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
386
|
-
/******/ }();
|
|
367
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
387
368
|
/******/
|
|
388
369
|
/************************************************************************/
|
|
389
370
|
var __webpack_exports__ = {};
|
|
390
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
391
|
-
/* harmony export */ LI: function() { return /* binding */ round; },
|
|
392
|
-
/* harmony export */ RI: function() { return /* binding */ floor; },
|
|
393
|
-
/* harmony export */ W2: function() { return /* binding */ isNotANumber; },
|
|
394
|
-
/* harmony export */ mk: function() { return /* binding */ ceil; },
|
|
395
|
-
/* harmony export */ n$: function() { return /* binding */ getUTCTimestamp; }
|
|
396
|
-
/* harmony export */ });
|
|
397
371
|
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
398
372
|
/* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
399
373
|
// #!/usr/bin/env babel-node
|
package/dist/object.js
CHANGED
|
@@ -50,11 +50,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
|
|
|
50
50
|
/* 2 */
|
|
51
51
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
52
52
|
|
|
53
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54
|
-
/* harmony export */ I5: function() { return /* binding */ optionalRequire; },
|
|
55
|
-
/* harmony export */ Sw: function() { return /* binding */ optionalImport; },
|
|
56
|
-
/* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
|
|
57
|
-
/* harmony export */ });
|
|
58
53
|
/* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
|
|
59
54
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
60
55
|
// #!/usr/bin/env babel-node
|
|
@@ -453,9 +448,6 @@ result=object;if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject
|
|
|
453
448
|
/* 5 */
|
|
454
449
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
455
450
|
|
|
456
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
457
|
-
/* harmony export */ Lz: function() { return /* binding */ globalContext; }
|
|
458
|
-
/* harmony export */ });
|
|
459
451
|
/* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, mockConsole */
|
|
460
452
|
/* unused harmony import specifier */ var CONSOLE_METHODS;
|
|
461
453
|
/* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
@@ -746,7 +738,11 @@ var _compile=compile(expression,options),error=_compile.error,originalScopeNames
|
|
|
746
738
|
* @param skipTagDelimitedParts - Indicates whether to, for example, ignore
|
|
747
739
|
* html tags via "['<', '>']" (the default).
|
|
748
740
|
* @returns Start and end index of matching range.
|
|
749
|
-
*/var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return
|
|
741
|
+
*/var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var stringNormalizedQuery;if(typeof normalizedQuery==="string")stringNormalizedQuery=normalizedQuery;else{var match=target.match(normalizedQuery);stringNormalizedQuery=match?match[0]:""}if(!stringNormalizedQuery)return null;var normalizedTarget=normalizer(target);if(!normalizedTarget)return null;var stringTarget=typeof target==="string"?target:normalizedTarget;var inTag=false;for(var index=0;index<stringTarget.length;index+=1){if(inTag){if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[1])inTag=false;continue}if(Array.isArray(skipTagDelimitedParts)&&stringTarget.charAt(index)===skipTagDelimitedParts[0]){inTag=true;continue}/*
|
|
742
|
+
Skip positions the normalizer strips away (e.g. leading
|
|
743
|
+
whitespace), so the reported match index aligns with the real
|
|
744
|
+
character.
|
|
745
|
+
*/if(!normalizer(stringTarget.charAt(index)))continue;if(normalizer(stringTarget.substring(index)).startsWith(stringNormalizedQuery)){if(stringNormalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(stringNormalizedQuery))return[index,subIndex+1]}}return null};/**
|
|
750
746
|
* Fixes known encoding problems in given data.
|
|
751
747
|
* @param data - To process.
|
|
752
748
|
* @returns Processed data.
|
|
@@ -790,8 +786,9 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
|
|
|
790
786
|
* @returns The formatted string.
|
|
791
787
|
*/var lowerCase=function lowerCase(string){return string.charAt(0).toLowerCase()+string.substring(1)};/**
|
|
792
788
|
* Wraps given mark strings in a given target with a given marker.
|
|
793
|
-
* @param target - String to search
|
|
794
|
-
* @param
|
|
789
|
+
* @param target - String to search in.
|
|
790
|
+
* @param givenSearchWords - String or regular expression or array of those to
|
|
791
|
+
* search for.
|
|
795
792
|
* @param givenOptions - Defines highlighting behavior.
|
|
796
793
|
* @param givenOptions.marker - HTML template string to mark.
|
|
797
794
|
* @param givenOptions.normalizer - Pure normalization function to use before
|
|
@@ -799,11 +796,11 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
|
|
|
799
796
|
* @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
|
|
800
797
|
* example, ignore html tags via "['<', '>']" (the default).
|
|
801
798
|
* @returns Processed result.
|
|
802
|
-
*/var mark=function mark(target,
|
|
799
|
+
*/var mark=function mark(target,givenSearchWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&(Array.isArray(givenSearchWords)&&givenSearchWords.length||givenSearchWords instanceof RegExp||typeof givenSearchWords==="string"&&givenSearchWords.length)){var options=_objectSpread({marker:"<span class=\"tools-mark\">{1}</span>",normalizer:function normalizer(value){return typeof value==="string"?value.trim().toLowerCase():value},skipTagDelimitedParts:["<",">"]},givenOptions);target=target.trim();var markedTarget=[];var searchWords=[].concat(givenSearchWords);var index=0;var _iterator6=_createForOfIteratorHelper(searchWords),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _word=_step6.value;searchWords[index]=options.normalizer(_word);index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}var restTarget=target;var offset=0;/*
|
|
803
800
|
Search for matches as long there is enough target text remaining to
|
|
804
801
|
walk through.
|
|
805
802
|
*/for(var iteration=0;iteration<MAXIMAL_NUMBER_OF_ITERATIONS.value;iteration++){var nearestRange=null;var currentRange=void 0;// Find the nearest next matching word.
|
|
806
|
-
var _iterator7=_createForOfIteratorHelper(
|
|
803
|
+
var _iterator7=_createForOfIteratorHelper(searchWords),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var word=_step7.value;currentRange=findNormalizedMatchRange(restTarget,word,options.normalizer,options.skipTagDelimitedParts);if(currentRange&&(!nearestRange||currentRange[0]<nearestRange[0]))nearestRange=currentRange}}catch(err){_iterator7.e(err)}finally{_iterator7.f()}if(nearestRange){if(nearestRange[0]>0)markedTarget.push(target.substring(offset,offset+nearestRange[0]));markedTarget.push(typeof options.marker==="string"?format(options.marker,target.substring(offset+nearestRange[0],offset+nearestRange[1])):options.marker(target.substring(offset+nearestRange[0],offset+nearestRange[1]),markedTarget));offset+=nearestRange[1];restTarget=target.substring(offset)}else{if(restTarget.length)markedTarget.push(restTarget);break}}return typeof options.marker==="string"?markedTarget.join(""):markedTarget}return target};/**
|
|
807
804
|
* Normalizes a given phone number for automatic dialing or comparison.
|
|
808
805
|
* @param value - Number to normalize.
|
|
809
806
|
* @param dialable - Indicates whether the result should be dialed or
|
|
@@ -962,63 +959,40 @@ module.exports = x({ });
|
|
|
962
959
|
/******/
|
|
963
960
|
/************************************************************************/
|
|
964
961
|
/******/ /* webpack/runtime/define property getters */
|
|
965
|
-
/******/
|
|
966
|
-
/******/
|
|
967
|
-
/******/
|
|
968
|
-
/******/ if(
|
|
969
|
-
/******/
|
|
970
|
-
/******/ while(i < definition.length) {
|
|
971
|
-
/******/ var key = definition[i++];
|
|
972
|
-
/******/ var binding = definition[i++];
|
|
973
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
974
|
-
/******/ if(binding === 0) {
|
|
975
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
976
|
-
/******/ } else {
|
|
977
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
978
|
-
/******/ }
|
|
979
|
-
/******/ } else if(binding === 0) { i++; }
|
|
980
|
-
/******/ }
|
|
981
|
-
/******/ } else {
|
|
982
|
-
/******/ for(var key in definition) {
|
|
983
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
984
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
985
|
-
/******/ }
|
|
986
|
-
/******/ }
|
|
962
|
+
/******/ // define getter/value functions for harmony exports
|
|
963
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
964
|
+
/******/ for(var key in definition) {
|
|
965
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
966
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
987
967
|
/******/ }
|
|
988
|
-
/******/ }
|
|
989
|
-
/******/ }
|
|
968
|
+
/******/ }
|
|
969
|
+
/******/ };
|
|
990
970
|
/******/
|
|
991
971
|
/******/ /* webpack/runtime/global */
|
|
992
|
-
/******/
|
|
993
|
-
/******/
|
|
994
|
-
/******/
|
|
995
|
-
/******/
|
|
996
|
-
/******/
|
|
997
|
-
/******/
|
|
998
|
-
/******/
|
|
999
|
-
/******/
|
|
1000
|
-
/******/ })();
|
|
1001
|
-
/******/ }();
|
|
972
|
+
/******/ __webpack_require__.g = (function() {
|
|
973
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
974
|
+
/******/ try {
|
|
975
|
+
/******/ return this || new Function('return this')();
|
|
976
|
+
/******/ } catch (e) {
|
|
977
|
+
/******/ if (typeof window === 'object') return window;
|
|
978
|
+
/******/ }
|
|
979
|
+
/******/ })();
|
|
1002
980
|
/******/
|
|
1003
981
|
/******/ /* webpack/runtime/harmony module decorator */
|
|
1004
|
-
/******/
|
|
1005
|
-
/******/
|
|
1006
|
-
/******/
|
|
1007
|
-
/******/
|
|
1008
|
-
/******/
|
|
1009
|
-
/******/
|
|
1010
|
-
/******/
|
|
1011
|
-
/******/
|
|
1012
|
-
/******/
|
|
1013
|
-
/******/
|
|
1014
|
-
/******/
|
|
1015
|
-
/******/ };
|
|
1016
|
-
/******/ }();
|
|
982
|
+
/******/ __webpack_require__.hmd = function(module) {
|
|
983
|
+
/******/ module = Object.create(module);
|
|
984
|
+
/******/ if (!module.children) module.children = [];
|
|
985
|
+
/******/ Object.defineProperty(module, 'exports', {
|
|
986
|
+
/******/ enumerable: true,
|
|
987
|
+
/******/ set: function() {
|
|
988
|
+
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
989
|
+
/******/ }
|
|
990
|
+
/******/ });
|
|
991
|
+
/******/ return module;
|
|
992
|
+
/******/ };
|
|
1017
993
|
/******/
|
|
1018
994
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1019
|
-
/******/
|
|
1020
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
1021
|
-
/******/ }();
|
|
995
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
1022
996
|
/******/
|
|
1023
997
|
/************************************************************************/
|
|
1024
998
|
/******/
|