clientnode 4.0.1504 → 4.0.1506

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 (60) hide show
  1. package/dist/Lock.js +8 -27
  2. package/dist/Logger.js +34 -85
  3. package/dist/Semaphore.js +8 -27
  4. package/dist/array.js +10 -48
  5. package/dist/bundle/index.js +424 -440
  6. package/dist/cli.d.ts +1 -31
  7. package/dist/cli.js +77 -32
  8. package/dist/compatible/Lock.js +8 -27
  9. package/dist/compatible/Logger.js +34 -85
  10. package/dist/compatible/Semaphore.js +8 -27
  11. package/dist/compatible/array.js +10 -48
  12. package/dist/compatible/cli.js +77 -32
  13. package/dist/compatible/constants.js +11 -29
  14. package/dist/compatible/context.js +29 -57
  15. package/dist/compatible/cookie.js +27 -58
  16. package/dist/compatible/data-transfer.js +29 -61
  17. package/dist/compatible/datetime.js +41 -68
  18. package/dist/compatible/domNode.js +27 -59
  19. package/dist/compatible/expression/evaluators.js +41 -60
  20. package/dist/compatible/expression/helper.js +8 -31
  21. package/dist/compatible/expression/index.js +45 -85
  22. package/dist/compatible/expression/indicator-functions.js +10 -44
  23. package/dist/compatible/filesystem.js +29 -57
  24. package/dist/compatible/function.js +8 -32
  25. package/dist/compatible/index.js +98 -115
  26. package/dist/compatible/indicators.js +10 -41
  27. package/dist/compatible/module.js +27 -50
  28. package/dist/compatible/number.js +10 -36
  29. package/dist/compatible/object.js +39 -65
  30. package/dist/compatible/process.js +27 -55
  31. package/dist/compatible/scope.js +58 -146
  32. package/dist/compatible/string.js +39 -68
  33. package/dist/compatible/test-helper.js +10 -35
  34. package/dist/compatible/utility.js +27 -55
  35. package/dist/constants.d.ts +31 -0
  36. package/dist/constants.js +11 -29
  37. package/dist/context.js +29 -57
  38. package/dist/cookie.js +27 -58
  39. package/dist/data-transfer.js +29 -61
  40. package/dist/datetime.js +41 -68
  41. package/dist/domNode.js +27 -59
  42. package/dist/expression/evaluators.js +41 -60
  43. package/dist/expression/helper.js +8 -31
  44. package/dist/expression/index.js +45 -85
  45. package/dist/expression/indicator-functions.js +10 -44
  46. package/dist/filesystem.js +29 -57
  47. package/dist/function.js +8 -32
  48. package/dist/index.js +98 -115
  49. package/dist/indicators.js +10 -41
  50. package/dist/module.js +27 -50
  51. package/dist/number.js +10 -36
  52. package/dist/object.js +39 -65
  53. package/dist/process.js +27 -55
  54. package/dist/scope.js +58 -146
  55. package/dist/string.d.ts +5 -4
  56. package/dist/string.js +39 -68
  57. package/dist/test-helper.js +10 -35
  58. package/dist/type.d.ts +1 -1
  59. package/dist/utility.js +27 -55
  60. package/package.json +4 -4
@@ -19,7 +19,7 @@ module.exports = x({ });
19
19
  /* harmony export */ p_: function() { return /* binding */ IGNORE_NULL_AND_UNDEFINED_SYMBOL; },
20
20
  /* harmony export */ rq: function() { return /* binding */ CLASS_TO_TYPE_MAPPING; }
21
21
  /* harmony export */ });
22
- /* unused harmony exports DEFAULT_ENCODING, CLOSE_EVENT_NAMES, CONSOLE_METHODS, VALUE_COPY_SYMBOL, ABBREVIATIONS, ANIMATION_END_EVENT_NAMES, KEY_CODES, KEYBOARD_CODES, LOCALES, SPECIAL_REGEX_SEQUENCES, TRANSITION_END_EVENT_NAMES */
22
+ /* unused harmony exports CLI_COLOR, DEFAULT_ENCODING, CLOSE_EVENT_NAMES, CONSOLE_METHODS, VALUE_COPY_SYMBOL, ABBREVIATIONS, ANIMATION_END_EVENT_NAMES, KEY_CODES, KEYBOARD_CODES, LOCALES, SPECIAL_REGEX_SEQUENCES, TRANSITION_END_EVENT_NAMES */
23
23
  // #!/usr/bin/env babel-node
