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.
Files changed (58) hide show
  1. package/dist/Lock.js +8 -27
  2. package/dist/Logger.js +27 -55
  3. package/dist/Semaphore.js +8 -27
  4. package/dist/array.js +8 -46
  5. package/dist/bundle/index.js +410 -432
  6. package/dist/cli.js +8 -30
  7. package/dist/compatible/Lock.js +8 -27
  8. package/dist/compatible/Logger.js +27 -55
  9. package/dist/compatible/Semaphore.js +8 -27
  10. package/dist/compatible/array.js +8 -46
  11. package/dist/compatible/cli.js +8 -30
  12. package/dist/compatible/constants.js +8 -27
  13. package/dist/compatible/context.js +27 -55
  14. package/dist/compatible/cookie.js +27 -58
  15. package/dist/compatible/data-transfer.js +27 -59
  16. package/dist/compatible/datetime.js +37 -63
  17. package/dist/compatible/domNode.js +27 -59
  18. package/dist/compatible/expression/evaluators.js +37 -55
  19. package/dist/compatible/expression/helper.js +8 -31
  20. package/dist/compatible/expression/index.js +37 -76
  21. package/dist/compatible/expression/indicator-functions.js +8 -42
  22. package/dist/compatible/filesystem.js +27 -55
  23. package/dist/compatible/function.js +8 -32
  24. package/dist/compatible/index.js +44 -71
  25. package/dist/compatible/indicators.js +8 -39
  26. package/dist/compatible/module.js +27 -50
  27. package/dist/compatible/number.js +8 -34
  28. package/dist/compatible/object.js +37 -63
  29. package/dist/compatible/process.js +27 -55
  30. package/dist/compatible/scope.js +44 -113
  31. package/dist/compatible/string.js +37 -66
  32. package/dist/compatible/test-helper.js +8 -33
  33. package/dist/compatible/utility.js +27 -55
  34. package/dist/constants.js +8 -27
  35. package/dist/context.js +27 -55
  36. package/dist/cookie.js +27 -58
  37. package/dist/data-transfer.js +27 -59
  38. package/dist/datetime.js +37 -63
  39. package/dist/domNode.js +27 -59
  40. package/dist/expression/evaluators.js +37 -55
  41. package/dist/expression/helper.js +8 -31
  42. package/dist/expression/index.js +37 -76
  43. package/dist/expression/indicator-functions.js +8 -42
  44. package/dist/filesystem.js +27 -55
  45. package/dist/function.js +8 -32
  46. package/dist/index.js +44 -71
  47. package/dist/indicators.js +8 -39
  48. package/dist/module.js +27 -50
  49. package/dist/number.js +8 -34
  50. package/dist/object.js +37 -63
  51. package/dist/process.js +27 -55
  52. package/dist/scope.js +44 -113
  53. package/dist/string.d.ts +5 -4
  54. package/dist/string.js +37 -66
  55. package/dist/test-helper.js +8 -33
  56. package/dist/type.d.ts +1 -1
  57. package/dist/utility.js +27 -55
  58. package/package.json +3 -3
package/dist/context.js CHANGED
@@ -35,11 +35,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
35
35
  /* 2 */
36
36
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
37
37
 
38
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
39
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
40
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
41
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
42
- /* harmony export */ });
43
38
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
44
39
  /* module decorator */ module = __webpack_require__.hmd(module);
45
40
  // #!/usr/bin/env babel-node
@@ -151,63 +146,40 @@ module.exports = webpackEmptyContext;
151
146
  /******/
152
147
  /************************************************************************/
153
148
  /******/ /* webpack/runtime/define property getters */
