standard-log 11.5.1 → 12.0.0
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/README.md +2 -3
- package/cjs/console.d.ts +3 -3
- package/cjs/console.d.ts.map +1 -1
- package/cjs/console.js +18 -9
- package/cjs/console.js.map +1 -1
- package/cjs/errors.d.ts.map +1 -1
- package/cjs/errors.js.map +1 -1
- package/cjs/formatter.d.ts +1 -1
- package/cjs/formatter.d.ts.map +1 -1
- package/cjs/formatter.js +2 -2
- package/cjs/formatter.js.map +1 -1
- package/cjs/index.d.ts +4 -4
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +7 -8
- package/cjs/index.js.map +1 -1
- package/cjs/{logLevels.d.ts → log_levels.d.ts} +1 -1
- package/cjs/log_levels.d.ts.map +1 -0
- package/cjs/{logLevels.js → log_levels.js} +1 -1
- package/cjs/log_levels.js.map +1 -0
- package/{esm/logStore.d.ts → cjs/log_store.d.ts} +1 -1
- package/cjs/log_store.d.ts.map +1 -0
- package/cjs/{logStore.js → log_store.js} +6 -6
- package/cjs/log_store.js.map +1 -0
- package/cjs/logger.d.ts +1 -1
- package/cjs/logger.d.ts.map +1 -1
- package/cjs/logger.js +16 -14
- package/cjs/logger.js.map +1 -1
- package/cjs/memory.d.ts +2 -2
- package/cjs/memory.d.ts.map +1 -1
- package/cjs/memory.js +15 -8
- package/cjs/memory.js.map +1 -1
- package/cjs/platform.d.ts.map +1 -1
- package/cjs/platform.js +1 -2
- package/cjs/platform.js.map +1 -1
- package/cjs/{standardLog.ctx.d.ts → standard_log.ctx.d.ts} +2 -2
- package/cjs/standard_log.ctx.d.ts.map +1 -0
- package/cjs/{standardLog.ctx.js → standard_log.ctx.js} +1 -1
- package/cjs/standard_log.ctx.js.map +1 -0
- package/{esm/standardLog.d.ts → cjs/standard_log.d.ts} +4 -9
- package/cjs/standard_log.d.ts.map +1 -0
- package/cjs/{standardLog.js → standard_log.js} +37 -40
- package/cjs/standard_log.js.map +1 -0
- package/cjs/standard_log.mocks.d.ts +8 -0
- package/cjs/standard_log.mocks.d.ts.map +1 -0
- package/cjs/standard_log.mocks.js +32 -0
- package/cjs/standard_log.mocks.js.map +1 -0
- package/cjs/test_utils.d.ts +10 -0
- package/cjs/test_utils.d.ts.map +1 -0
- package/cjs/test_utils.js +25 -0
- package/cjs/test_utils.js.map +1 -0
- package/cjs/testing/index.d.ts +2 -0
- package/cjs/testing/index.d.ts.map +1 -0
- package/cjs/testing/index.js +6 -0
- package/cjs/testing/index.js.map +1 -0
- package/cjs/types.d.ts +12 -12
- package/cjs/types.d.ts.map +1 -1
- package/cjs/types.js.map +1 -1
- package/dist/standard-log.es5.js +1139 -758
- package/dist/standard-log.es5.js.gz +0 -0
- package/dist/standard-log.es5.js.map +1 -1
- package/dist/standard-log.es5.js.map.gz +0 -0
- package/dist/standard-log.esm.js +220 -175
- package/dist/standard-log.esm.js.gz +0 -0
- package/dist/standard-log.esm.js.map +1 -1
- package/dist/standard-log.esm.js.map.gz +0 -0
- package/esm/console.d.ts +3 -3
- package/esm/console.d.ts.map +1 -1
- package/esm/console.js +21 -10
- package/esm/console.js.map +1 -1
- package/esm/errors.d.ts.map +1 -1
- package/esm/errors.js.map +1 -1
- package/esm/formatter.d.ts +1 -1
- package/esm/formatter.d.ts.map +1 -1
- package/esm/formatter.js +1 -1
- package/esm/formatter.js.map +1 -1
- package/esm/index.d.ts +4 -4
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/index.js.map +1 -1
- package/esm/{logLevels.d.ts → log_levels.d.ts} +1 -1
- package/esm/log_levels.d.ts.map +1 -0
- package/esm/{logLevels.js → log_levels.js} +1 -1
- package/esm/log_levels.js.map +1 -0
- package/{cjs/logStore.d.ts → esm/log_store.d.ts} +1 -1
- package/esm/log_store.d.ts.map +1 -0
- package/esm/{logStore.js → log_store.js} +2 -2
- package/esm/log_store.js.map +1 -0
- package/esm/logger.d.ts +1 -1
- package/esm/logger.d.ts.map +1 -1
- package/esm/logger.js +2 -2
- package/esm/logger.js.map +1 -1
- package/esm/memory.d.ts +2 -2
- package/esm/memory.d.ts.map +1 -1
- package/esm/memory.js +15 -8
- package/esm/memory.js.map +1 -1
- package/esm/platform.d.ts.map +1 -1
- package/esm/platform.js +1 -2
- package/esm/platform.js.map +1 -1
- package/esm/{standardLog.ctx.d.ts → standard_log.ctx.d.ts} +2 -2
- package/esm/standard_log.ctx.d.ts.map +1 -0
- package/esm/{standardLog.ctx.js → standard_log.ctx.js} +1 -1
- package/esm/standard_log.ctx.js.map +1 -0
- package/{cjs/standardLog.d.ts → esm/standard_log.d.ts} +4 -9
- package/esm/standard_log.d.ts.map +1 -0
- package/esm/{standardLog.js → standard_log.js} +27 -28
- package/esm/standard_log.js.map +1 -0
- package/esm/standard_log.mocks.d.ts +8 -0
- package/esm/standard_log.mocks.d.ts.map +1 -0
- package/esm/standard_log.mocks.js +16 -0
- package/esm/standard_log.mocks.js.map +1 -0
- package/esm/test_utils.d.ts +10 -0
- package/esm/test_utils.d.ts.map +1 -0
- package/esm/test_utils.js +18 -0
- package/esm/test_utils.js.map +1 -0
- package/esm/testing/index.d.ts +2 -0
- package/esm/testing/index.d.ts.map +1 -0
- package/esm/testing/index.js +2 -0
- package/esm/testing/index.js.map +1 -0
- package/esm/types.d.ts +12 -12
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js.map +1 -1
- package/package.json +14 -8
- package/ts/console.ts +55 -46
- package/ts/errors.ts +6 -6
- package/ts/formatter.ts +19 -19
- package/ts/index.ts +19 -10
- package/ts/log_levels.ts +107 -0
- package/ts/log_store.ts +63 -0
- package/ts/logger.ts +69 -59
- package/ts/memory.ts +66 -54
- package/ts/platform.ts +2 -2
- package/ts/standard_log.ctx.ts +8 -0
- package/ts/standard_log.mocks.ts +22 -0
- package/ts/standard_log.ts +140 -0
- package/ts/test_utils.ts +21 -0
- package/ts/testing/index.ts +1 -0
- package/ts/types.ts +72 -62
- package/cjs/logLevels.d.ts.map +0 -1
- package/cjs/logLevels.js.map +0 -1
- package/cjs/logStore.d.ts.map +0 -1
- package/cjs/logStore.js.map +0 -1
- package/cjs/standardLog.ctx.d.ts.map +0 -1
- package/cjs/standardLog.ctx.js.map +0 -1
- package/cjs/standardLog.d.ts.map +0 -1
- package/cjs/standardLog.js.map +0 -1
- package/esm/logLevels.d.ts.map +0 -1
- package/esm/logLevels.js.map +0 -1
- package/esm/logStore.d.ts.map +0 -1
- package/esm/logStore.js.map +0 -1
- package/esm/standardLog.ctx.d.ts.map +0 -1
- package/esm/standardLog.ctx.js.map +0 -1
- package/esm/standardLog.d.ts.map +0 -1
- package/esm/standardLog.js.map +0 -1
- package/ts/logLevels.ts +0 -108
- package/ts/logStore.ts +0 -54
- package/ts/standardLog.ctx.ts +0 -8
- package/ts/standardLog.ts +0 -135
package/dist/standard-log.es5.js
CHANGED
|
@@ -2,9 +2,9 @@ var StandardLog;
|
|
|
2
2
|
/******/ (function() { // webpackBootstrap
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/ "../../node_modules/.pnpm/acorn@8.8.
|
|
5
|
+
/***/ "../../node_modules/.pnpm/acorn@8.8.2/node_modules/acorn/dist/acorn.js":
|
|
6
6
|
/*!*****************************************************************************!*\
|
|
7
|
-
!*** ../../node_modules/.pnpm/acorn@8.8.
|
|
7
|
+
!*** ../../node_modules/.pnpm/acorn@8.8.2/node_modules/acorn/dist/acorn.js ***!
|
|
8
8
|
\*****************************************************************************/
|
|
9
9
|
/***/ (function(__unused_webpack_module, exports) {
|
|
10
10
|
|
|
@@ -14,13 +14,13 @@ var StandardLog;
|
|
|
14
14
|
})(this, (function (exports) { 'use strict';
|
|
15
15
|
|
|
16
16
|
// This file was generated. Do not modify manually!
|
|
17
|
-
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1,
|
|
17
|
+
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
18
18
|
|
|
19
19
|
// This file was generated. Do not modify manually!
|
|
20
|
-
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24,
|
|
20
|
+
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191];
|
|
21
21
|
|
|
22
22
|
// This file was generated. Do not modify manually!
|
|
23
|
-
var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\
|
|
23
|
+
var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f";
|
|
24
24
|
|
|
25
25
|
// This file was generated. Do not modify manually!
|
|
26
26
|
var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
|
|
@@ -65,6 +65,7 @@ var StandardLog;
|
|
|
65
65
|
pos += set[i + 1];
|
|
66
66
|
if (pos >= code) { return true }
|
|
67
67
|
}
|
|
68
|
+
return false
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
// Test whether a given character code starts an identifier.
|
|
@@ -450,7 +451,7 @@ var StandardLog;
|
|
|
450
451
|
if (options.allowReserved == null)
|
|
451
452
|
{ options.allowReserved = options.ecmaVersion < 5; }
|
|
452
453
|
|
|
453
|
-
if (opts.allowHashBang == null)
|
|
454
|
+
if (!opts || opts.allowHashBang == null)
|
|
454
455
|
{ options.allowHashBang = options.ecmaVersion >= 14; }
|
|
455
456
|
|
|
456
457
|
if (isArray(options.onToken)) {
|
|
@@ -850,10 +851,10 @@ var StandardLog;
|
|
|
850
851
|
// Statement) is allowed here. If context is not empty then only a Statement
|
|
851
852
|
// is allowed. However, `let [` is an explicit negative lookahead for
|
|
852
853
|
// ExpressionStatement, so special-case it first.
|
|
853
|
-
if (nextCh === 91 || nextCh === 92
|
|
854
|
+
if (nextCh === 91 || nextCh === 92) { return true } // '[', '/'
|
|
854
855
|
if (context) { return false }
|
|
855
856
|
|
|
856
|
-
if (nextCh === 123) { return true } // '{'
|
|
857
|
+
if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '{', astral
|
|
857
858
|
if (isIdentifierStart(nextCh, true)) {
|
|
858
859
|
var pos = next + 1;
|
|
859
860
|
while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) { ++pos; }
|
|
@@ -1586,7 +1587,7 @@ var StandardLog;
|
|
|
1586
1587
|
};
|
|
1587
1588
|
|
|
1588
1589
|
pp$8.parseClassSuper = function(node) {
|
|
1589
|
-
node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(false) : null;
|
|
1590
|
+
node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null;
|
|
1590
1591
|
};
|
|
1591
1592
|
|
|
1592
1593
|
pp$8.enterClassBody = function() {
|
|
@@ -3131,7 +3132,7 @@ var StandardLog;
|
|
|
3131
3132
|
if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {
|
|
3132
3133
|
isAsync = true;
|
|
3133
3134
|
isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star);
|
|
3134
|
-
this.parsePropertyName(prop
|
|
3135
|
+
this.parsePropertyName(prop);
|
|
3135
3136
|
} else {
|
|
3136
3137
|
isAsync = false;
|
|
3137
3138
|
}
|
|
@@ -3380,7 +3381,7 @@ var StandardLog;
|
|
|
3380
3381
|
// when parsing properties), it will also convert keywords into
|
|
3381
3382
|
// identifiers.
|
|
3382
3383
|
|
|
3383
|
-
pp$5.parseIdent = function(liberal
|
|
3384
|
+
pp$5.parseIdent = function(liberal) {
|
|
3384
3385
|
var node = this.startNode();
|
|
3385
3386
|
if (this.type === types$1.name) {
|
|
3386
3387
|
node.name = this.value;
|
|
@@ -3623,8 +3624,8 @@ var StandardLog;
|
|
|
3623
3624
|
return newNode
|
|
3624
3625
|
};
|
|
3625
3626
|
|
|
3626
|
-
// This file contains Unicode properties extracted from the ECMAScript
|
|
3627
|
-
//
|
|
3627
|
+
// This file contains Unicode properties extracted from the ECMAScript specification.
|
|
3628
|
+
// The lists are extracted like so:
|
|
3628
3629
|
// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)
|
|
3629
3630
|
|
|
3630
3631
|
// #table-binary-unicode-properties
|
|
@@ -3633,12 +3634,15 @@ var StandardLog;
|
|
|
3633
3634
|
var ecma11BinaryProperties = ecma10BinaryProperties;
|
|
3634
3635
|
var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";
|
|
3635
3636
|
var ecma13BinaryProperties = ecma12BinaryProperties;
|
|
3637
|
+
var ecma14BinaryProperties = ecma13BinaryProperties;
|
|
3638
|
+
|
|
3636
3639
|
var unicodeBinaryProperties = {
|
|
3637
3640
|
9: ecma9BinaryProperties,
|
|
3638
3641
|
10: ecma10BinaryProperties,
|
|
3639
3642
|
11: ecma11BinaryProperties,
|
|
3640
3643
|
12: ecma12BinaryProperties,
|
|
3641
|
-
13: ecma13BinaryProperties
|
|
3644
|
+
13: ecma13BinaryProperties,
|
|
3645
|
+
14: ecma14BinaryProperties
|
|
3642
3646
|
};
|
|
3643
3647
|
|
|
3644
3648
|
// #table-unicode-general-category-values
|
|
@@ -3650,12 +3654,15 @@ var StandardLog;
|
|
|
3650
3654
|
var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
3651
3655
|
var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
3652
3656
|
var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
3657
|
+
var ecma14ScriptValues = ecma13ScriptValues + " Kawi Nag_Mundari Nagm";
|
|
3658
|
+
|
|
3653
3659
|
var unicodeScriptValues = {
|
|
3654
3660
|
9: ecma9ScriptValues,
|
|
3655
3661
|
10: ecma10ScriptValues,
|
|
3656
3662
|
11: ecma11ScriptValues,
|
|
3657
3663
|
12: ecma12ScriptValues,
|
|
3658
|
-
13: ecma13ScriptValues
|
|
3664
|
+
13: ecma13ScriptValues,
|
|
3665
|
+
14: ecma14ScriptValues
|
|
3659
3666
|
};
|
|
3660
3667
|
|
|
3661
3668
|
var data = {};
|
|
@@ -3674,7 +3681,7 @@ var StandardLog;
|
|
|
3674
3681
|
d.nonBinary.scx = d.nonBinary.Script_Extensions;
|
|
3675
3682
|
}
|
|
3676
3683
|
|
|
3677
|
-
for (var i = 0, list = [9, 10, 11, 12, 13]; i < list.length; i += 1) {
|
|
3684
|
+
for (var i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {
|
|
3678
3685
|
var ecmaVersion = list[i];
|
|
3679
3686
|
|
|
3680
3687
|
buildUnicodeData(ecmaVersion);
|
|
@@ -3685,7 +3692,7 @@ var StandardLog;
|
|
|
3685
3692
|
var RegExpValidationState = function RegExpValidationState(parser) {
|
|
3686
3693
|
this.parser = parser;
|
|
3687
3694
|
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "");
|
|
3688
|
-
this.unicodeProperties = data[parser.options.ecmaVersion >=
|
|
3695
|
+
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
3689
3696
|
this.source = "";
|
|
3690
3697
|
this.flags = "";
|
|
3691
3698
|
this.start = 0;
|
|
@@ -5447,8 +5454,6 @@ var StandardLog;
|
|
|
5447
5454
|
codePos,
|
|
5448
5455
|
"Invalid escape sequence in template string"
|
|
5449
5456
|
);
|
|
5450
|
-
|
|
5451
|
-
return null
|
|
5452
5457
|
}
|
|
5453
5458
|
default:
|
|
5454
5459
|
if (ch >= 48 && ch <= 55) {
|
|
@@ -5536,7 +5541,7 @@ var StandardLog;
|
|
|
5536
5541
|
|
|
5537
5542
|
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
|
5538
5543
|
|
|
5539
|
-
var version = "8.8.
|
|
5544
|
+
var version = "8.8.2";
|
|
5540
5545
|
|
|
5541
5546
|
Parser.acorn = {
|
|
5542
5547
|
Parser: Parser,
|
|
@@ -5609,8 +5614,6 @@ var StandardLog;
|
|
|
5609
5614
|
exports.tokenizer = tokenizer;
|
|
5610
5615
|
exports.version = version;
|
|
5611
5616
|
|
|
5612
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5613
|
-
|
|
5614
5617
|
}));
|
|
5615
5618
|
|
|
5616
5619
|
|
|
@@ -5819,18 +5822,23 @@ function plural(ms, msAbs, n, name) {
|
|
|
5819
5822
|
|
|
5820
5823
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5821
5824
|
exports.createConsoleLogReporter = exports.toConsoleMethod = void 0;
|
|
5822
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
5825
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
5823
5826
|
var formatter_js_1 = __webpack_require__(/*! ./formatter.js */ "./ts/formatter.ts");
|
|
5824
|
-
var
|
|
5827
|
+
var log_levels_js_1 = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
5825
5828
|
var platform_js_1 = __webpack_require__(/*! ./platform.js */ "./ts/platform.browser.ts");
|
|
5826
5829
|
function toConsoleMethod(level) {
|
|
5827
5830
|
switch (true) {
|
|
5828
5831
|
// edge case in case none is somehow written
|
|
5829
|
-
case
|
|
5830
|
-
|
|
5831
|
-
case
|
|
5832
|
-
|
|
5833
|
-
|
|
5832
|
+
case level <= 0:
|
|
5833
|
+
return 'debug';
|
|
5834
|
+
case level <= log_levels_js_1.logLevels.error:
|
|
5835
|
+
return 'error';
|
|
5836
|
+
case level <= log_levels_js_1.logLevels.warn:
|
|
5837
|
+
return 'warn';
|
|
5838
|
+
case level <= log_levels_js_1.logLevels.info:
|
|
5839
|
+
return 'info';
|
|
5840
|
+
default:
|
|
5841
|
+
return 'debug';
|
|
5834
5842
|
}
|
|
5835
5843
|
}
|
|
5836
5844
|
exports.toConsoleMethod = toConsoleMethod;
|
|
@@ -5854,7 +5862,7 @@ function buildPolyfillConsole() {
|
|
|
5854
5862
|
debug: buildFn(typeof console.debug === 'function' ? 'debug' : 'log'),
|
|
5855
5863
|
info: buildFn(typeof console.info === 'function' ? 'info' : 'log'),
|
|
5856
5864
|
warn: buildFn(typeof console.warn === 'function' ? 'warn' : 'log'),
|
|
5857
|
-
error: buildFn(typeof console.error === 'function' ? 'error' : 'log')
|
|
5865
|
+
error: buildFn(typeof console.error === 'function' ? 'error' : 'log')
|
|
5858
5866
|
};
|
|
5859
5867
|
}
|
|
5860
5868
|
}
|
|
@@ -5875,8 +5883,12 @@ function createConsoleLogReporter(options) {
|
|
|
5875
5883
|
return Object.freeze({
|
|
5876
5884
|
id: id,
|
|
5877
5885
|
isConsoleReporter: true,
|
|
5878
|
-
get formatter() {
|
|
5879
|
-
|
|
5886
|
+
get formatter() {
|
|
5887
|
+
return formatter;
|
|
5888
|
+
},
|
|
5889
|
+
get filter() {
|
|
5890
|
+
return filter;
|
|
5891
|
+
},
|
|
5880
5892
|
console: platform_js_1.polyfill.console,
|
|
5881
5893
|
write: function (entry) {
|
|
5882
5894
|
var _a;
|
|
@@ -5918,7 +5930,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
5918
5930
|
})();
|
|
5919
5931
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5920
5932
|
exports.InvalidId = exports.StandardLogError = void 0;
|
|
5921
|
-
var iso_error_1 = __webpack_require__(/*! iso-error */ "../../node_modules/.pnpm/iso-error@
|
|
5933
|
+
var iso_error_1 = __webpack_require__(/*! iso-error */ "../../node_modules/.pnpm/iso-error@6.0.1/node_modules/iso-error/cjs/index.js");
|
|
5922
5934
|
/**
|
|
5923
5935
|
* @deprecated No longer used since 11.2.0
|
|
5924
5936
|
*/
|
|
@@ -5976,7 +5988,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
5976
5988
|
exports.consoleFormatter = exports.plainLogFormatter = exports.formatLogLevel = exports.createTimestampFormatter = void 0;
|
|
5977
5989
|
var ms_1 = __importDefault(__webpack_require__(/*! ms */ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"));
|
|
5978
5990
|
var upper_case_1 = __webpack_require__(/*! upper-case */ "../../node_modules/.pnpm/upper-case@2.0.2/node_modules/upper-case/dist/index.js");
|
|
5979
|
-
var
|
|
5991
|
+
var log_levels_js_1 = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
5980
5992
|
function createTimestampFormatter(format) {
|
|
5981
5993
|
switch (format) {
|
|
5982
5994
|
case 'none':
|
|
@@ -5996,7 +6008,7 @@ function createTimestampFormatter(format) {
|
|
|
5996
6008
|
}
|
|
5997
6009
|
exports.createTimestampFormatter = createTimestampFormatter;
|
|
5998
6010
|
function formatLogLevel(level) {
|
|
5999
|
-
return "(".concat((0, upper_case_1.upperCase)((0,
|
|
6011
|
+
return "(".concat((0, upper_case_1.upperCase)((0, log_levels_js_1.toLogLevelName)(level)), ")");
|
|
6000
6012
|
}
|
|
6001
6013
|
exports.formatLogLevel = formatLogLevel;
|
|
6002
6014
|
/**
|
|
@@ -6045,26 +6057,25 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6045
6057
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
6046
6058
|
};
|
|
6047
6059
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6048
|
-
exports.suppressLogs = exports.getLogger = exports.
|
|
6060
|
+
exports.suppressLogs = exports.getLogger = exports.createStandardLog = exports.configGlobal = void 0;
|
|
6049
6061
|
__exportStar(__webpack_require__(/*! ./console.js */ "./ts/console.ts"), exports);
|
|
6050
6062
|
__exportStar(__webpack_require__(/*! ./errors.js */ "./ts/errors.ts"), exports);
|
|
6051
6063
|
__exportStar(__webpack_require__(/*! ./formatter.js */ "./ts/formatter.ts"), exports);
|
|
6052
|
-
__exportStar(__webpack_require__(/*! ./
|
|
6064
|
+
__exportStar(__webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts"), exports);
|
|
6053
6065
|
__exportStar(__webpack_require__(/*! ./memory.js */ "./ts/memory.ts"), exports);
|
|
6054
|
-
var
|
|
6055
|
-
Object.defineProperty(exports, "configGlobal", ({ enumerable: true, get: function () { return
|
|
6056
|
-
Object.defineProperty(exports, "createStandardLog", ({ enumerable: true, get: function () { return
|
|
6057
|
-
Object.defineProperty(exports, "
|
|
6058
|
-
Object.defineProperty(exports, "
|
|
6059
|
-
Object.defineProperty(exports, "suppressLogs", ({ enumerable: true, get: function () { return standardLog_js_1.suppressLogs; } }));
|
|
6066
|
+
var standard_log_js_1 = __webpack_require__(/*! ./standard_log.js */ "./ts/standard_log.ts");
|
|
6067
|
+
Object.defineProperty(exports, "configGlobal", ({ enumerable: true, get: function () { return standard_log_js_1.configGlobal; } }));
|
|
6068
|
+
Object.defineProperty(exports, "createStandardLog", ({ enumerable: true, get: function () { return standard_log_js_1.createStandardLog; } }));
|
|
6069
|
+
Object.defineProperty(exports, "getLogger", ({ enumerable: true, get: function () { return standard_log_js_1.getLogger; } }));
|
|
6070
|
+
Object.defineProperty(exports, "suppressLogs", ({ enumerable: true, get: function () { return standard_log_js_1.suppressLogs; } }));
|
|
6060
6071
|
|
|
6061
6072
|
|
|
6062
6073
|
/***/ }),
|
|
6063
6074
|
|
|
6064
|
-
/***/ "./ts/
|
|
6065
|
-
|
|
6066
|
-
!*** ./ts/
|
|
6067
|
-
|
|
6075
|
+
/***/ "./ts/log_levels.ts":
|
|
6076
|
+
/*!**************************!*\
|
|
6077
|
+
!*** ./ts/log_levels.ts ***!
|
|
6078
|
+
\**************************/
|
|
6068
6079
|
/***/ (function(__unused_webpack_module, exports) {
|
|
6069
6080
|
|
|
6070
6081
|
"use strict";
|
|
@@ -6190,19 +6201,19 @@ exports.DEFAULT_LOG_METHOD_NAMES = [
|
|
|
6190
6201
|
|
|
6191
6202
|
/***/ }),
|
|
6192
6203
|
|
|
6193
|
-
/***/ "./ts/
|
|
6194
|
-
|
|
6195
|
-
!*** ./ts/
|
|
6196
|
-
|
|
6204
|
+
/***/ "./ts/log_store.ts":
|
|
6205
|
+
/*!*************************!*\
|
|
6206
|
+
!*** ./ts/log_store.ts ***!
|
|
6207
|
+
\*************************/
|
|
6197
6208
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6198
6209
|
|
|
6199
6210
|
"use strict";
|
|
6200
6211
|
|
|
6201
6212
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6202
6213
|
exports.logLevelStore = exports.createLogStore = void 0;
|
|
6203
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
6214
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
6204
6215
|
var console_js_1 = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
6205
|
-
var
|
|
6216
|
+
var log_levels_js_1 = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
6206
6217
|
function createLogStore(options) {
|
|
6207
6218
|
return {
|
|
6208
6219
|
loggers: (0, type_plus_1.record)(),
|
|
@@ -6225,16 +6236,16 @@ function logLevelStore(options) {
|
|
|
6225
6236
|
return {
|
|
6226
6237
|
getName: function (level) {
|
|
6227
6238
|
var _a;
|
|
6228
|
-
return (_a = store.customLevelsReverse[level]) !== null && _a !== void 0 ? _a : (0,
|
|
6239
|
+
return (_a = store.customLevelsReverse[level]) !== null && _a !== void 0 ? _a : (0, log_levels_js_1.toLogLevelName)(level);
|
|
6229
6240
|
},
|
|
6230
6241
|
getLevel: function (name) {
|
|
6231
6242
|
var _a;
|
|
6232
|
-
return (_a = store.customLevels[name]) !== null && _a !== void 0 ? _a : (0,
|
|
6243
|
+
return (_a = store.customLevels[name]) !== null && _a !== void 0 ? _a : (0, log_levels_js_1.toLogLevel)(name);
|
|
6233
6244
|
},
|
|
6234
6245
|
getAllLevels: function () {
|
|
6235
|
-
return (0, type_plus_1.reduceKey)(
|
|
6246
|
+
return (0, type_plus_1.reduceKey)(log_levels_js_1.logLevels, function (result, name) {
|
|
6236
6247
|
if (name !== 'none' && name !== 'all')
|
|
6237
|
-
result.push({ name: name, level:
|
|
6248
|
+
result.push({ name: name, level: log_levels_js_1.logLevels[name] });
|
|
6238
6249
|
return result;
|
|
6239
6250
|
}, (0, type_plus_1.mapKey)(store.customLevels, function (name) { return ({ name: name, level: store.customLevels[name] }); }));
|
|
6240
6251
|
}
|
|
@@ -6264,7 +6275,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
6264
6275
|
};
|
|
6265
6276
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6266
6277
|
exports.createLogger = void 0;
|
|
6267
|
-
var
|
|
6278
|
+
var log_levels_js_1 = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
6268
6279
|
function createLogger(store, id, options) {
|
|
6269
6280
|
var _a;
|
|
6270
6281
|
id = sanitizeId(id);
|
|
@@ -6287,19 +6298,21 @@ function createLogger(store, id, options) {
|
|
|
6287
6298
|
id: { value: id, writable: false },
|
|
6288
6299
|
count: {
|
|
6289
6300
|
writable: false,
|
|
6290
|
-
value: (function (counter) {
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6301
|
+
value: (function (counter) {
|
|
6302
|
+
return function () {
|
|
6303
|
+
var args = [];
|
|
6304
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
6305
|
+
args[_i] = arguments[_i];
|
|
6306
|
+
}
|
|
6307
|
+
if (shouldLog(store, log_levels_js_1.logLevels.debug, logger.level))
|
|
6308
|
+
write({
|
|
6309
|
+
id: id,
|
|
6310
|
+
level: log_levels_js_1.logLevels.debug,
|
|
6311
|
+
args: __spreadArray([++counter], args, true),
|
|
6312
|
+
timestamp: new Date()
|
|
6313
|
+
});
|
|
6314
|
+
};
|
|
6315
|
+
})(0)
|
|
6303
6316
|
},
|
|
6304
6317
|
on: {
|
|
6305
6318
|
writable: false,
|
|
@@ -6361,18 +6374,19 @@ function shouldLog(store, targetLevel, loggerLevel) {
|
|
|
6361
6374
|
|
|
6362
6375
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6363
6376
|
exports.createMemoryWithConsoleLogReporter = exports.createMemoryLogReporter = exports.toMessageWithLevel = void 0;
|
|
6364
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
6377
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
6365
6378
|
var platform_js_1 = __webpack_require__(/*! ./platform.js */ "./ts/platform.browser.ts");
|
|
6366
6379
|
var formatter_js_1 = __webpack_require__(/*! ./formatter.js */ "./ts/formatter.ts");
|
|
6367
6380
|
var console_js_1 = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
6368
6381
|
function toMessageWithLevel(logs) {
|
|
6369
|
-
return logs
|
|
6382
|
+
return (logs
|
|
6383
|
+
.map(platform_js_1.toInspectLogEntry)
|
|
6370
6384
|
.map(function (log) { return "".concat((0, formatter_js_1.formatLogLevel)(log.level), " ").concat(log.args.join(' ')); })
|
|
6371
6385
|
.join('\n')
|
|
6372
6386
|
// if it has more than this log,
|
|
6373
6387
|
// we assume it is running under tests,
|
|
6374
6388
|
// and remove this log to simplify testing.
|
|
6375
|
-
.replace(/^\(WARN\) already configured for test, ignoring config\(\) call\n/, '');
|
|
6389
|
+
.replace(/^\(WARN\) already configured for test, ignoring config\(\) call\n/, ''));
|
|
6376
6390
|
}
|
|
6377
6391
|
exports.toMessageWithLevel = toMessageWithLevel;
|
|
6378
6392
|
function createMemoryLogReporter(options) {
|
|
@@ -6384,8 +6398,12 @@ function buildMemoryReporter(options) {
|
|
|
6384
6398
|
var logs = [];
|
|
6385
6399
|
return {
|
|
6386
6400
|
id: id,
|
|
6387
|
-
get formatter() {
|
|
6388
|
-
|
|
6401
|
+
get formatter() {
|
|
6402
|
+
return formatter;
|
|
6403
|
+
},
|
|
6404
|
+
get filter() {
|
|
6405
|
+
return filter;
|
|
6406
|
+
},
|
|
6389
6407
|
logs: logs,
|
|
6390
6408
|
write: function (entry) {
|
|
6391
6409
|
if (filter && !filter(entry))
|
|
@@ -6396,14 +6414,16 @@ function buildMemoryReporter(options) {
|
|
|
6396
6414
|
return this.getLogMessages().join('\n');
|
|
6397
6415
|
},
|
|
6398
6416
|
getLogMessages: function () {
|
|
6399
|
-
return logs.map(platform_js_1.toInspectLogEntry)
|
|
6400
|
-
.map(function (log) { return log.args.join(' '); });
|
|
6417
|
+
return logs.map(platform_js_1.toInspectLogEntry).map(function (log) { return log.args.join(' '); });
|
|
6401
6418
|
},
|
|
6402
6419
|
getLogMessagesWithIdAndLevel: function () {
|
|
6403
|
-
return logs
|
|
6420
|
+
return logs
|
|
6421
|
+
.map(platform_js_1.toInspectLogEntry)
|
|
6404
6422
|
.map(function (log) { return "".concat(log.id, " ").concat((0, formatter_js_1.formatLogLevel)(log.level), " ").concat(log.args.join(' ')); });
|
|
6405
6423
|
},
|
|
6406
|
-
getLogMessageWithLevel: function () {
|
|
6424
|
+
getLogMessageWithLevel: function () {
|
|
6425
|
+
return toMessageWithLevel(logs);
|
|
6426
|
+
},
|
|
6407
6427
|
/**
|
|
6408
6428
|
* emit the saved log to console for easy debugging
|
|
6409
6429
|
*/
|
|
@@ -6433,7 +6453,7 @@ exports.createMemoryWithConsoleLogReporter = createMemoryWithConsoleLogReporter;
|
|
|
6433
6453
|
|
|
6434
6454
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6435
6455
|
exports.polyfill = exports.toInspectLogEntry = void 0;
|
|
6436
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
6456
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
6437
6457
|
var toInspectLogEntry = function (e) { return e; };
|
|
6438
6458
|
exports.toInspectLogEntry = toInspectLogEntry;
|
|
6439
6459
|
exports.polyfill = (0, type_plus_1.record)();
|
|
@@ -6441,26 +6461,26 @@ exports.polyfill = (0, type_plus_1.record)();
|
|
|
6441
6461
|
|
|
6442
6462
|
/***/ }),
|
|
6443
6463
|
|
|
6444
|
-
/***/ "./ts/
|
|
6445
|
-
|
|
6446
|
-
!*** ./ts/
|
|
6447
|
-
|
|
6464
|
+
/***/ "./ts/standard_log.ctx.ts":
|
|
6465
|
+
/*!********************************!*\
|
|
6466
|
+
!*** ./ts/standard_log.ctx.ts ***!
|
|
6467
|
+
\********************************/
|
|
6448
6468
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6449
6469
|
|
|
6450
6470
|
"use strict";
|
|
6451
6471
|
|
|
6452
6472
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6453
6473
|
exports.ctx = void 0;
|
|
6454
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
6474
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
6455
6475
|
exports.ctx = (0, type_plus_1.record)();
|
|
6456
6476
|
|
|
6457
6477
|
|
|
6458
6478
|
/***/ }),
|
|
6459
6479
|
|
|
6460
|
-
/***/ "./ts/
|
|
6461
|
-
|
|
6462
|
-
!*** ./ts/
|
|
6463
|
-
|
|
6480
|
+
/***/ "./ts/standard_log.ts":
|
|
6481
|
+
/*!****************************!*\
|
|
6482
|
+
!*** ./ts/standard_log.ts ***!
|
|
6483
|
+
\****************************/
|
|
6464
6484
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6465
6485
|
|
|
6466
6486
|
"use strict";
|
|
@@ -6477,13 +6497,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
6477
6497
|
return __assign.apply(this, arguments);
|
|
6478
6498
|
};
|
|
6479
6499
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6480
|
-
exports.configGlobal = exports.getLogger = exports.suppressLogs = exports.
|
|
6481
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
6500
|
+
exports.configGlobal = exports.getLogger = exports.suppressLogs = exports.createStandardLogClosure = exports.createStandardLog = void 0;
|
|
6501
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
6502
|
+
var log_levels_js_1 = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
6503
|
+
var log_store_js_1 = __webpack_require__(/*! ./log_store.js */ "./ts/log_store.ts");
|
|
6482
6504
|
var logger_js_1 = __webpack_require__(/*! ./logger.js */ "./ts/logger.ts");
|
|
6483
|
-
var
|
|
6484
|
-
var logStore_js_1 = __webpack_require__(/*! ./logStore.js */ "./ts/logStore.ts");
|
|
6485
|
-
var memory_js_1 = __webpack_require__(/*! ./memory.js */ "./ts/memory.ts");
|
|
6486
|
-
var standardLog_ctx_js_1 = __webpack_require__(/*! ./standardLog.ctx.js */ "./ts/standardLog.ctx.ts");
|
|
6505
|
+
var standard_log_ctx_js_1 = __webpack_require__(/*! ./standard_log.ctx.js */ "./ts/standard_log.ctx.ts");
|
|
6487
6506
|
function createStandardLog(options) {
|
|
6488
6507
|
var _a;
|
|
6489
6508
|
var closure = createStandardLogClosure(options);
|
|
@@ -6491,8 +6510,8 @@ function createStandardLog(options) {
|
|
|
6491
6510
|
var log = closure.standardLog.getLogger('standard-log');
|
|
6492
6511
|
log.critical("Detected reporter with empty id. This is not allowed as it will create problems with feature like 'getNonConsoleLogger()'. Please add an id to your reporter.");
|
|
6493
6512
|
}
|
|
6494
|
-
if (!
|
|
6495
|
-
|
|
6513
|
+
if (!standard_log_ctx_js_1.ctx.gsl)
|
|
6514
|
+
standard_log_ctx_js_1.ctx.gsl = closure;
|
|
6496
6515
|
return closure.standardLog;
|
|
6497
6516
|
}
|
|
6498
6517
|
exports.createStandardLog = createStandardLog;
|
|
@@ -6500,15 +6519,19 @@ function noop() { }
|
|
|
6500
6519
|
function createStandardLogClosure(options) {
|
|
6501
6520
|
var _a, _b, _c;
|
|
6502
6521
|
// TODO reporter.id must not be empty
|
|
6503
|
-
var store = (0,
|
|
6522
|
+
var store = (0, log_store_js_1.createLogStore)((0, type_plus_1.required)({ logLevel: log_levels_js_1.logLevels.info }, options));
|
|
6504
6523
|
var nonConsoleReporters = (_b = (_a = options === null || options === void 0 ? void 0 : options.reporters) === null || _a === void 0 ? void 0 : _a.filter(function (r) { return !r.isConsoleReporter; }).map(function (r) { return r.id; })) !== null && _b !== void 0 ? _b : [];
|
|
6505
|
-
var logMethods =
|
|
6506
|
-
|
|
6507
|
-
|
|
6524
|
+
var logMethods = log_levels_js_1.DEFAULT_LOG_METHOD_NAMES.concat(Object.keys((_c = options === null || options === void 0 ? void 0 : options.customLevels) !== null && _c !== void 0 ? _c : {})).concat([
|
|
6525
|
+
'on',
|
|
6526
|
+
'count',
|
|
6527
|
+
'write'
|
|
6528
|
+
]);
|
|
6508
6529
|
return {
|
|
6509
6530
|
store: store,
|
|
6510
6531
|
standardLog: {
|
|
6511
|
-
get logLevel() {
|
|
6532
|
+
get logLevel() {
|
|
6533
|
+
return store.logLevel;
|
|
6534
|
+
},
|
|
6512
6535
|
toLogLevelName: function (level) {
|
|
6513
6536
|
return store.logLevelStore.getName(level);
|
|
6514
6537
|
},
|
|
@@ -6518,7 +6541,7 @@ function createStandardLogClosure(options) {
|
|
|
6518
6541
|
getLogger: function (id, options) {
|
|
6519
6542
|
if (store.loggers[id])
|
|
6520
6543
|
return store.loggers[id];
|
|
6521
|
-
return store.loggers[id] = (0, logger_js_1.createLogger)(store, id, __assign({ ssf: this.getLogger }, options));
|
|
6544
|
+
return (store.loggers[id] = (0, logger_js_1.createLogger)(store, id, __assign({ ssf: this.getLogger }, options)));
|
|
6522
6545
|
},
|
|
6523
6546
|
getNonConsoleLogger: function (id, options) {
|
|
6524
6547
|
if (store.nonConsoleLoggers[id])
|
|
@@ -6526,14 +6549,15 @@ function createStandardLogClosure(options) {
|
|
|
6526
6549
|
if (store.loggers[id]) {
|
|
6527
6550
|
var log = this.getLogger('standard-log');
|
|
6528
6551
|
log.warn("attempt to create a non-console logger with existing id ('".concat(id, "'), ignoring"));
|
|
6529
|
-
return store.nonConsoleLoggers[id] = createDummyLogger(logMethods);
|
|
6552
|
+
return (store.nonConsoleLoggers[id] = createDummyLogger(logMethods));
|
|
6530
6553
|
}
|
|
6531
|
-
return store.nonConsoleLoggers[id] =
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6554
|
+
return (store.nonConsoleLoggers[id] =
|
|
6555
|
+
nonConsoleReporters.length === 0
|
|
6556
|
+
? createDummyLogger(logMethods)
|
|
6557
|
+
: (0, logger_js_1.createLogger)(store, id, __assign(__assign({ ssf: this.getNonConsoleLogger }, options), { writeTo: function (reporterId) {
|
|
6558
|
+
return nonConsoleReporters.indexOf(reporterId) >= 0;
|
|
6559
|
+
} })));
|
|
6560
|
+
}
|
|
6537
6561
|
}
|
|
6538
6562
|
};
|
|
6539
6563
|
}
|
|
@@ -6544,22 +6568,15 @@ function createDummyLogger(logMethods) {
|
|
|
6544
6568
|
return p;
|
|
6545
6569
|
}, (0, type_plus_1.record)());
|
|
6546
6570
|
}
|
|
6547
|
-
function createStandardLogForTest(logLevel) {
|
|
6548
|
-
if (logLevel === void 0) { logLevel = logLevels_js_1.logLevels.debug; }
|
|
6549
|
-
var reporter = (0, memory_js_1.createMemoryLogReporter)();
|
|
6550
|
-
var closure = createStandardLogClosure({ reporters: [reporter], logLevel: logLevel });
|
|
6551
|
-
return __assign(__assign({}, closure.standardLog), { reporter: reporter });
|
|
6552
|
-
}
|
|
6553
|
-
exports.createStandardLogForTest = createStandardLogForTest;
|
|
6554
6571
|
function suppressLogs(block) {
|
|
6555
6572
|
var logs = [];
|
|
6556
6573
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
6557
6574
|
logs[_i - 1] = arguments[_i];
|
|
6558
6575
|
}
|
|
6559
6576
|
var origLevels = logs.map(function (l) { return l.level; });
|
|
6560
|
-
logs.forEach(function (l) { return l.level =
|
|
6577
|
+
logs.forEach(function (l) { return (l.level = log_levels_js_1.logLevels.none); });
|
|
6561
6578
|
var result = block();
|
|
6562
|
-
logs.forEach(function (l, i) { return l.level = origLevels[i]; });
|
|
6579
|
+
logs.forEach(function (l, i) { return (l.level = origLevels[i]); });
|
|
6563
6580
|
return result;
|
|
6564
6581
|
}
|
|
6565
6582
|
exports.suppressLogs = suppressLogs;
|
|
@@ -6568,29 +6585,29 @@ function getLogger(id, options) {
|
|
|
6568
6585
|
}
|
|
6569
6586
|
exports.getLogger = getLogger;
|
|
6570
6587
|
function getGlobalSL() {
|
|
6571
|
-
if (!
|
|
6572
|
-
|
|
6573
|
-
return
|
|
6588
|
+
if (!standard_log_ctx_js_1.ctx.gsl)
|
|
6589
|
+
standard_log_ctx_js_1.ctx.gsl = createStandardLogClosure();
|
|
6590
|
+
return standard_log_ctx_js_1.ctx.gsl.standardLog;
|
|
6574
6591
|
}
|
|
6575
6592
|
function configGlobal(options) {
|
|
6576
|
-
if (
|
|
6577
|
-
var log =
|
|
6593
|
+
if (standard_log_ctx_js_1.ctx.configured) {
|
|
6594
|
+
var log = standard_log_ctx_js_1.ctx.gsl.standardLog.getLogger('standard-log');
|
|
6578
6595
|
log.warn('configGlobal() is being called more than once. Please make sure this is expected. Application should use `createStandardLog()` most of the time.');
|
|
6579
6596
|
}
|
|
6580
|
-
if (
|
|
6597
|
+
if (standard_log_ctx_js_1.ctx.gsl) {
|
|
6581
6598
|
if (options.logLevel) {
|
|
6582
|
-
|
|
6599
|
+
standard_log_ctx_js_1.ctx.gsl.store.logLevel = options.logLevel;
|
|
6583
6600
|
}
|
|
6584
6601
|
if (options.reporters) {
|
|
6585
|
-
var reporters =
|
|
6602
|
+
var reporters = standard_log_ctx_js_1.ctx.gsl.store.reporters;
|
|
6586
6603
|
reporters.length = 0;
|
|
6587
6604
|
reporters.push.apply(reporters, options.reporters);
|
|
6588
6605
|
}
|
|
6589
6606
|
}
|
|
6590
6607
|
else {
|
|
6591
|
-
|
|
6608
|
+
standard_log_ctx_js_1.ctx.gsl = createStandardLogClosure(options);
|
|
6592
6609
|
}
|
|
6593
|
-
|
|
6610
|
+
standard_log_ctx_js_1.ctx.configured = true;
|
|
6594
6611
|
}
|
|
6595
6612
|
exports.configGlobal = configGlobal;
|
|
6596
6613
|
|
|
@@ -6656,15 +6673,14 @@ exports.upperCase = upperCase;
|
|
|
6656
6673
|
|
|
6657
6674
|
/***/ }),
|
|
6658
6675
|
|
|
6659
|
-
/***/ "../../node_modules/.pnpm/iso-error@
|
|
6676
|
+
/***/ "../../node_modules/.pnpm/iso-error@6.0.1/node_modules/iso-error/cjs/index.js":
|
|
6660
6677
|
/*!************************************************************************************!*\
|
|
6661
|
-
!*** ../../node_modules/.pnpm/iso-error@
|
|
6678
|
+
!*** ../../node_modules/.pnpm/iso-error@6.0.1/node_modules/iso-error/cjs/index.js ***!
|
|
6662
6679
|
\************************************************************************************/
|
|
6663
6680
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6664
6681
|
|
|
6665
6682
|
"use strict";
|
|
6666
6683
|
|
|
6667
|
-
/* eslint-disable @typescript-eslint/unbound-method */
|
|
6668
6684
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
6669
6685
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
6670
6686
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
@@ -6681,7 +6697,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
6681
6697
|
}
|
|
6682
6698
|
return t;
|
|
6683
6699
|
};
|
|
6684
|
-
var
|
|
6700
|
+
var _a, _IsoError_hasCause, _IsoError_toIsoError;
|
|
6685
6701
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6686
6702
|
exports.isAggregateError = exports.ModuleError = exports.IsoError = exports.SerializableConverter = void 0;
|
|
6687
6703
|
//#region captureStackTrace polyfill
|
|
@@ -6696,7 +6712,9 @@ if (!Error.captureStackTrace) {
|
|
|
6696
6712
|
defineStack(this, container.stack);
|
|
6697
6713
|
return container.stack;
|
|
6698
6714
|
},
|
|
6699
|
-
set: function (stack) {
|
|
6715
|
+
set: function (stack) {
|
|
6716
|
+
defineStack(error, stack);
|
|
6717
|
+
}
|
|
6700
6718
|
});
|
|
6701
6719
|
};
|
|
6702
6720
|
}
|
|
@@ -6705,70 +6723,88 @@ function defineStack(target, value) {
|
|
|
6705
6723
|
Object.defineProperty(target, 'stack', {
|
|
6706
6724
|
configurable: true,
|
|
6707
6725
|
value,
|
|
6708
|
-
writable: true
|
|
6726
|
+
writable: true
|
|
6709
6727
|
});
|
|
6710
6728
|
}
|
|
6711
6729
|
class SerializableConverter {
|
|
6712
6730
|
constructor() {
|
|
6713
|
-
|
|
6714
|
-
|
|
6731
|
+
Object.defineProperty(this, "plugins", {
|
|
6732
|
+
enumerable: true,
|
|
6733
|
+
configurable: true,
|
|
6734
|
+
writable: true,
|
|
6735
|
+
value: []
|
|
6736
|
+
});
|
|
6715
6737
|
}
|
|
6716
6738
|
addPlugin(plugin) {
|
|
6717
|
-
|
|
6739
|
+
this.plugins.unshift(plugin);
|
|
6718
6740
|
}
|
|
6719
6741
|
/**
|
|
6720
6742
|
* Deserialize an `Error` from `Serializable`
|
|
6721
6743
|
*/
|
|
6722
6744
|
fromSerializable(json, options) {
|
|
6723
|
-
const err =
|
|
6745
|
+
const err = this.deserializeError(json);
|
|
6724
6746
|
Error.captureStackTrace(err, options === null || options === void 0 ? void 0 : options.ssf);
|
|
6725
6747
|
return err;
|
|
6726
6748
|
}
|
|
6749
|
+
fromSerializableImpl(json) {
|
|
6750
|
+
if (json.name === 'AggregateError') {
|
|
6751
|
+
const _b = json, { message, errors } = _b, rest = __rest(_b, ["message", "errors"]);
|
|
6752
|
+
// @ts-ignore
|
|
6753
|
+
// istanbul ignore next
|
|
6754
|
+
if (__webpack_require__.g.AggregateError) {
|
|
6755
|
+
return Object.assign(new AggregateError(errors, message), rest);
|
|
6756
|
+
}
|
|
6757
|
+
else {
|
|
6758
|
+
return Object.assign(new Error(message), Object.assign(Object.assign({}, rest), { errors }));
|
|
6759
|
+
}
|
|
6760
|
+
}
|
|
6761
|
+
const { message, cause } = json, rest = __rest(json, ["message", "cause"]);
|
|
6762
|
+
const causeError = cause ? this.deserializeError(cause) : undefined;
|
|
6763
|
+
if (json.name === 'Error') {
|
|
6764
|
+
return Object.assign(new Error(message), causeError ? Object.assign(Object.assign({}, rest), { cause: causeError }) : rest);
|
|
6765
|
+
}
|
|
6766
|
+
// @ts-ignore
|
|
6767
|
+
return Object.assign(new IsoError(message, causeError ? { cause: causeError } : undefined), rest);
|
|
6768
|
+
}
|
|
6769
|
+
deserializeError(json) {
|
|
6770
|
+
let err = undefined;
|
|
6771
|
+
for (const { fromSerializable } of this.plugins) {
|
|
6772
|
+
err = fromSerializable(json);
|
|
6773
|
+
if (err)
|
|
6774
|
+
break;
|
|
6775
|
+
}
|
|
6776
|
+
return err || this.fromSerializableImpl(json);
|
|
6777
|
+
}
|
|
6727
6778
|
/**
|
|
6728
6779
|
* Serialize `Error` to `Serializable`
|
|
6729
6780
|
*/
|
|
6730
6781
|
toSerializable(err) {
|
|
6731
|
-
return
|
|
6782
|
+
return (this.plugins.reduce((p, s) => p || s.toSerializable(err), undefined) || this.toSerializableImpl(err));
|
|
6732
6783
|
}
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
if (json.name === 'AggregateError') {
|
|
6737
|
-
const _b = json, { message, errors } = _b, rest = __rest(_b, ["message", "errors"]);
|
|
6738
|
-
// @ts-ignore
|
|
6739
|
-
// istanbul ignore next
|
|
6740
|
-
if (__webpack_require__.g.AggregateError) {
|
|
6741
|
-
return Object.assign(new AggregateError(errors, message), rest);
|
|
6784
|
+
toSerializableImpl(err) {
|
|
6785
|
+
if (isAggregateError(err)) {
|
|
6786
|
+
return Object.assign(Object.assign({}, err), { name: err.constructor.name, message: err.message, errors: err.errors.map(this.toSerializableImpl) });
|
|
6742
6787
|
}
|
|
6743
|
-
|
|
6744
|
-
|
|
6788
|
+
if (err instanceof Error) {
|
|
6789
|
+
const { message, cause } = err;
|
|
6790
|
+
return cause
|
|
6791
|
+
? Object.assign(Object.assign({}, err), { name: err.constructor.name, message, cause: this.toSerializableImpl(cause) }) : Object.assign(Object.assign({}, err), { name: err.constructor.name, message });
|
|
6745
6792
|
}
|
|
6793
|
+
return err;
|
|
6746
6794
|
}
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
}
|
|
6761
|
-
return err || __classPrivateFieldGet(this, _SerializableConverter_instances, "m", _SerializableConverter_fromSerializable).call(this, json);
|
|
6762
|
-
}, _SerializableConverter_toSerializable = function _SerializableConverter_toSerializable(err) {
|
|
6763
|
-
if (isAggregateError(err)) {
|
|
6764
|
-
return Object.assign(Object.assign({}, err), { name: err.constructor.name, message: err.message, errors: err.errors.map(__classPrivateFieldGet(this, _SerializableConverter_instances, "m", _SerializableConverter_toSerializable)) });
|
|
6765
|
-
}
|
|
6766
|
-
if (err instanceof Error) {
|
|
6767
|
-
const { message, cause } = err;
|
|
6768
|
-
return cause
|
|
6769
|
-
? Object.assign(Object.assign({}, err), { name: err.constructor.name, message, cause: __classPrivateFieldGet(this, _SerializableConverter_instances, "m", _SerializableConverter_toSerializable).call(this, cause) }) : Object.assign(Object.assign({}, err), { name: err.constructor.name, message });
|
|
6770
|
-
}
|
|
6771
|
-
return err;
|
|
6795
|
+
}
|
|
6796
|
+
exports.SerializableConverter = SerializableConverter;
|
|
6797
|
+
const getCircularReplacer = () => {
|
|
6798
|
+
const seen = new WeakSet();
|
|
6799
|
+
return (_, value) => {
|
|
6800
|
+
if (typeof value === 'object' && value !== null) {
|
|
6801
|
+
if (seen.has(value)) {
|
|
6802
|
+
return;
|
|
6803
|
+
}
|
|
6804
|
+
seen.add(value);
|
|
6805
|
+
}
|
|
6806
|
+
return value;
|
|
6807
|
+
};
|
|
6772
6808
|
};
|
|
6773
6809
|
/**
|
|
6774
6810
|
* Isomorphic Error that works across physical boundary.
|
|
@@ -6787,7 +6823,7 @@ class IsoError extends Error {
|
|
|
6787
6823
|
return this.serialize(err);
|
|
6788
6824
|
}
|
|
6789
6825
|
static serialize(err) {
|
|
6790
|
-
return JSON.stringify(this.toSerializable(err));
|
|
6826
|
+
return JSON.stringify(this.toSerializable(err), getCircularReplacer());
|
|
6791
6827
|
}
|
|
6792
6828
|
static toSerializable(err) {
|
|
6793
6829
|
return this.converter.toSerializable(err);
|
|
@@ -6823,11 +6859,15 @@ class IsoError extends Error {
|
|
|
6823
6859
|
messages.push(`${err.name}: ${err.message}`);
|
|
6824
6860
|
}
|
|
6825
6861
|
if (isAggregateError(err)) {
|
|
6826
|
-
err.errors.forEach(e => messages.push(...this.trace(e)
|
|
6862
|
+
err.errors.forEach(e => messages.push(...this.trace(e)
|
|
6863
|
+
.split('\n')
|
|
6864
|
+
.map(s => ' ' + s)));
|
|
6827
6865
|
}
|
|
6828
6866
|
if (err instanceof Error) {
|
|
6829
6867
|
if (__classPrivateFieldGet(this, _a, "m", _IsoError_hasCause).call(this, err))
|
|
6830
|
-
messages.push(...this.trace(err.cause)
|
|
6868
|
+
messages.push(...this.trace(err.cause)
|
|
6869
|
+
.split('\n')
|
|
6870
|
+
.map(s => ' ' + s));
|
|
6831
6871
|
}
|
|
6832
6872
|
else {
|
|
6833
6873
|
messages.push(typeof err === 'string' ? err : JSON.stringify(err));
|
|
@@ -6871,19 +6911,21 @@ class IsoError extends Error {
|
|
|
6871
6911
|
if (options === null || options === void 0 ? void 0 : options.ssf)
|
|
6872
6912
|
Error.captureStackTrace(this, options.ssf);
|
|
6873
6913
|
}
|
|
6874
|
-
toString() {
|
|
6875
|
-
|
|
6914
|
+
toString() {
|
|
6915
|
+
return IsoError.serialize(this);
|
|
6916
|
+
}
|
|
6917
|
+
trace() {
|
|
6918
|
+
return IsoError.trace(this);
|
|
6919
|
+
}
|
|
6876
6920
|
}
|
|
6877
|
-
exports.IsoError = IsoError;
|
|
6878
6921
|
_a = IsoError, _IsoError_hasCause = function _IsoError_hasCause(x) {
|
|
6879
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
6880
6922
|
return !!x.cause;
|
|
6881
6923
|
}, _IsoError_toIsoError = function _IsoError_toIsoError(err) {
|
|
6882
|
-
|
|
6883
|
-
return err;
|
|
6924
|
+
var _b;
|
|
6884
6925
|
// When the error is an internal error from deserialization,
|
|
6885
|
-
// the err.constructor.name is object
|
|
6886
|
-
|
|
6926
|
+
// the err.constructor.name is object.
|
|
6927
|
+
// I have to to Object.assign to keep the err instance and its stack trace.
|
|
6928
|
+
return Object.assign(err, { name: (_b = err.name) !== null && _b !== void 0 ? _b : err.constructor.name });
|
|
6887
6929
|
};
|
|
6888
6930
|
Object.defineProperty(IsoError, "converter", {
|
|
6889
6931
|
enumerable: true,
|
|
@@ -6891,6 +6933,7 @@ Object.defineProperty(IsoError, "converter", {
|
|
|
6891
6933
|
writable: true,
|
|
6892
6934
|
value: new SerializableConverter()
|
|
6893
6935
|
});
|
|
6936
|
+
exports.IsoError = IsoError;
|
|
6894
6937
|
/**
|
|
6895
6938
|
* An IsoError with a module property.
|
|
6896
6939
|
*/
|
|
@@ -6917,9 +6960,9 @@ exports.isAggregateError = isAggregateError;
|
|
|
6917
6960
|
|
|
6918
6961
|
/***/ }),
|
|
6919
6962
|
|
|
6920
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
6963
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/constants.js":
|
|
6921
6964
|
/*!*************************************************************************************!*\
|
|
6922
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
6965
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/constants.js ***!
|
|
6923
6966
|
\*************************************************************************************/
|
|
6924
6967
|
/***/ (function(__unused_webpack_module, exports) {
|
|
6925
6968
|
|
|
@@ -6933,9 +6976,9 @@ exports.defaultOptions = { maxLength: 120, references: [] };
|
|
|
6933
6976
|
|
|
6934
6977
|
/***/ }),
|
|
6935
6978
|
|
|
6936
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
6979
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js":
|
|
6937
6980
|
/*!****************************************************************************************!*\
|
|
6938
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
6981
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js ***!
|
|
6939
6982
|
\****************************************************************************************/
|
|
6940
6983
|
/***/ (function(__unused_webpack_module, exports) {
|
|
6941
6984
|
|
|
@@ -6951,9 +6994,9 @@ exports.hasTersifyFn = hasTersifyFn;
|
|
|
6951
6994
|
|
|
6952
6995
|
/***/ }),
|
|
6953
6996
|
|
|
6954
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
6997
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/index.js":
|
|
6955
6998
|
/*!*********************************************************************************!*\
|
|
6956
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
6999
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/index.js ***!
|
|
6957
7000
|
\*********************************************************************************/
|
|
6958
7001
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6959
7002
|
|
|
@@ -6975,17 +7018,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6975
7018
|
};
|
|
6976
7019
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6977
7020
|
exports.tersify = void 0;
|
|
6978
|
-
__exportStar(__webpack_require__(/*! ./tersible.js */ "../../node_modules/.pnpm/tersify@3.
|
|
6979
|
-
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7021
|
+
__exportStar(__webpack_require__(/*! ./tersible.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersible.js"), exports);
|
|
7022
|
+
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js");
|
|
6980
7023
|
Object.defineProperty(exports, "tersify", ({ enumerable: true, get: function () { return tersify_js_1.tersify; } }));
|
|
6981
|
-
__exportStar(__webpack_require__(/*! ./types.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7024
|
+
__exportStar(__webpack_require__(/*! ./types.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js"), exports);
|
|
6982
7025
|
//# sourceMappingURL=index.js.map
|
|
6983
7026
|
|
|
6984
7027
|
/***/ }),
|
|
6985
7028
|
|
|
6986
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7029
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersible.js":
|
|
6987
7030
|
/*!************************************************************************************!*\
|
|
6988
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7031
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersible.js ***!
|
|
6989
7032
|
\************************************************************************************/
|
|
6990
7033
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6991
7034
|
|
|
@@ -7008,7 +7051,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
7008
7051
|
})();
|
|
7009
7052
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7010
7053
|
exports.tersible = exports.Tersiblized = void 0;
|
|
7011
|
-
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7054
|
+
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js");
|
|
7012
7055
|
/**
|
|
7013
7056
|
* Create a Tersible mixin class
|
|
7014
7057
|
* NOTE: `this` in `tersify` is not typed.
|
|
@@ -7049,11 +7092,13 @@ exports.Tersiblized = Tersiblized;
|
|
|
7049
7092
|
* How can I "clone" a function or class?
|
|
7050
7093
|
*/
|
|
7051
7094
|
function tersible(subject, tersify) {
|
|
7052
|
-
var tersifyFn = tersify === undefined
|
|
7053
|
-
tersify_js_1.defaultTersify
|
|
7054
|
-
typeof tersify === 'string'
|
|
7055
|
-
function () {
|
|
7056
|
-
|
|
7095
|
+
var tersifyFn = tersify === undefined
|
|
7096
|
+
? tersify_js_1.defaultTersify
|
|
7097
|
+
: typeof tersify === 'string'
|
|
7098
|
+
? function () {
|
|
7099
|
+
return tersify;
|
|
7100
|
+
}
|
|
7101
|
+
: tersify;
|
|
7057
7102
|
Object.defineProperty(subject, 'tersify', {
|
|
7058
7103
|
value: tersifyFn,
|
|
7059
7104
|
enumerable: false,
|
|
@@ -7066,9 +7111,9 @@ exports.tersible = tersible;
|
|
|
7066
7111
|
|
|
7067
7112
|
/***/ }),
|
|
7068
7113
|
|
|
7069
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7114
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js":
|
|
7070
7115
|
/*!***********************************************************************************!*\
|
|
7071
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7116
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js ***!
|
|
7072
7117
|
\***********************************************************************************/
|
|
7073
7118
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
7074
7119
|
|
|
@@ -7101,10 +7146,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7101
7146
|
exports.tersify = exports.defaultTersify = void 0;
|
|
7102
7147
|
var is_buffer_1 = __importDefault(__webpack_require__(/*! is-buffer */ "../../node_modules/.pnpm/is-buffer@2.0.5/node_modules/is-buffer/index.js"));
|
|
7103
7148
|
var unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js");
|
|
7104
|
-
var constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7105
|
-
var hasTersifyFn_js_1 = __webpack_require__(/*! ./hasTersifyFn.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7106
|
-
var tersifyFunction_js_1 = __webpack_require__(/*! ./tersifyFunction.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7107
|
-
var trim_js_1 = __webpack_require__(/*! ./trim.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7149
|
+
var constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/constants.js");
|
|
7150
|
+
var hasTersifyFn_js_1 = __webpack_require__(/*! ./hasTersifyFn.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js");
|
|
7151
|
+
var tersifyFunction_js_1 = __webpack_require__(/*! ./tersifyFunction.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js");
|
|
7152
|
+
var trim_js_1 = __webpack_require__(/*! ./trim.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js");
|
|
7108
7153
|
function defaultTersify(options) {
|
|
7109
7154
|
return tersify(this, options);
|
|
7110
7155
|
}
|
|
@@ -7141,21 +7186,21 @@ function getType(value) {
|
|
|
7141
7186
|
return type;
|
|
7142
7187
|
}
|
|
7143
7188
|
var tersifyFactory = {
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7189
|
+
undefined: tersifyLiteral,
|
|
7190
|
+
null: tersifyLiteral,
|
|
7191
|
+
boolean: tersifyLiteral,
|
|
7192
|
+
number: tersifyLiteral,
|
|
7193
|
+
bigint: tersifyBigint,
|
|
7194
|
+
instance: tersifyInstance,
|
|
7195
|
+
string: tersifyString,
|
|
7196
|
+
symbol: tersifySymbol,
|
|
7197
|
+
function: tersifyFunction_js_1.tersifyFunction,
|
|
7198
|
+
object: tersifyObject,
|
|
7199
|
+
Buffer: tersifyBuffer,
|
|
7200
|
+
Date: tersifyDate,
|
|
7201
|
+
RegExp: tersifyRegExp,
|
|
7202
|
+
Array: tersifyArray,
|
|
7203
|
+
Error: tersifyError
|
|
7159
7204
|
};
|
|
7160
7205
|
function tersifyLiteral(context, node, length) {
|
|
7161
7206
|
return (0, trim_js_1.trim)(context, String(node), length);
|
|
@@ -7242,10 +7287,11 @@ function tersifyObject(context, value, length) {
|
|
|
7242
7287
|
var hasSkippedProps = keys.length > props.length;
|
|
7243
7288
|
var content = hasSkippedProps ? props.join(', ') + ' ' : props.join(', ');
|
|
7244
7289
|
var trimmedContent = (0, trim_js_1.trim)(context, content, length - bracketLen);
|
|
7245
|
-
return keys.length === 0
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7290
|
+
return keys.length === 0
|
|
7291
|
+
? '{}'
|
|
7292
|
+
: trimmedContent.length === 0
|
|
7293
|
+
? (0, trim_js_1.trim)(context, "{ }", length)
|
|
7294
|
+
: "{ ".concat(trimmedContent, " }");
|
|
7249
7295
|
}
|
|
7250
7296
|
function tersifyInstance(context, value, length) {
|
|
7251
7297
|
var _a, _b;
|
|
@@ -7259,19 +7305,24 @@ function tersifyInstance(context, value, length) {
|
|
|
7259
7305
|
}
|
|
7260
7306
|
if (length <= 4)
|
|
7261
7307
|
switch (length) {
|
|
7262
|
-
case 4:
|
|
7263
|
-
|
|
7264
|
-
case
|
|
7265
|
-
|
|
7266
|
-
case
|
|
7308
|
+
case 4:
|
|
7309
|
+
return '. {}';
|
|
7310
|
+
case 3:
|
|
7311
|
+
return '...';
|
|
7312
|
+
case 2:
|
|
7313
|
+
return '..';
|
|
7314
|
+
case 1:
|
|
7315
|
+
return '.';
|
|
7316
|
+
case 0:
|
|
7317
|
+
return '';
|
|
7267
7318
|
}
|
|
7268
7319
|
var proto = Object.getPrototypeOf(value);
|
|
7269
7320
|
var name = (_b = (_a = proto === null || proto === void 0 ? void 0 : proto.constructor) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : '';
|
|
7270
7321
|
var bracketLen = 2; // `{}`
|
|
7271
7322
|
var spaceLen = 1; // ' '
|
|
7272
|
-
var _c = length <
|
|
7273
|
-
[length - spaceLen - bracketLen, bracketLen]
|
|
7274
|
-
[name.length, length - name.length - spaceLen], nameLength = _c[0], valueLength = _c[1];
|
|
7323
|
+
var _c = length < name.length + spaceLen + bracketLen
|
|
7324
|
+
? [length - spaceLen - bracketLen, bracketLen]
|
|
7325
|
+
: [name.length, length - name.length - spaceLen], nameLength = _c[0], valueLength = _c[1];
|
|
7275
7326
|
var nameStr = nameLength ? "".concat((0, trim_js_1.trim)(context, name, nameLength), " ") : '';
|
|
7276
7327
|
var remaining = valueLength;
|
|
7277
7328
|
var keys = Object.keys(value);
|
|
@@ -7287,10 +7338,11 @@ function tersifyInstance(context, value, length) {
|
|
|
7287
7338
|
var hasSkippedProps = keys.length > props.length;
|
|
7288
7339
|
var content = hasSkippedProps ? props.join(', ') + ' ' : props.join(', ');
|
|
7289
7340
|
var trimmedContent = (0, trim_js_1.trim)(context, content, valueLength - bracketLen - 2);
|
|
7290
|
-
return keys.length === 0
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7341
|
+
return keys.length === 0
|
|
7342
|
+
? "".concat(nameStr, "{}")
|
|
7343
|
+
: trimmedContent.length === 0
|
|
7344
|
+
? (0, trim_js_1.trim)(context, "".concat(nameStr, "{ }"), length)
|
|
7345
|
+
: "".concat(nameStr, "{ ").concat(trimmedContent, " }");
|
|
7294
7346
|
}
|
|
7295
7347
|
function getPropStr(context, bag, key, length, isLastKey) {
|
|
7296
7348
|
var commaAndSpaceLen = isLastKey ? 0 : 2;
|
|
@@ -7308,7 +7360,7 @@ function getPropStr(context, bag, key, length, isLastKey) {
|
|
|
7308
7360
|
var value = bag[key];
|
|
7309
7361
|
if (typeof value === 'function') {
|
|
7310
7362
|
var fnLen = 2;
|
|
7311
|
-
if (
|
|
7363
|
+
if (/^(.*)\s?=>\s?/.test(value.toString())) {
|
|
7312
7364
|
var propValue = tersifyValue(__assign(__assign({}, context), { path: path }), value, length - key.length - commaAndSpaceLen - colonAndSpaceLen);
|
|
7313
7365
|
return "".concat(getPropKey(key), ": ").concat(propValue);
|
|
7314
7366
|
}
|
|
@@ -7332,9 +7384,9 @@ function getPropKey(key) {
|
|
|
7332
7384
|
|
|
7333
7385
|
/***/ }),
|
|
7334
7386
|
|
|
7335
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7387
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/index.js":
|
|
7336
7388
|
/*!**********************************************************************************************!*\
|
|
7337
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7389
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/index.js ***!
|
|
7338
7390
|
\**********************************************************************************************/
|
|
7339
7391
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
7340
7392
|
|
|
@@ -7355,14 +7407,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
7355
7407
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
7356
7408
|
};
|
|
7357
7409
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7358
|
-
__exportStar(__webpack_require__(/*! ./tersifyAcorn.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7410
|
+
__exportStar(__webpack_require__(/*! ./tersifyAcorn.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/tersifyAcorn.js"), exports);
|
|
7359
7411
|
//# sourceMappingURL=index.js.map
|
|
7360
7412
|
|
|
7361
7413
|
/***/ }),
|
|
7362
7414
|
|
|
7363
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7415
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/isHigherBinaryOperatorOrder.js":
|
|
7364
7416
|
/*!********************************************************************************************************************!*\
|
|
7365
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7417
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/isHigherBinaryOperatorOrder.js ***!
|
|
7366
7418
|
\********************************************************************************************************************/
|
|
7367
7419
|
/***/ (function(__unused_webpack_module, exports) {
|
|
7368
7420
|
|
|
@@ -7404,14 +7456,25 @@ exports.isHigherOperatorOrder = isHigherOperatorOrder;
|
|
|
7404
7456
|
|
|
7405
7457
|
/***/ }),
|
|
7406
7458
|
|
|
7407
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7459
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/tersifyAcorn.js":
|
|
7408
7460
|
/*!*****************************************************************************************************!*\
|
|
7409
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7461
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/tersifyAcorn.js ***!
|
|
7410
7462
|
\*****************************************************************************************************/
|
|
7411
7463
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
7412
7464
|
|
|
7413
7465
|
"use strict";
|
|
7414
7466
|
|
|
7467
|
+
var __assign = (this && this.__assign) || function () {
|
|
7468
|
+
__assign = Object.assign || function(t) {
|
|
7469
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7470
|
+
s = arguments[i];
|
|
7471
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7472
|
+
t[p] = s[p];
|
|
7473
|
+
}
|
|
7474
|
+
return t;
|
|
7475
|
+
};
|
|
7476
|
+
return __assign.apply(this, arguments);
|
|
7477
|
+
};
|
|
7415
7478
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
7416
7479
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
7417
7480
|
if (ar || !(i in from)) {
|
|
@@ -7423,13 +7486,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
7423
7486
|
};
|
|
7424
7487
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7425
7488
|
exports.tersifyAcorn = void 0;
|
|
7426
|
-
var acorn_1 = __webpack_require__(/*! acorn */ "../../node_modules/.pnpm/acorn@8.8.
|
|
7427
|
-
var trim_js_1 = __webpack_require__(/*! ../trim.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7428
|
-
var isHigherBinaryOperatorOrder_js_1 = __webpack_require__(/*! ./isHigherBinaryOperatorOrder.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7489
|
+
var acorn_1 = __webpack_require__(/*! acorn */ "../../node_modules/.pnpm/acorn@8.8.2/node_modules/acorn/dist/acorn.js");
|
|
7490
|
+
var trim_js_1 = __webpack_require__(/*! ../trim.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js");
|
|
7491
|
+
var isHigherBinaryOperatorOrder_js_1 = __webpack_require__(/*! ./isHigherBinaryOperatorOrder.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/isHigherBinaryOperatorOrder.js");
|
|
7429
7492
|
function tersifyAcorn(context, value, length) {
|
|
7430
|
-
var
|
|
7431
|
-
var node = (0, acorn_1.parseExpressionAt)("(".concat(
|
|
7432
|
-
var result = tersifyAcornNode(context, node, length);
|
|
7493
|
+
var rawString = getFunctionString(value);
|
|
7494
|
+
var node = (0, acorn_1.parseExpressionAt)("(".concat(rawString, ")"), 0, { ecmaVersion: 2020 });
|
|
7495
|
+
var result = tersifyAcornNode(__assign(__assign({}, context), { rawString: rawString }), node, length);
|
|
7433
7496
|
return result;
|
|
7434
7497
|
}
|
|
7435
7498
|
exports.tersifyAcorn = tersifyAcorn;
|
|
@@ -7438,9 +7501,9 @@ function getFunctionString(value) {
|
|
|
7438
7501
|
var isAsync = fnStr.startsWith('async ');
|
|
7439
7502
|
var subject = isAsync ? fnStr.slice('async '.length) : fnStr;
|
|
7440
7503
|
var matches = /^([^\s\\)]+)\s?\(/.exec(subject);
|
|
7441
|
-
return matches &&
|
|
7442
|
-
"".concat(isAsync ? 'async ' : '', "function ").concat(fnStr)
|
|
7443
|
-
fnStr;
|
|
7504
|
+
return matches && matches[1] !== 'function' && matches[1] !== 'function*'
|
|
7505
|
+
? "".concat(isAsync ? 'async ' : '', "function ").concat(fnStr)
|
|
7506
|
+
: fnStr;
|
|
7444
7507
|
}
|
|
7445
7508
|
function tersifyAcornNode(context, node, length) {
|
|
7446
7509
|
if (!node)
|
|
@@ -7544,15 +7607,17 @@ function tersifyAcornNode(context, node, length) {
|
|
|
7544
7607
|
return tersifyChainExpression(context, node, length);
|
|
7545
7608
|
case 'MetaProperty':
|
|
7546
7609
|
return tersifyMetaProperty(context, node, length);
|
|
7610
|
+
case 'Super':
|
|
7611
|
+
return tersifySuperNode(context, node, length);
|
|
7547
7612
|
// istanbul ignore next
|
|
7548
7613
|
default:
|
|
7549
|
-
return tersifyUnknown(node);
|
|
7614
|
+
return tersifyUnknown(node, context.rawString);
|
|
7550
7615
|
}
|
|
7551
7616
|
}
|
|
7552
7617
|
// istanbul ignore next
|
|
7553
|
-
function tersifyUnknown(node) {
|
|
7618
|
+
function tersifyUnknown(node, rawString) {
|
|
7554
7619
|
var nodeType = node.type;
|
|
7555
|
-
console.warn("tersify received unsupported type: ".concat(nodeType, ". Please open an issue at https://github.com/unional/tersify/issues\nnode detail:\n").concat(JSON.stringify(node, undefined, 2)));
|
|
7620
|
+
console.warn("tersify received unsupported type: ".concat(nodeType, ". Please open an issue at https://github.com/unional/tersify/issues\nnode detail:\n").concat(JSON.stringify(node, undefined, 2), "\n\nsubject:\n").concat(rawString));
|
|
7556
7621
|
return "<unsupported: ".concat(nodeType, ">");
|
|
7557
7622
|
}
|
|
7558
7623
|
function tersifyCatchClauseNode(context, node, length) {
|
|
@@ -7678,14 +7743,14 @@ function tersifyDoWhileStatementNode(context, node, length) {
|
|
|
7678
7743
|
function tersifyUnaryExpressionNode(context, node, length) {
|
|
7679
7744
|
if (['void', 'typeof'].indexOf(node.operator) !== -1)
|
|
7680
7745
|
return "".concat(node.operator, " ").concat(tersifyAcornNode(context, node.argument, length));
|
|
7681
|
-
return node.prefix
|
|
7682
|
-
"".concat(node.operator).concat(tersifyAcornNode(context, node.argument, length))
|
|
7683
|
-
"".concat(tersifyAcornNode(context, node.argument, length)).concat(node.operator);
|
|
7746
|
+
return node.prefix
|
|
7747
|
+
? "".concat(node.operator).concat(tersifyAcornNode(context, node.argument, length))
|
|
7748
|
+
: "".concat(tersifyAcornNode(context, node.argument, length)).concat(node.operator);
|
|
7684
7749
|
}
|
|
7685
7750
|
function tersifyUpdateExpressionNode(context, node, length) {
|
|
7686
|
-
return node.prefix
|
|
7687
|
-
"".concat(node.operator).concat(tersifyAcornNode(context, node.argument, length))
|
|
7688
|
-
"".concat(tersifyAcornNode(context, node.argument, length)).concat(node.operator);
|
|
7751
|
+
return node.prefix
|
|
7752
|
+
? "".concat(node.operator).concat(tersifyAcornNode(context, node.argument, length))
|
|
7753
|
+
: "".concat(tersifyAcornNode(context, node.argument, length)).concat(node.operator);
|
|
7689
7754
|
}
|
|
7690
7755
|
function tersifyConditionalExpressionNode(context, node, length) {
|
|
7691
7756
|
var test = tersifyAcornNode(context, node.test, length);
|
|
@@ -7709,20 +7774,23 @@ function tersifyIfStatementNode(context, node, length) {
|
|
|
7709
7774
|
return "if (".concat(test, ") ").concat(consequent);
|
|
7710
7775
|
}
|
|
7711
7776
|
function tersifyBinaryExpressionNode(context, node, length) {
|
|
7712
|
-
if ((node.left.type === 'BinaryExpression' || node.left.type === 'LogicalExpression') &&
|
|
7777
|
+
if ((node.left.type === 'BinaryExpression' || node.left.type === 'LogicalExpression') &&
|
|
7778
|
+
(0, isHigherBinaryOperatorOrder_js_1.isHigherOperatorOrder)(node.operator, node.left.operator)) {
|
|
7713
7779
|
node.left.needParen = true;
|
|
7714
7780
|
}
|
|
7715
7781
|
var left = tersifyAcornNode(context, node.left, length);
|
|
7716
|
-
if ((node.right.type === 'BinaryExpression' || node.right.type === 'LogicalExpression') &&
|
|
7782
|
+
if ((node.right.type === 'BinaryExpression' || node.right.type === 'LogicalExpression') &&
|
|
7783
|
+
(0, isHigherBinaryOperatorOrder_js_1.isHigherOperatorOrder)(node.operator, node.right.operator)) {
|
|
7717
7784
|
node.right.needParen = true;
|
|
7718
7785
|
}
|
|
7719
7786
|
var right = tersifyAcornNode(context, node.right, length);
|
|
7720
|
-
return node.needParen ?
|
|
7721
|
-
"(".concat(left, " ").concat(node.operator, " ").concat(right, ")") :
|
|
7722
|
-
"".concat(left, " ").concat(node.operator, " ").concat(right);
|
|
7787
|
+
return node.needParen ? "(".concat(left, " ").concat(node.operator, " ").concat(right, ")") : "".concat(left, " ").concat(node.operator, " ").concat(right);
|
|
7723
7788
|
}
|
|
7724
7789
|
function tersifyNewExpressionNode(context, node, length) {
|
|
7725
|
-
return tersifyNewDate(node) ||
|
|
7790
|
+
return (tersifyNewDate(node) ||
|
|
7791
|
+
"new ".concat(tersifyAcornNode(context, node.callee, length), "(").concat(node.arguments
|
|
7792
|
+
.map(function (a) { return tersifyAcornNode(context, a, length); })
|
|
7793
|
+
.join(', '), ")"));
|
|
7726
7794
|
}
|
|
7727
7795
|
function tersifyNewDate(node) {
|
|
7728
7796
|
if (node.callee.type === 'Identifier' && node.callee.name === 'Date') {
|
|
@@ -7773,9 +7841,9 @@ function tersifyArrowExpressionNode(context, node, length) {
|
|
|
7773
7841
|
var paramsBody = tersifyParamsBody(context, node.params);
|
|
7774
7842
|
var params = skipParamParen ? paramsBody : "(".concat(paramsBody, ")");
|
|
7775
7843
|
var singleBodyNode = getSingleStatementBodyNode(context, node.body);
|
|
7776
|
-
var body = singleBodyNode
|
|
7777
|
-
tersifyArrowBodyAsSingleStatement(context, singleBodyNode)
|
|
7778
|
-
tersifyFunctionBody(context, node.body);
|
|
7844
|
+
var body = singleBodyNode
|
|
7845
|
+
? tersifyArrowBodyAsSingleStatement(context, singleBodyNode)
|
|
7846
|
+
: tersifyFunctionBody(context, node.body);
|
|
7779
7847
|
var isSingleBodyObjectExpression = singleBodyNode && singleBodyNode.type === 'ObjectExpression';
|
|
7780
7848
|
if (isSingleBodyObjectExpression) {
|
|
7781
7849
|
body = "(".concat(body, ")");
|
|
@@ -7785,23 +7853,21 @@ function tersifyArrowExpressionNode(context, node, length) {
|
|
|
7785
7853
|
}
|
|
7786
7854
|
else {
|
|
7787
7855
|
var lenAvailForParams = Math.max(skipParamParen ? 1 : 3, length - (async.length + generator.length + arrow.length + body.length));
|
|
7788
|
-
var trimmedParams = skipParamParen
|
|
7789
|
-
(0, trim_js_1.trim)(context, paramsBody, lenAvailForParams)
|
|
7790
|
-
"(".concat((0, trim_js_1.trim)(context, paramsBody, lenAvailForParams - 2), ")");
|
|
7856
|
+
var trimmedParams = skipParamParen
|
|
7857
|
+
? (0, trim_js_1.trim)(context, paramsBody, lenAvailForParams)
|
|
7858
|
+
: "(".concat((0, trim_js_1.trim)(context, paramsBody, lenAvailForParams - 2), ")");
|
|
7791
7859
|
if (async.length + generator.length + lenAvailForParams + arrow.length + body.length <= length) {
|
|
7792
7860
|
return "".concat(async).concat(generator).concat(trimmedParams).concat(arrow).concat(body);
|
|
7793
7861
|
}
|
|
7794
7862
|
else {
|
|
7795
7863
|
var minBodyLen = 3;
|
|
7796
|
-
var wrapLen = isSingleBodyObjectExpression ?
|
|
7797
|
-
"({ })".length :
|
|
7798
|
-
singleBodyNode ? 0 : "{ }".length;
|
|
7864
|
+
var wrapLen = isSingleBodyObjectExpression ? "({ })".length : singleBodyNode ? 0 : "{ }".length;
|
|
7799
7865
|
var lenAvailForBody = Math.max(minBodyLen, length - (async.length + generator.length + trimmedParams.length + arrow.length + wrapLen));
|
|
7800
|
-
var trimmedBody = isSingleBodyObjectExpression
|
|
7801
|
-
"({ ".concat((0, trim_js_1.trim)(context, body.slice(2, body.length - 2), lenAvailForBody - 4), " })")
|
|
7802
|
-
singleBodyNode
|
|
7803
|
-
(0, trim_js_1.trim)(context, body, lenAvailForBody)
|
|
7804
|
-
"{ ".concat((0, trim_js_1.trim)(context, body.slice(2, body.length - 1), lenAvailForBody), " }");
|
|
7866
|
+
var trimmedBody = isSingleBodyObjectExpression
|
|
7867
|
+
? "({ ".concat((0, trim_js_1.trim)(context, body.slice(2, body.length - 2), lenAvailForBody - 4), " })")
|
|
7868
|
+
: singleBodyNode
|
|
7869
|
+
? (0, trim_js_1.trim)(context, body, lenAvailForBody)
|
|
7870
|
+
: "{ ".concat((0, trim_js_1.trim)(context, body.slice(2, body.length - 1), lenAvailForBody), " }");
|
|
7805
7871
|
return (0, trim_js_1.trim)(context, "".concat(async).concat(generator).concat(trimmedParams).concat(arrow).concat(trimmedBody), length);
|
|
7806
7872
|
}
|
|
7807
7873
|
}
|
|
@@ -7846,23 +7912,25 @@ function tersifyCallExpressionNode(context, node, length) {
|
|
|
7846
7912
|
return "".concat(callee).concat(node.optional ? '?.' : '').concat(params);
|
|
7847
7913
|
}
|
|
7848
7914
|
function isSymbolForNode(node) {
|
|
7849
|
-
return node.callee.type === 'MemberExpression' &&
|
|
7915
|
+
return (node.callee.type === 'MemberExpression' &&
|
|
7850
7916
|
node.callee.object.type === 'Identifier' &&
|
|
7851
7917
|
node.callee.object.name === 'Symbol' &&
|
|
7852
7918
|
node.callee.property.type === 'Identifier' &&
|
|
7853
|
-
node.callee.property.name === 'for';
|
|
7919
|
+
node.callee.property.name === 'for');
|
|
7854
7920
|
}
|
|
7855
7921
|
function isDefineThisProperty(node) {
|
|
7856
|
-
return node.callee.type === 'Identifier' &&
|
|
7922
|
+
return (node.callee.type === 'Identifier' &&
|
|
7857
7923
|
node.callee.name === '_defineProperty' &&
|
|
7858
7924
|
node.arguments.length === 3 &&
|
|
7859
|
-
node.arguments[0].type === 'ThisExpression';
|
|
7925
|
+
node.arguments[0].type === 'ThisExpression');
|
|
7860
7926
|
}
|
|
7861
7927
|
function tersifyParamsBody(context, params) {
|
|
7862
|
-
return params
|
|
7928
|
+
return params
|
|
7929
|
+
.reduce(function (p, v) {
|
|
7863
7930
|
p.push(tersifyAcornNode(context, v, Infinity));
|
|
7864
7931
|
return p;
|
|
7865
|
-
}, [])
|
|
7932
|
+
}, [])
|
|
7933
|
+
.join(', ');
|
|
7866
7934
|
}
|
|
7867
7935
|
function tersifyFunctionExpressionNode(context, node, length) {
|
|
7868
7936
|
var token = context.raw ? "function" : 'fn';
|
|
@@ -7884,9 +7952,7 @@ function tersifyFunctionExpressionNode(context, node, length) {
|
|
|
7884
7952
|
}
|
|
7885
7953
|
else {
|
|
7886
7954
|
var bodyContent = body.slice(2, body.length - 2);
|
|
7887
|
-
var result = "".concat(async).concat(token).concat(generator).concat(id).concat(minParam).concat(space).concat(bodyContent.length === 0 ?
|
|
7888
|
-
'{}' :
|
|
7889
|
-
"{ ".concat((0, trim_js_1.trim)(context, bodyContent, length - minPrebodyLen - 4), " }"));
|
|
7955
|
+
var result = "".concat(async).concat(token).concat(generator).concat(id).concat(minParam).concat(space).concat(bodyContent.length === 0 ? '{}' : "{ ".concat((0, trim_js_1.trim)(context, bodyContent, length - minPrebodyLen - 4), " }"));
|
|
7890
7956
|
return result.length > length ? (0, trim_js_1.trim)(context, result, length) : result;
|
|
7891
7957
|
}
|
|
7892
7958
|
}
|
|
@@ -7938,7 +8004,9 @@ function tersifyClassExpression(context, node, length) {
|
|
|
7938
8004
|
var classStr = (0, trim_js_1.trim)(context, "class".concat(node.id ? " ".concat(node.id.name) : ' ', "{}"), length);
|
|
7939
8005
|
var prefix = classStr.slice(0, Math.max(3, classStr.length - 2));
|
|
7940
8006
|
var body = tersifyAcornNode(context, node.body, length - prefix.length);
|
|
7941
|
-
return "".concat(prefix).concat(length >= prefix.length + body.length || body.length > 3
|
|
8007
|
+
return "".concat(prefix).concat(length >= prefix.length + body.length || body.length > 3
|
|
8008
|
+
? body
|
|
8009
|
+
: (0, trim_js_1.trim)(context, '...', length - prefix.length));
|
|
7942
8010
|
}
|
|
7943
8011
|
function tersifyMethodDefinition(context, node, length) {
|
|
7944
8012
|
var _a;
|
|
@@ -7962,9 +8030,7 @@ function tersifyMethodDefinition(context, node, length) {
|
|
|
7962
8030
|
}
|
|
7963
8031
|
else {
|
|
7964
8032
|
var bodyContent = body.slice(2, body.length - 2);
|
|
7965
|
-
var result = "".concat(staticStr).concat(async).concat(generator).concat(id).concat(minParam).concat(space).concat(bodyContent.length === 0 ?
|
|
7966
|
-
'{}' :
|
|
7967
|
-
"{ ".concat((0, trim_js_1.trim)(context, bodyContent, length - minPrebodyLen - 4), " }"));
|
|
8033
|
+
var result = "".concat(staticStr).concat(async).concat(generator).concat(id).concat(minParam).concat(space).concat(bodyContent.length === 0 ? '{}' : "{ ".concat((0, trim_js_1.trim)(context, bodyContent, length - minPrebodyLen - 4), " }"));
|
|
7968
8034
|
return result.length > length ? (0, trim_js_1.trim)(context, result, length) : result;
|
|
7969
8035
|
}
|
|
7970
8036
|
}
|
|
@@ -7986,20 +8052,22 @@ function tersifySequenceExpression(context, node, length) {
|
|
|
7986
8052
|
}
|
|
7987
8053
|
function tersifyTemplateLiteral(context, node, length) {
|
|
7988
8054
|
var elements = node.expressions.concat(node.quasis).sort(function (a, b) { return a.start - b.start; });
|
|
7989
|
-
return '`' +
|
|
7990
|
-
|
|
8055
|
+
return ('`' +
|
|
8056
|
+
elements.reduce(function (p, e) {
|
|
8057
|
+
if (length <= 0)
|
|
8058
|
+
return p;
|
|
8059
|
+
if (e.type === 'TemplateElement') {
|
|
8060
|
+
length -= e.value.raw.length;
|
|
8061
|
+
p += e.value.raw;
|
|
8062
|
+
}
|
|
8063
|
+
else {
|
|
8064
|
+
var result = tersifyAcornNode(context, e, length);
|
|
8065
|
+
length -= result.length;
|
|
8066
|
+
p += '${' + result + '}';
|
|
8067
|
+
}
|
|
7991
8068
|
return p;
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
p += e.value.raw;
|
|
7995
|
-
}
|
|
7996
|
-
else {
|
|
7997
|
-
var result = tersifyAcornNode(context, e, length);
|
|
7998
|
-
length -= result.length;
|
|
7999
|
-
p += '${' + result + '}';
|
|
8000
|
-
}
|
|
8001
|
-
return p;
|
|
8002
|
-
}, '') + '`';
|
|
8069
|
+
}, '') +
|
|
8070
|
+
'`');
|
|
8003
8071
|
}
|
|
8004
8072
|
function tersifyTaggedTemplateExpression(context, node, length) {
|
|
8005
8073
|
var name = node.tag.name;
|
|
@@ -8015,16 +8083,19 @@ function tersifyChainExpression(context, node, length) {
|
|
|
8015
8083
|
}
|
|
8016
8084
|
// istanbul ignore next
|
|
8017
8085
|
default:
|
|
8018
|
-
return tersifyUnknown(node);
|
|
8086
|
+
return tersifyUnknown(node, context.rawString);
|
|
8019
8087
|
}
|
|
8020
8088
|
}
|
|
8089
|
+
function tersifySuperNode(context, node, length) {
|
|
8090
|
+
return 'Super';
|
|
8091
|
+
}
|
|
8021
8092
|
//# sourceMappingURL=tersifyAcorn.js.map
|
|
8022
8093
|
|
|
8023
8094
|
/***/ }),
|
|
8024
8095
|
|
|
8025
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8096
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js":
|
|
8026
8097
|
/*!*******************************************************************************************!*\
|
|
8027
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8098
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js ***!
|
|
8028
8099
|
\*******************************************************************************************/
|
|
8029
8100
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8030
8101
|
|
|
@@ -8032,10 +8103,10 @@ function tersifyChainExpression(context, node, length) {
|
|
|
8032
8103
|
|
|
8033
8104
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8034
8105
|
exports.tersifyFunction = void 0;
|
|
8035
|
-
var hasTersifyFn_js_1 = __webpack_require__(/*! ./hasTersifyFn.js */ "../../node_modules/.pnpm/tersify@3.
|
|
8036
|
-
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.
|
|
8037
|
-
var index_js_1 = __webpack_require__(/*! ./tersifyAcorn/index.js */ "../../node_modules/.pnpm/tersify@3.
|
|
8038
|
-
var tersifyFunctionByString_js_1 = __webpack_require__(/*! ./tersifyFunctionByString.js */ "../../node_modules/.pnpm/tersify@3.
|
|
8106
|
+
var hasTersifyFn_js_1 = __webpack_require__(/*! ./hasTersifyFn.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js");
|
|
8107
|
+
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js");
|
|
8108
|
+
var index_js_1 = __webpack_require__(/*! ./tersifyAcorn/index.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/index.js");
|
|
8109
|
+
var tersifyFunctionByString_js_1 = __webpack_require__(/*! ./tersifyFunctionByString.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js");
|
|
8039
8110
|
function tersifyFunction(context, fn, _length) {
|
|
8040
8111
|
if (!context.raw && (0, hasTersifyFn_js_1.hasTersifyFn)(fn) && fn.tersify !== tersify_js_1.defaultTersify) {
|
|
8041
8112
|
return fn.tersify({ maxLength: context.maxLength, raw: context.raw });
|
|
@@ -8056,9 +8127,9 @@ exports.tersifyFunction = tersifyFunction;
|
|
|
8056
8127
|
|
|
8057
8128
|
/***/ }),
|
|
8058
8129
|
|
|
8059
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8130
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js":
|
|
8060
8131
|
/*!***************************************************************************************************!*\
|
|
8061
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8132
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js ***!
|
|
8062
8133
|
\***************************************************************************************************/
|
|
8063
8134
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8064
8135
|
|
|
@@ -8066,15 +8137,17 @@ exports.tersifyFunction = tersifyFunction;
|
|
|
8066
8137
|
|
|
8067
8138
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8068
8139
|
exports.parseFn = exports.tersifyFunctionByString = void 0;
|
|
8069
|
-
var trim_js_1 = __webpack_require__(/*! ./trim.js */ "../../node_modules/.pnpm/tersify@3.
|
|
8140
|
+
var trim_js_1 = __webpack_require__(/*! ./trim.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js");
|
|
8070
8141
|
function tersifyFunctionByString(fn, options) {
|
|
8071
8142
|
var str = fn.toString();
|
|
8072
8143
|
if (options.raw)
|
|
8073
8144
|
return str;
|
|
8074
8145
|
var struct = parseFn(str);
|
|
8075
8146
|
switch (struct.type) {
|
|
8076
|
-
case 'function':
|
|
8077
|
-
|
|
8147
|
+
case 'function':
|
|
8148
|
+
return formatFn2(struct, options.maxLength);
|
|
8149
|
+
case 'arrow':
|
|
8150
|
+
return formatArrow2(struct, options.maxLength);
|
|
8078
8151
|
case 'unknown':
|
|
8079
8152
|
default:
|
|
8080
8153
|
// istanbul ignore next
|
|
@@ -8155,16 +8228,22 @@ function parseFn(input) {
|
|
|
8155
8228
|
exports.parseFn = parseFn;
|
|
8156
8229
|
function formatFn2(struct, maxLength) {
|
|
8157
8230
|
var template = "".concat(struct.async ? 'async ' : '', "fn").concat(struct.generator ? '*' : '').concat(struct.name ? ' ' + struct.name : '', "(").concat(struct.params ? '%1' : '', ") {").concat(struct.body ? ' %2 ' : '', "}");
|
|
8158
|
-
var baseLength = struct.params && struct.body
|
|
8159
|
-
|
|
8231
|
+
var baseLength = struct.params && struct.body
|
|
8232
|
+
? template.length - 4
|
|
8233
|
+
: struct.params || struct.body
|
|
8234
|
+
? template.length - 2
|
|
8235
|
+
: template.length;
|
|
8160
8236
|
struct.params = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
|
|
8161
8237
|
struct.body = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
|
|
8162
8238
|
return (0, trim_js_1.trim)({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
|
|
8163
8239
|
}
|
|
8164
8240
|
function formatArrow2(struct, maxLength) {
|
|
8165
8241
|
var template = "".concat(struct.async ? 'async ' : '').concat(struct.singleParam ? '%1' : "(".concat(struct.params ? '%1' : '', ")"), " => ").concat(struct.singleLineBody ? '%2' : "{".concat(struct.body ? ' %2 ' : '', "}"));
|
|
8166
|
-
var baseLength = struct.params && struct.body
|
|
8167
|
-
|
|
8242
|
+
var baseLength = struct.params && struct.body
|
|
8243
|
+
? template.length - 4
|
|
8244
|
+
: struct.params || struct.body
|
|
8245
|
+
? template.length - 2
|
|
8246
|
+
: template.length;
|
|
8168
8247
|
struct.params = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
|
|
8169
8248
|
struct.body = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
|
|
8170
8249
|
return (0, trim_js_1.trim)({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
|
|
@@ -8179,14 +8258,18 @@ function isSingleLineBody(str) {
|
|
|
8179
8258
|
function getSingleLineBody(str, maxLength) {
|
|
8180
8259
|
var struct = parseFn(str);
|
|
8181
8260
|
switch (struct.type) {
|
|
8182
|
-
case 'function':
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8261
|
+
case 'function':
|
|
8262
|
+
return formatFn2(struct, maxLength);
|
|
8263
|
+
case 'arrow':
|
|
8264
|
+
return formatArrow2(struct, maxLength);
|
|
8265
|
+
default:
|
|
8266
|
+
return str
|
|
8267
|
+
.replace(/return;/g, '')
|
|
8268
|
+
.replace(/([\s([{])Symbol\(\)/g, '$1Sym()')
|
|
8269
|
+
.replace(/([\s([{])Symbol\.for\('([\w_]*)'\)/g, '$1Sym($2)')
|
|
8270
|
+
.replace(/([\s([{])Symbol\.for\("([\w_]*)"\)/g, '$1Sym($2)')
|
|
8271
|
+
.replace(/([\s([{])Symbol\.for\(`([\w_]*)`\)/g, '$1Sym($2)')
|
|
8272
|
+
.replace(/{\s+}/g, '{}');
|
|
8190
8273
|
}
|
|
8191
8274
|
}
|
|
8192
8275
|
function getEnclosedBody(str) {
|
|
@@ -8199,7 +8282,8 @@ function getEnclosedBody(str) {
|
|
|
8199
8282
|
count++;
|
|
8200
8283
|
if (count === 0) {
|
|
8201
8284
|
var body = removeLineBreaks(str.slice(0, i));
|
|
8202
|
-
str = body
|
|
8285
|
+
str = body
|
|
8286
|
+
.replace(/return;/g, '')
|
|
8203
8287
|
.replace(/([\s([{])Symbol\(\)/g, '$1Sym()')
|
|
8204
8288
|
.replace(/([\s([{])Symbol\.for\('([\w_]*)'\)/g, '$1Sym($2)')
|
|
8205
8289
|
.replace(/([\s([{])Symbol\.for\("([\w_]*)"\)/g, '$1Sym($2)')
|
|
@@ -8211,12 +8295,14 @@ function getEnclosedBody(str) {
|
|
|
8211
8295
|
return str;
|
|
8212
8296
|
}
|
|
8213
8297
|
function removeLineBreaks(value) {
|
|
8214
|
-
return value
|
|
8298
|
+
return value
|
|
8299
|
+
.split('\n')
|
|
8215
8300
|
.map(function (x) { return x.trim(); })
|
|
8216
8301
|
.filter(function (x) { return !!x; })
|
|
8217
|
-
.map(function (x, i, a) {
|
|
8218
|
-
&& /[^({}):;(do|else)]$/.test(x)
|
|
8219
|
-
|
|
8302
|
+
.map(function (x, i, a) {
|
|
8303
|
+
return i < a.length - 1 && /[^({}):;(do|else)]$/.test(x) && /[^)}]/.test(a[i + 1]) ? x + ';' : x;
|
|
8304
|
+
})
|
|
8305
|
+
.join(' ');
|
|
8220
8306
|
}
|
|
8221
8307
|
function applyTemplate(template, struct) {
|
|
8222
8308
|
if (struct.params) {
|
|
@@ -8231,9 +8317,9 @@ function applyTemplate(template, struct) {
|
|
|
8231
8317
|
|
|
8232
8318
|
/***/ }),
|
|
8233
8319
|
|
|
8234
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8320
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js":
|
|
8235
8321
|
/*!********************************************************************************!*\
|
|
8236
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8322
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js ***!
|
|
8237
8323
|
\********************************************************************************/
|
|
8238
8324
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8239
8325
|
|
|
@@ -8246,9 +8332,7 @@ function trim(_a, value, length) {
|
|
|
8246
8332
|
if (noTrim || raw || value.length <= length)
|
|
8247
8333
|
return value;
|
|
8248
8334
|
var trimmed = value.slice(0, Math.max(length, 0));
|
|
8249
|
-
var dots = trimmed.length === 0 ? '' :
|
|
8250
|
-
trimmed.length <= 3 ? '.' :
|
|
8251
|
-
trimmed.length === 4 ? '..' : '...';
|
|
8335
|
+
var dots = trimmed.length === 0 ? '' : trimmed.length <= 3 ? '.' : trimmed.length === 4 ? '..' : '...';
|
|
8252
8336
|
return trimmed.slice(0, trimmed.length - dots.length) + dots;
|
|
8253
8337
|
}
|
|
8254
8338
|
exports.trim = trim;
|
|
@@ -8256,9 +8340,9 @@ exports.trim = trim;
|
|
|
8256
8340
|
|
|
8257
8341
|
/***/ }),
|
|
8258
8342
|
|
|
8259
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8343
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js":
|
|
8260
8344
|
/*!*********************************************************************************!*\
|
|
8261
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8345
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js ***!
|
|
8262
8346
|
\*********************************************************************************/
|
|
8263
8347
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8264
8348
|
|
|
@@ -8269,9 +8353,48 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
8269
8353
|
|
|
8270
8354
|
/***/ }),
|
|
8271
8355
|
|
|
8272
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8356
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/array_plus.js":
|
|
8357
|
+
/*!***********************************************************************************************!*\
|
|
8358
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/array_plus.js ***!
|
|
8359
|
+
\***********************************************************************************************/
|
|
8360
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8361
|
+
|
|
8362
|
+
"use strict";
|
|
8363
|
+
|
|
8364
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8365
|
+
//# sourceMappingURL=array_plus.js.map
|
|
8366
|
+
|
|
8367
|
+
/***/ }),
|
|
8368
|
+
|
|
8369
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/common_prop_keys.js":
|
|
8370
|
+
/*!*****************************************************************************************************!*\
|
|
8371
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/common_prop_keys.js ***!
|
|
8372
|
+
\*****************************************************************************************************/
|
|
8373
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8374
|
+
|
|
8375
|
+
"use strict";
|
|
8376
|
+
|
|
8377
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8378
|
+
//# sourceMappingURL=common_prop_keys.js.map
|
|
8379
|
+
|
|
8380
|
+
/***/ }),
|
|
8381
|
+
|
|
8382
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/create_tuple.js":
|
|
8383
|
+
/*!*************************************************************************************************!*\
|
|
8384
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/create_tuple.js ***!
|
|
8385
|
+
\*************************************************************************************************/
|
|
8386
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8387
|
+
|
|
8388
|
+
"use strict";
|
|
8389
|
+
|
|
8390
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8391
|
+
//# sourceMappingURL=create_tuple.js.map
|
|
8392
|
+
|
|
8393
|
+
/***/ }),
|
|
8394
|
+
|
|
8395
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/drop.js":
|
|
8273
8396
|
/*!*****************************************************************************************!*\
|
|
8274
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8397
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/drop.js ***!
|
|
8275
8398
|
\*****************************************************************************************/
|
|
8276
8399
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8277
8400
|
|
|
@@ -8283,16 +8406,68 @@ exports.drop = void 0;
|
|
|
8283
8406
|
* drop a particular value from an array
|
|
8284
8407
|
*/
|
|
8285
8408
|
function drop(array, value) {
|
|
8286
|
-
return array.filter(
|
|
8409
|
+
return array.filter(v => v !== value);
|
|
8287
8410
|
}
|
|
8288
8411
|
exports.drop = drop;
|
|
8289
8412
|
//# sourceMappingURL=drop.js.map
|
|
8290
8413
|
|
|
8291
8414
|
/***/ }),
|
|
8292
8415
|
|
|
8293
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8416
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/filter.js":
|
|
8417
|
+
/*!*******************************************************************************************!*\
|
|
8418
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/filter.js ***!
|
|
8419
|
+
\*******************************************************************************************/
|
|
8420
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8421
|
+
|
|
8422
|
+
"use strict";
|
|
8423
|
+
|
|
8424
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8425
|
+
//# sourceMappingURL=filter.js.map
|
|
8426
|
+
|
|
8427
|
+
/***/ }),
|
|
8428
|
+
|
|
8429
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_first.js":
|
|
8430
|
+
/*!***********************************************************************************************!*\
|
|
8431
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_first.js ***!
|
|
8432
|
+
\***********************************************************************************************/
|
|
8433
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8434
|
+
|
|
8435
|
+
"use strict";
|
|
8436
|
+
|
|
8437
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8438
|
+
//# sourceMappingURL=find_first.js.map
|
|
8439
|
+
|
|
8440
|
+
/***/ }),
|
|
8441
|
+
|
|
8442
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_last.js":
|
|
8443
|
+
/*!**********************************************************************************************!*\
|
|
8444
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_last.js ***!
|
|
8445
|
+
\**********************************************************************************************/
|
|
8446
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8447
|
+
|
|
8448
|
+
"use strict";
|
|
8449
|
+
|
|
8450
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8451
|
+
//# sourceMappingURL=find_last.js.map
|
|
8452
|
+
|
|
8453
|
+
/***/ }),
|
|
8454
|
+
|
|
8455
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/head.js":
|
|
8456
|
+
/*!*****************************************************************************************!*\
|
|
8457
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/head.js ***!
|
|
8458
|
+
\*****************************************************************************************/
|
|
8459
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8460
|
+
|
|
8461
|
+
"use strict";
|
|
8462
|
+
|
|
8463
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8464
|
+
//# sourceMappingURL=head.js.map
|
|
8465
|
+
|
|
8466
|
+
/***/ }),
|
|
8467
|
+
|
|
8468
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/index.js":
|
|
8294
8469
|
/*!******************************************************************************************!*\
|
|
8295
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8470
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/index.js ***!
|
|
8296
8471
|
\******************************************************************************************/
|
|
8297
8472
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8298
8473
|
|
|
@@ -8313,39 +8488,88 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8313
8488
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8314
8489
|
};
|
|
8315
8490
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8316
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8317
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8318
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8491
|
+
__exportStar(__webpack_require__(/*! ./common_prop_keys.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/common_prop_keys.js"), exports);
|
|
8492
|
+
__exportStar(__webpack_require__(/*! ./create_tuple.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/create_tuple.js"), exports);
|
|
8493
|
+
__exportStar(__webpack_require__(/*! ./drop.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/drop.js"), exports);
|
|
8494
|
+
__exportStar(__webpack_require__(/*! ./filter.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/filter.js"), exports);
|
|
8495
|
+
__exportStar(__webpack_require__(/*! ./find_first.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_first.js"), exports);
|
|
8496
|
+
__exportStar(__webpack_require__(/*! ./find_last.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_last.js"), exports);
|
|
8497
|
+
__exportStar(__webpack_require__(/*! ./head.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/head.js"), exports);
|
|
8498
|
+
__exportStar(__webpack_require__(/*! ./intersect_of_props.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/intersect_of_props.js"), exports);
|
|
8499
|
+
__exportStar(__webpack_require__(/*! ./last.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/last.js"), exports);
|
|
8500
|
+
__exportStar(__webpack_require__(/*! ./literal_array.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/literal_array.js"), exports);
|
|
8501
|
+
__exportStar(__webpack_require__(/*! ./pad_left.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/pad_left.js"), exports);
|
|
8502
|
+
__exportStar(__webpack_require__(/*! ./reduce_while.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reduce_while.js"), exports);
|
|
8503
|
+
__exportStar(__webpack_require__(/*! ./reverse.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reverse.js"), exports);
|
|
8504
|
+
__exportStar(__webpack_require__(/*! ./some.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/some.js"), exports);
|
|
8505
|
+
__exportStar(__webpack_require__(/*! ./tail.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/tail.js"), exports);
|
|
8506
|
+
__exportStar(__webpack_require__(/*! ./union_of_props.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_props.js"), exports);
|
|
8507
|
+
__exportStar(__webpack_require__(/*! ./union_of_values.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_values.js"), exports);
|
|
8319
8508
|
//# sourceMappingURL=index.js.map
|
|
8320
8509
|
|
|
8321
8510
|
/***/ }),
|
|
8322
8511
|
|
|
8323
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8324
|
-
|
|
8325
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8326
|
-
|
|
8512
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/intersect_of_props.js":
|
|
8513
|
+
/*!*******************************************************************************************************!*\
|
|
8514
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/intersect_of_props.js ***!
|
|
8515
|
+
\*******************************************************************************************************/
|
|
8516
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8517
|
+
|
|
8518
|
+
"use strict";
|
|
8519
|
+
|
|
8520
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8521
|
+
//# sourceMappingURL=intersect_of_props.js.map
|
|
8522
|
+
|
|
8523
|
+
/***/ }),
|
|
8524
|
+
|
|
8525
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/last.js":
|
|
8526
|
+
/*!*****************************************************************************************!*\
|
|
8527
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/last.js ***!
|
|
8528
|
+
\*****************************************************************************************/
|
|
8529
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8530
|
+
|
|
8531
|
+
"use strict";
|
|
8532
|
+
|
|
8533
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8534
|
+
//# sourceMappingURL=last.js.map
|
|
8535
|
+
|
|
8536
|
+
/***/ }),
|
|
8537
|
+
|
|
8538
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/literal_array.js":
|
|
8539
|
+
/*!**************************************************************************************************!*\
|
|
8540
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/literal_array.js ***!
|
|
8541
|
+
\**************************************************************************************************/
|
|
8327
8542
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8328
8543
|
|
|
8329
8544
|
"use strict";
|
|
8330
8545
|
|
|
8331
8546
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8332
8547
|
exports.literalArray = void 0;
|
|
8333
|
-
function literalArray() {
|
|
8334
|
-
var entries = [];
|
|
8335
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8336
|
-
entries[_i] = arguments[_i];
|
|
8337
|
-
}
|
|
8548
|
+
function literalArray(...entries) {
|
|
8338
8549
|
return entries;
|
|
8339
8550
|
}
|
|
8340
8551
|
exports.literalArray = literalArray;
|
|
8341
|
-
//# sourceMappingURL=
|
|
8552
|
+
//# sourceMappingURL=literal_array.js.map
|
|
8342
8553
|
|
|
8343
8554
|
/***/ }),
|
|
8344
8555
|
|
|
8345
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8346
|
-
|
|
8347
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8348
|
-
|
|
8556
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/pad_left.js":
|
|
8557
|
+
/*!*********************************************************************************************!*\
|
|
8558
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/pad_left.js ***!
|
|
8559
|
+
\*********************************************************************************************/
|
|
8560
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8561
|
+
|
|
8562
|
+
"use strict";
|
|
8563
|
+
|
|
8564
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8565
|
+
//# sourceMappingURL=pad_left.js.map
|
|
8566
|
+
|
|
8567
|
+
/***/ }),
|
|
8568
|
+
|
|
8569
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reduce_while.js":
|
|
8570
|
+
/*!*************************************************************************************************!*\
|
|
8571
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reduce_while.js ***!
|
|
8572
|
+
\*************************************************************************************************/
|
|
8349
8573
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8350
8574
|
|
|
8351
8575
|
"use strict";
|
|
@@ -8353,9 +8577,9 @@ exports.literalArray = literalArray;
|
|
|
8353
8577
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8354
8578
|
exports.reduceWhile = void 0;
|
|
8355
8579
|
function reduceWhile(predicate, callbackfn, initialValue, array) {
|
|
8356
|
-
|
|
8357
|
-
for (
|
|
8358
|
-
|
|
8580
|
+
let acc = initialValue;
|
|
8581
|
+
for (let i = 0; i < array.length; i++) {
|
|
8582
|
+
const value = array[i];
|
|
8359
8583
|
if (!predicate(acc, value))
|
|
8360
8584
|
return acc;
|
|
8361
8585
|
acc = callbackfn(acc, value, i, array);
|
|
@@ -8363,110 +8587,174 @@ function reduceWhile(predicate, callbackfn, initialValue, array) {
|
|
|
8363
8587
|
return acc;
|
|
8364
8588
|
}
|
|
8365
8589
|
exports.reduceWhile = reduceWhile;
|
|
8366
|
-
//# sourceMappingURL=
|
|
8590
|
+
//# sourceMappingURL=reduce_while.js.map
|
|
8591
|
+
|
|
8592
|
+
/***/ }),
|
|
8593
|
+
|
|
8594
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reverse.js":
|
|
8595
|
+
/*!********************************************************************************************!*\
|
|
8596
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reverse.js ***!
|
|
8597
|
+
\********************************************************************************************/
|
|
8598
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8599
|
+
|
|
8600
|
+
"use strict";
|
|
8601
|
+
|
|
8602
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8603
|
+
//# sourceMappingURL=reverse.js.map
|
|
8604
|
+
|
|
8605
|
+
/***/ }),
|
|
8606
|
+
|
|
8607
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/some.js":
|
|
8608
|
+
/*!*****************************************************************************************!*\
|
|
8609
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/some.js ***!
|
|
8610
|
+
\*****************************************************************************************/
|
|
8611
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8612
|
+
|
|
8613
|
+
"use strict";
|
|
8614
|
+
|
|
8615
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8616
|
+
//# sourceMappingURL=some.js.map
|
|
8367
8617
|
|
|
8368
8618
|
/***/ }),
|
|
8369
8619
|
|
|
8370
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8620
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/tail.js":
|
|
8621
|
+
/*!*****************************************************************************************!*\
|
|
8622
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/tail.js ***!
|
|
8623
|
+
\*****************************************************************************************/
|
|
8624
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8625
|
+
|
|
8626
|
+
"use strict";
|
|
8627
|
+
|
|
8628
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8629
|
+
//# sourceMappingURL=tail.js.map
|
|
8630
|
+
|
|
8631
|
+
/***/ }),
|
|
8632
|
+
|
|
8633
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_props.js":
|
|
8371
8634
|
/*!***************************************************************************************************!*\
|
|
8372
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8635
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_props.js ***!
|
|
8373
8636
|
\***************************************************************************************************/
|
|
8637
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8638
|
+
|
|
8639
|
+
"use strict";
|
|
8640
|
+
|
|
8641
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8642
|
+
//# sourceMappingURL=union_of_props.js.map
|
|
8643
|
+
|
|
8644
|
+
/***/ }),
|
|
8645
|
+
|
|
8646
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_values.js":
|
|
8647
|
+
/*!****************************************************************************************************!*\
|
|
8648
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_values.js ***!
|
|
8649
|
+
\****************************************************************************************************/
|
|
8650
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8651
|
+
|
|
8652
|
+
"use strict";
|
|
8653
|
+
|
|
8654
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8655
|
+
//# sourceMappingURL=union_of_values.js.map
|
|
8656
|
+
|
|
8657
|
+
/***/ }),
|
|
8658
|
+
|
|
8659
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/assertion/assert_type.js":
|
|
8660
|
+
/*!****************************************************************************************************!*\
|
|
8661
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/assertion/assert_type.js ***!
|
|
8662
|
+
\****************************************************************************************************/
|
|
8374
8663
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8375
8664
|
|
|
8376
8665
|
"use strict";
|
|
8377
8666
|
|
|
8378
8667
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8379
8668
|
exports.assertType = void 0;
|
|
8380
|
-
|
|
8381
|
-
|
|
8669
|
+
const tersify_1 = __webpack_require__(/*! tersify */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/index.js");
|
|
8670
|
+
const index_js_1 = __webpack_require__(/*! ../class/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/index.js");
|
|
8382
8671
|
function assertType(subject, validator) {
|
|
8383
8672
|
if (validator) {
|
|
8384
8673
|
if (((0, index_js_1.isConstructor)(validator) && !(subject instanceof validator)) || !validator(subject))
|
|
8385
|
-
throw new TypeError(
|
|
8674
|
+
throw new TypeError(`subject fails to satisfy ${(0, tersify_1.tersify)(validator)}`);
|
|
8386
8675
|
}
|
|
8387
8676
|
return;
|
|
8388
8677
|
}
|
|
8389
8678
|
exports.assertType = assertType;
|
|
8390
8679
|
assertType.isUndefined = function (subject) {
|
|
8391
8680
|
if (typeof subject !== 'undefined')
|
|
8392
|
-
throw TypeError(
|
|
8681
|
+
throw TypeError(`subject is not undefined`);
|
|
8393
8682
|
};
|
|
8394
8683
|
assertType.noUndefined = function (subject) {
|
|
8395
8684
|
if (typeof subject === 'undefined')
|
|
8396
|
-
throw TypeError(
|
|
8685
|
+
throw TypeError(`subject is undefined`);
|
|
8397
8686
|
};
|
|
8398
8687
|
assertType.isNull = function (subject) {
|
|
8399
8688
|
if (subject !== null)
|
|
8400
|
-
throw TypeError(
|
|
8689
|
+
throw TypeError(`subject is not null`);
|
|
8401
8690
|
};
|
|
8402
8691
|
assertType.noNull = function (subject) {
|
|
8403
8692
|
if (subject === null)
|
|
8404
|
-
throw TypeError(
|
|
8693
|
+
throw TypeError(`subject is null`);
|
|
8405
8694
|
};
|
|
8406
8695
|
assertType.isNumber = function (subject) {
|
|
8407
8696
|
if (typeof subject !== 'number')
|
|
8408
|
-
throw TypeError(
|
|
8697
|
+
throw TypeError(`subject is not number`);
|
|
8409
8698
|
};
|
|
8410
8699
|
assertType.noNumber = function (subject) {
|
|
8411
8700
|
if (typeof subject === 'number')
|
|
8412
|
-
throw TypeError(
|
|
8701
|
+
throw TypeError(`subject is number`);
|
|
8413
8702
|
};
|
|
8414
8703
|
assertType.isBoolean = function (subject) {
|
|
8415
8704
|
if (typeof subject !== 'boolean')
|
|
8416
|
-
throw TypeError(
|
|
8705
|
+
throw TypeError(`subject is not boolean`);
|
|
8417
8706
|
};
|
|
8418
8707
|
assertType.noBoolean = function (subject) {
|
|
8419
8708
|
if (typeof subject === 'boolean')
|
|
8420
|
-
throw TypeError(
|
|
8709
|
+
throw TypeError(`subject is boolean`);
|
|
8421
8710
|
};
|
|
8422
8711
|
assertType.isTrue = function (subject) {
|
|
8423
8712
|
if (subject !== true)
|
|
8424
|
-
throw TypeError(
|
|
8713
|
+
throw TypeError(`subject is not true`);
|
|
8425
8714
|
};
|
|
8426
8715
|
assertType.noTrue = function (subject) {
|
|
8427
8716
|
// @ts-ignore
|
|
8428
8717
|
if (subject === true)
|
|
8429
|
-
throw TypeError(
|
|
8718
|
+
throw TypeError(`subject is true`);
|
|
8430
8719
|
};
|
|
8431
8720
|
assertType.isFalse = function (subject) {
|
|
8432
8721
|
if (subject !== false)
|
|
8433
|
-
throw TypeError(
|
|
8722
|
+
throw TypeError(`subject is not false`);
|
|
8434
8723
|
};
|
|
8435
8724
|
assertType.noFalse = function (subject) {
|
|
8436
8725
|
// @ts-ignore
|
|
8437
8726
|
if (subject === false)
|
|
8438
|
-
throw TypeError(
|
|
8727
|
+
throw TypeError(`subject is false`);
|
|
8439
8728
|
};
|
|
8440
8729
|
assertType.isString = function (subject) {
|
|
8441
8730
|
if (typeof subject !== 'string')
|
|
8442
|
-
throw TypeError(
|
|
8731
|
+
throw TypeError(`subject is not string`);
|
|
8443
8732
|
};
|
|
8444
8733
|
assertType.noString = function (subject) {
|
|
8445
8734
|
if (typeof subject === 'string')
|
|
8446
|
-
throw TypeError(
|
|
8735
|
+
throw TypeError(`subject is string`);
|
|
8447
8736
|
};
|
|
8448
8737
|
assertType.isFunction = function (subject) {
|
|
8449
8738
|
if (typeof subject !== 'function')
|
|
8450
|
-
throw TypeError(
|
|
8739
|
+
throw TypeError(`subject is not function`);
|
|
8451
8740
|
};
|
|
8452
8741
|
assertType.noFunction = function (subject) {
|
|
8453
8742
|
if (typeof subject === 'function')
|
|
8454
|
-
throw TypeError(
|
|
8743
|
+
throw TypeError(`subject is function`);
|
|
8455
8744
|
};
|
|
8456
8745
|
assertType.isConstructor = function (subject) {
|
|
8457
8746
|
if (!(0, index_js_1.isConstructor)(subject))
|
|
8458
|
-
throw TypeError(
|
|
8747
|
+
throw TypeError(`subject is not a constructor`);
|
|
8459
8748
|
};
|
|
8460
8749
|
assertType.isError = function (subject) {
|
|
8461
8750
|
if (!(subject instanceof Error))
|
|
8462
|
-
throw TypeError(
|
|
8751
|
+
throw TypeError(`subject is not an Error`);
|
|
8463
8752
|
};
|
|
8464
8753
|
assertType.noError = function (subject) {
|
|
8465
8754
|
if (subject instanceof Error)
|
|
8466
|
-
throw TypeError(
|
|
8467
|
-
};
|
|
8468
|
-
assertType.isNever = function (subject) {
|
|
8755
|
+
throw TypeError(`subject is an Error`);
|
|
8469
8756
|
};
|
|
8757
|
+
assertType.isNever = function (subject) { };
|
|
8470
8758
|
/**
|
|
8471
8759
|
* creates a custom assertion function with standard TypeError.
|
|
8472
8760
|
* Currently this requires explicity type annotation,
|
|
@@ -8476,46 +8764,18 @@ assertType.isNever = function (subject) {
|
|
|
8476
8764
|
assertType.custom = function (validator) {
|
|
8477
8765
|
return function (subject) {
|
|
8478
8766
|
if (!validator(subject))
|
|
8479
|
-
throw new TypeError(
|
|
8767
|
+
throw new TypeError(`subject fails to satisfy ${(0, tersify_1.tersify)(validator)}`);
|
|
8480
8768
|
return;
|
|
8481
8769
|
};
|
|
8482
8770
|
};
|
|
8483
8771
|
assertType.as = function (subject) { };
|
|
8484
|
-
//# sourceMappingURL=
|
|
8485
|
-
|
|
8486
|
-
/***/ }),
|
|
8487
|
-
|
|
8488
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0.0/node_modules/type-plus/cjs/assertion/index.js":
|
|
8489
|
-
/*!**********************************************************************************************!*\
|
|
8490
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0.0/node_modules/type-plus/cjs/assertion/index.js ***!
|
|
8491
|
-
\**********************************************************************************************/
|
|
8492
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8493
|
-
|
|
8494
|
-
"use strict";
|
|
8495
|
-
|
|
8496
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8497
|
-
if (k2 === undefined) k2 = k;
|
|
8498
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8499
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8500
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8501
|
-
}
|
|
8502
|
-
Object.defineProperty(o, k2, desc);
|
|
8503
|
-
}) : (function(o, m, k, k2) {
|
|
8504
|
-
if (k2 === undefined) k2 = k;
|
|
8505
|
-
o[k2] = m[k];
|
|
8506
|
-
}));
|
|
8507
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
8508
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8509
|
-
};
|
|
8510
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8511
|
-
__exportStar(__webpack_require__(/*! ./assertType.js */ "../../node_modules/.pnpm/type-plus@5.0.0/node_modules/type-plus/cjs/assertion/assertType.js"), exports);
|
|
8512
|
-
//# sourceMappingURL=index.js.map
|
|
8772
|
+
//# sourceMappingURL=assert_type.js.map
|
|
8513
8773
|
|
|
8514
8774
|
/***/ }),
|
|
8515
8775
|
|
|
8516
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8776
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/index.js":
|
|
8517
8777
|
/*!******************************************************************************************!*\
|
|
8518
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8778
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/index.js ***!
|
|
8519
8779
|
\******************************************************************************************/
|
|
8520
8780
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8521
8781
|
|
|
@@ -8536,14 +8796,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8536
8796
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8537
8797
|
};
|
|
8538
8798
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8539
|
-
__exportStar(__webpack_require__(/*! ./isConstructor.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
8799
|
+
__exportStar(__webpack_require__(/*! ./isConstructor.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/isConstructor.js"), exports);
|
|
8540
8800
|
//# sourceMappingURL=index.js.map
|
|
8541
8801
|
|
|
8542
8802
|
/***/ }),
|
|
8543
8803
|
|
|
8544
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8804
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/isConstructor.js":
|
|
8545
8805
|
/*!**************************************************************************************************!*\
|
|
8546
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8806
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/isConstructor.js ***!
|
|
8547
8807
|
\**************************************************************************************************/
|
|
8548
8808
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8549
8809
|
|
|
@@ -8567,7 +8827,7 @@ function isConstructor(subject) {
|
|
|
8567
8827
|
new subject();
|
|
8568
8828
|
}
|
|
8569
8829
|
catch (err) {
|
|
8570
|
-
|
|
8830
|
+
const msg = err?.message;
|
|
8571
8831
|
if (msg && msg.indexOf('is not a constructor') >= 0) {
|
|
8572
8832
|
return false;
|
|
8573
8833
|
}
|
|
@@ -8586,87 +8846,100 @@ exports.isInstanceof = isInstanceof;
|
|
|
8586
8846
|
|
|
8587
8847
|
/***/ }),
|
|
8588
8848
|
|
|
8589
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8590
|
-
|
|
8591
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8592
|
-
|
|
8849
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/function/extract_function.js":
|
|
8850
|
+
/*!********************************************************************************************************!*\
|
|
8851
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/function/extract_function.js ***!
|
|
8852
|
+
\********************************************************************************************************/
|
|
8593
8853
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8594
8854
|
|
|
8595
8855
|
"use strict";
|
|
8596
8856
|
|
|
8597
8857
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8598
8858
|
exports.extractFunction = void 0;
|
|
8859
|
+
/**
|
|
8860
|
+
* Extract the function signature from a composite function.
|
|
8861
|
+
*
|
|
8862
|
+
* @note does not work with function overloads.
|
|
8863
|
+
*/
|
|
8599
8864
|
function extractFunction(fn) {
|
|
8600
8865
|
return fn;
|
|
8601
8866
|
}
|
|
8602
8867
|
exports.extractFunction = extractFunction;
|
|
8603
|
-
//# sourceMappingURL=
|
|
8868
|
+
//# sourceMappingURL=extract_function.js.map
|
|
8604
8869
|
|
|
8605
8870
|
/***/ }),
|
|
8606
8871
|
|
|
8607
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8608
|
-
|
|
8609
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8610
|
-
|
|
8611
|
-
/***/ (function(__unused_webpack_module, exports
|
|
8872
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/compose.js":
|
|
8873
|
+
/*!*************************************************************************************************!*\
|
|
8874
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/compose.js ***!
|
|
8875
|
+
\*************************************************************************************************/
|
|
8876
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8612
8877
|
|
|
8613
8878
|
"use strict";
|
|
8614
8879
|
|
|
8615
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8616
|
-
if (k2 === undefined) k2 = k;
|
|
8617
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8618
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8619
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8620
|
-
}
|
|
8621
|
-
Object.defineProperty(o, k2, desc);
|
|
8622
|
-
}) : (function(o, m, k, k2) {
|
|
8623
|
-
if (k2 === undefined) k2 = k;
|
|
8624
|
-
o[k2] = m[k];
|
|
8625
|
-
}));
|
|
8626
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
8627
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8628
|
-
};
|
|
8629
8880
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8630
|
-
|
|
8631
|
-
|
|
8881
|
+
exports.compose = void 0;
|
|
8882
|
+
/**
|
|
8883
|
+
* Compose functions to produce a new function.
|
|
8884
|
+
* @params args functions to be composed.
|
|
8885
|
+
* Each function will receive the return value of the previous function as its parameters.
|
|
8886
|
+
* @return The composed function will expect the parameters of the first function,
|
|
8887
|
+
* and return the result of the last function.
|
|
8888
|
+
*/
|
|
8889
|
+
function compose(...fns) {
|
|
8890
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
8891
|
+
return (...args) => fns.reduce((args, fn) => [fn(...args)], args)[0];
|
|
8892
|
+
}
|
|
8893
|
+
exports.compose = compose;
|
|
8894
|
+
//# sourceMappingURL=compose.js.map
|
|
8632
8895
|
|
|
8633
8896
|
/***/ }),
|
|
8634
8897
|
|
|
8635
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8898
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/context.js":
|
|
8636
8899
|
/*!*************************************************************************************************!*\
|
|
8637
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8900
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/context.js ***!
|
|
8638
8901
|
\*************************************************************************************************/
|
|
8639
8902
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8640
8903
|
|
|
8641
8904
|
"use strict";
|
|
8642
8905
|
|
|
8643
8906
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8644
|
-
exports.
|
|
8907
|
+
exports.context = void 0;
|
|
8645
8908
|
/**
|
|
8646
|
-
*
|
|
8909
|
+
* Creates a context builder.
|
|
8910
|
+
*
|
|
8911
|
+
* @param init The initial context or an context initializer.
|
|
8912
|
+
* @return the context builder where you can
|
|
8913
|
+
* use `extend()` to add context, and
|
|
8914
|
+
* use `build()` to build the context.
|
|
8647
8915
|
*/
|
|
8648
|
-
function
|
|
8649
|
-
var fns = [];
|
|
8650
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8651
|
-
fns[_i] = arguments[_i];
|
|
8652
|
-
}
|
|
8916
|
+
function context(init) {
|
|
8653
8917
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
8654
|
-
return function () {
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8918
|
+
return typeof init === 'function' ? contextBuilder({}, [[init]]) : contextBuilder(init ?? {}, []);
|
|
8919
|
+
}
|
|
8920
|
+
exports.context = context;
|
|
8921
|
+
/* eslint-disable */
|
|
8922
|
+
function contextBuilder(init, extenders) {
|
|
8923
|
+
return {
|
|
8924
|
+
extend(extender) {
|
|
8925
|
+
return contextBuilder(init, extenders.concat([[extender]]));
|
|
8926
|
+
},
|
|
8927
|
+
build() {
|
|
8928
|
+
return extenders.reduce((p, [t], i) => {
|
|
8929
|
+
const v = typeof t === 'function' ? (extenders[i][0] = t(p)) : t;
|
|
8930
|
+
return { ...p, ...v };
|
|
8931
|
+
}, init);
|
|
8658
8932
|
}
|
|
8659
|
-
return fns.reduce(function (args, fn) { return [fn.apply(void 0, args)]; }, args)[0];
|
|
8660
8933
|
};
|
|
8661
8934
|
}
|
|
8662
|
-
|
|
8663
|
-
//# sourceMappingURL=
|
|
8935
|
+
/* eslint-enable */
|
|
8936
|
+
//# sourceMappingURL=context.js.map
|
|
8664
8937
|
|
|
8665
8938
|
/***/ }),
|
|
8666
8939
|
|
|
8667
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8940
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/index.js":
|
|
8668
8941
|
/*!***********************************************************************************************!*\
|
|
8669
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8942
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/index.js ***!
|
|
8670
8943
|
\***********************************************************************************************/
|
|
8671
8944
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8672
8945
|
|
|
@@ -8687,14 +8960,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8687
8960
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8688
8961
|
};
|
|
8689
8962
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8690
|
-
__exportStar(__webpack_require__(/*! ./compose.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
8963
|
+
__exportStar(__webpack_require__(/*! ./compose.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/compose.js"), exports);
|
|
8964
|
+
__exportStar(__webpack_require__(/*! ./context.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/context.js"), exports);
|
|
8691
8965
|
//# sourceMappingURL=index.js.map
|
|
8692
8966
|
|
|
8693
8967
|
/***/ }),
|
|
8694
8968
|
|
|
8695
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8969
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js":
|
|
8696
8970
|
/*!************************************************************************************!*\
|
|
8697
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8971
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js ***!
|
|
8698
8972
|
\************************************************************************************/
|
|
8699
8973
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8700
8974
|
|
|
@@ -8711,36 +8985,49 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
8711
8985
|
if (k2 === undefined) k2 = k;
|
|
8712
8986
|
o[k2] = m[k];
|
|
8713
8987
|
}));
|
|
8988
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
8989
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
8990
|
+
}) : function(o, v) {
|
|
8991
|
+
o["default"] = v;
|
|
8992
|
+
});
|
|
8993
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
8994
|
+
if (mod && mod.__esModule) return mod;
|
|
8995
|
+
var result = {};
|
|
8996
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
8997
|
+
__setModuleDefault(result, mod);
|
|
8998
|
+
return result;
|
|
8999
|
+
};
|
|
8714
9000
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
8715
9001
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8716
9002
|
};
|
|
8717
9003
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8718
|
-
exports.unpartial = exports.requiredDeep = exports.required = void 0;
|
|
8719
|
-
// import * as types from './types/index.js'
|
|
9004
|
+
exports.NumberPlus = exports.ArrayPlus = exports.unpartial = exports.requiredDeep = exports.required = void 0;
|
|
8720
9005
|
var unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js");
|
|
8721
9006
|
Object.defineProperty(exports, "required", ({ enumerable: true, get: function () { return unpartial_1.required; } }));
|
|
8722
9007
|
Object.defineProperty(exports, "requiredDeep", ({ enumerable: true, get: function () { return unpartial_1.requiredDeep; } }));
|
|
8723
9008
|
Object.defineProperty(exports, "unpartial", ({ enumerable: true, get: function () { return unpartial_1.unpartial; } }));
|
|
8724
|
-
|
|
8725
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8726
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8727
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8728
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8729
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8730
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8731
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8732
|
-
|
|
8733
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8734
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8735
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8736
|
-
|
|
9009
|
+
exports.ArrayPlus = __importStar(__webpack_require__(/*! ./array/array_plus.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/array_plus.js"));
|
|
9010
|
+
__exportStar(__webpack_require__(/*! ./array/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/index.js"), exports);
|
|
9011
|
+
__exportStar(__webpack_require__(/*! ./assertion/assert_type.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/assertion/assert_type.js"), exports);
|
|
9012
|
+
__exportStar(__webpack_require__(/*! ./class/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/index.js"), exports);
|
|
9013
|
+
__exportStar(__webpack_require__(/*! ./function/extract_function.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/function/extract_function.js"), exports);
|
|
9014
|
+
__exportStar(__webpack_require__(/*! ./functional/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/index.js"), exports);
|
|
9015
|
+
__exportStar(__webpack_require__(/*! ./nodejs/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/index.js"), exports);
|
|
9016
|
+
__exportStar(__webpack_require__(/*! ./nominal/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/index.js"), exports);
|
|
9017
|
+
exports.NumberPlus = __importStar(__webpack_require__(/*! ./number/number_plus.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/number/number_plus.js"));
|
|
9018
|
+
__exportStar(__webpack_require__(/*! ./object/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/index.js"), exports);
|
|
9019
|
+
__exportStar(__webpack_require__(/*! ./predicates/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/index.js"), exports);
|
|
9020
|
+
__exportStar(__webpack_require__(/*! ./promise/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/index.js"), exports);
|
|
9021
|
+
__exportStar(__webpack_require__(/*! ./testing/stub.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/stub.js"), exports);
|
|
9022
|
+
__exportStar(__webpack_require__(/*! ./testing/test_type.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/test_type.js"), exports);
|
|
9023
|
+
__exportStar(__webpack_require__(/*! ./utils/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/index.js"), exports);
|
|
8737
9024
|
//# sourceMappingURL=index.js.map
|
|
8738
9025
|
|
|
8739
9026
|
/***/ }),
|
|
8740
9027
|
|
|
8741
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9028
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/index.js":
|
|
8742
9029
|
/*!*******************************************************************************************!*\
|
|
8743
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9030
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/index.js ***!
|
|
8744
9031
|
\*******************************************************************************************/
|
|
8745
9032
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8746
9033
|
|
|
@@ -8761,14 +9048,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8761
9048
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8762
9049
|
};
|
|
8763
9050
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8764
|
-
__exportStar(__webpack_require__(/*! ./isNodeError.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9051
|
+
__exportStar(__webpack_require__(/*! ./isNodeError.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/isNodeError.js"), exports);
|
|
8765
9052
|
//# sourceMappingURL=index.js.map
|
|
8766
9053
|
|
|
8767
9054
|
/***/ }),
|
|
8768
9055
|
|
|
8769
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9056
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/isNodeError.js":
|
|
8770
9057
|
/*!*************************************************************************************************!*\
|
|
8771
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9058
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/isNodeError.js ***!
|
|
8772
9059
|
\*************************************************************************************************/
|
|
8773
9060
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8774
9061
|
|
|
@@ -8789,10 +9076,10 @@ exports.isSystemError = isSystemError;
|
|
|
8789
9076
|
|
|
8790
9077
|
/***/ }),
|
|
8791
9078
|
|
|
8792
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8793
|
-
|
|
8794
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8795
|
-
|
|
9079
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/brand.js":
|
|
9080
|
+
/*!********************************************************************************************!*\
|
|
9081
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/brand.js ***!
|
|
9082
|
+
\********************************************************************************************/
|
|
8796
9083
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8797
9084
|
|
|
8798
9085
|
"use strict";
|
|
@@ -8801,25 +9088,44 @@ exports.isSystemError = isSystemError;
|
|
|
8801
9088
|
// <https://gist.github.com/dcolthorp/aa21cf87d847ae9942106435bf47565d>
|
|
8802
9089
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8803
9090
|
exports.brand = void 0;
|
|
8804
|
-
|
|
8805
|
-
|
|
9091
|
+
const isType_js_1 = __webpack_require__(/*! ../predicates/isType.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/isType.js");
|
|
9092
|
+
const constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/constants.js");
|
|
9093
|
+
function brand(typeInput, subject) {
|
|
8806
9094
|
if (subject === undefined)
|
|
8807
|
-
return function (subject) {
|
|
8808
|
-
|
|
9095
|
+
return function (subject) {
|
|
9096
|
+
return brand(typeInput, subject);
|
|
9097
|
+
};
|
|
9098
|
+
if ((0, isType_js_1.isType)(subject, s => typeof s === 'object' && s !== null)) {
|
|
8809
9099
|
// if subject is not an object, the branding will exist only in type-level.
|
|
8810
|
-
subject[
|
|
9100
|
+
subject[constants_js_1.typeSym] = typeInput;
|
|
8811
9101
|
}
|
|
8812
9102
|
return subject;
|
|
8813
9103
|
}
|
|
8814
9104
|
exports.brand = brand;
|
|
8815
|
-
//# sourceMappingURL=
|
|
9105
|
+
//# sourceMappingURL=brand.js.map
|
|
8816
9106
|
|
|
8817
9107
|
/***/ }),
|
|
8818
9108
|
|
|
8819
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8820
|
-
|
|
8821
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8822
|
-
|
|
9109
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/constants.js":
|
|
9110
|
+
/*!************************************************************************************************!*\
|
|
9111
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/constants.js ***!
|
|
9112
|
+
\************************************************************************************************/
|
|
9113
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
9114
|
+
|
|
9115
|
+
"use strict";
|
|
9116
|
+
|
|
9117
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9118
|
+
exports.valueSym = exports.typeSym = void 0;
|
|
9119
|
+
exports.typeSym = Symbol('type');
|
|
9120
|
+
exports.valueSym = Symbol('value');
|
|
9121
|
+
//# sourceMappingURL=constants.js.map
|
|
9122
|
+
|
|
9123
|
+
/***/ }),
|
|
9124
|
+
|
|
9125
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/flavor.js":
|
|
9126
|
+
/*!*********************************************************************************************!*\
|
|
9127
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/flavor.js ***!
|
|
9128
|
+
\*********************************************************************************************/
|
|
8823
9129
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8824
9130
|
|
|
8825
9131
|
"use strict";
|
|
@@ -8828,25 +9134,28 @@ exports.brand = brand;
|
|
|
8828
9134
|
// <https://gist.github.com/dcolthorp/aa21cf87d847ae9942106435bf47565d>
|
|
8829
9135
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8830
9136
|
exports.flavor = void 0;
|
|
8831
|
-
|
|
9137
|
+
const isType_js_1 = __webpack_require__(/*! ../predicates/isType.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/isType.js");
|
|
9138
|
+
const constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/constants.js");
|
|
8832
9139
|
function flavor(type, subject) {
|
|
8833
9140
|
if (subject === undefined)
|
|
8834
|
-
return function (subject) {
|
|
8835
|
-
|
|
9141
|
+
return function (subject) {
|
|
9142
|
+
return flavor(type, subject);
|
|
9143
|
+
};
|
|
9144
|
+
if ((0, isType_js_1.isType)(subject, s => typeof s === 'object' && s !== null)) {
|
|
8836
9145
|
// if subject is not an object, the branding will exist only in type-level.
|
|
8837
|
-
subject[
|
|
9146
|
+
subject[constants_js_1.typeSym] = type;
|
|
8838
9147
|
}
|
|
8839
9148
|
return subject;
|
|
8840
9149
|
}
|
|
8841
9150
|
exports.flavor = flavor;
|
|
8842
|
-
//# sourceMappingURL=
|
|
9151
|
+
//# sourceMappingURL=flavor.js.map
|
|
8843
9152
|
|
|
8844
9153
|
/***/ }),
|
|
8845
9154
|
|
|
8846
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8847
|
-
|
|
8848
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8849
|
-
|
|
9155
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/index.js":
|
|
9156
|
+
/*!********************************************************************************************!*\
|
|
9157
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/index.js ***!
|
|
9158
|
+
\********************************************************************************************/
|
|
8850
9159
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8851
9160
|
|
|
8852
9161
|
"use strict";
|
|
@@ -8866,55 +9175,52 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8866
9175
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8867
9176
|
};
|
|
8868
9177
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8869
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8870
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8871
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9178
|
+
__exportStar(__webpack_require__(/*! ./brand.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/brand.js"), exports);
|
|
9179
|
+
__exportStar(__webpack_require__(/*! ./flavor.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/flavor.js"), exports);
|
|
9180
|
+
__exportStar(__webpack_require__(/*! ./nominal_match.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/nominal_match.js"), exports);
|
|
8872
9181
|
//# sourceMappingURL=index.js.map
|
|
8873
9182
|
|
|
8874
9183
|
/***/ }),
|
|
8875
9184
|
|
|
8876
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8877
|
-
|
|
8878
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8879
|
-
|
|
9185
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/nominal_match.js":
|
|
9186
|
+
/*!****************************************************************************************************!*\
|
|
9187
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/nominal_match.js ***!
|
|
9188
|
+
\****************************************************************************************************/
|
|
8880
9189
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8881
9190
|
|
|
8882
9191
|
"use strict";
|
|
8883
9192
|
|
|
8884
9193
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8885
9194
|
exports.nominalMatch = void 0;
|
|
8886
|
-
|
|
9195
|
+
const constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/constants.js");
|
|
8887
9196
|
function nominalMatch(a, b) {
|
|
8888
9197
|
if (typeof a === 'object' && a !== null && typeof b === 'object' && b !== null)
|
|
8889
|
-
return a[
|
|
9198
|
+
return a[constants_js_1.typeSym] === b[constants_js_1.typeSym];
|
|
8890
9199
|
else {
|
|
8891
9200
|
return true;
|
|
8892
9201
|
}
|
|
8893
9202
|
}
|
|
8894
9203
|
exports.nominalMatch = nominalMatch;
|
|
8895
|
-
//# sourceMappingURL=
|
|
9204
|
+
//# sourceMappingURL=nominal_match.js.map
|
|
8896
9205
|
|
|
8897
9206
|
/***/ }),
|
|
8898
9207
|
|
|
8899
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8900
|
-
|
|
8901
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8902
|
-
|
|
9208
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/number/number_plus.js":
|
|
9209
|
+
/*!*************************************************************************************************!*\
|
|
9210
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/number/number_plus.js ***!
|
|
9211
|
+
\*************************************************************************************************/
|
|
8903
9212
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8904
9213
|
|
|
8905
9214
|
"use strict";
|
|
8906
9215
|
|
|
8907
9216
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8908
|
-
|
|
8909
|
-
exports.typeSym = Symbol('type');
|
|
8910
|
-
exports.valueSym = Symbol('value');
|
|
8911
|
-
//# sourceMappingURL=types.js.map
|
|
9217
|
+
//# sourceMappingURL=number_plus.js.map
|
|
8912
9218
|
|
|
8913
9219
|
/***/ }),
|
|
8914
9220
|
|
|
8915
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9221
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/everyKey.js":
|
|
8916
9222
|
/*!**********************************************************************************************!*\
|
|
8917
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9223
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/everyKey.js ***!
|
|
8918
9224
|
\**********************************************************************************************/
|
|
8919
9225
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8920
9226
|
|
|
@@ -8930,9 +9236,9 @@ exports.everyKey = everyKey;
|
|
|
8930
9236
|
|
|
8931
9237
|
/***/ }),
|
|
8932
9238
|
|
|
8933
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9239
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/facade.js":
|
|
8934
9240
|
/*!********************************************************************************************!*\
|
|
8935
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9241
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/facade.js ***!
|
|
8936
9242
|
\********************************************************************************************/
|
|
8937
9243
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8938
9244
|
|
|
@@ -8940,27 +9246,23 @@ exports.everyKey = everyKey;
|
|
|
8940
9246
|
|
|
8941
9247
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8942
9248
|
exports.facade = void 0;
|
|
8943
|
-
function facade(subject) {
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
props[_i - 1] = arguments[_i];
|
|
8947
|
-
}
|
|
8948
|
-
return props.reduce(function (p, k) {
|
|
8949
|
-
var prop = subject[k];
|
|
9249
|
+
function facade(subject, ...props) {
|
|
9250
|
+
return props.reduce((p, k) => {
|
|
9251
|
+
const prop = subject[k];
|
|
8950
9252
|
if (typeof prop === 'function') {
|
|
8951
9253
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
|
|
8952
9254
|
p[k] = prop.bind(subject);
|
|
8953
9255
|
}
|
|
8954
9256
|
else {
|
|
8955
9257
|
Object.defineProperty(p, k, {
|
|
8956
|
-
get
|
|
9258
|
+
get() {
|
|
8957
9259
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
8958
9260
|
return subject[k];
|
|
8959
9261
|
},
|
|
8960
|
-
set
|
|
9262
|
+
set(value) {
|
|
8961
9263
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-assignment
|
|
8962
|
-
return subject[k] = value;
|
|
8963
|
-
}
|
|
9264
|
+
return (subject[k] = value);
|
|
9265
|
+
}
|
|
8964
9266
|
});
|
|
8965
9267
|
}
|
|
8966
9268
|
return p;
|
|
@@ -8971,9 +9273,9 @@ exports.facade = facade;
|
|
|
8971
9273
|
|
|
8972
9274
|
/***/ }),
|
|
8973
9275
|
|
|
8974
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9276
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/filterKey.js":
|
|
8975
9277
|
/*!***********************************************************************************************!*\
|
|
8976
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9278
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/filterKey.js ***!
|
|
8977
9279
|
\***********************************************************************************************/
|
|
8978
9280
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8979
9281
|
|
|
@@ -8982,16 +9284,18 @@ exports.facade = facade;
|
|
|
8982
9284
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8983
9285
|
exports.filterKey = void 0;
|
|
8984
9286
|
function filterKey(subject, predicate, thisArg) {
|
|
8985
|
-
return Object.keys(subject).filter(
|
|
9287
|
+
return Object.keys(subject).filter(function (k, i, a) {
|
|
9288
|
+
return predicate.apply(this, [k, i, a, subject]);
|
|
9289
|
+
}, thisArg);
|
|
8986
9290
|
}
|
|
8987
9291
|
exports.filterKey = filterKey;
|
|
8988
9292
|
//# sourceMappingURL=filterKey.js.map
|
|
8989
9293
|
|
|
8990
9294
|
/***/ }),
|
|
8991
9295
|
|
|
8992
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9296
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/findKey.js":
|
|
8993
9297
|
/*!*********************************************************************************************!*\
|
|
8994
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9298
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/findKey.js ***!
|
|
8995
9299
|
\*********************************************************************************************/
|
|
8996
9300
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8997
9301
|
|
|
@@ -9000,16 +9304,18 @@ exports.filterKey = filterKey;
|
|
|
9000
9304
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9001
9305
|
exports.findKey = void 0;
|
|
9002
9306
|
function findKey(subject, predicate, thisArg) {
|
|
9003
|
-
return Object.keys(subject).find(
|
|
9307
|
+
return Object.keys(subject).find(function (k, i, a) {
|
|
9308
|
+
return predicate.apply(this, [k, i, a, subject]);
|
|
9309
|
+
}, thisArg);
|
|
9004
9310
|
}
|
|
9005
9311
|
exports.findKey = findKey;
|
|
9006
9312
|
//# sourceMappingURL=findKey.js.map
|
|
9007
9313
|
|
|
9008
9314
|
/***/ }),
|
|
9009
9315
|
|
|
9010
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9316
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/forEachKey.js":
|
|
9011
9317
|
/*!************************************************************************************************!*\
|
|
9012
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9318
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/forEachKey.js ***!
|
|
9013
9319
|
\************************************************************************************************/
|
|
9014
9320
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9015
9321
|
|
|
@@ -9025,9 +9331,9 @@ exports.forEachKey = forEachKey;
|
|
|
9025
9331
|
|
|
9026
9332
|
/***/ }),
|
|
9027
9333
|
|
|
9028
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9334
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/getField.js":
|
|
9029
9335
|
/*!**********************************************************************************************!*\
|
|
9030
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9336
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/getField.js ***!
|
|
9031
9337
|
\**********************************************************************************************/
|
|
9032
9338
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9033
9339
|
|
|
@@ -9036,16 +9342,16 @@ exports.forEachKey = forEachKey;
|
|
|
9036
9342
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9037
9343
|
exports.getField = void 0;
|
|
9038
9344
|
function getField(subject, key, defaultValue) {
|
|
9039
|
-
return subject && subject[key] || defaultValue;
|
|
9345
|
+
return (subject && subject[key]) || defaultValue;
|
|
9040
9346
|
}
|
|
9041
9347
|
exports.getField = getField;
|
|
9042
9348
|
//# sourceMappingURL=getField.js.map
|
|
9043
9349
|
|
|
9044
9350
|
/***/ }),
|
|
9045
9351
|
|
|
9046
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9352
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasKey.js":
|
|
9047
9353
|
/*!********************************************************************************************!*\
|
|
9048
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9354
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasKey.js ***!
|
|
9049
9355
|
\********************************************************************************************/
|
|
9050
9356
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9051
9357
|
|
|
@@ -9053,21 +9359,17 @@ exports.getField = getField;
|
|
|
9053
9359
|
|
|
9054
9360
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9055
9361
|
exports.hasKey = void 0;
|
|
9056
|
-
function hasKey(subject) {
|
|
9057
|
-
|
|
9058
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9059
|
-
keys[_i - 1] = arguments[_i];
|
|
9060
|
-
}
|
|
9061
|
-
return !keys.some(function (key) { return !subject[key]; });
|
|
9362
|
+
function hasKey(subject, ...keys) {
|
|
9363
|
+
return !keys.some(key => !subject[key]);
|
|
9062
9364
|
}
|
|
9063
9365
|
exports.hasKey = hasKey;
|
|
9064
9366
|
//# sourceMappingURL=hasKey.js.map
|
|
9065
9367
|
|
|
9066
9368
|
/***/ }),
|
|
9067
9369
|
|
|
9068
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9370
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasProperty.js":
|
|
9069
9371
|
/*!*************************************************************************************************!*\
|
|
9070
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9372
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasProperty.js ***!
|
|
9071
9373
|
\*************************************************************************************************/
|
|
9072
9374
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9073
9375
|
|
|
@@ -9083,9 +9385,9 @@ exports.hasProperty = hasProperty;
|
|
|
9083
9385
|
|
|
9084
9386
|
/***/ }),
|
|
9085
9387
|
|
|
9086
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9388
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/index.js":
|
|
9087
9389
|
/*!*******************************************************************************************!*\
|
|
9088
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9390
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/index.js ***!
|
|
9089
9391
|
\*******************************************************************************************/
|
|
9090
9392
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9091
9393
|
|
|
@@ -9106,31 +9408,31 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9106
9408
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9107
9409
|
};
|
|
9108
9410
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9109
|
-
__exportStar(__webpack_require__(/*! ./everyKey.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9110
|
-
__exportStar(__webpack_require__(/*! ./facade.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9111
|
-
__exportStar(__webpack_require__(/*! ./filterKey.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9112
|
-
__exportStar(__webpack_require__(/*! ./findKey.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9113
|
-
__exportStar(__webpack_require__(/*! ./forEachKey.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9114
|
-
__exportStar(__webpack_require__(/*! ./getField.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9115
|
-
__exportStar(__webpack_require__(/*! ./hasKey.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9116
|
-
__exportStar(__webpack_require__(/*! ./hasProperty.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9117
|
-
__exportStar(__webpack_require__(/*! ./mapKey.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9118
|
-
__exportStar(__webpack_require__(/*! ./mapProperties.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9119
|
-
__exportStar(__webpack_require__(/*! ./omit.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9120
|
-
__exportStar(__webpack_require__(/*! ./pick.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9121
|
-
__exportStar(__webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9122
|
-
__exportStar(__webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9123
|
-
__exportStar(__webpack_require__(/*! ./replaceProperty.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9124
|
-
__exportStar(__webpack_require__(/*! ./someKey.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9125
|
-
__exportStar(__webpack_require__(/*! ./split.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9126
|
-
__exportStar(__webpack_require__(/*! ./typeOverrideIncompatible.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9411
|
+
__exportStar(__webpack_require__(/*! ./everyKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/everyKey.js"), exports);
|
|
9412
|
+
__exportStar(__webpack_require__(/*! ./facade.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/facade.js"), exports);
|
|
9413
|
+
__exportStar(__webpack_require__(/*! ./filterKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/filterKey.js"), exports);
|
|
9414
|
+
__exportStar(__webpack_require__(/*! ./findKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/findKey.js"), exports);
|
|
9415
|
+
__exportStar(__webpack_require__(/*! ./forEachKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/forEachKey.js"), exports);
|
|
9416
|
+
__exportStar(__webpack_require__(/*! ./getField.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/getField.js"), exports);
|
|
9417
|
+
__exportStar(__webpack_require__(/*! ./hasKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasKey.js"), exports);
|
|
9418
|
+
__exportStar(__webpack_require__(/*! ./hasProperty.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasProperty.js"), exports);
|
|
9419
|
+
__exportStar(__webpack_require__(/*! ./mapKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapKey.js"), exports);
|
|
9420
|
+
__exportStar(__webpack_require__(/*! ./mapProperties.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapProperties.js"), exports);
|
|
9421
|
+
__exportStar(__webpack_require__(/*! ./omit.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/omit.js"), exports);
|
|
9422
|
+
__exportStar(__webpack_require__(/*! ./pick.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/pick.js"), exports);
|
|
9423
|
+
__exportStar(__webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js"), exports);
|
|
9424
|
+
__exportStar(__webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js"), exports);
|
|
9425
|
+
__exportStar(__webpack_require__(/*! ./replaceProperty.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/replaceProperty.js"), exports);
|
|
9426
|
+
__exportStar(__webpack_require__(/*! ./someKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/someKey.js"), exports);
|
|
9427
|
+
__exportStar(__webpack_require__(/*! ./split.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/split.js"), exports);
|
|
9428
|
+
__exportStar(__webpack_require__(/*! ./typeOverrideIncompatible.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js"), exports);
|
|
9127
9429
|
//# sourceMappingURL=index.js.map
|
|
9128
9430
|
|
|
9129
9431
|
/***/ }),
|
|
9130
9432
|
|
|
9131
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9433
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapKey.js":
|
|
9132
9434
|
/*!********************************************************************************************!*\
|
|
9133
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9435
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapKey.js ***!
|
|
9134
9436
|
\********************************************************************************************/
|
|
9135
9437
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9136
9438
|
|
|
@@ -9139,16 +9441,18 @@ __exportStar(__webpack_require__(/*! ./typeOverrideIncompatible.js */ "../../nod
|
|
|
9139
9441
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9140
9442
|
exports.mapKey = void 0;
|
|
9141
9443
|
function mapKey(subject, predicate, thisArg) {
|
|
9142
|
-
return Object.keys(subject).map(
|
|
9444
|
+
return Object.keys(subject).map(function (k, i, a) {
|
|
9445
|
+
return predicate.apply(this, [k, i, a, subject]);
|
|
9446
|
+
}, thisArg);
|
|
9143
9447
|
}
|
|
9144
9448
|
exports.mapKey = mapKey;
|
|
9145
9449
|
//# sourceMappingURL=mapKey.js.map
|
|
9146
9450
|
|
|
9147
9451
|
/***/ }),
|
|
9148
9452
|
|
|
9149
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9453
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapProperties.js":
|
|
9150
9454
|
/*!***************************************************************************************************!*\
|
|
9151
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9455
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapProperties.js ***!
|
|
9152
9456
|
\***************************************************************************************************/
|
|
9153
9457
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9154
9458
|
|
|
@@ -9156,7 +9460,7 @@ exports.mapKey = mapKey;
|
|
|
9156
9460
|
|
|
9157
9461
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9158
9462
|
exports.mapProperties = void 0;
|
|
9159
|
-
|
|
9463
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9160
9464
|
/**
|
|
9161
9465
|
* An Object-specific version of `map`.
|
|
9162
9466
|
* Original source:
|
|
@@ -9166,17 +9470,16 @@ var reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modul
|
|
|
9166
9470
|
* I keep this parameter order because this parameter order provides better type inference.
|
|
9167
9471
|
*/
|
|
9168
9472
|
function mapProperties(subject, callbackfn) {
|
|
9169
|
-
return (0, reduceKey_js_1.reduceByKey)(subject,
|
|
9170
|
-
p); }, {});
|
|
9473
|
+
return (0, reduceKey_js_1.reduceByKey)(subject, (p, key) => ((p[key] = callbackfn(subject[key], key, subject)), p), {});
|
|
9171
9474
|
}
|
|
9172
9475
|
exports.mapProperties = mapProperties;
|
|
9173
9476
|
//# sourceMappingURL=mapProperties.js.map
|
|
9174
9477
|
|
|
9175
9478
|
/***/ }),
|
|
9176
9479
|
|
|
9177
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9480
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/omit.js":
|
|
9178
9481
|
/*!******************************************************************************************!*\
|
|
9179
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9482
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/omit.js ***!
|
|
9180
9483
|
\******************************************************************************************/
|
|
9181
9484
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9182
9485
|
|
|
@@ -9184,14 +9487,10 @@ exports.mapProperties = mapProperties;
|
|
|
9184
9487
|
|
|
9185
9488
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9186
9489
|
exports.omit = void 0;
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
function omit(subject) {
|
|
9190
|
-
|
|
9191
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9192
|
-
props[_i - 1] = arguments[_i];
|
|
9193
|
-
}
|
|
9194
|
-
return (0, index_js_1.reduceByKey)(subject, function (p, k) {
|
|
9490
|
+
const record_js_1 = __webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js");
|
|
9491
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9492
|
+
function omit(subject, ...props) {
|
|
9493
|
+
return (0, reduceKey_js_1.reduceByKey)(subject, (p, k) => {
|
|
9195
9494
|
if (props.indexOf(k) === -1)
|
|
9196
9495
|
p[k] = subject[k];
|
|
9197
9496
|
return p;
|
|
@@ -9202,9 +9501,9 @@ exports.omit = omit;
|
|
|
9202
9501
|
|
|
9203
9502
|
/***/ }),
|
|
9204
9503
|
|
|
9205
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9504
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/pick.js":
|
|
9206
9505
|
/*!******************************************************************************************!*\
|
|
9207
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9506
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/pick.js ***!
|
|
9208
9507
|
\******************************************************************************************/
|
|
9209
9508
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9210
9509
|
|
|
@@ -9212,14 +9511,10 @@ exports.omit = omit;
|
|
|
9212
9511
|
|
|
9213
9512
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9214
9513
|
exports.pick = void 0;
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
function pick(subject) {
|
|
9218
|
-
|
|
9219
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9220
|
-
props[_i - 1] = arguments[_i];
|
|
9221
|
-
}
|
|
9222
|
-
return (0, reduceKey_js_1.reduceByKey)(subject, function (p, k) {
|
|
9514
|
+
const record_js_1 = __webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js");
|
|
9515
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9516
|
+
function pick(subject, ...props) {
|
|
9517
|
+
return (0, reduceKey_js_1.reduceByKey)(subject, (p, k) => {
|
|
9223
9518
|
if (props.indexOf(k) >= 0)
|
|
9224
9519
|
p[k] = subject[k];
|
|
9225
9520
|
return p;
|
|
@@ -9230,9 +9525,9 @@ exports.pick = pick;
|
|
|
9230
9525
|
|
|
9231
9526
|
/***/ }),
|
|
9232
9527
|
|
|
9233
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9528
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js":
|
|
9234
9529
|
/*!********************************************************************************************!*\
|
|
9235
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9530
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js ***!
|
|
9236
9531
|
\********************************************************************************************/
|
|
9237
9532
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9238
9533
|
|
|
@@ -9241,7 +9536,7 @@ exports.pick = pick;
|
|
|
9241
9536
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9242
9537
|
exports.record = void 0;
|
|
9243
9538
|
function record(value) {
|
|
9244
|
-
|
|
9539
|
+
const r = Object.create(null);
|
|
9245
9540
|
return (value ? Object.assign(r, value) : r);
|
|
9246
9541
|
}
|
|
9247
9542
|
exports.record = record;
|
|
@@ -9249,9 +9544,9 @@ exports.record = record;
|
|
|
9249
9544
|
|
|
9250
9545
|
/***/ }),
|
|
9251
9546
|
|
|
9252
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9547
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js":
|
|
9253
9548
|
/*!***********************************************************************************************!*\
|
|
9254
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9549
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js ***!
|
|
9255
9550
|
\***********************************************************************************************/
|
|
9256
9551
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9257
9552
|
|
|
@@ -9260,7 +9555,7 @@ exports.record = record;
|
|
|
9260
9555
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9261
9556
|
exports.reduceKey = exports.reduceByKey = void 0;
|
|
9262
9557
|
function reduceByKey(subject, callbackfn, initialValue) {
|
|
9263
|
-
return Object.keys(subject).reduce(callbackfn, initialValue);
|
|
9558
|
+
return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);
|
|
9264
9559
|
}
|
|
9265
9560
|
exports.reduceByKey = reduceByKey;
|
|
9266
9561
|
/**
|
|
@@ -9271,39 +9566,27 @@ exports.reduceKey = reduceByKey;
|
|
|
9271
9566
|
|
|
9272
9567
|
/***/ }),
|
|
9273
9568
|
|
|
9274
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9569
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/replaceProperty.js":
|
|
9275
9570
|
/*!*****************************************************************************************************!*\
|
|
9276
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9571
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/replaceProperty.js ***!
|
|
9277
9572
|
\*****************************************************************************************************/
|
|
9278
9573
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9279
9574
|
|
|
9280
9575
|
"use strict";
|
|
9281
9576
|
|
|
9282
|
-
var __assign = (this && this.__assign) || function () {
|
|
9283
|
-
__assign = Object.assign || function(t) {
|
|
9284
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9285
|
-
s = arguments[i];
|
|
9286
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
9287
|
-
t[p] = s[p];
|
|
9288
|
-
}
|
|
9289
|
-
return t;
|
|
9290
|
-
};
|
|
9291
|
-
return __assign.apply(this, arguments);
|
|
9292
|
-
};
|
|
9293
9577
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9294
9578
|
exports.replaceProperty = void 0;
|
|
9295
9579
|
function replaceProperty(subject, key, value) {
|
|
9296
|
-
|
|
9297
|
-
return __assign(__assign({}, subject), (_a = {}, _a[key] = value, _a));
|
|
9580
|
+
return { ...subject, [key]: value };
|
|
9298
9581
|
}
|
|
9299
9582
|
exports.replaceProperty = replaceProperty;
|
|
9300
9583
|
//# sourceMappingURL=replaceProperty.js.map
|
|
9301
9584
|
|
|
9302
9585
|
/***/ }),
|
|
9303
9586
|
|
|
9304
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9587
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/someKey.js":
|
|
9305
9588
|
/*!*********************************************************************************************!*\
|
|
9306
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9589
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/someKey.js ***!
|
|
9307
9590
|
\*********************************************************************************************/
|
|
9308
9591
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9309
9592
|
|
|
@@ -9312,72 +9595,53 @@ exports.replaceProperty = replaceProperty;
|
|
|
9312
9595
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9313
9596
|
exports.someKey = void 0;
|
|
9314
9597
|
function someKey(subject, predicate, thisArg) {
|
|
9315
|
-
return Object.keys(subject).some(
|
|
9598
|
+
return Object.keys(subject).some(function (k, i, a) {
|
|
9599
|
+
return predicate.apply(this, [k, i, a, subject]);
|
|
9600
|
+
}, thisArg);
|
|
9316
9601
|
}
|
|
9317
9602
|
exports.someKey = someKey;
|
|
9318
9603
|
//# sourceMappingURL=someKey.js.map
|
|
9319
9604
|
|
|
9320
9605
|
/***/ }),
|
|
9321
9606
|
|
|
9322
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9607
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/split.js":
|
|
9323
9608
|
/*!*******************************************************************************************!*\
|
|
9324
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9609
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/split.js ***!
|
|
9325
9610
|
\*******************************************************************************************/
|
|
9326
9611
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9327
9612
|
|
|
9328
9613
|
"use strict";
|
|
9329
9614
|
|
|
9330
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
9331
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
9332
|
-
if (ar || !(i in from)) {
|
|
9333
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
9334
|
-
ar[i] = from[i];
|
|
9335
|
-
}
|
|
9336
|
-
}
|
|
9337
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9338
|
-
};
|
|
9339
9615
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9340
9616
|
exports.split = void 0;
|
|
9341
|
-
|
|
9342
|
-
function split(target) {
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
var keyMap = {};
|
|
9348
|
-
var s = splitters.map(function (s) { return (0, reduceKey_js_1.reduceByKey)(s, function (p, k) { var _a; return (keyMap[k] = true, p[k] = (_a = target[k]) !== null && _a !== void 0 ? _a : s[k], p); }, {}); });
|
|
9349
|
-
var r = (0, reduceKey_js_1.reduceByKey)(target, function (p, k) { return keyMap[k] ? p : (p[k] = target[k], p); }, {});
|
|
9350
|
-
return __spreadArray(__spreadArray([], s, true), [r], false);
|
|
9617
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9618
|
+
function split(target, ...splitters) {
|
|
9619
|
+
const keyMap = {};
|
|
9620
|
+
const s = splitters.map(s => (0, reduceKey_js_1.reduceByKey)(s, (p, k) => ((keyMap[k] = true), (p[k] = target[k] ?? s[k]), p), {}));
|
|
9621
|
+
const r = (0, reduceKey_js_1.reduceByKey)(target, (p, k) => (keyMap[k] ? p : ((p[k] = target[k]), p)), {});
|
|
9622
|
+
return [...s, r];
|
|
9351
9623
|
}
|
|
9352
9624
|
exports.split = split;
|
|
9353
9625
|
//# sourceMappingURL=split.js.map
|
|
9354
9626
|
|
|
9355
9627
|
/***/ }),
|
|
9356
9628
|
|
|
9357
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9629
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js":
|
|
9358
9630
|
/*!**************************************************************************************************************!*\
|
|
9359
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9631
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js ***!
|
|
9360
9632
|
\**************************************************************************************************************/
|
|
9361
9633
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9362
9634
|
|
|
9363
9635
|
"use strict";
|
|
9364
9636
|
|
|
9365
|
-
var __assign = (this && this.__assign) || function () {
|
|
9366
|
-
__assign = Object.assign || function(t) {
|
|
9367
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9368
|
-
s = arguments[i];
|
|
9369
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
9370
|
-
t[p] = s[p];
|
|
9371
|
-
}
|
|
9372
|
-
return t;
|
|
9373
|
-
};
|
|
9374
|
-
return __assign.apply(this, arguments);
|
|
9375
|
-
};
|
|
9376
9637
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9377
9638
|
exports.typeOverrideIncompatible = void 0;
|
|
9378
9639
|
function typeOverrideIncompatible() {
|
|
9379
9640
|
return function (source, override) {
|
|
9380
|
-
return
|
|
9641
|
+
return {
|
|
9642
|
+
...source,
|
|
9643
|
+
...override
|
|
9644
|
+
};
|
|
9381
9645
|
};
|
|
9382
9646
|
}
|
|
9383
9647
|
exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
@@ -9385,9 +9649,9 @@ exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
|
9385
9649
|
|
|
9386
9650
|
/***/ }),
|
|
9387
9651
|
|
|
9388
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9652
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/CanAssign.js":
|
|
9389
9653
|
/*!***************************************************************************************************!*\
|
|
9390
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9654
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/CanAssign.js ***!
|
|
9391
9655
|
\***************************************************************************************************/
|
|
9392
9656
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9393
9657
|
|
|
@@ -9396,16 +9660,16 @@ exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
|
9396
9660
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9397
9661
|
exports.canAssign = void 0;
|
|
9398
9662
|
function canAssign() {
|
|
9399
|
-
return
|
|
9663
|
+
return () => true;
|
|
9400
9664
|
}
|
|
9401
9665
|
exports.canAssign = canAssign;
|
|
9402
9666
|
//# sourceMappingURL=CanAssign.js.map
|
|
9403
9667
|
|
|
9404
9668
|
/***/ }),
|
|
9405
9669
|
|
|
9406
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9670
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/index.js":
|
|
9407
9671
|
/*!***********************************************************************************************!*\
|
|
9408
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9672
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/index.js ***!
|
|
9409
9673
|
\***********************************************************************************************/
|
|
9410
9674
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9411
9675
|
|
|
@@ -9426,15 +9690,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9426
9690
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9427
9691
|
};
|
|
9428
9692
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9429
|
-
__exportStar(__webpack_require__(/*! ./CanAssign.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9430
|
-
__exportStar(__webpack_require__(/*! ./isType.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9693
|
+
__exportStar(__webpack_require__(/*! ./CanAssign.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/CanAssign.js"), exports);
|
|
9694
|
+
__exportStar(__webpack_require__(/*! ./isType.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/isType.js"), exports);
|
|
9431
9695
|
//# sourceMappingURL=index.js.map
|
|
9432
9696
|
|
|
9433
9697
|
/***/ }),
|
|
9434
9698
|
|
|
9435
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9699
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/isType.js":
|
|
9436
9700
|
/*!************************************************************************************************!*\
|
|
9437
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9701
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/isType.js ***!
|
|
9438
9702
|
\************************************************************************************************/
|
|
9439
9703
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9440
9704
|
|
|
@@ -9452,20 +9716,25 @@ isType.t = function (subject) {
|
|
|
9452
9716
|
isType.f = function (subject) {
|
|
9453
9717
|
return subject === undefined || subject === false;
|
|
9454
9718
|
};
|
|
9719
|
+
function isNever(subject) {
|
|
9720
|
+
return true;
|
|
9721
|
+
}
|
|
9722
|
+
isType.never = isNever;
|
|
9455
9723
|
/**
|
|
9456
9724
|
* Are types A and B equals/not equals.
|
|
9457
|
-
* Easier to use
|
|
9725
|
+
* Easier to use than `isType.t<>()` and `isType.f<>()`,
|
|
9458
9726
|
* when doing type level only equality comparison as you don't have to import `Equal<>`.
|
|
9727
|
+
*
|
|
9728
|
+
* @deprecated use `type.equal()` instead
|
|
9459
9729
|
*/
|
|
9460
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9461
9730
|
isType.equal = function () { };
|
|
9462
9731
|
//# sourceMappingURL=isType.js.map
|
|
9463
9732
|
|
|
9464
9733
|
/***/ }),
|
|
9465
9734
|
|
|
9466
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9735
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/MaybePromise.js":
|
|
9467
9736
|
/*!***************************************************************************************************!*\
|
|
9468
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9737
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/MaybePromise.js ***!
|
|
9469
9738
|
\***************************************************************************************************/
|
|
9470
9739
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9471
9740
|
|
|
@@ -9473,7 +9742,7 @@ isType.equal = function () { };
|
|
|
9473
9742
|
|
|
9474
9743
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9475
9744
|
exports.MaybePromise = exports.transformMaybePromise = void 0;
|
|
9476
|
-
|
|
9745
|
+
const isPromise_js_1 = __webpack_require__(/*! ./isPromise.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/isPromise.js");
|
|
9477
9746
|
function transformMaybePromise(value, transformer) {
|
|
9478
9747
|
return (0, isPromise_js_1.isPromise)(value) ? value.then(transformer) : transformer(value);
|
|
9479
9748
|
}
|
|
@@ -9485,9 +9754,9 @@ exports.MaybePromise = {
|
|
|
9485
9754
|
|
|
9486
9755
|
/***/ }),
|
|
9487
9756
|
|
|
9488
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9757
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/index.js":
|
|
9489
9758
|
/*!********************************************************************************************!*\
|
|
9490
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9759
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/index.js ***!
|
|
9491
9760
|
\********************************************************************************************/
|
|
9492
9761
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9493
9762
|
|
|
@@ -9508,16 +9777,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9508
9777
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9509
9778
|
};
|
|
9510
9779
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9511
|
-
__exportStar(__webpack_require__(/*! ./isPromise.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9512
|
-
__exportStar(__webpack_require__(/*! ./mapSeries.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9513
|
-
__exportStar(__webpack_require__(/*! ./MaybePromise.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9780
|
+
__exportStar(__webpack_require__(/*! ./isPromise.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/isPromise.js"), exports);
|
|
9781
|
+
__exportStar(__webpack_require__(/*! ./mapSeries.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/mapSeries.js"), exports);
|
|
9782
|
+
__exportStar(__webpack_require__(/*! ./MaybePromise.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/MaybePromise.js"), exports);
|
|
9514
9783
|
//# sourceMappingURL=index.js.map
|
|
9515
9784
|
|
|
9516
9785
|
/***/ }),
|
|
9517
9786
|
|
|
9518
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9787
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/isPromise.js":
|
|
9519
9788
|
/*!************************************************************************************************!*\
|
|
9520
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9789
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/isPromise.js ***!
|
|
9521
9790
|
\************************************************************************************************/
|
|
9522
9791
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9523
9792
|
|
|
@@ -9534,9 +9803,9 @@ exports.isPromise = isPromise;
|
|
|
9534
9803
|
|
|
9535
9804
|
/***/ }),
|
|
9536
9805
|
|
|
9537
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9806
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/mapSeries.js":
|
|
9538
9807
|
/*!************************************************************************************************!*\
|
|
9539
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9808
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/mapSeries.js ***!
|
|
9540
9809
|
\************************************************************************************************/
|
|
9541
9810
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9542
9811
|
|
|
@@ -9545,73 +9814,157 @@ exports.isPromise = isPromise;
|
|
|
9545
9814
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9546
9815
|
exports.mapSeries = void 0;
|
|
9547
9816
|
function mapSeries(values, fn) {
|
|
9548
|
-
return values.reduce(
|
|
9817
|
+
return values.reduce((p, v) => p.then(r => fn(v).then(v => (r.push(v), r))), Promise.resolve([]));
|
|
9549
9818
|
}
|
|
9550
9819
|
exports.mapSeries = mapSeries;
|
|
9551
9820
|
//# sourceMappingURL=mapSeries.js.map
|
|
9552
9821
|
|
|
9553
9822
|
/***/ }),
|
|
9554
9823
|
|
|
9555
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9556
|
-
|
|
9557
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9558
|
-
|
|
9824
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/stub.js":
|
|
9825
|
+
/*!*******************************************************************************************!*\
|
|
9826
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/stub.js ***!
|
|
9827
|
+
\*******************************************************************************************/
|
|
9559
9828
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9560
9829
|
|
|
9561
9830
|
"use strict";
|
|
9562
9831
|
|
|
9563
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9564
|
-
if (k2 === undefined) k2 = k;
|
|
9565
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9566
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9567
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9568
|
-
}
|
|
9569
|
-
Object.defineProperty(o, k2, desc);
|
|
9570
|
-
}) : (function(o, m, k, k2) {
|
|
9571
|
-
if (k2 === undefined) k2 = k;
|
|
9572
|
-
o[k2] = m[k];
|
|
9573
|
-
}));
|
|
9574
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
9575
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9576
|
-
};
|
|
9577
9832
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9578
|
-
|
|
9579
|
-
|
|
9833
|
+
exports.stub = void 0;
|
|
9834
|
+
const unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js");
|
|
9835
|
+
function stub(stub) {
|
|
9836
|
+
return stub;
|
|
9837
|
+
}
|
|
9838
|
+
exports.stub = stub;
|
|
9839
|
+
function build(init) {
|
|
9840
|
+
return function (value) {
|
|
9841
|
+
const initValue = typeof init === 'function' ? init() : init;
|
|
9842
|
+
return initValue ? stub((0, unpartial_1.requiredDeep)(initValue, value)) : stub(value);
|
|
9843
|
+
};
|
|
9844
|
+
}
|
|
9845
|
+
stub.build = build;
|
|
9846
|
+
//# sourceMappingURL=stub.js.map
|
|
9580
9847
|
|
|
9581
9848
|
/***/ }),
|
|
9582
9849
|
|
|
9583
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9584
|
-
|
|
9585
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9586
|
-
|
|
9587
|
-
/***/ (function(__unused_webpack_module, exports
|
|
9850
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/test_type.js":
|
|
9851
|
+
/*!************************************************************************************************!*\
|
|
9852
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/test_type.js ***!
|
|
9853
|
+
\************************************************************************************************/
|
|
9854
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
9588
9855
|
|
|
9589
9856
|
"use strict";
|
|
9590
9857
|
|
|
9591
9858
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9592
|
-
exports.
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
return stub;
|
|
9859
|
+
exports.testType = void 0;
|
|
9860
|
+
function equal(expected) {
|
|
9861
|
+
return expected;
|
|
9596
9862
|
}
|
|
9597
|
-
exports.stub = stub;
|
|
9598
9863
|
/**
|
|
9599
|
-
*
|
|
9864
|
+
* Test utilities for types.
|
|
9865
|
+
*
|
|
9866
|
+
* This is designed specifically for testing.
|
|
9867
|
+
* The return value is the input `expected` parameter asserted as the first type parameter,
|
|
9868
|
+
* so that the type can be further inspected.
|
|
9600
9869
|
*/
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9870
|
+
exports.testType = {
|
|
9871
|
+
/**
|
|
9872
|
+
* Check if type `T` is exactly `any`.
|
|
9873
|
+
*
|
|
9874
|
+
* @return `expected` as `T` for type inspection.
|
|
9875
|
+
*/
|
|
9876
|
+
any(expected) {
|
|
9877
|
+
return expected;
|
|
9878
|
+
},
|
|
9879
|
+
/**
|
|
9880
|
+
* Check if type `T` is exactly `unknown`.
|
|
9881
|
+
*
|
|
9882
|
+
* @return `expected` as `T` for type inspection.
|
|
9883
|
+
*/
|
|
9884
|
+
unknown(expected) {
|
|
9885
|
+
return expected;
|
|
9886
|
+
},
|
|
9887
|
+
/**
|
|
9888
|
+
* Check if type `T` is exactly `never`.
|
|
9889
|
+
*
|
|
9890
|
+
* @return `expected` as `T` for type inspection.
|
|
9891
|
+
*/
|
|
9892
|
+
never(expected) {
|
|
9893
|
+
return expected;
|
|
9894
|
+
},
|
|
9895
|
+
/**
|
|
9896
|
+
* Check if type `T` is exactly `void`.
|
|
9897
|
+
*
|
|
9898
|
+
* @return `expected` as `T` for type inspection.
|
|
9899
|
+
*/
|
|
9900
|
+
void(expected) {
|
|
9901
|
+
return expected;
|
|
9902
|
+
},
|
|
9903
|
+
equal,
|
|
9904
|
+
/**
|
|
9905
|
+
* Check if `A` can assign to `B`.
|
|
9906
|
+
*
|
|
9907
|
+
* @return `expected` as `A` for type inspection.
|
|
9908
|
+
*/
|
|
9909
|
+
canAssign(expected) {
|
|
9910
|
+
return expected;
|
|
9911
|
+
},
|
|
9912
|
+
/**
|
|
9913
|
+
* Check if type `T` is exactly `boolean`.
|
|
9914
|
+
*
|
|
9915
|
+
* @return `expected` as `T` for type inspection.
|
|
9916
|
+
*/
|
|
9917
|
+
strictBoolean(expected) {
|
|
9918
|
+
return expected;
|
|
9919
|
+
},
|
|
9920
|
+
/**
|
|
9921
|
+
* Check if type `T` is `boolean` and boolean literals.
|
|
9922
|
+
*
|
|
9923
|
+
* @return `expected` as `T` for type inspection.
|
|
9924
|
+
*/
|
|
9925
|
+
boolean(expected) {
|
|
9926
|
+
return expected;
|
|
9927
|
+
},
|
|
9928
|
+
/**
|
|
9929
|
+
* Check if type `T` is exactly `true`.
|
|
9930
|
+
*
|
|
9931
|
+
* @return `expected` as `T` for type inspection.
|
|
9932
|
+
*/
|
|
9933
|
+
true(expected) {
|
|
9934
|
+
return expected;
|
|
9935
|
+
},
|
|
9936
|
+
/**
|
|
9937
|
+
* Check if type `T` is exactly `false`.
|
|
9938
|
+
*
|
|
9939
|
+
* @return `expected` as `T` for type inspection.
|
|
9940
|
+
*/
|
|
9941
|
+
false(expected) {
|
|
9942
|
+
return expected;
|
|
9943
|
+
},
|
|
9944
|
+
/**
|
|
9945
|
+
* Check if type `T` is exactly `number`.
|
|
9946
|
+
*
|
|
9947
|
+
* @return `expected` as `T` for type inspection.
|
|
9948
|
+
*/
|
|
9949
|
+
strictNumber(expected) {
|
|
9950
|
+
return expected;
|
|
9951
|
+
},
|
|
9952
|
+
/**
|
|
9953
|
+
* Check if type `T` is `number` or number literals.
|
|
9954
|
+
*
|
|
9955
|
+
* @return `expected` as `T` for type inspection.
|
|
9956
|
+
*/
|
|
9957
|
+
number(expected) {
|
|
9958
|
+
return expected;
|
|
9959
|
+
}
|
|
9607
9960
|
};
|
|
9608
|
-
//# sourceMappingURL=
|
|
9961
|
+
//# sourceMappingURL=test_type.js.map
|
|
9609
9962
|
|
|
9610
9963
|
/***/ }),
|
|
9611
9964
|
|
|
9612
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9965
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/as.js":
|
|
9613
9966
|
/*!***************************************************************************************!*\
|
|
9614
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9967
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/as.js ***!
|
|
9615
9968
|
\***************************************************************************************/
|
|
9616
9969
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9617
9970
|
|
|
@@ -9632,8 +9985,12 @@ exports.asAny = asAny;
|
|
|
9632
9985
|
*/
|
|
9633
9986
|
function amend(subject) {
|
|
9634
9987
|
return {
|
|
9635
|
-
union
|
|
9636
|
-
|
|
9988
|
+
union() {
|
|
9989
|
+
return subject;
|
|
9990
|
+
},
|
|
9991
|
+
intersect() {
|
|
9992
|
+
return subject;
|
|
9993
|
+
}
|
|
9637
9994
|
};
|
|
9638
9995
|
}
|
|
9639
9996
|
exports.amend = amend;
|
|
@@ -9641,9 +9998,9 @@ exports.amend = amend;
|
|
|
9641
9998
|
|
|
9642
9999
|
/***/ }),
|
|
9643
10000
|
|
|
9644
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
10001
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/index.js":
|
|
9645
10002
|
/*!******************************************************************************************!*\
|
|
9646
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
10003
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/index.js ***!
|
|
9647
10004
|
\******************************************************************************************/
|
|
9648
10005
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9649
10006
|
|
|
@@ -9664,11 +10021,35 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9664
10021
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9665
10022
|
};
|
|
9666
10023
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9667
|
-
__exportStar(__webpack_require__(/*! ./as.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
10024
|
+
__exportStar(__webpack_require__(/*! ./as.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/as.js"), exports);
|
|
10025
|
+
__exportStar(__webpack_require__(/*! ./inspect.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/inspect.js"), exports);
|
|
9668
10026
|
//# sourceMappingURL=index.js.map
|
|
9669
10027
|
|
|
9670
10028
|
/***/ }),
|
|
9671
10029
|
|
|
10030
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/inspect.js":
|
|
10031
|
+
/*!********************************************************************************************!*\
|
|
10032
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/inspect.js ***!
|
|
10033
|
+
\********************************************************************************************/
|
|
10034
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
10035
|
+
|
|
10036
|
+
"use strict";
|
|
10037
|
+
|
|
10038
|
+
/* eslint-disable no-console */
|
|
10039
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10040
|
+
exports.inspect = void 0;
|
|
10041
|
+
/**
|
|
10042
|
+
* Inspects the value and returns it.
|
|
10043
|
+
*/
|
|
10044
|
+
function inspect(value, inspector = console.dir) {
|
|
10045
|
+
inspector(value);
|
|
10046
|
+
return value;
|
|
10047
|
+
}
|
|
10048
|
+
exports.inspect = inspect;
|
|
10049
|
+
//# sourceMappingURL=inspect.js.map
|
|
10050
|
+
|
|
10051
|
+
/***/ }),
|
|
10052
|
+
|
|
9672
10053
|
/***/ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js":
|
|
9673
10054
|
/*!************************************************************************************!*\
|
|
9674
10055
|
!*** ../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js ***!
|