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
|
@@ -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
|
|
@@ -347,15 +342,6 @@ result=object;if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject
|
|
|
347
342
|
/* 4 */
|
|
348
343
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
349
344
|
|
|
350
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
351
|
-
/* harmony export */ Gv: function() { return /* binding */ isObject; },
|
|
352
|
-
/* harmony export */ Qd: function() { return /* binding */ isPlainObject; },
|
|
353
|
-
/* harmony export */ Tn: function() { return /* binding */ isFunction; },
|
|
354
|
-
/* harmony export */ jh: function() { return /* binding */ isMap; },
|
|
355
|
-
/* harmony export */ ju: function() { return /* binding */ isProxy; },
|
|
356
|
-
/* harmony export */ kf: function() { return /* binding */ isNumeric; },
|
|
357
|
-
/* harmony export */ vM: function() { return /* binding */ isSet; }
|
|
358
|
-
/* harmony export */ });
|
|
359
345
|
/* unused harmony exports isWindow, isArrayLike, isAnyMatching */
|
|
360
346
|
/* unused harmony import specifier */ var determineType;
|
|
361
347
|
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
@@ -438,9 +424,6 @@ result=object;if((0,_indicators_js__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject
|
|
|
438
424
|
/* 5 */
|
|
439
425
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
440
426
|
|
|
441
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
442
|
-
/* harmony export */ Lz: function() { return /* binding */ globalContext; }
|
|
443
|
-
/* harmony export */ });
|
|
444
427
|
/* unused harmony exports setGlobalContext, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, mockConsole */
|
|
445
428
|
/* unused harmony import specifier */ var CONSOLE_METHODS;
|
|
446
429
|
/* harmony import */ var _module_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
@@ -731,7 +714,11 @@ var _compile=compile(expression,options),error=_compile.error,originalScopeNames
|
|
|
731
714
|
* @param skipTagDelimitedParts - Indicates whether to, for example, ignore
|
|
732
715
|
* html tags via "['<', '>']" (the default).
|
|
733
716
|
* @returns Start and end index of matching range.
|
|
734
|
-
*/var findNormalizedMatchRange=function findNormalizedMatchRange(target,query,normalizer,skipTagDelimitedParts){if(normalizer===void 0){normalizer=function normalizer(value){return
|
|
717
|
+
*/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}/*
|
|
718
|
+
Skip positions the normalizer strips away (e.g. leading
|
|
719
|
+
whitespace), so the reported match index aligns with the real
|
|
720
|
+
character.
|
|
721
|
+
*/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};/**
|
|
735
722
|
* Fixes known encoding problems in given data.
|
|
736
723
|
* @param data - To process.
|
|
737
724
|
* @returns Processed data.
|
|
@@ -775,8 +762,9 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
|
|
|
775
762
|
* @returns The formatted string.
|
|
776
763
|
*/var lowerCase=function lowerCase(string){return string.charAt(0).toLowerCase()+string.substring(1)};/**
|
|
777
764
|
* Wraps given mark strings in a given target with a given marker.
|
|
778
|
-
* @param target - String to search
|
|
779
|
-
* @param
|
|
765
|
+
* @param target - String to search in.
|
|
766
|
+
* @param givenSearchWords - String or regular expression or array of those to
|
|
767
|
+
* search for.
|
|
780
768
|
* @param givenOptions - Defines highlighting behavior.
|
|
781
769
|
* @param givenOptions.marker - HTML template string to mark.
|
|
782
770
|
* @param givenOptions.normalizer - Pure normalization function to use before
|
|
@@ -784,11 +772,11 @@ distanceMatrix[firstIndex-1][secondIndex-1]+indicator)}return distanceMatrix[sec
|
|
|
784
772
|
* @param givenOptions.skipTagDelimitedParts - Indicates whether to, for
|
|
785
773
|
* example, ignore html tags via "['<', '>']" (the default).
|
|
786
774
|
* @returns Processed result.
|
|
787
|
-
*/var mark=function mark(target,
|
|
775
|
+
*/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;/*
|
|
788
776
|
Search for matches as long there is enough target text remaining to
|
|
789
777
|
walk through.
|
|
790
778
|
*/for(var iteration=0;iteration<MAXIMAL_NUMBER_OF_ITERATIONS.value;iteration++){var nearestRange=null;var currentRange=void 0;// Find the nearest next matching word.
|
|
791
|
-
var _iterator7=_createForOfIteratorHelper(
|
|
779
|
+
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};/**
|
|
792
780
|
* Normalizes a given phone number for automatic dialing or comparison.
|
|
793
781
|
* @param value - Number to normalize.
|
|
794
782
|
* @param dialable - Indicates whether the result should be dialed or
|
|
@@ -1041,10 +1029,6 @@ var result=scope;var index=0;var _iterator6=_createForOfIteratorHelper(path),_st
|
|
|
1041
1029
|
/* 21 */
|
|
1042
1030
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1043
1031
|
|
|
1044
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1045
|
-
/* harmony export */ b: function() { return /* binding */ viewArrayAsScope; },
|
|
1046
|
-
/* harmony export */ x: function() { return /* binding */ _viewObjectAsScope; }
|
|
1047
|
-
/* harmony export */ });
|
|
1048
1032
|
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
1049
1033
|
// #!/usr/bin/env babel-node
|
|
1050
1034
|
// -*- coding: utf-8 -*-
|
|
@@ -1178,63 +1162,40 @@ return viewArrayAsScope(value,childrenPropertyNames,propertyReferenceKeys)}if(va
|
|
|
1178
1162
|
/******/
|
|
1179
1163
|
/************************************************************************/
|
|
1180
1164
|
/******/ /* webpack/runtime/define property getters */
|
|
1181
|
-
/******/
|
|
1182
|
-
/******/
|
|
1183
|
-
/******/
|
|
1184
|
-
/******/ if(
|
|
1185
|
-
/******/
|
|
1186
|
-
/******/ while(i < definition.length) {
|
|
1187
|
-
/******/ var key = definition[i++];
|
|
1188
|
-
/******/ var binding = definition[i++];
|
|
1189
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
1190
|
-
/******/ if(binding === 0) {
|
|
1191
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
1192
|
-
/******/ } else {
|
|
1193
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
1194
|
-
/******/ }
|
|
1195
|
-
/******/ } else if(binding === 0) { i++; }
|
|
1196
|
-
/******/ }
|
|
1197
|
-
/******/ } else {
|
|
1198
|
-
/******/ for(var key in definition) {
|
|
1199
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
1200
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
1201
|
-
/******/ }
|
|
1202
|
-
/******/ }
|
|
1165
|
+
/******/ // define getter/value functions for harmony exports
|
|
1166
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
1167
|
+
/******/ for(var key in definition) {
|
|
1168
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
1169
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
1203
1170
|
/******/ }
|
|
1204
|
-
/******/ }
|
|
1205
|
-
/******/ }
|
|
1171
|
+
/******/ }
|
|
1172
|
+
/******/ };
|
|
1206
1173
|
/******/
|
|
1207
1174
|
/******/ /* webpack/runtime/global */
|
|
1208
|
-
/******/
|
|
1209
|
-
/******/
|
|
1210
|
-
/******/
|
|
1211
|
-
/******/
|
|
1212
|
-
/******/
|
|
1213
|
-
/******/
|
|
1214
|
-
/******/
|
|
1215
|
-
/******/
|
|
1216
|
-
/******/ })();
|
|
1217
|
-
/******/ }();
|
|
1175
|
+
/******/ __webpack_require__.g = (function() {
|
|
1176
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
1177
|
+
/******/ try {
|
|
1178
|
+
/******/ return this || new Function('return this')();
|
|
1179
|
+
/******/ } catch (e) {
|
|
1180
|
+
/******/ if (typeof window === 'object') return window;
|
|
1181
|
+
/******/ }
|
|
1182
|
+
/******/ })();
|
|
1218
1183
|
/******/
|
|
1219
1184
|
/******/ /* webpack/runtime/harmony module decorator */
|
|
1220
|
-
/******/
|
|
1221
|
-
/******/
|
|
1222
|
-
/******/
|
|
1223
|
-
/******/
|
|
1224
|
-
/******/
|
|
1225
|
-
/******/
|
|
1226
|
-
/******/
|
|
1227
|
-
/******/
|
|
1228
|
-
/******/
|
|
1229
|
-
/******/
|
|
1230
|
-
/******/
|
|
1231
|
-
/******/ };
|
|
1232
|
-
/******/ }();
|
|
1185
|
+
/******/ __webpack_require__.hmd = function(module) {
|
|
1186
|
+
/******/ module = Object.create(module);
|
|
1187
|
+
/******/ if (!module.children) module.children = [];
|
|
1188
|
+
/******/ Object.defineProperty(module, 'exports', {
|
|
1189
|
+
/******/ enumerable: true,
|
|
1190
|
+
/******/ set: function() {
|
|
1191
|
+
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
1192
|
+
/******/ }
|
|
1193
|
+
/******/ });
|
|
1194
|
+
/******/ return module;
|
|
1195
|
+
/******/ };
|
|
1233
1196
|
/******/
|
|
1234
1197
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1235
|
-
/******/
|
|
1236
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
1237
|
-
/******/ }();
|
|
1198
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
1238
1199
|
/******/
|
|
1239
1200
|
/************************************************************************/
|
|
1240
1201
|
/******/
|
|
@@ -156,54 +156,20 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
|
|
|
156
156
|
/******/
|
|
157
157
|
/************************************************************************/
|
|
158
158
|
/******/ /* webpack/runtime/define property getters */
|
|
159
|
-
/******/
|
|
160
|
-
/******/
|
|
161
|
-
/******/
|
|
162
|
-
/******/ if(
|
|
163
|
-
/******/
|
|
164
|
-
/******/ while(i < definition.length) {
|
|
165
|
-
/******/ var key = definition[i++];
|
|
166
|
-
/******/ var binding = definition[i++];
|
|
167
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
168
|
-
/******/ if(binding === 0) {
|
|
169
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
170
|
-
/******/ } else {
|
|
171
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
172
|
-
/******/ }
|
|
173
|
-
/******/ } else if(binding === 0) { i++; }
|
|
174
|
-
/******/ }
|
|
175
|
-
/******/ } else {
|
|
176
|
-
/******/ for(var key in definition) {
|
|
177
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
178
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
179
|
-
/******/ }
|
|
180
|
-
/******/ }
|
|
159
|
+
/******/ // define getter/value functions for harmony exports
|
|
160
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
161
|
+
/******/ for(var key in definition) {
|
|
162
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
163
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
181
164
|
/******/ }
|
|
182
|
-
/******/ }
|
|
183
|
-
/******/ }
|
|
165
|
+
/******/ }
|
|
166
|
+
/******/ };
|
|
184
167
|
/******/
|
|
185
168
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
186
|
-
/******/
|
|
187
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
188
|
-
/******/ }();
|
|
169
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
189
170
|
/******/
|
|
190
171
|
/************************************************************************/
|
|
191
172
|
var __webpack_exports__ = {};
|
|
192
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
193
|
-
/* harmony export */ $y: function() { return /* binding */ isSwitchExpression; },
|
|
194
|
-
/* harmony export */ G3: function() { return /* binding */ isCondition; },
|
|
195
|
-
/* harmony export */ Gc: function() { return /* binding */ isAndExpression; },
|
|
196
|
-
/* harmony export */ HK: function() { return /* binding */ isConcatExpression; },
|
|
197
|
-
/* harmony export */ MP: function() { return /* binding */ isIfExpression; },
|
|
198
|
-
/* harmony export */ YG: function() { return /* binding */ isOperation; },
|
|
199
|
-
/* harmony export */ Z9: function() { return /* binding */ isMappingExpression; },
|
|
200
|
-
/* harmony export */ ZI: function() { return /* binding */ isArrayContainsExpression; },
|
|
201
|
-
/* harmony export */ bF: function() { return /* binding */ isUnaryOperation; },
|
|
202
|
-
/* harmony export */ bQ: function() { return /* binding */ isSpecificExpression; },
|
|
203
|
-
/* harmony export */ cB: function() { return /* binding */ isSelector; },
|
|
204
|
-
/* harmony export */ g6: function() { return /* binding */ isOrExpression; },
|
|
205
|
-
/* harmony export */ ml: function() { return /* binding */ isValue; }
|
|
206
|
-
/* harmony export */ });
|
|
207
173
|
/* harmony import */ var _indicators_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
208
174
|
// #!/usr/bin/env babel-node
|
|
209
175
|
// -*- coding: utf-8 -*-
|
|
@@ -45,11 +45,6 @@ var TRANSITION_END_EVENT_NAMES="transitionend webkitTransitionEnd oTransitionEnd
|
|
|
45
45
|
/* 2 */
|
|
46
46
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
47
47
|
|
|
48
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49
|
-
/* harmony export */ I5: function() { return /* binding */ optionalRequire; },
|
|
50
|
-
/* harmony export */ Sw: function() { return /* binding */ optionalImport; },
|
|
51
|
-
/* harmony export */ a8: function() { return /* binding */ determineGlobalContext; }
|
|
52
|
-
/* harmony export */ });
|
|
53
48
|
/* unused harmony exports isImportSyntaxSupported, currentRequire, setOptionalRequire, getCurrentRequire, clearRequireCache, isolatedRequire */
|
|
54
49
|
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
55
50
|
// #!/usr/bin/env babel-node
|
|
@@ -293,63 +288,40 @@ try{mkdirSync(targetPath)}catch(error){if(error.code!=="EEXIST")throw error}for(
|
|
|
293
288
|
/******/
|
|
294
289
|
/************************************************************************/
|
|
295
290
|
/******/ /* webpack/runtime/define property getters */
|
|
296
|
-
/******/
|
|
297
|
-
/******/
|
|
298
|
-
/******/
|
|
299
|
-
/******/ if(
|
|
300
|
-
/******/
|
|
301
|
-
/******/ while(i < definition.length) {
|
|
302
|
-
/******/ var key = definition[i++];
|
|
303
|
-
/******/ var binding = definition[i++];
|
|
304
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
305
|
-
/******/ if(binding === 0) {
|
|
306
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
307
|
-
/******/ } else {
|
|
308
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
309
|
-
/******/ }
|
|
310
|
-
/******/ } else if(binding === 0) { i++; }
|
|
311
|
-
/******/ }
|
|
312
|
-
/******/ } else {
|
|
313
|
-
/******/ for(var key in definition) {
|
|
314
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
315
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
316
|
-
/******/ }
|
|
317
|
-
/******/ }
|
|
291
|
+
/******/ // define getter/value functions for harmony exports
|
|
292
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
293
|
+
/******/ for(var key in definition) {
|
|
294
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
295
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
318
296
|
/******/ }
|
|
319
|
-
/******/ }
|
|
320
|
-
/******/ }
|
|
297
|
+
/******/ }
|
|
298
|
+
/******/ };
|
|
321
299
|
/******/
|
|
322
300
|
/******/ /* webpack/runtime/global */
|
|
323
|
-
/******/
|
|
324
|
-
/******/
|
|
325
|
-
/******/
|
|
326
|
-
/******/
|
|
327
|
-
/******/
|
|
328
|
-
/******/
|
|
329
|
-
/******/
|
|
330
|
-
/******/
|
|
331
|
-
/******/ })();
|
|
332
|
-
/******/ }();
|
|
301
|
+
/******/ __webpack_require__.g = (function() {
|
|
302
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
303
|
+
/******/ try {
|
|
304
|
+
/******/ return this || new Function('return this')();
|
|
305
|
+
/******/ } catch (e) {
|
|
306
|
+
/******/ if (typeof window === 'object') return window;
|
|
307
|
+
/******/ }
|
|
308
|
+
/******/ })();
|
|
333
309
|
/******/
|
|
334
310
|
/******/ /* webpack/runtime/harmony module decorator */
|
|
335
|
-
/******/
|
|
336
|
-
/******/
|
|
337
|
-
/******/
|
|
338
|
-
/******/
|
|
339
|
-
/******/
|
|
340
|
-
/******/
|
|
341
|
-
/******/
|
|
342
|
-
/******/
|
|
343
|
-
/******/
|
|
344
|
-
/******/
|
|
345
|
-
/******/
|
|
346
|
-
/******/ };
|
|
347
|
-
/******/ }();
|
|
311
|
+
/******/ __webpack_require__.hmd = function(module) {
|
|
312
|
+
/******/ module = Object.create(module);
|
|
313
|
+
/******/ if (!module.children) module.children = [];
|
|
314
|
+
/******/ Object.defineProperty(module, 'exports', {
|
|
315
|
+
/******/ enumerable: true,
|
|
316
|
+
/******/ set: function() {
|
|
317
|
+
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
318
|
+
/******/ }
|
|
319
|
+
/******/ });
|
|
320
|
+
/******/ return module;
|
|
321
|
+
/******/ };
|
|
348
322
|
/******/
|
|
349
323
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
350
|
-
/******/
|
|
351
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
352
|
-
/******/ }();
|
|
324
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
353
325
|
/******/
|
|
354
326
|
/************************************************************************/
|
|
355
327
|
/******/
|
|
@@ -38,44 +38,20 @@ module.exports = x({ });
|
|
|
38
38
|
/******/
|
|
39
39
|
/************************************************************************/
|
|
40
40
|
/******/ /* webpack/runtime/define property getters */
|
|
41
|
-
/******/
|
|
42
|
-
/******/
|
|
43
|
-
/******/
|
|
44
|
-
/******/ if(
|
|
45
|
-
/******/
|
|
46
|
-
/******/ while(i < definition.length) {
|
|
47
|
-
/******/ var key = definition[i++];
|
|
48
|
-
/******/ var binding = definition[i++];
|
|
49
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
50
|
-
/******/ if(binding === 0) {
|
|
51
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
52
|
-
/******/ } else {
|
|
53
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
54
|
-
/******/ }
|
|
55
|
-
/******/ } else if(binding === 0) { i++; }
|
|
56
|
-
/******/ }
|
|
57
|
-
/******/ } else {
|
|
58
|
-
/******/ for(var key in definition) {
|
|
59
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
60
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
61
|
-
/******/ }
|
|
62
|
-
/******/ }
|
|
41
|
+
/******/ // define getter/value functions for harmony exports
|
|
42
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
43
|
+
/******/ for(var key in definition) {
|
|
44
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
45
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
63
46
|
/******/ }
|
|
64
|
-
/******/ }
|
|
65
|
-
/******/ }
|
|
47
|
+
/******/ }
|
|
48
|
+
/******/ };
|
|
66
49
|
/******/
|
|
67
50
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
68
|
-
/******/
|
|
69
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
70
|
-
/******/ }();
|
|
51
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
71
52
|
/******/
|
|
72
53
|
/************************************************************************/
|
|
73
54
|
var __webpack_exports__ = {};
|
|
74
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
75
|
-
/* harmony export */ D_: function() { return /* binding */ identity; },
|
|
76
|
-
/* harmony export */ Gj: function() { return /* binding */ _getParameterNames; },
|
|
77
|
-
/* harmony export */ gH: function() { return /* binding */ invertArrayFilter; }
|
|
78
|
-
/* harmony export */ });
|
|
79
55
|
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
80
56
|
// #!/usr/bin/env babel-node
|
|
81
57
|
// -*- coding: utf-8 -*-
|
package/dist/compatible/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
|
/******/
|