154
- /******/ !function() {
155
- /******/ // define getter/value functions for harmony exports
156
- /******/ __webpack_require__.d = function(exports, definition) {
157
- /******/ if(Array.isArray(definition)) {
158
- /******/ var i = 0;
159
- /******/ while(i < definition.length) {
160
- /******/ var key = definition[i++];
161
- /******/ var binding = definition[i++];
162
- /******/ if(!__webpack_require__.o(exports, key)) {
163
- /******/ if(binding === 0) {
164
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
165
- /******/ } else {
166
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
167
- /******/ }
168
- /******/ } else if(binding === 0) { i++; }
169
- /******/ }
170
- /******/ } else {
171
- /******/ for(var key in definition) {
172
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
173
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
174
- /******/ }
175
- /******/ }
149
+ /******/ // define getter/value functions for harmony exports
150
+ /******/ __webpack_require__.d = function(exports, definition) {
151
+ /******/ for(var key in definition) {
152
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
153
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
176
154
  /******/ }
177
- /******/ };
178
- /******/ }();
155
+ /******/ }
156
+ /******/ };
179
157
  /******/
180
158
  /******/ /* webpack/runtime/global */
181
- /******/ !function() {
182
- /******/ __webpack_require__.g = (function() {
183
- /******/ if (typeof globalThis === 'object') return globalThis;
184
- /******/ try {
185
- /******/ return this || new Function('return this')();
186
- /******/ } catch (e) {
187
- /******/ if (typeof window === 'object') return window;
188
- /******/ }
189
- /******/ })();
190
- /******/ }();
159
+ /******/ __webpack_require__.g = (function() {
160
+ /******/ if (typeof globalThis === 'object') return globalThis;
161
+ /******/ try {
162
+ /******/ return this || new Function('return this')();
163
+ /******/ } catch (e) {
164
+ /******/ if (typeof window === 'object') return window;
165
+ /******/ }
166
+ /******/ })();
191
167
  /******/
192
168
  /******/ /* webpack/runtime/harmony module decorator */
193
- /******/ !function() {
194
- /******/ __webpack_require__.hmd = function(module) {
195
- /******/ module = Object.create(module);
196
- /******/ if (!module.children) module.children = [];
197
- /******/ Object.defineProperty(module, 'exports', {
198
- /******/ enumerable: true,
199
- /******/ set: function() {
200
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
201
- /******/ }
202
- /******/ });
203
- /******/ return module;
204
- /******/ };
205
- /******/ }();
169
+ /******/ __webpack_require__.hmd = function(module) {
170
+ /******/ module = Object.create(module);
171
+ /******/ if (!module.children) module.children = [];
172
+ /******/ Object.defineProperty(module, 'exports', {
173
+ /******/ enumerable: true,
174
+ /******/ set: function() {
175
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
176
+ /******/ }
177
+ /******/ });
178
+ /******/ return module;
179
+ /******/ };
206
180
  /******/
207
181
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
208
- /******/ !function() {
209
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
210
- /******/ }();
182
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
211
183
  /******/
212
184
  /************************************************************************/
213
185
  /******/
package/dist/cookie.js CHANGED
@@ -3,9 +3,6 @@ if(typeof window==='undefined'||window===null)var window=(typeof globalThis==='u
3
3
  /***/ 5:
4
4
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5
5
 
6
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7
- /* harmony export */ Lz: function() { return /* binding */ globalContext; }
8
- /* harmony export */ });
9
6
  /* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, mockConsole */
10
7
  /* unused harmony import specifier */ var CONSOLE_METHODS;
11
8
  /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
@@ -86,11 +83,6 @@ if(!Object.prototype.hasOwnProperty.call(globalContext,"console"))globalContext.
86
83
  /***/ 2:
87
84
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
88
85
 
89
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
90
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
91
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
92
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
93
- /* harmony export */ });
94
86
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
95
87
  /* module decorator */ module = __webpack_require__.hmd(module);
96
88
  // #!/usr/bin/env babel-node
@@ -169,63 +161,40 @@ module.exports = webpackEmptyContext;
169
161
  /******/
170
162
  /************************************************************************/
171
163
  /******/ /* webpack/runtime/define property getters */
