standard-log 11.5.1 → 11.5.2
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/cjs/console.d.ts +3 -3
- package/cjs/console.d.ts.map +1 -1
- package/cjs/console.js +17 -8
- 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.map +1 -1
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/logLevels.d.ts.map +1 -1
- package/cjs/logLevels.js.map +1 -1
- package/cjs/logStore.d.ts.map +1 -1
- package/cjs/logStore.js.map +1 -1
- package/cjs/logger.d.ts.map +1 -1
- package/cjs/logger.js +15 -13
- 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.map +1 -1
- package/cjs/standardLog.ctx.js.map +1 -1
- package/cjs/standardLog.d.ts +2 -2
- package/cjs/standardLog.d.ts.map +1 -1
- package/cjs/standardLog.js +19 -14
- package/cjs/standardLog.js.map +1 -1
- 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 +1090 -700
- 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 +167 -113
- 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 +20 -9
- 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.map +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/esm/logLevels.d.ts.map +1 -1
- package/esm/logLevels.js.map +1 -1
- package/esm/logStore.d.ts.map +1 -1
- package/esm/logStore.js.map +1 -1
- package/esm/logger.d.ts.map +1 -1
- package/esm/logger.js +1 -1
- 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.map +1 -1
- package/esm/standardLog.ctx.js.map +1 -1
- package/esm/standardLog.d.ts +2 -2
- package/esm/standardLog.d.ts.map +1 -1
- package/esm/standardLog.js +23 -18
- package/esm/standardLog.js.map +1 -1
- 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 +54 -45
- package/ts/errors.ts +6 -6
- package/ts/formatter.ts +18 -18
- package/ts/index.ts +21 -6
- package/ts/logLevels.ts +90 -91
- package/ts/logStore.ts +46 -37
- package/ts/logger.ts +67 -57
- package/ts/memory.ts +66 -54
- package/ts/platform.ts +2 -2
- package/ts/standardLog.ctx.ts +2 -2
- package/ts/standardLog.ts +113 -94
- package/ts/types.ts +72 -62
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
5827
|
var logLevels_js_1 = __webpack_require__(/*! ./logLevels.js */ "./ts/logLevels.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 <= logLevels_js_1.logLevels.error:
|
|
5835
|
+
return 'error';
|
|
5836
|
+
case level <= logLevels_js_1.logLevels.warn:
|
|
5837
|
+
return 'warn';
|
|
5838
|
+
case level <= logLevels_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
|
*/
|
|
@@ -6200,7 +6212,7 @@ exports.DEFAULT_LOG_METHOD_NAMES = [
|
|
|
6200
6212
|
|
|
6201
6213
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6202
6214
|
exports.logLevelStore = exports.createLogStore = void 0;
|
|
6203
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
6215
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
6204
6216
|
var console_js_1 = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
6205
6217
|
var logLevels_js_1 = __webpack_require__(/*! ./logLevels.js */ "./ts/logLevels.ts");
|
|
6206
6218
|
function createLogStore(options) {
|
|
@@ -6287,19 +6299,21 @@ function createLogger(store, id, options) {
|
|
|
6287
6299
|
id: { value: id, writable: false },
|
|
6288
6300
|
count: {
|
|
6289
6301
|
writable: false,
|
|
6290
|
-
value: (function (counter) {
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6302
|
+
value: (function (counter) {
|
|
6303
|
+
return function () {
|
|
6304
|
+
var args = [];
|
|
6305
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
6306
|
+
args[_i] = arguments[_i];
|
|
6307
|
+
}
|
|
6308
|
+
if (shouldLog(store, logLevels_js_1.logLevels.debug, logger.level))
|
|
6309
|
+
write({
|
|
6310
|
+
id: id,
|
|
6311
|
+
level: logLevels_js_1.logLevels.debug,
|
|
6312
|
+
args: __spreadArray([++counter], args, true),
|
|
6313
|
+
timestamp: new Date()
|
|
6314
|
+
});
|
|
6315
|
+
};
|
|
6316
|
+
})(0)
|
|
6303
6317
|
},
|
|
6304
6318
|
on: {
|
|
6305
6319
|
writable: false,
|
|
@@ -6361,18 +6375,19 @@ function shouldLog(store, targetLevel, loggerLevel) {
|
|
|
6361
6375
|
|
|
6362
6376
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6363
6377
|
exports.createMemoryWithConsoleLogReporter = exports.createMemoryLogReporter = exports.toMessageWithLevel = void 0;
|
|
6364
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
6378
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
6365
6379
|
var platform_js_1 = __webpack_require__(/*! ./platform.js */ "./ts/platform.browser.ts");
|
|
6366
6380
|
var formatter_js_1 = __webpack_require__(/*! ./formatter.js */ "./ts/formatter.ts");
|
|
6367
6381
|
var console_js_1 = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
6368
6382
|
function toMessageWithLevel(logs) {
|
|
6369
|
-
return logs
|
|
6383
|
+
return (logs
|
|
6384
|
+
.map(platform_js_1.toInspectLogEntry)
|
|
6370
6385
|
.map(function (log) { return "".concat((0, formatter_js_1.formatLogLevel)(log.level), " ").concat(log.args.join(' ')); })
|
|
6371
6386
|
.join('\n')
|
|
6372
6387
|
// if it has more than this log,
|
|
6373
6388
|
// we assume it is running under tests,
|
|
6374
6389
|
// and remove this log to simplify testing.
|
|
6375
|
-
.replace(/^\(WARN\) already configured for test, ignoring config\(\) call\n/, '');
|
|
6390
|
+
.replace(/^\(WARN\) already configured for test, ignoring config\(\) call\n/, ''));
|
|
6376
6391
|
}
|
|
6377
6392
|
exports.toMessageWithLevel = toMessageWithLevel;
|
|
6378
6393
|
function createMemoryLogReporter(options) {
|
|
@@ -6384,8 +6399,12 @@ function buildMemoryReporter(options) {
|
|
|
6384
6399
|
var logs = [];
|
|
6385
6400
|
return {
|
|
6386
6401
|
id: id,
|
|
6387
|
-
get formatter() {
|
|
6388
|
-
|
|
6402
|
+
get formatter() {
|
|
6403
|
+
return formatter;
|
|
6404
|
+
},
|
|
6405
|
+
get filter() {
|
|
6406
|
+
return filter;
|
|
6407
|
+
},
|
|
6389
6408
|
logs: logs,
|
|
6390
6409
|
write: function (entry) {
|
|
6391
6410
|
if (filter && !filter(entry))
|
|
@@ -6396,14 +6415,16 @@ function buildMemoryReporter(options) {
|
|
|
6396
6415
|
return this.getLogMessages().join('\n');
|
|
6397
6416
|
},
|
|
6398
6417
|
getLogMessages: function () {
|
|
6399
|
-
return logs.map(platform_js_1.toInspectLogEntry)
|
|
6400
|
-
.map(function (log) { return log.args.join(' '); });
|
|
6418
|
+
return logs.map(platform_js_1.toInspectLogEntry).map(function (log) { return log.args.join(' '); });
|
|
6401
6419
|
},
|
|
6402
6420
|
getLogMessagesWithIdAndLevel: function () {
|
|
6403
|
-
return logs
|
|
6421
|
+
return logs
|
|
6422
|
+
.map(platform_js_1.toInspectLogEntry)
|
|
6404
6423
|
.map(function (log) { return "".concat(log.id, " ").concat((0, formatter_js_1.formatLogLevel)(log.level), " ").concat(log.args.join(' ')); });
|
|
6405
6424
|
},
|
|
6406
|
-
getLogMessageWithLevel: function () {
|
|
6425
|
+
getLogMessageWithLevel: function () {
|
|
6426
|
+
return toMessageWithLevel(logs);
|
|
6427
|
+
},
|
|
6407
6428
|
/**
|
|
6408
6429
|
* emit the saved log to console for easy debugging
|
|
6409
6430
|
*/
|
|
@@ -6433,7 +6454,7 @@ exports.createMemoryWithConsoleLogReporter = createMemoryWithConsoleLogReporter;
|
|
|
6433
6454
|
|
|
6434
6455
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6435
6456
|
exports.polyfill = exports.toInspectLogEntry = void 0;
|
|
6436
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
6457
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
6437
6458
|
var toInspectLogEntry = function (e) { return e; };
|
|
6438
6459
|
exports.toInspectLogEntry = toInspectLogEntry;
|
|
6439
6460
|
exports.polyfill = (0, type_plus_1.record)();
|
|
@@ -6451,7 +6472,7 @@ exports.polyfill = (0, type_plus_1.record)();
|
|
|
6451
6472
|
|
|
6452
6473
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6453
6474
|
exports.ctx = void 0;
|
|
6454
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
6475
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
6455
6476
|
exports.ctx = (0, type_plus_1.record)();
|
|
6456
6477
|
|
|
6457
6478
|
|
|
@@ -6478,7 +6499,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
6478
6499
|
};
|
|
6479
6500
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6480
6501
|
exports.configGlobal = exports.getLogger = exports.suppressLogs = exports.createStandardLogForTest = exports.createStandardLogClosure = exports.createStandardLog = void 0;
|
|
6481
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@5.0
|
|
6502
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js");
|
|
6482
6503
|
var logger_js_1 = __webpack_require__(/*! ./logger.js */ "./ts/logger.ts");
|
|
6483
6504
|
var logLevels_js_1 = __webpack_require__(/*! ./logLevels.js */ "./ts/logLevels.ts");
|
|
6484
6505
|
var logStore_js_1 = __webpack_require__(/*! ./logStore.js */ "./ts/logStore.ts");
|
|
@@ -6502,13 +6523,17 @@ function createStandardLogClosure(options) {
|
|
|
6502
6523
|
// TODO reporter.id must not be empty
|
|
6503
6524
|
var store = (0, logStore_js_1.createLogStore)((0, type_plus_1.required)({ logLevel: logLevels_js_1.logLevels.info }, options));
|
|
6504
6525
|
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 = logLevels_js_1.DEFAULT_LOG_METHOD_NAMES
|
|
6506
|
-
|
|
6507
|
-
|
|
6526
|
+
var logMethods = logLevels_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([
|
|
6527
|
+
'on',
|
|
6528
|
+
'count',
|
|
6529
|
+
'write'
|
|
6530
|
+
]);
|
|
6508
6531
|
return {
|
|
6509
6532
|
store: store,
|
|
6510
6533
|
standardLog: {
|
|
6511
|
-
get logLevel() {
|
|
6534
|
+
get logLevel() {
|
|
6535
|
+
return store.logLevel;
|
|
6536
|
+
},
|
|
6512
6537
|
toLogLevelName: function (level) {
|
|
6513
6538
|
return store.logLevelStore.getName(level);
|
|
6514
6539
|
},
|
|
@@ -6518,7 +6543,7 @@ function createStandardLogClosure(options) {
|
|
|
6518
6543
|
getLogger: function (id, options) {
|
|
6519
6544
|
if (store.loggers[id])
|
|
6520
6545
|
return store.loggers[id];
|
|
6521
|
-
return store.loggers[id] = (0, logger_js_1.createLogger)(store, id, __assign({ ssf: this.getLogger }, options));
|
|
6546
|
+
return (store.loggers[id] = (0, logger_js_1.createLogger)(store, id, __assign({ ssf: this.getLogger }, options)));
|
|
6522
6547
|
},
|
|
6523
6548
|
getNonConsoleLogger: function (id, options) {
|
|
6524
6549
|
if (store.nonConsoleLoggers[id])
|
|
@@ -6526,14 +6551,15 @@ function createStandardLogClosure(options) {
|
|
|
6526
6551
|
if (store.loggers[id]) {
|
|
6527
6552
|
var log = this.getLogger('standard-log');
|
|
6528
6553
|
log.warn("attempt to create a non-console logger with existing id ('".concat(id, "'), ignoring"));
|
|
6529
|
-
return store.nonConsoleLoggers[id] = createDummyLogger(logMethods);
|
|
6554
|
+
return (store.nonConsoleLoggers[id] = createDummyLogger(logMethods));
|
|
6530
6555
|
}
|
|
6531
|
-
return store.nonConsoleLoggers[id] =
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6556
|
+
return (store.nonConsoleLoggers[id] =
|
|
6557
|
+
nonConsoleReporters.length === 0
|
|
6558
|
+
? createDummyLogger(logMethods)
|
|
6559
|
+
: (0, logger_js_1.createLogger)(store, id, __assign(__assign({ ssf: this.getNonConsoleLogger }, options), { writeTo: function (reporterId) {
|
|
6560
|
+
return nonConsoleReporters.indexOf(reporterId) >= 0;
|
|
6561
|
+
} })));
|
|
6562
|
+
}
|
|
6537
6563
|
}
|
|
6538
6564
|
};
|
|
6539
6565
|
}
|
|
@@ -6557,9 +6583,9 @@ function suppressLogs(block) {
|
|
|
6557
6583
|
logs[_i - 1] = arguments[_i];
|
|
6558
6584
|
}
|
|
6559
6585
|
var origLevels = logs.map(function (l) { return l.level; });
|
|
6560
|
-
logs.forEach(function (l) { return l.level = logLevels_js_1.logLevels.none; });
|
|
6586
|
+
logs.forEach(function (l) { return (l.level = logLevels_js_1.logLevels.none); });
|
|
6561
6587
|
var result = block();
|
|
6562
|
-
logs.forEach(function (l, i) { return l.level = origLevels[i]; });
|
|
6588
|
+
logs.forEach(function (l, i) { return (l.level = origLevels[i]); });
|
|
6563
6589
|
return result;
|
|
6564
6590
|
}
|
|
6565
6591
|
exports.suppressLogs = suppressLogs;
|
|
@@ -6656,15 +6682,14 @@ exports.upperCase = upperCase;
|
|
|
6656
6682
|
|
|
6657
6683
|
/***/ }),
|
|
6658
6684
|
|
|
6659
|
-
/***/ "../../node_modules/.pnpm/iso-error@
|
|
6685
|
+
/***/ "../../node_modules/.pnpm/iso-error@6.0.1/node_modules/iso-error/cjs/index.js":
|
|
6660
6686
|
/*!************************************************************************************!*\
|
|
6661
|
-
!*** ../../node_modules/.pnpm/iso-error@
|
|
6687
|
+
!*** ../../node_modules/.pnpm/iso-error@6.0.1/node_modules/iso-error/cjs/index.js ***!
|
|
6662
6688
|
\************************************************************************************/
|
|
6663
6689
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6664
6690
|
|
|
6665
6691
|
"use strict";
|
|
6666
6692
|
|
|
6667
|
-
/* eslint-disable @typescript-eslint/unbound-method */
|
|
6668
6693
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
6669
6694
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
6670
6695
|
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 +6706,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
6681
6706
|
}
|
|
6682
6707
|
return t;
|
|
6683
6708
|
};
|
|
6684
|
-
var
|
|
6709
|
+
var _a, _IsoError_hasCause, _IsoError_toIsoError;
|
|
6685
6710
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6686
6711
|
exports.isAggregateError = exports.ModuleError = exports.IsoError = exports.SerializableConverter = void 0;
|
|
6687
6712
|
//#region captureStackTrace polyfill
|
|
@@ -6696,7 +6721,9 @@ if (!Error.captureStackTrace) {
|
|
|
6696
6721
|
defineStack(this, container.stack);
|
|
6697
6722
|
return container.stack;
|
|
6698
6723
|
},
|
|
6699
|
-
set: function (stack) {
|
|
6724
|
+
set: function (stack) {
|
|
6725
|
+
defineStack(error, stack);
|
|
6726
|
+
}
|
|
6700
6727
|
});
|
|
6701
6728
|
};
|
|
6702
6729
|
}
|
|
@@ -6705,70 +6732,88 @@ function defineStack(target, value) {
|
|
|
6705
6732
|
Object.defineProperty(target, 'stack', {
|
|
6706
6733
|
configurable: true,
|
|
6707
6734
|
value,
|
|
6708
|
-
writable: true
|
|
6735
|
+
writable: true
|
|
6709
6736
|
});
|
|
6710
6737
|
}
|
|
6711
6738
|
class SerializableConverter {
|
|
6712
6739
|
constructor() {
|
|
6713
|
-
|
|
6714
|
-
|
|
6740
|
+
Object.defineProperty(this, "plugins", {
|
|
6741
|
+
enumerable: true,
|
|
6742
|
+
configurable: true,
|
|
6743
|
+
writable: true,
|
|
6744
|
+
value: []
|
|
6745
|
+
});
|
|
6715
6746
|
}
|
|
6716
6747
|
addPlugin(plugin) {
|
|
6717
|
-
|
|
6748
|
+
this.plugins.unshift(plugin);
|
|
6718
6749
|
}
|
|
6719
6750
|
/**
|
|
6720
6751
|
* Deserialize an `Error` from `Serializable`
|
|
6721
6752
|
*/
|
|
6722
6753
|
fromSerializable(json, options) {
|
|
6723
|
-
const err =
|
|
6754
|
+
const err = this.deserializeError(json);
|
|
6724
6755
|
Error.captureStackTrace(err, options === null || options === void 0 ? void 0 : options.ssf);
|
|
6725
6756
|
return err;
|
|
6726
6757
|
}
|
|
6758
|
+
fromSerializableImpl(json) {
|
|
6759
|
+
if (json.name === 'AggregateError') {
|
|
6760
|
+
const _b = json, { message, errors } = _b, rest = __rest(_b, ["message", "errors"]);
|
|
6761
|
+
// @ts-ignore
|
|
6762
|
+
// istanbul ignore next
|
|
6763
|
+
if (__webpack_require__.g.AggregateError) {
|
|
6764
|
+
return Object.assign(new AggregateError(errors, message), rest);
|
|
6765
|
+
}
|
|
6766
|
+
else {
|
|
6767
|
+
return Object.assign(new Error(message), Object.assign(Object.assign({}, rest), { errors }));
|
|
6768
|
+
}
|
|
6769
|
+
}
|
|
6770
|
+
const { message, cause } = json, rest = __rest(json, ["message", "cause"]);
|
|
6771
|
+
const causeError = cause ? this.deserializeError(cause) : undefined;
|
|
6772
|
+
if (json.name === 'Error') {
|
|
6773
|
+
return Object.assign(new Error(message), causeError ? Object.assign(Object.assign({}, rest), { cause: causeError }) : rest);
|
|
6774
|
+
}
|
|
6775
|
+
// @ts-ignore
|
|
6776
|
+
return Object.assign(new IsoError(message, causeError ? { cause: causeError } : undefined), rest);
|
|
6777
|
+
}
|
|
6778
|
+
deserializeError(json) {
|
|
6779
|
+
let err = undefined;
|
|
6780
|
+
for (const { fromSerializable } of this.plugins) {
|
|
6781
|
+
err = fromSerializable(json);
|
|
6782
|
+
if (err)
|
|
6783
|
+
break;
|
|
6784
|
+
}
|
|
6785
|
+
return err || this.fromSerializableImpl(json);
|
|
6786
|
+
}
|
|
6727
6787
|
/**
|
|
6728
6788
|
* Serialize `Error` to `Serializable`
|
|
6729
6789
|
*/
|
|
6730
6790
|
toSerializable(err) {
|
|
6731
|
-
return
|
|
6791
|
+
return (this.plugins.reduce((p, s) => p || s.toSerializable(err), undefined) || this.toSerializableImpl(err));
|
|
6732
6792
|
}
|
|
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);
|
|
6793
|
+
toSerializableImpl(err) {
|
|
6794
|
+
if (isAggregateError(err)) {
|
|
6795
|
+
return Object.assign(Object.assign({}, err), { name: err.constructor.name, message: err.message, errors: err.errors.map(this.toSerializableImpl) });
|
|
6742
6796
|
}
|
|
6743
|
-
|
|
6744
|
-
|
|
6797
|
+
if (err instanceof Error) {
|
|
6798
|
+
const { message, cause } = err;
|
|
6799
|
+
return cause
|
|
6800
|
+
? 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
6801
|
}
|
|
6802
|
+
return err;
|
|
6746
6803
|
}
|
|
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;
|
|
6804
|
+
}
|
|
6805
|
+
exports.SerializableConverter = SerializableConverter;
|
|
6806
|
+
const getCircularReplacer = () => {
|
|
6807
|
+
const seen = new WeakSet();
|
|
6808
|
+
return (_, value) => {
|
|
6809
|
+
if (typeof value === 'object' && value !== null) {
|
|
6810
|
+
if (seen.has(value)) {
|
|
6811
|
+
return;
|
|
6812
|
+
}
|
|
6813
|
+
seen.add(value);
|
|
6814
|
+
}
|
|
6815
|
+
return value;
|
|
6816
|
+
};
|
|
6772
6817
|
};
|
|
6773
6818
|
/**
|
|
6774
6819
|
* Isomorphic Error that works across physical boundary.
|
|
@@ -6787,7 +6832,7 @@ class IsoError extends Error {
|
|
|
6787
6832
|
return this.serialize(err);
|
|
6788
6833
|
}
|
|
6789
6834
|
static serialize(err) {
|
|
6790
|
-
return JSON.stringify(this.toSerializable(err));
|
|
6835
|
+
return JSON.stringify(this.toSerializable(err), getCircularReplacer());
|
|
6791
6836
|
}
|
|
6792
6837
|
static toSerializable(err) {
|
|
6793
6838
|
return this.converter.toSerializable(err);
|
|
@@ -6823,11 +6868,15 @@ class IsoError extends Error {
|
|
|
6823
6868
|
messages.push(`${err.name}: ${err.message}`);
|
|
6824
6869
|
}
|
|
6825
6870
|
if (isAggregateError(err)) {
|
|
6826
|
-
err.errors.forEach(e => messages.push(...this.trace(e)
|
|
6871
|
+
err.errors.forEach(e => messages.push(...this.trace(e)
|
|
6872
|
+
.split('\n')
|
|
6873
|
+
.map(s => ' ' + s)));
|
|
6827
6874
|
}
|
|
6828
6875
|
if (err instanceof Error) {
|
|
6829
6876
|
if (__classPrivateFieldGet(this, _a, "m", _IsoError_hasCause).call(this, err))
|
|
6830
|
-
messages.push(...this.trace(err.cause)
|
|
6877
|
+
messages.push(...this.trace(err.cause)
|
|
6878
|
+
.split('\n')
|
|
6879
|
+
.map(s => ' ' + s));
|
|
6831
6880
|
}
|
|
6832
6881
|
else {
|
|
6833
6882
|
messages.push(typeof err === 'string' ? err : JSON.stringify(err));
|
|
@@ -6871,19 +6920,21 @@ class IsoError extends Error {
|
|
|
6871
6920
|
if (options === null || options === void 0 ? void 0 : options.ssf)
|
|
6872
6921
|
Error.captureStackTrace(this, options.ssf);
|
|
6873
6922
|
}
|
|
6874
|
-
toString() {
|
|
6875
|
-
|
|
6923
|
+
toString() {
|
|
6924
|
+
return IsoError.serialize(this);
|
|
6925
|
+
}
|
|
6926
|
+
trace() {
|
|
6927
|
+
return IsoError.trace(this);
|
|
6928
|
+
}
|
|
6876
6929
|
}
|
|
6877
|
-
exports.IsoError = IsoError;
|
|
6878
6930
|
_a = IsoError, _IsoError_hasCause = function _IsoError_hasCause(x) {
|
|
6879
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
6880
6931
|
return !!x.cause;
|
|
6881
6932
|
}, _IsoError_toIsoError = function _IsoError_toIsoError(err) {
|
|
6882
|
-
|
|
6883
|
-
return err;
|
|
6933
|
+
var _b;
|
|
6884
6934
|
// When the error is an internal error from deserialization,
|
|
6885
|
-
// the err.constructor.name is object
|
|
6886
|
-
|
|
6935
|
+
// the err.constructor.name is object.
|
|
6936
|
+
// I have to to Object.assign to keep the err instance and its stack trace.
|
|
6937
|
+
return Object.assign(err, { name: (_b = err.name) !== null && _b !== void 0 ? _b : err.constructor.name });
|
|
6887
6938
|
};
|
|
6888
6939
|
Object.defineProperty(IsoError, "converter", {
|
|
6889
6940
|
enumerable: true,
|
|
@@ -6891,6 +6942,7 @@ Object.defineProperty(IsoError, "converter", {
|
|
|
6891
6942
|
writable: true,
|
|
6892
6943
|
value: new SerializableConverter()
|
|
6893
6944
|
});
|
|
6945
|
+
exports.IsoError = IsoError;
|
|
6894
6946
|
/**
|
|
6895
6947
|
* An IsoError with a module property.
|
|
6896
6948
|
*/
|
|
@@ -6917,9 +6969,9 @@ exports.isAggregateError = isAggregateError;
|
|
|
6917
6969
|
|
|
6918
6970
|
/***/ }),
|
|
6919
6971
|
|
|
6920
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
6972
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/constants.js":
|
|
6921
6973
|
/*!*************************************************************************************!*\
|
|
6922
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
6974
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/constants.js ***!
|
|
6923
6975
|
\*************************************************************************************/
|
|
6924
6976
|
/***/ (function(__unused_webpack_module, exports) {
|
|
6925
6977
|
|
|
@@ -6933,9 +6985,9 @@ exports.defaultOptions = { maxLength: 120, references: [] };
|
|
|
6933
6985
|
|
|
6934
6986
|
/***/ }),
|
|
6935
6987
|
|
|
6936
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
6988
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js":
|
|
6937
6989
|
/*!****************************************************************************************!*\
|
|
6938
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
6990
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js ***!
|
|
6939
6991
|
\****************************************************************************************/
|
|
6940
6992
|
/***/ (function(__unused_webpack_module, exports) {
|
|
6941
6993
|
|
|
@@ -6951,9 +7003,9 @@ exports.hasTersifyFn = hasTersifyFn;
|
|
|
6951
7003
|
|
|
6952
7004
|
/***/ }),
|
|
6953
7005
|
|
|
6954
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7006
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/index.js":
|
|
6955
7007
|
/*!*********************************************************************************!*\
|
|
6956
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7008
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/index.js ***!
|
|
6957
7009
|
\*********************************************************************************/
|
|
6958
7010
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6959
7011
|
|
|
@@ -6975,17 +7027,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6975
7027
|
};
|
|
6976
7028
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6977
7029
|
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.
|
|
7030
|
+
__exportStar(__webpack_require__(/*! ./tersible.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersible.js"), exports);
|
|
7031
|
+
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js");
|
|
6980
7032
|
Object.defineProperty(exports, "tersify", ({ enumerable: true, get: function () { return tersify_js_1.tersify; } }));
|
|
6981
|
-
__exportStar(__webpack_require__(/*! ./types.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7033
|
+
__exportStar(__webpack_require__(/*! ./types.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js"), exports);
|
|
6982
7034
|
//# sourceMappingURL=index.js.map
|
|
6983
7035
|
|
|
6984
7036
|
/***/ }),
|
|
6985
7037
|
|
|
6986
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7038
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersible.js":
|
|
6987
7039
|
/*!************************************************************************************!*\
|
|
6988
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7040
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersible.js ***!
|
|
6989
7041
|
\************************************************************************************/
|
|
6990
7042
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6991
7043
|
|
|
@@ -7008,7 +7060,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
7008
7060
|
})();
|
|
7009
7061
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7010
7062
|
exports.tersible = exports.Tersiblized = void 0;
|
|
7011
|
-
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7063
|
+
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js");
|
|
7012
7064
|
/**
|
|
7013
7065
|
* Create a Tersible mixin class
|
|
7014
7066
|
* NOTE: `this` in `tersify` is not typed.
|
|
@@ -7049,11 +7101,13 @@ exports.Tersiblized = Tersiblized;
|
|
|
7049
7101
|
* How can I "clone" a function or class?
|
|
7050
7102
|
*/
|
|
7051
7103
|
function tersible(subject, tersify) {
|
|
7052
|
-
var tersifyFn = tersify === undefined
|
|
7053
|
-
tersify_js_1.defaultTersify
|
|
7054
|
-
typeof tersify === 'string'
|
|
7055
|
-
function () {
|
|
7056
|
-
|
|
7104
|
+
var tersifyFn = tersify === undefined
|
|
7105
|
+
? tersify_js_1.defaultTersify
|
|
7106
|
+
: typeof tersify === 'string'
|
|
7107
|
+
? function () {
|
|
7108
|
+
return tersify;
|
|
7109
|
+
}
|
|
7110
|
+
: tersify;
|
|
7057
7111
|
Object.defineProperty(subject, 'tersify', {
|
|
7058
7112
|
value: tersifyFn,
|
|
7059
7113
|
enumerable: false,
|
|
@@ -7066,9 +7120,9 @@ exports.tersible = tersible;
|
|
|
7066
7120
|
|
|
7067
7121
|
/***/ }),
|
|
7068
7122
|
|
|
7069
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7123
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js":
|
|
7070
7124
|
/*!***********************************************************************************!*\
|
|
7071
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7125
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js ***!
|
|
7072
7126
|
\***********************************************************************************/
|
|
7073
7127
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
7074
7128
|
|
|
@@ -7101,10 +7155,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7101
7155
|
exports.tersify = exports.defaultTersify = void 0;
|
|
7102
7156
|
var is_buffer_1 = __importDefault(__webpack_require__(/*! is-buffer */ "../../node_modules/.pnpm/is-buffer@2.0.5/node_modules/is-buffer/index.js"));
|
|
7103
7157
|
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.
|
|
7158
|
+
var constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/constants.js");
|
|
7159
|
+
var hasTersifyFn_js_1 = __webpack_require__(/*! ./hasTersifyFn.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js");
|
|
7160
|
+
var tersifyFunction_js_1 = __webpack_require__(/*! ./tersifyFunction.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js");
|
|
7161
|
+
var trim_js_1 = __webpack_require__(/*! ./trim.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js");
|
|
7108
7162
|
function defaultTersify(options) {
|
|
7109
7163
|
return tersify(this, options);
|
|
7110
7164
|
}
|
|
@@ -7141,21 +7195,21 @@ function getType(value) {
|
|
|
7141
7195
|
return type;
|
|
7142
7196
|
}
|
|
7143
7197
|
var tersifyFactory = {
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7198
|
+
undefined: tersifyLiteral,
|
|
7199
|
+
null: tersifyLiteral,
|
|
7200
|
+
boolean: tersifyLiteral,
|
|
7201
|
+
number: tersifyLiteral,
|
|
7202
|
+
bigint: tersifyBigint,
|
|
7203
|
+
instance: tersifyInstance,
|
|
7204
|
+
string: tersifyString,
|
|
7205
|
+
symbol: tersifySymbol,
|
|
7206
|
+
function: tersifyFunction_js_1.tersifyFunction,
|
|
7207
|
+
object: tersifyObject,
|
|
7208
|
+
Buffer: tersifyBuffer,
|
|
7209
|
+
Date: tersifyDate,
|
|
7210
|
+
RegExp: tersifyRegExp,
|
|
7211
|
+
Array: tersifyArray,
|
|
7212
|
+
Error: tersifyError
|
|
7159
7213
|
};
|
|
7160
7214
|
function tersifyLiteral(context, node, length) {
|
|
7161
7215
|
return (0, trim_js_1.trim)(context, String(node), length);
|
|
@@ -7242,10 +7296,11 @@ function tersifyObject(context, value, length) {
|
|
|
7242
7296
|
var hasSkippedProps = keys.length > props.length;
|
|
7243
7297
|
var content = hasSkippedProps ? props.join(', ') + ' ' : props.join(', ');
|
|
7244
7298
|
var trimmedContent = (0, trim_js_1.trim)(context, content, length - bracketLen);
|
|
7245
|
-
return keys.length === 0
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7299
|
+
return keys.length === 0
|
|
7300
|
+
? '{}'
|
|
7301
|
+
: trimmedContent.length === 0
|
|
7302
|
+
? (0, trim_js_1.trim)(context, "{ }", length)
|
|
7303
|
+
: "{ ".concat(trimmedContent, " }");
|
|
7249
7304
|
}
|
|
7250
7305
|
function tersifyInstance(context, value, length) {
|
|
7251
7306
|
var _a, _b;
|
|
@@ -7259,19 +7314,24 @@ function tersifyInstance(context, value, length) {
|
|
|
7259
7314
|
}
|
|
7260
7315
|
if (length <= 4)
|
|
7261
7316
|
switch (length) {
|
|
7262
|
-
case 4:
|
|
7263
|
-
|
|
7264
|
-
case
|
|
7265
|
-
|
|
7266
|
-
case
|
|
7317
|
+
case 4:
|
|
7318
|
+
return '. {}';
|
|
7319
|
+
case 3:
|
|
7320
|
+
return '...';
|
|
7321
|
+
case 2:
|
|
7322
|
+
return '..';
|
|
7323
|
+
case 1:
|
|
7324
|
+
return '.';
|
|
7325
|
+
case 0:
|
|
7326
|
+
return '';
|
|
7267
7327
|
}
|
|
7268
7328
|
var proto = Object.getPrototypeOf(value);
|
|
7269
7329
|
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
7330
|
var bracketLen = 2; // `{}`
|
|
7271
7331
|
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];
|
|
7332
|
+
var _c = length < name.length + spaceLen + bracketLen
|
|
7333
|
+
? [length - spaceLen - bracketLen, bracketLen]
|
|
7334
|
+
: [name.length, length - name.length - spaceLen], nameLength = _c[0], valueLength = _c[1];
|
|
7275
7335
|
var nameStr = nameLength ? "".concat((0, trim_js_1.trim)(context, name, nameLength), " ") : '';
|
|
7276
7336
|
var remaining = valueLength;
|
|
7277
7337
|
var keys = Object.keys(value);
|
|
@@ -7287,10 +7347,11 @@ function tersifyInstance(context, value, length) {
|
|
|
7287
7347
|
var hasSkippedProps = keys.length > props.length;
|
|
7288
7348
|
var content = hasSkippedProps ? props.join(', ') + ' ' : props.join(', ');
|
|
7289
7349
|
var trimmedContent = (0, trim_js_1.trim)(context, content, valueLength - bracketLen - 2);
|
|
7290
|
-
return keys.length === 0
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7350
|
+
return keys.length === 0
|
|
7351
|
+
? "".concat(nameStr, "{}")
|
|
7352
|
+
: trimmedContent.length === 0
|
|
7353
|
+
? (0, trim_js_1.trim)(context, "".concat(nameStr, "{ }"), length)
|
|
7354
|
+
: "".concat(nameStr, "{ ").concat(trimmedContent, " }");
|
|
7294
7355
|
}
|
|
7295
7356
|
function getPropStr(context, bag, key, length, isLastKey) {
|
|
7296
7357
|
var commaAndSpaceLen = isLastKey ? 0 : 2;
|
|
@@ -7308,7 +7369,7 @@ function getPropStr(context, bag, key, length, isLastKey) {
|
|
|
7308
7369
|
var value = bag[key];
|
|
7309
7370
|
if (typeof value === 'function') {
|
|
7310
7371
|
var fnLen = 2;
|
|
7311
|
-
if (
|
|
7372
|
+
if (/^(.*)\s?=>\s?/.test(value.toString())) {
|
|
7312
7373
|
var propValue = tersifyValue(__assign(__assign({}, context), { path: path }), value, length - key.length - commaAndSpaceLen - colonAndSpaceLen);
|
|
7313
7374
|
return "".concat(getPropKey(key), ": ").concat(propValue);
|
|
7314
7375
|
}
|
|
@@ -7332,9 +7393,9 @@ function getPropKey(key) {
|
|
|
7332
7393
|
|
|
7333
7394
|
/***/ }),
|
|
7334
7395
|
|
|
7335
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7396
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/index.js":
|
|
7336
7397
|
/*!**********************************************************************************************!*\
|
|
7337
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7398
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/index.js ***!
|
|
7338
7399
|
\**********************************************************************************************/
|
|
7339
7400
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
7340
7401
|
|
|
@@ -7355,14 +7416,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
7355
7416
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
7356
7417
|
};
|
|
7357
7418
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7358
|
-
__exportStar(__webpack_require__(/*! ./tersifyAcorn.js */ "../../node_modules/.pnpm/tersify@3.
|
|
7419
|
+
__exportStar(__webpack_require__(/*! ./tersifyAcorn.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/tersifyAcorn.js"), exports);
|
|
7359
7420
|
//# sourceMappingURL=index.js.map
|
|
7360
7421
|
|
|
7361
7422
|
/***/ }),
|
|
7362
7423
|
|
|
7363
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7424
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/isHigherBinaryOperatorOrder.js":
|
|
7364
7425
|
/*!********************************************************************************************************************!*\
|
|
7365
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7426
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/isHigherBinaryOperatorOrder.js ***!
|
|
7366
7427
|
\********************************************************************************************************************/
|
|
7367
7428
|
/***/ (function(__unused_webpack_module, exports) {
|
|
7368
7429
|
|
|
@@ -7404,14 +7465,25 @@ exports.isHigherOperatorOrder = isHigherOperatorOrder;
|
|
|
7404
7465
|
|
|
7405
7466
|
/***/ }),
|
|
7406
7467
|
|
|
7407
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
7468
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/tersifyAcorn.js":
|
|
7408
7469
|
/*!*****************************************************************************************************!*\
|
|
7409
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
7470
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/tersifyAcorn.js ***!
|
|
7410
7471
|
\*****************************************************************************************************/
|
|
7411
7472
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
7412
7473
|
|
|
7413
7474
|
"use strict";
|
|
7414
7475
|
|
|
7476
|
+
var __assign = (this && this.__assign) || function () {
|
|
7477
|
+
__assign = Object.assign || function(t) {
|
|
7478
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7479
|
+
s = arguments[i];
|
|
7480
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7481
|
+
t[p] = s[p];
|
|
7482
|
+
}
|
|
7483
|
+
return t;
|
|
7484
|
+
};
|
|
7485
|
+
return __assign.apply(this, arguments);
|
|
7486
|
+
};
|
|
7415
7487
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
7416
7488
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
7417
7489
|
if (ar || !(i in from)) {
|
|
@@ -7423,13 +7495,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
7423
7495
|
};
|
|
7424
7496
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7425
7497
|
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.
|
|
7498
|
+
var acorn_1 = __webpack_require__(/*! acorn */ "../../node_modules/.pnpm/acorn@8.8.2/node_modules/acorn/dist/acorn.js");
|
|
7499
|
+
var trim_js_1 = __webpack_require__(/*! ../trim.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js");
|
|
7500
|
+
var isHigherBinaryOperatorOrder_js_1 = __webpack_require__(/*! ./isHigherBinaryOperatorOrder.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/isHigherBinaryOperatorOrder.js");
|
|
7429
7501
|
function tersifyAcorn(context, value, length) {
|
|
7430
|
-
var
|
|
7431
|
-
var node = (0, acorn_1.parseExpressionAt)("(".concat(
|
|
7432
|
-
var result = tersifyAcornNode(context, node, length);
|
|
7502
|
+
var rawString = getFunctionString(value);
|
|
7503
|
+
var node = (0, acorn_1.parseExpressionAt)("(".concat(rawString, ")"), 0, { ecmaVersion: 2020 });
|
|
7504
|
+
var result = tersifyAcornNode(__assign(__assign({}, context), { rawString: rawString }), node, length);
|
|
7433
7505
|
return result;
|
|
7434
7506
|
}
|
|
7435
7507
|
exports.tersifyAcorn = tersifyAcorn;
|
|
@@ -7438,9 +7510,9 @@ function getFunctionString(value) {
|
|
|
7438
7510
|
var isAsync = fnStr.startsWith('async ');
|
|
7439
7511
|
var subject = isAsync ? fnStr.slice('async '.length) : fnStr;
|
|
7440
7512
|
var matches = /^([^\s\\)]+)\s?\(/.exec(subject);
|
|
7441
|
-
return matches &&
|
|
7442
|
-
"".concat(isAsync ? 'async ' : '', "function ").concat(fnStr)
|
|
7443
|
-
fnStr;
|
|
7513
|
+
return matches && matches[1] !== 'function' && matches[1] !== 'function*'
|
|
7514
|
+
? "".concat(isAsync ? 'async ' : '', "function ").concat(fnStr)
|
|
7515
|
+
: fnStr;
|
|
7444
7516
|
}
|
|
7445
7517
|
function tersifyAcornNode(context, node, length) {
|
|
7446
7518
|
if (!node)
|
|
@@ -7544,15 +7616,17 @@ function tersifyAcornNode(context, node, length) {
|
|
|
7544
7616
|
return tersifyChainExpression(context, node, length);
|
|
7545
7617
|
case 'MetaProperty':
|
|
7546
7618
|
return tersifyMetaProperty(context, node, length);
|
|
7619
|
+
case 'Super':
|
|
7620
|
+
return tersifySuperNode(context, node, length);
|
|
7547
7621
|
// istanbul ignore next
|
|
7548
7622
|
default:
|
|
7549
|
-
return tersifyUnknown(node);
|
|
7623
|
+
return tersifyUnknown(node, context.rawString);
|
|
7550
7624
|
}
|
|
7551
7625
|
}
|
|
7552
7626
|
// istanbul ignore next
|
|
7553
|
-
function tersifyUnknown(node) {
|
|
7627
|
+
function tersifyUnknown(node, rawString) {
|
|
7554
7628
|
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)));
|
|
7629
|
+
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
7630
|
return "<unsupported: ".concat(nodeType, ">");
|
|
7557
7631
|
}
|
|
7558
7632
|
function tersifyCatchClauseNode(context, node, length) {
|
|
@@ -7678,14 +7752,14 @@ function tersifyDoWhileStatementNode(context, node, length) {
|
|
|
7678
7752
|
function tersifyUnaryExpressionNode(context, node, length) {
|
|
7679
7753
|
if (['void', 'typeof'].indexOf(node.operator) !== -1)
|
|
7680
7754
|
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);
|
|
7755
|
+
return node.prefix
|
|
7756
|
+
? "".concat(node.operator).concat(tersifyAcornNode(context, node.argument, length))
|
|
7757
|
+
: "".concat(tersifyAcornNode(context, node.argument, length)).concat(node.operator);
|
|
7684
7758
|
}
|
|
7685
7759
|
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);
|
|
7760
|
+
return node.prefix
|
|
7761
|
+
? "".concat(node.operator).concat(tersifyAcornNode(context, node.argument, length))
|
|
7762
|
+
: "".concat(tersifyAcornNode(context, node.argument, length)).concat(node.operator);
|
|
7689
7763
|
}
|
|
7690
7764
|
function tersifyConditionalExpressionNode(context, node, length) {
|
|
7691
7765
|
var test = tersifyAcornNode(context, node.test, length);
|
|
@@ -7709,20 +7783,23 @@ function tersifyIfStatementNode(context, node, length) {
|
|
|
7709
7783
|
return "if (".concat(test, ") ").concat(consequent);
|
|
7710
7784
|
}
|
|
7711
7785
|
function tersifyBinaryExpressionNode(context, node, length) {
|
|
7712
|
-
if ((node.left.type === 'BinaryExpression' || node.left.type === 'LogicalExpression') &&
|
|
7786
|
+
if ((node.left.type === 'BinaryExpression' || node.left.type === 'LogicalExpression') &&
|
|
7787
|
+
(0, isHigherBinaryOperatorOrder_js_1.isHigherOperatorOrder)(node.operator, node.left.operator)) {
|
|
7713
7788
|
node.left.needParen = true;
|
|
7714
7789
|
}
|
|
7715
7790
|
var left = tersifyAcornNode(context, node.left, length);
|
|
7716
|
-
if ((node.right.type === 'BinaryExpression' || node.right.type === 'LogicalExpression') &&
|
|
7791
|
+
if ((node.right.type === 'BinaryExpression' || node.right.type === 'LogicalExpression') &&
|
|
7792
|
+
(0, isHigherBinaryOperatorOrder_js_1.isHigherOperatorOrder)(node.operator, node.right.operator)) {
|
|
7717
7793
|
node.right.needParen = true;
|
|
7718
7794
|
}
|
|
7719
7795
|
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);
|
|
7796
|
+
return node.needParen ? "(".concat(left, " ").concat(node.operator, " ").concat(right, ")") : "".concat(left, " ").concat(node.operator, " ").concat(right);
|
|
7723
7797
|
}
|
|
7724
7798
|
function tersifyNewExpressionNode(context, node, length) {
|
|
7725
|
-
return tersifyNewDate(node) ||
|
|
7799
|
+
return (tersifyNewDate(node) ||
|
|
7800
|
+
"new ".concat(tersifyAcornNode(context, node.callee, length), "(").concat(node.arguments
|
|
7801
|
+
.map(function (a) { return tersifyAcornNode(context, a, length); })
|
|
7802
|
+
.join(', '), ")"));
|
|
7726
7803
|
}
|
|
7727
7804
|
function tersifyNewDate(node) {
|
|
7728
7805
|
if (node.callee.type === 'Identifier' && node.callee.name === 'Date') {
|
|
@@ -7773,9 +7850,9 @@ function tersifyArrowExpressionNode(context, node, length) {
|
|
|
7773
7850
|
var paramsBody = tersifyParamsBody(context, node.params);
|
|
7774
7851
|
var params = skipParamParen ? paramsBody : "(".concat(paramsBody, ")");
|
|
7775
7852
|
var singleBodyNode = getSingleStatementBodyNode(context, node.body);
|
|
7776
|
-
var body = singleBodyNode
|
|
7777
|
-
tersifyArrowBodyAsSingleStatement(context, singleBodyNode)
|
|
7778
|
-
tersifyFunctionBody(context, node.body);
|
|
7853
|
+
var body = singleBodyNode
|
|
7854
|
+
? tersifyArrowBodyAsSingleStatement(context, singleBodyNode)
|
|
7855
|
+
: tersifyFunctionBody(context, node.body);
|
|
7779
7856
|
var isSingleBodyObjectExpression = singleBodyNode && singleBodyNode.type === 'ObjectExpression';
|
|
7780
7857
|
if (isSingleBodyObjectExpression) {
|
|
7781
7858
|
body = "(".concat(body, ")");
|
|
@@ -7785,23 +7862,21 @@ function tersifyArrowExpressionNode(context, node, length) {
|
|
|
7785
7862
|
}
|
|
7786
7863
|
else {
|
|
7787
7864
|
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), ")");
|
|
7865
|
+
var trimmedParams = skipParamParen
|
|
7866
|
+
? (0, trim_js_1.trim)(context, paramsBody, lenAvailForParams)
|
|
7867
|
+
: "(".concat((0, trim_js_1.trim)(context, paramsBody, lenAvailForParams - 2), ")");
|
|
7791
7868
|
if (async.length + generator.length + lenAvailForParams + arrow.length + body.length <= length) {
|
|
7792
7869
|
return "".concat(async).concat(generator).concat(trimmedParams).concat(arrow).concat(body);
|
|
7793
7870
|
}
|
|
7794
7871
|
else {
|
|
7795
7872
|
var minBodyLen = 3;
|
|
7796
|
-
var wrapLen = isSingleBodyObjectExpression ?
|
|
7797
|
-
"({ })".length :
|
|
7798
|
-
singleBodyNode ? 0 : "{ }".length;
|
|
7873
|
+
var wrapLen = isSingleBodyObjectExpression ? "({ })".length : singleBodyNode ? 0 : "{ }".length;
|
|
7799
7874
|
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), " }");
|
|
7875
|
+
var trimmedBody = isSingleBodyObjectExpression
|
|
7876
|
+
? "({ ".concat((0, trim_js_1.trim)(context, body.slice(2, body.length - 2), lenAvailForBody - 4), " })")
|
|
7877
|
+
: singleBodyNode
|
|
7878
|
+
? (0, trim_js_1.trim)(context, body, lenAvailForBody)
|
|
7879
|
+
: "{ ".concat((0, trim_js_1.trim)(context, body.slice(2, body.length - 1), lenAvailForBody), " }");
|
|
7805
7880
|
return (0, trim_js_1.trim)(context, "".concat(async).concat(generator).concat(trimmedParams).concat(arrow).concat(trimmedBody), length);
|
|
7806
7881
|
}
|
|
7807
7882
|
}
|
|
@@ -7846,23 +7921,25 @@ function tersifyCallExpressionNode(context, node, length) {
|
|
|
7846
7921
|
return "".concat(callee).concat(node.optional ? '?.' : '').concat(params);
|
|
7847
7922
|
}
|
|
7848
7923
|
function isSymbolForNode(node) {
|
|
7849
|
-
return node.callee.type === 'MemberExpression' &&
|
|
7924
|
+
return (node.callee.type === 'MemberExpression' &&
|
|
7850
7925
|
node.callee.object.type === 'Identifier' &&
|
|
7851
7926
|
node.callee.object.name === 'Symbol' &&
|
|
7852
7927
|
node.callee.property.type === 'Identifier' &&
|
|
7853
|
-
node.callee.property.name === 'for';
|
|
7928
|
+
node.callee.property.name === 'for');
|
|
7854
7929
|
}
|
|
7855
7930
|
function isDefineThisProperty(node) {
|
|
7856
|
-
return node.callee.type === 'Identifier' &&
|
|
7931
|
+
return (node.callee.type === 'Identifier' &&
|
|
7857
7932
|
node.callee.name === '_defineProperty' &&
|
|
7858
7933
|
node.arguments.length === 3 &&
|
|
7859
|
-
node.arguments[0].type === 'ThisExpression';
|
|
7934
|
+
node.arguments[0].type === 'ThisExpression');
|
|
7860
7935
|
}
|
|
7861
7936
|
function tersifyParamsBody(context, params) {
|
|
7862
|
-
return params
|
|
7937
|
+
return params
|
|
7938
|
+
.reduce(function (p, v) {
|
|
7863
7939
|
p.push(tersifyAcornNode(context, v, Infinity));
|
|
7864
7940
|
return p;
|
|
7865
|
-
}, [])
|
|
7941
|
+
}, [])
|
|
7942
|
+
.join(', ');
|
|
7866
7943
|
}
|
|
7867
7944
|
function tersifyFunctionExpressionNode(context, node, length) {
|
|
7868
7945
|
var token = context.raw ? "function" : 'fn';
|
|
@@ -7884,9 +7961,7 @@ function tersifyFunctionExpressionNode(context, node, length) {
|
|
|
7884
7961
|
}
|
|
7885
7962
|
else {
|
|
7886
7963
|
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), " }"));
|
|
7964
|
+
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
7965
|
return result.length > length ? (0, trim_js_1.trim)(context, result, length) : result;
|
|
7891
7966
|
}
|
|
7892
7967
|
}
|
|
@@ -7938,7 +8013,9 @@ function tersifyClassExpression(context, node, length) {
|
|
|
7938
8013
|
var classStr = (0, trim_js_1.trim)(context, "class".concat(node.id ? " ".concat(node.id.name) : ' ', "{}"), length);
|
|
7939
8014
|
var prefix = classStr.slice(0, Math.max(3, classStr.length - 2));
|
|
7940
8015
|
var body = tersifyAcornNode(context, node.body, length - prefix.length);
|
|
7941
|
-
return "".concat(prefix).concat(length >= prefix.length + body.length || body.length > 3
|
|
8016
|
+
return "".concat(prefix).concat(length >= prefix.length + body.length || body.length > 3
|
|
8017
|
+
? body
|
|
8018
|
+
: (0, trim_js_1.trim)(context, '...', length - prefix.length));
|
|
7942
8019
|
}
|
|
7943
8020
|
function tersifyMethodDefinition(context, node, length) {
|
|
7944
8021
|
var _a;
|
|
@@ -7962,9 +8039,7 @@ function tersifyMethodDefinition(context, node, length) {
|
|
|
7962
8039
|
}
|
|
7963
8040
|
else {
|
|
7964
8041
|
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), " }"));
|
|
8042
|
+
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
8043
|
return result.length > length ? (0, trim_js_1.trim)(context, result, length) : result;
|
|
7969
8044
|
}
|
|
7970
8045
|
}
|
|
@@ -7986,20 +8061,22 @@ function tersifySequenceExpression(context, node, length) {
|
|
|
7986
8061
|
}
|
|
7987
8062
|
function tersifyTemplateLiteral(context, node, length) {
|
|
7988
8063
|
var elements = node.expressions.concat(node.quasis).sort(function (a, b) { return a.start - b.start; });
|
|
7989
|
-
return '`' +
|
|
7990
|
-
|
|
8064
|
+
return ('`' +
|
|
8065
|
+
elements.reduce(function (p, e) {
|
|
8066
|
+
if (length <= 0)
|
|
8067
|
+
return p;
|
|
8068
|
+
if (e.type === 'TemplateElement') {
|
|
8069
|
+
length -= e.value.raw.length;
|
|
8070
|
+
p += e.value.raw;
|
|
8071
|
+
}
|
|
8072
|
+
else {
|
|
8073
|
+
var result = tersifyAcornNode(context, e, length);
|
|
8074
|
+
length -= result.length;
|
|
8075
|
+
p += '${' + result + '}';
|
|
8076
|
+
}
|
|
7991
8077
|
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
|
-
}, '') + '`';
|
|
8078
|
+
}, '') +
|
|
8079
|
+
'`');
|
|
8003
8080
|
}
|
|
8004
8081
|
function tersifyTaggedTemplateExpression(context, node, length) {
|
|
8005
8082
|
var name = node.tag.name;
|
|
@@ -8015,16 +8092,19 @@ function tersifyChainExpression(context, node, length) {
|
|
|
8015
8092
|
}
|
|
8016
8093
|
// istanbul ignore next
|
|
8017
8094
|
default:
|
|
8018
|
-
return tersifyUnknown(node);
|
|
8095
|
+
return tersifyUnknown(node, context.rawString);
|
|
8019
8096
|
}
|
|
8020
8097
|
}
|
|
8098
|
+
function tersifySuperNode(context, node, length) {
|
|
8099
|
+
return 'Super';
|
|
8100
|
+
}
|
|
8021
8101
|
//# sourceMappingURL=tersifyAcorn.js.map
|
|
8022
8102
|
|
|
8023
8103
|
/***/ }),
|
|
8024
8104
|
|
|
8025
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8105
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js":
|
|
8026
8106
|
/*!*******************************************************************************************!*\
|
|
8027
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8107
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js ***!
|
|
8028
8108
|
\*******************************************************************************************/
|
|
8029
8109
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8030
8110
|
|
|
@@ -8032,10 +8112,10 @@ function tersifyChainExpression(context, node, length) {
|
|
|
8032
8112
|
|
|
8033
8113
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8034
8114
|
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.
|
|
8115
|
+
var hasTersifyFn_js_1 = __webpack_require__(/*! ./hasTersifyFn.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/hasTersifyFn.js");
|
|
8116
|
+
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersify.js");
|
|
8117
|
+
var index_js_1 = __webpack_require__(/*! ./tersifyAcorn/index.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyAcorn/index.js");
|
|
8118
|
+
var tersifyFunctionByString_js_1 = __webpack_require__(/*! ./tersifyFunctionByString.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js");
|
|
8039
8119
|
function tersifyFunction(context, fn, _length) {
|
|
8040
8120
|
if (!context.raw && (0, hasTersifyFn_js_1.hasTersifyFn)(fn) && fn.tersify !== tersify_js_1.defaultTersify) {
|
|
8041
8121
|
return fn.tersify({ maxLength: context.maxLength, raw: context.raw });
|
|
@@ -8056,9 +8136,9 @@ exports.tersifyFunction = tersifyFunction;
|
|
|
8056
8136
|
|
|
8057
8137
|
/***/ }),
|
|
8058
8138
|
|
|
8059
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8139
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js":
|
|
8060
8140
|
/*!***************************************************************************************************!*\
|
|
8061
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8141
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js ***!
|
|
8062
8142
|
\***************************************************************************************************/
|
|
8063
8143
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8064
8144
|
|
|
@@ -8066,15 +8146,17 @@ exports.tersifyFunction = tersifyFunction;
|
|
|
8066
8146
|
|
|
8067
8147
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8068
8148
|
exports.parseFn = exports.tersifyFunctionByString = void 0;
|
|
8069
|
-
var trim_js_1 = __webpack_require__(/*! ./trim.js */ "../../node_modules/.pnpm/tersify@3.
|
|
8149
|
+
var trim_js_1 = __webpack_require__(/*! ./trim.js */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js");
|
|
8070
8150
|
function tersifyFunctionByString(fn, options) {
|
|
8071
8151
|
var str = fn.toString();
|
|
8072
8152
|
if (options.raw)
|
|
8073
8153
|
return str;
|
|
8074
8154
|
var struct = parseFn(str);
|
|
8075
8155
|
switch (struct.type) {
|
|
8076
|
-
case 'function':
|
|
8077
|
-
|
|
8156
|
+
case 'function':
|
|
8157
|
+
return formatFn2(struct, options.maxLength);
|
|
8158
|
+
case 'arrow':
|
|
8159
|
+
return formatArrow2(struct, options.maxLength);
|
|
8078
8160
|
case 'unknown':
|
|
8079
8161
|
default:
|
|
8080
8162
|
// istanbul ignore next
|
|
@@ -8155,16 +8237,22 @@ function parseFn(input) {
|
|
|
8155
8237
|
exports.parseFn = parseFn;
|
|
8156
8238
|
function formatFn2(struct, maxLength) {
|
|
8157
8239
|
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
|
-
|
|
8240
|
+
var baseLength = struct.params && struct.body
|
|
8241
|
+
? template.length - 4
|
|
8242
|
+
: struct.params || struct.body
|
|
8243
|
+
? template.length - 2
|
|
8244
|
+
: template.length;
|
|
8160
8245
|
struct.params = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
|
|
8161
8246
|
struct.body = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
|
|
8162
8247
|
return (0, trim_js_1.trim)({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
|
|
8163
8248
|
}
|
|
8164
8249
|
function formatArrow2(struct, maxLength) {
|
|
8165
8250
|
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
|
-
|
|
8251
|
+
var baseLength = struct.params && struct.body
|
|
8252
|
+
? template.length - 4
|
|
8253
|
+
: struct.params || struct.body
|
|
8254
|
+
? template.length - 2
|
|
8255
|
+
: template.length;
|
|
8168
8256
|
struct.params = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
|
|
8169
8257
|
struct.body = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
|
|
8170
8258
|
return (0, trim_js_1.trim)({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
|
|
@@ -8179,14 +8267,18 @@ function isSingleLineBody(str) {
|
|
|
8179
8267
|
function getSingleLineBody(str, maxLength) {
|
|
8180
8268
|
var struct = parseFn(str);
|
|
8181
8269
|
switch (struct.type) {
|
|
8182
|
-
case 'function':
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8270
|
+
case 'function':
|
|
8271
|
+
return formatFn2(struct, maxLength);
|
|
8272
|
+
case 'arrow':
|
|
8273
|
+
return formatArrow2(struct, maxLength);
|
|
8274
|
+
default:
|
|
8275
|
+
return str
|
|
8276
|
+
.replace(/return;/g, '')
|
|
8277
|
+
.replace(/([\s([{])Symbol\(\)/g, '$1Sym()')
|
|
8278
|
+
.replace(/([\s([{])Symbol\.for\('([\w_]*)'\)/g, '$1Sym($2)')
|
|
8279
|
+
.replace(/([\s([{])Symbol\.for\("([\w_]*)"\)/g, '$1Sym($2)')
|
|
8280
|
+
.replace(/([\s([{])Symbol\.for\(`([\w_]*)`\)/g, '$1Sym($2)')
|
|
8281
|
+
.replace(/{\s+}/g, '{}');
|
|
8190
8282
|
}
|
|
8191
8283
|
}
|
|
8192
8284
|
function getEnclosedBody(str) {
|
|
@@ -8199,7 +8291,8 @@ function getEnclosedBody(str) {
|
|
|
8199
8291
|
count++;
|
|
8200
8292
|
if (count === 0) {
|
|
8201
8293
|
var body = removeLineBreaks(str.slice(0, i));
|
|
8202
|
-
str = body
|
|
8294
|
+
str = body
|
|
8295
|
+
.replace(/return;/g, '')
|
|
8203
8296
|
.replace(/([\s([{])Symbol\(\)/g, '$1Sym()')
|
|
8204
8297
|
.replace(/([\s([{])Symbol\.for\('([\w_]*)'\)/g, '$1Sym($2)')
|
|
8205
8298
|
.replace(/([\s([{])Symbol\.for\("([\w_]*)"\)/g, '$1Sym($2)')
|
|
@@ -8211,12 +8304,14 @@ function getEnclosedBody(str) {
|
|
|
8211
8304
|
return str;
|
|
8212
8305
|
}
|
|
8213
8306
|
function removeLineBreaks(value) {
|
|
8214
|
-
return value
|
|
8307
|
+
return value
|
|
8308
|
+
.split('\n')
|
|
8215
8309
|
.map(function (x) { return x.trim(); })
|
|
8216
8310
|
.filter(function (x) { return !!x; })
|
|
8217
|
-
.map(function (x, i, a) {
|
|
8218
|
-
&& /[^({}):;(do|else)]$/.test(x)
|
|
8219
|
-
|
|
8311
|
+
.map(function (x, i, a) {
|
|
8312
|
+
return i < a.length - 1 && /[^({}):;(do|else)]$/.test(x) && /[^)}]/.test(a[i + 1]) ? x + ';' : x;
|
|
8313
|
+
})
|
|
8314
|
+
.join(' ');
|
|
8220
8315
|
}
|
|
8221
8316
|
function applyTemplate(template, struct) {
|
|
8222
8317
|
if (struct.params) {
|
|
@@ -8231,9 +8326,9 @@ function applyTemplate(template, struct) {
|
|
|
8231
8326
|
|
|
8232
8327
|
/***/ }),
|
|
8233
8328
|
|
|
8234
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8329
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js":
|
|
8235
8330
|
/*!********************************************************************************!*\
|
|
8236
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8331
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js ***!
|
|
8237
8332
|
\********************************************************************************/
|
|
8238
8333
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8239
8334
|
|
|
@@ -8246,9 +8341,7 @@ function trim(_a, value, length) {
|
|
|
8246
8341
|
if (noTrim || raw || value.length <= length)
|
|
8247
8342
|
return value;
|
|
8248
8343
|
var trimmed = value.slice(0, Math.max(length, 0));
|
|
8249
|
-
var dots = trimmed.length === 0 ? '' :
|
|
8250
|
-
trimmed.length <= 3 ? '.' :
|
|
8251
|
-
trimmed.length === 4 ? '..' : '...';
|
|
8344
|
+
var dots = trimmed.length === 0 ? '' : trimmed.length <= 3 ? '.' : trimmed.length === 4 ? '..' : '...';
|
|
8252
8345
|
return trimmed.slice(0, trimmed.length - dots.length) + dots;
|
|
8253
8346
|
}
|
|
8254
8347
|
exports.trim = trim;
|
|
@@ -8256,9 +8349,9 @@ exports.trim = trim;
|
|
|
8256
8349
|
|
|
8257
8350
|
/***/ }),
|
|
8258
8351
|
|
|
8259
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8352
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js":
|
|
8260
8353
|
/*!*********************************************************************************!*\
|
|
8261
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8354
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js ***!
|
|
8262
8355
|
\*********************************************************************************/
|
|
8263
8356
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8264
8357
|
|
|
@@ -8269,9 +8362,48 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
8269
8362
|
|
|
8270
8363
|
/***/ }),
|
|
8271
8364
|
|
|
8272
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8365
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/array_plus.js":
|
|
8366
|
+
/*!***********************************************************************************************!*\
|
|
8367
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/array_plus.js ***!
|
|
8368
|
+
\***********************************************************************************************/
|
|
8369
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8370
|
+
|
|
8371
|
+
"use strict";
|
|
8372
|
+
|
|
8373
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8374
|
+
//# sourceMappingURL=array_plus.js.map
|
|
8375
|
+
|
|
8376
|
+
/***/ }),
|
|
8377
|
+
|
|
8378
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/common_prop_keys.js":
|
|
8379
|
+
/*!*****************************************************************************************************!*\
|
|
8380
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/common_prop_keys.js ***!
|
|
8381
|
+
\*****************************************************************************************************/
|
|
8382
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8383
|
+
|
|
8384
|
+
"use strict";
|
|
8385
|
+
|
|
8386
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8387
|
+
//# sourceMappingURL=common_prop_keys.js.map
|
|
8388
|
+
|
|
8389
|
+
/***/ }),
|
|
8390
|
+
|
|
8391
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/create_tuple.js":
|
|
8392
|
+
/*!*************************************************************************************************!*\
|
|
8393
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/create_tuple.js ***!
|
|
8394
|
+
\*************************************************************************************************/
|
|
8395
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8396
|
+
|
|
8397
|
+
"use strict";
|
|
8398
|
+
|
|
8399
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8400
|
+
//# sourceMappingURL=create_tuple.js.map
|
|
8401
|
+
|
|
8402
|
+
/***/ }),
|
|
8403
|
+
|
|
8404
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/drop.js":
|
|
8273
8405
|
/*!*****************************************************************************************!*\
|
|
8274
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8406
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/drop.js ***!
|
|
8275
8407
|
\*****************************************************************************************/
|
|
8276
8408
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8277
8409
|
|
|
@@ -8283,16 +8415,68 @@ exports.drop = void 0;
|
|
|
8283
8415
|
* drop a particular value from an array
|
|
8284
8416
|
*/
|
|
8285
8417
|
function drop(array, value) {
|
|
8286
|
-
return array.filter(
|
|
8418
|
+
return array.filter(v => v !== value);
|
|
8287
8419
|
}
|
|
8288
8420
|
exports.drop = drop;
|
|
8289
8421
|
//# sourceMappingURL=drop.js.map
|
|
8290
8422
|
|
|
8291
8423
|
/***/ }),
|
|
8292
8424
|
|
|
8293
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8425
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/filter.js":
|
|
8426
|
+
/*!*******************************************************************************************!*\
|
|
8427
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/filter.js ***!
|
|
8428
|
+
\*******************************************************************************************/
|
|
8429
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8430
|
+
|
|
8431
|
+
"use strict";
|
|
8432
|
+
|
|
8433
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8434
|
+
//# sourceMappingURL=filter.js.map
|
|
8435
|
+
|
|
8436
|
+
/***/ }),
|
|
8437
|
+
|
|
8438
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_first.js":
|
|
8439
|
+
/*!***********************************************************************************************!*\
|
|
8440
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_first.js ***!
|
|
8441
|
+
\***********************************************************************************************/
|
|
8442
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8443
|
+
|
|
8444
|
+
"use strict";
|
|
8445
|
+
|
|
8446
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8447
|
+
//# sourceMappingURL=find_first.js.map
|
|
8448
|
+
|
|
8449
|
+
/***/ }),
|
|
8450
|
+
|
|
8451
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_last.js":
|
|
8452
|
+
/*!**********************************************************************************************!*\
|
|
8453
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_last.js ***!
|
|
8454
|
+
\**********************************************************************************************/
|
|
8455
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8456
|
+
|
|
8457
|
+
"use strict";
|
|
8458
|
+
|
|
8459
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8460
|
+
//# sourceMappingURL=find_last.js.map
|
|
8461
|
+
|
|
8462
|
+
/***/ }),
|
|
8463
|
+
|
|
8464
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/head.js":
|
|
8465
|
+
/*!*****************************************************************************************!*\
|
|
8466
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/head.js ***!
|
|
8467
|
+
\*****************************************************************************************/
|
|
8468
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8469
|
+
|
|
8470
|
+
"use strict";
|
|
8471
|
+
|
|
8472
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8473
|
+
//# sourceMappingURL=head.js.map
|
|
8474
|
+
|
|
8475
|
+
/***/ }),
|
|
8476
|
+
|
|
8477
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/index.js":
|
|
8294
8478
|
/*!******************************************************************************************!*\
|
|
8295
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8479
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/index.js ***!
|
|
8296
8480
|
\******************************************************************************************/
|
|
8297
8481
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8298
8482
|
|
|
@@ -8313,39 +8497,88 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8313
8497
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8314
8498
|
};
|
|
8315
8499
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8316
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8317
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8318
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8500
|
+
__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);
|
|
8501
|
+
__exportStar(__webpack_require__(/*! ./create_tuple.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/create_tuple.js"), exports);
|
|
8502
|
+
__exportStar(__webpack_require__(/*! ./drop.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/drop.js"), exports);
|
|
8503
|
+
__exportStar(__webpack_require__(/*! ./filter.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/filter.js"), exports);
|
|
8504
|
+
__exportStar(__webpack_require__(/*! ./find_first.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_first.js"), exports);
|
|
8505
|
+
__exportStar(__webpack_require__(/*! ./find_last.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/find_last.js"), exports);
|
|
8506
|
+
__exportStar(__webpack_require__(/*! ./head.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/head.js"), exports);
|
|
8507
|
+
__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);
|
|
8508
|
+
__exportStar(__webpack_require__(/*! ./last.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/last.js"), exports);
|
|
8509
|
+
__exportStar(__webpack_require__(/*! ./literal_array.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/literal_array.js"), exports);
|
|
8510
|
+
__exportStar(__webpack_require__(/*! ./pad_left.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/pad_left.js"), exports);
|
|
8511
|
+
__exportStar(__webpack_require__(/*! ./reduce_while.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reduce_while.js"), exports);
|
|
8512
|
+
__exportStar(__webpack_require__(/*! ./reverse.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reverse.js"), exports);
|
|
8513
|
+
__exportStar(__webpack_require__(/*! ./some.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/some.js"), exports);
|
|
8514
|
+
__exportStar(__webpack_require__(/*! ./tail.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/tail.js"), exports);
|
|
8515
|
+
__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);
|
|
8516
|
+
__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
8517
|
//# sourceMappingURL=index.js.map
|
|
8320
8518
|
|
|
8321
8519
|
/***/ }),
|
|
8322
8520
|
|
|
8323
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8324
|
-
|
|
8325
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8326
|
-
|
|
8521
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/intersect_of_props.js":
|
|
8522
|
+
/*!*******************************************************************************************************!*\
|
|
8523
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/intersect_of_props.js ***!
|
|
8524
|
+
\*******************************************************************************************************/
|
|
8525
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8526
|
+
|
|
8527
|
+
"use strict";
|
|
8528
|
+
|
|
8529
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8530
|
+
//# sourceMappingURL=intersect_of_props.js.map
|
|
8531
|
+
|
|
8532
|
+
/***/ }),
|
|
8533
|
+
|
|
8534
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/last.js":
|
|
8535
|
+
/*!*****************************************************************************************!*\
|
|
8536
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/last.js ***!
|
|
8537
|
+
\*****************************************************************************************/
|
|
8538
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8539
|
+
|
|
8540
|
+
"use strict";
|
|
8541
|
+
|
|
8542
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8543
|
+
//# sourceMappingURL=last.js.map
|
|
8544
|
+
|
|
8545
|
+
/***/ }),
|
|
8546
|
+
|
|
8547
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/literal_array.js":
|
|
8548
|
+
/*!**************************************************************************************************!*\
|
|
8549
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/literal_array.js ***!
|
|
8550
|
+
\**************************************************************************************************/
|
|
8327
8551
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8328
8552
|
|
|
8329
8553
|
"use strict";
|
|
8330
8554
|
|
|
8331
8555
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8332
8556
|
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
|
-
}
|
|
8557
|
+
function literalArray(...entries) {
|
|
8338
8558
|
return entries;
|
|
8339
8559
|
}
|
|
8340
8560
|
exports.literalArray = literalArray;
|
|
8341
|
-
//# sourceMappingURL=
|
|
8561
|
+
//# sourceMappingURL=literal_array.js.map
|
|
8342
8562
|
|
|
8343
8563
|
/***/ }),
|
|
8344
8564
|
|
|
8345
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8346
|
-
|
|
8347
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8348
|
-
|
|
8565
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/pad_left.js":
|
|
8566
|
+
/*!*********************************************************************************************!*\
|
|
8567
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/pad_left.js ***!
|
|
8568
|
+
\*********************************************************************************************/
|
|
8569
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8570
|
+
|
|
8571
|
+
"use strict";
|
|
8572
|
+
|
|
8573
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8574
|
+
//# sourceMappingURL=pad_left.js.map
|
|
8575
|
+
|
|
8576
|
+
/***/ }),
|
|
8577
|
+
|
|
8578
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reduce_while.js":
|
|
8579
|
+
/*!*************************************************************************************************!*\
|
|
8580
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reduce_while.js ***!
|
|
8581
|
+
\*************************************************************************************************/
|
|
8349
8582
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8350
8583
|
|
|
8351
8584
|
"use strict";
|
|
@@ -8353,9 +8586,9 @@ exports.literalArray = literalArray;
|
|
|
8353
8586
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8354
8587
|
exports.reduceWhile = void 0;
|
|
8355
8588
|
function reduceWhile(predicate, callbackfn, initialValue, array) {
|
|
8356
|
-
|
|
8357
|
-
for (
|
|
8358
|
-
|
|
8589
|
+
let acc = initialValue;
|
|
8590
|
+
for (let i = 0; i < array.length; i++) {
|
|
8591
|
+
const value = array[i];
|
|
8359
8592
|
if (!predicate(acc, value))
|
|
8360
8593
|
return acc;
|
|
8361
8594
|
acc = callbackfn(acc, value, i, array);
|
|
@@ -8363,110 +8596,174 @@ function reduceWhile(predicate, callbackfn, initialValue, array) {
|
|
|
8363
8596
|
return acc;
|
|
8364
8597
|
}
|
|
8365
8598
|
exports.reduceWhile = reduceWhile;
|
|
8366
|
-
//# sourceMappingURL=
|
|
8599
|
+
//# sourceMappingURL=reduce_while.js.map
|
|
8600
|
+
|
|
8601
|
+
/***/ }),
|
|
8602
|
+
|
|
8603
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reverse.js":
|
|
8604
|
+
/*!********************************************************************************************!*\
|
|
8605
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reverse.js ***!
|
|
8606
|
+
\********************************************************************************************/
|
|
8607
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8608
|
+
|
|
8609
|
+
"use strict";
|
|
8610
|
+
|
|
8611
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8612
|
+
//# sourceMappingURL=reverse.js.map
|
|
8613
|
+
|
|
8614
|
+
/***/ }),
|
|
8615
|
+
|
|
8616
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/some.js":
|
|
8617
|
+
/*!*****************************************************************************************!*\
|
|
8618
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/some.js ***!
|
|
8619
|
+
\*****************************************************************************************/
|
|
8620
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8621
|
+
|
|
8622
|
+
"use strict";
|
|
8623
|
+
|
|
8624
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8625
|
+
//# sourceMappingURL=some.js.map
|
|
8626
|
+
|
|
8627
|
+
/***/ }),
|
|
8628
|
+
|
|
8629
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/tail.js":
|
|
8630
|
+
/*!*****************************************************************************************!*\
|
|
8631
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/tail.js ***!
|
|
8632
|
+
\*****************************************************************************************/
|
|
8633
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8634
|
+
|
|
8635
|
+
"use strict";
|
|
8636
|
+
|
|
8637
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8638
|
+
//# sourceMappingURL=tail.js.map
|
|
8367
8639
|
|
|
8368
8640
|
/***/ }),
|
|
8369
8641
|
|
|
8370
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8642
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_props.js":
|
|
8371
8643
|
/*!***************************************************************************************************!*\
|
|
8372
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8644
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_props.js ***!
|
|
8373
8645
|
\***************************************************************************************************/
|
|
8646
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8647
|
+
|
|
8648
|
+
"use strict";
|
|
8649
|
+
|
|
8650
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8651
|
+
//# sourceMappingURL=union_of_props.js.map
|
|
8652
|
+
|
|
8653
|
+
/***/ }),
|
|
8654
|
+
|
|
8655
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_values.js":
|
|
8656
|
+
/*!****************************************************************************************************!*\
|
|
8657
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_values.js ***!
|
|
8658
|
+
\****************************************************************************************************/
|
|
8659
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8660
|
+
|
|
8661
|
+
"use strict";
|
|
8662
|
+
|
|
8663
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8664
|
+
//# sourceMappingURL=union_of_values.js.map
|
|
8665
|
+
|
|
8666
|
+
/***/ }),
|
|
8667
|
+
|
|
8668
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/assertion/assert_type.js":
|
|
8669
|
+
/*!****************************************************************************************************!*\
|
|
8670
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/assertion/assert_type.js ***!
|
|
8671
|
+
\****************************************************************************************************/
|
|
8374
8672
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8375
8673
|
|
|
8376
8674
|
"use strict";
|
|
8377
8675
|
|
|
8378
8676
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8379
8677
|
exports.assertType = void 0;
|
|
8380
|
-
|
|
8381
|
-
|
|
8678
|
+
const tersify_1 = __webpack_require__(/*! tersify */ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/index.js");
|
|
8679
|
+
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
8680
|
function assertType(subject, validator) {
|
|
8383
8681
|
if (validator) {
|
|
8384
8682
|
if (((0, index_js_1.isConstructor)(validator) && !(subject instanceof validator)) || !validator(subject))
|
|
8385
|
-
throw new TypeError(
|
|
8683
|
+
throw new TypeError(`subject fails to satisfy ${(0, tersify_1.tersify)(validator)}`);
|
|
8386
8684
|
}
|
|
8387
8685
|
return;
|
|
8388
8686
|
}
|
|
8389
8687
|
exports.assertType = assertType;
|
|
8390
8688
|
assertType.isUndefined = function (subject) {
|
|
8391
8689
|
if (typeof subject !== 'undefined')
|
|
8392
|
-
throw TypeError(
|
|
8690
|
+
throw TypeError(`subject is not undefined`);
|
|
8393
8691
|
};
|
|
8394
8692
|
assertType.noUndefined = function (subject) {
|
|
8395
8693
|
if (typeof subject === 'undefined')
|
|
8396
|
-
throw TypeError(
|
|
8694
|
+
throw TypeError(`subject is undefined`);
|
|
8397
8695
|
};
|
|
8398
8696
|
assertType.isNull = function (subject) {
|
|
8399
8697
|
if (subject !== null)
|
|
8400
|
-
throw TypeError(
|
|
8698
|
+
throw TypeError(`subject is not null`);
|
|
8401
8699
|
};
|
|
8402
8700
|
assertType.noNull = function (subject) {
|
|
8403
8701
|
if (subject === null)
|
|
8404
|
-
throw TypeError(
|
|
8702
|
+
throw TypeError(`subject is null`);
|
|
8405
8703
|
};
|
|
8406
8704
|
assertType.isNumber = function (subject) {
|
|
8407
8705
|
if (typeof subject !== 'number')
|
|
8408
|
-
throw TypeError(
|
|
8706
|
+
throw TypeError(`subject is not number`);
|
|
8409
8707
|
};
|
|
8410
8708
|
assertType.noNumber = function (subject) {
|
|
8411
8709
|
if (typeof subject === 'number')
|
|
8412
|
-
throw TypeError(
|
|
8710
|
+
throw TypeError(`subject is number`);
|
|
8413
8711
|
};
|
|
8414
8712
|
assertType.isBoolean = function (subject) {
|
|
8415
8713
|
if (typeof subject !== 'boolean')
|
|
8416
|
-
throw TypeError(
|
|
8714
|
+
throw TypeError(`subject is not boolean`);
|
|
8417
8715
|
};
|
|
8418
8716
|
assertType.noBoolean = function (subject) {
|
|
8419
8717
|
if (typeof subject === 'boolean')
|
|
8420
|
-
throw TypeError(
|
|
8718
|
+
throw TypeError(`subject is boolean`);
|
|
8421
8719
|
};
|
|
8422
8720
|
assertType.isTrue = function (subject) {
|
|
8423
8721
|
if (subject !== true)
|
|
8424
|
-
throw TypeError(
|
|
8722
|
+
throw TypeError(`subject is not true`);
|
|
8425
8723
|
};
|
|
8426
8724
|
assertType.noTrue = function (subject) {
|
|
8427
8725
|
// @ts-ignore
|
|
8428
8726
|
if (subject === true)
|
|
8429
|
-
throw TypeError(
|
|
8727
|
+
throw TypeError(`subject is true`);
|
|
8430
8728
|
};
|
|
8431
8729
|
assertType.isFalse = function (subject) {
|
|
8432
8730
|
if (subject !== false)
|
|
8433
|
-
throw TypeError(
|
|
8731
|
+
throw TypeError(`subject is not false`);
|
|
8434
8732
|
};
|
|
8435
8733
|
assertType.noFalse = function (subject) {
|
|
8436
8734
|
// @ts-ignore
|
|
8437
8735
|
if (subject === false)
|
|
8438
|
-
throw TypeError(
|
|
8736
|
+
throw TypeError(`subject is false`);
|
|
8439
8737
|
};
|
|
8440
8738
|
assertType.isString = function (subject) {
|
|
8441
8739
|
if (typeof subject !== 'string')
|
|
8442
|
-
throw TypeError(
|
|
8740
|
+
throw TypeError(`subject is not string`);
|
|
8443
8741
|
};
|
|
8444
8742
|
assertType.noString = function (subject) {
|
|
8445
8743
|
if (typeof subject === 'string')
|
|
8446
|
-
throw TypeError(
|
|
8744
|
+
throw TypeError(`subject is string`);
|
|
8447
8745
|
};
|
|
8448
8746
|
assertType.isFunction = function (subject) {
|
|
8449
8747
|
if (typeof subject !== 'function')
|
|
8450
|
-
throw TypeError(
|
|
8748
|
+
throw TypeError(`subject is not function`);
|
|
8451
8749
|
};
|
|
8452
8750
|
assertType.noFunction = function (subject) {
|
|
8453
8751
|
if (typeof subject === 'function')
|
|
8454
|
-
throw TypeError(
|
|
8752
|
+
throw TypeError(`subject is function`);
|
|
8455
8753
|
};
|
|
8456
8754
|
assertType.isConstructor = function (subject) {
|
|
8457
8755
|
if (!(0, index_js_1.isConstructor)(subject))
|
|
8458
|
-
throw TypeError(
|
|
8756
|
+
throw TypeError(`subject is not a constructor`);
|
|
8459
8757
|
};
|
|
8460
8758
|
assertType.isError = function (subject) {
|
|
8461
8759
|
if (!(subject instanceof Error))
|
|
8462
|
-
throw TypeError(
|
|
8760
|
+
throw TypeError(`subject is not an Error`);
|
|
8463
8761
|
};
|
|
8464
8762
|
assertType.noError = function (subject) {
|
|
8465
8763
|
if (subject instanceof Error)
|
|
8466
|
-
throw TypeError(
|
|
8467
|
-
};
|
|
8468
|
-
assertType.isNever = function (subject) {
|
|
8764
|
+
throw TypeError(`subject is an Error`);
|
|
8469
8765
|
};
|
|
8766
|
+
assertType.isNever = function (subject) { };
|
|
8470
8767
|
/**
|
|
8471
8768
|
* creates a custom assertion function with standard TypeError.
|
|
8472
8769
|
* Currently this requires explicity type annotation,
|
|
@@ -8476,46 +8773,18 @@ assertType.isNever = function (subject) {
|
|
|
8476
8773
|
assertType.custom = function (validator) {
|
|
8477
8774
|
return function (subject) {
|
|
8478
8775
|
if (!validator(subject))
|
|
8479
|
-
throw new TypeError(
|
|
8776
|
+
throw new TypeError(`subject fails to satisfy ${(0, tersify_1.tersify)(validator)}`);
|
|
8480
8777
|
return;
|
|
8481
8778
|
};
|
|
8482
8779
|
};
|
|
8483
8780
|
assertType.as = function (subject) { };
|
|
8484
|
-
//# sourceMappingURL=
|
|
8781
|
+
//# sourceMappingURL=assert_type.js.map
|
|
8485
8782
|
|
|
8486
8783
|
/***/ }),
|
|
8487
8784
|
|
|
8488
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
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
|
|
8513
|
-
|
|
8514
|
-
/***/ }),
|
|
8515
|
-
|
|
8516
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0.0/node_modules/type-plus/cjs/class/index.js":
|
|
8785
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/index.js":
|
|
8517
8786
|
/*!******************************************************************************************!*\
|
|
8518
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8787
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/index.js ***!
|
|
8519
8788
|
\******************************************************************************************/
|
|
8520
8789
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8521
8790
|
|
|
@@ -8536,14 +8805,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8536
8805
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8537
8806
|
};
|
|
8538
8807
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8539
|
-
__exportStar(__webpack_require__(/*! ./isConstructor.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
8808
|
+
__exportStar(__webpack_require__(/*! ./isConstructor.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/isConstructor.js"), exports);
|
|
8540
8809
|
//# sourceMappingURL=index.js.map
|
|
8541
8810
|
|
|
8542
8811
|
/***/ }),
|
|
8543
8812
|
|
|
8544
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8813
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/isConstructor.js":
|
|
8545
8814
|
/*!**************************************************************************************************!*\
|
|
8546
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8815
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/isConstructor.js ***!
|
|
8547
8816
|
\**************************************************************************************************/
|
|
8548
8817
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8549
8818
|
|
|
@@ -8567,7 +8836,7 @@ function isConstructor(subject) {
|
|
|
8567
8836
|
new subject();
|
|
8568
8837
|
}
|
|
8569
8838
|
catch (err) {
|
|
8570
|
-
|
|
8839
|
+
const msg = err?.message;
|
|
8571
8840
|
if (msg && msg.indexOf('is not a constructor') >= 0) {
|
|
8572
8841
|
return false;
|
|
8573
8842
|
}
|
|
@@ -8586,87 +8855,100 @@ exports.isInstanceof = isInstanceof;
|
|
|
8586
8855
|
|
|
8587
8856
|
/***/ }),
|
|
8588
8857
|
|
|
8589
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8590
|
-
|
|
8591
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8592
|
-
|
|
8858
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/function/extract_function.js":
|
|
8859
|
+
/*!********************************************************************************************************!*\
|
|
8860
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/function/extract_function.js ***!
|
|
8861
|
+
\********************************************************************************************************/
|
|
8593
8862
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8594
8863
|
|
|
8595
8864
|
"use strict";
|
|
8596
8865
|
|
|
8597
8866
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8598
8867
|
exports.extractFunction = void 0;
|
|
8868
|
+
/**
|
|
8869
|
+
* Extract the function signature from a composite function.
|
|
8870
|
+
*
|
|
8871
|
+
* @note does not work with function overloads.
|
|
8872
|
+
*/
|
|
8599
8873
|
function extractFunction(fn) {
|
|
8600
8874
|
return fn;
|
|
8601
8875
|
}
|
|
8602
8876
|
exports.extractFunction = extractFunction;
|
|
8603
|
-
//# sourceMappingURL=
|
|
8877
|
+
//# sourceMappingURL=extract_function.js.map
|
|
8604
8878
|
|
|
8605
8879
|
/***/ }),
|
|
8606
8880
|
|
|
8607
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8608
|
-
|
|
8609
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8610
|
-
|
|
8611
|
-
/***/ (function(__unused_webpack_module, exports
|
|
8881
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/compose.js":
|
|
8882
|
+
/*!*************************************************************************************************!*\
|
|
8883
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/compose.js ***!
|
|
8884
|
+
\*************************************************************************************************/
|
|
8885
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8612
8886
|
|
|
8613
8887
|
"use strict";
|
|
8614
8888
|
|
|
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
8889
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8630
|
-
|
|
8631
|
-
|
|
8890
|
+
exports.compose = void 0;
|
|
8891
|
+
/**
|
|
8892
|
+
* Compose functions to produce a new function.
|
|
8893
|
+
* @params args functions to be composed.
|
|
8894
|
+
* Each function will receive the return value of the previous function as its parameters.
|
|
8895
|
+
* @return The composed function will expect the parameters of the first function,
|
|
8896
|
+
* and return the result of the last function.
|
|
8897
|
+
*/
|
|
8898
|
+
function compose(...fns) {
|
|
8899
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
8900
|
+
return (...args) => fns.reduce((args, fn) => [fn(...args)], args)[0];
|
|
8901
|
+
}
|
|
8902
|
+
exports.compose = compose;
|
|
8903
|
+
//# sourceMappingURL=compose.js.map
|
|
8632
8904
|
|
|
8633
8905
|
/***/ }),
|
|
8634
8906
|
|
|
8635
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8907
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/context.js":
|
|
8636
8908
|
/*!*************************************************************************************************!*\
|
|
8637
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8909
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/context.js ***!
|
|
8638
8910
|
\*************************************************************************************************/
|
|
8639
8911
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8640
8912
|
|
|
8641
8913
|
"use strict";
|
|
8642
8914
|
|
|
8643
8915
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8644
|
-
exports.
|
|
8916
|
+
exports.context = void 0;
|
|
8645
8917
|
/**
|
|
8646
|
-
*
|
|
8918
|
+
* Creates a context builder.
|
|
8919
|
+
*
|
|
8920
|
+
* @param init The initial context or an context initializer.
|
|
8921
|
+
* @return the context builder where you can
|
|
8922
|
+
* use `extend()` to add context, and
|
|
8923
|
+
* use `build()` to build the context.
|
|
8647
8924
|
*/
|
|
8648
|
-
function
|
|
8649
|
-
var fns = [];
|
|
8650
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8651
|
-
fns[_i] = arguments[_i];
|
|
8652
|
-
}
|
|
8925
|
+
function context(init) {
|
|
8653
8926
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
8654
|
-
return function () {
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8927
|
+
return typeof init === 'function' ? contextBuilder({}, [[init]]) : contextBuilder(init ?? {}, []);
|
|
8928
|
+
}
|
|
8929
|
+
exports.context = context;
|
|
8930
|
+
/* eslint-disable */
|
|
8931
|
+
function contextBuilder(init, extenders) {
|
|
8932
|
+
return {
|
|
8933
|
+
extend(extender) {
|
|
8934
|
+
return contextBuilder(init, extenders.concat([[extender]]));
|
|
8935
|
+
},
|
|
8936
|
+
build() {
|
|
8937
|
+
return extenders.reduce((p, [t], i) => {
|
|
8938
|
+
const v = typeof t === 'function' ? (extenders[i][0] = t(p)) : t;
|
|
8939
|
+
return { ...p, ...v };
|
|
8940
|
+
}, init);
|
|
8658
8941
|
}
|
|
8659
|
-
return fns.reduce(function (args, fn) { return [fn.apply(void 0, args)]; }, args)[0];
|
|
8660
8942
|
};
|
|
8661
8943
|
}
|
|
8662
|
-
|
|
8663
|
-
//# sourceMappingURL=
|
|
8944
|
+
/* eslint-enable */
|
|
8945
|
+
//# sourceMappingURL=context.js.map
|
|
8664
8946
|
|
|
8665
8947
|
/***/ }),
|
|
8666
8948
|
|
|
8667
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8949
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/index.js":
|
|
8668
8950
|
/*!***********************************************************************************************!*\
|
|
8669
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8951
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/index.js ***!
|
|
8670
8952
|
\***********************************************************************************************/
|
|
8671
8953
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8672
8954
|
|
|
@@ -8687,14 +8969,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8687
8969
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8688
8970
|
};
|
|
8689
8971
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8690
|
-
__exportStar(__webpack_require__(/*! ./compose.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
8972
|
+
__exportStar(__webpack_require__(/*! ./compose.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/compose.js"), exports);
|
|
8973
|
+
__exportStar(__webpack_require__(/*! ./context.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/context.js"), exports);
|
|
8691
8974
|
//# sourceMappingURL=index.js.map
|
|
8692
8975
|
|
|
8693
8976
|
/***/ }),
|
|
8694
8977
|
|
|
8695
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8978
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js":
|
|
8696
8979
|
/*!************************************************************************************!*\
|
|
8697
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8980
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js ***!
|
|
8698
8981
|
\************************************************************************************/
|
|
8699
8982
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8700
8983
|
|
|
@@ -8711,36 +8994,49 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
8711
8994
|
if (k2 === undefined) k2 = k;
|
|
8712
8995
|
o[k2] = m[k];
|
|
8713
8996
|
}));
|
|
8997
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
8998
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
8999
|
+
}) : function(o, v) {
|
|
9000
|
+
o["default"] = v;
|
|
9001
|
+
});
|
|
9002
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
9003
|
+
if (mod && mod.__esModule) return mod;
|
|
9004
|
+
var result = {};
|
|
9005
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
9006
|
+
__setModuleDefault(result, mod);
|
|
9007
|
+
return result;
|
|
9008
|
+
};
|
|
8714
9009
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
8715
9010
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8716
9011
|
};
|
|
8717
9012
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8718
|
-
exports.unpartial = exports.requiredDeep = exports.required = void 0;
|
|
8719
|
-
// import * as types from './types/index.js'
|
|
9013
|
+
exports.NumberPlus = exports.ArrayPlus = exports.unpartial = exports.requiredDeep = exports.required = void 0;
|
|
8720
9014
|
var unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js");
|
|
8721
9015
|
Object.defineProperty(exports, "required", ({ enumerable: true, get: function () { return unpartial_1.required; } }));
|
|
8722
9016
|
Object.defineProperty(exports, "requiredDeep", ({ enumerable: true, get: function () { return unpartial_1.requiredDeep; } }));
|
|
8723
9017
|
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
|
-
|
|
9018
|
+
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"));
|
|
9019
|
+
__exportStar(__webpack_require__(/*! ./array/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/index.js"), exports);
|
|
9020
|
+
__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);
|
|
9021
|
+
__exportStar(__webpack_require__(/*! ./class/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/index.js"), exports);
|
|
9022
|
+
__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);
|
|
9023
|
+
__exportStar(__webpack_require__(/*! ./functional/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/index.js"), exports);
|
|
9024
|
+
__exportStar(__webpack_require__(/*! ./nodejs/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/index.js"), exports);
|
|
9025
|
+
__exportStar(__webpack_require__(/*! ./nominal/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/index.js"), exports);
|
|
9026
|
+
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"));
|
|
9027
|
+
__exportStar(__webpack_require__(/*! ./object/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/index.js"), exports);
|
|
9028
|
+
__exportStar(__webpack_require__(/*! ./predicates/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/index.js"), exports);
|
|
9029
|
+
__exportStar(__webpack_require__(/*! ./promise/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/index.js"), exports);
|
|
9030
|
+
__exportStar(__webpack_require__(/*! ./testing/stub.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/stub.js"), exports);
|
|
9031
|
+
__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);
|
|
9032
|
+
__exportStar(__webpack_require__(/*! ./utils/index.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/index.js"), exports);
|
|
8737
9033
|
//# sourceMappingURL=index.js.map
|
|
8738
9034
|
|
|
8739
9035
|
/***/ }),
|
|
8740
9036
|
|
|
8741
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9037
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/index.js":
|
|
8742
9038
|
/*!*******************************************************************************************!*\
|
|
8743
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9039
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/index.js ***!
|
|
8744
9040
|
\*******************************************************************************************/
|
|
8745
9041
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8746
9042
|
|
|
@@ -8761,14 +9057,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8761
9057
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8762
9058
|
};
|
|
8763
9059
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8764
|
-
__exportStar(__webpack_require__(/*! ./isNodeError.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
9060
|
+
__exportStar(__webpack_require__(/*! ./isNodeError.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/isNodeError.js"), exports);
|
|
8765
9061
|
//# sourceMappingURL=index.js.map
|
|
8766
9062
|
|
|
8767
9063
|
/***/ }),
|
|
8768
9064
|
|
|
8769
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9065
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/isNodeError.js":
|
|
8770
9066
|
/*!*************************************************************************************************!*\
|
|
8771
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9067
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/isNodeError.js ***!
|
|
8772
9068
|
\*************************************************************************************************/
|
|
8773
9069
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8774
9070
|
|
|
@@ -8789,10 +9085,10 @@ exports.isSystemError = isSystemError;
|
|
|
8789
9085
|
|
|
8790
9086
|
/***/ }),
|
|
8791
9087
|
|
|
8792
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8793
|
-
|
|
8794
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8795
|
-
|
|
9088
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/brand.js":
|
|
9089
|
+
/*!********************************************************************************************!*\
|
|
9090
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/brand.js ***!
|
|
9091
|
+
\********************************************************************************************/
|
|
8796
9092
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8797
9093
|
|
|
8798
9094
|
"use strict";
|
|
@@ -8801,25 +9097,44 @@ exports.isSystemError = isSystemError;
|
|
|
8801
9097
|
// <https://gist.github.com/dcolthorp/aa21cf87d847ae9942106435bf47565d>
|
|
8802
9098
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8803
9099
|
exports.brand = void 0;
|
|
8804
|
-
|
|
8805
|
-
|
|
9100
|
+
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");
|
|
9101
|
+
const constants_js_1 = __webpack_require__(/*! ./constants.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/constants.js");
|
|
9102
|
+
function brand(typeInput, subject) {
|
|
8806
9103
|
if (subject === undefined)
|
|
8807
|
-
return function (subject) {
|
|
8808
|
-
|
|
9104
|
+
return function (subject) {
|
|
9105
|
+
return brand(typeInput, subject);
|
|
9106
|
+
};
|
|
9107
|
+
if ((0, isType_js_1.isType)(subject, s => typeof s === 'object' && s !== null)) {
|
|
8809
9108
|
// if subject is not an object, the branding will exist only in type-level.
|
|
8810
|
-
subject[
|
|
9109
|
+
subject[constants_js_1.typeSym] = typeInput;
|
|
8811
9110
|
}
|
|
8812
9111
|
return subject;
|
|
8813
9112
|
}
|
|
8814
9113
|
exports.brand = brand;
|
|
8815
|
-
//# sourceMappingURL=
|
|
9114
|
+
//# sourceMappingURL=brand.js.map
|
|
8816
9115
|
|
|
8817
9116
|
/***/ }),
|
|
8818
9117
|
|
|
8819
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8820
|
-
|
|
8821
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8822
|
-
|
|
9118
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/constants.js":
|
|
9119
|
+
/*!************************************************************************************************!*\
|
|
9120
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/constants.js ***!
|
|
9121
|
+
\************************************************************************************************/
|
|
9122
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
9123
|
+
|
|
9124
|
+
"use strict";
|
|
9125
|
+
|
|
9126
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9127
|
+
exports.valueSym = exports.typeSym = void 0;
|
|
9128
|
+
exports.typeSym = Symbol('type');
|
|
9129
|
+
exports.valueSym = Symbol('value');
|
|
9130
|
+
//# sourceMappingURL=constants.js.map
|
|
9131
|
+
|
|
9132
|
+
/***/ }),
|
|
9133
|
+
|
|
9134
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/flavor.js":
|
|
9135
|
+
/*!*********************************************************************************************!*\
|
|
9136
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/flavor.js ***!
|
|
9137
|
+
\*********************************************************************************************/
|
|
8823
9138
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8824
9139
|
|
|
8825
9140
|
"use strict";
|
|
@@ -8828,25 +9143,28 @@ exports.brand = brand;
|
|
|
8828
9143
|
// <https://gist.github.com/dcolthorp/aa21cf87d847ae9942106435bf47565d>
|
|
8829
9144
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8830
9145
|
exports.flavor = void 0;
|
|
8831
|
-
|
|
9146
|
+
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");
|
|
9147
|
+
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
9148
|
function flavor(type, subject) {
|
|
8833
9149
|
if (subject === undefined)
|
|
8834
|
-
return function (subject) {
|
|
8835
|
-
|
|
9150
|
+
return function (subject) {
|
|
9151
|
+
return flavor(type, subject);
|
|
9152
|
+
};
|
|
9153
|
+
if ((0, isType_js_1.isType)(subject, s => typeof s === 'object' && s !== null)) {
|
|
8836
9154
|
// if subject is not an object, the branding will exist only in type-level.
|
|
8837
|
-
subject[
|
|
9155
|
+
subject[constants_js_1.typeSym] = type;
|
|
8838
9156
|
}
|
|
8839
9157
|
return subject;
|
|
8840
9158
|
}
|
|
8841
9159
|
exports.flavor = flavor;
|
|
8842
|
-
//# sourceMappingURL=
|
|
9160
|
+
//# sourceMappingURL=flavor.js.map
|
|
8843
9161
|
|
|
8844
9162
|
/***/ }),
|
|
8845
9163
|
|
|
8846
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8847
|
-
|
|
8848
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8849
|
-
|
|
9164
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/index.js":
|
|
9165
|
+
/*!********************************************************************************************!*\
|
|
9166
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/index.js ***!
|
|
9167
|
+
\********************************************************************************************/
|
|
8850
9168
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8851
9169
|
|
|
8852
9170
|
"use strict";
|
|
@@ -8866,55 +9184,52 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8866
9184
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8867
9185
|
};
|
|
8868
9186
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8869
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8870
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8871
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9187
|
+
__exportStar(__webpack_require__(/*! ./brand.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/brand.js"), exports);
|
|
9188
|
+
__exportStar(__webpack_require__(/*! ./flavor.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/flavor.js"), exports);
|
|
9189
|
+
__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
9190
|
//# sourceMappingURL=index.js.map
|
|
8873
9191
|
|
|
8874
9192
|
/***/ }),
|
|
8875
9193
|
|
|
8876
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8877
|
-
|
|
8878
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8879
|
-
|
|
9194
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/nominal_match.js":
|
|
9195
|
+
/*!****************************************************************************************************!*\
|
|
9196
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nominal/nominal_match.js ***!
|
|
9197
|
+
\****************************************************************************************************/
|
|
8880
9198
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8881
9199
|
|
|
8882
9200
|
"use strict";
|
|
8883
9201
|
|
|
8884
9202
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8885
9203
|
exports.nominalMatch = void 0;
|
|
8886
|
-
|
|
9204
|
+
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
9205
|
function nominalMatch(a, b) {
|
|
8888
9206
|
if (typeof a === 'object' && a !== null && typeof b === 'object' && b !== null)
|
|
8889
|
-
return a[
|
|
9207
|
+
return a[constants_js_1.typeSym] === b[constants_js_1.typeSym];
|
|
8890
9208
|
else {
|
|
8891
9209
|
return true;
|
|
8892
9210
|
}
|
|
8893
9211
|
}
|
|
8894
9212
|
exports.nominalMatch = nominalMatch;
|
|
8895
|
-
//# sourceMappingURL=
|
|
9213
|
+
//# sourceMappingURL=nominal_match.js.map
|
|
8896
9214
|
|
|
8897
9215
|
/***/ }),
|
|
8898
9216
|
|
|
8899
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
8900
|
-
|
|
8901
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
8902
|
-
|
|
9217
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/number/number_plus.js":
|
|
9218
|
+
/*!*************************************************************************************************!*\
|
|
9219
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/number/number_plus.js ***!
|
|
9220
|
+
\*************************************************************************************************/
|
|
8903
9221
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8904
9222
|
|
|
8905
9223
|
"use strict";
|
|
8906
9224
|
|
|
8907
9225
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8908
|
-
|
|
8909
|
-
exports.typeSym = Symbol('type');
|
|
8910
|
-
exports.valueSym = Symbol('value');
|
|
8911
|
-
//# sourceMappingURL=types.js.map
|
|
9226
|
+
//# sourceMappingURL=number_plus.js.map
|
|
8912
9227
|
|
|
8913
9228
|
/***/ }),
|
|
8914
9229
|
|
|
8915
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9230
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/everyKey.js":
|
|
8916
9231
|
/*!**********************************************************************************************!*\
|
|
8917
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9232
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/everyKey.js ***!
|
|
8918
9233
|
\**********************************************************************************************/
|
|
8919
9234
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8920
9235
|
|
|
@@ -8930,9 +9245,9 @@ exports.everyKey = everyKey;
|
|
|
8930
9245
|
|
|
8931
9246
|
/***/ }),
|
|
8932
9247
|
|
|
8933
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9248
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/facade.js":
|
|
8934
9249
|
/*!********************************************************************************************!*\
|
|
8935
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9250
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/facade.js ***!
|
|
8936
9251
|
\********************************************************************************************/
|
|
8937
9252
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8938
9253
|
|
|
@@ -8940,27 +9255,23 @@ exports.everyKey = everyKey;
|
|
|
8940
9255
|
|
|
8941
9256
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8942
9257
|
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];
|
|
9258
|
+
function facade(subject, ...props) {
|
|
9259
|
+
return props.reduce((p, k) => {
|
|
9260
|
+
const prop = subject[k];
|
|
8950
9261
|
if (typeof prop === 'function') {
|
|
8951
9262
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
|
|
8952
9263
|
p[k] = prop.bind(subject);
|
|
8953
9264
|
}
|
|
8954
9265
|
else {
|
|
8955
9266
|
Object.defineProperty(p, k, {
|
|
8956
|
-
get
|
|
9267
|
+
get() {
|
|
8957
9268
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
8958
9269
|
return subject[k];
|
|
8959
9270
|
},
|
|
8960
|
-
set
|
|
9271
|
+
set(value) {
|
|
8961
9272
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-assignment
|
|
8962
|
-
return subject[k] = value;
|
|
8963
|
-
}
|
|
9273
|
+
return (subject[k] = value);
|
|
9274
|
+
}
|
|
8964
9275
|
});
|
|
8965
9276
|
}
|
|
8966
9277
|
return p;
|
|
@@ -8971,9 +9282,9 @@ exports.facade = facade;
|
|
|
8971
9282
|
|
|
8972
9283
|
/***/ }),
|
|
8973
9284
|
|
|
8974
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9285
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/filterKey.js":
|
|
8975
9286
|
/*!***********************************************************************************************!*\
|
|
8976
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9287
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/filterKey.js ***!
|
|
8977
9288
|
\***********************************************************************************************/
|
|
8978
9289
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8979
9290
|
|
|
@@ -8982,16 +9293,18 @@ exports.facade = facade;
|
|
|
8982
9293
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8983
9294
|
exports.filterKey = void 0;
|
|
8984
9295
|
function filterKey(subject, predicate, thisArg) {
|
|
8985
|
-
return Object.keys(subject).filter(
|
|
9296
|
+
return Object.keys(subject).filter(function (k, i, a) {
|
|
9297
|
+
return predicate.apply(this, [k, i, a, subject]);
|
|
9298
|
+
}, thisArg);
|
|
8986
9299
|
}
|
|
8987
9300
|
exports.filterKey = filterKey;
|
|
8988
9301
|
//# sourceMappingURL=filterKey.js.map
|
|
8989
9302
|
|
|
8990
9303
|
/***/ }),
|
|
8991
9304
|
|
|
8992
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9305
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/findKey.js":
|
|
8993
9306
|
/*!*********************************************************************************************!*\
|
|
8994
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9307
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/findKey.js ***!
|
|
8995
9308
|
\*********************************************************************************************/
|
|
8996
9309
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8997
9310
|
|
|
@@ -9000,16 +9313,18 @@ exports.filterKey = filterKey;
|
|
|
9000
9313
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9001
9314
|
exports.findKey = void 0;
|
|
9002
9315
|
function findKey(subject, predicate, thisArg) {
|
|
9003
|
-
return Object.keys(subject).find(
|
|
9316
|
+
return Object.keys(subject).find(function (k, i, a) {
|
|
9317
|
+
return predicate.apply(this, [k, i, a, subject]);
|
|
9318
|
+
}, thisArg);
|
|
9004
9319
|
}
|
|
9005
9320
|
exports.findKey = findKey;
|
|
9006
9321
|
//# sourceMappingURL=findKey.js.map
|
|
9007
9322
|
|
|
9008
9323
|
/***/ }),
|
|
9009
9324
|
|
|
9010
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9325
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/forEachKey.js":
|
|
9011
9326
|
/*!************************************************************************************************!*\
|
|
9012
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9327
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/forEachKey.js ***!
|
|
9013
9328
|
\************************************************************************************************/
|
|
9014
9329
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9015
9330
|
|
|
@@ -9025,9 +9340,9 @@ exports.forEachKey = forEachKey;
|
|
|
9025
9340
|
|
|
9026
9341
|
/***/ }),
|
|
9027
9342
|
|
|
9028
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9343
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/getField.js":
|
|
9029
9344
|
/*!**********************************************************************************************!*\
|
|
9030
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9345
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/getField.js ***!
|
|
9031
9346
|
\**********************************************************************************************/
|
|
9032
9347
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9033
9348
|
|
|
@@ -9036,16 +9351,16 @@ exports.forEachKey = forEachKey;
|
|
|
9036
9351
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9037
9352
|
exports.getField = void 0;
|
|
9038
9353
|
function getField(subject, key, defaultValue) {
|
|
9039
|
-
return subject && subject[key] || defaultValue;
|
|
9354
|
+
return (subject && subject[key]) || defaultValue;
|
|
9040
9355
|
}
|
|
9041
9356
|
exports.getField = getField;
|
|
9042
9357
|
//# sourceMappingURL=getField.js.map
|
|
9043
9358
|
|
|
9044
9359
|
/***/ }),
|
|
9045
9360
|
|
|
9046
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9361
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasKey.js":
|
|
9047
9362
|
/*!********************************************************************************************!*\
|
|
9048
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9363
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasKey.js ***!
|
|
9049
9364
|
\********************************************************************************************/
|
|
9050
9365
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9051
9366
|
|
|
@@ -9053,21 +9368,17 @@ exports.getField = getField;
|
|
|
9053
9368
|
|
|
9054
9369
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9055
9370
|
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]; });
|
|
9371
|
+
function hasKey(subject, ...keys) {
|
|
9372
|
+
return !keys.some(key => !subject[key]);
|
|
9062
9373
|
}
|
|
9063
9374
|
exports.hasKey = hasKey;
|
|
9064
9375
|
//# sourceMappingURL=hasKey.js.map
|
|
9065
9376
|
|
|
9066
9377
|
/***/ }),
|
|
9067
9378
|
|
|
9068
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9379
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasProperty.js":
|
|
9069
9380
|
/*!*************************************************************************************************!*\
|
|
9070
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9381
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasProperty.js ***!
|
|
9071
9382
|
\*************************************************************************************************/
|
|
9072
9383
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9073
9384
|
|
|
@@ -9083,9 +9394,9 @@ exports.hasProperty = hasProperty;
|
|
|
9083
9394
|
|
|
9084
9395
|
/***/ }),
|
|
9085
9396
|
|
|
9086
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9397
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/index.js":
|
|
9087
9398
|
/*!*******************************************************************************************!*\
|
|
9088
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9399
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/index.js ***!
|
|
9089
9400
|
\*******************************************************************************************/
|
|
9090
9401
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9091
9402
|
|
|
@@ -9106,31 +9417,31 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9106
9417
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9107
9418
|
};
|
|
9108
9419
|
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
|
|
9420
|
+
__exportStar(__webpack_require__(/*! ./everyKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/everyKey.js"), exports);
|
|
9421
|
+
__exportStar(__webpack_require__(/*! ./facade.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/facade.js"), exports);
|
|
9422
|
+
__exportStar(__webpack_require__(/*! ./filterKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/filterKey.js"), exports);
|
|
9423
|
+
__exportStar(__webpack_require__(/*! ./findKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/findKey.js"), exports);
|
|
9424
|
+
__exportStar(__webpack_require__(/*! ./forEachKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/forEachKey.js"), exports);
|
|
9425
|
+
__exportStar(__webpack_require__(/*! ./getField.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/getField.js"), exports);
|
|
9426
|
+
__exportStar(__webpack_require__(/*! ./hasKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasKey.js"), exports);
|
|
9427
|
+
__exportStar(__webpack_require__(/*! ./hasProperty.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasProperty.js"), exports);
|
|
9428
|
+
__exportStar(__webpack_require__(/*! ./mapKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapKey.js"), exports);
|
|
9429
|
+
__exportStar(__webpack_require__(/*! ./mapProperties.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapProperties.js"), exports);
|
|
9430
|
+
__exportStar(__webpack_require__(/*! ./omit.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/omit.js"), exports);
|
|
9431
|
+
__exportStar(__webpack_require__(/*! ./pick.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/pick.js"), exports);
|
|
9432
|
+
__exportStar(__webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js"), exports);
|
|
9433
|
+
__exportStar(__webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js"), exports);
|
|
9434
|
+
__exportStar(__webpack_require__(/*! ./replaceProperty.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/replaceProperty.js"), exports);
|
|
9435
|
+
__exportStar(__webpack_require__(/*! ./someKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/someKey.js"), exports);
|
|
9436
|
+
__exportStar(__webpack_require__(/*! ./split.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/split.js"), exports);
|
|
9437
|
+
__exportStar(__webpack_require__(/*! ./typeOverrideIncompatible.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js"), exports);
|
|
9127
9438
|
//# sourceMappingURL=index.js.map
|
|
9128
9439
|
|
|
9129
9440
|
/***/ }),
|
|
9130
9441
|
|
|
9131
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9442
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapKey.js":
|
|
9132
9443
|
/*!********************************************************************************************!*\
|
|
9133
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9444
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapKey.js ***!
|
|
9134
9445
|
\********************************************************************************************/
|
|
9135
9446
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9136
9447
|
|
|
@@ -9139,16 +9450,18 @@ __exportStar(__webpack_require__(/*! ./typeOverrideIncompatible.js */ "../../nod
|
|
|
9139
9450
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9140
9451
|
exports.mapKey = void 0;
|
|
9141
9452
|
function mapKey(subject, predicate, thisArg) {
|
|
9142
|
-
return Object.keys(subject).map(
|
|
9453
|
+
return Object.keys(subject).map(function (k, i, a) {
|
|
9454
|
+
return predicate.apply(this, [k, i, a, subject]);
|
|
9455
|
+
}, thisArg);
|
|
9143
9456
|
}
|
|
9144
9457
|
exports.mapKey = mapKey;
|
|
9145
9458
|
//# sourceMappingURL=mapKey.js.map
|
|
9146
9459
|
|
|
9147
9460
|
/***/ }),
|
|
9148
9461
|
|
|
9149
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9462
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapProperties.js":
|
|
9150
9463
|
/*!***************************************************************************************************!*\
|
|
9151
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9464
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapProperties.js ***!
|
|
9152
9465
|
\***************************************************************************************************/
|
|
9153
9466
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9154
9467
|
|
|
@@ -9156,7 +9469,7 @@ exports.mapKey = mapKey;
|
|
|
9156
9469
|
|
|
9157
9470
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9158
9471
|
exports.mapProperties = void 0;
|
|
9159
|
-
|
|
9472
|
+
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
9473
|
/**
|
|
9161
9474
|
* An Object-specific version of `map`.
|
|
9162
9475
|
* Original source:
|
|
@@ -9166,17 +9479,16 @@ var reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modul
|
|
|
9166
9479
|
* I keep this parameter order because this parameter order provides better type inference.
|
|
9167
9480
|
*/
|
|
9168
9481
|
function mapProperties(subject, callbackfn) {
|
|
9169
|
-
return (0, reduceKey_js_1.reduceByKey)(subject,
|
|
9170
|
-
p); }, {});
|
|
9482
|
+
return (0, reduceKey_js_1.reduceByKey)(subject, (p, key) => ((p[key] = callbackfn(subject[key], key, subject)), p), {});
|
|
9171
9483
|
}
|
|
9172
9484
|
exports.mapProperties = mapProperties;
|
|
9173
9485
|
//# sourceMappingURL=mapProperties.js.map
|
|
9174
9486
|
|
|
9175
9487
|
/***/ }),
|
|
9176
9488
|
|
|
9177
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9489
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/omit.js":
|
|
9178
9490
|
/*!******************************************************************************************!*\
|
|
9179
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9491
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/omit.js ***!
|
|
9180
9492
|
\******************************************************************************************/
|
|
9181
9493
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9182
9494
|
|
|
@@ -9184,14 +9496,10 @@ exports.mapProperties = mapProperties;
|
|
|
9184
9496
|
|
|
9185
9497
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9186
9498
|
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) {
|
|
9499
|
+
const record_js_1 = __webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js");
|
|
9500
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9501
|
+
function omit(subject, ...props) {
|
|
9502
|
+
return (0, reduceKey_js_1.reduceByKey)(subject, (p, k) => {
|
|
9195
9503
|
if (props.indexOf(k) === -1)
|
|
9196
9504
|
p[k] = subject[k];
|
|
9197
9505
|
return p;
|
|
@@ -9202,9 +9510,9 @@ exports.omit = omit;
|
|
|
9202
9510
|
|
|
9203
9511
|
/***/ }),
|
|
9204
9512
|
|
|
9205
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9513
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/pick.js":
|
|
9206
9514
|
/*!******************************************************************************************!*\
|
|
9207
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9515
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/pick.js ***!
|
|
9208
9516
|
\******************************************************************************************/
|
|
9209
9517
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9210
9518
|
|
|
@@ -9212,14 +9520,10 @@ exports.omit = omit;
|
|
|
9212
9520
|
|
|
9213
9521
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9214
9522
|
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) {
|
|
9523
|
+
const record_js_1 = __webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js");
|
|
9524
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9525
|
+
function pick(subject, ...props) {
|
|
9526
|
+
return (0, reduceKey_js_1.reduceByKey)(subject, (p, k) => {
|
|
9223
9527
|
if (props.indexOf(k) >= 0)
|
|
9224
9528
|
p[k] = subject[k];
|
|
9225
9529
|
return p;
|
|
@@ -9230,9 +9534,9 @@ exports.pick = pick;
|
|
|
9230
9534
|
|
|
9231
9535
|
/***/ }),
|
|
9232
9536
|
|
|
9233
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9537
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js":
|
|
9234
9538
|
/*!********************************************************************************************!*\
|
|
9235
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9539
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js ***!
|
|
9236
9540
|
\********************************************************************************************/
|
|
9237
9541
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9238
9542
|
|
|
@@ -9241,7 +9545,7 @@ exports.pick = pick;
|
|
|
9241
9545
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9242
9546
|
exports.record = void 0;
|
|
9243
9547
|
function record(value) {
|
|
9244
|
-
|
|
9548
|
+
const r = Object.create(null);
|
|
9245
9549
|
return (value ? Object.assign(r, value) : r);
|
|
9246
9550
|
}
|
|
9247
9551
|
exports.record = record;
|
|
@@ -9249,9 +9553,9 @@ exports.record = record;
|
|
|
9249
9553
|
|
|
9250
9554
|
/***/ }),
|
|
9251
9555
|
|
|
9252
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9556
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js":
|
|
9253
9557
|
/*!***********************************************************************************************!*\
|
|
9254
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9558
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js ***!
|
|
9255
9559
|
\***********************************************************************************************/
|
|
9256
9560
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9257
9561
|
|
|
@@ -9260,7 +9564,7 @@ exports.record = record;
|
|
|
9260
9564
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9261
9565
|
exports.reduceKey = exports.reduceByKey = void 0;
|
|
9262
9566
|
function reduceByKey(subject, callbackfn, initialValue) {
|
|
9263
|
-
return Object.keys(subject).reduce(callbackfn, initialValue);
|
|
9567
|
+
return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);
|
|
9264
9568
|
}
|
|
9265
9569
|
exports.reduceByKey = reduceByKey;
|
|
9266
9570
|
/**
|
|
@@ -9271,39 +9575,27 @@ exports.reduceKey = reduceByKey;
|
|
|
9271
9575
|
|
|
9272
9576
|
/***/ }),
|
|
9273
9577
|
|
|
9274
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9578
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/replaceProperty.js":
|
|
9275
9579
|
/*!*****************************************************************************************************!*\
|
|
9276
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9580
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/replaceProperty.js ***!
|
|
9277
9581
|
\*****************************************************************************************************/
|
|
9278
9582
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9279
9583
|
|
|
9280
9584
|
"use strict";
|
|
9281
9585
|
|
|
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
9586
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9294
9587
|
exports.replaceProperty = void 0;
|
|
9295
9588
|
function replaceProperty(subject, key, value) {
|
|
9296
|
-
|
|
9297
|
-
return __assign(__assign({}, subject), (_a = {}, _a[key] = value, _a));
|
|
9589
|
+
return { ...subject, [key]: value };
|
|
9298
9590
|
}
|
|
9299
9591
|
exports.replaceProperty = replaceProperty;
|
|
9300
9592
|
//# sourceMappingURL=replaceProperty.js.map
|
|
9301
9593
|
|
|
9302
9594
|
/***/ }),
|
|
9303
9595
|
|
|
9304
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9596
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/someKey.js":
|
|
9305
9597
|
/*!*********************************************************************************************!*\
|
|
9306
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9598
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/someKey.js ***!
|
|
9307
9599
|
\*********************************************************************************************/
|
|
9308
9600
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9309
9601
|
|
|
@@ -9312,72 +9604,53 @@ exports.replaceProperty = replaceProperty;
|
|
|
9312
9604
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9313
9605
|
exports.someKey = void 0;
|
|
9314
9606
|
function someKey(subject, predicate, thisArg) {
|
|
9315
|
-
return Object.keys(subject).some(
|
|
9607
|
+
return Object.keys(subject).some(function (k, i, a) {
|
|
9608
|
+
return predicate.apply(this, [k, i, a, subject]);
|
|
9609
|
+
}, thisArg);
|
|
9316
9610
|
}
|
|
9317
9611
|
exports.someKey = someKey;
|
|
9318
9612
|
//# sourceMappingURL=someKey.js.map
|
|
9319
9613
|
|
|
9320
9614
|
/***/ }),
|
|
9321
9615
|
|
|
9322
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9616
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/split.js":
|
|
9323
9617
|
/*!*******************************************************************************************!*\
|
|
9324
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9618
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/split.js ***!
|
|
9325
9619
|
\*******************************************************************************************/
|
|
9326
9620
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9327
9621
|
|
|
9328
9622
|
"use strict";
|
|
9329
9623
|
|
|
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
9624
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9340
9625
|
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);
|
|
9626
|
+
const reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js");
|
|
9627
|
+
function split(target, ...splitters) {
|
|
9628
|
+
const keyMap = {};
|
|
9629
|
+
const s = splitters.map(s => (0, reduceKey_js_1.reduceByKey)(s, (p, k) => ((keyMap[k] = true), (p[k] = target[k] ?? s[k]), p), {}));
|
|
9630
|
+
const r = (0, reduceKey_js_1.reduceByKey)(target, (p, k) => (keyMap[k] ? p : ((p[k] = target[k]), p)), {});
|
|
9631
|
+
return [...s, r];
|
|
9351
9632
|
}
|
|
9352
9633
|
exports.split = split;
|
|
9353
9634
|
//# sourceMappingURL=split.js.map
|
|
9354
9635
|
|
|
9355
9636
|
/***/ }),
|
|
9356
9637
|
|
|
9357
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9638
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js":
|
|
9358
9639
|
/*!**************************************************************************************************************!*\
|
|
9359
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9640
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js ***!
|
|
9360
9641
|
\**************************************************************************************************************/
|
|
9361
9642
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9362
9643
|
|
|
9363
9644
|
"use strict";
|
|
9364
9645
|
|
|
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
9646
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9377
9647
|
exports.typeOverrideIncompatible = void 0;
|
|
9378
9648
|
function typeOverrideIncompatible() {
|
|
9379
9649
|
return function (source, override) {
|
|
9380
|
-
return
|
|
9650
|
+
return {
|
|
9651
|
+
...source,
|
|
9652
|
+
...override
|
|
9653
|
+
};
|
|
9381
9654
|
};
|
|
9382
9655
|
}
|
|
9383
9656
|
exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
@@ -9385,9 +9658,9 @@ exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
|
9385
9658
|
|
|
9386
9659
|
/***/ }),
|
|
9387
9660
|
|
|
9388
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9661
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/CanAssign.js":
|
|
9389
9662
|
/*!***************************************************************************************************!*\
|
|
9390
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9663
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/CanAssign.js ***!
|
|
9391
9664
|
\***************************************************************************************************/
|
|
9392
9665
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9393
9666
|
|
|
@@ -9396,16 +9669,16 @@ exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
|
9396
9669
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9397
9670
|
exports.canAssign = void 0;
|
|
9398
9671
|
function canAssign() {
|
|
9399
|
-
return
|
|
9672
|
+
return () => true;
|
|
9400
9673
|
}
|
|
9401
9674
|
exports.canAssign = canAssign;
|
|
9402
9675
|
//# sourceMappingURL=CanAssign.js.map
|
|
9403
9676
|
|
|
9404
9677
|
/***/ }),
|
|
9405
9678
|
|
|
9406
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9679
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/index.js":
|
|
9407
9680
|
/*!***********************************************************************************************!*\
|
|
9408
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9681
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/index.js ***!
|
|
9409
9682
|
\***********************************************************************************************/
|
|
9410
9683
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9411
9684
|
|
|
@@ -9426,15 +9699,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9426
9699
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9427
9700
|
};
|
|
9428
9701
|
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
|
|
9702
|
+
__exportStar(__webpack_require__(/*! ./CanAssign.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/CanAssign.js"), exports);
|
|
9703
|
+
__exportStar(__webpack_require__(/*! ./isType.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/isType.js"), exports);
|
|
9431
9704
|
//# sourceMappingURL=index.js.map
|
|
9432
9705
|
|
|
9433
9706
|
/***/ }),
|
|
9434
9707
|
|
|
9435
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9708
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/isType.js":
|
|
9436
9709
|
/*!************************************************************************************************!*\
|
|
9437
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9710
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/isType.js ***!
|
|
9438
9711
|
\************************************************************************************************/
|
|
9439
9712
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9440
9713
|
|
|
@@ -9452,20 +9725,25 @@ isType.t = function (subject) {
|
|
|
9452
9725
|
isType.f = function (subject) {
|
|
9453
9726
|
return subject === undefined || subject === false;
|
|
9454
9727
|
};
|
|
9728
|
+
function isNever(subject) {
|
|
9729
|
+
return true;
|
|
9730
|
+
}
|
|
9731
|
+
isType.never = isNever;
|
|
9455
9732
|
/**
|
|
9456
9733
|
* Are types A and B equals/not equals.
|
|
9457
|
-
* Easier to use
|
|
9734
|
+
* Easier to use than `isType.t<>()` and `isType.f<>()`,
|
|
9458
9735
|
* when doing type level only equality comparison as you don't have to import `Equal<>`.
|
|
9736
|
+
*
|
|
9737
|
+
* @deprecated use `type.equal()` instead
|
|
9459
9738
|
*/
|
|
9460
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9461
9739
|
isType.equal = function () { };
|
|
9462
9740
|
//# sourceMappingURL=isType.js.map
|
|
9463
9741
|
|
|
9464
9742
|
/***/ }),
|
|
9465
9743
|
|
|
9466
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9744
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/MaybePromise.js":
|
|
9467
9745
|
/*!***************************************************************************************************!*\
|
|
9468
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9746
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/MaybePromise.js ***!
|
|
9469
9747
|
\***************************************************************************************************/
|
|
9470
9748
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9471
9749
|
|
|
@@ -9473,7 +9751,7 @@ isType.equal = function () { };
|
|
|
9473
9751
|
|
|
9474
9752
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9475
9753
|
exports.MaybePromise = exports.transformMaybePromise = void 0;
|
|
9476
|
-
|
|
9754
|
+
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
9755
|
function transformMaybePromise(value, transformer) {
|
|
9478
9756
|
return (0, isPromise_js_1.isPromise)(value) ? value.then(transformer) : transformer(value);
|
|
9479
9757
|
}
|
|
@@ -9485,9 +9763,9 @@ exports.MaybePromise = {
|
|
|
9485
9763
|
|
|
9486
9764
|
/***/ }),
|
|
9487
9765
|
|
|
9488
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9766
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/index.js":
|
|
9489
9767
|
/*!********************************************************************************************!*\
|
|
9490
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9768
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/index.js ***!
|
|
9491
9769
|
\********************************************************************************************/
|
|
9492
9770
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9493
9771
|
|
|
@@ -9508,16 +9786,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9508
9786
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9509
9787
|
};
|
|
9510
9788
|
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
|
|
9789
|
+
__exportStar(__webpack_require__(/*! ./isPromise.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/isPromise.js"), exports);
|
|
9790
|
+
__exportStar(__webpack_require__(/*! ./mapSeries.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/mapSeries.js"), exports);
|
|
9791
|
+
__exportStar(__webpack_require__(/*! ./MaybePromise.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/MaybePromise.js"), exports);
|
|
9514
9792
|
//# sourceMappingURL=index.js.map
|
|
9515
9793
|
|
|
9516
9794
|
/***/ }),
|
|
9517
9795
|
|
|
9518
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9796
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/isPromise.js":
|
|
9519
9797
|
/*!************************************************************************************************!*\
|
|
9520
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9798
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/isPromise.js ***!
|
|
9521
9799
|
\************************************************************************************************/
|
|
9522
9800
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9523
9801
|
|
|
@@ -9534,9 +9812,9 @@ exports.isPromise = isPromise;
|
|
|
9534
9812
|
|
|
9535
9813
|
/***/ }),
|
|
9536
9814
|
|
|
9537
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9815
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/mapSeries.js":
|
|
9538
9816
|
/*!************************************************************************************************!*\
|
|
9539
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9817
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/mapSeries.js ***!
|
|
9540
9818
|
\************************************************************************************************/
|
|
9541
9819
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9542
9820
|
|
|
@@ -9545,73 +9823,157 @@ exports.isPromise = isPromise;
|
|
|
9545
9823
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9546
9824
|
exports.mapSeries = void 0;
|
|
9547
9825
|
function mapSeries(values, fn) {
|
|
9548
|
-
return values.reduce(
|
|
9826
|
+
return values.reduce((p, v) => p.then(r => fn(v).then(v => (r.push(v), r))), Promise.resolve([]));
|
|
9549
9827
|
}
|
|
9550
9828
|
exports.mapSeries = mapSeries;
|
|
9551
9829
|
//# sourceMappingURL=mapSeries.js.map
|
|
9552
9830
|
|
|
9553
9831
|
/***/ }),
|
|
9554
9832
|
|
|
9555
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9556
|
-
|
|
9557
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9558
|
-
|
|
9833
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/stub.js":
|
|
9834
|
+
/*!*******************************************************************************************!*\
|
|
9835
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/stub.js ***!
|
|
9836
|
+
\*******************************************************************************************/
|
|
9559
9837
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9560
9838
|
|
|
9561
9839
|
"use strict";
|
|
9562
9840
|
|
|
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
9841
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9578
|
-
|
|
9579
|
-
|
|
9842
|
+
exports.stub = void 0;
|
|
9843
|
+
const unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js");
|
|
9844
|
+
function stub(stub) {
|
|
9845
|
+
return stub;
|
|
9846
|
+
}
|
|
9847
|
+
exports.stub = stub;
|
|
9848
|
+
function build(init) {
|
|
9849
|
+
return function (value) {
|
|
9850
|
+
const initValue = typeof init === 'function' ? init() : init;
|
|
9851
|
+
return initValue ? stub((0, unpartial_1.requiredDeep)(initValue, value)) : stub(value);
|
|
9852
|
+
};
|
|
9853
|
+
}
|
|
9854
|
+
stub.build = build;
|
|
9855
|
+
//# sourceMappingURL=stub.js.map
|
|
9580
9856
|
|
|
9581
9857
|
/***/ }),
|
|
9582
9858
|
|
|
9583
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9584
|
-
|
|
9585
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9586
|
-
|
|
9587
|
-
/***/ (function(__unused_webpack_module, exports
|
|
9859
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/test_type.js":
|
|
9860
|
+
/*!************************************************************************************************!*\
|
|
9861
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/testing/test_type.js ***!
|
|
9862
|
+
\************************************************************************************************/
|
|
9863
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
9588
9864
|
|
|
9589
9865
|
"use strict";
|
|
9590
9866
|
|
|
9591
9867
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9592
|
-
exports.
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
return stub;
|
|
9868
|
+
exports.testType = void 0;
|
|
9869
|
+
function equal(expected) {
|
|
9870
|
+
return expected;
|
|
9596
9871
|
}
|
|
9597
|
-
exports.stub = stub;
|
|
9598
9872
|
/**
|
|
9599
|
-
*
|
|
9873
|
+
* Test utilities for types.
|
|
9874
|
+
*
|
|
9875
|
+
* This is designed specifically for testing.
|
|
9876
|
+
* The return value is the input `expected` parameter asserted as the first type parameter,
|
|
9877
|
+
* so that the type can be further inspected.
|
|
9600
9878
|
*/
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9879
|
+
exports.testType = {
|
|
9880
|
+
/**
|
|
9881
|
+
* Check if type `T` is exactly `any`.
|
|
9882
|
+
*
|
|
9883
|
+
* @return `expected` as `T` for type inspection.
|
|
9884
|
+
*/
|
|
9885
|
+
any(expected) {
|
|
9886
|
+
return expected;
|
|
9887
|
+
},
|
|
9888
|
+
/**
|
|
9889
|
+
* Check if type `T` is exactly `unknown`.
|
|
9890
|
+
*
|
|
9891
|
+
* @return `expected` as `T` for type inspection.
|
|
9892
|
+
*/
|
|
9893
|
+
unknown(expected) {
|
|
9894
|
+
return expected;
|
|
9895
|
+
},
|
|
9896
|
+
/**
|
|
9897
|
+
* Check if type `T` is exactly `never`.
|
|
9898
|
+
*
|
|
9899
|
+
* @return `expected` as `T` for type inspection.
|
|
9900
|
+
*/
|
|
9901
|
+
never(expected) {
|
|
9902
|
+
return expected;
|
|
9903
|
+
},
|
|
9904
|
+
/**
|
|
9905
|
+
* Check if type `T` is exactly `void`.
|
|
9906
|
+
*
|
|
9907
|
+
* @return `expected` as `T` for type inspection.
|
|
9908
|
+
*/
|
|
9909
|
+
void(expected) {
|
|
9910
|
+
return expected;
|
|
9911
|
+
},
|
|
9912
|
+
equal,
|
|
9913
|
+
/**
|
|
9914
|
+
* Check if `A` can assign to `B`.
|
|
9915
|
+
*
|
|
9916
|
+
* @return `expected` as `A` for type inspection.
|
|
9917
|
+
*/
|
|
9918
|
+
canAssign(expected) {
|
|
9919
|
+
return expected;
|
|
9920
|
+
},
|
|
9921
|
+
/**
|
|
9922
|
+
* Check if type `T` is exactly `boolean`.
|
|
9923
|
+
*
|
|
9924
|
+
* @return `expected` as `T` for type inspection.
|
|
9925
|
+
*/
|
|
9926
|
+
strictBoolean(expected) {
|
|
9927
|
+
return expected;
|
|
9928
|
+
},
|
|
9929
|
+
/**
|
|
9930
|
+
* Check if type `T` is `boolean` and boolean literals.
|
|
9931
|
+
*
|
|
9932
|
+
* @return `expected` as `T` for type inspection.
|
|
9933
|
+
*/
|
|
9934
|
+
boolean(expected) {
|
|
9935
|
+
return expected;
|
|
9936
|
+
},
|
|
9937
|
+
/**
|
|
9938
|
+
* Check if type `T` is exactly `true`.
|
|
9939
|
+
*
|
|
9940
|
+
* @return `expected` as `T` for type inspection.
|
|
9941
|
+
*/
|
|
9942
|
+
true(expected) {
|
|
9943
|
+
return expected;
|
|
9944
|
+
},
|
|
9945
|
+
/**
|
|
9946
|
+
* Check if type `T` is exactly `false`.
|
|
9947
|
+
*
|
|
9948
|
+
* @return `expected` as `T` for type inspection.
|
|
9949
|
+
*/
|
|
9950
|
+
false(expected) {
|
|
9951
|
+
return expected;
|
|
9952
|
+
},
|
|
9953
|
+
/**
|
|
9954
|
+
* Check if type `T` is exactly `number`.
|
|
9955
|
+
*
|
|
9956
|
+
* @return `expected` as `T` for type inspection.
|
|
9957
|
+
*/
|
|
9958
|
+
strictNumber(expected) {
|
|
9959
|
+
return expected;
|
|
9960
|
+
},
|
|
9961
|
+
/**
|
|
9962
|
+
* Check if type `T` is `number` or number literals.
|
|
9963
|
+
*
|
|
9964
|
+
* @return `expected` as `T` for type inspection.
|
|
9965
|
+
*/
|
|
9966
|
+
number(expected) {
|
|
9967
|
+
return expected;
|
|
9968
|
+
}
|
|
9607
9969
|
};
|
|
9608
|
-
//# sourceMappingURL=
|
|
9970
|
+
//# sourceMappingURL=test_type.js.map
|
|
9609
9971
|
|
|
9610
9972
|
/***/ }),
|
|
9611
9973
|
|
|
9612
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
9974
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/as.js":
|
|
9613
9975
|
/*!***************************************************************************************!*\
|
|
9614
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
9976
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/as.js ***!
|
|
9615
9977
|
\***************************************************************************************/
|
|
9616
9978
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9617
9979
|
|
|
@@ -9632,8 +9994,12 @@ exports.asAny = asAny;
|
|
|
9632
9994
|
*/
|
|
9633
9995
|
function amend(subject) {
|
|
9634
9996
|
return {
|
|
9635
|
-
union
|
|
9636
|
-
|
|
9997
|
+
union() {
|
|
9998
|
+
return subject;
|
|
9999
|
+
},
|
|
10000
|
+
intersect() {
|
|
10001
|
+
return subject;
|
|
10002
|
+
}
|
|
9637
10003
|
};
|
|
9638
10004
|
}
|
|
9639
10005
|
exports.amend = amend;
|
|
@@ -9641,9 +10007,9 @@ exports.amend = amend;
|
|
|
9641
10007
|
|
|
9642
10008
|
/***/ }),
|
|
9643
10009
|
|
|
9644
|
-
/***/ "../../node_modules/.pnpm/type-plus@5.0
|
|
10010
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/index.js":
|
|
9645
10011
|
/*!******************************************************************************************!*\
|
|
9646
|
-
!*** ../../node_modules/.pnpm/type-plus@5.0
|
|
10012
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/index.js ***!
|
|
9647
10013
|
\******************************************************************************************/
|
|
9648
10014
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9649
10015
|
|
|
@@ -9664,11 +10030,35 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9664
10030
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9665
10031
|
};
|
|
9666
10032
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9667
|
-
__exportStar(__webpack_require__(/*! ./as.js */ "../../node_modules/.pnpm/type-plus@5.0
|
|
10033
|
+
__exportStar(__webpack_require__(/*! ./as.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/as.js"), exports);
|
|
10034
|
+
__exportStar(__webpack_require__(/*! ./inspect.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/inspect.js"), exports);
|
|
9668
10035
|
//# sourceMappingURL=index.js.map
|
|
9669
10036
|
|
|
9670
10037
|
/***/ }),
|
|
9671
10038
|
|
|
10039
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/inspect.js":
|
|
10040
|
+
/*!********************************************************************************************!*\
|
|
10041
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/inspect.js ***!
|
|
10042
|
+
\********************************************************************************************/
|
|
10043
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
10044
|
+
|
|
10045
|
+
"use strict";
|
|
10046
|
+
|
|
10047
|
+
/* eslint-disable no-console */
|
|
10048
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10049
|
+
exports.inspect = void 0;
|
|
10050
|
+
/**
|
|
10051
|
+
* Inspects the value and returns it.
|
|
10052
|
+
*/
|
|
10053
|
+
function inspect(value, inspector = console.dir) {
|
|
10054
|
+
inspector(value);
|
|
10055
|
+
return value;
|
|
10056
|
+
}
|
|
10057
|
+
exports.inspect = inspect;
|
|
10058
|
+
//# sourceMappingURL=inspect.js.map
|
|
10059
|
+
|
|
10060
|
+
/***/ }),
|
|
10061
|
+
|
|
9672
10062
|
/***/ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js":
|
|
9673
10063
|
/*!************************************************************************************!*\
|
|
9674
10064
|
!*** ../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js ***!
|