@swagger-api/apidom-json-path 0.76.0 → 0.76.1
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.
|
@@ -185,6 +185,16 @@ const evaluate = (path, element) => {
|
|
|
185
185
|
};
|
|
186
186
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (evaluate);
|
|
187
187
|
|
|
188
|
+
/***/ }),
|
|
189
|
+
|
|
190
|
+
/***/ 60042:
|
|
191
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
192
|
+
|
|
193
|
+
var parent = __webpack_require__(35846);
|
|
194
|
+
|
|
195
|
+
module.exports = parent;
|
|
196
|
+
|
|
197
|
+
|
|
188
198
|
/***/ }),
|
|
189
199
|
|
|
190
200
|
/***/ 28385:
|
|
@@ -259,6 +269,21 @@ var parent = __webpack_require__(16042);
|
|
|
259
269
|
module.exports = parent;
|
|
260
270
|
|
|
261
271
|
|
|
272
|
+
/***/ }),
|
|
273
|
+
|
|
274
|
+
/***/ 56791:
|
|
275
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
276
|
+
|
|
277
|
+
__webpack_require__(4339);
|
|
278
|
+
__webpack_require__(4242);
|
|
279
|
+
__webpack_require__(84016);
|
|
280
|
+
__webpack_require__(98939);
|
|
281
|
+
__webpack_require__(5454);
|
|
282
|
+
var path = __webpack_require__(57545);
|
|
283
|
+
|
|
284
|
+
module.exports = path.AggregateError;
|
|
285
|
+
|
|
286
|
+
|
|
262
287
|
/***/ }),
|
|
263
288
|
|
|
264
289
|
/***/ 92089:
|
|
@@ -381,6 +406,27 @@ var WrappedWellKnownSymbolModule = __webpack_require__(89207);
|
|
|
381
406
|
module.exports = WrappedWellKnownSymbolModule.f('toPrimitive');
|
|
382
407
|
|
|
383
408
|
|
|
409
|
+
/***/ }),
|
|
410
|
+
|
|
411
|
+
/***/ 36762:
|
|
412
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
413
|
+
|
|
414
|
+
module.exports = __webpack_require__(73028);
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
/***/ }),
|
|
418
|
+
|
|
419
|
+
/***/ 73028:
|
|
420
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
421
|
+
|
|
422
|
+
// TODO: remove from `core-js@4`
|
|
423
|
+
__webpack_require__(12752);
|
|
424
|
+
|
|
425
|
+
var parent = __webpack_require__(60042);
|
|
426
|
+
|
|
427
|
+
module.exports = parent;
|
|
428
|
+
|
|
429
|
+
|
|
384
430
|
/***/ }),
|
|
385
431
|
|
|
386
432
|
/***/ 32747:
|
|
@@ -810,6 +856,29 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
810
856
|
};
|
|
811
857
|
|
|
812
858
|
|
|
859
|
+
/***/ }),
|
|
860
|
+
|
|
861
|
+
/***/ 97987:
|
|
862
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
863
|
+
|
|
864
|
+
var hasOwn = __webpack_require__(64500);
|
|
865
|
+
var ownKeys = __webpack_require__(93011);
|
|
866
|
+
var getOwnPropertyDescriptorModule = __webpack_require__(5141);
|
|
867
|
+
var definePropertyModule = __webpack_require__(42760);
|
|
868
|
+
|
|
869
|
+
module.exports = function (target, source, exceptions) {
|
|
870
|
+
var keys = ownKeys(source);
|
|
871
|
+
var defineProperty = definePropertyModule.f;
|
|
872
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
873
|
+
for (var i = 0; i < keys.length; i++) {
|
|
874
|
+
var key = keys[i];
|
|
875
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
876
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
|
|
813
882
|
/***/ }),
|
|
814
883
|
|
|
815
884
|
/***/ 4635:
|
|
@@ -1107,6 +1176,65 @@ module.exports = [
|
|
|
1107
1176
|
];
|
|
1108
1177
|
|
|
1109
1178
|
|
|
1179
|
+
/***/ }),
|
|
1180
|
+
|
|
1181
|
+
/***/ 14503:
|
|
1182
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1183
|
+
|
|
1184
|
+
var uncurryThis = __webpack_require__(84120);
|
|
1185
|
+
|
|
1186
|
+
var $Error = Error;
|
|
1187
|
+
var replace = uncurryThis(''.replace);
|
|
1188
|
+
|
|
1189
|
+
var TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');
|
|
1190
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
1191
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
1192
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
1193
|
+
|
|
1194
|
+
module.exports = function (stack, dropEntries) {
|
|
1195
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
1196
|
+
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
1197
|
+
} return stack;
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
/***/ }),
|
|
1202
|
+
|
|
1203
|
+
/***/ 58266:
|
|
1204
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1205
|
+
|
|
1206
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
1207
|
+
var clearErrorStack = __webpack_require__(14503);
|
|
1208
|
+
var ERROR_STACK_INSTALLABLE = __webpack_require__(50274);
|
|
1209
|
+
|
|
1210
|
+
// non-standard V8
|
|
1211
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
1212
|
+
|
|
1213
|
+
module.exports = function (error, C, stack, dropEntries) {
|
|
1214
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
1215
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
1216
|
+
else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
1217
|
+
}
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
/***/ }),
|
|
1222
|
+
|
|
1223
|
+
/***/ 50274:
|
|
1224
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1225
|
+
|
|
1226
|
+
var fails = __webpack_require__(76192);
|
|
1227
|
+
var createPropertyDescriptor = __webpack_require__(90774);
|
|
1228
|
+
|
|
1229
|
+
module.exports = !fails(function () {
|
|
1230
|
+
var error = Error('a');
|
|
1231
|
+
if (!('stack' in error)) return true;
|
|
1232
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1233
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
1234
|
+
return error.stack !== 7;
|
|
1235
|
+
});
|
|
1236
|
+
|
|
1237
|
+
|
|
1110
1238
|
/***/ }),
|
|
1111
1239
|
|
|
1112
1240
|
/***/ 93085:
|
|
@@ -1390,6 +1518,46 @@ module.exports = function (namespace, method) {
|
|
|
1390
1518
|
};
|
|
1391
1519
|
|
|
1392
1520
|
|
|
1521
|
+
/***/ }),
|
|
1522
|
+
|
|
1523
|
+
/***/ 78703:
|
|
1524
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1525
|
+
|
|
1526
|
+
var classof = __webpack_require__(4696);
|
|
1527
|
+
var getMethod = __webpack_require__(75037);
|
|
1528
|
+
var isNullOrUndefined = __webpack_require__(75646);
|
|
1529
|
+
var Iterators = __webpack_require__(82621);
|
|
1530
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
1531
|
+
|
|
1532
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1533
|
+
|
|
1534
|
+
module.exports = function (it) {
|
|
1535
|
+
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
|
|
1536
|
+
|| getMethod(it, '@@iterator')
|
|
1537
|
+
|| Iterators[classof(it)];
|
|
1538
|
+
};
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
/***/ }),
|
|
1542
|
+
|
|
1543
|
+
/***/ 61669:
|
|
1544
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1545
|
+
|
|
1546
|
+
var call = __webpack_require__(18922);
|
|
1547
|
+
var aCallable = __webpack_require__(66235);
|
|
1548
|
+
var anObject = __webpack_require__(31138);
|
|
1549
|
+
var tryToString = __webpack_require__(79288);
|
|
1550
|
+
var getIteratorMethod = __webpack_require__(78703);
|
|
1551
|
+
|
|
1552
|
+
var $TypeError = TypeError;
|
|
1553
|
+
|
|
1554
|
+
module.exports = function (argument, usingIterator) {
|
|
1555
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
1556
|
+
if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
|
|
1557
|
+
throw $TypeError(tryToString(argument) + ' is not iterable');
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
|
|
1393
1561
|
/***/ }),
|
|
1394
1562
|
|
|
1395
1563
|
/***/ 19202:
|
|
@@ -1539,6 +1707,31 @@ module.exports = fails(function () {
|
|
|
1539
1707
|
} : $Object;
|
|
1540
1708
|
|
|
1541
1709
|
|
|
1710
|
+
/***/ }),
|
|
1711
|
+
|
|
1712
|
+
/***/ 62643:
|
|
1713
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1714
|
+
|
|
1715
|
+
var isCallable = __webpack_require__(16447);
|
|
1716
|
+
var isObject = __webpack_require__(35744);
|
|
1717
|
+
var setPrototypeOf = __webpack_require__(24469);
|
|
1718
|
+
|
|
1719
|
+
// makes subclassing work correct for wrapped built-ins
|
|
1720
|
+
module.exports = function ($this, dummy, Wrapper) {
|
|
1721
|
+
var NewTarget, NewTargetPrototype;
|
|
1722
|
+
if (
|
|
1723
|
+
// it can work only with native `setPrototypeOf`
|
|
1724
|
+
setPrototypeOf &&
|
|
1725
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
1726
|
+
isCallable(NewTarget = dummy.constructor) &&
|
|
1727
|
+
NewTarget !== Wrapper &&
|
|
1728
|
+
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
1729
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
1730
|
+
) setPrototypeOf($this, NewTargetPrototype);
|
|
1731
|
+
return $this;
|
|
1732
|
+
};
|
|
1733
|
+
|
|
1734
|
+
|
|
1542
1735
|
/***/ }),
|
|
1543
1736
|
|
|
1544
1737
|
/***/ 19516:
|
|
@@ -1560,6 +1753,23 @@ if (!isCallable(store.inspectSource)) {
|
|
|
1560
1753
|
module.exports = store.inspectSource;
|
|
1561
1754
|
|
|
1562
1755
|
|
|
1756
|
+
/***/ }),
|
|
1757
|
+
|
|
1758
|
+
/***/ 10273:
|
|
1759
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1760
|
+
|
|
1761
|
+
var isObject = __webpack_require__(35744);
|
|
1762
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
1763
|
+
|
|
1764
|
+
// `InstallErrorCause` abstract operation
|
|
1765
|
+
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
1766
|
+
module.exports = function (O, options) {
|
|
1767
|
+
if (isObject(options) && 'cause' in options) {
|
|
1768
|
+
createNonEnumerableProperty(O, 'cause', options.cause);
|
|
1769
|
+
}
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
|
|
1563
1773
|
/***/ }),
|
|
1564
1774
|
|
|
1565
1775
|
/***/ 73326:
|
|
@@ -1637,6 +1847,23 @@ module.exports = {
|
|
|
1637
1847
|
};
|
|
1638
1848
|
|
|
1639
1849
|
|
|
1850
|
+
/***/ }),
|
|
1851
|
+
|
|
1852
|
+
/***/ 96109:
|
|
1853
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1854
|
+
|
|
1855
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
1856
|
+
var Iterators = __webpack_require__(82621);
|
|
1857
|
+
|
|
1858
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1859
|
+
var ArrayPrototype = Array.prototype;
|
|
1860
|
+
|
|
1861
|
+
// check on default Array iterator
|
|
1862
|
+
module.exports = function (it) {
|
|
1863
|
+
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
|
|
1640
1867
|
/***/ }),
|
|
1641
1868
|
|
|
1642
1869
|
/***/ 34770:
|
|
@@ -1815,6 +2042,111 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
1815
2042
|
};
|
|
1816
2043
|
|
|
1817
2044
|
|
|
2045
|
+
/***/ }),
|
|
2046
|
+
|
|
2047
|
+
/***/ 33442:
|
|
2048
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2049
|
+
|
|
2050
|
+
var bind = __webpack_require__(8043);
|
|
2051
|
+
var call = __webpack_require__(18922);
|
|
2052
|
+
var anObject = __webpack_require__(31138);
|
|
2053
|
+
var tryToString = __webpack_require__(79288);
|
|
2054
|
+
var isArrayIteratorMethod = __webpack_require__(96109);
|
|
2055
|
+
var lengthOfArrayLike = __webpack_require__(84104);
|
|
2056
|
+
var isPrototypeOf = __webpack_require__(8902);
|
|
2057
|
+
var getIterator = __webpack_require__(61669);
|
|
2058
|
+
var getIteratorMethod = __webpack_require__(78703);
|
|
2059
|
+
var iteratorClose = __webpack_require__(66639);
|
|
2060
|
+
|
|
2061
|
+
var $TypeError = TypeError;
|
|
2062
|
+
|
|
2063
|
+
var Result = function (stopped, result) {
|
|
2064
|
+
this.stopped = stopped;
|
|
2065
|
+
this.result = result;
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2068
|
+
var ResultPrototype = Result.prototype;
|
|
2069
|
+
|
|
2070
|
+
module.exports = function (iterable, unboundFunction, options) {
|
|
2071
|
+
var that = options && options.that;
|
|
2072
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
2073
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
2074
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
2075
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
2076
|
+
var fn = bind(unboundFunction, that);
|
|
2077
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
2078
|
+
|
|
2079
|
+
var stop = function (condition) {
|
|
2080
|
+
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
2081
|
+
return new Result(true, condition);
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
var callFn = function (value) {
|
|
2085
|
+
if (AS_ENTRIES) {
|
|
2086
|
+
anObject(value);
|
|
2087
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2088
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2089
|
+
};
|
|
2090
|
+
|
|
2091
|
+
if (IS_RECORD) {
|
|
2092
|
+
iterator = iterable.iterator;
|
|
2093
|
+
} else if (IS_ITERATOR) {
|
|
2094
|
+
iterator = iterable;
|
|
2095
|
+
} else {
|
|
2096
|
+
iterFn = getIteratorMethod(iterable);
|
|
2097
|
+
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
2098
|
+
// optimisation for array iterators
|
|
2099
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
2100
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
2101
|
+
result = callFn(iterable[index]);
|
|
2102
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2103
|
+
} return new Result(false);
|
|
2104
|
+
}
|
|
2105
|
+
iterator = getIterator(iterable, iterFn);
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2109
|
+
while (!(step = call(next, iterator)).done) {
|
|
2110
|
+
try {
|
|
2111
|
+
result = callFn(step.value);
|
|
2112
|
+
} catch (error) {
|
|
2113
|
+
iteratorClose(iterator, 'throw', error);
|
|
2114
|
+
}
|
|
2115
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2116
|
+
} return new Result(false);
|
|
2117
|
+
};
|
|
2118
|
+
|
|
2119
|
+
|
|
2120
|
+
/***/ }),
|
|
2121
|
+
|
|
2122
|
+
/***/ 66639:
|
|
2123
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2124
|
+
|
|
2125
|
+
var call = __webpack_require__(18922);
|
|
2126
|
+
var anObject = __webpack_require__(31138);
|
|
2127
|
+
var getMethod = __webpack_require__(75037);
|
|
2128
|
+
|
|
2129
|
+
module.exports = function (iterator, kind, value) {
|
|
2130
|
+
var innerResult, innerError;
|
|
2131
|
+
anObject(iterator);
|
|
2132
|
+
try {
|
|
2133
|
+
innerResult = getMethod(iterator, 'return');
|
|
2134
|
+
if (!innerResult) {
|
|
2135
|
+
if (kind === 'throw') throw value;
|
|
2136
|
+
return value;
|
|
2137
|
+
}
|
|
2138
|
+
innerResult = call(innerResult, iterator);
|
|
2139
|
+
} catch (error) {
|
|
2140
|
+
innerError = true;
|
|
2141
|
+
innerResult = error;
|
|
2142
|
+
}
|
|
2143
|
+
if (kind === 'throw') throw value;
|
|
2144
|
+
if (innerError) throw innerResult;
|
|
2145
|
+
anObject(innerResult);
|
|
2146
|
+
return value;
|
|
2147
|
+
};
|
|
2148
|
+
|
|
2149
|
+
|
|
1818
2150
|
/***/ }),
|
|
1819
2151
|
|
|
1820
2152
|
/***/ 25695:
|
|
@@ -2042,6 +2374,18 @@ module.exports = Math.trunc || function trunc(x) {
|
|
|
2042
2374
|
};
|
|
2043
2375
|
|
|
2044
2376
|
|
|
2377
|
+
/***/ }),
|
|
2378
|
+
|
|
2379
|
+
/***/ 36016:
|
|
2380
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2381
|
+
|
|
2382
|
+
var toString = __webpack_require__(44845);
|
|
2383
|
+
|
|
2384
|
+
module.exports = function (argument, $default) {
|
|
2385
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
|
|
2386
|
+
};
|
|
2387
|
+
|
|
2388
|
+
|
|
2045
2389
|
/***/ }),
|
|
2046
2390
|
|
|
2047
2391
|
/***/ 52853:
|
|
@@ -2470,6 +2814,27 @@ module.exports = function (input, pref) {
|
|
|
2470
2814
|
};
|
|
2471
2815
|
|
|
2472
2816
|
|
|
2817
|
+
/***/ }),
|
|
2818
|
+
|
|
2819
|
+
/***/ 93011:
|
|
2820
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2821
|
+
|
|
2822
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
2823
|
+
var uncurryThis = __webpack_require__(84120);
|
|
2824
|
+
var getOwnPropertyNamesModule = __webpack_require__(92092);
|
|
2825
|
+
var getOwnPropertySymbolsModule = __webpack_require__(84750);
|
|
2826
|
+
var anObject = __webpack_require__(31138);
|
|
2827
|
+
|
|
2828
|
+
var concat = uncurryThis([].concat);
|
|
2829
|
+
|
|
2830
|
+
// all object keys, includes non-enumerable and symbols
|
|
2831
|
+
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
2832
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
2833
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
2834
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2837
|
+
|
|
2473
2838
|
/***/ }),
|
|
2474
2839
|
|
|
2475
2840
|
/***/ 57545:
|
|
@@ -2478,6 +2843,22 @@ module.exports = function (input, pref) {
|
|
|
2478
2843
|
module.exports = {};
|
|
2479
2844
|
|
|
2480
2845
|
|
|
2846
|
+
/***/ }),
|
|
2847
|
+
|
|
2848
|
+
/***/ 67656:
|
|
2849
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2850
|
+
|
|
2851
|
+
var defineProperty = (__webpack_require__(42760).f);
|
|
2852
|
+
|
|
2853
|
+
module.exports = function (Target, Source, key) {
|
|
2854
|
+
key in Target || defineProperty(Target, key, {
|
|
2855
|
+
configurable: true,
|
|
2856
|
+
get: function () { return Source[key]; },
|
|
2857
|
+
set: function (it) { Source[key] = it; }
|
|
2858
|
+
});
|
|
2859
|
+
};
|
|
2860
|
+
|
|
2861
|
+
|
|
2481
2862
|
/***/ }),
|
|
2482
2863
|
|
|
2483
2864
|
/***/ 13209:
|
|
@@ -3028,6 +3409,176 @@ module.exports = function (name) {
|
|
|
3028
3409
|
};
|
|
3029
3410
|
|
|
3030
3411
|
|
|
3412
|
+
/***/ }),
|
|
3413
|
+
|
|
3414
|
+
/***/ 20426:
|
|
3415
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3416
|
+
|
|
3417
|
+
"use strict";
|
|
3418
|
+
|
|
3419
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
3420
|
+
var hasOwn = __webpack_require__(64500);
|
|
3421
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
3422
|
+
var isPrototypeOf = __webpack_require__(8902);
|
|
3423
|
+
var setPrototypeOf = __webpack_require__(24469);
|
|
3424
|
+
var copyConstructorProperties = __webpack_require__(97987);
|
|
3425
|
+
var proxyAccessor = __webpack_require__(67656);
|
|
3426
|
+
var inheritIfRequired = __webpack_require__(62643);
|
|
3427
|
+
var normalizeStringArgument = __webpack_require__(36016);
|
|
3428
|
+
var installErrorCause = __webpack_require__(10273);
|
|
3429
|
+
var installErrorStack = __webpack_require__(58266);
|
|
3430
|
+
var DESCRIPTORS = __webpack_require__(50069);
|
|
3431
|
+
var IS_PURE = __webpack_require__(85546);
|
|
3432
|
+
|
|
3433
|
+
module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
3434
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
3435
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
3436
|
+
var path = FULL_NAME.split('.');
|
|
3437
|
+
var ERROR_NAME = path[path.length - 1];
|
|
3438
|
+
var OriginalError = getBuiltIn.apply(null, path);
|
|
3439
|
+
|
|
3440
|
+
if (!OriginalError) return;
|
|
3441
|
+
|
|
3442
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
3443
|
+
|
|
3444
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
3445
|
+
if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
3446
|
+
|
|
3447
|
+
if (!FORCED) return OriginalError;
|
|
3448
|
+
|
|
3449
|
+
var BaseError = getBuiltIn('Error');
|
|
3450
|
+
|
|
3451
|
+
var WrappedError = wrapper(function (a, b) {
|
|
3452
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
3453
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
3454
|
+
if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
|
|
3455
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
3456
|
+
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
3457
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
3458
|
+
return result;
|
|
3459
|
+
});
|
|
3460
|
+
|
|
3461
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
3462
|
+
|
|
3463
|
+
if (ERROR_NAME !== 'Error') {
|
|
3464
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
3465
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
3466
|
+
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
3467
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
3468
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
3472
|
+
|
|
3473
|
+
if (!IS_PURE) try {
|
|
3474
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
3475
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
3476
|
+
createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
3477
|
+
}
|
|
3478
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
3479
|
+
} catch (error) { /* empty */ }
|
|
3480
|
+
|
|
3481
|
+
return WrappedError;
|
|
3482
|
+
};
|
|
3483
|
+
|
|
3484
|
+
|
|
3485
|
+
/***/ }),
|
|
3486
|
+
|
|
3487
|
+
/***/ 84016:
|
|
3488
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3489
|
+
|
|
3490
|
+
var $ = __webpack_require__(93085);
|
|
3491
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
3492
|
+
var apply = __webpack_require__(86298);
|
|
3493
|
+
var fails = __webpack_require__(76192);
|
|
3494
|
+
var wrapErrorConstructorWithCause = __webpack_require__(20426);
|
|
3495
|
+
|
|
3496
|
+
var AGGREGATE_ERROR = 'AggregateError';
|
|
3497
|
+
var $AggregateError = getBuiltIn(AGGREGATE_ERROR);
|
|
3498
|
+
|
|
3499
|
+
var FORCED = !fails(function () {
|
|
3500
|
+
return $AggregateError([1]).errors[0] !== 1;
|
|
3501
|
+
}) && fails(function () {
|
|
3502
|
+
return $AggregateError([1], AGGREGATE_ERROR, { cause: 7 }).cause !== 7;
|
|
3503
|
+
});
|
|
3504
|
+
|
|
3505
|
+
// https://tc39.es/ecma262/#sec-aggregate-error
|
|
3506
|
+
$({ global: true, constructor: true, arity: 2, forced: FORCED }, {
|
|
3507
|
+
AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function (init) {
|
|
3508
|
+
// eslint-disable-next-line no-unused-vars -- required for functions `.length`
|
|
3509
|
+
return function AggregateError(errors, message) { return apply(init, this, arguments); };
|
|
3510
|
+
}, FORCED, true)
|
|
3511
|
+
});
|
|
3512
|
+
|
|
3513
|
+
|
|
3514
|
+
/***/ }),
|
|
3515
|
+
|
|
3516
|
+
/***/ 93820:
|
|
3517
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3518
|
+
|
|
3519
|
+
"use strict";
|
|
3520
|
+
|
|
3521
|
+
var $ = __webpack_require__(93085);
|
|
3522
|
+
var isPrototypeOf = __webpack_require__(8902);
|
|
3523
|
+
var getPrototypeOf = __webpack_require__(89341);
|
|
3524
|
+
var setPrototypeOf = __webpack_require__(24469);
|
|
3525
|
+
var copyConstructorProperties = __webpack_require__(97987);
|
|
3526
|
+
var create = __webpack_require__(52853);
|
|
3527
|
+
var createNonEnumerableProperty = __webpack_require__(98711);
|
|
3528
|
+
var createPropertyDescriptor = __webpack_require__(90774);
|
|
3529
|
+
var installErrorCause = __webpack_require__(10273);
|
|
3530
|
+
var installErrorStack = __webpack_require__(58266);
|
|
3531
|
+
var iterate = __webpack_require__(33442);
|
|
3532
|
+
var normalizeStringArgument = __webpack_require__(36016);
|
|
3533
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
3534
|
+
|
|
3535
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
3536
|
+
var $Error = Error;
|
|
3537
|
+
var push = [].push;
|
|
3538
|
+
|
|
3539
|
+
var $AggregateError = function AggregateError(errors, message /* , options */) {
|
|
3540
|
+
var isInstance = isPrototypeOf(AggregateErrorPrototype, this);
|
|
3541
|
+
var that;
|
|
3542
|
+
if (setPrototypeOf) {
|
|
3543
|
+
that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);
|
|
3544
|
+
} else {
|
|
3545
|
+
that = isInstance ? this : create(AggregateErrorPrototype);
|
|
3546
|
+
createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');
|
|
3547
|
+
}
|
|
3548
|
+
if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));
|
|
3549
|
+
installErrorStack(that, $AggregateError, that.stack, 1);
|
|
3550
|
+
if (arguments.length > 2) installErrorCause(that, arguments[2]);
|
|
3551
|
+
var errorsArray = [];
|
|
3552
|
+
iterate(errors, push, { that: errorsArray });
|
|
3553
|
+
createNonEnumerableProperty(that, 'errors', errorsArray);
|
|
3554
|
+
return that;
|
|
3555
|
+
};
|
|
3556
|
+
|
|
3557
|
+
if (setPrototypeOf) setPrototypeOf($AggregateError, $Error);
|
|
3558
|
+
else copyConstructorProperties($AggregateError, $Error, { name: true });
|
|
3559
|
+
|
|
3560
|
+
var AggregateErrorPrototype = $AggregateError.prototype = create($Error.prototype, {
|
|
3561
|
+
constructor: createPropertyDescriptor(1, $AggregateError),
|
|
3562
|
+
message: createPropertyDescriptor(1, ''),
|
|
3563
|
+
name: createPropertyDescriptor(1, 'AggregateError')
|
|
3564
|
+
});
|
|
3565
|
+
|
|
3566
|
+
// `AggregateError` constructor
|
|
3567
|
+
// https://tc39.es/ecma262/#sec-aggregate-error-constructor
|
|
3568
|
+
$({ global: true, constructor: true, arity: 2 }, {
|
|
3569
|
+
AggregateError: $AggregateError
|
|
3570
|
+
});
|
|
3571
|
+
|
|
3572
|
+
|
|
3573
|
+
/***/ }),
|
|
3574
|
+
|
|
3575
|
+
/***/ 4242:
|
|
3576
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3577
|
+
|
|
3578
|
+
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
3579
|
+
__webpack_require__(93820);
|
|
3580
|
+
|
|
3581
|
+
|
|
3031
3582
|
/***/ }),
|
|
3032
3583
|
|
|
3033
3584
|
/***/ 59106:
|
|
@@ -3203,6 +3754,69 @@ if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
|
|
|
3203
3754
|
// empty
|
|
3204
3755
|
|
|
3205
3756
|
|
|
3757
|
+
/***/ }),
|
|
3758
|
+
|
|
3759
|
+
/***/ 4339:
|
|
3760
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3761
|
+
|
|
3762
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
3763
|
+
var $ = __webpack_require__(93085);
|
|
3764
|
+
var global = __webpack_require__(98576);
|
|
3765
|
+
var apply = __webpack_require__(86298);
|
|
3766
|
+
var wrapErrorConstructorWithCause = __webpack_require__(20426);
|
|
3767
|
+
|
|
3768
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
3769
|
+
var WebAssembly = global[WEB_ASSEMBLY];
|
|
3770
|
+
|
|
3771
|
+
var FORCED = Error('e', { cause: 7 }).cause !== 7;
|
|
3772
|
+
|
|
3773
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3774
|
+
var O = {};
|
|
3775
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
3776
|
+
$({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
3777
|
+
};
|
|
3778
|
+
|
|
3779
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3780
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
3781
|
+
var O = {};
|
|
3782
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
3783
|
+
$({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
3784
|
+
}
|
|
3785
|
+
};
|
|
3786
|
+
|
|
3787
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
3788
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
3789
|
+
return function Error(message) { return apply(init, this, arguments); };
|
|
3790
|
+
});
|
|
3791
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
3792
|
+
return function EvalError(message) { return apply(init, this, arguments); };
|
|
3793
|
+
});
|
|
3794
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
3795
|
+
return function RangeError(message) { return apply(init, this, arguments); };
|
|
3796
|
+
});
|
|
3797
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
3798
|
+
return function ReferenceError(message) { return apply(init, this, arguments); };
|
|
3799
|
+
});
|
|
3800
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
3801
|
+
return function SyntaxError(message) { return apply(init, this, arguments); };
|
|
3802
|
+
});
|
|
3803
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
3804
|
+
return function TypeError(message) { return apply(init, this, arguments); };
|
|
3805
|
+
});
|
|
3806
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
3807
|
+
return function URIError(message) { return apply(init, this, arguments); };
|
|
3808
|
+
});
|
|
3809
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
3810
|
+
return function CompileError(message) { return apply(init, this, arguments); };
|
|
3811
|
+
});
|
|
3812
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
3813
|
+
return function LinkError(message) { return apply(init, this, arguments); };
|
|
3814
|
+
});
|
|
3815
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
3816
|
+
return function RuntimeError(message) { return apply(init, this, arguments); };
|
|
3817
|
+
});
|
|
3818
|
+
|
|
3819
|
+
|
|
3206
3820
|
/***/ }),
|
|
3207
3821
|
|
|
3208
3822
|
/***/ 59704:
|
|
@@ -3923,6 +4537,15 @@ var defineWellKnownSymbol = __webpack_require__(48332);
|
|
|
3923
4537
|
defineWellKnownSymbol('unscopables');
|
|
3924
4538
|
|
|
3925
4539
|
|
|
4540
|
+
/***/ }),
|
|
4541
|
+
|
|
4542
|
+
/***/ 12752:
|
|
4543
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
4544
|
+
|
|
4545
|
+
// TODO: Remove from `core-js@4`
|
|
4546
|
+
__webpack_require__(4242);
|
|
4547
|
+
|
|
4548
|
+
|
|
3926
4549
|
/***/ }),
|
|
3927
4550
|
|
|
3928
4551
|
/***/ 17148:
|
|
@@ -4127,6 +4750,20 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
4127
4750
|
}
|
|
4128
4751
|
|
|
4129
4752
|
|
|
4753
|
+
/***/ }),
|
|
4754
|
+
|
|
4755
|
+
/***/ 35846:
|
|
4756
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4757
|
+
|
|
4758
|
+
// TODO: remove from `core-js@4`
|
|
4759
|
+
__webpack_require__(12752);
|
|
4760
|
+
|
|
4761
|
+
var parent = __webpack_require__(56791);
|
|
4762
|
+
__webpack_require__(80162);
|
|
4763
|
+
|
|
4764
|
+
module.exports = parent;
|
|
4765
|
+
|
|
4766
|
+
|
|
4130
4767
|
/***/ }),
|
|
4131
4768
|
|
|
4132
4769
|
/***/ 26174:
|
|
@@ -10812,8 +11449,12 @@ var trimCharsStart = (0,ramda__WEBPACK_IMPORTED_MODULE_0__.curry)(function (char
|
|
|
10812
11449
|
/***/ 68322:
|
|
10813
11450
|
/***/ ((module) => {
|
|
10814
11451
|
|
|
11452
|
+
"use strict";
|
|
11453
|
+
|
|
10815
11454
|
var ShortUniqueId = (() => {
|
|
10816
11455
|
var __defProp = Object.defineProperty;
|
|
11456
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11457
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10817
11458
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10818
11459
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10819
11460
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -10829,22 +11470,34 @@ var ShortUniqueId = (() => {
|
|
|
10829
11470
|
}
|
|
10830
11471
|
return a;
|
|
10831
11472
|
};
|
|
10832
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
10833
11473
|
var __export = (target, all) => {
|
|
10834
|
-
__markAsModule(target);
|
|
10835
11474
|
for (var name in all)
|
|
10836
11475
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10837
11476
|
};
|
|
11477
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11478
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11479
|
+
for (let key of __getOwnPropNames(from))
|
|
11480
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
11481
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11482
|
+
}
|
|
11483
|
+
return to;
|
|
11484
|
+
};
|
|
11485
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
11486
|
+
var __publicField = (obj, key, value) => {
|
|
11487
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
11488
|
+
return value;
|
|
11489
|
+
};
|
|
10838
11490
|
|
|
10839
11491
|
// src/index.ts
|
|
10840
11492
|
var src_exports = {};
|
|
10841
11493
|
__export(src_exports, {
|
|
11494
|
+
DEFAULT_OPTIONS: () => DEFAULT_OPTIONS,
|
|
10842
11495
|
DEFAULT_UUID_LENGTH: () => DEFAULT_UUID_LENGTH,
|
|
10843
11496
|
default: () => ShortUniqueId
|
|
10844
11497
|
});
|
|
10845
11498
|
|
|
10846
11499
|
// package.json
|
|
10847
|
-
var version = "
|
|
11500
|
+
var version = "5.0.2";
|
|
10848
11501
|
|
|
10849
11502
|
// src/index.ts
|
|
10850
11503
|
var DEFAULT_UUID_LENGTH = 6;
|
|
@@ -10852,54 +11505,70 @@ var ShortUniqueId = (() => {
|
|
|
10852
11505
|
dictionary: "alphanum",
|
|
10853
11506
|
shuffle: true,
|
|
10854
11507
|
debug: false,
|
|
10855
|
-
length: DEFAULT_UUID_LENGTH
|
|
11508
|
+
length: DEFAULT_UUID_LENGTH,
|
|
11509
|
+
counter: 0
|
|
10856
11510
|
};
|
|
10857
|
-
var _ShortUniqueId = class
|
|
11511
|
+
var _ShortUniqueId = class _ShortUniqueId {
|
|
10858
11512
|
constructor(argOptions = {}) {
|
|
10859
|
-
|
|
10860
|
-
this
|
|
10861
|
-
this
|
|
10862
|
-
this
|
|
10863
|
-
this
|
|
10864
|
-
this
|
|
10865
|
-
this
|
|
10866
|
-
this
|
|
10867
|
-
this
|
|
10868
|
-
this
|
|
10869
|
-
this
|
|
10870
|
-
this
|
|
10871
|
-
this
|
|
10872
|
-
this
|
|
11513
|
+
__publicField(this, "counter");
|
|
11514
|
+
__publicField(this, "debug");
|
|
11515
|
+
__publicField(this, "dict");
|
|
11516
|
+
__publicField(this, "version");
|
|
11517
|
+
__publicField(this, "dictIndex", 0);
|
|
11518
|
+
__publicField(this, "dictRange", []);
|
|
11519
|
+
__publicField(this, "lowerBound", 0);
|
|
11520
|
+
__publicField(this, "upperBound", 0);
|
|
11521
|
+
__publicField(this, "dictLength", 0);
|
|
11522
|
+
__publicField(this, "uuidLength");
|
|
11523
|
+
__publicField(this, "_digit_first_ascii", 48);
|
|
11524
|
+
__publicField(this, "_digit_last_ascii", 58);
|
|
11525
|
+
__publicField(this, "_alpha_lower_first_ascii", 97);
|
|
11526
|
+
__publicField(this, "_alpha_lower_last_ascii", 123);
|
|
11527
|
+
__publicField(this, "_hex_last_ascii", 103);
|
|
11528
|
+
__publicField(this, "_alpha_upper_first_ascii", 65);
|
|
11529
|
+
__publicField(this, "_alpha_upper_last_ascii", 91);
|
|
11530
|
+
__publicField(this, "_number_dict_ranges", {
|
|
10873
11531
|
digits: [this._digit_first_ascii, this._digit_last_ascii]
|
|
10874
|
-
};
|
|
10875
|
-
this
|
|
11532
|
+
});
|
|
11533
|
+
__publicField(this, "_alpha_dict_ranges", {
|
|
10876
11534
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
|
|
10877
11535
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
10878
|
-
};
|
|
10879
|
-
this
|
|
11536
|
+
});
|
|
11537
|
+
__publicField(this, "_alpha_lower_dict_ranges", {
|
|
10880
11538
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
|
|
10881
|
-
};
|
|
10882
|
-
this
|
|
11539
|
+
});
|
|
11540
|
+
__publicField(this, "_alpha_upper_dict_ranges", {
|
|
10883
11541
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
10884
|
-
};
|
|
10885
|
-
this
|
|
11542
|
+
});
|
|
11543
|
+
__publicField(this, "_alphanum_dict_ranges", {
|
|
10886
11544
|
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
10887
11545
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
|
|
10888
11546
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
10889
|
-
};
|
|
10890
|
-
this
|
|
11547
|
+
});
|
|
11548
|
+
__publicField(this, "_alphanum_lower_dict_ranges", {
|
|
10891
11549
|
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
10892
11550
|
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
|
|
10893
|
-
};
|
|
10894
|
-
this
|
|
11551
|
+
});
|
|
11552
|
+
__publicField(this, "_alphanum_upper_dict_ranges", {
|
|
10895
11553
|
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
10896
11554
|
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
10897
|
-
};
|
|
10898
|
-
this
|
|
11555
|
+
});
|
|
11556
|
+
__publicField(this, "_hex_dict_ranges", {
|
|
10899
11557
|
decDigits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
10900
11558
|
alphaDigits: [this._alpha_lower_first_ascii, this._hex_last_ascii]
|
|
10901
|
-
};
|
|
10902
|
-
this
|
|
11559
|
+
});
|
|
11560
|
+
__publicField(this, "_dict_ranges", {
|
|
11561
|
+
_number_dict_ranges: this._number_dict_ranges,
|
|
11562
|
+
_alpha_dict_ranges: this._alpha_dict_ranges,
|
|
11563
|
+
_alpha_lower_dict_ranges: this._alpha_lower_dict_ranges,
|
|
11564
|
+
_alpha_upper_dict_ranges: this._alpha_upper_dict_ranges,
|
|
11565
|
+
_alphanum_dict_ranges: this._alphanum_dict_ranges,
|
|
11566
|
+
_alphanum_lower_dict_ranges: this._alphanum_lower_dict_ranges,
|
|
11567
|
+
_alphanum_upper_dict_ranges: this._alphanum_upper_dict_ranges,
|
|
11568
|
+
_hex_dict_ranges: this._hex_dict_ranges
|
|
11569
|
+
});
|
|
11570
|
+
/* tslint:disable consistent-return */
|
|
11571
|
+
__publicField(this, "log", (...args) => {
|
|
10903
11572
|
const finalArgs = [...args];
|
|
10904
11573
|
finalArgs[0] = `[short-unique-id] ${args[0]}`;
|
|
10905
11574
|
if (this.debug === true) {
|
|
@@ -10907,8 +11576,10 @@ var ShortUniqueId = (() => {
|
|
|
10907
11576
|
return console.log(...finalArgs);
|
|
10908
11577
|
}
|
|
10909
11578
|
}
|
|
10910
|
-
};
|
|
10911
|
-
|
|
11579
|
+
});
|
|
11580
|
+
/* tslint:enable consistent-return */
|
|
11581
|
+
/** Change the dictionary after initialization. */
|
|
11582
|
+
__publicField(this, "setDictionary", (dictionary, shuffle) => {
|
|
10912
11583
|
let finalDict;
|
|
10913
11584
|
if (dictionary && Array.isArray(dictionary) && dictionary.length > 1) {
|
|
10914
11585
|
finalDict = dictionary;
|
|
@@ -10917,7 +11588,7 @@ var ShortUniqueId = (() => {
|
|
|
10917
11588
|
let i;
|
|
10918
11589
|
this.dictIndex = i = 0;
|
|
10919
11590
|
const rangesName = `_${dictionary}_dict_ranges`;
|
|
10920
|
-
const ranges = this[rangesName];
|
|
11591
|
+
const ranges = this._dict_ranges[rangesName];
|
|
10921
11592
|
Object.keys(ranges).forEach((rangeType) => {
|
|
10922
11593
|
const rangeTypeKey = rangeType;
|
|
10923
11594
|
this.dictRange = ranges[rangeTypeKey];
|
|
@@ -10934,12 +11605,16 @@ var ShortUniqueId = (() => {
|
|
|
10934
11605
|
}
|
|
10935
11606
|
this.dict = finalDict;
|
|
10936
11607
|
this.dictLength = this.dict.length;
|
|
10937
|
-
this.
|
|
10938
|
-
};
|
|
10939
|
-
this
|
|
11608
|
+
this.setCounter(0);
|
|
11609
|
+
});
|
|
11610
|
+
__publicField(this, "seq", () => {
|
|
10940
11611
|
return this.sequentialUUID();
|
|
10941
|
-
};
|
|
10942
|
-
|
|
11612
|
+
});
|
|
11613
|
+
/**
|
|
11614
|
+
* Generates UUID based on internal counter that's incremented after each ID generation.
|
|
11615
|
+
* @alias `const uid = new ShortUniqueId(); uid.seq();`
|
|
11616
|
+
*/
|
|
11617
|
+
__publicField(this, "sequentialUUID", () => {
|
|
10943
11618
|
let counterDiv;
|
|
10944
11619
|
let counterRem;
|
|
10945
11620
|
let id = "";
|
|
@@ -10951,8 +11626,15 @@ var ShortUniqueId = (() => {
|
|
|
10951
11626
|
} while (counterDiv !== 0);
|
|
10952
11627
|
this.counter += 1;
|
|
10953
11628
|
return id;
|
|
10954
|
-
};
|
|
10955
|
-
this
|
|
11629
|
+
});
|
|
11630
|
+
__publicField(this, "rnd", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
|
|
11631
|
+
return this.randomUUID(uuidLength);
|
|
11632
|
+
});
|
|
11633
|
+
/**
|
|
11634
|
+
* Generates UUID by creating each part randomly.
|
|
11635
|
+
* @alias `const uid = new ShortUniqueId(); uid.rnd(uuidLength: number);`
|
|
11636
|
+
*/
|
|
11637
|
+
__publicField(this, "randomUUID", (uuidLength = this.uuidLength || DEFAULT_UUID_LENGTH) => {
|
|
10956
11638
|
let id;
|
|
10957
11639
|
let randomPartIdx;
|
|
10958
11640
|
let j;
|
|
@@ -10962,44 +11644,234 @@ var ShortUniqueId = (() => {
|
|
|
10962
11644
|
const isPositive = uuidLength >= 0;
|
|
10963
11645
|
id = "";
|
|
10964
11646
|
for (j = 0; j < uuidLength; j += 1) {
|
|
10965
|
-
randomPartIdx = parseInt(
|
|
11647
|
+
randomPartIdx = parseInt(
|
|
11648
|
+
(Math.random() * this.dictLength).toFixed(0),
|
|
11649
|
+
10
|
|
11650
|
+
) % this.dictLength;
|
|
10966
11651
|
id += this.dict[randomPartIdx];
|
|
10967
11652
|
}
|
|
10968
11653
|
return id;
|
|
10969
|
-
};
|
|
10970
|
-
this
|
|
10971
|
-
return
|
|
10972
|
-
};
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
|
|
10980
|
-
|
|
11654
|
+
});
|
|
11655
|
+
__publicField(this, "fmt", (format, date) => {
|
|
11656
|
+
return this.formattedUUID(format, date);
|
|
11657
|
+
});
|
|
11658
|
+
/**
|
|
11659
|
+
* Generates custom UUID with the provided format string.
|
|
11660
|
+
* @alias `const uid = new ShortUniqueId(); uid.fmt(format: string);`
|
|
11661
|
+
*/
|
|
11662
|
+
__publicField(this, "formattedUUID", (format, date) => {
|
|
11663
|
+
const fnMap = {
|
|
11664
|
+
"$r": this.randomUUID,
|
|
11665
|
+
"$s": this.sequentialUUID,
|
|
11666
|
+
"$t": this.stamp
|
|
11667
|
+
};
|
|
11668
|
+
const result = format.replace(
|
|
11669
|
+
/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
|
|
11670
|
+
(m) => {
|
|
11671
|
+
const fn = m.slice(0, 2);
|
|
11672
|
+
const len = parseInt(m.slice(2), 10);
|
|
11673
|
+
if (fn === "$s") {
|
|
11674
|
+
return fnMap[fn]().padStart(len, "0");
|
|
11675
|
+
}
|
|
11676
|
+
if (fn === "$t" && date) {
|
|
11677
|
+
return fnMap[fn](len, date);
|
|
11678
|
+
}
|
|
11679
|
+
return fnMap[fn](len);
|
|
11680
|
+
}
|
|
11681
|
+
);
|
|
11682
|
+
return result;
|
|
11683
|
+
});
|
|
11684
|
+
/**
|
|
11685
|
+
* Calculates total number of possible UUIDs.
|
|
11686
|
+
*
|
|
11687
|
+
* Given that:
|
|
11688
|
+
*
|
|
11689
|
+
* - `H` is the total number of possible UUIDs
|
|
11690
|
+
* - `n` is the number of unique characters in the dictionary
|
|
11691
|
+
* - `l` is the UUID length
|
|
11692
|
+
*
|
|
11693
|
+
* Then `H` is defined as `n` to the power of `l`:
|
|
11694
|
+
*
|
|
11695
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
11696
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%20H=n%5El"/>
|
|
11697
|
+
* </div>
|
|
11698
|
+
*
|
|
11699
|
+
* This function returns `H`.
|
|
11700
|
+
*/
|
|
11701
|
+
__publicField(this, "availableUUIDs", (uuidLength = this.uuidLength) => {
|
|
11702
|
+
return parseFloat(
|
|
11703
|
+
Math.pow([...new Set(this.dict)].length, uuidLength).toFixed(0)
|
|
11704
|
+
);
|
|
11705
|
+
});
|
|
11706
|
+
/**
|
|
11707
|
+
* Calculates approximate number of hashes before first collision.
|
|
11708
|
+
*
|
|
11709
|
+
* Given that:
|
|
11710
|
+
*
|
|
11711
|
+
* - `H` is the total number of possible UUIDs, or in terms of this library,
|
|
11712
|
+
* the result of running `availableUUIDs()`
|
|
11713
|
+
* - the expected number of values we have to choose before finding the
|
|
11714
|
+
* first collision can be expressed as the quantity `Q(H)`
|
|
11715
|
+
*
|
|
11716
|
+
* Then `Q(H)` can be approximated as the square root of the product of half
|
|
11717
|
+
* of pi times `H`:
|
|
11718
|
+
*
|
|
11719
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
11720
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%20Q(H)%5Capprox%5Csqrt%7B%5Cfrac%7B%5Cpi%7D%7B2%7DH%7D"/>
|
|
11721
|
+
* </div>
|
|
11722
|
+
*
|
|
11723
|
+
* This function returns `Q(H)`.
|
|
11724
|
+
*
|
|
11725
|
+
* (see [Poisson distribution](https://en.wikipedia.org/wiki/Poisson_distribution))
|
|
11726
|
+
*/
|
|
11727
|
+
__publicField(this, "approxMaxBeforeCollision", (rounds = this.availableUUIDs(this.uuidLength)) => {
|
|
11728
|
+
return parseFloat(
|
|
11729
|
+
Math.sqrt(Math.PI / 2 * rounds).toFixed(20)
|
|
11730
|
+
);
|
|
11731
|
+
});
|
|
11732
|
+
/**
|
|
11733
|
+
* Calculates probability of generating duplicate UUIDs (a collision) in a
|
|
11734
|
+
* given number of UUID generation rounds.
|
|
11735
|
+
*
|
|
11736
|
+
* Given that:
|
|
11737
|
+
*
|
|
11738
|
+
* - `r` is the maximum number of times that `randomUUID()` will be called,
|
|
11739
|
+
* or better said the number of _rounds_
|
|
11740
|
+
* - `H` is the total number of possible UUIDs, or in terms of this library,
|
|
11741
|
+
* the result of running `availableUUIDs()`
|
|
11742
|
+
*
|
|
11743
|
+
* Then the probability of collision `p(r; H)` can be approximated as the result
|
|
11744
|
+
* of dividing the square root of the product of half of pi times `r` by `H`:
|
|
11745
|
+
*
|
|
11746
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
11747
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%20p(r%3B%20H)%5Capprox%5Cfrac%7B%5Csqrt%7B%5Cfrac%7B%5Cpi%7D%7B2%7Dr%7D%7D%7BH%7D"/>
|
|
11748
|
+
* </div>
|
|
11749
|
+
*
|
|
11750
|
+
* This function returns `p(r; H)`.
|
|
11751
|
+
*
|
|
11752
|
+
* (see [Poisson distribution](https://en.wikipedia.org/wiki/Poisson_distribution))
|
|
11753
|
+
*
|
|
11754
|
+
* (Useful if you are wondering _"If I use this lib and expect to perform at most
|
|
11755
|
+
* `r` rounds of UUID generations, what is the probability that I will hit a duplicate UUID?"_.)
|
|
11756
|
+
*/
|
|
11757
|
+
__publicField(this, "collisionProbability", (rounds = this.availableUUIDs(this.uuidLength), uuidLength = this.uuidLength) => {
|
|
11758
|
+
return parseFloat(
|
|
11759
|
+
(this.approxMaxBeforeCollision(rounds) / this.availableUUIDs(uuidLength)).toFixed(20)
|
|
11760
|
+
);
|
|
11761
|
+
});
|
|
11762
|
+
/**
|
|
11763
|
+
* Calculate a "uniqueness" score (from 0 to 1) of UUIDs based on size of
|
|
11764
|
+
* dictionary and chosen UUID length.
|
|
11765
|
+
*
|
|
11766
|
+
* Given that:
|
|
11767
|
+
*
|
|
11768
|
+
* - `H` is the total number of possible UUIDs, or in terms of this library,
|
|
11769
|
+
* the result of running `availableUUIDs()`
|
|
11770
|
+
* - `Q(H)` is the approximate number of hashes before first collision,
|
|
11771
|
+
* or in terms of this library, the result of running `approxMaxBeforeCollision()`
|
|
11772
|
+
*
|
|
11773
|
+
* Then `uniqueness` can be expressed as the additive inverse of the probability of
|
|
11774
|
+
* generating a "word" I had previously generated (a duplicate) at any given iteration
|
|
11775
|
+
* up to the the total number of possible UUIDs expressed as the quotiend of `Q(H)` and `H`:
|
|
11776
|
+
*
|
|
11777
|
+
* <div style="background: white; padding: 5px; border-radius: 5px; overflow: hidden;">
|
|
11778
|
+
* <img src="https://render.githubusercontent.com/render/math?math=%5CHuge%201-%5Cfrac%7BQ(H)%7D%7BH%7D"/>
|
|
11779
|
+
* </div>
|
|
11780
|
+
*
|
|
11781
|
+
* (Useful if you need a value to rate the "quality" of the combination of given dictionary
|
|
11782
|
+
* and UUID length. The closer to 1, higher the uniqueness and thus better the quality.)
|
|
11783
|
+
*/
|
|
11784
|
+
__publicField(this, "uniqueness", (rounds = this.availableUUIDs(this.uuidLength)) => {
|
|
11785
|
+
const score = parseFloat(
|
|
11786
|
+
(1 - this.approxMaxBeforeCollision(rounds) / rounds).toFixed(20)
|
|
11787
|
+
);
|
|
10981
11788
|
return score > 1 ? 1 : score < 0 ? 0 : score;
|
|
10982
|
-
};
|
|
10983
|
-
|
|
11789
|
+
});
|
|
11790
|
+
/**
|
|
11791
|
+
* Return the version of this module.
|
|
11792
|
+
*/
|
|
11793
|
+
__publicField(this, "getVersion", () => {
|
|
10984
11794
|
return this.version;
|
|
10985
|
-
};
|
|
10986
|
-
|
|
11795
|
+
});
|
|
11796
|
+
/**
|
|
11797
|
+
* Generates a UUID with a timestamp that can be extracted using `uid.parseStamp(stampString);`.
|
|
11798
|
+
*
|
|
11799
|
+
* ```js
|
|
11800
|
+
* const uidWithTimestamp = uid.stamp(32);
|
|
11801
|
+
* console.log(uidWithTimestamp);
|
|
11802
|
+
* // GDa608f973aRCHLXQYPTbKDbjDeVsSb3
|
|
11803
|
+
*
|
|
11804
|
+
* console.log(uid.parseStamp(uidWithTimestamp));
|
|
11805
|
+
* // 2021-05-03T06:24:58.000Z
|
|
11806
|
+
* ```
|
|
11807
|
+
*/
|
|
11808
|
+
__publicField(this, "stamp", (finalLength, date) => {
|
|
11809
|
+
const hexStamp = Math.floor(+(date || /* @__PURE__ */ new Date()) / 1e3).toString(16);
|
|
11810
|
+
if (typeof finalLength === "number" && finalLength === 0) {
|
|
11811
|
+
return hexStamp;
|
|
11812
|
+
}
|
|
10987
11813
|
if (typeof finalLength !== "number" || finalLength < 10) {
|
|
10988
|
-
throw new Error(
|
|
11814
|
+
throw new Error(
|
|
11815
|
+
[
|
|
11816
|
+
"Param finalLength must be a number greater than or equal to 10,",
|
|
11817
|
+
"or 0 if you want the raw hexadecimal timestamp"
|
|
11818
|
+
].join("\n")
|
|
11819
|
+
);
|
|
10989
11820
|
}
|
|
10990
|
-
const hexStamp = Math.floor(+new Date() / 1e3).toString(16);
|
|
10991
11821
|
const idLength = finalLength - 9;
|
|
10992
11822
|
const rndIdx = Math.round(Math.random() * (idLength > 15 ? 15 : idLength));
|
|
10993
11823
|
const id = this.randomUUID(idLength);
|
|
10994
|
-
return `${id.
|
|
10995
|
-
};
|
|
10996
|
-
|
|
11824
|
+
return `${id.substring(0, rndIdx)}${hexStamp}${id.substring(rndIdx)}${rndIdx.toString(16)}`;
|
|
11825
|
+
});
|
|
11826
|
+
/**
|
|
11827
|
+
* Extracts the date embeded in a UUID generated using the `uid.stamp(finalLength);` method.
|
|
11828
|
+
*
|
|
11829
|
+
* ```js
|
|
11830
|
+
* const uidWithTimestamp = uid.stamp(32);
|
|
11831
|
+
* console.log(uidWithTimestamp);
|
|
11832
|
+
* // GDa608f973aRCHLXQYPTbKDbjDeVsSb3
|
|
11833
|
+
*
|
|
11834
|
+
* console.log(uid.parseStamp(uidWithTimestamp));
|
|
11835
|
+
* // 2021-05-03T06:24:58.000Z
|
|
11836
|
+
* ```
|
|
11837
|
+
*/
|
|
11838
|
+
__publicField(this, "parseStamp", (suid, format) => {
|
|
11839
|
+
if (format && !/t0|t[1-9]\d{1,}/.test(format)) {
|
|
11840
|
+
throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");
|
|
11841
|
+
}
|
|
11842
|
+
const stamp = format ? format.replace(
|
|
11843
|
+
/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,
|
|
11844
|
+
(m) => {
|
|
11845
|
+
const fnMap = {
|
|
11846
|
+
"$r": (len2) => [...Array(len2)].map(() => "r").join(""),
|
|
11847
|
+
"$s": (len2) => [...Array(len2)].map(() => "s").join(""),
|
|
11848
|
+
"$t": (len2) => [...Array(len2)].map(() => "t").join("")
|
|
11849
|
+
};
|
|
11850
|
+
const fn = m.slice(0, 2);
|
|
11851
|
+
const len = parseInt(m.slice(2), 10);
|
|
11852
|
+
return fnMap[fn](len);
|
|
11853
|
+
}
|
|
11854
|
+
).replace(
|
|
11855
|
+
/^(.*?)(t{8,})(.*)$/g,
|
|
11856
|
+
(_m, p1, p2) => {
|
|
11857
|
+
return suid.substring(p1.length, p1.length + p2.length);
|
|
11858
|
+
}
|
|
11859
|
+
) : suid;
|
|
11860
|
+
if (stamp.length === 8) {
|
|
11861
|
+
return new Date(parseInt(stamp, 16) * 1e3);
|
|
11862
|
+
}
|
|
10997
11863
|
if (stamp.length < 10) {
|
|
10998
11864
|
throw new Error("Stamp length invalid");
|
|
10999
11865
|
}
|
|
11000
|
-
const rndIdx = parseInt(stamp.
|
|
11001
|
-
return new Date(parseInt(stamp.
|
|
11002
|
-
};
|
|
11866
|
+
const rndIdx = parseInt(stamp.substring(stamp.length - 1), 16);
|
|
11867
|
+
return new Date(parseInt(stamp.substring(rndIdx, rndIdx + 8), 16) * 1e3);
|
|
11868
|
+
});
|
|
11869
|
+
/**
|
|
11870
|
+
* Set the counter to a specific value.
|
|
11871
|
+
*/
|
|
11872
|
+
__publicField(this, "setCounter", (counter) => {
|
|
11873
|
+
this.counter = counter;
|
|
11874
|
+
});
|
|
11003
11875
|
const options = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), argOptions);
|
|
11004
11876
|
this.counter = 0;
|
|
11005
11877
|
this.debug = false;
|
|
@@ -11008,21 +11880,40 @@ var ShortUniqueId = (() => {
|
|
|
11008
11880
|
const {
|
|
11009
11881
|
dictionary,
|
|
11010
11882
|
shuffle,
|
|
11011
|
-
length
|
|
11883
|
+
length,
|
|
11884
|
+
counter
|
|
11012
11885
|
} = options;
|
|
11013
11886
|
this.uuidLength = length;
|
|
11014
11887
|
this.setDictionary(dictionary, shuffle);
|
|
11888
|
+
this.setCounter(counter);
|
|
11015
11889
|
this.debug = options.debug;
|
|
11016
11890
|
this.log(this.dict);
|
|
11017
|
-
this.log(
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11891
|
+
this.log(
|
|
11892
|
+
`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`
|
|
11893
|
+
);
|
|
11894
|
+
this.log = this.log.bind(this);
|
|
11895
|
+
this.setDictionary = this.setDictionary.bind(this);
|
|
11896
|
+
this.setCounter = this.setCounter.bind(this);
|
|
11897
|
+
this.seq = this.seq.bind(this);
|
|
11898
|
+
this.sequentialUUID = this.sequentialUUID.bind(this);
|
|
11899
|
+
this.rnd = this.rnd.bind(this);
|
|
11900
|
+
this.randomUUID = this.randomUUID.bind(this);
|
|
11901
|
+
this.fmt = this.fmt.bind(this);
|
|
11902
|
+
this.formattedUUID = this.formattedUUID.bind(this);
|
|
11903
|
+
this.availableUUIDs = this.availableUUIDs.bind(this);
|
|
11904
|
+
this.approxMaxBeforeCollision = this.approxMaxBeforeCollision.bind(this);
|
|
11905
|
+
this.collisionProbability = this.collisionProbability.bind(this);
|
|
11906
|
+
this.uniqueness = this.uniqueness.bind(this);
|
|
11907
|
+
this.getVersion = this.getVersion.bind(this);
|
|
11908
|
+
this.stamp = this.stamp.bind(this);
|
|
11909
|
+
this.parseStamp = this.parseStamp.bind(this);
|
|
11910
|
+
return this;
|
|
11021
11911
|
}
|
|
11022
11912
|
};
|
|
11913
|
+
/** @hidden */
|
|
11914
|
+
__publicField(_ShortUniqueId, "default", _ShortUniqueId);
|
|
11023
11915
|
var ShortUniqueId = _ShortUniqueId;
|
|
11024
|
-
|
|
11025
|
-
return src_exports;
|
|
11916
|
+
return __toCommonJS(src_exports);
|
|
11026
11917
|
})();
|
|
11027
11918
|
//# sourceMappingURL=short-unique-id.js.map
|
|
11028
11919
|
true&&(module.exports=ShortUniqueId.default),'undefined'!=typeof window&&(ShortUniqueId=ShortUniqueId.default);
|
|
@@ -11036,6 +11927,13 @@ var ShortUniqueId = (() => {
|
|
|
11036
11927
|
|
|
11037
11928
|
/***/ }),
|
|
11038
11929
|
|
|
11930
|
+
/***/ 21427:
|
|
11931
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
11932
|
+
|
|
11933
|
+
module.exports = __webpack_require__(36762);
|
|
11934
|
+
|
|
11935
|
+
/***/ }),
|
|
11936
|
+
|
|
11039
11937
|
/***/ 28936:
|
|
11040
11938
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
11041
11939
|
|
|
@@ -12480,7 +13378,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12480
13378
|
/* harmony export */ });
|
|
12481
13379
|
/* harmony import */ var short_unique_id__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68322);
|
|
12482
13380
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67952);
|
|
12483
|
-
// @ts-ignore
|
|
12484
13381
|
|
|
12485
13382
|
|
|
12486
13383
|
|
|
@@ -12501,7 +13398,7 @@ const plugin = ({
|
|
|
12501
13398
|
visitor: {
|
|
12502
13399
|
enter(element) {
|
|
12503
13400
|
// eslint-disable-next-line no-param-reassign
|
|
12504
|
-
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid());
|
|
13401
|
+
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid.randomUUID());
|
|
12505
13402
|
}
|
|
12506
13403
|
},
|
|
12507
13404
|
post() {
|
|
@@ -12523,7 +13420,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12523
13420
|
/* harmony export */ });
|
|
12524
13421
|
/* harmony import */ var short_unique_id__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68322);
|
|
12525
13422
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67952);
|
|
12526
|
-
// @ts-ignore
|
|
12527
13423
|
|
|
12528
13424
|
|
|
12529
13425
|
|
|
@@ -12547,7 +13443,7 @@ const plugin = ({
|
|
|
12547
13443
|
enter(element) {
|
|
12548
13444
|
if (!predicates.isPrimitiveElement(element)) {
|
|
12549
13445
|
// eslint-disable-next-line no-param-reassign
|
|
12550
|
-
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid());
|
|
13446
|
+
element.id = new minim__WEBPACK_IMPORTED_MODULE_1__.StringElement(uuid.randomUUID());
|
|
12551
13447
|
}
|
|
12552
13448
|
}
|
|
12553
13449
|
},
|
|
@@ -13692,12 +14588,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13692
14588
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13693
14589
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13694
14590
|
/* harmony export */ });
|
|
13695
|
-
/* harmony import */ var
|
|
14591
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39723);
|
|
13696
14592
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13776);
|
|
14593
|
+
/* harmony import */ var _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21427);
|
|
14594
|
+
var _globalThis$Aggregate;
|
|
14595
|
+
|
|
13697
14596
|
|
|
14597
|
+
// @ts-ignore
|
|
13698
14598
|
|
|
14599
|
+
const AggregateError = (_globalThis$Aggregate = globalThis.AggregateError) !== null && _globalThis$Aggregate !== void 0 ? _globalThis$Aggregate : _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_1__;
|
|
14600
|
+
/**
|
|
14601
|
+
* ApiDOMAggregateError is using polyfill of AggregateError from core-js-pure
|
|
14602
|
+
* in environments which don't support global AggregateError symbol.
|
|
14603
|
+
*/
|
|
13699
14604
|
class ApiDOMAggregateError extends AggregateError {
|
|
13700
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13701
14605
|
constructor(errors, message, options) {
|
|
13702
14606
|
super(errors, message, options);
|
|
13703
14607
|
this.name = this.constructor.name;
|
|
@@ -13714,7 +14618,7 @@ class ApiDOMAggregateError extends AggregateError {
|
|
|
13714
14618
|
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
13715
14619
|
* Node.js is >= 16.9.0 supports error causes natively.
|
|
13716
14620
|
*/
|
|
13717
|
-
if ((0,
|
|
14621
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(options) && (0,ramda__WEBPACK_IMPORTED_MODULE_0__.hasIn)('cause', options) && !(0,ramda__WEBPACK_IMPORTED_MODULE_0__.hasIn)('cause', this)) {
|
|
13718
14622
|
const {
|
|
13719
14623
|
cause
|
|
13720
14624
|
} = options;
|