172
- /******/ !function() {
173
- /******/ // define getter/value functions for harmony exports
174
- /******/ __webpack_require__.d = function(exports, definition) {
175
- /******/ if(Array.isArray(definition)) {
176
- /******/ var i = 0;
177
- /******/ while(i < definition.length) {
178
- /******/ var key = definition[i++];
179
- /******/ var binding = definition[i++];
180
- /******/ if(!__webpack_require__.o(exports, key)) {
181
- /******/ if(binding === 0) {
182
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
183
- /******/ } else {
184
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
185
- /******/ }
186
- /******/ } else if(binding === 0) { i++; }
187
- /******/ }
188
- /******/ } else {
189
- /******/ for(var key in definition) {
190
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
191
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
192
- /******/ }
193
- /******/ }
164
+ /******/ // define getter/value functions for harmony exports
165
+ /******/ __webpack_require__.d = function(exports, definition) {
166
+ /******/ for(var key in definition) {
167
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
168
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
194
169
  /******/ }
195
- /******/ };
196
- /******/ }();
170
+ /******/ }
171
+ /******/ };
197
172
  /******/
198
173
  /******/ /* webpack/runtime/global */
199
- /******/ !function() {
200
- /******/ __webpack_require__.g = (function() {
201
- /******/ if (typeof globalThis === 'object') return globalThis;
202
- /******/ try {
203
- /******/ return this || new Function('return this')();
204
- /******/ } catch (e) {
205
- /******/ if (typeof window === 'object') return window;
206
- /******/ }
207
- /******/ })();
208
- /******/ }();
174
+ /******/ __webpack_require__.g = (function() {
175
+ /******/ if (typeof globalThis === 'object') return globalThis;
176
+ /******/ try {
177
+ /******/ return this || new Function('return this')();
178
+ /******/ } catch (e) {
179
+ /******/ if (typeof window === 'object') return window;
180
+ /******/ }
181
+ /******/ })();
209
182
  /******/
210
183
  /******/ /* webpack/runtime/harmony module decorator */
211
- /******/ !function() {
212
- /******/ __webpack_require__.hmd = function(module) {
213
- /******/ module = Object.create(module);
214
- /******/ if (!module.children) module.children = [];
215
- /******/ Object.defineProperty(module, 'exports', {
216
- /******/ enumerable: true,
217
- /******/ set: function() {
218
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
219
- /******/ }
220
- /******/ });
221
- /******/ return module;
222
- /******/ };
223
- /******/ }();
184
+ /******/ __webpack_require__.hmd = function(module) {
185
+ /******/ module = Object.create(module);
186
+ /******/ if (!module.children) module.children = [];
187
+ /******/ Object.defineProperty(module, 'exports', {
188
+ /******/ enumerable: true,
189
+ /******/ set: function() {
190
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
191
+ /******/ }
192
+ /******/ });
193
+ /******/ return module;
194
+ /******/ };
224
195
  /******/
225
196
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
226
- /******/ !function() {
227
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
228
- /******/ }();
197
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
229
198
  /******/
230
199
  /************************************************************************/
231
200
  /******/
@@ -48,11 +48,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
48
48
  /* 2 */
49
49
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
50
50
 
51
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
52
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
53
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
54
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
55
- /* harmony export */ });
56
51
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
57
52
  /* module decorator */ module = __webpack_require__.hmd(module);
58
53
  // #!/usr/bin/env babel-node
@@ -441,10 +436,6 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
441
436
  /* 5 */
442
437
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
443
438
 
444
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
445
- /* harmony export */ Lz: function() { return /* binding */ globalContext; },
446
- /* harmony export */ tE: function() { return /* binding */ NOOP; }
447
- /* harmony export */ });
448
439
  /* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, mockConsole */
449
440
  /* unused harmony import specifier */ var CONSOLE_METHODS;
450
441
  /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
