standard-log 11.5.0 → 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 +1190 -801
- 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 +173 -119
- 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 +17 -9
- 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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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)
|
|
@@ -7542,15 +7614,19 @@ function tersifyAcornNode(context, node, length) {
|
|
|
7542
7614
|
return tersifyTaggedTemplateExpression(context, node, length);
|
|
7543
7615
|
case 'ChainExpression':
|
|
7544
7616
|
return tersifyChainExpression(context, node, length);
|
|
7617
|
+
case 'MetaProperty':
|
|
7618
|
+
return tersifyMetaProperty(context, node, length);
|
|
7619
|
+
case 'Super':
|
|
7620
|
+
return tersifySuperNode(context, node, length);
|
|
7545
7621
|
// istanbul ignore next
|
|
7546
7622
|
default:
|
|
7547
|
-
return tersifyUnknown(node);
|
|
7623
|
+
return tersifyUnknown(node, context.rawString);
|
|
7548
7624
|
}
|
|
7549
7625
|
}
|
|
7550
7626
|
// istanbul ignore next
|
|
7551
|
-
function tersifyUnknown(node) {
|
|
7627
|
+
function tersifyUnknown(node, rawString) {
|
|
7552
7628
|
var nodeType = node.type;
|
|
7553
|
-
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));
|
|
7554
7630
|
return "<unsupported: ".concat(nodeType, ">");
|
|
7555
7631
|
}
|
|
7556
7632
|
function tersifyCatchClauseNode(context, node, length) {
|
|
@@ -7578,6 +7654,10 @@ function tersifyYieldExpressionNode(context, node, length) {
|
|
|
7578
7654
|
var argument = tersifyAcornNode(context, node.argument, length);
|
|
7579
7655
|
return "yield ".concat(argument);
|
|
7580
7656
|
}
|
|
7657
|
+
function tersifyMetaProperty(context, node, length) {
|
|
7658
|
+
var meta = tersifyAcornNode(context, node.meta, length);
|
|
7659
|
+
return "".concat(meta, ".").concat(tersifyAcornNode(context, node.property, length));
|
|
7660
|
+
}
|
|
7581
7661
|
function tersifyPropertyNode(context, node, length) {
|
|
7582
7662
|
var key = tersifyAcornNode(context, node.key, length);
|
|
7583
7663
|
var valueNode = node.value;
|
|
@@ -7672,14 +7752,14 @@ function tersifyDoWhileStatementNode(context, node, length) {
|
|
|
7672
7752
|
function tersifyUnaryExpressionNode(context, node, length) {
|
|
7673
7753
|
if (['void', 'typeof'].indexOf(node.operator) !== -1)
|
|
7674
7754
|
return "".concat(node.operator, " ").concat(tersifyAcornNode(context, node.argument, length));
|
|
7675
|
-
return node.prefix
|
|
7676
|
-
"".concat(node.operator).concat(tersifyAcornNode(context, node.argument, length))
|
|
7677
|
-
"".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);
|
|
7678
7758
|
}
|
|
7679
7759
|
function tersifyUpdateExpressionNode(context, node, length) {
|
|
7680
|
-
return node.prefix
|
|
7681
|
-
"".concat(node.operator).concat(tersifyAcornNode(context, node.argument, length))
|
|
7682
|
-
"".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);
|
|
7683
7763
|
}
|
|
7684
7764
|
function tersifyConditionalExpressionNode(context, node, length) {
|
|
7685
7765
|
var test = tersifyAcornNode(context, node.test, length);
|
|
@@ -7703,20 +7783,23 @@ function tersifyIfStatementNode(context, node, length) {
|
|
|
7703
7783
|
return "if (".concat(test, ") ").concat(consequent);
|
|
7704
7784
|
}
|
|
7705
7785
|
function tersifyBinaryExpressionNode(context, node, length) {
|
|
7706
|
-
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)) {
|
|
7707
7788
|
node.left.needParen = true;
|
|
7708
7789
|
}
|
|
7709
7790
|
var left = tersifyAcornNode(context, node.left, length);
|
|
7710
|
-
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)) {
|
|
7711
7793
|
node.right.needParen = true;
|
|
7712
7794
|
}
|
|
7713
7795
|
var right = tersifyAcornNode(context, node.right, length);
|
|
7714
|
-
return node.needParen ?
|
|
7715
|
-
"(".concat(left, " ").concat(node.operator, " ").concat(right, ")") :
|
|
7716
|
-
"".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);
|
|
7717
7797
|
}
|
|
7718
7798
|
function tersifyNewExpressionNode(context, node, length) {
|
|
7719
|
-
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(', '), ")"));
|
|
7720
7803
|
}
|
|
7721
7804
|
function tersifyNewDate(node) {
|
|
7722
7805
|
if (node.callee.type === 'Identifier' && node.callee.name === 'Date') {
|
|
@@ -7767,9 +7850,9 @@ function tersifyArrowExpressionNode(context, node, length) {
|
|
|
7767
7850
|
var paramsBody = tersifyParamsBody(context, node.params);
|
|
7768
7851
|
var params = skipParamParen ? paramsBody : "(".concat(paramsBody, ")");
|
|
7769
7852
|
var singleBodyNode = getSingleStatementBodyNode(context, node.body);
|
|
7770
|
-
var body = singleBodyNode
|
|
7771
|
-
tersifyArrowBodyAsSingleStatement(context, singleBodyNode)
|
|
7772
|
-
tersifyFunctionBody(context, node.body);
|
|
7853
|
+
var body = singleBodyNode
|
|
7854
|
+
? tersifyArrowBodyAsSingleStatement(context, singleBodyNode)
|
|
7855
|
+
: tersifyFunctionBody(context, node.body);
|
|
7773
7856
|
var isSingleBodyObjectExpression = singleBodyNode && singleBodyNode.type === 'ObjectExpression';
|
|
7774
7857
|
if (isSingleBodyObjectExpression) {
|
|
7775
7858
|
body = "(".concat(body, ")");
|
|
@@ -7779,23 +7862,21 @@ function tersifyArrowExpressionNode(context, node, length) {
|
|
|
7779
7862
|
}
|
|
7780
7863
|
else {
|
|
7781
7864
|
var lenAvailForParams = Math.max(skipParamParen ? 1 : 3, length - (async.length + generator.length + arrow.length + body.length));
|
|
7782
|
-
var trimmedParams = skipParamParen
|
|
7783
|
-
(0, trim_js_1.trim)(context, paramsBody, lenAvailForParams)
|
|
7784
|
-
"(".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), ")");
|
|
7785
7868
|
if (async.length + generator.length + lenAvailForParams + arrow.length + body.length <= length) {
|
|
7786
7869
|
return "".concat(async).concat(generator).concat(trimmedParams).concat(arrow).concat(body);
|
|
7787
7870
|
}
|
|
7788
7871
|
else {
|
|
7789
7872
|
var minBodyLen = 3;
|
|
7790
|
-
var wrapLen = isSingleBodyObjectExpression ?
|
|
7791
|
-
"({ })".length :
|
|
7792
|
-
singleBodyNode ? 0 : "{ }".length;
|
|
7873
|
+
var wrapLen = isSingleBodyObjectExpression ? "({ })".length : singleBodyNode ? 0 : "{ }".length;
|
|
7793
7874
|
var lenAvailForBody = Math.max(minBodyLen, length - (async.length + generator.length + trimmedParams.length + arrow.length + wrapLen));
|
|
7794
|
-
var trimmedBody = isSingleBodyObjectExpression
|
|
7795
|
-
"({ ".concat((0, trim_js_1.trim)(context, body.slice(2, body.length - 2), lenAvailForBody - 4), " })")
|
|
7796
|
-
singleBodyNode
|
|
7797
|
-
(0, trim_js_1.trim)(context, body, lenAvailForBody)
|
|
7798
|
-
"{ ".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), " }");
|
|
7799
7880
|
return (0, trim_js_1.trim)(context, "".concat(async).concat(generator).concat(trimmedParams).concat(arrow).concat(trimmedBody), length);
|
|
7800
7881
|
}
|
|
7801
7882
|
}
|
|
@@ -7840,23 +7921,25 @@ function tersifyCallExpressionNode(context, node, length) {
|
|
|
7840
7921
|
return "".concat(callee).concat(node.optional ? '?.' : '').concat(params);
|
|
7841
7922
|
}
|
|
7842
7923
|
function isSymbolForNode(node) {
|
|
7843
|
-
return node.callee.type === 'MemberExpression' &&
|
|
7924
|
+
return (node.callee.type === 'MemberExpression' &&
|
|
7844
7925
|
node.callee.object.type === 'Identifier' &&
|
|
7845
7926
|
node.callee.object.name === 'Symbol' &&
|
|
7846
7927
|
node.callee.property.type === 'Identifier' &&
|
|
7847
|
-
node.callee.property.name === 'for';
|
|
7928
|
+
node.callee.property.name === 'for');
|
|
7848
7929
|
}
|
|
7849
7930
|
function isDefineThisProperty(node) {
|
|
7850
|
-
return node.callee.type === 'Identifier' &&
|
|
7931
|
+
return (node.callee.type === 'Identifier' &&
|
|
7851
7932
|
node.callee.name === '_defineProperty' &&
|
|
7852
7933
|
node.arguments.length === 3 &&
|
|
7853
|
-
node.arguments[0].type === 'ThisExpression';
|
|
7934
|
+
node.arguments[0].type === 'ThisExpression');
|
|
7854
7935
|
}
|
|
7855
7936
|
function tersifyParamsBody(context, params) {
|
|
7856
|
-
return params
|
|
7937
|
+
return params
|
|
7938
|
+
.reduce(function (p, v) {
|
|
7857
7939
|
p.push(tersifyAcornNode(context, v, Infinity));
|
|
7858
7940
|
return p;
|
|
7859
|
-
}, [])
|
|
7941
|
+
}, [])
|
|
7942
|
+
.join(', ');
|
|
7860
7943
|
}
|
|
7861
7944
|
function tersifyFunctionExpressionNode(context, node, length) {
|
|
7862
7945
|
var token = context.raw ? "function" : 'fn';
|
|
@@ -7878,9 +7961,7 @@ function tersifyFunctionExpressionNode(context, node, length) {
|
|
|
7878
7961
|
}
|
|
7879
7962
|
else {
|
|
7880
7963
|
var bodyContent = body.slice(2, body.length - 2);
|
|
7881
|
-
var result = "".concat(async).concat(token).concat(generator).concat(id).concat(minParam).concat(space).concat(bodyContent.length === 0 ?
|
|
7882
|
-
'{}' :
|
|
7883
|
-
"{ ".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), " }"));
|
|
7884
7965
|
return result.length > length ? (0, trim_js_1.trim)(context, result, length) : result;
|
|
7885
7966
|
}
|
|
7886
7967
|
}
|
|
@@ -7932,14 +8013,17 @@ function tersifyClassExpression(context, node, length) {
|
|
|
7932
8013
|
var classStr = (0, trim_js_1.trim)(context, "class".concat(node.id ? " ".concat(node.id.name) : ' ', "{}"), length);
|
|
7933
8014
|
var prefix = classStr.slice(0, Math.max(3, classStr.length - 2));
|
|
7934
8015
|
var body = tersifyAcornNode(context, node.body, length - prefix.length);
|
|
7935
|
-
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));
|
|
7936
8019
|
}
|
|
7937
8020
|
function tersifyMethodDefinition(context, node, length) {
|
|
8021
|
+
var _a;
|
|
7938
8022
|
var staticStr = node.static ? 'static ' : '';
|
|
7939
8023
|
var fnExpNode = node.value;
|
|
7940
8024
|
var async = fnExpNode.async ? 'async ' : '';
|
|
7941
8025
|
var generator = fnExpNode.generator ? '*' : '';
|
|
7942
|
-
var id = node.key.name;
|
|
8026
|
+
var id = (_a = node.key.name) !== null && _a !== void 0 ? _a : "[".concat(tersifyAcornNode(context, node.key, length), "]");
|
|
7943
8027
|
var params = fnExpNode.params.length > 0 ? tersifyFunctionParams(context, fnExpNode.params) : '()';
|
|
7944
8028
|
var space = ' ';
|
|
7945
8029
|
var declarationLen = staticStr.length + async.length + generator.length + id.length + space.length;
|
|
@@ -7955,9 +8039,7 @@ function tersifyMethodDefinition(context, node, length) {
|
|
|
7955
8039
|
}
|
|
7956
8040
|
else {
|
|
7957
8041
|
var bodyContent = body.slice(2, body.length - 2);
|
|
7958
|
-
var result = "".concat(staticStr).concat(async).concat(generator).concat(id).concat(minParam).concat(space).concat(bodyContent.length === 0 ?
|
|
7959
|
-
'{}' :
|
|
7960
|
-
"{ ".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), " }"));
|
|
7961
8043
|
return result.length > length ? (0, trim_js_1.trim)(context, result, length) : result;
|
|
7962
8044
|
}
|
|
7963
8045
|
}
|
|
@@ -7979,20 +8061,22 @@ function tersifySequenceExpression(context, node, length) {
|
|
|
7979
8061
|
}
|
|
7980
8062
|
function tersifyTemplateLiteral(context, node, length) {
|
|
7981
8063
|
var elements = node.expressions.concat(node.quasis).sort(function (a, b) { return a.start - b.start; });
|
|
7982
|
-
return '`' +
|
|
7983
|
-
|
|
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
|
+
}
|
|
7984
8077
|
return p;
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
p += e.value.raw;
|
|
7988
|
-
}
|
|
7989
|
-
else {
|
|
7990
|
-
var result = tersifyAcornNode(context, e, length);
|
|
7991
|
-
length -= result.length;
|
|
7992
|
-
p += '${' + result + '}';
|
|
7993
|
-
}
|
|
7994
|
-
return p;
|
|
7995
|
-
}, '') + '`';
|
|
8078
|
+
}, '') +
|
|
8079
|
+
'`');
|
|
7996
8080
|
}
|
|
7997
8081
|
function tersifyTaggedTemplateExpression(context, node, length) {
|
|
7998
8082
|
var name = node.tag.name;
|
|
@@ -8008,16 +8092,19 @@ function tersifyChainExpression(context, node, length) {
|
|
|
8008
8092
|
}
|
|
8009
8093
|
// istanbul ignore next
|
|
8010
8094
|
default:
|
|
8011
|
-
return tersifyUnknown(node);
|
|
8095
|
+
return tersifyUnknown(node, context.rawString);
|
|
8012
8096
|
}
|
|
8013
8097
|
}
|
|
8098
|
+
function tersifySuperNode(context, node, length) {
|
|
8099
|
+
return 'Super';
|
|
8100
|
+
}
|
|
8014
8101
|
//# sourceMappingURL=tersifyAcorn.js.map
|
|
8015
8102
|
|
|
8016
8103
|
/***/ }),
|
|
8017
8104
|
|
|
8018
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8105
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js":
|
|
8019
8106
|
/*!*******************************************************************************************!*\
|
|
8020
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8107
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunction.js ***!
|
|
8021
8108
|
\*******************************************************************************************/
|
|
8022
8109
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8023
8110
|
|
|
@@ -8025,10 +8112,10 @@ function tersifyChainExpression(context, node, length) {
|
|
|
8025
8112
|
|
|
8026
8113
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8027
8114
|
exports.tersifyFunction = void 0;
|
|
8028
|
-
var hasTersifyFn_js_1 = __webpack_require__(/*! ./hasTersifyFn.js */ "../../node_modules/.pnpm/tersify@3.
|
|
8029
|
-
var tersify_js_1 = __webpack_require__(/*! ./tersify.js */ "../../node_modules/.pnpm/tersify@3.
|
|
8030
|
-
var index_js_1 = __webpack_require__(/*! ./tersifyAcorn/index.js */ "../../node_modules/.pnpm/tersify@3.
|
|
8031
|
-
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");
|
|
8032
8119
|
function tersifyFunction(context, fn, _length) {
|
|
8033
8120
|
if (!context.raw && (0, hasTersifyFn_js_1.hasTersifyFn)(fn) && fn.tersify !== tersify_js_1.defaultTersify) {
|
|
8034
8121
|
return fn.tersify({ maxLength: context.maxLength, raw: context.raw });
|
|
@@ -8049,9 +8136,9 @@ exports.tersifyFunction = tersifyFunction;
|
|
|
8049
8136
|
|
|
8050
8137
|
/***/ }),
|
|
8051
8138
|
|
|
8052
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8139
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js":
|
|
8053
8140
|
/*!***************************************************************************************************!*\
|
|
8054
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8141
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/tersifyFunctionByString.js ***!
|
|
8055
8142
|
\***************************************************************************************************/
|
|
8056
8143
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8057
8144
|
|
|
@@ -8059,15 +8146,17 @@ exports.tersifyFunction = tersifyFunction;
|
|
|
8059
8146
|
|
|
8060
8147
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8061
8148
|
exports.parseFn = exports.tersifyFunctionByString = void 0;
|
|
8062
|
-
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");
|
|
8063
8150
|
function tersifyFunctionByString(fn, options) {
|
|
8064
8151
|
var str = fn.toString();
|
|
8065
8152
|
if (options.raw)
|
|
8066
8153
|
return str;
|
|
8067
8154
|
var struct = parseFn(str);
|
|
8068
8155
|
switch (struct.type) {
|
|
8069
|
-
case 'function':
|
|
8070
|
-
|
|
8156
|
+
case 'function':
|
|
8157
|
+
return formatFn2(struct, options.maxLength);
|
|
8158
|
+
case 'arrow':
|
|
8159
|
+
return formatArrow2(struct, options.maxLength);
|
|
8071
8160
|
case 'unknown':
|
|
8072
8161
|
default:
|
|
8073
8162
|
// istanbul ignore next
|
|
@@ -8148,16 +8237,22 @@ function parseFn(input) {
|
|
|
8148
8237
|
exports.parseFn = parseFn;
|
|
8149
8238
|
function formatFn2(struct, maxLength) {
|
|
8150
8239
|
var template = "".concat(struct.async ? 'async ' : '', "fn").concat(struct.generator ? '*' : '').concat(struct.name ? ' ' + struct.name : '', "(").concat(struct.params ? '%1' : '', ") {").concat(struct.body ? ' %2 ' : '', "}");
|
|
8151
|
-
var baseLength = struct.params && struct.body
|
|
8152
|
-
|
|
8240
|
+
var baseLength = struct.params && struct.body
|
|
8241
|
+
? template.length - 4
|
|
8242
|
+
: struct.params || struct.body
|
|
8243
|
+
? template.length - 2
|
|
8244
|
+
: template.length;
|
|
8153
8245
|
struct.params = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
|
|
8154
8246
|
struct.body = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
|
|
8155
8247
|
return (0, trim_js_1.trim)({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
|
|
8156
8248
|
}
|
|
8157
8249
|
function formatArrow2(struct, maxLength) {
|
|
8158
8250
|
var template = "".concat(struct.async ? 'async ' : '').concat(struct.singleParam ? '%1' : "(".concat(struct.params ? '%1' : '', ")"), " => ").concat(struct.singleLineBody ? '%2' : "{".concat(struct.body ? ' %2 ' : '', "}"));
|
|
8159
|
-
var baseLength = struct.params && struct.body
|
|
8160
|
-
|
|
8251
|
+
var baseLength = struct.params && struct.body
|
|
8252
|
+
? template.length - 4
|
|
8253
|
+
: struct.params || struct.body
|
|
8254
|
+
? template.length - 2
|
|
8255
|
+
: template.length;
|
|
8161
8256
|
struct.params = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
|
|
8162
8257
|
struct.body = (0, trim_js_1.trim)({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
|
|
8163
8258
|
return (0, trim_js_1.trim)({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
|
|
@@ -8172,14 +8267,18 @@ function isSingleLineBody(str) {
|
|
|
8172
8267
|
function getSingleLineBody(str, maxLength) {
|
|
8173
8268
|
var struct = parseFn(str);
|
|
8174
8269
|
switch (struct.type) {
|
|
8175
|
-
case 'function':
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
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, '{}');
|
|
8183
8282
|
}
|
|
8184
8283
|
}
|
|
8185
8284
|
function getEnclosedBody(str) {
|
|
@@ -8192,7 +8291,8 @@ function getEnclosedBody(str) {
|
|
|
8192
8291
|
count++;
|
|
8193
8292
|
if (count === 0) {
|
|
8194
8293
|
var body = removeLineBreaks(str.slice(0, i));
|
|
8195
|
-
str = body
|
|
8294
|
+
str = body
|
|
8295
|
+
.replace(/return;/g, '')
|
|
8196
8296
|
.replace(/([\s([{])Symbol\(\)/g, '$1Sym()')
|
|
8197
8297
|
.replace(/([\s([{])Symbol\.for\('([\w_]*)'\)/g, '$1Sym($2)')
|
|
8198
8298
|
.replace(/([\s([{])Symbol\.for\("([\w_]*)"\)/g, '$1Sym($2)')
|
|
@@ -8204,12 +8304,14 @@ function getEnclosedBody(str) {
|
|
|
8204
8304
|
return str;
|
|
8205
8305
|
}
|
|
8206
8306
|
function removeLineBreaks(value) {
|
|
8207
|
-
return value
|
|
8307
|
+
return value
|
|
8308
|
+
.split('\n')
|
|
8208
8309
|
.map(function (x) { return x.trim(); })
|
|
8209
8310
|
.filter(function (x) { return !!x; })
|
|
8210
|
-
.map(function (x, i, a) {
|
|
8211
|
-
&& /[^({}):;(do|else)]$/.test(x)
|
|
8212
|
-
|
|
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(' ');
|
|
8213
8315
|
}
|
|
8214
8316
|
function applyTemplate(template, struct) {
|
|
8215
8317
|
if (struct.params) {
|
|
@@ -8224,9 +8326,9 @@ function applyTemplate(template, struct) {
|
|
|
8224
8326
|
|
|
8225
8327
|
/***/ }),
|
|
8226
8328
|
|
|
8227
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8329
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js":
|
|
8228
8330
|
/*!********************************************************************************!*\
|
|
8229
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8331
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/trim.js ***!
|
|
8230
8332
|
\********************************************************************************/
|
|
8231
8333
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8232
8334
|
|
|
@@ -8239,9 +8341,7 @@ function trim(_a, value, length) {
|
|
|
8239
8341
|
if (noTrim || raw || value.length <= length)
|
|
8240
8342
|
return value;
|
|
8241
8343
|
var trimmed = value.slice(0, Math.max(length, 0));
|
|
8242
|
-
var dots = trimmed.length === 0 ? '' :
|
|
8243
|
-
trimmed.length <= 3 ? '.' :
|
|
8244
|
-
trimmed.length === 4 ? '..' : '...';
|
|
8344
|
+
var dots = trimmed.length === 0 ? '' : trimmed.length <= 3 ? '.' : trimmed.length === 4 ? '..' : '...';
|
|
8245
8345
|
return trimmed.slice(0, trimmed.length - dots.length) + dots;
|
|
8246
8346
|
}
|
|
8247
8347
|
exports.trim = trim;
|
|
@@ -8249,9 +8349,9 @@ exports.trim = trim;
|
|
|
8249
8349
|
|
|
8250
8350
|
/***/ }),
|
|
8251
8351
|
|
|
8252
|
-
/***/ "../../node_modules/.pnpm/tersify@3.
|
|
8352
|
+
/***/ "../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js":
|
|
8253
8353
|
/*!*********************************************************************************!*\
|
|
8254
|
-
!*** ../../node_modules/.pnpm/tersify@3.
|
|
8354
|
+
!*** ../../node_modules/.pnpm/tersify@3.12.1/node_modules/tersify/cjs/types.js ***!
|
|
8255
8355
|
\*********************************************************************************/
|
|
8256
8356
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8257
8357
|
|
|
@@ -8262,47 +8362,49 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
8262
8362
|
|
|
8263
8363
|
/***/ }),
|
|
8264
8364
|
|
|
8265
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8266
|
-
|
|
8267
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8268
|
-
|
|
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
|
+
\***********************************************************************************************/
|
|
8269
8369
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8270
8370
|
|
|
8271
8371
|
"use strict";
|
|
8272
8372
|
|
|
8273
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
8274
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
8275
|
-
if (ar || !(i in from)) {
|
|
8276
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
8277
|
-
ar[i] = from[i];
|
|
8278
|
-
}
|
|
8279
|
-
}
|
|
8280
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
8281
|
-
};
|
|
8282
8373
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8283
|
-
|
|
8284
|
-
exports.JSONTypes = { get: get };
|
|
8285
|
-
function get(obj) {
|
|
8286
|
-
var props = [];
|
|
8287
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
8288
|
-
props[_i - 1] = arguments[_i];
|
|
8289
|
-
}
|
|
8290
|
-
if (props.length === 0)
|
|
8291
|
-
return obj;
|
|
8292
|
-
if (typeof obj !== 'object' || obj === null)
|
|
8293
|
-
return undefined;
|
|
8294
|
-
var p = props.shift();
|
|
8295
|
-
// @ts-ignore
|
|
8296
|
-
return get.apply(void 0, __spreadArray([obj[p]], props, false));
|
|
8297
|
-
}
|
|
8298
|
-
//# sourceMappingURL=JSONTypes.js.map
|
|
8374
|
+
//# sourceMappingURL=array_plus.js.map
|
|
8299
8375
|
|
|
8300
8376
|
/***/ }),
|
|
8301
8377
|
|
|
8302
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8303
|
-
|
|
8304
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8305
|
-
|
|
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":
|
|
8405
|
+
/*!*****************************************************************************************!*\
|
|
8406
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/drop.js ***!
|
|
8407
|
+
\*****************************************************************************************/
|
|
8306
8408
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8307
8409
|
|
|
8308
8410
|
"use strict";
|
|
@@ -8313,17 +8415,69 @@ exports.drop = void 0;
|
|
|
8313
8415
|
* drop a particular value from an array
|
|
8314
8416
|
*/
|
|
8315
8417
|
function drop(array, value) {
|
|
8316
|
-
return array.filter(
|
|
8418
|
+
return array.filter(v => v !== value);
|
|
8317
8419
|
}
|
|
8318
8420
|
exports.drop = drop;
|
|
8319
8421
|
//# sourceMappingURL=drop.js.map
|
|
8320
8422
|
|
|
8321
8423
|
/***/ }),
|
|
8322
8424
|
|
|
8323
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8425
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/filter.js":
|
|
8324
8426
|
/*!*******************************************************************************************!*\
|
|
8325
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8427
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/filter.js ***!
|
|
8326
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":
|
|
8478
|
+
/*!******************************************************************************************!*\
|
|
8479
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/index.js ***!
|
|
8480
|
+
\******************************************************************************************/
|
|
8327
8481
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8328
8482
|
|
|
8329
8483
|
"use strict";
|
|
@@ -8343,16 +8497,56 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8343
8497
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8344
8498
|
};
|
|
8345
8499
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8346
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8347
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8348
|
-
__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);
|
|
8349
8517
|
//# sourceMappingURL=index.js.map
|
|
8350
8518
|
|
|
8351
8519
|
/***/ }),
|
|
8352
8520
|
|
|
8353
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
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":
|
|
8354
8548
|
/*!**************************************************************************************************!*\
|
|
8355
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8549
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/literal_array.js ***!
|
|
8356
8550
|
\**************************************************************************************************/
|
|
8357
8551
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8358
8552
|
|
|
@@ -8360,21 +8554,30 @@ __exportStar(__webpack_require__(/*! ./reduceWhile.js */ "../../node_modules/.pn
|
|
|
8360
8554
|
|
|
8361
8555
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8362
8556
|
exports.literalArray = void 0;
|
|
8363
|
-
function literalArray() {
|
|
8364
|
-
var entries = [];
|
|
8365
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8366
|
-
entries[_i] = arguments[_i];
|
|
8367
|
-
}
|
|
8557
|
+
function literalArray(...entries) {
|
|
8368
8558
|
return entries;
|
|
8369
8559
|
}
|
|
8370
8560
|
exports.literalArray = literalArray;
|
|
8371
|
-
//# sourceMappingURL=
|
|
8561
|
+
//# sourceMappingURL=literal_array.js.map
|
|
8562
|
+
|
|
8563
|
+
/***/ }),
|
|
8564
|
+
|
|
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
|
|
8372
8575
|
|
|
8373
8576
|
/***/ }),
|
|
8374
8577
|
|
|
8375
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8578
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reduce_while.js":
|
|
8376
8579
|
/*!*************************************************************************************************!*\
|
|
8377
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8580
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/reduce_while.js ***!
|
|
8378
8581
|
\*************************************************************************************************/
|
|
8379
8582
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8380
8583
|
|
|
@@ -8383,9 +8586,9 @@ exports.literalArray = literalArray;
|
|
|
8383
8586
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8384
8587
|
exports.reduceWhile = void 0;
|
|
8385
8588
|
function reduceWhile(predicate, callbackfn, initialValue, array) {
|
|
8386
|
-
|
|
8387
|
-
for (
|
|
8388
|
-
|
|
8589
|
+
let acc = initialValue;
|
|
8590
|
+
for (let i = 0; i < array.length; i++) {
|
|
8591
|
+
const value = array[i];
|
|
8389
8592
|
if (!predicate(acc, value))
|
|
8390
8593
|
return acc;
|
|
8391
8594
|
acc = callbackfn(acc, value, i, array);
|
|
@@ -8393,13 +8596,78 @@ function reduceWhile(predicate, callbackfn, initialValue, array) {
|
|
|
8393
8596
|
return acc;
|
|
8394
8597
|
}
|
|
8395
8598
|
exports.reduceWhile = reduceWhile;
|
|
8396
|
-
//# 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
|
|
8639
|
+
|
|
8640
|
+
/***/ }),
|
|
8641
|
+
|
|
8642
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_props.js":
|
|
8643
|
+
/*!***************************************************************************************************!*\
|
|
8644
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/array/union_of_props.js ***!
|
|
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
|
|
8397
8665
|
|
|
8398
8666
|
/***/ }),
|
|
8399
8667
|
|
|
8400
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8668
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/assertion/assert_type.js":
|
|
8401
8669
|
/*!****************************************************************************************************!*\
|
|
8402
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8670
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/assertion/assert_type.js ***!
|
|
8403
8671
|
\****************************************************************************************************/
|
|
8404
8672
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8405
8673
|
|
|
@@ -8407,96 +8675,95 @@ exports.reduceWhile = reduceWhile;
|
|
|
8407
8675
|
|
|
8408
8676
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8409
8677
|
exports.assertType = void 0;
|
|
8410
|
-
|
|
8411
|
-
|
|
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");
|
|
8412
8680
|
function assertType(subject, validator) {
|
|
8413
8681
|
if (validator) {
|
|
8414
8682
|
if (((0, index_js_1.isConstructor)(validator) && !(subject instanceof validator)) || !validator(subject))
|
|
8415
|
-
throw new TypeError(
|
|
8683
|
+
throw new TypeError(`subject fails to satisfy ${(0, tersify_1.tersify)(validator)}`);
|
|
8416
8684
|
}
|
|
8417
8685
|
return;
|
|
8418
8686
|
}
|
|
8419
8687
|
exports.assertType = assertType;
|
|
8420
8688
|
assertType.isUndefined = function (subject) {
|
|
8421
8689
|
if (typeof subject !== 'undefined')
|
|
8422
|
-
throw TypeError(
|
|
8690
|
+
throw TypeError(`subject is not undefined`);
|
|
8423
8691
|
};
|
|
8424
8692
|
assertType.noUndefined = function (subject) {
|
|
8425
8693
|
if (typeof subject === 'undefined')
|
|
8426
|
-
throw TypeError(
|
|
8694
|
+
throw TypeError(`subject is undefined`);
|
|
8427
8695
|
};
|
|
8428
8696
|
assertType.isNull = function (subject) {
|
|
8429
8697
|
if (subject !== null)
|
|
8430
|
-
throw TypeError(
|
|
8698
|
+
throw TypeError(`subject is not null`);
|
|
8431
8699
|
};
|
|
8432
8700
|
assertType.noNull = function (subject) {
|
|
8433
8701
|
if (subject === null)
|
|
8434
|
-
throw TypeError(
|
|
8702
|
+
throw TypeError(`subject is null`);
|
|
8435
8703
|
};
|
|
8436
8704
|
assertType.isNumber = function (subject) {
|
|
8437
8705
|
if (typeof subject !== 'number')
|
|
8438
|
-
throw TypeError(
|
|
8706
|
+
throw TypeError(`subject is not number`);
|
|
8439
8707
|
};
|
|
8440
8708
|
assertType.noNumber = function (subject) {
|
|
8441
8709
|
if (typeof subject === 'number')
|
|
8442
|
-
throw TypeError(
|
|
8710
|
+
throw TypeError(`subject is number`);
|
|
8443
8711
|
};
|
|
8444
8712
|
assertType.isBoolean = function (subject) {
|
|
8445
8713
|
if (typeof subject !== 'boolean')
|
|
8446
|
-
throw TypeError(
|
|
8714
|
+
throw TypeError(`subject is not boolean`);
|
|
8447
8715
|
};
|
|
8448
8716
|
assertType.noBoolean = function (subject) {
|
|
8449
8717
|
if (typeof subject === 'boolean')
|
|
8450
|
-
throw TypeError(
|
|
8718
|
+
throw TypeError(`subject is boolean`);
|
|
8451
8719
|
};
|
|
8452
8720
|
assertType.isTrue = function (subject) {
|
|
8453
8721
|
if (subject !== true)
|
|
8454
|
-
throw TypeError(
|
|
8722
|
+
throw TypeError(`subject is not true`);
|
|
8455
8723
|
};
|
|
8456
8724
|
assertType.noTrue = function (subject) {
|
|
8457
8725
|
// @ts-ignore
|
|
8458
8726
|
if (subject === true)
|
|
8459
|
-
throw TypeError(
|
|
8727
|
+
throw TypeError(`subject is true`);
|
|
8460
8728
|
};
|
|
8461
8729
|
assertType.isFalse = function (subject) {
|
|
8462
8730
|
if (subject !== false)
|
|
8463
|
-
throw TypeError(
|
|
8731
|
+
throw TypeError(`subject is not false`);
|
|
8464
8732
|
};
|
|
8465
8733
|
assertType.noFalse = function (subject) {
|
|
8466
8734
|
// @ts-ignore
|
|
8467
8735
|
if (subject === false)
|
|
8468
|
-
throw TypeError(
|
|
8736
|
+
throw TypeError(`subject is false`);
|
|
8469
8737
|
};
|
|
8470
8738
|
assertType.isString = function (subject) {
|
|
8471
8739
|
if (typeof subject !== 'string')
|
|
8472
|
-
throw TypeError(
|
|
8740
|
+
throw TypeError(`subject is not string`);
|
|
8473
8741
|
};
|
|
8474
8742
|
assertType.noString = function (subject) {
|
|
8475
8743
|
if (typeof subject === 'string')
|
|
8476
|
-
throw TypeError(
|
|
8744
|
+
throw TypeError(`subject is string`);
|
|
8477
8745
|
};
|
|
8478
8746
|
assertType.isFunction = function (subject) {
|
|
8479
8747
|
if (typeof subject !== 'function')
|
|
8480
|
-
throw TypeError(
|
|
8748
|
+
throw TypeError(`subject is not function`);
|
|
8481
8749
|
};
|
|
8482
8750
|
assertType.noFunction = function (subject) {
|
|
8483
8751
|
if (typeof subject === 'function')
|
|
8484
|
-
throw TypeError(
|
|
8752
|
+
throw TypeError(`subject is function`);
|
|
8485
8753
|
};
|
|
8486
8754
|
assertType.isConstructor = function (subject) {
|
|
8487
8755
|
if (!(0, index_js_1.isConstructor)(subject))
|
|
8488
|
-
throw TypeError(
|
|
8756
|
+
throw TypeError(`subject is not a constructor`);
|
|
8489
8757
|
};
|
|
8490
8758
|
assertType.isError = function (subject) {
|
|
8491
8759
|
if (!(subject instanceof Error))
|
|
8492
|
-
throw TypeError(
|
|
8760
|
+
throw TypeError(`subject is not an Error`);
|
|
8493
8761
|
};
|
|
8494
8762
|
assertType.noError = function (subject) {
|
|
8495
8763
|
if (subject instanceof Error)
|
|
8496
|
-
throw TypeError(
|
|
8497
|
-
};
|
|
8498
|
-
assertType.isNever = function (subject) {
|
|
8764
|
+
throw TypeError(`subject is an Error`);
|
|
8499
8765
|
};
|
|
8766
|
+
assertType.isNever = function (subject) { };
|
|
8500
8767
|
/**
|
|
8501
8768
|
* creates a custom assertion function with standard TypeError.
|
|
8502
8769
|
* Currently this requires explicity type annotation,
|
|
@@ -8506,19 +8773,19 @@ assertType.isNever = function (subject) {
|
|
|
8506
8773
|
assertType.custom = function (validator) {
|
|
8507
8774
|
return function (subject) {
|
|
8508
8775
|
if (!validator(subject))
|
|
8509
|
-
throw new TypeError(
|
|
8776
|
+
throw new TypeError(`subject fails to satisfy ${(0, tersify_1.tersify)(validator)}`);
|
|
8510
8777
|
return;
|
|
8511
8778
|
};
|
|
8512
8779
|
};
|
|
8513
8780
|
assertType.as = function (subject) { };
|
|
8514
|
-
//# sourceMappingURL=
|
|
8781
|
+
//# sourceMappingURL=assert_type.js.map
|
|
8515
8782
|
|
|
8516
8783
|
/***/ }),
|
|
8517
8784
|
|
|
8518
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8519
|
-
|
|
8520
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8521
|
-
|
|
8785
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/index.js":
|
|
8786
|
+
/*!******************************************************************************************!*\
|
|
8787
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/index.js ***!
|
|
8788
|
+
\******************************************************************************************/
|
|
8522
8789
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8523
8790
|
|
|
8524
8791
|
"use strict";
|
|
@@ -8538,55 +8805,38 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8538
8805
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8539
8806
|
};
|
|
8540
8807
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8541
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8808
|
+
__exportStar(__webpack_require__(/*! ./isConstructor.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/isConstructor.js"), exports);
|
|
8542
8809
|
//# sourceMappingURL=index.js.map
|
|
8543
8810
|
|
|
8544
8811
|
/***/ }),
|
|
8545
8812
|
|
|
8546
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8547
|
-
|
|
8548
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8549
|
-
|
|
8550
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8551
|
-
|
|
8552
|
-
"use strict";
|
|
8553
|
-
|
|
8554
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8555
|
-
if (k2 === undefined) k2 = k;
|
|
8556
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8557
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8558
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8559
|
-
}
|
|
8560
|
-
Object.defineProperty(o, k2, desc);
|
|
8561
|
-
}) : (function(o, m, k, k2) {
|
|
8562
|
-
if (k2 === undefined) k2 = k;
|
|
8563
|
-
o[k2] = m[k];
|
|
8564
|
-
}));
|
|
8565
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
8566
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8567
|
-
};
|
|
8568
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8569
|
-
__exportStar(__webpack_require__(/*! ./isConstructor.js */ "../../node_modules/.pnpm/type-plus@4.16.0/node_modules/type-plus/cjs/class/isConstructor.js"), exports);
|
|
8570
|
-
//# sourceMappingURL=index.js.map
|
|
8571
|
-
|
|
8572
|
-
/***/ }),
|
|
8573
|
-
|
|
8574
|
-
/***/ "../../node_modules/.pnpm/type-plus@4.16.0/node_modules/type-plus/cjs/class/isConstructor.js":
|
|
8575
|
-
/*!***************************************************************************************************!*\
|
|
8576
|
-
!*** ../../node_modules/.pnpm/type-plus@4.16.0/node_modules/type-plus/cjs/class/isConstructor.js ***!
|
|
8577
|
-
\***************************************************************************************************/
|
|
8813
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/isConstructor.js":
|
|
8814
|
+
/*!**************************************************************************************************!*\
|
|
8815
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/class/isConstructor.js ***!
|
|
8816
|
+
\**************************************************************************************************/
|
|
8578
8817
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8579
8818
|
|
|
8580
8819
|
"use strict";
|
|
8581
8820
|
|
|
8582
8821
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8583
|
-
exports.isConstructor = void 0;
|
|
8822
|
+
exports.isInstanceof = exports.isConstructor = void 0;
|
|
8823
|
+
/**
|
|
8824
|
+
* Is the subject a constructor function.
|
|
8825
|
+
*
|
|
8826
|
+
* @deprecated this is not a failsafe test,
|
|
8827
|
+
* it will return true for any function that can be called with `new`.
|
|
8828
|
+
*
|
|
8829
|
+
* If the subject is an arrow function,
|
|
8830
|
+
* it can still return true after compilation.
|
|
8831
|
+
*
|
|
8832
|
+
* Thus this function is not safe to use.
|
|
8833
|
+
*/
|
|
8584
8834
|
function isConstructor(subject) {
|
|
8585
8835
|
try {
|
|
8586
8836
|
new subject();
|
|
8587
8837
|
}
|
|
8588
8838
|
catch (err) {
|
|
8589
|
-
|
|
8839
|
+
const msg = err?.message;
|
|
8590
8840
|
if (msg && msg.indexOf('is not a constructor') >= 0) {
|
|
8591
8841
|
return false;
|
|
8592
8842
|
}
|
|
@@ -8594,27 +8844,44 @@ function isConstructor(subject) {
|
|
|
8594
8844
|
return true;
|
|
8595
8845
|
}
|
|
8596
8846
|
exports.isConstructor = isConstructor;
|
|
8847
|
+
/**
|
|
8848
|
+
* instanceof type guard for unknown value.
|
|
8849
|
+
*/
|
|
8850
|
+
function isInstanceof(subject, constructor) {
|
|
8851
|
+
return subject instanceof constructor;
|
|
8852
|
+
}
|
|
8853
|
+
exports.isInstanceof = isInstanceof;
|
|
8597
8854
|
//# sourceMappingURL=isConstructor.js.map
|
|
8598
8855
|
|
|
8599
8856
|
/***/ }),
|
|
8600
8857
|
|
|
8601
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8602
|
-
|
|
8603
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8604
|
-
|
|
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
|
+
\********************************************************************************************************/
|
|
8605
8862
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8606
8863
|
|
|
8607
8864
|
"use strict";
|
|
8608
8865
|
|
|
8609
8866
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8610
|
-
|
|
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
|
+
*/
|
|
8873
|
+
function extractFunction(fn) {
|
|
8874
|
+
return fn;
|
|
8875
|
+
}
|
|
8876
|
+
exports.extractFunction = extractFunction;
|
|
8877
|
+
//# sourceMappingURL=extract_function.js.map
|
|
8611
8878
|
|
|
8612
8879
|
/***/ }),
|
|
8613
8880
|
|
|
8614
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8615
|
-
|
|
8616
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8617
|
-
|
|
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
|
+
\*************************************************************************************************/
|
|
8618
8885
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8619
8886
|
|
|
8620
8887
|
"use strict";
|
|
@@ -8622,31 +8889,67 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
8622
8889
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8623
8890
|
exports.compose = void 0;
|
|
8624
8891
|
/**
|
|
8625
|
-
*
|
|
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.
|
|
8626
8897
|
*/
|
|
8627
|
-
function compose() {
|
|
8628
|
-
var fns = [];
|
|
8629
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8630
|
-
fns[_i] = arguments[_i];
|
|
8631
|
-
}
|
|
8898
|
+
function compose(...fns) {
|
|
8632
8899
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
8633
|
-
return
|
|
8634
|
-
var args = [];
|
|
8635
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8636
|
-
args[_i] = arguments[_i];
|
|
8637
|
-
}
|
|
8638
|
-
return fns.reduce(function (args, fn) { return [fn.apply(void 0, args)]; }, args)[0];
|
|
8639
|
-
};
|
|
8900
|
+
return (...args) => fns.reduce((args, fn) => [fn(...args)], args)[0];
|
|
8640
8901
|
}
|
|
8641
8902
|
exports.compose = compose;
|
|
8642
8903
|
//# sourceMappingURL=compose.js.map
|
|
8643
8904
|
|
|
8644
8905
|
/***/ }),
|
|
8645
8906
|
|
|
8646
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8647
|
-
|
|
8648
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8649
|
-
|
|
8907
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/context.js":
|
|
8908
|
+
/*!*************************************************************************************************!*\
|
|
8909
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/context.js ***!
|
|
8910
|
+
\*************************************************************************************************/
|
|
8911
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
8912
|
+
|
|
8913
|
+
"use strict";
|
|
8914
|
+
|
|
8915
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8916
|
+
exports.context = void 0;
|
|
8917
|
+
/**
|
|
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.
|
|
8924
|
+
*/
|
|
8925
|
+
function context(init) {
|
|
8926
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
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);
|
|
8941
|
+
}
|
|
8942
|
+
};
|
|
8943
|
+
}
|
|
8944
|
+
/* eslint-enable */
|
|
8945
|
+
//# sourceMappingURL=context.js.map
|
|
8946
|
+
|
|
8947
|
+
/***/ }),
|
|
8948
|
+
|
|
8949
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/index.js":
|
|
8950
|
+
/*!***********************************************************************************************!*\
|
|
8951
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/functional/index.js ***!
|
|
8952
|
+
\***********************************************************************************************/
|
|
8650
8953
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8651
8954
|
|
|
8652
8955
|
"use strict";
|
|
@@ -8666,15 +8969,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8666
8969
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8667
8970
|
};
|
|
8668
8971
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8669
|
-
__exportStar(__webpack_require__(/*! ./compose.js */ "../../node_modules/.pnpm/type-plus@
|
|
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);
|
|
8670
8974
|
//# sourceMappingURL=index.js.map
|
|
8671
8975
|
|
|
8672
8976
|
/***/ }),
|
|
8673
8977
|
|
|
8674
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8675
|
-
|
|
8676
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8677
|
-
|
|
8978
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js":
|
|
8979
|
+
/*!************************************************************************************!*\
|
|
8980
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/index.js ***!
|
|
8981
|
+
\************************************************************************************/
|
|
8678
8982
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8679
8983
|
|
|
8680
8984
|
"use strict";
|
|
@@ -8690,52 +8994,50 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
8690
8994
|
if (k2 === undefined) k2 = k;
|
|
8691
8995
|
o[k2] = m[k];
|
|
8692
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
|
+
};
|
|
8693
9009
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
8694
9010
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8695
9011
|
};
|
|
8696
9012
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8697
|
-
exports.unpartial = exports.requiredDeep = exports.required = void 0;
|
|
8698
|
-
// import * as types from './types/index.js'
|
|
9013
|
+
exports.NumberPlus = exports.ArrayPlus = exports.unpartial = exports.requiredDeep = exports.required = void 0;
|
|
8699
9014
|
var unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js");
|
|
8700
9015
|
Object.defineProperty(exports, "required", ({ enumerable: true, get: function () { return unpartial_1.required; } }));
|
|
8701
9016
|
Object.defineProperty(exports, "requiredDeep", ({ enumerable: true, get: function () { return unpartial_1.requiredDeep; } }));
|
|
8702
9017
|
Object.defineProperty(exports, "unpartial", ({ enumerable: true, get: function () { return unpartial_1.unpartial; } }));
|
|
8703
|
-
|
|
8704
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8705
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8706
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8707
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8708
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8709
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8710
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8711
|
-
|
|
8712
|
-
__exportStar(__webpack_require__(/*! ./object/index.js */ "../../node_modules/.pnpm/type-plus@
|
|
8713
|
-
__exportStar(__webpack_require__(/*! ./predicates/index.js */ "../../node_modules/.pnpm/type-plus@
|
|
8714
|
-
__exportStar(__webpack_require__(/*! ./promise/index.js */ "../../node_modules/.pnpm/type-plus@
|
|
8715
|
-
__exportStar(__webpack_require__(/*! ./testing/
|
|
8716
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8717
|
-
|
|
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);
|
|
8718
9033
|
//# sourceMappingURL=index.js.map
|
|
8719
9034
|
|
|
8720
9035
|
/***/ }),
|
|
8721
9036
|
|
|
8722
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8723
|
-
|
|
8724
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8725
|
-
|
|
8726
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
8727
|
-
|
|
8728
|
-
"use strict";
|
|
8729
|
-
|
|
8730
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8731
|
-
//# sourceMappingURL=index.js.map
|
|
8732
|
-
|
|
8733
|
-
/***/ }),
|
|
8734
|
-
|
|
8735
|
-
/***/ "../../node_modules/.pnpm/type-plus@4.16.0/node_modules/type-plus/cjs/nodejs/index.js":
|
|
8736
|
-
/*!********************************************************************************************!*\
|
|
8737
|
-
!*** ../../node_modules/.pnpm/type-plus@4.16.0/node_modules/type-plus/cjs/nodejs/index.js ***!
|
|
8738
|
-
\********************************************************************************************/
|
|
9037
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/index.js":
|
|
9038
|
+
/*!*******************************************************************************************!*\
|
|
9039
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/index.js ***!
|
|
9040
|
+
\*******************************************************************************************/
|
|
8739
9041
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8740
9042
|
|
|
8741
9043
|
"use strict";
|
|
@@ -8755,15 +9057,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8755
9057
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8756
9058
|
};
|
|
8757
9059
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8758
|
-
__exportStar(__webpack_require__(/*! ./isNodeError.js */ "../../node_modules/.pnpm/type-plus@
|
|
9060
|
+
__exportStar(__webpack_require__(/*! ./isNodeError.js */ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/isNodeError.js"), exports);
|
|
8759
9061
|
//# sourceMappingURL=index.js.map
|
|
8760
9062
|
|
|
8761
9063
|
/***/ }),
|
|
8762
9064
|
|
|
8763
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8764
|
-
|
|
8765
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8766
|
-
|
|
9065
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/isNodeError.js":
|
|
9066
|
+
/*!*************************************************************************************************!*\
|
|
9067
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/nodejs/isNodeError.js ***!
|
|
9068
|
+
\*************************************************************************************************/
|
|
8767
9069
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8768
9070
|
|
|
8769
9071
|
"use strict";
|
|
@@ -8783,10 +9085,10 @@ exports.isSystemError = isSystemError;
|
|
|
8783
9085
|
|
|
8784
9086
|
/***/ }),
|
|
8785
9087
|
|
|
8786
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8787
|
-
|
|
8788
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8789
|
-
|
|
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
|
+
\********************************************************************************************/
|
|
8790
9092
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8791
9093
|
|
|
8792
9094
|
"use strict";
|
|
@@ -8795,25 +9097,44 @@ exports.isSystemError = isSystemError;
|
|
|
8795
9097
|
// <https://gist.github.com/dcolthorp/aa21cf87d847ae9942106435bf47565d>
|
|
8796
9098
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8797
9099
|
exports.brand = void 0;
|
|
8798
|
-
|
|
8799
|
-
|
|
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) {
|
|
8800
9103
|
if (subject === undefined)
|
|
8801
|
-
return function (subject) {
|
|
8802
|
-
|
|
9104
|
+
return function (subject) {
|
|
9105
|
+
return brand(typeInput, subject);
|
|
9106
|
+
};
|
|
9107
|
+
if ((0, isType_js_1.isType)(subject, s => typeof s === 'object' && s !== null)) {
|
|
8803
9108
|
// if subject is not an object, the branding will exist only in type-level.
|
|
8804
|
-
subject[
|
|
9109
|
+
subject[constants_js_1.typeSym] = typeInput;
|
|
8805
9110
|
}
|
|
8806
9111
|
return subject;
|
|
8807
9112
|
}
|
|
8808
9113
|
exports.brand = brand;
|
|
8809
|
-
//# sourceMappingURL=
|
|
9114
|
+
//# sourceMappingURL=brand.js.map
|
|
8810
9115
|
|
|
8811
9116
|
/***/ }),
|
|
8812
9117
|
|
|
8813
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8814
|
-
|
|
8815
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8816
|
-
|
|
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
|
+
\*********************************************************************************************/
|
|
8817
9138
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8818
9139
|
|
|
8819
9140
|
"use strict";
|
|
@@ -8822,25 +9143,28 @@ exports.brand = brand;
|
|
|
8822
9143
|
// <https://gist.github.com/dcolthorp/aa21cf87d847ae9942106435bf47565d>
|
|
8823
9144
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8824
9145
|
exports.flavor = void 0;
|
|
8825
|
-
|
|
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");
|
|
8826
9148
|
function flavor(type, subject) {
|
|
8827
9149
|
if (subject === undefined)
|
|
8828
|
-
return function (subject) {
|
|
8829
|
-
|
|
9150
|
+
return function (subject) {
|
|
9151
|
+
return flavor(type, subject);
|
|
9152
|
+
};
|
|
9153
|
+
if ((0, isType_js_1.isType)(subject, s => typeof s === 'object' && s !== null)) {
|
|
8830
9154
|
// if subject is not an object, the branding will exist only in type-level.
|
|
8831
|
-
subject[
|
|
9155
|
+
subject[constants_js_1.typeSym] = type;
|
|
8832
9156
|
}
|
|
8833
9157
|
return subject;
|
|
8834
9158
|
}
|
|
8835
9159
|
exports.flavor = flavor;
|
|
8836
|
-
//# sourceMappingURL=
|
|
9160
|
+
//# sourceMappingURL=flavor.js.map
|
|
8837
9161
|
|
|
8838
9162
|
/***/ }),
|
|
8839
9163
|
|
|
8840
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8841
|
-
|
|
8842
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8843
|
-
|
|
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
|
+
\********************************************************************************************/
|
|
8844
9168
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8845
9169
|
|
|
8846
9170
|
"use strict";
|
|
@@ -8860,56 +9184,53 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
8860
9184
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8861
9185
|
};
|
|
8862
9186
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8863
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8864
|
-
__exportStar(__webpack_require__(/*! ./
|
|
8865
|
-
__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);
|
|
8866
9190
|
//# sourceMappingURL=index.js.map
|
|
8867
9191
|
|
|
8868
9192
|
/***/ }),
|
|
8869
9193
|
|
|
8870
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8871
|
-
|
|
8872
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8873
|
-
|
|
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
|
+
\****************************************************************************************************/
|
|
8874
9198
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8875
9199
|
|
|
8876
9200
|
"use strict";
|
|
8877
9201
|
|
|
8878
9202
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8879
9203
|
exports.nominalMatch = void 0;
|
|
8880
|
-
|
|
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");
|
|
8881
9205
|
function nominalMatch(a, b) {
|
|
8882
9206
|
if (typeof a === 'object' && a !== null && typeof b === 'object' && b !== null)
|
|
8883
|
-
return a[
|
|
9207
|
+
return a[constants_js_1.typeSym] === b[constants_js_1.typeSym];
|
|
8884
9208
|
else {
|
|
8885
9209
|
return true;
|
|
8886
9210
|
}
|
|
8887
9211
|
}
|
|
8888
9212
|
exports.nominalMatch = nominalMatch;
|
|
8889
|
-
//# sourceMappingURL=
|
|
9213
|
+
//# sourceMappingURL=nominal_match.js.map
|
|
8890
9214
|
|
|
8891
9215
|
/***/ }),
|
|
8892
9216
|
|
|
8893
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8894
|
-
|
|
8895
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8896
|
-
|
|
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
|
+
\*************************************************************************************************/
|
|
8897
9221
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8898
9222
|
|
|
8899
9223
|
"use strict";
|
|
8900
9224
|
|
|
8901
9225
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8902
|
-
|
|
8903
|
-
exports.typeSym = Symbol('type');
|
|
8904
|
-
exports.valueSym = Symbol('value');
|
|
8905
|
-
//# sourceMappingURL=types.js.map
|
|
9226
|
+
//# sourceMappingURL=number_plus.js.map
|
|
8906
9227
|
|
|
8907
9228
|
/***/ }),
|
|
8908
9229
|
|
|
8909
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8910
|
-
|
|
8911
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8912
|
-
|
|
9230
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/everyKey.js":
|
|
9231
|
+
/*!**********************************************************************************************!*\
|
|
9232
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/everyKey.js ***!
|
|
9233
|
+
\**********************************************************************************************/
|
|
8913
9234
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8914
9235
|
|
|
8915
9236
|
"use strict";
|
|
@@ -8924,37 +9245,33 @@ exports.everyKey = everyKey;
|
|
|
8924
9245
|
|
|
8925
9246
|
/***/ }),
|
|
8926
9247
|
|
|
8927
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8928
|
-
|
|
8929
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8930
|
-
|
|
9248
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/facade.js":
|
|
9249
|
+
/*!********************************************************************************************!*\
|
|
9250
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/facade.js ***!
|
|
9251
|
+
\********************************************************************************************/
|
|
8931
9252
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8932
9253
|
|
|
8933
9254
|
"use strict";
|
|
8934
9255
|
|
|
8935
9256
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8936
9257
|
exports.facade = void 0;
|
|
8937
|
-
function facade(subject) {
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
props[_i - 1] = arguments[_i];
|
|
8941
|
-
}
|
|
8942
|
-
return props.reduce(function (p, k) {
|
|
8943
|
-
var prop = subject[k];
|
|
9258
|
+
function facade(subject, ...props) {
|
|
9259
|
+
return props.reduce((p, k) => {
|
|
9260
|
+
const prop = subject[k];
|
|
8944
9261
|
if (typeof prop === 'function') {
|
|
8945
9262
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
|
|
8946
9263
|
p[k] = prop.bind(subject);
|
|
8947
9264
|
}
|
|
8948
9265
|
else {
|
|
8949
9266
|
Object.defineProperty(p, k, {
|
|
8950
|
-
get
|
|
9267
|
+
get() {
|
|
8951
9268
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
8952
9269
|
return subject[k];
|
|
8953
9270
|
},
|
|
8954
|
-
set
|
|
9271
|
+
set(value) {
|
|
8955
9272
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-assignment
|
|
8956
|
-
return subject[k] = value;
|
|
8957
|
-
}
|
|
9273
|
+
return (subject[k] = value);
|
|
9274
|
+
}
|
|
8958
9275
|
});
|
|
8959
9276
|
}
|
|
8960
9277
|
return p;
|
|
@@ -8965,10 +9282,10 @@ exports.facade = facade;
|
|
|
8965
9282
|
|
|
8966
9283
|
/***/ }),
|
|
8967
9284
|
|
|
8968
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8969
|
-
|
|
8970
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8971
|
-
|
|
9285
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/filterKey.js":
|
|
9286
|
+
/*!***********************************************************************************************!*\
|
|
9287
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/filterKey.js ***!
|
|
9288
|
+
\***********************************************************************************************/
|
|
8972
9289
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8973
9290
|
|
|
8974
9291
|
"use strict";
|
|
@@ -8976,17 +9293,19 @@ exports.facade = facade;
|
|
|
8976
9293
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8977
9294
|
exports.filterKey = void 0;
|
|
8978
9295
|
function filterKey(subject, predicate, thisArg) {
|
|
8979
|
-
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);
|
|
8980
9299
|
}
|
|
8981
9300
|
exports.filterKey = filterKey;
|
|
8982
9301
|
//# sourceMappingURL=filterKey.js.map
|
|
8983
9302
|
|
|
8984
9303
|
/***/ }),
|
|
8985
9304
|
|
|
8986
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
8987
|
-
|
|
8988
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
8989
|
-
|
|
9305
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/findKey.js":
|
|
9306
|
+
/*!*********************************************************************************************!*\
|
|
9307
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/findKey.js ***!
|
|
9308
|
+
\*********************************************************************************************/
|
|
8990
9309
|
/***/ (function(__unused_webpack_module, exports) {
|
|
8991
9310
|
|
|
8992
9311
|
"use strict";
|
|
@@ -8994,17 +9313,19 @@ exports.filterKey = filterKey;
|
|
|
8994
9313
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8995
9314
|
exports.findKey = void 0;
|
|
8996
9315
|
function findKey(subject, predicate, thisArg) {
|
|
8997
|
-
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);
|
|
8998
9319
|
}
|
|
8999
9320
|
exports.findKey = findKey;
|
|
9000
9321
|
//# sourceMappingURL=findKey.js.map
|
|
9001
9322
|
|
|
9002
9323
|
/***/ }),
|
|
9003
9324
|
|
|
9004
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9005
|
-
|
|
9006
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9007
|
-
|
|
9325
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/forEachKey.js":
|
|
9326
|
+
/*!************************************************************************************************!*\
|
|
9327
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/forEachKey.js ***!
|
|
9328
|
+
\************************************************************************************************/
|
|
9008
9329
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9009
9330
|
|
|
9010
9331
|
"use strict";
|
|
@@ -9019,10 +9340,10 @@ exports.forEachKey = forEachKey;
|
|
|
9019
9340
|
|
|
9020
9341
|
/***/ }),
|
|
9021
9342
|
|
|
9022
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9023
|
-
|
|
9024
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9025
|
-
|
|
9343
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/getField.js":
|
|
9344
|
+
/*!**********************************************************************************************!*\
|
|
9345
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/getField.js ***!
|
|
9346
|
+
\**********************************************************************************************/
|
|
9026
9347
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9027
9348
|
|
|
9028
9349
|
"use strict";
|
|
@@ -9030,39 +9351,35 @@ exports.forEachKey = forEachKey;
|
|
|
9030
9351
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9031
9352
|
exports.getField = void 0;
|
|
9032
9353
|
function getField(subject, key, defaultValue) {
|
|
9033
|
-
return subject && subject[key] || defaultValue;
|
|
9354
|
+
return (subject && subject[key]) || defaultValue;
|
|
9034
9355
|
}
|
|
9035
9356
|
exports.getField = getField;
|
|
9036
9357
|
//# sourceMappingURL=getField.js.map
|
|
9037
9358
|
|
|
9038
9359
|
/***/ }),
|
|
9039
9360
|
|
|
9040
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9041
|
-
|
|
9042
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9043
|
-
|
|
9361
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasKey.js":
|
|
9362
|
+
/*!********************************************************************************************!*\
|
|
9363
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasKey.js ***!
|
|
9364
|
+
\********************************************************************************************/
|
|
9044
9365
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9045
9366
|
|
|
9046
9367
|
"use strict";
|
|
9047
9368
|
|
|
9048
9369
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9049
9370
|
exports.hasKey = void 0;
|
|
9050
|
-
function hasKey(subject) {
|
|
9051
|
-
|
|
9052
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9053
|
-
keys[_i - 1] = arguments[_i];
|
|
9054
|
-
}
|
|
9055
|
-
return !keys.some(function (key) { return !subject[key]; });
|
|
9371
|
+
function hasKey(subject, ...keys) {
|
|
9372
|
+
return !keys.some(key => !subject[key]);
|
|
9056
9373
|
}
|
|
9057
9374
|
exports.hasKey = hasKey;
|
|
9058
9375
|
//# sourceMappingURL=hasKey.js.map
|
|
9059
9376
|
|
|
9060
9377
|
/***/ }),
|
|
9061
9378
|
|
|
9062
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9063
|
-
|
|
9064
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9065
|
-
|
|
9379
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasProperty.js":
|
|
9380
|
+
/*!*************************************************************************************************!*\
|
|
9381
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/hasProperty.js ***!
|
|
9382
|
+
\*************************************************************************************************/
|
|
9066
9383
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9067
9384
|
|
|
9068
9385
|
"use strict";
|
|
@@ -9077,10 +9394,10 @@ exports.hasProperty = hasProperty;
|
|
|
9077
9394
|
|
|
9078
9395
|
/***/ }),
|
|
9079
9396
|
|
|
9080
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9081
|
-
|
|
9082
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9083
|
-
|
|
9397
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/index.js":
|
|
9398
|
+
/*!*******************************************************************************************!*\
|
|
9399
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/index.js ***!
|
|
9400
|
+
\*******************************************************************************************/
|
|
9084
9401
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9085
9402
|
|
|
9086
9403
|
"use strict";
|
|
@@ -9100,32 +9417,32 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9100
9417
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9101
9418
|
};
|
|
9102
9419
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9103
|
-
__exportStar(__webpack_require__(/*! ./everyKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9104
|
-
__exportStar(__webpack_require__(/*! ./facade.js */ "../../node_modules/.pnpm/type-plus@
|
|
9105
|
-
__exportStar(__webpack_require__(/*! ./filterKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9106
|
-
__exportStar(__webpack_require__(/*! ./findKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9107
|
-
__exportStar(__webpack_require__(/*! ./forEachKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9108
|
-
__exportStar(__webpack_require__(/*! ./getField.js */ "../../node_modules/.pnpm/type-plus@
|
|
9109
|
-
__exportStar(__webpack_require__(/*! ./hasKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9110
|
-
__exportStar(__webpack_require__(/*! ./hasProperty.js */ "../../node_modules/.pnpm/type-plus@
|
|
9111
|
-
__exportStar(__webpack_require__(/*! ./mapKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9112
|
-
__exportStar(__webpack_require__(/*! ./mapProperties.js */ "../../node_modules/.pnpm/type-plus@
|
|
9113
|
-
__exportStar(__webpack_require__(/*! ./omit.js */ "../../node_modules/.pnpm/type-plus@
|
|
9114
|
-
__exportStar(__webpack_require__(/*! ./pick.js */ "../../node_modules/.pnpm/type-plus@
|
|
9115
|
-
__exportStar(__webpack_require__(/*! ./record.js */ "../../node_modules/.pnpm/type-plus@
|
|
9116
|
-
__exportStar(__webpack_require__(/*! ./reduceKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9117
|
-
__exportStar(__webpack_require__(/*! ./replaceProperty.js */ "../../node_modules/.pnpm/type-plus@
|
|
9118
|
-
__exportStar(__webpack_require__(/*! ./someKey.js */ "../../node_modules/.pnpm/type-plus@
|
|
9119
|
-
__exportStar(__webpack_require__(/*! ./split.js */ "../../node_modules/.pnpm/type-plus@
|
|
9120
|
-
__exportStar(__webpack_require__(/*! ./typeOverrideIncompatible.js */ "../../node_modules/.pnpm/type-plus@
|
|
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);
|
|
9121
9438
|
//# sourceMappingURL=index.js.map
|
|
9122
9439
|
|
|
9123
9440
|
/***/ }),
|
|
9124
9441
|
|
|
9125
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9126
|
-
|
|
9127
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9128
|
-
|
|
9442
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapKey.js":
|
|
9443
|
+
/*!********************************************************************************************!*\
|
|
9444
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapKey.js ***!
|
|
9445
|
+
\********************************************************************************************/
|
|
9129
9446
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9130
9447
|
|
|
9131
9448
|
"use strict";
|
|
@@ -9133,24 +9450,26 @@ __exportStar(__webpack_require__(/*! ./typeOverrideIncompatible.js */ "../../nod
|
|
|
9133
9450
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9134
9451
|
exports.mapKey = void 0;
|
|
9135
9452
|
function mapKey(subject, predicate, thisArg) {
|
|
9136
|
-
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);
|
|
9137
9456
|
}
|
|
9138
9457
|
exports.mapKey = mapKey;
|
|
9139
9458
|
//# sourceMappingURL=mapKey.js.map
|
|
9140
9459
|
|
|
9141
9460
|
/***/ }),
|
|
9142
9461
|
|
|
9143
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9144
|
-
|
|
9145
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9146
|
-
|
|
9462
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapProperties.js":
|
|
9463
|
+
/*!***************************************************************************************************!*\
|
|
9464
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/mapProperties.js ***!
|
|
9465
|
+
\***************************************************************************************************/
|
|
9147
9466
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9148
9467
|
|
|
9149
9468
|
"use strict";
|
|
9150
9469
|
|
|
9151
9470
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9152
9471
|
exports.mapProperties = void 0;
|
|
9153
|
-
|
|
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");
|
|
9154
9473
|
/**
|
|
9155
9474
|
* An Object-specific version of `map`.
|
|
9156
9475
|
* Original source:
|
|
@@ -9160,32 +9479,27 @@ var reduceKey_js_1 = __webpack_require__(/*! ./reduceKey.js */ "../../node_modul
|
|
|
9160
9479
|
* I keep this parameter order because this parameter order provides better type inference.
|
|
9161
9480
|
*/
|
|
9162
9481
|
function mapProperties(subject, callbackfn) {
|
|
9163
|
-
return (0, reduceKey_js_1.reduceByKey)(subject,
|
|
9164
|
-
p); }, {});
|
|
9482
|
+
return (0, reduceKey_js_1.reduceByKey)(subject, (p, key) => ((p[key] = callbackfn(subject[key], key, subject)), p), {});
|
|
9165
9483
|
}
|
|
9166
9484
|
exports.mapProperties = mapProperties;
|
|
9167
9485
|
//# sourceMappingURL=mapProperties.js.map
|
|
9168
9486
|
|
|
9169
9487
|
/***/ }),
|
|
9170
9488
|
|
|
9171
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9172
|
-
|
|
9173
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9174
|
-
|
|
9489
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/omit.js":
|
|
9490
|
+
/*!******************************************************************************************!*\
|
|
9491
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/omit.js ***!
|
|
9492
|
+
\******************************************************************************************/
|
|
9175
9493
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9176
9494
|
|
|
9177
9495
|
"use strict";
|
|
9178
9496
|
|
|
9179
9497
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9180
9498
|
exports.omit = void 0;
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
function omit(subject) {
|
|
9184
|
-
|
|
9185
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9186
|
-
props[_i - 1] = arguments[_i];
|
|
9187
|
-
}
|
|
9188
|
-
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) => {
|
|
9189
9503
|
if (props.indexOf(k) === -1)
|
|
9190
9504
|
p[k] = subject[k];
|
|
9191
9505
|
return p;
|
|
@@ -9196,24 +9510,20 @@ exports.omit = omit;
|
|
|
9196
9510
|
|
|
9197
9511
|
/***/ }),
|
|
9198
9512
|
|
|
9199
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9200
|
-
|
|
9201
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9202
|
-
|
|
9513
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/pick.js":
|
|
9514
|
+
/*!******************************************************************************************!*\
|
|
9515
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/pick.js ***!
|
|
9516
|
+
\******************************************************************************************/
|
|
9203
9517
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9204
9518
|
|
|
9205
9519
|
"use strict";
|
|
9206
9520
|
|
|
9207
9521
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9208
9522
|
exports.pick = void 0;
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
function pick(subject) {
|
|
9212
|
-
|
|
9213
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
9214
|
-
props[_i - 1] = arguments[_i];
|
|
9215
|
-
}
|
|
9216
|
-
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) => {
|
|
9217
9527
|
if (props.indexOf(k) >= 0)
|
|
9218
9528
|
p[k] = subject[k];
|
|
9219
9529
|
return p;
|
|
@@ -9224,10 +9534,10 @@ exports.pick = pick;
|
|
|
9224
9534
|
|
|
9225
9535
|
/***/ }),
|
|
9226
9536
|
|
|
9227
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9228
|
-
|
|
9229
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9230
|
-
|
|
9537
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js":
|
|
9538
|
+
/*!********************************************************************************************!*\
|
|
9539
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/record.js ***!
|
|
9540
|
+
\********************************************************************************************/
|
|
9231
9541
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9232
9542
|
|
|
9233
9543
|
"use strict";
|
|
@@ -9235,7 +9545,7 @@ exports.pick = pick;
|
|
|
9235
9545
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9236
9546
|
exports.record = void 0;
|
|
9237
9547
|
function record(value) {
|
|
9238
|
-
|
|
9548
|
+
const r = Object.create(null);
|
|
9239
9549
|
return (value ? Object.assign(r, value) : r);
|
|
9240
9550
|
}
|
|
9241
9551
|
exports.record = record;
|
|
@@ -9243,10 +9553,10 @@ exports.record = record;
|
|
|
9243
9553
|
|
|
9244
9554
|
/***/ }),
|
|
9245
9555
|
|
|
9246
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9247
|
-
|
|
9248
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9249
|
-
|
|
9556
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js":
|
|
9557
|
+
/*!***********************************************************************************************!*\
|
|
9558
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/reduceKey.js ***!
|
|
9559
|
+
\***********************************************************************************************/
|
|
9250
9560
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9251
9561
|
|
|
9252
9562
|
"use strict";
|
|
@@ -9254,7 +9564,7 @@ exports.record = record;
|
|
|
9254
9564
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9255
9565
|
exports.reduceKey = exports.reduceByKey = void 0;
|
|
9256
9566
|
function reduceByKey(subject, callbackfn, initialValue) {
|
|
9257
|
-
return Object.keys(subject).reduce(callbackfn, initialValue);
|
|
9567
|
+
return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);
|
|
9258
9568
|
}
|
|
9259
9569
|
exports.reduceByKey = reduceByKey;
|
|
9260
9570
|
/**
|
|
@@ -9265,40 +9575,28 @@ exports.reduceKey = reduceByKey;
|
|
|
9265
9575
|
|
|
9266
9576
|
/***/ }),
|
|
9267
9577
|
|
|
9268
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9269
|
-
|
|
9270
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9271
|
-
|
|
9578
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/replaceProperty.js":
|
|
9579
|
+
/*!*****************************************************************************************************!*\
|
|
9580
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/replaceProperty.js ***!
|
|
9581
|
+
\*****************************************************************************************************/
|
|
9272
9582
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9273
9583
|
|
|
9274
9584
|
"use strict";
|
|
9275
9585
|
|
|
9276
|
-
var __assign = (this && this.__assign) || function () {
|
|
9277
|
-
__assign = Object.assign || function(t) {
|
|
9278
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9279
|
-
s = arguments[i];
|
|
9280
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
9281
|
-
t[p] = s[p];
|
|
9282
|
-
}
|
|
9283
|
-
return t;
|
|
9284
|
-
};
|
|
9285
|
-
return __assign.apply(this, arguments);
|
|
9286
|
-
};
|
|
9287
9586
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9288
9587
|
exports.replaceProperty = void 0;
|
|
9289
9588
|
function replaceProperty(subject, key, value) {
|
|
9290
|
-
|
|
9291
|
-
return __assign(__assign({}, subject), (_a = {}, _a[key] = value, _a));
|
|
9589
|
+
return { ...subject, [key]: value };
|
|
9292
9590
|
}
|
|
9293
9591
|
exports.replaceProperty = replaceProperty;
|
|
9294
9592
|
//# sourceMappingURL=replaceProperty.js.map
|
|
9295
9593
|
|
|
9296
9594
|
/***/ }),
|
|
9297
9595
|
|
|
9298
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9299
|
-
|
|
9300
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9301
|
-
|
|
9596
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/someKey.js":
|
|
9597
|
+
/*!*********************************************************************************************!*\
|
|
9598
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/someKey.js ***!
|
|
9599
|
+
\*********************************************************************************************/
|
|
9302
9600
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9303
9601
|
|
|
9304
9602
|
"use strict";
|
|
@@ -9306,72 +9604,53 @@ exports.replaceProperty = replaceProperty;
|
|
|
9306
9604
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9307
9605
|
exports.someKey = void 0;
|
|
9308
9606
|
function someKey(subject, predicate, thisArg) {
|
|
9309
|
-
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);
|
|
9310
9610
|
}
|
|
9311
9611
|
exports.someKey = someKey;
|
|
9312
9612
|
//# sourceMappingURL=someKey.js.map
|
|
9313
9613
|
|
|
9314
9614
|
/***/ }),
|
|
9315
9615
|
|
|
9316
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9317
|
-
|
|
9318
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9319
|
-
|
|
9616
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/split.js":
|
|
9617
|
+
/*!*******************************************************************************************!*\
|
|
9618
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/split.js ***!
|
|
9619
|
+
\*******************************************************************************************/
|
|
9320
9620
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9321
9621
|
|
|
9322
9622
|
"use strict";
|
|
9323
9623
|
|
|
9324
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
9325
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
9326
|
-
if (ar || !(i in from)) {
|
|
9327
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
9328
|
-
ar[i] = from[i];
|
|
9329
|
-
}
|
|
9330
|
-
}
|
|
9331
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9332
|
-
};
|
|
9333
9624
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9334
9625
|
exports.split = void 0;
|
|
9335
|
-
|
|
9336
|
-
function split(target) {
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
var keyMap = {};
|
|
9342
|
-
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); }, {}); });
|
|
9343
|
-
var r = (0, reduceKey_js_1.reduceByKey)(target, function (p, k) { return keyMap[k] ? p : (p[k] = target[k], p); }, {});
|
|
9344
|
-
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];
|
|
9345
9632
|
}
|
|
9346
9633
|
exports.split = split;
|
|
9347
9634
|
//# sourceMappingURL=split.js.map
|
|
9348
9635
|
|
|
9349
9636
|
/***/ }),
|
|
9350
9637
|
|
|
9351
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9352
|
-
|
|
9353
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9354
|
-
|
|
9638
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js":
|
|
9639
|
+
/*!**************************************************************************************************************!*\
|
|
9640
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/object/typeOverrideIncompatible.js ***!
|
|
9641
|
+
\**************************************************************************************************************/
|
|
9355
9642
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9356
9643
|
|
|
9357
9644
|
"use strict";
|
|
9358
9645
|
|
|
9359
|
-
var __assign = (this && this.__assign) || function () {
|
|
9360
|
-
__assign = Object.assign || function(t) {
|
|
9361
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9362
|
-
s = arguments[i];
|
|
9363
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
9364
|
-
t[p] = s[p];
|
|
9365
|
-
}
|
|
9366
|
-
return t;
|
|
9367
|
-
};
|
|
9368
|
-
return __assign.apply(this, arguments);
|
|
9369
|
-
};
|
|
9370
9646
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9371
9647
|
exports.typeOverrideIncompatible = void 0;
|
|
9372
9648
|
function typeOverrideIncompatible() {
|
|
9373
9649
|
return function (source, override) {
|
|
9374
|
-
return
|
|
9650
|
+
return {
|
|
9651
|
+
...source,
|
|
9652
|
+
...override
|
|
9653
|
+
};
|
|
9375
9654
|
};
|
|
9376
9655
|
}
|
|
9377
9656
|
exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
@@ -9379,10 +9658,10 @@ exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
|
9379
9658
|
|
|
9380
9659
|
/***/ }),
|
|
9381
9660
|
|
|
9382
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9383
|
-
|
|
9384
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9385
|
-
|
|
9661
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/CanAssign.js":
|
|
9662
|
+
/*!***************************************************************************************************!*\
|
|
9663
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/CanAssign.js ***!
|
|
9664
|
+
\***************************************************************************************************/
|
|
9386
9665
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9387
9666
|
|
|
9388
9667
|
"use strict";
|
|
@@ -9390,17 +9669,17 @@ exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
|
9390
9669
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9391
9670
|
exports.canAssign = void 0;
|
|
9392
9671
|
function canAssign() {
|
|
9393
|
-
return
|
|
9672
|
+
return () => true;
|
|
9394
9673
|
}
|
|
9395
9674
|
exports.canAssign = canAssign;
|
|
9396
9675
|
//# sourceMappingURL=CanAssign.js.map
|
|
9397
9676
|
|
|
9398
9677
|
/***/ }),
|
|
9399
9678
|
|
|
9400
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9401
|
-
|
|
9402
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9403
|
-
|
|
9679
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/index.js":
|
|
9680
|
+
/*!***********************************************************************************************!*\
|
|
9681
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/index.js ***!
|
|
9682
|
+
\***********************************************************************************************/
|
|
9404
9683
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9405
9684
|
|
|
9406
9685
|
"use strict";
|
|
@@ -9420,31 +9699,24 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9420
9699
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9421
9700
|
};
|
|
9422
9701
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9423
|
-
__exportStar(__webpack_require__(/*! ./CanAssign.js */ "../../node_modules/.pnpm/type-plus@
|
|
9424
|
-
__exportStar(__webpack_require__(/*! ./isType.js */ "../../node_modules/.pnpm/type-plus@
|
|
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);
|
|
9425
9704
|
//# sourceMappingURL=index.js.map
|
|
9426
9705
|
|
|
9427
9706
|
/***/ }),
|
|
9428
9707
|
|
|
9429
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9430
|
-
|
|
9431
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9432
|
-
|
|
9433
|
-
/***/ (function(__unused_webpack_module, exports
|
|
9708
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/isType.js":
|
|
9709
|
+
/*!************************************************************************************************!*\
|
|
9710
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/predicates/isType.js ***!
|
|
9711
|
+
\************************************************************************************************/
|
|
9712
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
9434
9713
|
|
|
9435
9714
|
"use strict";
|
|
9436
9715
|
|
|
9437
9716
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9438
9717
|
exports.isType = void 0;
|
|
9439
|
-
var index_js_1 = __webpack_require__(/*! ../class/index.js */ "../../node_modules/.pnpm/type-plus@4.16.0/node_modules/type-plus/cjs/class/index.js");
|
|
9440
9718
|
function isType(subject, validator) {
|
|
9441
|
-
|
|
9442
|
-
if ((0, index_js_1.isConstructor)(validator))
|
|
9443
|
-
return subject instanceof validator;
|
|
9444
|
-
else
|
|
9445
|
-
return !!validator(subject);
|
|
9446
|
-
}
|
|
9447
|
-
return true;
|
|
9719
|
+
return validator ? !!validator(subject) : true;
|
|
9448
9720
|
}
|
|
9449
9721
|
exports.isType = isType;
|
|
9450
9722
|
isType.t = function (subject) {
|
|
@@ -9453,28 +9725,33 @@ isType.t = function (subject) {
|
|
|
9453
9725
|
isType.f = function (subject) {
|
|
9454
9726
|
return subject === undefined || subject === false;
|
|
9455
9727
|
};
|
|
9728
|
+
function isNever(subject) {
|
|
9729
|
+
return true;
|
|
9730
|
+
}
|
|
9731
|
+
isType.never = isNever;
|
|
9456
9732
|
/**
|
|
9457
9733
|
* Are types A and B equals/not equals.
|
|
9458
|
-
* Easier to use
|
|
9734
|
+
* Easier to use than `isType.t<>()` and `isType.f<>()`,
|
|
9459
9735
|
* when doing type level only equality comparison as you don't have to import `Equal<>`.
|
|
9736
|
+
*
|
|
9737
|
+
* @deprecated use `type.equal()` instead
|
|
9460
9738
|
*/
|
|
9461
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9462
9739
|
isType.equal = function () { };
|
|
9463
9740
|
//# sourceMappingURL=isType.js.map
|
|
9464
9741
|
|
|
9465
9742
|
/***/ }),
|
|
9466
9743
|
|
|
9467
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9468
|
-
|
|
9469
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9470
|
-
|
|
9744
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/MaybePromise.js":
|
|
9745
|
+
/*!***************************************************************************************************!*\
|
|
9746
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/MaybePromise.js ***!
|
|
9747
|
+
\***************************************************************************************************/
|
|
9471
9748
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9472
9749
|
|
|
9473
9750
|
"use strict";
|
|
9474
9751
|
|
|
9475
9752
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9476
9753
|
exports.MaybePromise = exports.transformMaybePromise = void 0;
|
|
9477
|
-
|
|
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");
|
|
9478
9755
|
function transformMaybePromise(value, transformer) {
|
|
9479
9756
|
return (0, isPromise_js_1.isPromise)(value) ? value.then(transformer) : transformer(value);
|
|
9480
9757
|
}
|
|
@@ -9486,10 +9763,10 @@ exports.MaybePromise = {
|
|
|
9486
9763
|
|
|
9487
9764
|
/***/ }),
|
|
9488
9765
|
|
|
9489
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9490
|
-
|
|
9491
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9492
|
-
|
|
9766
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/index.js":
|
|
9767
|
+
/*!********************************************************************************************!*\
|
|
9768
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/index.js ***!
|
|
9769
|
+
\********************************************************************************************/
|
|
9493
9770
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9494
9771
|
|
|
9495
9772
|
"use strict";
|
|
@@ -9509,17 +9786,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9509
9786
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9510
9787
|
};
|
|
9511
9788
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9512
|
-
__exportStar(__webpack_require__(/*! ./isPromise.js */ "../../node_modules/.pnpm/type-plus@
|
|
9513
|
-
__exportStar(__webpack_require__(/*! ./mapSeries.js */ "../../node_modules/.pnpm/type-plus@
|
|
9514
|
-
__exportStar(__webpack_require__(/*! ./MaybePromise.js */ "../../node_modules/.pnpm/type-plus@
|
|
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);
|
|
9515
9792
|
//# sourceMappingURL=index.js.map
|
|
9516
9793
|
|
|
9517
9794
|
/***/ }),
|
|
9518
9795
|
|
|
9519
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9520
|
-
|
|
9521
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9522
|
-
|
|
9796
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/isPromise.js":
|
|
9797
|
+
/*!************************************************************************************************!*\
|
|
9798
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/isPromise.js ***!
|
|
9799
|
+
\************************************************************************************************/
|
|
9523
9800
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9524
9801
|
|
|
9525
9802
|
"use strict";
|
|
@@ -9535,10 +9812,10 @@ exports.isPromise = isPromise;
|
|
|
9535
9812
|
|
|
9536
9813
|
/***/ }),
|
|
9537
9814
|
|
|
9538
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9539
|
-
|
|
9540
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9541
|
-
|
|
9815
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/mapSeries.js":
|
|
9816
|
+
/*!************************************************************************************************!*\
|
|
9817
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/promise/mapSeries.js ***!
|
|
9818
|
+
\************************************************************************************************/
|
|
9542
9819
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9543
9820
|
|
|
9544
9821
|
"use strict";
|
|
@@ -9546,74 +9823,158 @@ exports.isPromise = isPromise;
|
|
|
9546
9823
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9547
9824
|
exports.mapSeries = void 0;
|
|
9548
9825
|
function mapSeries(values, fn) {
|
|
9549
|
-
return values.reduce(
|
|
9826
|
+
return values.reduce((p, v) => p.then(r => fn(v).then(v => (r.push(v), r))), Promise.resolve([]));
|
|
9550
9827
|
}
|
|
9551
9828
|
exports.mapSeries = mapSeries;
|
|
9552
9829
|
//# sourceMappingURL=mapSeries.js.map
|
|
9553
9830
|
|
|
9554
9831
|
/***/ }),
|
|
9555
9832
|
|
|
9556
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9557
|
-
|
|
9558
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9559
|
-
|
|
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
|
+
\*******************************************************************************************/
|
|
9560
9837
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9561
9838
|
|
|
9562
9839
|
"use strict";
|
|
9563
9840
|
|
|
9564
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9565
|
-
if (k2 === undefined) k2 = k;
|
|
9566
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9567
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9568
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9569
|
-
}
|
|
9570
|
-
Object.defineProperty(o, k2, desc);
|
|
9571
|
-
}) : (function(o, m, k, k2) {
|
|
9572
|
-
if (k2 === undefined) k2 = k;
|
|
9573
|
-
o[k2] = m[k];
|
|
9574
|
-
}));
|
|
9575
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
9576
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9577
|
-
};
|
|
9578
9841
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9579
|
-
|
|
9580
|
-
|
|
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
|
|
9581
9856
|
|
|
9582
9857
|
/***/ }),
|
|
9583
9858
|
|
|
9584
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9585
|
-
|
|
9586
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9587
|
-
|
|
9588
|
-
/***/ (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) {
|
|
9589
9864
|
|
|
9590
9865
|
"use strict";
|
|
9591
9866
|
|
|
9592
9867
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9593
|
-
exports.
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
return stub;
|
|
9868
|
+
exports.testType = void 0;
|
|
9869
|
+
function equal(expected) {
|
|
9870
|
+
return expected;
|
|
9597
9871
|
}
|
|
9598
|
-
exports.stub = stub;
|
|
9599
9872
|
/**
|
|
9600
|
-
*
|
|
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.
|
|
9601
9878
|
*/
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
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
|
+
}
|
|
9608
9969
|
};
|
|
9609
|
-
//# sourceMappingURL=
|
|
9970
|
+
//# sourceMappingURL=test_type.js.map
|
|
9610
9971
|
|
|
9611
9972
|
/***/ }),
|
|
9612
9973
|
|
|
9613
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9614
|
-
|
|
9615
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9616
|
-
|
|
9974
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/as.js":
|
|
9975
|
+
/*!***************************************************************************************!*\
|
|
9976
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/as.js ***!
|
|
9977
|
+
\***************************************************************************************/
|
|
9617
9978
|
/***/ (function(__unused_webpack_module, exports) {
|
|
9618
9979
|
|
|
9619
9980
|
"use strict";
|
|
@@ -9633,8 +9994,12 @@ exports.asAny = asAny;
|
|
|
9633
9994
|
*/
|
|
9634
9995
|
function amend(subject) {
|
|
9635
9996
|
return {
|
|
9636
|
-
union
|
|
9637
|
-
|
|
9997
|
+
union() {
|
|
9998
|
+
return subject;
|
|
9999
|
+
},
|
|
10000
|
+
intersect() {
|
|
10001
|
+
return subject;
|
|
10002
|
+
}
|
|
9638
10003
|
};
|
|
9639
10004
|
}
|
|
9640
10005
|
exports.amend = amend;
|
|
@@ -9642,10 +10007,10 @@ exports.amend = amend;
|
|
|
9642
10007
|
|
|
9643
10008
|
/***/ }),
|
|
9644
10009
|
|
|
9645
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
9646
|
-
|
|
9647
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
9648
|
-
|
|
10010
|
+
/***/ "../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/index.js":
|
|
10011
|
+
/*!******************************************************************************************!*\
|
|
10012
|
+
!*** ../../node_modules/.pnpm/type-plus@6.5.0/node_modules/type-plus/cjs/utils/index.js ***!
|
|
10013
|
+
\******************************************************************************************/
|
|
9649
10014
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
9650
10015
|
|
|
9651
10016
|
"use strict";
|
|
@@ -9665,11 +10030,35 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
9665
10030
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9666
10031
|
};
|
|
9667
10032
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9668
|
-
__exportStar(__webpack_require__(/*! ./as.js */ "../../node_modules/.pnpm/type-plus@
|
|
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);
|
|
9669
10035
|
//# sourceMappingURL=index.js.map
|
|
9670
10036
|
|
|
9671
10037
|
/***/ }),
|
|
9672
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
|
+
|
|
9673
10062
|
/***/ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js":
|
|
9674
10063
|
/*!************************************************************************************!*\
|
|
9675
10064
|
!*** ../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/cjs/index.js ***!
|