24
24
  // -*- coding: utf-8 -*-
25
25
  /** @module constants *//* !
@@ -35,7 +35,7 @@ module.exports = x({ });
35
35
  naming 3.0 unported license.
36
36
  See https://creativecommons.org/licenses/by/3.0/deed.de
37
37
  endregion
38
- */var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=(/* unused pure expression or super */ null && (["debug","error","info","log","warn"]));var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
38
+ */var CLI_COLOR=(/* unused pure expression or super */ null && ({black:"\x1B[30m",blink:"\x1B[5m",blue:"\x1B[0;34m",bold:"\x1B[1m",cyan:"\x1B[36m",darkGray:"\x1B[0;90m",default:"\x1B[0m",dim:"\x1B[2m",green:"\x1B[32m",invert:"\x1B[7m",invisible:"\x1B[8m",lightBlue:"\x1B[0;94m",lightCyan:"\x1B[0;96m",lightGray:"\x1B[0;37m",lightGreen:"\x1B[0;92m",lightMagenta:"\x1B[0;95m",lightRed:"\x1B[0;91m",lightYellow:"\x1B[0;93m",magenta:"\x1B[35m",nodim:"\x1B[22m",noblink:"\x1B[25m",nobold:"\x1B[21m",noinvert:"\x1B[27m",noinvisible:"\x1B[28m",nounderline:"\x1B[24m",red:"\x1B[31m",underline:"\x1B[4m",white:"\x1B[37m",yellow:"\x1B[33m"}));var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=(/* unused pure expression or super */ null && (["debug","error","info","log","warn"]));var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
39
39
  // conversion.
40
40
  var ABBREVIATIONS=(/* unused pure expression or super */ null && (["html","id","url","us","de","api","href"]));// Saves a string with all css3 browser specific animation end event names.
41
41
  var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
@@ -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
@@ -18,7 +18,7 @@ module.exports = x({ });
18
18
  /* harmony export */ YZ: function() { return /* binding */ LOCALES; },
19
19
  /* harmony export */ rq: function() { return /* binding */ CLASS_TO_TYPE_MAPPING; }
20
20
  /* harmony export */ });
21
- /* unused harmony exports DEFAULT_ENCODING, CLOSE_EVENT_NAMES, CONSOLE_METHODS, VALUE_COPY_SYMBOL, IGNORE_NULL_AND_UNDEFINED_SYMBOL, ABBREVIATIONS, ANIMATION_END_EVENT_NAMES, KEY_CODES, KEYBOARD_CODES, PLAIN_OBJECT_PROTOTYPES, SPECIAL_REGEX_SEQUENCES, TRANSITION_END_EVENT_NAMES */
21
+ /* unused harmony exports CLI_COLOR, DEFAULT_ENCODING, CLOSE_EVENT_NAMES, CONSOLE_METHODS, VALUE_COPY_SYMBOL, IGNORE_NULL_AND_UNDEFINED_SYMBOL, ABBREVIATIONS, ANIMATION_END_EVENT_NAMES, KEY_CODES, KEYBOARD_CODES, PLAIN_OBJECT_PROTOTYPES, SPECIAL_REGEX_SEQUENCES, TRANSITION_END_EVENT_NAMES */
22
22
  // #!/usr/bin/env babel-node
23
23
  // -*- coding: utf-8 -*-