@@ -687,63 +678,40 @@ timeoutID=null;recentParameters=[]},thresholdInMilliseconds)}};/**
687
678
  /******/
688
679
  /************************************************************************/
689
680
  /******/ /* webpack/runtime/define property getters */
690
- /******/ !function() {
691
- /******/ // define getter/value functions for harmony exports
692
- /******/ __webpack_require__.d = function(exports, definition) {
693
- /******/ if(Array.isArray(definition)) {
694
- /******/ var i = 0;
695
- /******/ while(i < definition.length) {
696
- /******/ var key = definition[i++];
697
- /******/ var binding = definition[i++];
698
- /******/ if(!__webpack_require__.o(exports, key)) {
699
- /******/ if(binding === 0) {
700
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
701
- /******/ } else {
702
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
703
- /******/ }
704
- /******/ } else if(binding === 0) { i++; }
705
- /******/ }
706
- /******/ } else {
707
- /******/ for(var key in definition) {
708
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
709
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
710
- /******/ }
711
- /******/ }
681
+ /******/ // define getter/value functions for harmony exports
682
+ /******/ __webpack_require__.d = function(exports, definition) {
683
+ /******/ for(var key in definition) {
684
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
685
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
712
686
  /******/ }
713
- /******/ };
714
- /******/ }();
687
+ /******/ }
688
+ /******/ };
715
689
  /******/
716
690
  /******/ /* webpack/runtime/global */
717
- /******/ !function() {
718
- /******/ __webpack_require__.g = (function() {
719
- /******/ if (typeof globalThis === 'object') return globalThis;
720
- /******/ try {
721
- /******/ return this || new Function('return this')();
722
- /******/ } catch (e) {
723
- /******/ if (typeof window === 'object') return window;
724
- /******/ }
725
- /******/ })();
726
- /******/ }();
691
+ /******/ __webpack_require__.g = (function() {
692
+ /******/ if (typeof globalThis === 'object') return globalThis;
693
+ /******/ try {
694
+ /******/ return this || new Function('return this')();
695
+ /******/ } catch (e) {
696
+ /******/ if (typeof window === 'object') return window;
697
+ /******/ }
698
+ /******/ })();
727
699
  /******/
728
700
  /******/ /* webpack/runtime/harmony module decorator */
729
- /******/ !function() {
730
- /******/ __webpack_require__.hmd = function(module) {
731
- /******/ module = Object.create(module);
732
- /******/ if (!module.children) module.children = [];
733
- /******/ Object.defineProperty(module, 'exports', {
734
- /******/ enumerable: true,
735
- /******/ set: function() {
736
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
737
- /******/ }
738
- /******/ });
739
- /******/ return module;
740
- /******/ };
741
- /******/ }();
701
+ /******/ __webpack_require__.hmd = function(module) {
702
+ /******/ module = Object.create(module);
703
+ /******/ if (!module.children) module.children = [];
704
+ /******/ Object.defineProperty(module, 'exports', {
705
+ /******/ enumerable: true,
706
+ /******/ set: function() {
707
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
708
+ /******/ }
709
+ /******/ });
710
+ /******/ return module;
711
+ /******/ };
742
712
  /******/
743
713
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
744
- /******/ !function() {
745
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
746
- /******/ }();
714
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
747
715
  /******/
748
716
  /************************************************************************/
749
717
  /******/
package/dist/datetime.js CHANGED
@@ -47,11 +47,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
47
47
  /* 2 */
48
48
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
49
49
 
50
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
51
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
52
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
53
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
54
- /* harmony export */ });
55
50
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
56
51
  /* module decorator */ module = __webpack_require__.hmd(module);
57
52
  // #!/usr/bin/env babel-node
@@ -440,9 +435,6 @@ result=object;if(isPlainObject(exclude)){var useCopy=false;var copy=_objectSprea
440
435
  /* 5 */
441
436
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
442
437
 
443
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
444
- /* harmony export */ Lz: function() { return /* binding */ globalContext; }
445
- /* harmony export */ });
446
438
  /* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, mockConsole */
447
439
  /* unused harmony import specifier */ var CONSOLE_METHODS;
448
440
  /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
@@ -733,7 +725,11 @@ var _compile=compile(expression,options),error=_compile.error,originalScopeNames
733
725
  * @param skipTagDelimitedParts - Indicates whether to, for example, ignore
734
726
  * html tags via "['<', '>']" (the default).
735
727
  * @returns Start and end index of matching range.
736
- */var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return String(value).toLowerCase()}}if(skipTagDelimitedParts===void 0){skipTagDelimitedParts=["<",">"]}var normalizedQuery=normalizer(query);var normalizedTarget=normalizer(target);var stringTarget=typeof target==="string"?target:normalizedTarget;if(normalizedTarget&&normalizedQuery){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}if(normalizer(stringTarget.substring(index)).startsWith(normalizedQuery)){if(normalizedQuery.length===1)return[index,index+1];for(var subIndex=stringTarget.length;subIndex>index;subIndex-=1)if(!normalizer(stringTarget.substring(index,subIndex)).startsWith(normalizedQuery))return[index,subIndex+1]}}}return null};/**
728
+ */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}/*
729
+ Skip positions the normalizer strips away (e.g. leading
730
+ whitespace), so the reported match index aligns with the real
731
+ character.
732
+ */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};/**
737
733
  * Fixes known encoding problems in given data.
738
734
  * @param data - To process.
739
735
  * @returns Processed data.
@@ -777,8 +773,9 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
777
773
  * @returns The formatted string.
778
774
  */var lowerCase=function lowerCase(string){return string.charAt(0).toLowerCase()+string.substring(1)};/**
779
775
  * Wraps given mark strings in a given target with a given marker.
780
- * @param target - String to search for marker.
781
- * @param givenWords - String or array of strings to search in target for.
776
+ * @param target - String to search in.
777
+ * @param givenSearchWords - String or regular expression or array of those to
778
+ * search for.
782
779
  * @param givenOptions - Defines highlighting behavior.
783
780
  * @param givenOptions.marker - HTML template string to mark.
784
781
  * @param givenOptions.normalizer - Pure normalization function to use before
@@ -786,11 +783,11 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
786
783
  * @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
787
784
  * example, ignore html tags via "['<', '>']" (the default).
788
785
  * @returns Processed result.
789
- */var mark=function mark(target,givenWords,givenOptions){if(givenOptions===void 0){givenOptions={}}if(typeof target==="string"&&givenWords!==null&&givenWords!==void 0&&givenWords.length){var options=_objectSpread({marker:"<span class=\"tools-mark\">{1}</span>",normalizer:function normalizer(value){return String(value).toLowerCase()},skipTagDelimitedParts:["<",">"]},givenOptions);target=target.trim();var markedTarget=[];var words=[].concat(givenWords);var index=0;var _iterator6=_createForOfIteratorHelper(words),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _word=_step6.value;words[index]=options.normalizer(_word).trim();index+=1}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}var restTarget=target;var offset=0;/*
786
+ */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;/*
790
787
  Search for matches as long there is enough target text remaining to
791
788
  walk through.
792
789
  */for(var iteration=0;iteration<MAXIMAL_NUMBER_OF_ITERATIONS.value;iteration++){var nearestRange=null;var currentRange=void 0;// Find the nearest next matching word.
793
- var _iterator7=_createForOfIteratorHelper(words),_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};/**
790
+ 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};/**
794
791
  * Normalizes a given phone number for automatic dialing or comparison.
795
792
  * @param value - Number to normalize.
796
793
  * @param dialable - Indicates whether the result should be dialed or
@@ -1022,63 +1019,40 @@ var result=new Date(value);if(isNaN(result.getDate()))return null;return result}
1022
1019
  /******/
1023
1020
  /************************************************************************/