24
24
  /** @module constants *//* !
@@ -34,7 +34,7 @@ module.exports = x({ });
34
34
  naming 3.0 unported license.
35
35
  See https://creativecommons.org/licenses/by/3.0/deed.de
36
36
  endregion
37
- */var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=(/* unused pure expression or super */ null && (["debug","error","info","log","warn"]));var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
37
+ */var CLI_COLOR=(/* unused pure expression or super */ null && ({black:"\x1B[30m",blink:"\x1B[5m",blue:"\x1B[0;34m",bold:"\x1B[1m",cyan:"\x1B[36m",darkGray:"\x1B[0;90m",default:"\x1B[0m",dim:"\x1B[2m",green:"\x1B[32m",invert:"\x1B[7m",invisible:"\x1B[8m",lightBlue:"\x1B[0;94m",lightCyan:"\x1B[0;96m",lightGray:"\x1B[0;37m",lightGreen:"\x1B[0;92m",lightMagenta:"\x1B[0;95m",lightRed:"\x1B[0;91m",lightYellow:"\x1B[0;93m",magenta:"\x1B[35m",nodim:"\x1B[22m",noblink:"\x1B[25m",nobold:"\x1B[21m",noinvert:"\x1B[27m",noinvisible:"\x1B[28m",nounderline:"\x1B[24m",red:"\x1B[31m",underline:"\x1B[4m",white:"\x1B[37m",yellow:"\x1B[33m"}));var DEFAULT_ENCODING="utf8";var CLOSE_EVENT_NAMES=(/* unused pure expression or super */ null && (["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"]));var CONSOLE_METHODS=(/* unused pure expression or super */ null && (["debug","error","info","log","warn"]));var VALUE_COPY_SYMBOL=Symbol.for("clientnodeValue");var IGNORE_NULL_AND_UNDEFINED_SYMBOL=Symbol.for("clientnodeIgnoreNullAndUndefined");// Lists all known abbreviation for proper camel case to delimited and back
38
38
  // conversion.
39
39
  var ABBREVIATIONS=(/* unused pure expression or super */ null && (["html","id","url","us","de","api","href"]));// Saves a string with all css3 browser specific animation end event names.
40
40
  var ANIMATION_END_EVENT_NAMES="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";// String representation to object type name mapping.
@@ -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
@@ -871,8 +868,7 @@ module.exports = x({ });
871
868
  /* 14 */,
872
869
  /* 15 */,
873
870
  /* 16 */,
874
- /* 17 */,
875
- /* 18 */
871
+ /* 17 */
876
872
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
877
873
 
878
874
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
@@ -1022,70 +1018,47 @@ var result=new Date(value);if(isNaN(result.getDate()))return null;return result}
1022
1018
  /******/
1023
1019
  /************************************************************************/
1024
1020
  /******/ /* 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
- /******/ }
1021
+ /******/ // define getter/value functions for harmony exports
1022
+ /******/ __webpack_require__.d = function(exports, definition) {
1023
+ /******/ for(var key in definition) {
1024
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1025
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1047
1026
  /******/ }
1048
- /******/ };
1049
- /******/ }();
1027
+ /******/ }
1028
+ /******/ };
1050
1029
  /******/
1051
1030
  /******/ /* 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
- /******/ }();
1031
+ /******/ __webpack_require__.g = (function() {
1032
+ /******/ if (typeof globalThis === 'object') return globalThis;
1033
+ /******/ try {
1034
+ /******/ return this || new Function('return this')();
1035
+ /******/ } catch (e) {
1036
+ /******/ if (typeof window === 'object') return window;
1037
+ /******/ }
1038
+ /******/ })();
1062
1039
  /******/
1063
1040
  /******/ /* 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
- /******/ }();
1041
+ /******/ __webpack_require__.hmd = function(module) {
1042
+ /******/ module = Object.create(module);
1043
+ /******/ if (!module.children) module.children = [];
1044
+ /******/ Object.defineProperty(module, 'exports', {
1045
+ /******/ enumerable: true,
1046
+ /******/ set: function() {
1047
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
1048
+ /******/ }
1049
+ /******/ });
1050
+ /******/ return module;
1051
+ /******/ };
1077
1052
  /******/
1078
1053
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
1079
- /******/ !function() {
1080
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
1081
- /******/ }();
1054
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
1082
1055
  /******/
1083
1056
  /************************************************************************/
1084
1057
  /******/
1085
1058
  /******/ // module cache are used so entry inlining is disabled
1086
1059
  /******/ // startup
1087
1060
  /******/ // Load entry module and return exports
1088
- /******/ var __webpack_exports__ = __webpack_require__(18);
1061
+ /******/ var __webpack_exports__ = __webpack_require__(17);
1089
1062
  /******/ var __webpack_exports__DATE_TIME_PATTERN_CACHE = __webpack_exports__.hr;
1090
1063
  /******/ var __webpack_exports__dateTimeFormat = __webpack_exports__.LE;
1091
1064
  /******/ var __webpack_exports__interpretDateTime = __webpack_exports__.JZ;
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
  /******/