1024
1021
  /******/ /* webpack/runtime/define property getters */
1025
- /******/ !function() {
1026
- /******/ // define getter/value functions for harmony exports
1027
- /******/ __webpack_require__.d = function(exports, definition) {
1028
- /******/ if(Array.isArray(definition)) {
1029
- /******/ var i = 0;
1030
- /******/ while(i < definition.length) {
1031
- /******/ var key = definition[i++];
1032
- /******/ var binding = definition[i++];
1033
- /******/ if(!__webpack_require__.o(exports, key)) {
1034
- /******/ if(binding === 0) {
1035
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
1036
- /******/ } else {
1037
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
1038
- /******/ }
1039
- /******/ } else if(binding === 0) { i++; }
1040
- /******/ }
1041
- /******/ } else {
1042
- /******/ for(var key in definition) {
1043
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1044
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1045
- /******/ }
1046
- /******/ }
1022
+ /******/ // define getter/value functions for harmony exports
1023
+ /******/ __webpack_require__.d = function(exports, definition) {
1024
+ /******/ for(var key in definition) {
1025
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1026
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1047
1027
  /******/ }
1048
- /******/ };
1049
- /******/ }();
1028
+ /******/ }
1029
+ /******/ };
1050
1030
  /******/
1051
1031
  /******/ /* webpack/runtime/global */
1052
- /******/ !function() {
1053
- /******/ __webpack_require__.g = (function() {
1054
- /******/ if (typeof globalThis === 'object') return globalThis;
1055
- /******/ try {
1056
- /******/ return this || new Function('return this')();
1057
- /******/ } catch (e) {
1058
- /******/ if (typeof window === 'object') return window;
1059
- /******/ }
1060
- /******/ })();
1061
- /******/ }();
1032
+ /******/ __webpack_require__.g = (function() {
1033
+ /******/ if (typeof globalThis === 'object') return globalThis;
1034
+ /******/ try {
1035
+ /******/ return this || new Function('return this')();
1036
+ /******/ } catch (e) {
1037
+ /******/ if (typeof window === 'object') return window;
1038
+ /******/ }
1039
+ /******/ })();
1062
1040
  /******/
1063
1041
  /******/ /* webpack/runtime/harmony module decorator */
1064
- /******/ !function() {
1065
- /******/ __webpack_require__.hmd = function(module) {
1066
- /******/ module = Object.create(module);
1067
- /******/ if (!module.children) module.children = [];
1068
- /******/ Object.defineProperty(module, 'exports', {
1069
- /******/ enumerable: true,
1070
- /******/ set: function() {
1071
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1072
- /******/ }
1073
- /******/ });
1074
- /******/ return module;
1075
- /******/ };
1076
- /******/ }();
1042
+ /******/ __webpack_require__.hmd = function(module) {
1043
+ /******/ module = Object.create(module);
1044
+ /******/ if (!module.children) module.children = [];
1045
+ /******/ Object.defineProperty(module, 'exports', {
1046
+ /******/ enumerable: true,
1047
+ /******/ set: function() {
1048
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1049
+ /******/ }
1050
+ /******/ });
1051
+ /******/ return module;
1052
+ /******/ };
1077
1053
  /******/
1078
1054
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
1079
- /******/ !function() {
1080
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
1081
- /******/ }();
1055
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
1082
1056
  /******/
1083
1057
  /************************************************************************/
1084
1058
  /******/
package/dist/domNode.js CHANGED
@@ -4,10 +4,6 @@ if(typeof window==='undefined'||window===null)var window=(typeof globalThis==='u
4
4
  /***/ 5:
5
5
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
6
 
7
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8
- /* harmony export */ Lz: function() { return /* binding */ globalContext; },
9
- /* harmony export */ tE: function() { return /* binding */ NOOP; }
10
- /* harmony export */ });
11
7
  /* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, mockConsole */
12
8
  /* unused harmony import specifier */ var CONSOLE_METHODS;
13
9
  /* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
@@ -233,11 +229,6 @@ for(var _i6=0,_Array$from=Array.from(domNode.childNodes);_i6<_Array$from.length;
233
229
  /***/ 2:
234
230
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
235
231
 
236
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
237
- /* harmony export */ I5: function() { return /* binding */ optionalRequire; },
238
- /* harmony export */ Sw: function() { return /* binding */ optionalImport; },
239
- /* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
240
- /* harmony export */ });
241
232
  /* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
242
233
  /* module decorator */ module = __webpack_require__.hmd(module);
243
234
  // #!/usr/bin/env babel-node
@@ -394,63 +385,40 @@ module.exports = x({ });
394
385
  /******/
395
386
  /************************************************************************/
396
387
  /******/ /* webpack/runtime/define property getters */
397
- /******/ !function() {
398
- /******/ // define getter/value functions for harmony exports
399
- /******/ __webpack_require__.d = function(exports, definition) {
400
- /******/ if(Array.isArray(definition)) {
401
- /******/ var i = 0;
402
- /******/ while(i < definition.length) {
403
- /******/ var key = definition[i++];
404
- /******/ var binding = definition[i++];
405
- /******/ if(!__webpack_require__.o(exports, key)) {
406
- /******/ if(binding === 0) {
407
- /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
408
- /******/ } else {
409
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
410
- /******/ }
411
- /******/ } else if(binding === 0) { i++; }
412
- /******/ }
413
- /******/ } else {
414
- /******/ for(var key in definition) {
415
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
416
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
417
- /******/ }
418
- /******/ }
388
+ /******/ // define getter/value functions for harmony exports
389
+ /******/ __webpack_require__.d = function(exports, definition) {
390
+ /******/ for(var key in definition) {
391
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
392
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
419
393
  /******/ }
420
- /******/ };
421
- /******/ }();
394
+ /******/ }
395
+ /******/ };
422
396
  /******/
423
397
  /******/ /* webpack/runtime/global */
424
- /******/ !function() {
425
- /******/ __webpack_require__.g = (function() {
426
- /******/ if (typeof globalThis === 'object') return globalThis;
427
- /******/ try {
428
- /******/ return this || new Function('return this')();
429
- /******/ } catch (e) {
430
- /******/ if (typeof window === 'object') return window;
431
- /******/ }
432
- /******/ })();
433
- /******/ }();
398
+ /******/ __webpack_require__.g = (function() {
399
+ /******/ if (typeof globalThis === 'object') return globalThis;
400
+ /******/ try {
401
+ /******/ return this || new Function('return this')();
402
+ /******/ } catch (e) {
403
+ /******/ if (typeof window === 'object') return window;
404
+ /******/ }
405
+ /******/ })();
434
406
  /******/
435
407
  /******/ /* webpack/runtime/harmony module decorator */
436
- /******/ !function() {
437
- /******/ __webpack_require__.hmd = function(module) {
438
- /******/ module = Object.create(module);
439
- /******/ if (!module.children) module.children = [];
440
- /******/ Object.defineProperty(module, 'exports', {
441
- /******/ enumerable: true,
442
- /******/ set: function() {
443
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
444
- /******/ }
445
- /******/ });
446
- /******/ return module;
447
- /******/ };
448
- /******/ }();
408
+ /******/ __webpack_require__.hmd = function(module) {
409
+ /******/ module = Object.create(module);
410
+ /******/ if (!module.children) module.children = [];
411
+ /******/ Object.defineProperty(module, 'exports', {
412
+ /******/ enumerable: true,
413
+ /******/ set: function() {
414
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
415
+ /******/ }
416
+ /******/ });
417
+ /******/ return module;
418
+ /******/ };
449
419
  /******/
450
420
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
451
- /******/ !function() {
452
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
453
- /******/ }();
421
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
454
422
  /******/
455
423
  /************************************************************************/
456
424
  /******/