standard-log 6.2.4 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/standard-log.js +918 -1692
- package/dist/standard-log.js.gz +0 -0
- package/dist/standard-log.js.map +1 -1
- package/dist/standard-log.js.map.gz +0 -0
- package/lib/captureLogs.d.ts.map +1 -1
- package/lib/captureLogs.js +3 -3
- package/lib/captureLogs.js.map +1 -1
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/configForTest.js +2 -2
- package/lib/configForTest.js.map +1 -1
- package/lib/console/createConsoleLogReporter.js +4 -4
- package/lib/console/createConsoleLogReporter.js.map +1 -1
- package/lib/console/index.js +3 -3
- package/lib/console/index.js.map +1 -1
- package/lib/console/isConsoleDebugAvailable.js +2 -2
- package/lib/console/isConsoleDebugAvailable.js.map +1 -1
- package/lib/console/polyfilledConsole.js +2 -2
- package/lib/console/polyfilledConsole.js.map +1 -1
- package/lib/customLogLevel.js +3 -3
- package/lib/customLogLevel.js.map +1 -1
- package/lib/errors.d.ts +2 -2
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +9 -13
- package/lib/errors.js.map +1 -1
- package/lib/formatter/createTimestampFormatter.js +2 -2
- package/lib/formatter/createTimestampFormatter.js.map +1 -1
- package/lib/formatter/formatLogLevel.js +1 -1
- package/lib/formatter/formatLogLevel.js.map +1 -1
- package/lib/formatter/index.js +3 -3
- package/lib/formatter/index.js.map +1 -1
- package/lib/formatter/plainLogFormatter.js +1 -1
- package/lib/formatter/plainLogFormatter.js.map +1 -1
- package/lib/getDefaultReporter.browser.js +1 -1
- package/lib/getDefaultReporter.browser.js.map +1 -1
- package/lib/getDefaultReporter.js +1 -1
- package/lib/getDefaultReporter.js.map +1 -1
- package/lib/getLogger.js +9 -9
- package/lib/getLogger.js.map +1 -1
- package/lib/getLoggers.js +1 -1
- package/lib/getLoggers.js.map +1 -1
- package/lib/index.js +15 -15
- package/lib/index.js.map +1 -1
- package/lib/logLevelFn.js +5 -5
- package/lib/logLevelFn.js.map +1 -1
- package/lib/logReporter.js +3 -3
- package/lib/logReporter.js.map +1 -1
- package/lib/logReporterInternal.js +1 -1
- package/lib/logReporterInternal.js.map +1 -1
- package/lib/memory/MemoryLogReporter.d.ts +1 -0
- package/lib/memory/MemoryLogReporter.d.ts.map +1 -1
- package/lib/memory/MemoryLogReporter.js +10 -11
- package/lib/memory/MemoryLogReporter.js.map +1 -1
- package/lib/memory/index.js +2 -2
- package/lib/memory/index.js.map +1 -1
- package/lib/memory/toInspectStringForObject.js +1 -1
- package/lib/memory/toInspectStringForObject.js.map +1 -1
- package/lib/store.js +3 -3
- package/lib/store.js.map +1 -1
- package/lib/testUtil.js +1 -1
- package/lib/testUtil.js.map +1 -1
- package/lib/writeToReporters.js +1 -1
- package/lib/writeToReporters.js.map +1 -1
- package/libm/captureLogs.d.ts.map +1 -1
- package/libm/captureLogs.js +1 -1
- package/libm/captureLogs.js.map +1 -1
- package/libm/errors.d.ts +2 -2
- package/libm/errors.d.ts.map +1 -1
- package/libm/errors.js +7 -2
- package/libm/errors.js.map +1 -1
- package/libm/memory/MemoryLogReporter.d.ts +1 -0
- package/libm/memory/MemoryLogReporter.d.ts.map +1 -1
- package/libm/memory/MemoryLogReporter.js +5 -7
- package/libm/memory/MemoryLogReporter.js.map +1 -1
- package/package.json +9 -9
- package/src/captureLogs.spec.ts +3 -1
- package/src/captureLogs.ts +2 -2
- package/src/config.spec.ts +4 -4
- package/src/errors.ts +3 -3
- package/src/getLogger.spec.ts +1 -1
- package/src/memory/MemoryLogReporter.spec.ts +1 -2
- package/src/memory/MemoryLogReporter.ts +5 -7
- package/CHANGELOG.md +0 -726
package/dist/standard-log.js
CHANGED
|
@@ -2,6 +2,27 @@ var StandardLog;
|
|
|
2
2
|
/******/ (function() { // webpackBootstrap
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
+
/***/ "../../node_modules/is-buffer/index.js":
|
|
6
|
+
/*!*********************************************!*\
|
|
7
|
+
!*** ../../node_modules/is-buffer/index.js ***!
|
|
8
|
+
\*********************************************/
|
|
9
|
+
/***/ (function(module) {
|
|
10
|
+
|
|
11
|
+
/*!
|
|
12
|
+
* Determine if an object is a Buffer
|
|
13
|
+
*
|
|
14
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
15
|
+
* @license MIT
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
module.exports = function isBuffer (obj) {
|
|
19
|
+
return obj != null && obj.constructor != null &&
|
|
20
|
+
typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
/***/ }),
|
|
25
|
+
|
|
5
26
|
/***/ "../../node_modules/is-node/index.js":
|
|
6
27
|
/*!*******************************************!*\
|
|
7
28
|
!*** ../../node_modules/is-node/index.js ***!
|
|
@@ -17,22 +38,25 @@ exports = module.exports = !!(typeof process !== 'undefined' && process.versions
|
|
|
17
38
|
|
|
18
39
|
/***/ }),
|
|
19
40
|
|
|
20
|
-
/***/ "../../node_modules/iso-error/
|
|
41
|
+
/***/ "../../node_modules/iso-error/cjs/index.js":
|
|
21
42
|
/*!*************************************************!*\
|
|
22
|
-
!*** ../../node_modules/iso-error/
|
|
43
|
+
!*** ../../node_modules/iso-error/cjs/index.js ***!
|
|
23
44
|
\*************************************************/
|
|
24
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
45
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
25
46
|
|
|
26
47
|
"use strict";
|
|
27
48
|
|
|
49
|
+
/* eslint-disable @typescript-eslint/unbound-method */
|
|
28
50
|
var __extends = (this && this.__extends) || (function () {
|
|
29
51
|
var extendStatics = function (d, b) {
|
|
30
52
|
extendStatics = Object.setPrototypeOf ||
|
|
31
53
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
32
|
-
function (d, b) { for (var p in b) if (
|
|
54
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
33
55
|
return extendStatics(d, b);
|
|
34
56
|
};
|
|
35
57
|
return function (d, b) {
|
|
58
|
+
if (typeof b !== "function" && b !== null)
|
|
59
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
36
60
|
extendStatics(d, b);
|
|
37
61
|
function __() { this.constructor = d; }
|
|
38
62
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -60,14 +84,32 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
60
84
|
}
|
|
61
85
|
return t;
|
|
62
86
|
};
|
|
63
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
64
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
65
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
66
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
67
|
-
r[k] = a[j];
|
|
68
|
-
return r;
|
|
69
|
-
};
|
|
70
87
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
88
|
+
exports.ModuleError = exports.IsoError = void 0;
|
|
89
|
+
//#region captureStackTrace polyfill
|
|
90
|
+
// istanbul ignore next
|
|
91
|
+
if (!Error.captureStackTrace) {
|
|
92
|
+
Error.captureStackTrace = function (error) {
|
|
93
|
+
var container = new Error();
|
|
94
|
+
Object.defineProperty(error, 'stack', {
|
|
95
|
+
configurable: true,
|
|
96
|
+
get: function () {
|
|
97
|
+
// Replace property with value for faster future accesses.
|
|
98
|
+
defineStack(this, container.stack);
|
|
99
|
+
return container.stack;
|
|
100
|
+
},
|
|
101
|
+
set: function (stack) { defineStack(error, stack); },
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
// istanbul ignore next
|
|
106
|
+
function defineStack(target, value) {
|
|
107
|
+
Object.defineProperty(target, 'stack', {
|
|
108
|
+
configurable: true,
|
|
109
|
+
value: value,
|
|
110
|
+
writable: true,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
71
113
|
var serializers = [];
|
|
72
114
|
var deserializers = [];
|
|
73
115
|
/**
|
|
@@ -75,82 +117,157 @@ var deserializers = [];
|
|
|
75
117
|
*/
|
|
76
118
|
var IsoError = /** @class */ (function (_super) {
|
|
77
119
|
__extends(IsoError, _super);
|
|
78
|
-
function IsoError(message) {
|
|
120
|
+
function IsoError(message, options) {
|
|
79
121
|
var _newTarget = this.constructor;
|
|
80
|
-
var errors = [];
|
|
81
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
82
|
-
errors[_i - 1] = arguments[_i];
|
|
83
|
-
}
|
|
84
122
|
var _this = _super.call(this, message) || this;
|
|
85
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Name of the error
|
|
125
|
+
*/
|
|
126
|
+
Object.defineProperty(_this, "name", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
configurable: true,
|
|
129
|
+
writable: true,
|
|
130
|
+
value: void 0
|
|
131
|
+
});
|
|
132
|
+
/**
|
|
133
|
+
* Error cause
|
|
134
|
+
*/
|
|
135
|
+
Object.defineProperty(_this, "cause", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
configurable: true,
|
|
138
|
+
writable: true,
|
|
139
|
+
value: void 0
|
|
140
|
+
});
|
|
141
|
+
//restore prototype chain
|
|
86
142
|
var actualProto = _newTarget.prototype;
|
|
87
143
|
_this.name = actualProto.constructor.name;
|
|
88
144
|
// istanbul ignore next
|
|
89
145
|
if (Object.setPrototypeOf)
|
|
90
146
|
Object.setPrototypeOf(_this, actualProto);
|
|
147
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
91
148
|
else
|
|
92
149
|
_this.__proto__ = actualProto;
|
|
93
|
-
if (
|
|
94
|
-
_this.
|
|
150
|
+
if (options === null || options === void 0 ? void 0 : options.cause)
|
|
151
|
+
_this.cause = toIsoError(options.cause);
|
|
152
|
+
if (options === null || options === void 0 ? void 0 : options.ssf)
|
|
153
|
+
Error.captureStackTrace(_this, options.ssf);
|
|
95
154
|
return _this;
|
|
96
155
|
}
|
|
97
156
|
/**
|
|
98
157
|
* Create an IsoError with additional properties without the need to create a new class.
|
|
99
158
|
* @param props properties of the IsoError
|
|
100
159
|
*/
|
|
101
|
-
IsoError
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
160
|
+
Object.defineProperty(IsoError, "create", {
|
|
161
|
+
enumerable: false,
|
|
162
|
+
configurable: true,
|
|
163
|
+
writable: true,
|
|
164
|
+
value: function (props) {
|
|
165
|
+
var message = props.message, cause = props.cause, rest = __rest(props, ["message", "cause"]);
|
|
166
|
+
var err = new IsoError(message, { cause: cause, ssf: IsoError.create });
|
|
167
|
+
return Object.assign(err, rest);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(IsoError, "stringify", {
|
|
171
|
+
enumerable: false,
|
|
172
|
+
configurable: true,
|
|
173
|
+
writable: true,
|
|
174
|
+
value: function (err) {
|
|
175
|
+
return this.serialize(err);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(IsoError, "serialize", {
|
|
179
|
+
enumerable: false,
|
|
180
|
+
configurable: true,
|
|
181
|
+
writable: true,
|
|
182
|
+
value: function (err) {
|
|
183
|
+
return JSON.stringify(this.toSerializable(err));
|
|
184
|
+
}
|
|
185
|
+
});
|
|
110
186
|
/**
|
|
111
|
-
* @type P
|
|
187
|
+
* @type P Additional properties of the IsoError
|
|
112
188
|
* @param text Json representation of a IsoError
|
|
113
189
|
*/
|
|
114
|
-
IsoError
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
};
|
|
123
|
-
IsoError.toSerializable = function (err) {
|
|
124
|
-
return serializers.reduce(function (p, s) { return p || s(err); }, undefined) || toSerializableError(err);
|
|
125
|
-
};
|
|
190
|
+
Object.defineProperty(IsoError, "parse", {
|
|
191
|
+
enumerable: false,
|
|
192
|
+
configurable: true,
|
|
193
|
+
writable: true,
|
|
194
|
+
value: function (text) {
|
|
195
|
+
return deserialize(IsoError.parse, text);
|
|
196
|
+
}
|
|
197
|
+
});
|
|
126
198
|
/**
|
|
127
|
-
* @type P
|
|
199
|
+
* @type P Additional properties of the IsoError
|
|
128
200
|
* @param text Json representation of a IsoError
|
|
129
201
|
*/
|
|
130
|
-
IsoError
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
202
|
+
Object.defineProperty(IsoError, "deserialize", {
|
|
203
|
+
enumerable: false,
|
|
204
|
+
configurable: true,
|
|
205
|
+
writable: true,
|
|
206
|
+
value: function (text) {
|
|
207
|
+
return deserialize(IsoError.deserialize, text);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(IsoError, "toSerializable", {
|
|
211
|
+
enumerable: false,
|
|
212
|
+
configurable: true,
|
|
213
|
+
writable: true,
|
|
214
|
+
value: function (err) {
|
|
215
|
+
return serializers.reduce(function (p, s) { return p || s(err); }, undefined)
|
|
216
|
+
|| toSerializableError(err);
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(IsoError, "fromSerializable", {
|
|
220
|
+
enumerable: false,
|
|
221
|
+
configurable: true,
|
|
222
|
+
writable: true,
|
|
223
|
+
value: function (json) {
|
|
224
|
+
var err = deserializeError(json);
|
|
225
|
+
Error.captureStackTrace(err, IsoError.fromSerializable);
|
|
226
|
+
return err;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
147
229
|
/**
|
|
148
230
|
* returns the error message including the error causes.
|
|
149
231
|
*/
|
|
150
|
-
IsoError
|
|
232
|
+
Object.defineProperty(IsoError, "trace", {
|
|
233
|
+
enumerable: false,
|
|
234
|
+
configurable: true,
|
|
235
|
+
writable: true,
|
|
236
|
+
value: function (err) {
|
|
237
|
+
return trace(err);
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(IsoError, "addPlugin", {
|
|
241
|
+
enumerable: false,
|
|
242
|
+
configurable: true,
|
|
243
|
+
writable: true,
|
|
244
|
+
value: function (_a) {
|
|
245
|
+
var toSerializable = _a.toSerializable, fromSerializable = _a.fromSerializable;
|
|
246
|
+
serializers.unshift(toSerializable);
|
|
247
|
+
deserializers.unshift(fromSerializable);
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
Object.defineProperty(IsoError.prototype, "toString", {
|
|
251
|
+
enumerable: false,
|
|
252
|
+
configurable: true,
|
|
253
|
+
writable: true,
|
|
254
|
+
value: function () { return IsoError.serialize(this); }
|
|
255
|
+
});
|
|
256
|
+
Object.defineProperty(IsoError.prototype, "trace", {
|
|
257
|
+
enumerable: false,
|
|
258
|
+
configurable: true,
|
|
259
|
+
writable: true,
|
|
260
|
+
value: function () { return IsoError.trace(this); }
|
|
261
|
+
});
|
|
151
262
|
return IsoError;
|
|
152
263
|
}(Error));
|
|
153
264
|
exports.IsoError = IsoError;
|
|
265
|
+
function deserialize(fn, text) {
|
|
266
|
+
var json = JSON.parse(text);
|
|
267
|
+
var err = deserializeError(json);
|
|
268
|
+
Error.captureStackTrace(err, fn);
|
|
269
|
+
return err;
|
|
270
|
+
}
|
|
154
271
|
function deserializeError(json) {
|
|
155
272
|
var err = undefined;
|
|
156
273
|
for (var _i = 0, deserializers_1 = deserializers; _i < deserializers_1.length; _i++) {
|
|
@@ -159,17 +276,33 @@ function deserializeError(json) {
|
|
|
159
276
|
if (err)
|
|
160
277
|
break;
|
|
161
278
|
}
|
|
162
|
-
return err ||
|
|
279
|
+
return err || defaultDeserializeError(json);
|
|
163
280
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
166
|
-
|
|
281
|
+
function defaultDeserializeError(json) {
|
|
282
|
+
if (json.name === 'AggregateError') {
|
|
283
|
+
var _a = json, message_1 = _a.message, errors = _a.errors, rest_1 = __rest(_a, ["message", "errors"]);
|
|
284
|
+
// @ts-ignore
|
|
285
|
+
return Object.assign(new AggregateError(errors, message_1), rest_1);
|
|
286
|
+
}
|
|
287
|
+
var _b = json, message = _b.message, cause = _b.cause, rest = __rest(_b, ["message", "cause"]);
|
|
288
|
+
var causeError = cause ? deserializeError(cause) : undefined;
|
|
289
|
+
if (json.name === 'Error') {
|
|
290
|
+
return Object.assign(new Error(message), causeError ? __assign(__assign({}, rest), { cause: causeError }) : rest);
|
|
291
|
+
}
|
|
292
|
+
// @ts-ignore
|
|
293
|
+
return Object.assign(new IsoError(message, causeError ? { cause: causeError } : undefined), rest);
|
|
167
294
|
}
|
|
168
295
|
function toSerializableError(err) {
|
|
169
|
-
|
|
170
|
-
|
|
296
|
+
if (__webpack_require__.g.AggregateError && err instanceof AggregateError) {
|
|
297
|
+
return __assign(__assign({}, err), { name: err.constructor.name, message: err.message, errors: err.errors.map(toSerializableError) });
|
|
298
|
+
}
|
|
299
|
+
if (err instanceof Error) {
|
|
300
|
+
var message = err.message, cause = err.cause;
|
|
301
|
+
return cause
|
|
302
|
+
? __assign(__assign({}, err), { name: err.constructor.name, message: message, cause: toSerializableError(cause) }) : __assign(__assign({}, err), { name: err.constructor.name, message: message });
|
|
303
|
+
}
|
|
304
|
+
return err;
|
|
171
305
|
}
|
|
172
|
-
exports.toSerializableError = toSerializableError;
|
|
173
306
|
// NOTE: In this function I have to to Object.assign to keep the err instance and its stack trace.
|
|
174
307
|
function toIsoError(err) {
|
|
175
308
|
if (err instanceof IsoError)
|
|
@@ -179,11 +312,29 @@ function toIsoError(err) {
|
|
|
179
312
|
return Object.assign(err, { name: err.constructor.name !== 'Object' ? err.constructor.name : err.name });
|
|
180
313
|
}
|
|
181
314
|
function trace(err) {
|
|
182
|
-
var messages = [
|
|
183
|
-
if (err
|
|
315
|
+
var messages = [];
|
|
316
|
+
if (err instanceof ModuleError) {
|
|
317
|
+
messages.push("".concat(err.name, "(").concat(err.module, "): ").concat(err.message));
|
|
318
|
+
}
|
|
319
|
+
else if (err instanceof Error) {
|
|
320
|
+
messages.push("".concat(err.name, ": ").concat(err.message));
|
|
321
|
+
}
|
|
322
|
+
if (__webpack_require__.g.AggregateError && err instanceof AggregateError) {
|
|
184
323
|
err.errors.forEach(function (e) { return messages.push.apply(messages, trace(e).split('\n').map(function (s) { return ' ' + s; })); });
|
|
324
|
+
}
|
|
325
|
+
if (err instanceof Error) {
|
|
326
|
+
if (hasCause(err))
|
|
327
|
+
messages.push.apply(messages, trace(err.cause).split('\n').map(function (s) { return ' ' + s; }));
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
messages.push(typeof err === 'string' ? err : JSON.stringify(err));
|
|
331
|
+
}
|
|
185
332
|
return messages.join('\n');
|
|
186
333
|
}
|
|
334
|
+
function hasCause(x) {
|
|
335
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
336
|
+
return !!x.cause;
|
|
337
|
+
}
|
|
187
338
|
/**
|
|
188
339
|
* An IsoError with a module property.
|
|
189
340
|
*/
|
|
@@ -192,39 +343,19 @@ var ModuleError = /** @class */ (function (_super) {
|
|
|
192
343
|
/**
|
|
193
344
|
* @param module The module that defines this error.
|
|
194
345
|
*/
|
|
195
|
-
function ModuleError(module,
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
346
|
+
function ModuleError(module, message, options) {
|
|
347
|
+
var _this = _super.call(this, message, options) || this;
|
|
348
|
+
Object.defineProperty(_this, "module", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
configurable: true,
|
|
351
|
+
writable: true,
|
|
352
|
+
value: module
|
|
353
|
+
});
|
|
202
354
|
return _this;
|
|
203
355
|
}
|
|
204
356
|
return ModuleError;
|
|
205
357
|
}(IsoError));
|
|
206
358
|
exports.ModuleError = ModuleError;
|
|
207
|
-
// istanbul ignore next
|
|
208
|
-
var captureStackTrace = Error.captureStackTrace || function (error) {
|
|
209
|
-
var container = new Error();
|
|
210
|
-
Object.defineProperty(error, 'stack', {
|
|
211
|
-
configurable: true,
|
|
212
|
-
get: function () {
|
|
213
|
-
// Replace property with value for faster future accesses.
|
|
214
|
-
defineStack(this, container.stack);
|
|
215
|
-
return container.stack;
|
|
216
|
-
},
|
|
217
|
-
set: function (stack) { defineStack(error, stack); },
|
|
218
|
-
});
|
|
219
|
-
};
|
|
220
|
-
// istanbul ignore next
|
|
221
|
-
function defineStack(target, value) {
|
|
222
|
-
Object.defineProperty(target, 'stack', {
|
|
223
|
-
configurable: true,
|
|
224
|
-
value: value,
|
|
225
|
-
writable: true,
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
359
|
//# sourceMappingURL=index.js.map
|
|
229
360
|
|
|
230
361
|
/***/ }),
|
|
@@ -401,15 +532,16 @@ function plural(ms, msAbs, n, name) {
|
|
|
401
532
|
|
|
402
533
|
/***/ }),
|
|
403
534
|
|
|
404
|
-
/***/ "../../node_modules/tersify/
|
|
535
|
+
/***/ "../../node_modules/tersify/cjs/constants.browser.js":
|
|
405
536
|
/*!***********************************************************!*\
|
|
406
|
-
!*** ../../node_modules/tersify/
|
|
537
|
+
!*** ../../node_modules/tersify/cjs/constants.browser.js ***!
|
|
407
538
|
\***********************************************************/
|
|
408
539
|
/***/ (function(__unused_webpack_module, exports) {
|
|
409
540
|
|
|
410
541
|
"use strict";
|
|
411
542
|
|
|
412
543
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
544
|
+
exports.defaultOptions = exports.EOL = void 0;
|
|
413
545
|
// istanbul ignore file
|
|
414
546
|
exports.EOL = '\n';
|
|
415
547
|
exports.defaultOptions = { maxLength: 120, references: [] };
|
|
@@ -417,15 +549,16 @@ exports.defaultOptions = { maxLength: 120, references: [] };
|
|
|
417
549
|
|
|
418
550
|
/***/ }),
|
|
419
551
|
|
|
420
|
-
/***/ "../../node_modules/tersify/
|
|
552
|
+
/***/ "../../node_modules/tersify/cjs/hasTersifyFn.js":
|
|
421
553
|
/*!******************************************************!*\
|
|
422
|
-
!*** ../../node_modules/tersify/
|
|
554
|
+
!*** ../../node_modules/tersify/cjs/hasTersifyFn.js ***!
|
|
423
555
|
\******************************************************/
|
|
424
556
|
/***/ (function(__unused_webpack_module, exports) {
|
|
425
557
|
|
|
426
558
|
"use strict";
|
|
427
559
|
|
|
428
560
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
561
|
+
exports.hasTersifyFn = void 0;
|
|
429
562
|
function hasTersifyFn(obj) {
|
|
430
563
|
return typeof obj['tersify'] === 'function';
|
|
431
564
|
}
|
|
@@ -434,27 +567,35 @@ exports.hasTersifyFn = hasTersifyFn;
|
|
|
434
567
|
|
|
435
568
|
/***/ }),
|
|
436
569
|
|
|
437
|
-
/***/ "../../node_modules/tersify/
|
|
570
|
+
/***/ "../../node_modules/tersify/cjs/index.js":
|
|
438
571
|
/*!***********************************************!*\
|
|
439
|
-
!*** ../../node_modules/tersify/
|
|
572
|
+
!*** ../../node_modules/tersify/cjs/index.js ***!
|
|
440
573
|
\***********************************************/
|
|
441
574
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
442
575
|
|
|
443
576
|
"use strict";
|
|
444
577
|
|
|
445
|
-
function
|
|
446
|
-
|
|
447
|
-
}
|
|
578
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
579
|
+
if (k2 === undefined) k2 = k;
|
|
580
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
581
|
+
}) : (function(o, m, k, k2) {
|
|
582
|
+
if (k2 === undefined) k2 = k;
|
|
583
|
+
o[k2] = m[k];
|
|
584
|
+
}));
|
|
585
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
586
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
587
|
+
};
|
|
448
588
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
449
|
-
|
|
450
|
-
|
|
589
|
+
__exportStar(__webpack_require__(/*! ./tersible */ "../../node_modules/tersify/cjs/tersible.js"), exports);
|
|
590
|
+
__exportStar(__webpack_require__(/*! ./tersify */ "../../node_modules/tersify/cjs/tersify.js"), exports);
|
|
591
|
+
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/tersify/cjs/types.js"), exports);
|
|
451
592
|
//# sourceMappingURL=index.js.map
|
|
452
593
|
|
|
453
594
|
/***/ }),
|
|
454
595
|
|
|
455
|
-
/***/ "../../node_modules/tersify/
|
|
596
|
+
/***/ "../../node_modules/tersify/cjs/tersible.js":
|
|
456
597
|
/*!**************************************************!*\
|
|
457
|
-
!*** ../../node_modules/tersify/
|
|
598
|
+
!*** ../../node_modules/tersify/cjs/tersible.js ***!
|
|
458
599
|
\**************************************************/
|
|
459
600
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
460
601
|
|
|
@@ -464,17 +605,20 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
464
605
|
var extendStatics = function (d, b) {
|
|
465
606
|
extendStatics = Object.setPrototypeOf ||
|
|
466
607
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
467
|
-
function (d, b) { for (var p in b) if (
|
|
608
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
468
609
|
return extendStatics(d, b);
|
|
469
610
|
};
|
|
470
611
|
return function (d, b) {
|
|
612
|
+
if (typeof b !== "function" && b !== null)
|
|
613
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
471
614
|
extendStatics(d, b);
|
|
472
615
|
function __() { this.constructor = d; }
|
|
473
616
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
474
617
|
};
|
|
475
618
|
})();
|
|
476
619
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
477
|
-
|
|
620
|
+
exports.tersible = exports.Tersiblized = void 0;
|
|
621
|
+
var tersify_1 = __webpack_require__(/*! ./tersify */ "../../node_modules/tersify/cjs/tersify.js");
|
|
478
622
|
/**
|
|
479
623
|
* Create a Tersible mixin class
|
|
480
624
|
* NOTE: `this` in `tersify` is not typed.
|
|
@@ -495,9 +639,14 @@ function Tersiblized(Base, tersify) {
|
|
|
495
639
|
}
|
|
496
640
|
return _super.apply(this, args) || this;
|
|
497
641
|
}
|
|
498
|
-
class_1.prototype
|
|
499
|
-
|
|
500
|
-
|
|
642
|
+
Object.defineProperty(class_1.prototype, "tersify", {
|
|
643
|
+
enumerable: false,
|
|
644
|
+
configurable: true,
|
|
645
|
+
writable: true,
|
|
646
|
+
value: function (options) {
|
|
647
|
+
return tersify.call(this, options);
|
|
648
|
+
}
|
|
649
|
+
});
|
|
501
650
|
return class_1;
|
|
502
651
|
}(Base));
|
|
503
652
|
}
|
|
@@ -527,9 +676,9 @@ exports.tersible = tersible;
|
|
|
527
676
|
|
|
528
677
|
/***/ }),
|
|
529
678
|
|
|
530
|
-
/***/ "../../node_modules/tersify/
|
|
679
|
+
/***/ "../../node_modules/tersify/cjs/tersify.js":
|
|
531
680
|
/*!*************************************************!*\
|
|
532
|
-
!*** ../../node_modules/tersify/
|
|
681
|
+
!*** ../../node_modules/tersify/cjs/tersify.js ***!
|
|
533
682
|
\*************************************************/
|
|
534
683
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
535
684
|
|
|
@@ -546,29 +695,32 @@ var __assign = (this && this.__assign) || function () {
|
|
|
546
695
|
};
|
|
547
696
|
return __assign.apply(this, arguments);
|
|
548
697
|
};
|
|
549
|
-
var
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
698
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
699
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
700
|
+
if (ar || !(i in from)) {
|
|
701
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
702
|
+
ar[i] = from[i];
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
555
706
|
};
|
|
556
707
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
557
708
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
558
709
|
};
|
|
559
710
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
560
|
-
|
|
711
|
+
exports.tersify = exports.defaultTersify = void 0;
|
|
712
|
+
var is_buffer_1 = __importDefault(__webpack_require__(/*! is-buffer */ "../../node_modules/is-buffer/index.js"));
|
|
561
713
|
var unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/unpartial/lib/index.js");
|
|
562
|
-
var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/tersify/
|
|
563
|
-
var hasTersifyFn_1 = __webpack_require__(/*! ./hasTersifyFn */ "../../node_modules/tersify/
|
|
564
|
-
var tersifyFunction_1 = __webpack_require__(/*! ./tersifyFunction */ "../../node_modules/tersify/
|
|
565
|
-
var trim_1 = __webpack_require__(/*! ./trim */ "../../node_modules/tersify/
|
|
714
|
+
var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/tersify/cjs/constants.browser.js");
|
|
715
|
+
var hasTersifyFn_1 = __webpack_require__(/*! ./hasTersifyFn */ "../../node_modules/tersify/cjs/hasTersifyFn.js");
|
|
716
|
+
var tersifyFunction_1 = __webpack_require__(/*! ./tersifyFunction */ "../../node_modules/tersify/cjs/tersifyFunction.browser.js");
|
|
717
|
+
var trim_1 = __webpack_require__(/*! ./trim */ "../../node_modules/tersify/cjs/trim.js");
|
|
566
718
|
function defaultTersify(options) {
|
|
567
719
|
return tersify(this, options);
|
|
568
720
|
}
|
|
569
721
|
exports.defaultTersify = defaultTersify;
|
|
570
722
|
function tersify(obj, options) {
|
|
571
|
-
var context = unpartial_1.required(constants_1.defaultOptions, options, { path: [], references: [] });
|
|
723
|
+
var context = (0, unpartial_1.required)(constants_1.defaultOptions, options, { path: [], references: [] });
|
|
572
724
|
return tersifyValue(context, obj, context.maxLength);
|
|
573
725
|
}
|
|
574
726
|
exports.tersify = tersify;
|
|
@@ -577,7 +729,7 @@ function tersifyValue(context, value, length) {
|
|
|
577
729
|
var func = tersifyFactory[valueType];
|
|
578
730
|
// istanbul ignore next
|
|
579
731
|
if (!func)
|
|
580
|
-
throw new Error("Can't find fn for "
|
|
732
|
+
throw new Error("Can't find fn for ".concat(JSON.stringify(value)));
|
|
581
733
|
return func(context, value, length);
|
|
582
734
|
}
|
|
583
735
|
function getType(value) {
|
|
@@ -591,7 +743,7 @@ function getType(value) {
|
|
|
591
743
|
return 'Array';
|
|
592
744
|
if (value instanceof Error)
|
|
593
745
|
return 'Error';
|
|
594
|
-
if (is_buffer_1.default(value))
|
|
746
|
+
if ((0, is_buffer_1.default)(value))
|
|
595
747
|
return 'Buffer';
|
|
596
748
|
var type = typeof value;
|
|
597
749
|
if (type === 'object' && Object.getPrototypeOf(value) !== Object.prototype)
|
|
@@ -616,45 +768,45 @@ var tersifyFactory = {
|
|
|
616
768
|
'Error': tersifyError
|
|
617
769
|
};
|
|
618
770
|
function tersifyLiteral(context, node, length) {
|
|
619
|
-
return trim_1.trim(context, String(node), length);
|
|
771
|
+
return (0, trim_1.trim)(context, String(node), length);
|
|
620
772
|
}
|
|
621
773
|
function tersifyDate(context, node, length) {
|
|
622
|
-
return trim_1.trim(context, node.toISOString(), length);
|
|
774
|
+
return (0, trim_1.trim)(context, node.toISOString(), length);
|
|
623
775
|
}
|
|
624
776
|
function tersifyRegExp(context, node, length) {
|
|
625
|
-
return trim_1.trim(context, String(node), length);
|
|
777
|
+
return (0, trim_1.trim)(context, String(node), length);
|
|
626
778
|
}
|
|
627
779
|
function tersifyString(context, value, length) {
|
|
628
|
-
return trim_1.trim(context, "'"
|
|
780
|
+
return (0, trim_1.trim)(context, "'".concat(value, "'"), length);
|
|
629
781
|
}
|
|
630
782
|
function tersifySymbol(context, node, length) {
|
|
631
783
|
if (context.raw)
|
|
632
784
|
return node.toString();
|
|
633
|
-
return trim_1.trim(context, node.toString().replace('Symbol(', 'Sym('), length);
|
|
785
|
+
return (0, trim_1.trim)(context, node.toString().replace('Symbol(', 'Sym('), length);
|
|
634
786
|
}
|
|
635
787
|
function tersifyBigint(context, value, length) {
|
|
636
|
-
return trim_1.trim(context, String(value) + 'n', length);
|
|
788
|
+
return (0, trim_1.trim)(context, String(value) + 'n', length);
|
|
637
789
|
}
|
|
638
790
|
function tersifyError(context, node, length) {
|
|
639
791
|
var errorName = node.constructor.name;
|
|
640
792
|
// 7 = length of `Error()`
|
|
641
|
-
var trimmedMsg = trim_1.trim(context, "'"
|
|
793
|
+
var trimmedMsg = (0, trim_1.trim)(context, "'".concat(node.message, "'"), length - 7);
|
|
642
794
|
if (!node.message)
|
|
643
|
-
return trim_1.trim(context, errorName
|
|
795
|
+
return (0, trim_1.trim)(context, "".concat(errorName, "()"), length);
|
|
644
796
|
if (trimmedMsg.length === 0)
|
|
645
|
-
return trim_1.trim(context, errorName
|
|
646
|
-
return trim_1.trim(context, errorName
|
|
797
|
+
return (0, trim_1.trim)(context, "".concat(errorName, "( )"), length);
|
|
798
|
+
return (0, trim_1.trim)(context, "".concat(errorName, "(").concat(trimmedMsg, ")"), length);
|
|
647
799
|
}
|
|
648
800
|
function tersifyBuffer(context, node, length) {
|
|
649
|
-
return trim_1.trim(context, node.inspect(), length);
|
|
801
|
+
return (0, trim_1.trim)(context, node.inspect(), length);
|
|
650
802
|
}
|
|
651
803
|
function tersifyArray(context, value, length) {
|
|
652
804
|
var ref = context.references.find(function (r) { return r.value === value; });
|
|
653
805
|
if (ref) {
|
|
654
|
-
return "ref("
|
|
806
|
+
return "ref(".concat(ref.path.join(', '), ")");
|
|
655
807
|
}
|
|
656
808
|
context.references.push({ value: value, path: context.path });
|
|
657
|
-
if (!context.raw && hasTersifyFn_1.hasTersifyFn(value) && value.tersify !== defaultTersify) {
|
|
809
|
+
if (!context.raw && (0, hasTersifyFn_1.hasTersifyFn)(value) && value.tersify !== defaultTersify) {
|
|
658
810
|
return value.tersify({ maxLength: length });
|
|
659
811
|
}
|
|
660
812
|
if (value.length === 0)
|
|
@@ -663,7 +815,7 @@ function tersifyArray(context, value, length) {
|
|
|
663
815
|
var entriesLen = 0;
|
|
664
816
|
var commaAndSpaceLen = 2;
|
|
665
817
|
var entries = value.reduce(function (entries, v, i) {
|
|
666
|
-
var path =
|
|
818
|
+
var path = __spreadArray(__spreadArray([], context.path, true), [i], false);
|
|
667
819
|
var str = tersifyValue(__assign(__assign({}, context), { path: path }), v, length - entriesLen);
|
|
668
820
|
entriesLen += str.length;
|
|
669
821
|
if (i !== value.length - 1)
|
|
@@ -671,18 +823,18 @@ function tersifyArray(context, value, length) {
|
|
|
671
823
|
entries.push(str);
|
|
672
824
|
return entries;
|
|
673
825
|
}, []);
|
|
674
|
-
var content = trim_1.trim(context, entries.join(', '), length - bracketLen);
|
|
826
|
+
var content = (0, trim_1.trim)(context, entries.join(', '), length - bracketLen);
|
|
675
827
|
if (content.length === 0)
|
|
676
|
-
return trim_1.trim(context, "[ ]", length);
|
|
677
|
-
return "["
|
|
828
|
+
return (0, trim_1.trim)(context, "[ ]", length);
|
|
829
|
+
return "[".concat(content, "]");
|
|
678
830
|
}
|
|
679
831
|
function tersifyObject(context, value, length) {
|
|
680
832
|
var ref = context.references.find(function (r) { return r.value === value; });
|
|
681
833
|
if (ref) {
|
|
682
|
-
return "ref("
|
|
834
|
+
return "ref(".concat(ref.path.join(', '), ")");
|
|
683
835
|
}
|
|
684
836
|
context.references.push({ value: value, path: context.path });
|
|
685
|
-
if (!context.raw && hasTersifyFn_1.hasTersifyFn(value) && value.tersify !== defaultTersify) {
|
|
837
|
+
if (!context.raw && (0, hasTersifyFn_1.hasTersifyFn)(value) && value.tersify !== defaultTersify) {
|
|
686
838
|
return value.tersify({ maxLength: length });
|
|
687
839
|
}
|
|
688
840
|
var bracketLen = 4;
|
|
@@ -699,19 +851,19 @@ function tersifyObject(context, value, length) {
|
|
|
699
851
|
}, []);
|
|
700
852
|
var hasSkippedProps = keys.length > props.length;
|
|
701
853
|
var content = hasSkippedProps ? props.join(', ') + ' ' : props.join(', ');
|
|
702
|
-
var trimmedContent = trim_1.trim(context, content, length - bracketLen);
|
|
854
|
+
var trimmedContent = (0, trim_1.trim)(context, content, length - bracketLen);
|
|
703
855
|
return keys.length === 0 ? '{}' :
|
|
704
856
|
trimmedContent.length === 0 ?
|
|
705
|
-
trim_1.trim(context, "{ }", length) :
|
|
706
|
-
"{ "
|
|
857
|
+
(0, trim_1.trim)(context, "{ }", length) :
|
|
858
|
+
"{ ".concat(trimmedContent, " }");
|
|
707
859
|
}
|
|
708
860
|
function tersifyInstance(context, value, length) {
|
|
709
861
|
var ref = context.references.find(function (r) { return r.value === value; });
|
|
710
862
|
if (ref) {
|
|
711
|
-
return "ref("
|
|
863
|
+
return "ref(".concat(ref.path.join(', '), ")");
|
|
712
864
|
}
|
|
713
865
|
context.references.push({ value: value, path: context.path });
|
|
714
|
-
if (!context.raw && hasTersifyFn_1.hasTersifyFn(value) && value.tersify !== defaultTersify) {
|
|
866
|
+
if (!context.raw && (0, hasTersifyFn_1.hasTersifyFn)(value) && value.tersify !== defaultTersify) {
|
|
715
867
|
return value.tersify({ maxLength: length });
|
|
716
868
|
}
|
|
717
869
|
if (length <= 4)
|
|
@@ -729,7 +881,7 @@ function tersifyInstance(context, value, length) {
|
|
|
729
881
|
var _a = length < (name.length + spaceLen + bracketLen) ?
|
|
730
882
|
[length - spaceLen - bracketLen, bracketLen] :
|
|
731
883
|
[name.length, length - name.length - spaceLen], nameLength = _a[0], valueLength = _a[1];
|
|
732
|
-
var nameStr = trim_1.trim(context, name, nameLength);
|
|
884
|
+
var nameStr = (0, trim_1.trim)(context, name, nameLength);
|
|
733
885
|
var remaining = valueLength;
|
|
734
886
|
var keys = Object.keys(value);
|
|
735
887
|
var props = keys.reduce(function (p, k, i) {
|
|
@@ -743,16 +895,16 @@ function tersifyInstance(context, value, length) {
|
|
|
743
895
|
}, []);
|
|
744
896
|
var hasSkippedProps = keys.length > props.length;
|
|
745
897
|
var content = hasSkippedProps ? props.join(', ') + ' ' : props.join(', ');
|
|
746
|
-
var trimmedContent = trim_1.trim(context, content, valueLength - bracketLen - 2);
|
|
747
|
-
return keys.length === 0 ? nameStr
|
|
898
|
+
var trimmedContent = (0, trim_1.trim)(context, content, valueLength - bracketLen - 2);
|
|
899
|
+
return keys.length === 0 ? "".concat(nameStr, " {}") :
|
|
748
900
|
trimmedContent.length === 0 ?
|
|
749
|
-
trim_1.trim(context, nameStr
|
|
750
|
-
nameStr
|
|
901
|
+
(0, trim_1.trim)(context, "".concat(nameStr, " { }"), length) :
|
|
902
|
+
"".concat(nameStr, " { ").concat(trimmedContent, " }");
|
|
751
903
|
}
|
|
752
904
|
function getPropStr(context, bag, key, length, isLastKey) {
|
|
753
905
|
var commaAndSpaceLen = isLastKey ? 0 : 2;
|
|
754
906
|
var colonAndSpaceLen = 2;
|
|
755
|
-
var path =
|
|
907
|
+
var path = __spreadArray(__spreadArray([], context.path, true), [key], false);
|
|
756
908
|
var d = Object.getOwnPropertyDescriptor(bag, key);
|
|
757
909
|
var accessor = [];
|
|
758
910
|
if (d.get)
|
|
@@ -760,70 +912,72 @@ function getPropStr(context, bag, key, length, isLastKey) {
|
|
|
760
912
|
if (d.set)
|
|
761
913
|
accessor.push('Set');
|
|
762
914
|
if (accessor.length > 0) {
|
|
763
|
-
return getPropKey(key)
|
|
915
|
+
return "".concat(getPropKey(key), ": [").concat(accessor.join('/'), "]");
|
|
764
916
|
}
|
|
765
917
|
var value = bag[key];
|
|
766
918
|
if (typeof value === 'function') {
|
|
767
919
|
var fnLen = 2;
|
|
768
|
-
if ((/^(.*)
|
|
920
|
+
if ((/^(.*)\s?=>\s?/.test(value.toString()))) {
|
|
769
921
|
var propValue = tersifyValue(__assign(__assign({}, context), { path: path }), value, length - key.length - commaAndSpaceLen - colonAndSpaceLen);
|
|
770
|
-
return getPropKey(key)
|
|
922
|
+
return "".concat(getPropKey(key), ": ").concat(propValue);
|
|
771
923
|
}
|
|
772
924
|
else {
|
|
773
925
|
var propValue = tersifyValue(__assign(__assign({}, context), { path: path }), value, length - key.length - commaAndSpaceLen + fnLen);
|
|
774
926
|
var asyncToken = /^async fn/.test(propValue) ? 'async ' : '';
|
|
775
927
|
var generatorToken = /^(async )?fn\*/.test(propValue) ? '*' : '';
|
|
776
|
-
return ""
|
|
928
|
+
return "".concat(asyncToken).concat(generatorToken).concat(getPropKey(key)).concat(propValue.slice(propValue.indexOf('(')));
|
|
777
929
|
}
|
|
778
930
|
}
|
|
779
931
|
else {
|
|
780
932
|
// console.log(remaining, k.length, colonAndSpaceLen, commaAndSpaceLen, remaining - k.length - colonAndSpaceLen - commaAndSpaceLen)
|
|
781
933
|
var propValue = tersifyValue(__assign(__assign({}, context), { path: path, noTrim: true }), value, length - key.length - colonAndSpaceLen - commaAndSpaceLen);
|
|
782
|
-
return getPropKey(key)
|
|
934
|
+
return "".concat(getPropKey(key), ": ").concat(propValue);
|
|
783
935
|
}
|
|
784
936
|
}
|
|
785
937
|
function getPropKey(key) {
|
|
786
|
-
return key.indexOf('-') >= 0 ? "'"
|
|
938
|
+
return key.indexOf('-') >= 0 ? "'".concat(key, "'") : key;
|
|
787
939
|
}
|
|
788
940
|
//# sourceMappingURL=tersify.js.map
|
|
789
941
|
|
|
790
942
|
/***/ }),
|
|
791
943
|
|
|
792
|
-
/***/ "../../node_modules/tersify/
|
|
944
|
+
/***/ "../../node_modules/tersify/cjs/tersifyFunction.browser.js":
|
|
793
945
|
/*!*****************************************************************!*\
|
|
794
|
-
!*** ../../node_modules/tersify/
|
|
946
|
+
!*** ../../node_modules/tersify/cjs/tersifyFunction.browser.js ***!
|
|
795
947
|
\*****************************************************************/
|
|
796
948
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
797
949
|
|
|
798
950
|
"use strict";
|
|
799
951
|
|
|
800
952
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
801
|
-
|
|
802
|
-
var
|
|
803
|
-
var
|
|
953
|
+
exports.tersifyFunction = void 0;
|
|
954
|
+
var tersifyFunctionByString_1 = __webpack_require__(/*! ./tersifyFunctionByString */ "../../node_modules/tersify/cjs/tersifyFunctionByString.js");
|
|
955
|
+
var hasTersifyFn_1 = __webpack_require__(/*! ./hasTersifyFn */ "../../node_modules/tersify/cjs/hasTersifyFn.js");
|
|
956
|
+
var tersify_1 = __webpack_require__(/*! ./tersify */ "../../node_modules/tersify/cjs/tersify.js");
|
|
804
957
|
// istanbul ignore next
|
|
805
958
|
function tersifyFunction(context, fn, _length) {
|
|
806
|
-
if (!context.raw && hasTersifyFn_1.hasTersifyFn(fn) && fn.tersify !== tersify_1.defaultTersify) {
|
|
959
|
+
if (!context.raw && (0, hasTersifyFn_1.hasTersifyFn)(fn) && fn.tersify !== tersify_1.defaultTersify) {
|
|
807
960
|
return fn.tersify({ maxLength: context.maxLength, raw: context.raw });
|
|
808
961
|
}
|
|
809
|
-
return tersifyFunctionByString_1.tersifyFunctionByString(fn, context);
|
|
962
|
+
return (0, tersifyFunctionByString_1.tersifyFunctionByString)(fn, context);
|
|
810
963
|
}
|
|
811
964
|
exports.tersifyFunction = tersifyFunction;
|
|
812
965
|
//# sourceMappingURL=tersifyFunction.browser.js.map
|
|
813
966
|
|
|
814
967
|
/***/ }),
|
|
815
968
|
|
|
816
|
-
/***/ "../../node_modules/tersify/
|
|
969
|
+
/***/ "../../node_modules/tersify/cjs/tersifyFunctionByString.js":
|
|
817
970
|
/*!*****************************************************************!*\
|
|
818
|
-
!*** ../../node_modules/tersify/
|
|
971
|
+
!*** ../../node_modules/tersify/cjs/tersifyFunctionByString.js ***!
|
|
819
972
|
\*****************************************************************/
|
|
820
973
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
821
974
|
|
|
822
975
|
"use strict";
|
|
823
976
|
|
|
824
977
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
825
|
-
|
|
826
|
-
var
|
|
978
|
+
exports.tersifyFunctionByString = void 0;
|
|
979
|
+
var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/tersify/cjs/constants.browser.js");
|
|
980
|
+
var trim_1 = __webpack_require__(/*! ./trim */ "../../node_modules/tersify/cjs/trim.js");
|
|
827
981
|
function tersifyFunctionByString(fn, options) {
|
|
828
982
|
var str = fn.toString();
|
|
829
983
|
if (options.raw)
|
|
@@ -836,55 +990,53 @@ function tersifyFunctionByString(fn, options) {
|
|
|
836
990
|
exports.tersifyFunctionByString = tersifyFunctionByString;
|
|
837
991
|
function isFunc(str) {
|
|
838
992
|
var lines = str.split(constants_1.EOL);
|
|
839
|
-
return new RegExp('^(async\\s+)?function[(]?.*[)]?').test(lines[0]);
|
|
993
|
+
return new RegExp('^(async\\s+)?function\\s?[(]?.*[)]?').test(lines[0]);
|
|
840
994
|
}
|
|
841
995
|
function formatArrow(str, maxLength) {
|
|
842
996
|
var struct = getArrowStruct(str);
|
|
843
|
-
var template = ""
|
|
997
|
+
var template = "".concat(struct.async ? 'async ' : '').concat(struct.singleParam ? '%1' : "(".concat(struct.params ? '%1' : '', ")"), " => ").concat(struct.singleLineBody ? '%2' : "{".concat(struct.body ? ' %2 ' : '', "}"));
|
|
844
998
|
var baseLength = struct.params && struct.body ? template.length - 4 :
|
|
845
999
|
struct.params || struct.body ? template.length - 2 : template.length;
|
|
846
|
-
struct.params = trim_1.trim({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
|
|
847
|
-
struct.body = trim_1.trim({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
|
|
848
|
-
return trim_1.trim({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
|
|
1000
|
+
struct.params = (0, trim_1.trim)({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
|
|
1001
|
+
struct.body = (0, trim_1.trim)({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
|
|
1002
|
+
return (0, trim_1.trim)({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
|
|
849
1003
|
}
|
|
850
1004
|
function getArrowStruct(str) {
|
|
851
1005
|
str = str.trim();
|
|
852
1006
|
var isAsync = str.startsWith('async ');
|
|
853
1007
|
if (isAsync)
|
|
854
1008
|
str = str.slice(5).trim();
|
|
855
|
-
var
|
|
856
|
-
var
|
|
857
|
-
|
|
858
|
-
var
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
var isSingle = isSingleLineBody(str);
|
|
862
|
-
var body = removeLineBreaks(isSingle ? str : getEnclosedBody(str)).trim();
|
|
1009
|
+
var arrowIndex = str.indexOf('=>');
|
|
1010
|
+
var paramRaw = str.slice(0, arrowIndex).trim();
|
|
1011
|
+
var bodyRaw = str.slice(arrowIndex + 2).trim();
|
|
1012
|
+
var params = getParams(paramRaw.startsWith('(') ? paramRaw : "(".concat(paramRaw, ")"));
|
|
1013
|
+
var isSingle = isSingleLineBody(bodyRaw);
|
|
1014
|
+
var body = removeLineBreaks(isSingle ? bodyRaw : getEnclosedBody(bodyRaw)).trim();
|
|
863
1015
|
if (!isSingle && body.startsWith('return ') && body.endsWith(';')) {
|
|
864
1016
|
isSingle = true;
|
|
865
1017
|
body = body.slice(7, -1);
|
|
866
1018
|
if (body.startsWith('{')) {
|
|
867
|
-
body = "("
|
|
1019
|
+
body = "(".concat(body, ")");
|
|
868
1020
|
}
|
|
869
1021
|
}
|
|
870
1022
|
return {
|
|
871
1023
|
async: isAsync,
|
|
872
1024
|
generator: false,
|
|
873
|
-
name:
|
|
874
|
-
singleParam:
|
|
875
|
-
params:
|
|
1025
|
+
name: '',
|
|
1026
|
+
singleParam: params && params.indexOf(',') === -1,
|
|
1027
|
+
params: params,
|
|
876
1028
|
singleLineBody: isSingle,
|
|
877
1029
|
body: body
|
|
878
1030
|
};
|
|
879
1031
|
}
|
|
880
1032
|
function formatFn(str, maxLength) {
|
|
881
1033
|
var struct = getFuncStruct(str);
|
|
882
|
-
var template = (struct.async ? 'async ' : ''
|
|
1034
|
+
var template = "".concat(struct.async ? 'async ' : '', "fn").concat(struct.generator ? '*' : '').concat(struct.name ? ' ' + struct.name : '', "(").concat(struct.params ? '%1' : '', ") {").concat(struct.body ? ' %2 ' : '', "}");
|
|
883
1035
|
var baseLength = struct.params && struct.body ? template.length - 4 :
|
|
884
1036
|
struct.params || struct.body ? template.length - 2 : template.length;
|
|
885
|
-
struct.params = trim_1.trim({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
|
|
886
|
-
struct.body = trim_1.trim({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
|
|
887
|
-
return trim_1.trim({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
|
|
1037
|
+
struct.params = (0, trim_1.trim)({ raw: false, noTrim: false }, struct.params, Math.max(3, maxLength - baseLength - struct.body.length));
|
|
1038
|
+
struct.body = (0, trim_1.trim)({ raw: false, noTrim: false }, struct.body, Math.max(3, maxLength - baseLength - struct.params.length));
|
|
1039
|
+
return (0, trim_1.trim)({ raw: false, noTrim: false }, applyTemplate(template, struct), maxLength);
|
|
888
1040
|
}
|
|
889
1041
|
function getFuncStruct(str) {
|
|
890
1042
|
str = str.trim();
|
|
@@ -951,7 +1103,7 @@ function getEnclosedBody(str) {
|
|
|
951
1103
|
return str;
|
|
952
1104
|
}
|
|
953
1105
|
function removeLineBreaks(value) {
|
|
954
|
-
return value.split('\n').map(function (x) { return x.trim(); }).join(' ');
|
|
1106
|
+
return value.split('\n').map(function (x) { return x.trim(); }).filter(function (x) { return !!x; }).join(' ');
|
|
955
1107
|
}
|
|
956
1108
|
function applyTemplate(template, struct) {
|
|
957
1109
|
if (struct.params) {
|
|
@@ -966,15 +1118,16 @@ function applyTemplate(template, struct) {
|
|
|
966
1118
|
|
|
967
1119
|
/***/ }),
|
|
968
1120
|
|
|
969
|
-
/***/ "../../node_modules/tersify/
|
|
1121
|
+
/***/ "../../node_modules/tersify/cjs/trim.js":
|
|
970
1122
|
/*!**********************************************!*\
|
|
971
|
-
!*** ../../node_modules/tersify/
|
|
1123
|
+
!*** ../../node_modules/tersify/cjs/trim.js ***!
|
|
972
1124
|
\**********************************************/
|
|
973
1125
|
/***/ (function(__unused_webpack_module, exports) {
|
|
974
1126
|
|
|
975
1127
|
"use strict";
|
|
976
1128
|
|
|
977
1129
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1130
|
+
exports.trim = void 0;
|
|
978
1131
|
function trim(_a, value, length) {
|
|
979
1132
|
var raw = _a.raw, noTrim = _a.noTrim;
|
|
980
1133
|
if (noTrim || raw || value.length <= length)
|
|
@@ -990,24 +1143,16 @@ exports.trim = trim;
|
|
|
990
1143
|
|
|
991
1144
|
/***/ }),
|
|
992
1145
|
|
|
993
|
-
/***/ "../../node_modules/tersify/
|
|
994
|
-
|
|
995
|
-
!*** ../../node_modules/tersify/
|
|
996
|
-
|
|
997
|
-
/***/ (function(
|
|
998
|
-
|
|
999
|
-
/*!
|
|
1000
|
-
* Determine if an object is a Buffer
|
|
1001
|
-
*
|
|
1002
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
1003
|
-
* @license MIT
|
|
1004
|
-
*/
|
|
1146
|
+
/***/ "../../node_modules/tersify/cjs/types.js":
|
|
1147
|
+
/*!***********************************************!*\
|
|
1148
|
+
!*** ../../node_modules/tersify/cjs/types.js ***!
|
|
1149
|
+
\***********************************************/
|
|
1150
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
1005
1151
|
|
|
1006
|
-
|
|
1007
|
-
return obj != null && obj.constructor != null &&
|
|
1008
|
-
typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
1009
|
-
}
|
|
1152
|
+
"use strict";
|
|
1010
1153
|
|
|
1154
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1155
|
+
//# sourceMappingURL=types.js.map
|
|
1011
1156
|
|
|
1012
1157
|
/***/ }),
|
|
1013
1158
|
|
|
@@ -1021,15 +1166,15 @@ module.exports = function isBuffer (obj) {
|
|
|
1021
1166
|
|
|
1022
1167
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1023
1168
|
exports.captureLogs = void 0;
|
|
1169
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/cjs/index.js");
|
|
1024
1170
|
var memory_1 = __webpack_require__(/*! ./memory */ "./src/memory/index.ts");
|
|
1025
1171
|
var store_1 = __webpack_require__(/*! ./store */ "./src/store.ts");
|
|
1026
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/lib/index.js");
|
|
1027
1172
|
function captureLogs(logger, funcBlock) {
|
|
1028
|
-
var reporter = memory_1.createMemoryLogReporter();
|
|
1173
|
+
var reporter = (0, memory_1.createMemoryLogReporter)();
|
|
1029
1174
|
addRedirect(logger.id, reporter);
|
|
1030
1175
|
try {
|
|
1031
1176
|
var result = funcBlock();
|
|
1032
|
-
if (type_plus_1.isPromise(result)) {
|
|
1177
|
+
if ((0, type_plus_1.isPromise)(result)) {
|
|
1033
1178
|
return result.then(function (r) { return [r, reporter.logs]; })
|
|
1034
1179
|
.finally(function () { return removeRedirect(logger.id, reporter); });
|
|
1035
1180
|
}
|
|
@@ -1075,7 +1220,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
1075
1220
|
};
|
|
1076
1221
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1077
1222
|
exports.config = void 0;
|
|
1078
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/
|
|
1223
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/cjs/index.js");
|
|
1079
1224
|
var customLogLevel_1 = __webpack_require__(/*! ./customLogLevel */ "./src/customLogLevel.ts");
|
|
1080
1225
|
var errors_1 = __webpack_require__(/*! ./errors */ "./src/errors.ts");
|
|
1081
1226
|
var getDefaultReporter_1 = __webpack_require__(/*! ./getDefaultReporter */ "./src/getDefaultReporter.browser.ts");
|
|
@@ -1090,11 +1235,11 @@ exports.config = function config(options) {
|
|
|
1090
1235
|
store_1.store.value.logLevel = options.logLevel !== undefined ? options.logLevel : store_1.store.value.logLevel;
|
|
1091
1236
|
if (options.customLevels) {
|
|
1092
1237
|
var customLevels_1 = options.customLevels;
|
|
1093
|
-
type_plus_1.forEachKey(customLevels_1, function (k) {
|
|
1094
|
-
customLogLevel_1.addCustomLogLevel(k, customLevels_1[k]);
|
|
1238
|
+
(0, type_plus_1.forEachKey)(customLevels_1, function (k) {
|
|
1239
|
+
(0, customLogLevel_1.addCustomLogLevel)(k, customLevels_1[k]);
|
|
1095
1240
|
});
|
|
1096
1241
|
}
|
|
1097
|
-
store_1.store.value.reporters = options.reporters || [getDefaultReporter_1.getDefaultReporter()];
|
|
1242
|
+
store_1.store.value.reporters = options.reporters || [(0, getDefaultReporter_1.getDefaultReporter)()];
|
|
1098
1243
|
store_1.store.value.configured = true;
|
|
1099
1244
|
if (store_1.store.value.mode === 'production') {
|
|
1100
1245
|
store_1.store.freeze(__assign(__assign({}, store_1.store.value), { reporters: Object.freeze(store_1.store.value.reporters) }));
|
|
@@ -1128,8 +1273,8 @@ exports.configForTest = void 0;
|
|
|
1128
1273
|
var config_1 = __webpack_require__(/*! ./config */ "./src/config.ts");
|
|
1129
1274
|
var memory_1 = __webpack_require__(/*! ./memory */ "./src/memory/index.ts");
|
|
1130
1275
|
function configForTest(logLevel) {
|
|
1131
|
-
var reporter = memory_1.createMemoryLogReporter();
|
|
1132
|
-
config_1.config({
|
|
1276
|
+
var reporter = (0, memory_1.createMemoryLogReporter)();
|
|
1277
|
+
(0, config_1.config)({
|
|
1133
1278
|
reporters: [reporter],
|
|
1134
1279
|
mode: 'test',
|
|
1135
1280
|
logLevel: logLevel
|
|
@@ -1151,13 +1296,13 @@ exports.configForTest = configForTest;
|
|
|
1151
1296
|
|
|
1152
1297
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1153
1298
|
exports.createConsoleLogReporter = void 0;
|
|
1154
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/
|
|
1299
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/cjs/index.js");
|
|
1155
1300
|
var formatter_1 = __webpack_require__(/*! ../formatter */ "./src/formatter/index.ts");
|
|
1156
1301
|
var utils_1 = __webpack_require__(/*! ../utils */ "./src/utils.ts");
|
|
1157
1302
|
var polyfilledConsole_1 = __webpack_require__(/*! ./polyfilledConsole */ "./src/console/polyfilledConsole.ts");
|
|
1158
1303
|
var toConsoleMethod_1 = __webpack_require__(/*! ./toConsoleMethod */ "./src/console/toConsoleMethod.ts");
|
|
1159
1304
|
function createConsoleLogReporter(options) {
|
|
1160
|
-
var opts = type_plus_1.required({ id: 'console', formatter: formatter_1.plainLogFormatter }, options);
|
|
1305
|
+
var opts = (0, type_plus_1.required)({ id: 'console', formatter: formatter_1.plainLogFormatter }, options);
|
|
1161
1306
|
var id = opts.id;
|
|
1162
1307
|
var formatter = opts.formatter, filter = opts.filter;
|
|
1163
1308
|
return {
|
|
@@ -1167,14 +1312,14 @@ function createConsoleLogReporter(options) {
|
|
|
1167
1312
|
return formatter;
|
|
1168
1313
|
},
|
|
1169
1314
|
set formatter(value) {
|
|
1170
|
-
utils_1.assertLogModeIsNotProduction('set Reporter.formatter');
|
|
1315
|
+
(0, utils_1.assertLogModeIsNotProduction)('set Reporter.formatter');
|
|
1171
1316
|
formatter = value;
|
|
1172
1317
|
},
|
|
1173
1318
|
get filter() {
|
|
1174
1319
|
return filter;
|
|
1175
1320
|
},
|
|
1176
1321
|
set filter(value) {
|
|
1177
|
-
utils_1.assertLogModeIsNotProduction('set Reporter.filter');
|
|
1322
|
+
(0, utils_1.assertLogModeIsNotProduction)('set Reporter.filter');
|
|
1178
1323
|
filter = value;
|
|
1179
1324
|
},
|
|
1180
1325
|
console: polyfilledConsole_1.polyfilledConsole,
|
|
@@ -1183,7 +1328,7 @@ function createConsoleLogReporter(options) {
|
|
|
1183
1328
|
if (filter && !filter(entry))
|
|
1184
1329
|
return;
|
|
1185
1330
|
var values = formatter(entry);
|
|
1186
|
-
var method = toConsoleMethod_1.toConsoleMethod(entry.level);
|
|
1331
|
+
var method = (0, toConsoleMethod_1.toConsoleMethod)(entry.level);
|
|
1187
1332
|
(_a = this.console)[method].apply(_a, values);
|
|
1188
1333
|
}
|
|
1189
1334
|
};
|
|
@@ -1242,7 +1387,7 @@ function isConsoleDebugAvailable() {
|
|
|
1242
1387
|
if (!__webpack_require__.g.process)
|
|
1243
1388
|
return true;
|
|
1244
1389
|
var versionString = process.version.startsWith('v') ? process.version.slice(1) : process.version;
|
|
1245
|
-
return semverGt_1.semverGt(versionString, [9, 3, 0]);
|
|
1390
|
+
return (0, semverGt_1.semverGt)(versionString, [9, 3, 0]);
|
|
1246
1391
|
}
|
|
1247
1392
|
exports.isConsoleDebugAvailable = isConsoleDebugAvailable;
|
|
1248
1393
|
|
|
@@ -1269,7 +1414,7 @@ function buildPolyfillConsole() {
|
|
|
1269
1414
|
return {
|
|
1270
1415
|
// Node@9.3 or below has `console.debug = undefined` or it doesn't log
|
|
1271
1416
|
// Should use `console.log()` in those case.
|
|
1272
|
-
debug: (isConsoleDebugAvailable_1.isConsoleDebugAvailable() ? console.debug : console.log).bind(console),
|
|
1417
|
+
debug: ((0, isConsoleDebugAvailable_1.isConsoleDebugAvailable)() ? console.debug : console.log).bind(console),
|
|
1273
1418
|
// the `typeof` guards against IE where `console.log.apply()`
|
|
1274
1419
|
// results in error `Object doesn't support property or method 'apply'`
|
|
1275
1420
|
info: (typeof console.info === 'function' ? console.info : console.log).bind(console),
|
|
@@ -1279,7 +1424,7 @@ function buildPolyfillConsole() {
|
|
|
1279
1424
|
}
|
|
1280
1425
|
else {
|
|
1281
1426
|
return {
|
|
1282
|
-
debug: buildFn(isConsoleDebugAvailable_1.isConsoleDebugAvailable() ? 'debug' : 'log'),
|
|
1427
|
+
debug: buildFn((0, isConsoleDebugAvailable_1.isConsoleDebugAvailable)() ? 'debug' : 'log'),
|
|
1283
1428
|
info: buildFn(typeof console.info === 'function' ? 'info' : 'log'),
|
|
1284
1429
|
warn: buildFn(typeof console.warn === 'function' ? 'warn' : 'log'),
|
|
1285
1430
|
error: buildFn(typeof console.error === 'function' ? 'error' : 'log'),
|
|
@@ -1378,7 +1523,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1378
1523
|
|
|
1379
1524
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1380
1525
|
exports.getCustomLevels = exports.getCustomLevelName = exports.getCustomLevel = exports.clearCustomLogLevel = exports.addCustomLogLevel = void 0;
|
|
1381
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/
|
|
1526
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/cjs/index.js");
|
|
1382
1527
|
var store_1 = __webpack_require__(/*! ./store */ "./src/store.ts");
|
|
1383
1528
|
/**
|
|
1384
1529
|
* @param level the `logLevel` number.
|
|
@@ -1389,13 +1534,13 @@ function addCustomLogLevel(name, level) {
|
|
|
1389
1534
|
customLevels[name] = level;
|
|
1390
1535
|
customLevelsReverse[level] = name;
|
|
1391
1536
|
var loggerClosures = store_1.store.value.loggerClosures;
|
|
1392
|
-
type_plus_1.forEachKey(loggerClosures, function (id) { return loggerClosures[id].addMethod(name, level); });
|
|
1537
|
+
(0, type_plus_1.forEachKey)(loggerClosures, function (id) { return loggerClosures[id].addMethod(name, level); });
|
|
1393
1538
|
}
|
|
1394
1539
|
exports.addCustomLogLevel = addCustomLogLevel;
|
|
1395
1540
|
function clearCustomLogLevel() {
|
|
1396
1541
|
var _a = store_1.store.value, customLevels = _a.customLevels, customLevelsReverse = _a.customLevelsReverse;
|
|
1397
1542
|
// Don't replace the object would prevent reference divergence
|
|
1398
|
-
type_plus_1.forEachKey(customLevels, function (k) { return delete customLevels[k]; });
|
|
1543
|
+
(0, type_plus_1.forEachKey)(customLevels, function (k) { return delete customLevels[k]; });
|
|
1399
1544
|
customLevelsReverse.splice(0, customLevelsReverse.length);
|
|
1400
1545
|
}
|
|
1401
1546
|
exports.clearCustomLogLevel = clearCustomLogLevel;
|
|
@@ -1409,7 +1554,7 @@ function getCustomLevelName(level) {
|
|
|
1409
1554
|
exports.getCustomLevelName = getCustomLevelName;
|
|
1410
1555
|
function getCustomLevels() {
|
|
1411
1556
|
var customLevels = store_1.store.value.customLevels;
|
|
1412
|
-
return type_plus_1.mapKey(customLevels, function (name) { return ({ name: name, level: customLevels[name] }); });
|
|
1557
|
+
return (0, type_plus_1.mapKey)(customLevels, function (name) { return ({ name: name, level: customLevels[name] }); });
|
|
1413
1558
|
}
|
|
1414
1559
|
exports.getCustomLevels = getCustomLevels;
|
|
1415
1560
|
|
|
@@ -1439,22 +1584,13 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
1439
1584
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1440
1585
|
};
|
|
1441
1586
|
})();
|
|
1442
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
1443
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
1444
|
-
to[j] = from[i];
|
|
1445
|
-
return to;
|
|
1446
|
-
};
|
|
1447
1587
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1448
1588
|
exports.InvalidEnvVar = exports.ProhibitedDuringProduction = exports.InvalidId = exports.StandardLogError = void 0;
|
|
1449
|
-
var iso_error_1 = __webpack_require__(/*! iso-error */ "../../node_modules/iso-error/
|
|
1589
|
+
var iso_error_1 = __webpack_require__(/*! iso-error */ "../../node_modules/iso-error/cjs/index.js");
|
|
1450
1590
|
var StandardLogError = /** @class */ (function (_super) {
|
|
1451
1591
|
__extends(StandardLogError, _super);
|
|
1452
|
-
function StandardLogError(description) {
|
|
1453
|
-
|
|
1454
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1455
|
-
errors[_i - 1] = arguments[_i];
|
|
1456
|
-
}
|
|
1457
|
-
return _super.apply(this, __spreadArray(['standard-log', description], errors)) || this;
|
|
1592
|
+
function StandardLogError(description, options) {
|
|
1593
|
+
return _super.call(this, 'standard-log', description, options) || this;
|
|
1458
1594
|
}
|
|
1459
1595
|
return StandardLogError;
|
|
1460
1596
|
}(iso_error_1.ModuleError));
|
|
@@ -1462,7 +1598,7 @@ exports.StandardLogError = StandardLogError;
|
|
|
1462
1598
|
var InvalidId = /** @class */ (function (_super) {
|
|
1463
1599
|
__extends(InvalidId, _super);
|
|
1464
1600
|
function InvalidId(id) {
|
|
1465
|
-
var _this = _super.call(this, "logger id only supports alphanumeric, unicode characters, and [:_-.]. Received "
|
|
1601
|
+
var _this = _super.call(this, "logger id only supports alphanumeric, unicode characters, and [:_-.]. Received ".concat(id)) || this;
|
|
1466
1602
|
_this.id = id;
|
|
1467
1603
|
return _this;
|
|
1468
1604
|
}
|
|
@@ -1472,7 +1608,7 @@ exports.InvalidId = InvalidId;
|
|
|
1472
1608
|
var ProhibitedDuringProduction = /** @class */ (function (_super) {
|
|
1473
1609
|
__extends(ProhibitedDuringProduction, _super);
|
|
1474
1610
|
function ProhibitedDuringProduction(action) {
|
|
1475
|
-
var _this = _super.call(this, "Cannot perform "
|
|
1611
|
+
var _this = _super.call(this, "Cannot perform ".concat(action, " during production")) || this;
|
|
1476
1612
|
_this.action = action;
|
|
1477
1613
|
return _this;
|
|
1478
1614
|
}
|
|
@@ -1482,7 +1618,7 @@ exports.ProhibitedDuringProduction = ProhibitedDuringProduction;
|
|
|
1482
1618
|
var InvalidEnvVar = /** @class */ (function (_super) {
|
|
1483
1619
|
__extends(InvalidEnvVar, _super);
|
|
1484
1620
|
function InvalidEnvVar(name, value, possibleValues) {
|
|
1485
|
-
var _this = _super.call(this, name
|
|
1621
|
+
var _this = _super.call(this, "".concat(name, " contains invalid value '").concat(value, "'").concat(" valid values: [".concat(possibleValues.join(), "]"))) || this;
|
|
1486
1622
|
_this.name = name;
|
|
1487
1623
|
_this.value = value;
|
|
1488
1624
|
_this.possibleValues = possibleValues;
|
|
@@ -1519,7 +1655,7 @@ function createTimestampFormatter(format) {
|
|
|
1519
1655
|
var lastTick_1 = undefined;
|
|
1520
1656
|
return function (timestamp) {
|
|
1521
1657
|
var newTick = timestamp.getTime();
|
|
1522
|
-
var result = ms_1.default(lastTick_1 === undefined ? 0 : newTick - lastTick_1);
|
|
1658
|
+
var result = (0, ms_1.default)(lastTick_1 === undefined ? 0 : newTick - lastTick_1);
|
|
1523
1659
|
lastTick_1 = newTick;
|
|
1524
1660
|
return result;
|
|
1525
1661
|
};
|
|
@@ -1544,7 +1680,7 @@ exports.formatLogLevel = void 0;
|
|
|
1544
1680
|
var upper_case_1 = __webpack_require__(/*! upper-case */ "../../node_modules/upper-case/dist/index.js");
|
|
1545
1681
|
var logLevelFn_1 = __webpack_require__(/*! ../logLevelFn */ "./src/logLevelFn.ts");
|
|
1546
1682
|
function formatLogLevel(level) {
|
|
1547
|
-
return "("
|
|
1683
|
+
return "(".concat((0, upper_case_1.upperCase)((0, logLevelFn_1.toLogLevelName)(level)), ")");
|
|
1548
1684
|
}
|
|
1549
1685
|
exports.formatLogLevel = formatLogLevel;
|
|
1550
1686
|
|
|
@@ -1585,17 +1721,21 @@ __exportStar(__webpack_require__(/*! ./plainLogFormatter */ "./src/formatter/pla
|
|
|
1585
1721
|
|
|
1586
1722
|
"use strict";
|
|
1587
1723
|
|
|
1588
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
1589
|
-
for (var i = 0,
|
|
1590
|
-
|
|
1591
|
-
|
|
1724
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
1725
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1726
|
+
if (ar || !(i in from)) {
|
|
1727
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
1728
|
+
ar[i] = from[i];
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
1592
1732
|
};
|
|
1593
1733
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1594
1734
|
exports.plainLogFormatter = void 0;
|
|
1595
1735
|
var formatLogLevel_1 = __webpack_require__(/*! ./formatLogLevel */ "./src/formatter/formatLogLevel.ts");
|
|
1596
1736
|
function plainLogFormatter(_a) {
|
|
1597
1737
|
var id = _a.id, level = _a.level, args = _a.args, timestamp = _a.timestamp;
|
|
1598
|
-
return __spreadArray([timestamp.toISOString(), id, formatLogLevel_1.formatLogLevel(level)], args);
|
|
1738
|
+
return __spreadArray([timestamp.toISOString(), id, (0, formatLogLevel_1.formatLogLevel)(level)], args, true);
|
|
1599
1739
|
}
|
|
1600
1740
|
exports.plainLogFormatter = plainLogFormatter;
|
|
1601
1741
|
|
|
@@ -1619,7 +1759,7 @@ function getDefaultReporter() {
|
|
|
1619
1759
|
return StandardLogColor.createColorLogReporter();
|
|
1620
1760
|
}
|
|
1621
1761
|
catch (e) {
|
|
1622
|
-
return console_1.createConsoleLogReporter();
|
|
1762
|
+
return (0, console_1.createConsoleLogReporter)();
|
|
1623
1763
|
}
|
|
1624
1764
|
}
|
|
1625
1765
|
exports.getDefaultReporter = getDefaultReporter;
|
|
@@ -1654,10 +1794,14 @@ exports.getLogModeFromEnvironment = getLogModeFromEnvironment;
|
|
|
1654
1794
|
|
|
1655
1795
|
"use strict";
|
|
1656
1796
|
|
|
1657
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
1658
|
-
for (var i = 0,
|
|
1659
|
-
|
|
1660
|
-
|
|
1797
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
1798
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
1799
|
+
if (ar || !(i in from)) {
|
|
1800
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
1801
|
+
ar[i] = from[i];
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
1661
1805
|
};
|
|
1662
1806
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1663
1807
|
exports.getLogger = void 0;
|
|
@@ -1688,9 +1832,9 @@ function createLoggerClosure(id, _a) {
|
|
|
1688
1832
|
? function (id) { return writeTo.test(id); }
|
|
1689
1833
|
: typeof writeTo === 'function'
|
|
1690
1834
|
? writeTo
|
|
1691
|
-
: (logReporterInternal_1.addLogReporterInternal(writeTo), function (id) { return id === writeTo.id; });
|
|
1835
|
+
: ((0, logReporterInternal_1.addLogReporterInternal)(writeTo), function (id) { return id === writeTo.id; });
|
|
1692
1836
|
function write(entry) {
|
|
1693
|
-
writeToReporters_1.writeToReporters(entry, filter);
|
|
1837
|
+
(0, writeToReporters_1.writeToReporters)(entry, filter);
|
|
1694
1838
|
}
|
|
1695
1839
|
var logger = {
|
|
1696
1840
|
level: level,
|
|
@@ -1706,11 +1850,11 @@ function createLoggerClosure(id, _a) {
|
|
|
1706
1850
|
args[_i] = arguments[_i];
|
|
1707
1851
|
}
|
|
1708
1852
|
var level = logLevel_1.logLevels.debug;
|
|
1709
|
-
if (shouldLog_1.shouldLog(level, logger.level))
|
|
1853
|
+
if ((0, shouldLog_1.shouldLog)(level, logger.level))
|
|
1710
1854
|
write({
|
|
1711
1855
|
id: id,
|
|
1712
1856
|
level: level,
|
|
1713
|
-
args: __spreadArray([++counter], args),
|
|
1857
|
+
args: __spreadArray([++counter], args, true),
|
|
1714
1858
|
timestamp: new Date()
|
|
1715
1859
|
});
|
|
1716
1860
|
}; })(0)
|
|
@@ -1718,9 +1862,9 @@ function createLoggerClosure(id, _a) {
|
|
|
1718
1862
|
on: {
|
|
1719
1863
|
writable: false,
|
|
1720
1864
|
value: function (level, logFn) {
|
|
1721
|
-
var logLevel = typeof level === 'string' ? logLevelFn_1.toLogLevel(level) : level;
|
|
1722
|
-
if (shouldLog_1.shouldLog(logLevel, logger.level)) {
|
|
1723
|
-
var methodName = logLevelFn_1.toLogLevelName(logLevel);
|
|
1865
|
+
var logLevel = typeof level === 'string' ? (0, logLevelFn_1.toLogLevel)(level) : level;
|
|
1866
|
+
if ((0, shouldLog_1.shouldLog)(logLevel, logger.level)) {
|
|
1867
|
+
var methodName = (0, logLevelFn_1.toLogLevelName)(logLevel);
|
|
1724
1868
|
var bindedMethod = logger[methodName].bind(logger);
|
|
1725
1869
|
var result = logFn(bindedMethod);
|
|
1726
1870
|
if (result)
|
|
@@ -1738,14 +1882,14 @@ function createLoggerClosure(id, _a) {
|
|
|
1738
1882
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1739
1883
|
args[_i] = arguments[_i];
|
|
1740
1884
|
}
|
|
1741
|
-
if (shouldLog_1.shouldLog(level, logger.level))
|
|
1885
|
+
if ((0, shouldLog_1.shouldLog)(level, logger.level))
|
|
1742
1886
|
write({ id: id, level: level, args: args, timestamp: new Date() });
|
|
1743
1887
|
}
|
|
1744
1888
|
});
|
|
1745
1889
|
},
|
|
1746
1890
|
logger: logger
|
|
1747
1891
|
};
|
|
1748
|
-
logLevelFn_1.getAllLogLevels().forEach(function (_a) {
|
|
1892
|
+
(0, logLevelFn_1.getAllLogLevels)().forEach(function (_a) {
|
|
1749
1893
|
var name = _a.name, level = _a.level;
|
|
1750
1894
|
return loggerClosure.addMethod(name, level);
|
|
1751
1895
|
});
|
|
@@ -1765,7 +1909,7 @@ function createLoggerClosure(id, _a) {
|
|
|
1765
1909
|
|
|
1766
1910
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1767
1911
|
exports.getLoggers = void 0;
|
|
1768
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/
|
|
1912
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/cjs/index.js");
|
|
1769
1913
|
var store_1 = __webpack_require__(/*! ./store */ "./src/store.ts");
|
|
1770
1914
|
/**
|
|
1771
1915
|
* Get loggers based on RegExp.
|
|
@@ -1773,7 +1917,7 @@ var store_1 = __webpack_require__(/*! ./store */ "./src/store.ts");
|
|
|
1773
1917
|
*/
|
|
1774
1918
|
function getLoggers(filter) {
|
|
1775
1919
|
var loggerClosures = store_1.store.value.loggerClosures;
|
|
1776
|
-
return type_plus_1.filterKey(loggerClosures, function (id) { return filter.test(id); }).map(function (k) { return loggerClosures[k].logger; });
|
|
1920
|
+
return (0, type_plus_1.filterKey)(loggerClosures, function (id) { return filter.test(id); }).map(function (k) { return loggerClosures[k].logger; });
|
|
1777
1921
|
}
|
|
1778
1922
|
exports.getLoggers = getLoggers;
|
|
1779
1923
|
|
|
@@ -1897,7 +2041,7 @@ exports.logLevel = exports.logLevels;
|
|
|
1897
2041
|
|
|
1898
2042
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1899
2043
|
exports.getAllLogLevels = exports.toLogLevelName = exports.toLogLevel = exports.setLogLevels = exports.setLogLevel = exports.getLogLevel = void 0;
|
|
1900
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/
|
|
2044
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/cjs/index.js");
|
|
1901
2045
|
var customLogLevel_1 = __webpack_require__(/*! ./customLogLevel */ "./src/customLogLevel.ts");
|
|
1902
2046
|
var getLoggers_1 = __webpack_require__(/*! ./getLoggers */ "./src/getLoggers.ts");
|
|
1903
2047
|
var logLevel_1 = __webpack_require__(/*! ./logLevel */ "./src/logLevel.ts");
|
|
@@ -1923,18 +2067,18 @@ exports.setLogLevel = setLogLevel;
|
|
|
1923
2067
|
* This will override the local log level of the loggers.
|
|
1924
2068
|
*/
|
|
1925
2069
|
function setLogLevels(filter, level) {
|
|
1926
|
-
return getLoggers_1.getLoggers(filter).map(function (log) {
|
|
2070
|
+
return (0, getLoggers_1.getLoggers)(filter).map(function (log) {
|
|
1927
2071
|
log.level = level;
|
|
1928
2072
|
return log;
|
|
1929
2073
|
});
|
|
1930
2074
|
}
|
|
1931
2075
|
exports.setLogLevels = setLogLevels;
|
|
1932
2076
|
function toLogLevel(name) {
|
|
1933
|
-
return customLogLevel_1.getCustomLevel(name) || logLevel_1.logLevels[name.toLowerCase()];
|
|
2077
|
+
return (0, customLogLevel_1.getCustomLevel)(name) || logLevel_1.logLevels[name.toLowerCase()];
|
|
1934
2078
|
}
|
|
1935
2079
|
exports.toLogLevel = toLogLevel;
|
|
1936
2080
|
function toLogLevelName(level) {
|
|
1937
|
-
var custom = customLogLevel_1.getCustomLevelName(level);
|
|
2081
|
+
var custom = (0, customLogLevel_1.getCustomLevelName)(level);
|
|
1938
2082
|
if (custom)
|
|
1939
2083
|
return custom;
|
|
1940
2084
|
switch (true) {
|
|
@@ -1962,11 +2106,11 @@ function toLogLevelName(level) {
|
|
|
1962
2106
|
}
|
|
1963
2107
|
exports.toLogLevelName = toLogLevelName;
|
|
1964
2108
|
function getAllLogLevels() {
|
|
1965
|
-
return type_plus_1.reduceKey(logLevel_1.logLevels, function (result, name) {
|
|
2109
|
+
return (0, type_plus_1.reduceKey)(logLevel_1.logLevels, function (result, name) {
|
|
1966
2110
|
if (name !== 'none' && name !== 'all')
|
|
1967
2111
|
result.push({ name: name, level: logLevel_1.logLevels[name] });
|
|
1968
2112
|
return result;
|
|
1969
|
-
}, customLogLevel_1.getCustomLevels());
|
|
2113
|
+
}, (0, customLogLevel_1.getCustomLevels)());
|
|
1970
2114
|
}
|
|
1971
2115
|
exports.getAllLogLevels = getAllLogLevels;
|
|
1972
2116
|
|
|
@@ -1987,8 +2131,8 @@ var logReporterInternal_1 = __webpack_require__(/*! ./logReporterInternal */ "./
|
|
|
1987
2131
|
var store_1 = __webpack_require__(/*! ./store */ "./src/store.ts");
|
|
1988
2132
|
var utils_1 = __webpack_require__(/*! ./utils */ "./src/utils.ts");
|
|
1989
2133
|
function addLogReporter(reporter) {
|
|
1990
|
-
utils_1.assertLogModeIsNotProduction('addLogReporter');
|
|
1991
|
-
logReporterInternal_1.addLogReporterInternal(reporter);
|
|
2134
|
+
(0, utils_1.assertLogModeIsNotProduction)('addLogReporter');
|
|
2135
|
+
(0, logReporterInternal_1.addLogReporterInternal)(reporter);
|
|
1992
2136
|
}
|
|
1993
2137
|
exports.addLogReporter = addLogReporter;
|
|
1994
2138
|
function getLogReporter(id) {
|
|
@@ -2004,7 +2148,7 @@ function getConsoleReporter() {
|
|
|
2004
2148
|
}
|
|
2005
2149
|
exports.getConsoleReporter = getConsoleReporter;
|
|
2006
2150
|
function clearLogReporters() {
|
|
2007
|
-
utils_1.assertLogModeIsNotProduction('clearLogReporters');
|
|
2151
|
+
(0, utils_1.assertLogModeIsNotProduction)('clearLogReporters');
|
|
2008
2152
|
store_1.store.value.reporters.splice(0, store_1.store.value.reporters.length);
|
|
2009
2153
|
}
|
|
2010
2154
|
exports.clearLogReporters = clearLogReporters;
|
|
@@ -2026,7 +2170,7 @@ var logReporter_1 = __webpack_require__(/*! ./logReporter */ "./src/logReporter.
|
|
|
2026
2170
|
var store_1 = __webpack_require__(/*! ./store */ "./src/store.ts");
|
|
2027
2171
|
function addLogReporterInternal(reporter) {
|
|
2028
2172
|
if (reporter.isConsoleReporter) {
|
|
2029
|
-
var r = logReporter_1.getConsoleReporter();
|
|
2173
|
+
var r = (0, logReporter_1.getConsoleReporter)();
|
|
2030
2174
|
if (r && reporter.filter) {
|
|
2031
2175
|
var f_1 = r.filter;
|
|
2032
2176
|
var f2_1 = reporter.filter;
|
|
@@ -2054,8 +2198,8 @@ exports.addLogReporterInternal = addLogReporterInternal;
|
|
|
2054
2198
|
"use strict";
|
|
2055
2199
|
|
|
2056
2200
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2057
|
-
exports.createMemoryLogReporter = void 0;
|
|
2058
|
-
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/
|
|
2201
|
+
exports.createMemoryLogReporter = exports.toMessageWithLevel = void 0;
|
|
2202
|
+
var type_plus_1 = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/cjs/index.js");
|
|
2059
2203
|
var formatter_1 = __webpack_require__(/*! ../formatter */ "./src/formatter/index.ts");
|
|
2060
2204
|
var utils_1 = __webpack_require__(/*! ../utils */ "./src/utils.ts");
|
|
2061
2205
|
var toInspectStringForObject_1 = __webpack_require__(/*! ./toInspectStringForObject */ "./src/memory/toInspectStringForObject.ts");
|
|
@@ -2066,15 +2210,14 @@ function createGetLogMessage() {
|
|
|
2066
2210
|
.join('\n');
|
|
2067
2211
|
};
|
|
2068
2212
|
}
|
|
2069
|
-
function
|
|
2070
|
-
return
|
|
2071
|
-
return
|
|
2072
|
-
|
|
2073
|
-
.join('\n');
|
|
2074
|
-
};
|
|
2213
|
+
function toMessageWithLevel(logs) {
|
|
2214
|
+
return logs.map(toInspectStringForObject_1.toInspectLogEntry)
|
|
2215
|
+
.map(function (log) { return "".concat((0, formatter_1.formatLogLevel)(log.level), " ").concat(log.args.join(' ')); })
|
|
2216
|
+
.join('\n');
|
|
2075
2217
|
}
|
|
2218
|
+
exports.toMessageWithLevel = toMessageWithLevel;
|
|
2076
2219
|
function createMemoryLogReporter(options) {
|
|
2077
|
-
var opt = type_plus_1.required({ id: 'memory', formatter: function (e) { return e; } }, options);
|
|
2220
|
+
var opt = (0, type_plus_1.required)({ id: 'memory', formatter: function (e) { return e; } }, options);
|
|
2078
2221
|
var id = opt.id;
|
|
2079
2222
|
var formatter = opt.formatter, filter = opt.filter;
|
|
2080
2223
|
return {
|
|
@@ -2083,14 +2226,14 @@ function createMemoryLogReporter(options) {
|
|
|
2083
2226
|
return formatter;
|
|
2084
2227
|
},
|
|
2085
2228
|
set formatter(value) {
|
|
2086
|
-
utils_1.assertLogModeIsNotProduction('set Reporter.formatter');
|
|
2229
|
+
(0, utils_1.assertLogModeIsNotProduction)('set Reporter.formatter');
|
|
2087
2230
|
formatter = value;
|
|
2088
2231
|
},
|
|
2089
2232
|
get filter() {
|
|
2090
2233
|
return filter;
|
|
2091
2234
|
},
|
|
2092
2235
|
set filter(value) {
|
|
2093
|
-
utils_1.assertLogModeIsNotProduction('set Reporter.filter');
|
|
2236
|
+
(0, utils_1.assertLogModeIsNotProduction)('set Reporter.filter');
|
|
2094
2237
|
filter = value;
|
|
2095
2238
|
},
|
|
2096
2239
|
logs: [],
|
|
@@ -2100,7 +2243,7 @@ function createMemoryLogReporter(options) {
|
|
|
2100
2243
|
this.logs.push(formatter(entry));
|
|
2101
2244
|
},
|
|
2102
2245
|
getLogMessage: createGetLogMessage(),
|
|
2103
|
-
getLogMessageWithLevel:
|
|
2246
|
+
getLogMessageWithLevel: function () { return toMessageWithLevel(this.logs); }
|
|
2104
2247
|
};
|
|
2105
2248
|
}
|
|
2106
2249
|
exports.createMemoryLogReporter = createMemoryLogReporter;
|
|
@@ -2170,7 +2313,7 @@ var is_node_1 = __importDefault(__webpack_require__(/*! is-node */ "../../node_m
|
|
|
2170
2313
|
exports.toInspectLogEntry = is_node_1.default
|
|
2171
2314
|
? (function () {
|
|
2172
2315
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
2173
|
-
var inspect = __webpack_require__(/*! util */ "../../node_modules/util/util.js").inspect;
|
|
2316
|
+
var inspect = (__webpack_require__(/*! util */ "../../node_modules/util/util.js").inspect);
|
|
2174
2317
|
return function (e) { return (e.args = e.args.map(function (value) { return typeof value === 'object' && value !== null ? inspect(value) : value; }),
|
|
2175
2318
|
e); };
|
|
2176
2319
|
})()
|
|
@@ -2228,12 +2371,12 @@ exports.store = void 0;
|
|
|
2228
2371
|
var global_store_1 = __webpack_require__(/*! global-store */ "global-store");
|
|
2229
2372
|
var getLogModeFromEnvironment_1 = __webpack_require__(/*! ./getLogModeFromEnvironment */ "./src/getLogModeFromEnvironment.browser.ts");
|
|
2230
2373
|
var logLevel_1 = __webpack_require__(/*! ./logLevel */ "./src/logLevel.ts");
|
|
2231
|
-
exports.store = global_store_1.createStore({
|
|
2374
|
+
exports.store = (0, global_store_1.createStore)({
|
|
2232
2375
|
moduleName: 'standard-log',
|
|
2233
2376
|
key: 'e53d0937-f420-40a0-9901-099725fa4a53',
|
|
2234
2377
|
version: '2.0.0',
|
|
2235
2378
|
initializer: function (current) {
|
|
2236
|
-
var mode = getLogModeFromEnvironment_1.getLogModeFromEnvironment() || 'production';
|
|
2379
|
+
var mode = (0, getLogModeFromEnvironment_1.getLogModeFromEnvironment)() || 'production';
|
|
2237
2380
|
return __assign({ addCustomLogLevelListeners: [], configured: false, loggerClosures: {}, redirects: {}, reporters: [], customLevels: {}, customLevelsReverse: [], mode: mode, logLevel: logLevel_1.logLevels.info }, current);
|
|
2238
2381
|
}
|
|
2239
2382
|
});
|
|
@@ -2303,29 +2446,66 @@ writeToReporters.fn = function (logEntry, filter) {
|
|
|
2303
2446
|
};
|
|
2304
2447
|
function getConfiguredStore() {
|
|
2305
2448
|
if (!store_1.store.value.configured)
|
|
2306
|
-
config_1.config();
|
|
2449
|
+
(0, config_1.config)();
|
|
2307
2450
|
return store_1.store;
|
|
2308
2451
|
}
|
|
2309
2452
|
|
|
2310
2453
|
|
|
2311
2454
|
/***/ }),
|
|
2312
2455
|
|
|
2313
|
-
/***/ "../../node_modules/type-plus/
|
|
2456
|
+
/***/ "../../node_modules/type-plus/cjs/ComposableTypes.js":
|
|
2457
|
+
/*!***********************************************************!*\
|
|
2458
|
+
!*** ../../node_modules/type-plus/cjs/ComposableTypes.js ***!
|
|
2459
|
+
\***********************************************************/
|
|
2460
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
2461
|
+
|
|
2462
|
+
"use strict";
|
|
2463
|
+
|
|
2464
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2465
|
+
//# sourceMappingURL=ComposableTypes.js.map
|
|
2466
|
+
|
|
2467
|
+
/***/ }),
|
|
2468
|
+
|
|
2469
|
+
/***/ "../../node_modules/type-plus/cjs/JSONTypes.js":
|
|
2314
2470
|
/*!*****************************************************!*\
|
|
2315
|
-
!*** ../../node_modules/type-plus/
|
|
2471
|
+
!*** ../../node_modules/type-plus/cjs/JSONTypes.js ***!
|
|
2316
2472
|
\*****************************************************/
|
|
2317
2473
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2318
2474
|
|
|
2319
2475
|
"use strict";
|
|
2320
2476
|
|
|
2477
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2478
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2479
|
+
if (ar || !(i in from)) {
|
|
2480
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
2481
|
+
ar[i] = from[i];
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2485
|
+
};
|
|
2321
2486
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2487
|
+
exports.JSONTypes = void 0;
|
|
2488
|
+
exports.JSONTypes = { get: get };
|
|
2489
|
+
function get(obj) {
|
|
2490
|
+
var props = [];
|
|
2491
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2492
|
+
props[_i - 1] = arguments[_i];
|
|
2493
|
+
}
|
|
2494
|
+
if (props.length === 0)
|
|
2495
|
+
return obj;
|
|
2496
|
+
if (typeof obj !== 'object' || obj === null)
|
|
2497
|
+
return undefined;
|
|
2498
|
+
var p = props.shift();
|
|
2499
|
+
// @ts-ignore
|
|
2500
|
+
return get.apply(void 0, __spreadArray([obj[p]], props, false));
|
|
2501
|
+
}
|
|
2322
2502
|
//# sourceMappingURL=JSONTypes.js.map
|
|
2323
2503
|
|
|
2324
2504
|
/***/ }),
|
|
2325
2505
|
|
|
2326
|
-
/***/ "../../node_modules/type-plus/
|
|
2506
|
+
/***/ "../../node_modules/type-plus/cjs/PrimitiveTypes.js":
|
|
2327
2507
|
/*!**********************************************************!*\
|
|
2328
|
-
!*** ../../node_modules/type-plus/
|
|
2508
|
+
!*** ../../node_modules/type-plus/cjs/PrimitiveTypes.js ***!
|
|
2329
2509
|
\**********************************************************/
|
|
2330
2510
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2331
2511
|
|
|
@@ -2336,9 +2516,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2336
2516
|
|
|
2337
2517
|
/***/ }),
|
|
2338
2518
|
|
|
2339
|
-
/***/ "../../node_modules/type-plus/
|
|
2519
|
+
/***/ "../../node_modules/type-plus/cjs/UnionKeys.js":
|
|
2340
2520
|
/*!*****************************************************!*\
|
|
2341
|
-
!*** ../../node_modules/type-plus/
|
|
2521
|
+
!*** ../../node_modules/type-plus/cjs/UnionKeys.js ***!
|
|
2342
2522
|
\*****************************************************/
|
|
2343
2523
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2344
2524
|
|
|
@@ -2349,9 +2529,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2349
2529
|
|
|
2350
2530
|
/***/ }),
|
|
2351
2531
|
|
|
2352
|
-
/***/ "../../node_modules/type-plus/
|
|
2532
|
+
/***/ "../../node_modules/type-plus/cjs/array/CommonPropKeys.js":
|
|
2353
2533
|
/*!****************************************************************!*\
|
|
2354
|
-
!*** ../../node_modules/type-plus/
|
|
2534
|
+
!*** ../../node_modules/type-plus/cjs/array/CommonPropKeys.js ***!
|
|
2355
2535
|
\****************************************************************/
|
|
2356
2536
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2357
2537
|
|
|
@@ -2362,9 +2542,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2362
2542
|
|
|
2363
2543
|
/***/ }),
|
|
2364
2544
|
|
|
2365
|
-
/***/ "../../node_modules/type-plus/
|
|
2545
|
+
/***/ "../../node_modules/type-plus/cjs/array/Concat.js":
|
|
2366
2546
|
/*!********************************************************!*\
|
|
2367
|
-
!*** ../../node_modules/type-plus/
|
|
2547
|
+
!*** ../../node_modules/type-plus/cjs/array/Concat.js ***!
|
|
2368
2548
|
\********************************************************/
|
|
2369
2549
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2370
2550
|
|
|
@@ -2375,9 +2555,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2375
2555
|
|
|
2376
2556
|
/***/ }),
|
|
2377
2557
|
|
|
2378
|
-
/***/ "../../node_modules/type-plus/
|
|
2558
|
+
/***/ "../../node_modules/type-plus/cjs/array/CreateTuple.js":
|
|
2379
2559
|
/*!*************************************************************!*\
|
|
2380
|
-
!*** ../../node_modules/type-plus/
|
|
2560
|
+
!*** ../../node_modules/type-plus/cjs/array/CreateTuple.js ***!
|
|
2381
2561
|
\*************************************************************/
|
|
2382
2562
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2383
2563
|
|
|
@@ -2388,9 +2568,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2388
2568
|
|
|
2389
2569
|
/***/ }),
|
|
2390
2570
|
|
|
2391
|
-
/***/ "../../node_modules/type-plus/
|
|
2571
|
+
/***/ "../../node_modules/type-plus/cjs/array/DropFirst.js":
|
|
2392
2572
|
/*!***********************************************************!*\
|
|
2393
|
-
!*** ../../node_modules/type-plus/
|
|
2573
|
+
!*** ../../node_modules/type-plus/cjs/array/DropFirst.js ***!
|
|
2394
2574
|
\***********************************************************/
|
|
2395
2575
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2396
2576
|
|
|
@@ -2401,9 +2581,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2401
2581
|
|
|
2402
2582
|
/***/ }),
|
|
2403
2583
|
|
|
2404
|
-
/***/ "../../node_modules/type-plus/
|
|
2584
|
+
/***/ "../../node_modules/type-plus/cjs/array/DropLast.js":
|
|
2405
2585
|
/*!**********************************************************!*\
|
|
2406
|
-
!*** ../../node_modules/type-plus/
|
|
2586
|
+
!*** ../../node_modules/type-plus/cjs/array/DropLast.js ***!
|
|
2407
2587
|
\**********************************************************/
|
|
2408
2588
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2409
2589
|
|
|
@@ -2414,9 +2594,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2414
2594
|
|
|
2415
2595
|
/***/ }),
|
|
2416
2596
|
|
|
2417
|
-
/***/ "../../node_modules/type-plus/
|
|
2597
|
+
/***/ "../../node_modules/type-plus/cjs/array/Filter.js":
|
|
2418
2598
|
/*!********************************************************!*\
|
|
2419
|
-
!*** ../../node_modules/type-plus/
|
|
2599
|
+
!*** ../../node_modules/type-plus/cjs/array/Filter.js ***!
|
|
2420
2600
|
\********************************************************/
|
|
2421
2601
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2422
2602
|
|
|
@@ -2427,9 +2607,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2427
2607
|
|
|
2428
2608
|
/***/ }),
|
|
2429
2609
|
|
|
2430
|
-
/***/ "../../node_modules/type-plus/
|
|
2610
|
+
/***/ "../../node_modules/type-plus/cjs/array/FindFirst.js":
|
|
2431
2611
|
/*!***********************************************************!*\
|
|
2432
|
-
!*** ../../node_modules/type-plus/
|
|
2612
|
+
!*** ../../node_modules/type-plus/cjs/array/FindFirst.js ***!
|
|
2433
2613
|
\***********************************************************/
|
|
2434
2614
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2435
2615
|
|
|
@@ -2440,9 +2620,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2440
2620
|
|
|
2441
2621
|
/***/ }),
|
|
2442
2622
|
|
|
2443
|
-
/***/ "../../node_modules/type-plus/
|
|
2623
|
+
/***/ "../../node_modules/type-plus/cjs/array/FindLast.js":
|
|
2444
2624
|
/*!**********************************************************!*\
|
|
2445
|
-
!*** ../../node_modules/type-plus/
|
|
2625
|
+
!*** ../../node_modules/type-plus/cjs/array/FindLast.js ***!
|
|
2446
2626
|
\**********************************************************/
|
|
2447
2627
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2448
2628
|
|
|
@@ -2453,9 +2633,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2453
2633
|
|
|
2454
2634
|
/***/ }),
|
|
2455
2635
|
|
|
2456
|
-
/***/ "../../node_modules/type-plus/
|
|
2636
|
+
/***/ "../../node_modules/type-plus/cjs/array/Head.js":
|
|
2457
2637
|
/*!******************************************************!*\
|
|
2458
|
-
!*** ../../node_modules/type-plus/
|
|
2638
|
+
!*** ../../node_modules/type-plus/cjs/array/Head.js ***!
|
|
2459
2639
|
\******************************************************/
|
|
2460
2640
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2461
2641
|
|
|
@@ -2466,9 +2646,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2466
2646
|
|
|
2467
2647
|
/***/ }),
|
|
2468
2648
|
|
|
2469
|
-
/***/ "../../node_modules/type-plus/
|
|
2649
|
+
/***/ "../../node_modules/type-plus/cjs/array/IntersectOfProps.js":
|
|
2470
2650
|
/*!******************************************************************!*\
|
|
2471
|
-
!*** ../../node_modules/type-plus/
|
|
2651
|
+
!*** ../../node_modules/type-plus/cjs/array/IntersectOfProps.js ***!
|
|
2472
2652
|
\******************************************************************/
|
|
2473
2653
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2474
2654
|
|
|
@@ -2479,9 +2659,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2479
2659
|
|
|
2480
2660
|
/***/ }),
|
|
2481
2661
|
|
|
2482
|
-
/***/ "../../node_modules/type-plus/
|
|
2662
|
+
/***/ "../../node_modules/type-plus/cjs/array/IsArray.js":
|
|
2483
2663
|
/*!*********************************************************!*\
|
|
2484
|
-
!*** ../../node_modules/type-plus/
|
|
2664
|
+
!*** ../../node_modules/type-plus/cjs/array/IsArray.js ***!
|
|
2485
2665
|
\*********************************************************/
|
|
2486
2666
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2487
2667
|
|
|
@@ -2492,9 +2672,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2492
2672
|
|
|
2493
2673
|
/***/ }),
|
|
2494
2674
|
|
|
2495
|
-
/***/ "../../node_modules/type-plus/
|
|
2675
|
+
/***/ "../../node_modules/type-plus/cjs/array/PadLeft.js":
|
|
2496
2676
|
/*!*********************************************************!*\
|
|
2497
|
-
!*** ../../node_modules/type-plus/
|
|
2677
|
+
!*** ../../node_modules/type-plus/cjs/array/PadLeft.js ***!
|
|
2498
2678
|
\*********************************************************/
|
|
2499
2679
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2500
2680
|
|
|
@@ -2505,9 +2685,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2505
2685
|
|
|
2506
2686
|
/***/ }),
|
|
2507
2687
|
|
|
2508
|
-
/***/ "../../node_modules/type-plus/
|
|
2688
|
+
/***/ "../../node_modules/type-plus/cjs/array/Reverse.js":
|
|
2509
2689
|
/*!*********************************************************!*\
|
|
2510
|
-
!*** ../../node_modules/type-plus/
|
|
2690
|
+
!*** ../../node_modules/type-plus/cjs/array/Reverse.js ***!
|
|
2511
2691
|
\*********************************************************/
|
|
2512
2692
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2513
2693
|
|
|
@@ -2518,9 +2698,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2518
2698
|
|
|
2519
2699
|
/***/ }),
|
|
2520
2700
|
|
|
2521
|
-
/***/ "../../node_modules/type-plus/
|
|
2701
|
+
/***/ "../../node_modules/type-plus/cjs/array/Some.js":
|
|
2522
2702
|
/*!******************************************************!*\
|
|
2523
|
-
!*** ../../node_modules/type-plus/
|
|
2703
|
+
!*** ../../node_modules/type-plus/cjs/array/Some.js ***!
|
|
2524
2704
|
\******************************************************/
|
|
2525
2705
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2526
2706
|
|
|
@@ -2531,9 +2711,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2531
2711
|
|
|
2532
2712
|
/***/ }),
|
|
2533
2713
|
|
|
2534
|
-
/***/ "../../node_modules/type-plus/
|
|
2714
|
+
/***/ "../../node_modules/type-plus/cjs/array/Tail.js":
|
|
2535
2715
|
/*!******************************************************!*\
|
|
2536
|
-
!*** ../../node_modules/type-plus/
|
|
2716
|
+
!*** ../../node_modules/type-plus/cjs/array/Tail.js ***!
|
|
2537
2717
|
\******************************************************/
|
|
2538
2718
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2539
2719
|
|
|
@@ -2544,9 +2724,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2544
2724
|
|
|
2545
2725
|
/***/ }),
|
|
2546
2726
|
|
|
2547
|
-
/***/ "../../node_modules/type-plus/
|
|
2727
|
+
/***/ "../../node_modules/type-plus/cjs/array/UnionOfProps.js":
|
|
2548
2728
|
/*!**************************************************************!*\
|
|
2549
|
-
!*** ../../node_modules/type-plus/
|
|
2729
|
+
!*** ../../node_modules/type-plus/cjs/array/UnionOfProps.js ***!
|
|
2550
2730
|
\**************************************************************/
|
|
2551
2731
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2552
2732
|
|
|
@@ -2557,9 +2737,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2557
2737
|
|
|
2558
2738
|
/***/ }),
|
|
2559
2739
|
|
|
2560
|
-
/***/ "../../node_modules/type-plus/
|
|
2740
|
+
/***/ "../../node_modules/type-plus/cjs/array/UnionOfValues.js":
|
|
2561
2741
|
/*!***************************************************************!*\
|
|
2562
|
-
!*** ../../node_modules/type-plus/
|
|
2742
|
+
!*** ../../node_modules/type-plus/cjs/array/UnionOfValues.js ***!
|
|
2563
2743
|
\***************************************************************/
|
|
2564
2744
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2565
2745
|
|
|
@@ -2570,9 +2750,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2570
2750
|
|
|
2571
2751
|
/***/ }),
|
|
2572
2752
|
|
|
2573
|
-
/***/ "../../node_modules/type-plus/
|
|
2753
|
+
/***/ "../../node_modules/type-plus/cjs/array/index.js":
|
|
2574
2754
|
/*!*******************************************************!*\
|
|
2575
|
-
!*** ../../node_modules/type-plus/
|
|
2755
|
+
!*** ../../node_modules/type-plus/cjs/array/index.js ***!
|
|
2576
2756
|
\*******************************************************/
|
|
2577
2757
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2578
2758
|
|
|
@@ -2589,32 +2769,32 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
2589
2769
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2590
2770
|
};
|
|
2591
2771
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2592
|
-
__exportStar(__webpack_require__(/*! ./CommonPropKeys */ "../../node_modules/type-plus/
|
|
2593
|
-
__exportStar(__webpack_require__(/*! ./Concat */ "../../node_modules/type-plus/
|
|
2594
|
-
__exportStar(__webpack_require__(/*! ./CreateTuple */ "../../node_modules/type-plus/
|
|
2595
|
-
__exportStar(__webpack_require__(/*! ./DropFirst */ "../../node_modules/type-plus/
|
|
2596
|
-
__exportStar(__webpack_require__(/*! ./DropLast */ "../../node_modules/type-plus/
|
|
2597
|
-
__exportStar(__webpack_require__(/*! ./Filter */ "../../node_modules/type-plus/
|
|
2598
|
-
__exportStar(__webpack_require__(/*! ./FindFirst */ "../../node_modules/type-plus/
|
|
2599
|
-
__exportStar(__webpack_require__(/*! ./FindLast */ "../../node_modules/type-plus/
|
|
2600
|
-
__exportStar(__webpack_require__(/*! ./Head */ "../../node_modules/type-plus/
|
|
2601
|
-
__exportStar(__webpack_require__(/*! ./IntersectOfProps */ "../../node_modules/type-plus/
|
|
2602
|
-
__exportStar(__webpack_require__(/*! ./IsArray */ "../../node_modules/type-plus/
|
|
2603
|
-
__exportStar(__webpack_require__(/*! ./literalArray */ "../../node_modules/type-plus/
|
|
2604
|
-
__exportStar(__webpack_require__(/*! ./PadLeft */ "../../node_modules/type-plus/
|
|
2605
|
-
__exportStar(__webpack_require__(/*! ./reduceWhile */ "../../node_modules/type-plus/
|
|
2606
|
-
__exportStar(__webpack_require__(/*! ./Reverse */ "../../node_modules/type-plus/
|
|
2607
|
-
__exportStar(__webpack_require__(/*! ./Some */ "../../node_modules/type-plus/
|
|
2608
|
-
__exportStar(__webpack_require__(/*! ./Tail */ "../../node_modules/type-plus/
|
|
2609
|
-
__exportStar(__webpack_require__(/*! ./UnionOfProps */ "../../node_modules/type-plus/
|
|
2610
|
-
__exportStar(__webpack_require__(/*! ./UnionOfValues */ "../../node_modules/type-plus/
|
|
2772
|
+
__exportStar(__webpack_require__(/*! ./CommonPropKeys */ "../../node_modules/type-plus/cjs/array/CommonPropKeys.js"), exports);
|
|
2773
|
+
__exportStar(__webpack_require__(/*! ./Concat */ "../../node_modules/type-plus/cjs/array/Concat.js"), exports);
|
|
2774
|
+
__exportStar(__webpack_require__(/*! ./CreateTuple */ "../../node_modules/type-plus/cjs/array/CreateTuple.js"), exports);
|
|
2775
|
+
__exportStar(__webpack_require__(/*! ./DropFirst */ "../../node_modules/type-plus/cjs/array/DropFirst.js"), exports);
|
|
2776
|
+
__exportStar(__webpack_require__(/*! ./DropLast */ "../../node_modules/type-plus/cjs/array/DropLast.js"), exports);
|
|
2777
|
+
__exportStar(__webpack_require__(/*! ./Filter */ "../../node_modules/type-plus/cjs/array/Filter.js"), exports);
|
|
2778
|
+
__exportStar(__webpack_require__(/*! ./FindFirst */ "../../node_modules/type-plus/cjs/array/FindFirst.js"), exports);
|
|
2779
|
+
__exportStar(__webpack_require__(/*! ./FindLast */ "../../node_modules/type-plus/cjs/array/FindLast.js"), exports);
|
|
2780
|
+
__exportStar(__webpack_require__(/*! ./Head */ "../../node_modules/type-plus/cjs/array/Head.js"), exports);
|
|
2781
|
+
__exportStar(__webpack_require__(/*! ./IntersectOfProps */ "../../node_modules/type-plus/cjs/array/IntersectOfProps.js"), exports);
|
|
2782
|
+
__exportStar(__webpack_require__(/*! ./IsArray */ "../../node_modules/type-plus/cjs/array/IsArray.js"), exports);
|
|
2783
|
+
__exportStar(__webpack_require__(/*! ./literalArray */ "../../node_modules/type-plus/cjs/array/literalArray.js"), exports);
|
|
2784
|
+
__exportStar(__webpack_require__(/*! ./PadLeft */ "../../node_modules/type-plus/cjs/array/PadLeft.js"), exports);
|
|
2785
|
+
__exportStar(__webpack_require__(/*! ./reduceWhile */ "../../node_modules/type-plus/cjs/array/reduceWhile.js"), exports);
|
|
2786
|
+
__exportStar(__webpack_require__(/*! ./Reverse */ "../../node_modules/type-plus/cjs/array/Reverse.js"), exports);
|
|
2787
|
+
__exportStar(__webpack_require__(/*! ./Some */ "../../node_modules/type-plus/cjs/array/Some.js"), exports);
|
|
2788
|
+
__exportStar(__webpack_require__(/*! ./Tail */ "../../node_modules/type-plus/cjs/array/Tail.js"), exports);
|
|
2789
|
+
__exportStar(__webpack_require__(/*! ./UnionOfProps */ "../../node_modules/type-plus/cjs/array/UnionOfProps.js"), exports);
|
|
2790
|
+
__exportStar(__webpack_require__(/*! ./UnionOfValues */ "../../node_modules/type-plus/cjs/array/UnionOfValues.js"), exports);
|
|
2611
2791
|
//# sourceMappingURL=index.js.map
|
|
2612
2792
|
|
|
2613
2793
|
/***/ }),
|
|
2614
2794
|
|
|
2615
|
-
/***/ "../../node_modules/type-plus/
|
|
2795
|
+
/***/ "../../node_modules/type-plus/cjs/array/literalArray.js":
|
|
2616
2796
|
/*!**************************************************************!*\
|
|
2617
|
-
!*** ../../node_modules/type-plus/
|
|
2797
|
+
!*** ../../node_modules/type-plus/cjs/array/literalArray.js ***!
|
|
2618
2798
|
\**************************************************************/
|
|
2619
2799
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2620
2800
|
|
|
@@ -2634,9 +2814,9 @@ exports.literalArray = literalArray;
|
|
|
2634
2814
|
|
|
2635
2815
|
/***/ }),
|
|
2636
2816
|
|
|
2637
|
-
/***/ "../../node_modules/type-plus/
|
|
2817
|
+
/***/ "../../node_modules/type-plus/cjs/array/reduceWhile.js":
|
|
2638
2818
|
/*!*************************************************************!*\
|
|
2639
|
-
!*** ../../node_modules/type-plus/
|
|
2819
|
+
!*** ../../node_modules/type-plus/cjs/array/reduceWhile.js ***!
|
|
2640
2820
|
\*************************************************************/
|
|
2641
2821
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2642
2822
|
|
|
@@ -2659,9 +2839,9 @@ exports.reduceWhile = reduceWhile;
|
|
|
2659
2839
|
|
|
2660
2840
|
/***/ }),
|
|
2661
2841
|
|
|
2662
|
-
/***/ "../../node_modules/type-plus/
|
|
2842
|
+
/***/ "../../node_modules/type-plus/cjs/assertion/assertType.js":
|
|
2663
2843
|
/*!****************************************************************!*\
|
|
2664
|
-
!*** ../../node_modules/type-plus/
|
|
2844
|
+
!*** ../../node_modules/type-plus/cjs/assertion/assertType.js ***!
|
|
2665
2845
|
\****************************************************************/
|
|
2666
2846
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2667
2847
|
|
|
@@ -2669,12 +2849,12 @@ exports.reduceWhile = reduceWhile;
|
|
|
2669
2849
|
|
|
2670
2850
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2671
2851
|
exports.assertType = void 0;
|
|
2672
|
-
var tersify_1 = __webpack_require__(/*! tersify */ "../../node_modules/tersify/
|
|
2673
|
-
var class_1 = __webpack_require__(/*! ../class */ "../../node_modules/type-plus/
|
|
2852
|
+
var tersify_1 = __webpack_require__(/*! tersify */ "../../node_modules/tersify/cjs/index.js");
|
|
2853
|
+
var class_1 = __webpack_require__(/*! ../class */ "../../node_modules/type-plus/cjs/class/index.js");
|
|
2674
2854
|
function assertType(subject, validator) {
|
|
2675
2855
|
if (validator) {
|
|
2676
|
-
if ((class_1.isConstructor(validator) && !(subject instanceof validator)) || !validator(subject))
|
|
2677
|
-
throw new TypeError("subject fails to satisfy "
|
|
2856
|
+
if (((0, class_1.isConstructor)(validator) && !(subject instanceof validator)) || !validator(subject))
|
|
2857
|
+
throw new TypeError("subject fails to satisfy ".concat((0, tersify_1.tersify)(validator)));
|
|
2678
2858
|
}
|
|
2679
2859
|
return;
|
|
2680
2860
|
}
|
|
@@ -2746,7 +2926,7 @@ assertType.noFunction = function (subject) {
|
|
|
2746
2926
|
throw TypeError("subject is function");
|
|
2747
2927
|
};
|
|
2748
2928
|
assertType.isConstructor = function (subject) {
|
|
2749
|
-
if (!class_1.isConstructor(subject))
|
|
2929
|
+
if (!(0, class_1.isConstructor)(subject))
|
|
2750
2930
|
throw TypeError("subject is not a constructor");
|
|
2751
2931
|
};
|
|
2752
2932
|
assertType.isError = function (subject) {
|
|
@@ -2768,7 +2948,7 @@ assertType.isNever = function (subject) {
|
|
|
2768
2948
|
assertType.custom = function (validator) {
|
|
2769
2949
|
return function (subject) {
|
|
2770
2950
|
if (!validator(subject))
|
|
2771
|
-
throw new TypeError("subject fails to satisfy "
|
|
2951
|
+
throw new TypeError("subject fails to satisfy ".concat((0, tersify_1.tersify)(validator)));
|
|
2772
2952
|
return;
|
|
2773
2953
|
};
|
|
2774
2954
|
};
|
|
@@ -2776,9 +2956,9 @@ assertType.custom = function (validator) {
|
|
|
2776
2956
|
|
|
2777
2957
|
/***/ }),
|
|
2778
2958
|
|
|
2779
|
-
/***/ "../../node_modules/type-plus/
|
|
2959
|
+
/***/ "../../node_modules/type-plus/cjs/assertion/index.js":
|
|
2780
2960
|
/*!***********************************************************!*\
|
|
2781
|
-
!*** ../../node_modules/type-plus/
|
|
2961
|
+
!*** ../../node_modules/type-plus/cjs/assertion/index.js ***!
|
|
2782
2962
|
\***********************************************************/
|
|
2783
2963
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2784
2964
|
|
|
@@ -2795,14 +2975,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
2795
2975
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2796
2976
|
};
|
|
2797
2977
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2798
|
-
__exportStar(__webpack_require__(/*! ./assertType */ "../../node_modules/type-plus/
|
|
2978
|
+
__exportStar(__webpack_require__(/*! ./assertType */ "../../node_modules/type-plus/cjs/assertion/assertType.js"), exports);
|
|
2799
2979
|
//# sourceMappingURL=index.js.map
|
|
2800
2980
|
|
|
2801
2981
|
/***/ }),
|
|
2802
2982
|
|
|
2803
|
-
/***/ "../../node_modules/type-plus/
|
|
2983
|
+
/***/ "../../node_modules/type-plus/cjs/class/AnyConstructor.js":
|
|
2804
2984
|
/*!****************************************************************!*\
|
|
2805
|
-
!*** ../../node_modules/type-plus/
|
|
2985
|
+
!*** ../../node_modules/type-plus/cjs/class/AnyConstructor.js ***!
|
|
2806
2986
|
\****************************************************************/
|
|
2807
2987
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2808
2988
|
|
|
@@ -2813,9 +2993,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2813
2993
|
|
|
2814
2994
|
/***/ }),
|
|
2815
2995
|
|
|
2816
|
-
/***/ "../../node_modules/type-plus/
|
|
2996
|
+
/***/ "../../node_modules/type-plus/cjs/class/index.js":
|
|
2817
2997
|
/*!*******************************************************!*\
|
|
2818
|
-
!*** ../../node_modules/type-plus/
|
|
2998
|
+
!*** ../../node_modules/type-plus/cjs/class/index.js ***!
|
|
2819
2999
|
\*******************************************************/
|
|
2820
3000
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2821
3001
|
|
|
@@ -2832,15 +3012,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
2832
3012
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2833
3013
|
};
|
|
2834
3014
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2835
|
-
__exportStar(__webpack_require__(/*! ./AnyConstructor */ "../../node_modules/type-plus/
|
|
2836
|
-
__exportStar(__webpack_require__(/*! ./isConstructor */ "../../node_modules/type-plus/
|
|
3015
|
+
__exportStar(__webpack_require__(/*! ./AnyConstructor */ "../../node_modules/type-plus/cjs/class/AnyConstructor.js"), exports);
|
|
3016
|
+
__exportStar(__webpack_require__(/*! ./isConstructor */ "../../node_modules/type-plus/cjs/class/isConstructor.js"), exports);
|
|
2837
3017
|
//# sourceMappingURL=index.js.map
|
|
2838
3018
|
|
|
2839
3019
|
/***/ }),
|
|
2840
3020
|
|
|
2841
|
-
/***/ "../../node_modules/type-plus/
|
|
3021
|
+
/***/ "../../node_modules/type-plus/cjs/class/isConstructor.js":
|
|
2842
3022
|
/*!***************************************************************!*\
|
|
2843
|
-
!*** ../../node_modules/type-plus/
|
|
3023
|
+
!*** ../../node_modules/type-plus/cjs/class/isConstructor.js ***!
|
|
2844
3024
|
\***************************************************************/
|
|
2845
3025
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2846
3026
|
|
|
@@ -2849,12 +3029,12 @@ __exportStar(__webpack_require__(/*! ./isConstructor */ "../../node_modules/type
|
|
|
2849
3029
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2850
3030
|
exports.isConstructor = void 0;
|
|
2851
3031
|
function isConstructor(subject) {
|
|
2852
|
-
var _a;
|
|
2853
3032
|
try {
|
|
2854
3033
|
new subject();
|
|
2855
3034
|
}
|
|
2856
3035
|
catch (err) {
|
|
2857
|
-
|
|
3036
|
+
var msg = err === null || err === void 0 ? void 0 : err.message;
|
|
3037
|
+
if (msg && msg.indexOf('is not a constructor') >= 0) {
|
|
2858
3038
|
return false;
|
|
2859
3039
|
}
|
|
2860
3040
|
}
|
|
@@ -2865,9 +3045,9 @@ exports.isConstructor = isConstructor;
|
|
|
2865
3045
|
|
|
2866
3046
|
/***/ }),
|
|
2867
3047
|
|
|
2868
|
-
/***/ "../../node_modules/type-plus/
|
|
3048
|
+
/***/ "../../node_modules/type-plus/cjs/function/AnyFunction.js":
|
|
2869
3049
|
/*!****************************************************************!*\
|
|
2870
|
-
!*** ../../node_modules/type-plus/
|
|
3050
|
+
!*** ../../node_modules/type-plus/cjs/function/AnyFunction.js ***!
|
|
2871
3051
|
\****************************************************************/
|
|
2872
3052
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2873
3053
|
|
|
@@ -2878,9 +3058,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2878
3058
|
|
|
2879
3059
|
/***/ }),
|
|
2880
3060
|
|
|
2881
|
-
/***/ "../../node_modules/type-plus/
|
|
3061
|
+
/***/ "../../node_modules/type-plus/cjs/function/index.js":
|
|
2882
3062
|
/*!**********************************************************!*\
|
|
2883
|
-
!*** ../../node_modules/type-plus/
|
|
3063
|
+
!*** ../../node_modules/type-plus/cjs/function/index.js ***!
|
|
2884
3064
|
\**********************************************************/
|
|
2885
3065
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2886
3066
|
|
|
@@ -2897,14 +3077,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
2897
3077
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2898
3078
|
};
|
|
2899
3079
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2900
|
-
__exportStar(__webpack_require__(/*! ./AnyFunction */ "../../node_modules/type-plus/
|
|
3080
|
+
__exportStar(__webpack_require__(/*! ./AnyFunction */ "../../node_modules/type-plus/cjs/function/AnyFunction.js"), exports);
|
|
2901
3081
|
//# sourceMappingURL=index.js.map
|
|
2902
3082
|
|
|
2903
3083
|
/***/ }),
|
|
2904
3084
|
|
|
2905
|
-
/***/ "../../node_modules/type-plus/
|
|
3085
|
+
/***/ "../../node_modules/type-plus/cjs/functional/ChainFn.js":
|
|
2906
3086
|
/*!**************************************************************!*\
|
|
2907
|
-
!*** ../../node_modules/type-plus/
|
|
3087
|
+
!*** ../../node_modules/type-plus/cjs/functional/ChainFn.js ***!
|
|
2908
3088
|
\**************************************************************/
|
|
2909
3089
|
/***/ (function(__unused_webpack_module, exports) {
|
|
2910
3090
|
|
|
@@ -2915,9 +3095,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2915
3095
|
|
|
2916
3096
|
/***/ }),
|
|
2917
3097
|
|
|
2918
|
-
/***/ "../../node_modules/type-plus/
|
|
3098
|
+
/***/ "../../node_modules/type-plus/cjs/functional/index.js":
|
|
2919
3099
|
/*!************************************************************!*\
|
|
2920
|
-
!*** ../../node_modules/type-plus/
|
|
3100
|
+
!*** ../../node_modules/type-plus/cjs/functional/index.js ***!
|
|
2921
3101
|
\************************************************************/
|
|
2922
3102
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2923
3103
|
|
|
@@ -2935,14 +3115,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
2935
3115
|
};
|
|
2936
3116
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2937
3117
|
// export * from './Maybe'
|
|
2938
|
-
__exportStar(__webpack_require__(/*! ./ChainFn */ "../../node_modules/type-plus/
|
|
3118
|
+
__exportStar(__webpack_require__(/*! ./ChainFn */ "../../node_modules/type-plus/cjs/functional/ChainFn.js"), exports);
|
|
2939
3119
|
//# sourceMappingURL=index.js.map
|
|
2940
3120
|
|
|
2941
3121
|
/***/ }),
|
|
2942
3122
|
|
|
2943
|
-
/***/ "../../node_modules/type-plus/
|
|
3123
|
+
/***/ "../../node_modules/type-plus/cjs/index.js":
|
|
2944
3124
|
/*!*************************************************!*\
|
|
2945
|
-
!*** ../../node_modules/type-plus/
|
|
3125
|
+
!*** ../../node_modules/type-plus/cjs/index.js ***!
|
|
2946
3126
|
\*************************************************/
|
|
2947
3127
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2948
3128
|
|
|
@@ -2955,52 +3135,41 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
2955
3135
|
if (k2 === undefined) k2 = k;
|
|
2956
3136
|
o[k2] = m[k];
|
|
2957
3137
|
}));
|
|
2958
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
2959
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2960
|
-
}) : function(o, v) {
|
|
2961
|
-
o["default"] = v;
|
|
2962
|
-
});
|
|
2963
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
2964
|
-
if (mod && mod.__esModule) return mod;
|
|
2965
|
-
var result = {};
|
|
2966
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2967
|
-
__setModuleDefault(result, mod);
|
|
2968
|
-
return result;
|
|
2969
|
-
};
|
|
2970
3138
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
2971
3139
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2972
3140
|
};
|
|
2973
3141
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2974
|
-
exports.
|
|
2975
|
-
|
|
2976
|
-
exports.types = types;
|
|
2977
|
-
exports.T = types;
|
|
3142
|
+
exports.requiredDeep = exports.required = void 0;
|
|
3143
|
+
// import * as types from './types'
|
|
2978
3144
|
var unpartial_1 = __webpack_require__(/*! unpartial */ "../../node_modules/unpartial/lib/index.js");
|
|
2979
3145
|
Object.defineProperty(exports, "required", ({ enumerable: true, get: function () { return unpartial_1.required; } }));
|
|
2980
3146
|
Object.defineProperty(exports, "requiredDeep", ({ enumerable: true, get: function () { return unpartial_1.requiredDeep; } }));
|
|
2981
|
-
__exportStar(__webpack_require__(/*! ./array */ "../../node_modules/type-plus/
|
|
2982
|
-
__exportStar(__webpack_require__(/*! ./assertion */ "../../node_modules/type-plus/
|
|
2983
|
-
__exportStar(__webpack_require__(/*! ./class */ "../../node_modules/type-plus/
|
|
2984
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2985
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2986
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2987
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2988
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2989
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2990
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2991
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2992
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2993
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2994
|
-
__exportStar(__webpack_require__(/*! ./
|
|
2995
|
-
|
|
2996
|
-
|
|
3147
|
+
__exportStar(__webpack_require__(/*! ./array */ "../../node_modules/type-plus/cjs/array/index.js"), exports);
|
|
3148
|
+
__exportStar(__webpack_require__(/*! ./assertion */ "../../node_modules/type-plus/cjs/assertion/index.js"), exports);
|
|
3149
|
+
__exportStar(__webpack_require__(/*! ./class */ "../../node_modules/type-plus/cjs/class/index.js"), exports);
|
|
3150
|
+
__exportStar(__webpack_require__(/*! ./ComposableTypes */ "../../node_modules/type-plus/cjs/ComposableTypes.js"), exports);
|
|
3151
|
+
__exportStar(__webpack_require__(/*! ./function */ "../../node_modules/type-plus/cjs/function/index.js"), exports);
|
|
3152
|
+
__exportStar(__webpack_require__(/*! ./functional */ "../../node_modules/type-plus/cjs/functional/index.js"), exports);
|
|
3153
|
+
__exportStar(__webpack_require__(/*! ./JSONTypes */ "../../node_modules/type-plus/cjs/JSONTypes.js"), exports);
|
|
3154
|
+
__exportStar(__webpack_require__(/*! ./math */ "../../node_modules/type-plus/cjs/math/index.js"), exports);
|
|
3155
|
+
__exportStar(__webpack_require__(/*! ./nodejs */ "../../node_modules/type-plus/cjs/nodejs/index.js"), exports);
|
|
3156
|
+
__exportStar(__webpack_require__(/*! ./nominal-types */ "../../node_modules/type-plus/cjs/nominal-types/index.js"), exports);
|
|
3157
|
+
__exportStar(__webpack_require__(/*! ./object */ "../../node_modules/type-plus/cjs/object/index.js"), exports);
|
|
3158
|
+
__exportStar(__webpack_require__(/*! ./predicates */ "../../node_modules/type-plus/cjs/predicates/index.js"), exports);
|
|
3159
|
+
__exportStar(__webpack_require__(/*! ./PrimitiveTypes */ "../../node_modules/type-plus/cjs/PrimitiveTypes.js"), exports);
|
|
3160
|
+
__exportStar(__webpack_require__(/*! ./promise */ "../../node_modules/type-plus/cjs/promise/index.js"), exports);
|
|
3161
|
+
// export * from './types/optional'
|
|
3162
|
+
// export * from './types/required'
|
|
3163
|
+
__exportStar(__webpack_require__(/*! ./UnionKeys */ "../../node_modules/type-plus/cjs/UnionKeys.js"), exports);
|
|
3164
|
+
__exportStar(__webpack_require__(/*! ./utils */ "../../node_modules/type-plus/cjs/utils/index.js"), exports);
|
|
3165
|
+
// export { types, types as T }
|
|
2997
3166
|
//# sourceMappingURL=index.js.map
|
|
2998
3167
|
|
|
2999
3168
|
/***/ }),
|
|
3000
3169
|
|
|
3001
|
-
/***/ "../../node_modules/type-plus/
|
|
3170
|
+
/***/ "../../node_modules/type-plus/cjs/math/Abs.js":
|
|
3002
3171
|
/*!****************************************************!*\
|
|
3003
|
-
!*** ../../node_modules/type-plus/
|
|
3172
|
+
!*** ../../node_modules/type-plus/cjs/math/Abs.js ***!
|
|
3004
3173
|
\****************************************************/
|
|
3005
3174
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3006
3175
|
|
|
@@ -3011,9 +3180,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3011
3180
|
|
|
3012
3181
|
/***/ }),
|
|
3013
3182
|
|
|
3014
|
-
/***/ "../../node_modules/type-plus/
|
|
3183
|
+
/***/ "../../node_modules/type-plus/cjs/math/Add.js":
|
|
3015
3184
|
/*!****************************************************!*\
|
|
3016
|
-
!*** ../../node_modules/type-plus/
|
|
3185
|
+
!*** ../../node_modules/type-plus/cjs/math/Add.js ***!
|
|
3017
3186
|
\****************************************************/
|
|
3018
3187
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3019
3188
|
|
|
@@ -3024,9 +3193,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3024
3193
|
|
|
3025
3194
|
/***/ }),
|
|
3026
3195
|
|
|
3027
|
-
/***/ "../../node_modules/type-plus/
|
|
3196
|
+
/***/ "../../node_modules/type-plus/cjs/math/GreaterThan.js":
|
|
3028
3197
|
/*!************************************************************!*\
|
|
3029
|
-
!*** ../../node_modules/type-plus/
|
|
3198
|
+
!*** ../../node_modules/type-plus/cjs/math/GreaterThan.js ***!
|
|
3030
3199
|
\************************************************************/
|
|
3031
3200
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3032
3201
|
|
|
@@ -3037,9 +3206,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3037
3206
|
|
|
3038
3207
|
/***/ }),
|
|
3039
3208
|
|
|
3040
|
-
/***/ "../../node_modules/type-plus/
|
|
3209
|
+
/***/ "../../node_modules/type-plus/cjs/math/IsPositive.js":
|
|
3041
3210
|
/*!***********************************************************!*\
|
|
3042
|
-
!*** ../../node_modules/type-plus/
|
|
3211
|
+
!*** ../../node_modules/type-plus/cjs/math/IsPositive.js ***!
|
|
3043
3212
|
\***********************************************************/
|
|
3044
3213
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3045
3214
|
|
|
@@ -3050,9 +3219,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3050
3219
|
|
|
3051
3220
|
/***/ }),
|
|
3052
3221
|
|
|
3053
|
-
/***/ "../../node_modules/type-plus/
|
|
3222
|
+
/***/ "../../node_modules/type-plus/cjs/math/IsWhole.js":
|
|
3054
3223
|
/*!********************************************************!*\
|
|
3055
|
-
!*** ../../node_modules/type-plus/
|
|
3224
|
+
!*** ../../node_modules/type-plus/cjs/math/IsWhole.js ***!
|
|
3056
3225
|
\********************************************************/
|
|
3057
3226
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3058
3227
|
|
|
@@ -3063,9 +3232,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3063
3232
|
|
|
3064
3233
|
/***/ }),
|
|
3065
3234
|
|
|
3066
|
-
/***/ "../../node_modules/type-plus/
|
|
3235
|
+
/***/ "../../node_modules/type-plus/cjs/math/Max.js":
|
|
3067
3236
|
/*!****************************************************!*\
|
|
3068
|
-
!*** ../../node_modules/type-plus/
|
|
3237
|
+
!*** ../../node_modules/type-plus/cjs/math/Max.js ***!
|
|
3069
3238
|
\****************************************************/
|
|
3070
3239
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3071
3240
|
|
|
@@ -3076,9 +3245,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3076
3245
|
|
|
3077
3246
|
/***/ }),
|
|
3078
3247
|
|
|
3079
|
-
/***/ "../../node_modules/type-plus/
|
|
3248
|
+
/***/ "../../node_modules/type-plus/cjs/math/Subtract.js":
|
|
3080
3249
|
/*!*********************************************************!*\
|
|
3081
|
-
!*** ../../node_modules/type-plus/
|
|
3250
|
+
!*** ../../node_modules/type-plus/cjs/math/Subtract.js ***!
|
|
3082
3251
|
\*********************************************************/
|
|
3083
3252
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3084
3253
|
|
|
@@ -3089,9 +3258,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3089
3258
|
|
|
3090
3259
|
/***/ }),
|
|
3091
3260
|
|
|
3092
|
-
/***/ "../../node_modules/type-plus/
|
|
3261
|
+
/***/ "../../node_modules/type-plus/cjs/math/index.js":
|
|
3093
3262
|
/*!******************************************************!*\
|
|
3094
|
-
!*** ../../node_modules/type-plus/
|
|
3263
|
+
!*** ../../node_modules/type-plus/cjs/math/index.js ***!
|
|
3095
3264
|
\******************************************************/
|
|
3096
3265
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3097
3266
|
|
|
@@ -3108,20 +3277,67 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
3108
3277
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3109
3278
|
};
|
|
3110
3279
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3111
|
-
__exportStar(__webpack_require__(/*! ./Abs */ "../../node_modules/type-plus/
|
|
3112
|
-
__exportStar(__webpack_require__(/*! ./Add */ "../../node_modules/type-plus/
|
|
3113
|
-
__exportStar(__webpack_require__(/*! ./GreaterThan */ "../../node_modules/type-plus/
|
|
3114
|
-
__exportStar(__webpack_require__(/*! ./IsPositive */ "../../node_modules/type-plus/
|
|
3115
|
-
__exportStar(__webpack_require__(/*! ./IsWhole */ "../../node_modules/type-plus/
|
|
3116
|
-
__exportStar(__webpack_require__(/*! ./Max */ "../../node_modules/type-plus/
|
|
3117
|
-
__exportStar(__webpack_require__(/*! ./Subtract */ "../../node_modules/type-plus/
|
|
3280
|
+
__exportStar(__webpack_require__(/*! ./Abs */ "../../node_modules/type-plus/cjs/math/Abs.js"), exports);
|
|
3281
|
+
__exportStar(__webpack_require__(/*! ./Add */ "../../node_modules/type-plus/cjs/math/Add.js"), exports);
|
|
3282
|
+
__exportStar(__webpack_require__(/*! ./GreaterThan */ "../../node_modules/type-plus/cjs/math/GreaterThan.js"), exports);
|
|
3283
|
+
__exportStar(__webpack_require__(/*! ./IsPositive */ "../../node_modules/type-plus/cjs/math/IsPositive.js"), exports);
|
|
3284
|
+
__exportStar(__webpack_require__(/*! ./IsWhole */ "../../node_modules/type-plus/cjs/math/IsWhole.js"), exports);
|
|
3285
|
+
__exportStar(__webpack_require__(/*! ./Max */ "../../node_modules/type-plus/cjs/math/Max.js"), exports);
|
|
3286
|
+
__exportStar(__webpack_require__(/*! ./Subtract */ "../../node_modules/type-plus/cjs/math/Subtract.js"), exports);
|
|
3287
|
+
//# sourceMappingURL=index.js.map
|
|
3288
|
+
|
|
3289
|
+
/***/ }),
|
|
3290
|
+
|
|
3291
|
+
/***/ "../../node_modules/type-plus/cjs/nodejs/index.js":
|
|
3292
|
+
/*!********************************************************!*\
|
|
3293
|
+
!*** ../../node_modules/type-plus/cjs/nodejs/index.js ***!
|
|
3294
|
+
\********************************************************/
|
|
3295
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3296
|
+
|
|
3297
|
+
"use strict";
|
|
3298
|
+
|
|
3299
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3300
|
+
if (k2 === undefined) k2 = k;
|
|
3301
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
3302
|
+
}) : (function(o, m, k, k2) {
|
|
3303
|
+
if (k2 === undefined) k2 = k;
|
|
3304
|
+
o[k2] = m[k];
|
|
3305
|
+
}));
|
|
3306
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
3307
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3308
|
+
};
|
|
3309
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3310
|
+
__exportStar(__webpack_require__(/*! ./isNodeError */ "../../node_modules/type-plus/cjs/nodejs/isNodeError.js"), exports);
|
|
3118
3311
|
//# sourceMappingURL=index.js.map
|
|
3119
3312
|
|
|
3120
3313
|
/***/ }),
|
|
3121
3314
|
|
|
3122
|
-
/***/ "../../node_modules/type-plus/
|
|
3315
|
+
/***/ "../../node_modules/type-plus/cjs/nodejs/isNodeError.js":
|
|
3316
|
+
/*!**************************************************************!*\
|
|
3317
|
+
!*** ../../node_modules/type-plus/cjs/nodejs/isNodeError.js ***!
|
|
3318
|
+
\**************************************************************/
|
|
3319
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
3320
|
+
|
|
3321
|
+
"use strict";
|
|
3322
|
+
|
|
3323
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3324
|
+
exports.isSystemError = void 0;
|
|
3325
|
+
/**
|
|
3326
|
+
* Type guard NodeJS SystemErrors.
|
|
3327
|
+
* The list is not complete. Will add as needed.
|
|
3328
|
+
* Feel free to contribute.
|
|
3329
|
+
*/
|
|
3330
|
+
function isSystemError(code, err) {
|
|
3331
|
+
return !!err && err.code === code;
|
|
3332
|
+
}
|
|
3333
|
+
exports.isSystemError = isSystemError;
|
|
3334
|
+
//# sourceMappingURL=isNodeError.js.map
|
|
3335
|
+
|
|
3336
|
+
/***/ }),
|
|
3337
|
+
|
|
3338
|
+
/***/ "../../node_modules/type-plus/cjs/nominal-types/Brand.js":
|
|
3123
3339
|
/*!***************************************************************!*\
|
|
3124
|
-
!*** ../../node_modules/type-plus/
|
|
3340
|
+
!*** ../../node_modules/type-plus/cjs/nominal-types/Brand.js ***!
|
|
3125
3341
|
\***************************************************************/
|
|
3126
3342
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3127
3343
|
|
|
@@ -3131,7 +3347,7 @@ __exportStar(__webpack_require__(/*! ./Subtract */ "../../node_modules/type-plus
|
|
|
3131
3347
|
// <https://gist.github.com/dcolthorp/aa21cf87d847ae9942106435bf47565d>
|
|
3132
3348
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3133
3349
|
exports.brand = void 0;
|
|
3134
|
-
var types_1 = __webpack_require__(/*! ./types */ "../../node_modules/type-plus/
|
|
3350
|
+
var types_1 = __webpack_require__(/*! ./types */ "../../node_modules/type-plus/cjs/nominal-types/types.js");
|
|
3135
3351
|
function brand(type, subject) {
|
|
3136
3352
|
if (subject === undefined)
|
|
3137
3353
|
return function (subject) { return brand(type, subject); };
|
|
@@ -3146,9 +3362,9 @@ exports.brand = brand;
|
|
|
3146
3362
|
|
|
3147
3363
|
/***/ }),
|
|
3148
3364
|
|
|
3149
|
-
/***/ "../../node_modules/type-plus/
|
|
3365
|
+
/***/ "../../node_modules/type-plus/cjs/nominal-types/Flavor.js":
|
|
3150
3366
|
/*!****************************************************************!*\
|
|
3151
|
-
!*** ../../node_modules/type-plus/
|
|
3367
|
+
!*** ../../node_modules/type-plus/cjs/nominal-types/Flavor.js ***!
|
|
3152
3368
|
\****************************************************************/
|
|
3153
3369
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3154
3370
|
|
|
@@ -3158,11 +3374,10 @@ exports.brand = brand;
|
|
|
3158
3374
|
// <https://gist.github.com/dcolthorp/aa21cf87d847ae9942106435bf47565d>
|
|
3159
3375
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3160
3376
|
exports.flavor = void 0;
|
|
3161
|
-
var types_1 = __webpack_require__(/*! ./types */ "../../node_modules/type-plus/
|
|
3377
|
+
var types_1 = __webpack_require__(/*! ./types */ "../../node_modules/type-plus/cjs/nominal-types/types.js");
|
|
3162
3378
|
function flavor(type, subject) {
|
|
3163
|
-
if (subject === undefined)
|
|
3379
|
+
if (subject === undefined)
|
|
3164
3380
|
return function (subject) { return flavor(type, subject); };
|
|
3165
|
-
}
|
|
3166
3381
|
if (typeof subject === 'object' && subject !== null) {
|
|
3167
3382
|
// if subject is not an object, the branding will exist only in type-level.
|
|
3168
3383
|
subject[types_1.typeSym] = type;
|
|
@@ -3174,9 +3389,9 @@ exports.flavor = flavor;
|
|
|
3174
3389
|
|
|
3175
3390
|
/***/ }),
|
|
3176
3391
|
|
|
3177
|
-
/***/ "../../node_modules/type-plus/
|
|
3392
|
+
/***/ "../../node_modules/type-plus/cjs/nominal-types/index.js":
|
|
3178
3393
|
/*!***************************************************************!*\
|
|
3179
|
-
!*** ../../node_modules/type-plus/
|
|
3394
|
+
!*** ../../node_modules/type-plus/cjs/nominal-types/index.js ***!
|
|
3180
3395
|
\***************************************************************/
|
|
3181
3396
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3182
3397
|
|
|
@@ -3193,16 +3408,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
3193
3408
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3194
3409
|
};
|
|
3195
3410
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3196
|
-
__exportStar(__webpack_require__(/*! ./Brand */ "../../node_modules/type-plus/
|
|
3197
|
-
__exportStar(__webpack_require__(/*! ./Flavor */ "../../node_modules/type-plus/
|
|
3198
|
-
__exportStar(__webpack_require__(/*! ./nominalMatch */ "../../node_modules/type-plus/
|
|
3411
|
+
__exportStar(__webpack_require__(/*! ./Brand */ "../../node_modules/type-plus/cjs/nominal-types/Brand.js"), exports);
|
|
3412
|
+
__exportStar(__webpack_require__(/*! ./Flavor */ "../../node_modules/type-plus/cjs/nominal-types/Flavor.js"), exports);
|
|
3413
|
+
__exportStar(__webpack_require__(/*! ./nominalMatch */ "../../node_modules/type-plus/cjs/nominal-types/nominalMatch.js"), exports);
|
|
3199
3414
|
//# sourceMappingURL=index.js.map
|
|
3200
3415
|
|
|
3201
3416
|
/***/ }),
|
|
3202
3417
|
|
|
3203
|
-
/***/ "../../node_modules/type-plus/
|
|
3418
|
+
/***/ "../../node_modules/type-plus/cjs/nominal-types/nominalMatch.js":
|
|
3204
3419
|
/*!**********************************************************************!*\
|
|
3205
|
-
!*** ../../node_modules/type-plus/
|
|
3420
|
+
!*** ../../node_modules/type-plus/cjs/nominal-types/nominalMatch.js ***!
|
|
3206
3421
|
\**********************************************************************/
|
|
3207
3422
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3208
3423
|
|
|
@@ -3210,7 +3425,7 @@ __exportStar(__webpack_require__(/*! ./nominalMatch */ "../../node_modules/type-
|
|
|
3210
3425
|
|
|
3211
3426
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3212
3427
|
exports.nominalMatch = void 0;
|
|
3213
|
-
var types_1 = __webpack_require__(/*! ./types */ "../../node_modules/type-plus/
|
|
3428
|
+
var types_1 = __webpack_require__(/*! ./types */ "../../node_modules/type-plus/cjs/nominal-types/types.js");
|
|
3214
3429
|
function nominalMatch(a, b) {
|
|
3215
3430
|
if (typeof a === 'object' && a !== null && typeof b === 'object' && b !== null)
|
|
3216
3431
|
return a[types_1.typeSym] === b[types_1.typeSym];
|
|
@@ -3223,9 +3438,9 @@ exports.nominalMatch = nominalMatch;
|
|
|
3223
3438
|
|
|
3224
3439
|
/***/ }),
|
|
3225
3440
|
|
|
3226
|
-
/***/ "../../node_modules/type-plus/
|
|
3441
|
+
/***/ "../../node_modules/type-plus/cjs/nominal-types/types.js":
|
|
3227
3442
|
/*!***************************************************************!*\
|
|
3228
|
-
!*** ../../node_modules/type-plus/
|
|
3443
|
+
!*** ../../node_modules/type-plus/cjs/nominal-types/types.js ***!
|
|
3229
3444
|
\***************************************************************/
|
|
3230
3445
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3231
3446
|
|
|
@@ -3239,9 +3454,9 @@ exports.valueSym = Symbol('value');
|
|
|
3239
3454
|
|
|
3240
3455
|
/***/ }),
|
|
3241
3456
|
|
|
3242
|
-
/***/ "../../node_modules/type-plus/
|
|
3457
|
+
/***/ "../../node_modules/type-plus/cjs/object/ANotB.js":
|
|
3243
3458
|
/*!********************************************************!*\
|
|
3244
|
-
!*** ../../node_modules/type-plus/
|
|
3459
|
+
!*** ../../node_modules/type-plus/cjs/object/ANotB.js ***!
|
|
3245
3460
|
\********************************************************/
|
|
3246
3461
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3247
3462
|
|
|
@@ -3252,9 +3467,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3252
3467
|
|
|
3253
3468
|
/***/ }),
|
|
3254
3469
|
|
|
3255
|
-
/***/ "../../node_modules/type-plus/
|
|
3470
|
+
/***/ "../../node_modules/type-plus/cjs/object/AnyRecord.js":
|
|
3256
3471
|
/*!************************************************************!*\
|
|
3257
|
-
!*** ../../node_modules/type-plus/
|
|
3472
|
+
!*** ../../node_modules/type-plus/cjs/object/AnyRecord.js ***!
|
|
3258
3473
|
\************************************************************/
|
|
3259
3474
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3260
3475
|
|
|
@@ -3265,9 +3480,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3265
3480
|
|
|
3266
3481
|
/***/ }),
|
|
3267
3482
|
|
|
3268
|
-
/***/ "../../node_modules/type-plus/
|
|
3483
|
+
/***/ "../../node_modules/type-plus/cjs/object/ExcludePropType.js":
|
|
3269
3484
|
/*!******************************************************************!*\
|
|
3270
|
-
!*** ../../node_modules/type-plus/
|
|
3485
|
+
!*** ../../node_modules/type-plus/cjs/object/ExcludePropType.js ***!
|
|
3271
3486
|
\******************************************************************/
|
|
3272
3487
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3273
3488
|
|
|
@@ -3278,9 +3493,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3278
3493
|
|
|
3279
3494
|
/***/ }),
|
|
3280
3495
|
|
|
3281
|
-
/***/ "../../node_modules/type-plus/
|
|
3496
|
+
/***/ "../../node_modules/type-plus/cjs/object/IsDisjoint.js":
|
|
3282
3497
|
/*!*************************************************************!*\
|
|
3283
|
-
!*** ../../node_modules/type-plus/
|
|
3498
|
+
!*** ../../node_modules/type-plus/cjs/object/IsDisjoint.js ***!
|
|
3284
3499
|
\*************************************************************/
|
|
3285
3500
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3286
3501
|
|
|
@@ -3291,9 +3506,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3291
3506
|
|
|
3292
3507
|
/***/ }),
|
|
3293
3508
|
|
|
3294
|
-
/***/ "../../node_modules/type-plus/
|
|
3509
|
+
/***/ "../../node_modules/type-plus/cjs/object/IsRecord.js":
|
|
3295
3510
|
/*!***********************************************************!*\
|
|
3296
|
-
!*** ../../node_modules/type-plus/
|
|
3511
|
+
!*** ../../node_modules/type-plus/cjs/object/IsRecord.js ***!
|
|
3297
3512
|
\***********************************************************/
|
|
3298
3513
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3299
3514
|
|
|
@@ -3304,9 +3519,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3304
3519
|
|
|
3305
3520
|
/***/ }),
|
|
3306
3521
|
|
|
3307
|
-
/***/ "../../node_modules/type-plus/
|
|
3522
|
+
/***/ "../../node_modules/type-plus/cjs/object/KeyTypes.js":
|
|
3308
3523
|
/*!***********************************************************!*\
|
|
3309
|
-
!*** ../../node_modules/type-plus/
|
|
3524
|
+
!*** ../../node_modules/type-plus/cjs/object/KeyTypes.js ***!
|
|
3310
3525
|
\***********************************************************/
|
|
3311
3526
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3312
3527
|
|
|
@@ -3317,9 +3532,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3317
3532
|
|
|
3318
3533
|
/***/ }),
|
|
3319
3534
|
|
|
3320
|
-
/***/ "../../node_modules/type-plus/
|
|
3535
|
+
/***/ "../../node_modules/type-plus/cjs/object/KeyofOptional.js":
|
|
3321
3536
|
/*!****************************************************************!*\
|
|
3322
|
-
!*** ../../node_modules/type-plus/
|
|
3537
|
+
!*** ../../node_modules/type-plus/cjs/object/KeyofOptional.js ***!
|
|
3323
3538
|
\****************************************************************/
|
|
3324
3539
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3325
3540
|
|
|
@@ -3330,9 +3545,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3330
3545
|
|
|
3331
3546
|
/***/ }),
|
|
3332
3547
|
|
|
3333
|
-
/***/ "../../node_modules/type-plus/
|
|
3548
|
+
/***/ "../../node_modules/type-plus/cjs/object/KeysWithDiffType.js":
|
|
3334
3549
|
/*!*******************************************************************!*\
|
|
3335
|
-
!*** ../../node_modules/type-plus/
|
|
3550
|
+
!*** ../../node_modules/type-plus/cjs/object/KeysWithDiffType.js ***!
|
|
3336
3551
|
\*******************************************************************/
|
|
3337
3552
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3338
3553
|
|
|
@@ -3343,22 +3558,25 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3343
3558
|
|
|
3344
3559
|
/***/ }),
|
|
3345
3560
|
|
|
3346
|
-
/***/ "../../node_modules/type-plus/
|
|
3561
|
+
/***/ "../../node_modules/type-plus/cjs/object/KnownKeys.js":
|
|
3347
3562
|
/*!************************************************************!*\
|
|
3348
|
-
!*** ../../node_modules/type-plus/
|
|
3563
|
+
!*** ../../node_modules/type-plus/cjs/object/KnownKeys.js ***!
|
|
3349
3564
|
\************************************************************/
|
|
3350
3565
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3351
3566
|
|
|
3352
3567
|
"use strict";
|
|
3353
3568
|
|
|
3569
|
+
// Original by Klaus Meinhardt @ajafff
|
|
3570
|
+
// known from Gerrit Birkeland @Gerrit0
|
|
3571
|
+
// https://github.com/Microsoft/TypeScript/issues/25987#issuecomment-408339599
|
|
3354
3572
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3355
3573
|
//# sourceMappingURL=KnownKeys.js.map
|
|
3356
3574
|
|
|
3357
3575
|
/***/ }),
|
|
3358
3576
|
|
|
3359
|
-
/***/ "../../node_modules/type-plus/
|
|
3577
|
+
/***/ "../../node_modules/type-plus/cjs/object/OptionalKeys.js":
|
|
3360
3578
|
/*!***************************************************************!*\
|
|
3361
|
-
!*** ../../node_modules/type-plus/
|
|
3579
|
+
!*** ../../node_modules/type-plus/cjs/object/OptionalKeys.js ***!
|
|
3362
3580
|
\***************************************************************/
|
|
3363
3581
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3364
3582
|
|
|
@@ -3369,9 +3587,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3369
3587
|
|
|
3370
3588
|
/***/ }),
|
|
3371
3589
|
|
|
3372
|
-
/***/ "../../node_modules/type-plus/
|
|
3590
|
+
/***/ "../../node_modules/type-plus/cjs/object/Partial.js":
|
|
3373
3591
|
/*!**********************************************************!*\
|
|
3374
|
-
!*** ../../node_modules/type-plus/
|
|
3592
|
+
!*** ../../node_modules/type-plus/cjs/object/Partial.js ***!
|
|
3375
3593
|
\**********************************************************/
|
|
3376
3594
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3377
3595
|
|
|
@@ -3382,9 +3600,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3382
3600
|
|
|
3383
3601
|
/***/ }),
|
|
3384
3602
|
|
|
3385
|
-
/***/ "../../node_modules/type-plus/
|
|
3603
|
+
/***/ "../../node_modules/type-plus/cjs/object/RecursiveIntersect.js":
|
|
3386
3604
|
/*!*********************************************************************!*\
|
|
3387
|
-
!*** ../../node_modules/type-plus/
|
|
3605
|
+
!*** ../../node_modules/type-plus/cjs/object/RecursiveIntersect.js ***!
|
|
3388
3606
|
\*********************************************************************/
|
|
3389
3607
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3390
3608
|
|
|
@@ -3395,9 +3613,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3395
3613
|
|
|
3396
3614
|
/***/ }),
|
|
3397
3615
|
|
|
3398
|
-
/***/ "../../node_modules/type-plus/
|
|
3616
|
+
/***/ "../../node_modules/type-plus/cjs/object/RecursivePartial.js":
|
|
3399
3617
|
/*!*******************************************************************!*\
|
|
3400
|
-
!*** ../../node_modules/type-plus/
|
|
3618
|
+
!*** ../../node_modules/type-plus/cjs/object/RecursivePartial.js ***!
|
|
3401
3619
|
\*******************************************************************/
|
|
3402
3620
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3403
3621
|
|
|
@@ -3408,9 +3626,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3408
3626
|
|
|
3409
3627
|
/***/ }),
|
|
3410
3628
|
|
|
3411
|
-
/***/ "../../node_modules/type-plus/
|
|
3629
|
+
/***/ "../../node_modules/type-plus/cjs/object/RecursiveRequired.js":
|
|
3412
3630
|
/*!********************************************************************!*\
|
|
3413
|
-
!*** ../../node_modules/type-plus/
|
|
3631
|
+
!*** ../../node_modules/type-plus/cjs/object/RecursiveRequired.js ***!
|
|
3414
3632
|
\********************************************************************/
|
|
3415
3633
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3416
3634
|
|
|
@@ -3421,9 +3639,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3421
3639
|
|
|
3422
3640
|
/***/ }),
|
|
3423
3641
|
|
|
3424
|
-
/***/ "../../node_modules/type-plus/
|
|
3642
|
+
/***/ "../../node_modules/type-plus/cjs/object/Required.js":
|
|
3425
3643
|
/*!***********************************************************!*\
|
|
3426
|
-
!*** ../../node_modules/type-plus/
|
|
3644
|
+
!*** ../../node_modules/type-plus/cjs/object/Required.js ***!
|
|
3427
3645
|
\***********************************************************/
|
|
3428
3646
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3429
3647
|
|
|
@@ -3435,9 +3653,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3435
3653
|
|
|
3436
3654
|
/***/ }),
|
|
3437
3655
|
|
|
3438
|
-
/***/ "../../node_modules/type-plus/
|
|
3656
|
+
/***/ "../../node_modules/type-plus/cjs/object/RequiredKeys.js":
|
|
3439
3657
|
/*!***************************************************************!*\
|
|
3440
|
-
!*** ../../node_modules/type-plus/
|
|
3658
|
+
!*** ../../node_modules/type-plus/cjs/object/RequiredKeys.js ***!
|
|
3441
3659
|
\***************************************************************/
|
|
3442
3660
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3443
3661
|
|
|
@@ -3448,9 +3666,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3448
3666
|
|
|
3449
3667
|
/***/ }),
|
|
3450
3668
|
|
|
3451
|
-
/***/ "../../node_modules/type-plus/
|
|
3669
|
+
/***/ "../../node_modules/type-plus/cjs/object/SpreadRecord.js":
|
|
3452
3670
|
/*!***************************************************************!*\
|
|
3453
|
-
!*** ../../node_modules/type-plus/
|
|
3671
|
+
!*** ../../node_modules/type-plus/cjs/object/SpreadRecord.js ***!
|
|
3454
3672
|
\***************************************************************/
|
|
3455
3673
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3456
3674
|
|
|
@@ -3461,9 +3679,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3461
3679
|
|
|
3462
3680
|
/***/ }),
|
|
3463
3681
|
|
|
3464
|
-
/***/ "../../node_modules/type-plus/
|
|
3682
|
+
/***/ "../../node_modules/type-plus/cjs/object/ValueOf.js":
|
|
3465
3683
|
/*!**********************************************************!*\
|
|
3466
|
-
!*** ../../node_modules/type-plus/
|
|
3684
|
+
!*** ../../node_modules/type-plus/cjs/object/ValueOf.js ***!
|
|
3467
3685
|
\**********************************************************/
|
|
3468
3686
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3469
3687
|
|
|
@@ -3474,9 +3692,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3474
3692
|
|
|
3475
3693
|
/***/ }),
|
|
3476
3694
|
|
|
3477
|
-
/***/ "../../node_modules/type-plus/
|
|
3695
|
+
/***/ "../../node_modules/type-plus/cjs/object/everyKey.js":
|
|
3478
3696
|
/*!***********************************************************!*\
|
|
3479
|
-
!*** ../../node_modules/type-plus/
|
|
3697
|
+
!*** ../../node_modules/type-plus/cjs/object/everyKey.js ***!
|
|
3480
3698
|
\***********************************************************/
|
|
3481
3699
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3482
3700
|
|
|
@@ -3492,9 +3710,9 @@ exports.everyKey = everyKey;
|
|
|
3492
3710
|
|
|
3493
3711
|
/***/ }),
|
|
3494
3712
|
|
|
3495
|
-
/***/ "../../node_modules/type-plus/
|
|
3713
|
+
/***/ "../../node_modules/type-plus/cjs/object/facade.js":
|
|
3496
3714
|
/*!*********************************************************!*\
|
|
3497
|
-
!*** ../../node_modules/type-plus/
|
|
3715
|
+
!*** ../../node_modules/type-plus/cjs/object/facade.js ***!
|
|
3498
3716
|
\*********************************************************/
|
|
3499
3717
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3500
3718
|
|
|
@@ -3510,14 +3728,17 @@ function facade(subject) {
|
|
|
3510
3728
|
return props.reduce(function (p, k) {
|
|
3511
3729
|
var prop = subject[k];
|
|
3512
3730
|
if (typeof prop === 'function') {
|
|
3731
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
|
|
3513
3732
|
p[k] = prop.bind(subject);
|
|
3514
3733
|
}
|
|
3515
3734
|
else {
|
|
3516
3735
|
Object.defineProperty(p, k, {
|
|
3517
3736
|
get: function () {
|
|
3737
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
3518
3738
|
return subject[k];
|
|
3519
3739
|
},
|
|
3520
3740
|
set: function (value) {
|
|
3741
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-assignment
|
|
3521
3742
|
return subject[k] = value;
|
|
3522
3743
|
},
|
|
3523
3744
|
});
|
|
@@ -3530,9 +3751,9 @@ exports.facade = facade;
|
|
|
3530
3751
|
|
|
3531
3752
|
/***/ }),
|
|
3532
3753
|
|
|
3533
|
-
/***/ "../../node_modules/type-plus/
|
|
3754
|
+
/***/ "../../node_modules/type-plus/cjs/object/filterKey.js":
|
|
3534
3755
|
/*!************************************************************!*\
|
|
3535
|
-
!*** ../../node_modules/type-plus/
|
|
3756
|
+
!*** ../../node_modules/type-plus/cjs/object/filterKey.js ***!
|
|
3536
3757
|
\************************************************************/
|
|
3537
3758
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3538
3759
|
|
|
@@ -3548,9 +3769,9 @@ exports.filterKey = filterKey;
|
|
|
3548
3769
|
|
|
3549
3770
|
/***/ }),
|
|
3550
3771
|
|
|
3551
|
-
/***/ "../../node_modules/type-plus/
|
|
3772
|
+
/***/ "../../node_modules/type-plus/cjs/object/findKey.js":
|
|
3552
3773
|
/*!**********************************************************!*\
|
|
3553
|
-
!*** ../../node_modules/type-plus/
|
|
3774
|
+
!*** ../../node_modules/type-plus/cjs/object/findKey.js ***!
|
|
3554
3775
|
\**********************************************************/
|
|
3555
3776
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3556
3777
|
|
|
@@ -3566,9 +3787,9 @@ exports.findKey = findKey;
|
|
|
3566
3787
|
|
|
3567
3788
|
/***/ }),
|
|
3568
3789
|
|
|
3569
|
-
/***/ "../../node_modules/type-plus/
|
|
3790
|
+
/***/ "../../node_modules/type-plus/cjs/object/forEachKey.js":
|
|
3570
3791
|
/*!*************************************************************!*\
|
|
3571
|
-
!*** ../../node_modules/type-plus/
|
|
3792
|
+
!*** ../../node_modules/type-plus/cjs/object/forEachKey.js ***!
|
|
3572
3793
|
\*************************************************************/
|
|
3573
3794
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3574
3795
|
|
|
@@ -3584,9 +3805,9 @@ exports.forEachKey = forEachKey;
|
|
|
3584
3805
|
|
|
3585
3806
|
/***/ }),
|
|
3586
3807
|
|
|
3587
|
-
/***/ "../../node_modules/type-plus/
|
|
3808
|
+
/***/ "../../node_modules/type-plus/cjs/object/getField.js":
|
|
3588
3809
|
/*!***********************************************************!*\
|
|
3589
|
-
!*** ../../node_modules/type-plus/
|
|
3810
|
+
!*** ../../node_modules/type-plus/cjs/object/getField.js ***!
|
|
3590
3811
|
\***********************************************************/
|
|
3591
3812
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3592
3813
|
|
|
@@ -3602,9 +3823,9 @@ exports.getField = getField;
|
|
|
3602
3823
|
|
|
3603
3824
|
/***/ }),
|
|
3604
3825
|
|
|
3605
|
-
/***/ "../../node_modules/type-plus/
|
|
3826
|
+
/***/ "../../node_modules/type-plus/cjs/object/hasKey.js":
|
|
3606
3827
|
/*!*********************************************************!*\
|
|
3607
|
-
!*** ../../node_modules/type-plus/
|
|
3828
|
+
!*** ../../node_modules/type-plus/cjs/object/hasKey.js ***!
|
|
3608
3829
|
\*********************************************************/
|
|
3609
3830
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3610
3831
|
|
|
@@ -3624,9 +3845,9 @@ exports.hasKey = hasKey;
|
|
|
3624
3845
|
|
|
3625
3846
|
/***/ }),
|
|
3626
3847
|
|
|
3627
|
-
/***/ "../../node_modules/type-plus/
|
|
3848
|
+
/***/ "../../node_modules/type-plus/cjs/object/hasProperty.js":
|
|
3628
3849
|
/*!**************************************************************!*\
|
|
3629
|
-
!*** ../../node_modules/type-plus/
|
|
3850
|
+
!*** ../../node_modules/type-plus/cjs/object/hasProperty.js ***!
|
|
3630
3851
|
\**************************************************************/
|
|
3631
3852
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3632
3853
|
|
|
@@ -3642,9 +3863,9 @@ exports.hasProperty = hasProperty;
|
|
|
3642
3863
|
|
|
3643
3864
|
/***/ }),
|
|
3644
3865
|
|
|
3645
|
-
/***/ "../../node_modules/type-plus/
|
|
3866
|
+
/***/ "../../node_modules/type-plus/cjs/object/index.js":
|
|
3646
3867
|
/*!********************************************************!*\
|
|
3647
|
-
!*** ../../node_modules/type-plus/
|
|
3868
|
+
!*** ../../node_modules/type-plus/cjs/object/index.js ***!
|
|
3648
3869
|
\********************************************************/
|
|
3649
3870
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3650
3871
|
|
|
@@ -3661,47 +3882,47 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
3661
3882
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3662
3883
|
};
|
|
3663
3884
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3664
|
-
__exportStar(__webpack_require__(/*! ../object/IsDisjoint */ "../../node_modules/type-plus/
|
|
3665
|
-
__exportStar(__webpack_require__(/*! ./ANotB */ "../../node_modules/type-plus/
|
|
3666
|
-
__exportStar(__webpack_require__(/*! ./AnyRecord */ "../../node_modules/type-plus/
|
|
3667
|
-
__exportStar(__webpack_require__(/*! ./everyKey */ "../../node_modules/type-plus/
|
|
3668
|
-
__exportStar(__webpack_require__(/*! ./ExcludePropType */ "../../node_modules/type-plus/
|
|
3669
|
-
__exportStar(__webpack_require__(/*! ./facade */ "../../node_modules/type-plus/
|
|
3670
|
-
__exportStar(__webpack_require__(/*! ./filterKey */ "../../node_modules/type-plus/
|
|
3671
|
-
__exportStar(__webpack_require__(/*! ./findKey */ "../../node_modules/type-plus/
|
|
3672
|
-
__exportStar(__webpack_require__(/*! ./forEachKey */ "../../node_modules/type-plus/
|
|
3673
|
-
__exportStar(__webpack_require__(/*! ./getField */ "../../node_modules/type-plus/
|
|
3674
|
-
__exportStar(__webpack_require__(/*! ./hasKey */ "../../node_modules/type-plus/
|
|
3675
|
-
__exportStar(__webpack_require__(/*! ./hasProperty */ "../../node_modules/type-plus/
|
|
3676
|
-
__exportStar(__webpack_require__(/*! ./IsRecord */ "../../node_modules/type-plus/
|
|
3677
|
-
__exportStar(__webpack_require__(/*! ./KeyofOptional */ "../../node_modules/type-plus/
|
|
3678
|
-
__exportStar(__webpack_require__(/*! ./KeysWithDiffType */ "../../node_modules/type-plus/
|
|
3679
|
-
__exportStar(__webpack_require__(/*! ./KeyTypes */ "../../node_modules/type-plus/
|
|
3680
|
-
__exportStar(__webpack_require__(/*! ./KnownKeys */ "../../node_modules/type-plus/
|
|
3681
|
-
__exportStar(__webpack_require__(/*! ./mapKey */ "../../node_modules/type-plus/
|
|
3682
|
-
__exportStar(__webpack_require__(/*! ./mapProperties */ "../../node_modules/type-plus/
|
|
3683
|
-
__exportStar(__webpack_require__(/*! ./omit */ "../../node_modules/type-plus/
|
|
3684
|
-
__exportStar(__webpack_require__(/*! ./OptionalKeys */ "../../node_modules/type-plus/
|
|
3685
|
-
__exportStar(__webpack_require__(/*! ./Partial */ "../../node_modules/type-plus/
|
|
3686
|
-
__exportStar(__webpack_require__(/*! ./pick */ "../../node_modules/type-plus/
|
|
3687
|
-
__exportStar(__webpack_require__(/*! ./RecursiveIntersect */ "../../node_modules/type-plus/
|
|
3688
|
-
__exportStar(__webpack_require__(/*! ./RecursivePartial */ "../../node_modules/type-plus/
|
|
3689
|
-
__exportStar(__webpack_require__(/*! ./RecursiveRequired */ "../../node_modules/type-plus/
|
|
3690
|
-
__exportStar(__webpack_require__(/*! ./reduceKey */ "../../node_modules/type-plus/
|
|
3691
|
-
__exportStar(__webpack_require__(/*! ./replaceProperty */ "../../node_modules/type-plus/
|
|
3692
|
-
__exportStar(__webpack_require__(/*! ./Required */ "../../node_modules/type-plus/
|
|
3693
|
-
__exportStar(__webpack_require__(/*! ./RequiredKeys */ "../../node_modules/type-plus/
|
|
3694
|
-
__exportStar(__webpack_require__(/*! ./someKey */ "../../node_modules/type-plus/
|
|
3695
|
-
__exportStar(__webpack_require__(/*! ./SpreadRecord */ "../../node_modules/type-plus/
|
|
3696
|
-
__exportStar(__webpack_require__(/*! ./typeOverrideIncompatible */ "../../node_modules/type-plus/
|
|
3697
|
-
__exportStar(__webpack_require__(/*! ./ValueOf */ "../../node_modules/type-plus/
|
|
3885
|
+
__exportStar(__webpack_require__(/*! ../object/IsDisjoint */ "../../node_modules/type-plus/cjs/object/IsDisjoint.js"), exports);
|
|
3886
|
+
__exportStar(__webpack_require__(/*! ./ANotB */ "../../node_modules/type-plus/cjs/object/ANotB.js"), exports);
|
|
3887
|
+
__exportStar(__webpack_require__(/*! ./AnyRecord */ "../../node_modules/type-plus/cjs/object/AnyRecord.js"), exports);
|
|
3888
|
+
__exportStar(__webpack_require__(/*! ./everyKey */ "../../node_modules/type-plus/cjs/object/everyKey.js"), exports);
|
|
3889
|
+
__exportStar(__webpack_require__(/*! ./ExcludePropType */ "../../node_modules/type-plus/cjs/object/ExcludePropType.js"), exports);
|
|
3890
|
+
__exportStar(__webpack_require__(/*! ./facade */ "../../node_modules/type-plus/cjs/object/facade.js"), exports);
|
|
3891
|
+
__exportStar(__webpack_require__(/*! ./filterKey */ "../../node_modules/type-plus/cjs/object/filterKey.js"), exports);
|
|
3892
|
+
__exportStar(__webpack_require__(/*! ./findKey */ "../../node_modules/type-plus/cjs/object/findKey.js"), exports);
|
|
3893
|
+
__exportStar(__webpack_require__(/*! ./forEachKey */ "../../node_modules/type-plus/cjs/object/forEachKey.js"), exports);
|
|
3894
|
+
__exportStar(__webpack_require__(/*! ./getField */ "../../node_modules/type-plus/cjs/object/getField.js"), exports);
|
|
3895
|
+
__exportStar(__webpack_require__(/*! ./hasKey */ "../../node_modules/type-plus/cjs/object/hasKey.js"), exports);
|
|
3896
|
+
__exportStar(__webpack_require__(/*! ./hasProperty */ "../../node_modules/type-plus/cjs/object/hasProperty.js"), exports);
|
|
3897
|
+
__exportStar(__webpack_require__(/*! ./IsRecord */ "../../node_modules/type-plus/cjs/object/IsRecord.js"), exports);
|
|
3898
|
+
__exportStar(__webpack_require__(/*! ./KeyofOptional */ "../../node_modules/type-plus/cjs/object/KeyofOptional.js"), exports);
|
|
3899
|
+
__exportStar(__webpack_require__(/*! ./KeysWithDiffType */ "../../node_modules/type-plus/cjs/object/KeysWithDiffType.js"), exports);
|
|
3900
|
+
__exportStar(__webpack_require__(/*! ./KeyTypes */ "../../node_modules/type-plus/cjs/object/KeyTypes.js"), exports);
|
|
3901
|
+
__exportStar(__webpack_require__(/*! ./KnownKeys */ "../../node_modules/type-plus/cjs/object/KnownKeys.js"), exports);
|
|
3902
|
+
__exportStar(__webpack_require__(/*! ./mapKey */ "../../node_modules/type-plus/cjs/object/mapKey.js"), exports);
|
|
3903
|
+
__exportStar(__webpack_require__(/*! ./mapProperties */ "../../node_modules/type-plus/cjs/object/mapProperties.js"), exports);
|
|
3904
|
+
__exportStar(__webpack_require__(/*! ./omit */ "../../node_modules/type-plus/cjs/object/omit.js"), exports);
|
|
3905
|
+
__exportStar(__webpack_require__(/*! ./OptionalKeys */ "../../node_modules/type-plus/cjs/object/OptionalKeys.js"), exports);
|
|
3906
|
+
__exportStar(__webpack_require__(/*! ./Partial */ "../../node_modules/type-plus/cjs/object/Partial.js"), exports);
|
|
3907
|
+
__exportStar(__webpack_require__(/*! ./pick */ "../../node_modules/type-plus/cjs/object/pick.js"), exports);
|
|
3908
|
+
__exportStar(__webpack_require__(/*! ./RecursiveIntersect */ "../../node_modules/type-plus/cjs/object/RecursiveIntersect.js"), exports);
|
|
3909
|
+
__exportStar(__webpack_require__(/*! ./RecursivePartial */ "../../node_modules/type-plus/cjs/object/RecursivePartial.js"), exports);
|
|
3910
|
+
__exportStar(__webpack_require__(/*! ./RecursiveRequired */ "../../node_modules/type-plus/cjs/object/RecursiveRequired.js"), exports);
|
|
3911
|
+
__exportStar(__webpack_require__(/*! ./reduceKey */ "../../node_modules/type-plus/cjs/object/reduceKey.js"), exports);
|
|
3912
|
+
__exportStar(__webpack_require__(/*! ./replaceProperty */ "../../node_modules/type-plus/cjs/object/replaceProperty.js"), exports);
|
|
3913
|
+
__exportStar(__webpack_require__(/*! ./Required */ "../../node_modules/type-plus/cjs/object/Required.js"), exports);
|
|
3914
|
+
__exportStar(__webpack_require__(/*! ./RequiredKeys */ "../../node_modules/type-plus/cjs/object/RequiredKeys.js"), exports);
|
|
3915
|
+
__exportStar(__webpack_require__(/*! ./someKey */ "../../node_modules/type-plus/cjs/object/someKey.js"), exports);
|
|
3916
|
+
__exportStar(__webpack_require__(/*! ./SpreadRecord */ "../../node_modules/type-plus/cjs/object/SpreadRecord.js"), exports);
|
|
3917
|
+
__exportStar(__webpack_require__(/*! ./typeOverrideIncompatible */ "../../node_modules/type-plus/cjs/object/typeOverrideIncompatible.js"), exports);
|
|
3918
|
+
__exportStar(__webpack_require__(/*! ./ValueOf */ "../../node_modules/type-plus/cjs/object/ValueOf.js"), exports);
|
|
3698
3919
|
//# sourceMappingURL=index.js.map
|
|
3699
3920
|
|
|
3700
3921
|
/***/ }),
|
|
3701
3922
|
|
|
3702
|
-
/***/ "../../node_modules/type-plus/
|
|
3923
|
+
/***/ "../../node_modules/type-plus/cjs/object/mapKey.js":
|
|
3703
3924
|
/*!*********************************************************!*\
|
|
3704
|
-
!*** ../../node_modules/type-plus/
|
|
3925
|
+
!*** ../../node_modules/type-plus/cjs/object/mapKey.js ***!
|
|
3705
3926
|
\*********************************************************/
|
|
3706
3927
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3707
3928
|
|
|
@@ -3717,9 +3938,9 @@ exports.mapKey = mapKey;
|
|
|
3717
3938
|
|
|
3718
3939
|
/***/ }),
|
|
3719
3940
|
|
|
3720
|
-
/***/ "../../node_modules/type-plus/
|
|
3941
|
+
/***/ "../../node_modules/type-plus/cjs/object/mapProperties.js":
|
|
3721
3942
|
/*!****************************************************************!*\
|
|
3722
|
-
!*** ../../node_modules/type-plus/
|
|
3943
|
+
!*** ../../node_modules/type-plus/cjs/object/mapProperties.js ***!
|
|
3723
3944
|
\****************************************************************/
|
|
3724
3945
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3725
3946
|
|
|
@@ -3727,7 +3948,7 @@ exports.mapKey = mapKey;
|
|
|
3727
3948
|
|
|
3728
3949
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3729
3950
|
exports.mapProperties = void 0;
|
|
3730
|
-
var reduceKey_1 = __webpack_require__(/*! ./reduceKey */ "../../node_modules/type-plus/
|
|
3951
|
+
var reduceKey_1 = __webpack_require__(/*! ./reduceKey */ "../../node_modules/type-plus/cjs/object/reduceKey.js");
|
|
3731
3952
|
/**
|
|
3732
3953
|
* An Object-specific version of `map`.
|
|
3733
3954
|
* Original source:
|
|
@@ -3737,7 +3958,7 @@ var reduceKey_1 = __webpack_require__(/*! ./reduceKey */ "../../node_modules/typ
|
|
|
3737
3958
|
* I keep this parameter order because this parameter order provides better type inference.
|
|
3738
3959
|
*/
|
|
3739
3960
|
function mapProperties(subject, callbackfn) {
|
|
3740
|
-
return reduceKey_1.reduceByKey(subject, function (p, key) { return (p[key] = callbackfn(subject[key], key, subject),
|
|
3961
|
+
return (0, reduceKey_1.reduceByKey)(subject, function (p, key) { return (p[key] = callbackfn(subject[key], key, subject),
|
|
3741
3962
|
p); }, {});
|
|
3742
3963
|
}
|
|
3743
3964
|
exports.mapProperties = mapProperties;
|
|
@@ -3745,9 +3966,9 @@ exports.mapProperties = mapProperties;
|
|
|
3745
3966
|
|
|
3746
3967
|
/***/ }),
|
|
3747
3968
|
|
|
3748
|
-
/***/ "../../node_modules/type-plus/
|
|
3969
|
+
/***/ "../../node_modules/type-plus/cjs/object/omit.js":
|
|
3749
3970
|
/*!*******************************************************!*\
|
|
3750
|
-
!*** ../../node_modules/type-plus/
|
|
3971
|
+
!*** ../../node_modules/type-plus/cjs/object/omit.js ***!
|
|
3751
3972
|
\*******************************************************/
|
|
3752
3973
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3753
3974
|
|
|
@@ -3755,13 +3976,13 @@ exports.mapProperties = mapProperties;
|
|
|
3755
3976
|
|
|
3756
3977
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3757
3978
|
exports.omit = void 0;
|
|
3758
|
-
var object_1 = __webpack_require__(/*! ../object */ "../../node_modules/type-plus/
|
|
3979
|
+
var object_1 = __webpack_require__(/*! ../object */ "../../node_modules/type-plus/cjs/object/index.js");
|
|
3759
3980
|
function omit(subject) {
|
|
3760
3981
|
var props = [];
|
|
3761
3982
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3762
3983
|
props[_i - 1] = arguments[_i];
|
|
3763
3984
|
}
|
|
3764
|
-
return object_1.reduceByKey(subject, function (p, k) {
|
|
3985
|
+
return (0, object_1.reduceByKey)(subject, function (p, k) {
|
|
3765
3986
|
if (props.indexOf(k) === -1)
|
|
3766
3987
|
p[k] = subject[k];
|
|
3767
3988
|
return p;
|
|
@@ -3772,9 +3993,9 @@ exports.omit = omit;
|
|
|
3772
3993
|
|
|
3773
3994
|
/***/ }),
|
|
3774
3995
|
|
|
3775
|
-
/***/ "../../node_modules/type-plus/
|
|
3996
|
+
/***/ "../../node_modules/type-plus/cjs/object/pick.js":
|
|
3776
3997
|
/*!*******************************************************!*\
|
|
3777
|
-
!*** ../../node_modules/type-plus/
|
|
3998
|
+
!*** ../../node_modules/type-plus/cjs/object/pick.js ***!
|
|
3778
3999
|
\*******************************************************/
|
|
3779
4000
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3780
4001
|
|
|
@@ -3782,13 +4003,13 @@ exports.omit = omit;
|
|
|
3782
4003
|
|
|
3783
4004
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3784
4005
|
exports.pick = void 0;
|
|
3785
|
-
var reduceKey_1 = __webpack_require__(/*! ./reduceKey */ "../../node_modules/type-plus/
|
|
4006
|
+
var reduceKey_1 = __webpack_require__(/*! ./reduceKey */ "../../node_modules/type-plus/cjs/object/reduceKey.js");
|
|
3786
4007
|
function pick(subject) {
|
|
3787
4008
|
var props = [];
|
|
3788
4009
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3789
4010
|
props[_i - 1] = arguments[_i];
|
|
3790
4011
|
}
|
|
3791
|
-
return reduceKey_1.reduceByKey(subject, function (p, k) {
|
|
4012
|
+
return (0, reduceKey_1.reduceByKey)(subject, function (p, k) {
|
|
3792
4013
|
if (props.indexOf(k) >= 0)
|
|
3793
4014
|
p[k] = subject[k];
|
|
3794
4015
|
return p;
|
|
@@ -3799,9 +4020,9 @@ exports.pick = pick;
|
|
|
3799
4020
|
|
|
3800
4021
|
/***/ }),
|
|
3801
4022
|
|
|
3802
|
-
/***/ "../../node_modules/type-plus/
|
|
4023
|
+
/***/ "../../node_modules/type-plus/cjs/object/reduceKey.js":
|
|
3803
4024
|
/*!************************************************************!*\
|
|
3804
|
-
!*** ../../node_modules/type-plus/
|
|
4025
|
+
!*** ../../node_modules/type-plus/cjs/object/reduceKey.js ***!
|
|
3805
4026
|
\************************************************************/
|
|
3806
4027
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3807
4028
|
|
|
@@ -3821,9 +4042,9 @@ exports.reduceKey = reduceByKey;
|
|
|
3821
4042
|
|
|
3822
4043
|
/***/ }),
|
|
3823
4044
|
|
|
3824
|
-
/***/ "../../node_modules/type-plus/
|
|
4045
|
+
/***/ "../../node_modules/type-plus/cjs/object/replaceProperty.js":
|
|
3825
4046
|
/*!******************************************************************!*\
|
|
3826
|
-
!*** ../../node_modules/type-plus/
|
|
4047
|
+
!*** ../../node_modules/type-plus/cjs/object/replaceProperty.js ***!
|
|
3827
4048
|
\******************************************************************/
|
|
3828
4049
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3829
4050
|
|
|
@@ -3851,9 +4072,9 @@ exports.replaceProperty = replaceProperty;
|
|
|
3851
4072
|
|
|
3852
4073
|
/***/ }),
|
|
3853
4074
|
|
|
3854
|
-
/***/ "../../node_modules/type-plus/
|
|
4075
|
+
/***/ "../../node_modules/type-plus/cjs/object/someKey.js":
|
|
3855
4076
|
/*!**********************************************************!*\
|
|
3856
|
-
!*** ../../node_modules/type-plus/
|
|
4077
|
+
!*** ../../node_modules/type-plus/cjs/object/someKey.js ***!
|
|
3857
4078
|
\**********************************************************/
|
|
3858
4079
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3859
4080
|
|
|
@@ -3869,9 +4090,9 @@ exports.someKey = someKey;
|
|
|
3869
4090
|
|
|
3870
4091
|
/***/ }),
|
|
3871
4092
|
|
|
3872
|
-
/***/ "../../node_modules/type-plus/
|
|
4093
|
+
/***/ "../../node_modules/type-plus/cjs/object/typeOverrideIncompatible.js":
|
|
3873
4094
|
/*!***************************************************************************!*\
|
|
3874
|
-
!*** ../../node_modules/type-plus/
|
|
4095
|
+
!*** ../../node_modules/type-plus/cjs/object/typeOverrideIncompatible.js ***!
|
|
3875
4096
|
\***************************************************************************/
|
|
3876
4097
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3877
4098
|
|
|
@@ -3900,9 +4121,9 @@ exports.typeOverrideIncompatible = typeOverrideIncompatible;
|
|
|
3900
4121
|
|
|
3901
4122
|
/***/ }),
|
|
3902
4123
|
|
|
3903
|
-
/***/ "../../node_modules/type-plus/
|
|
4124
|
+
/***/ "../../node_modules/type-plus/cjs/predicates/CanAssign.js":
|
|
3904
4125
|
/*!****************************************************************!*\
|
|
3905
|
-
!*** ../../node_modules/type-plus/
|
|
4126
|
+
!*** ../../node_modules/type-plus/cjs/predicates/CanAssign.js ***!
|
|
3906
4127
|
\****************************************************************/
|
|
3907
4128
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3908
4129
|
|
|
@@ -3918,9 +4139,9 @@ exports.canAssign = canAssign;
|
|
|
3918
4139
|
|
|
3919
4140
|
/***/ }),
|
|
3920
4141
|
|
|
3921
|
-
/***/ "../../node_modules/type-plus/
|
|
4142
|
+
/***/ "../../node_modules/type-plus/cjs/predicates/Equal.js":
|
|
3922
4143
|
/*!************************************************************!*\
|
|
3923
|
-
!*** ../../node_modules/type-plus/
|
|
4144
|
+
!*** ../../node_modules/type-plus/cjs/predicates/Equal.js ***!
|
|
3924
4145
|
\************************************************************/
|
|
3925
4146
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3926
4147
|
|
|
@@ -3931,9 +4152,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3931
4152
|
|
|
3932
4153
|
/***/ }),
|
|
3933
4154
|
|
|
3934
|
-
/***/ "../../node_modules/type-plus/
|
|
4155
|
+
/***/ "../../node_modules/type-plus/cjs/predicates/Extends.js":
|
|
3935
4156
|
/*!**************************************************************!*\
|
|
3936
|
-
!*** ../../node_modules/type-plus/
|
|
4157
|
+
!*** ../../node_modules/type-plus/cjs/predicates/Extends.js ***!
|
|
3937
4158
|
\**************************************************************/
|
|
3938
4159
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3939
4160
|
|
|
@@ -3944,9 +4165,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3944
4165
|
|
|
3945
4166
|
/***/ }),
|
|
3946
4167
|
|
|
3947
|
-
/***/ "../../node_modules/type-plus/
|
|
4168
|
+
/***/ "../../node_modules/type-plus/cjs/predicates/If.js":
|
|
3948
4169
|
/*!*********************************************************!*\
|
|
3949
|
-
!*** ../../node_modules/type-plus/
|
|
4170
|
+
!*** ../../node_modules/type-plus/cjs/predicates/If.js ***!
|
|
3950
4171
|
\*********************************************************/
|
|
3951
4172
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3952
4173
|
|
|
@@ -3957,9 +4178,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3957
4178
|
|
|
3958
4179
|
/***/ }),
|
|
3959
4180
|
|
|
3960
|
-
/***/ "../../node_modules/type-plus/
|
|
4181
|
+
/***/ "../../node_modules/type-plus/cjs/predicates/index.js":
|
|
3961
4182
|
/*!************************************************************!*\
|
|
3962
|
-
!*** ../../node_modules/type-plus/
|
|
4183
|
+
!*** ../../node_modules/type-plus/cjs/predicates/index.js ***!
|
|
3963
4184
|
\************************************************************/
|
|
3964
4185
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3965
4186
|
|
|
@@ -3976,30 +4197,44 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
3976
4197
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3977
4198
|
};
|
|
3978
4199
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3979
|
-
__exportStar(__webpack_require__(/*! ./CanAssign */ "../../node_modules/type-plus/
|
|
3980
|
-
__exportStar(__webpack_require__(/*! ./Equal */ "../../node_modules/type-plus/
|
|
3981
|
-
__exportStar(__webpack_require__(/*! ./Extends */ "../../node_modules/type-plus/
|
|
3982
|
-
__exportStar(__webpack_require__(/*! ./If */ "../../node_modules/type-plus/
|
|
3983
|
-
__exportStar(__webpack_require__(/*! ./isType */ "../../node_modules/type-plus/
|
|
3984
|
-
__exportStar(__webpack_require__(/*! ./logical */ "../../node_modules/type-plus/
|
|
4200
|
+
__exportStar(__webpack_require__(/*! ./CanAssign */ "../../node_modules/type-plus/cjs/predicates/CanAssign.js"), exports);
|
|
4201
|
+
__exportStar(__webpack_require__(/*! ./Equal */ "../../node_modules/type-plus/cjs/predicates/Equal.js"), exports);
|
|
4202
|
+
__exportStar(__webpack_require__(/*! ./Extends */ "../../node_modules/type-plus/cjs/predicates/Extends.js"), exports);
|
|
4203
|
+
__exportStar(__webpack_require__(/*! ./If */ "../../node_modules/type-plus/cjs/predicates/If.js"), exports);
|
|
4204
|
+
__exportStar(__webpack_require__(/*! ./isType */ "../../node_modules/type-plus/cjs/predicates/isType.js"), exports);
|
|
4205
|
+
__exportStar(__webpack_require__(/*! ./logical */ "../../node_modules/type-plus/cjs/predicates/logical.js"), exports);
|
|
4206
|
+
__exportStar(__webpack_require__(/*! ./isEmptyObject */ "../../node_modules/type-plus/cjs/predicates/isEmptyObject.js"), exports);
|
|
3985
4207
|
//# sourceMappingURL=index.js.map
|
|
3986
4208
|
|
|
3987
4209
|
/***/ }),
|
|
3988
4210
|
|
|
3989
|
-
/***/ "../../node_modules/type-plus/
|
|
3990
|
-
|
|
3991
|
-
!*** ../../node_modules/type-plus/
|
|
3992
|
-
|
|
3993
|
-
/***/ (function(__unused_webpack_module, exports
|
|
4211
|
+
/***/ "../../node_modules/type-plus/cjs/predicates/isEmptyObject.js":
|
|
4212
|
+
/*!********************************************************************!*\
|
|
4213
|
+
!*** ../../node_modules/type-plus/cjs/predicates/isEmptyObject.js ***!
|
|
4214
|
+
\********************************************************************/
|
|
4215
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
3994
4216
|
|
|
3995
4217
|
"use strict";
|
|
3996
4218
|
|
|
3997
4219
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4220
|
+
//# sourceMappingURL=isEmptyObject.js.map
|
|
4221
|
+
|
|
4222
|
+
/***/ }),
|
|
4223
|
+
|
|
4224
|
+
/***/ "../../node_modules/type-plus/cjs/predicates/isType.js":
|
|
4225
|
+
/*!*************************************************************!*\
|
|
4226
|
+
!*** ../../node_modules/type-plus/cjs/predicates/isType.js ***!
|
|
4227
|
+
\*************************************************************/
|
|
4228
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4229
|
+
|
|
4230
|
+
"use strict";
|
|
4231
|
+
|
|
4232
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4233
|
+
exports.isType = void 0;
|
|
4234
|
+
var class_1 = __webpack_require__(/*! ../class */ "../../node_modules/type-plus/cjs/class/index.js");
|
|
4235
|
+
function isType(subject, validator) {
|
|
4001
4236
|
if (validator) {
|
|
4002
|
-
if (class_1.isConstructor(validator))
|
|
4237
|
+
if ((0, class_1.isConstructor)(validator))
|
|
4003
4238
|
return subject instanceof validator;
|
|
4004
4239
|
else
|
|
4005
4240
|
return validator(subject);
|
|
@@ -4007,18 +4242,15 @@ function isType(subject, validator) {
|
|
|
4007
4242
|
return true;
|
|
4008
4243
|
}
|
|
4009
4244
|
exports.isType = isType;
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
if (subject === void 0) { subject = sym; }
|
|
4013
|
-
return subject === sym || subject === true;
|
|
4245
|
+
isType.t = function (subject) {
|
|
4246
|
+
return subject === undefined || subject === true;
|
|
4014
4247
|
};
|
|
4015
|
-
isType.
|
|
4016
|
-
|
|
4017
|
-
return subject === sym || subject === false;
|
|
4248
|
+
isType.f = function (subject) {
|
|
4249
|
+
return subject === undefined || subject === false;
|
|
4018
4250
|
};
|
|
4019
4251
|
/**
|
|
4020
4252
|
* are types A and B equals/not equals.
|
|
4021
|
-
* Slightly easier to use then `isType.
|
|
4253
|
+
* Slightly easier to use then `isType.t<>()` and `isType.f<>()`,
|
|
4022
4254
|
* when doing type level only equality comparison as you don't have to import `Equal<>`.
|
|
4023
4255
|
*/
|
|
4024
4256
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -4027,9 +4259,9 @@ isType.equal = function () { };
|
|
|
4027
4259
|
|
|
4028
4260
|
/***/ }),
|
|
4029
4261
|
|
|
4030
|
-
/***/ "../../node_modules/type-plus/
|
|
4262
|
+
/***/ "../../node_modules/type-plus/cjs/predicates/logical.js":
|
|
4031
4263
|
/*!**************************************************************!*\
|
|
4032
|
-
!*** ../../node_modules/type-plus/
|
|
4264
|
+
!*** ../../node_modules/type-plus/cjs/predicates/logical.js ***!
|
|
4033
4265
|
\**************************************************************/
|
|
4034
4266
|
/***/ (function(__unused_webpack_module, exports) {
|
|
4035
4267
|
|
|
@@ -4040,9 +4272,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
4040
4272
|
|
|
4041
4273
|
/***/ }),
|
|
4042
4274
|
|
|
4043
|
-
/***/ "../../node_modules/type-plus/
|
|
4275
|
+
/***/ "../../node_modules/type-plus/cjs/promise/PromiseValue.js":
|
|
4044
4276
|
/*!****************************************************************!*\
|
|
4045
|
-
!*** ../../node_modules/type-plus/
|
|
4277
|
+
!*** ../../node_modules/type-plus/cjs/promise/PromiseValue.js ***!
|
|
4046
4278
|
\****************************************************************/
|
|
4047
4279
|
/***/ (function(__unused_webpack_module, exports) {
|
|
4048
4280
|
|
|
@@ -4053,9 +4285,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
4053
4285
|
|
|
4054
4286
|
/***/ }),
|
|
4055
4287
|
|
|
4056
|
-
/***/ "../../node_modules/type-plus/
|
|
4288
|
+
/***/ "../../node_modules/type-plus/cjs/promise/PromiseValueMerge.js":
|
|
4057
4289
|
/*!*********************************************************************!*\
|
|
4058
|
-
!*** ../../node_modules/type-plus/
|
|
4290
|
+
!*** ../../node_modules/type-plus/cjs/promise/PromiseValueMerge.js ***!
|
|
4059
4291
|
\*********************************************************************/
|
|
4060
4292
|
/***/ (function(__unused_webpack_module, exports) {
|
|
4061
4293
|
|
|
@@ -4066,9 +4298,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
4066
4298
|
|
|
4067
4299
|
/***/ }),
|
|
4068
4300
|
|
|
4069
|
-
/***/ "../../node_modules/type-plus/
|
|
4301
|
+
/***/ "../../node_modules/type-plus/cjs/promise/index.js":
|
|
4070
4302
|
/*!*********************************************************!*\
|
|
4071
|
-
!*** ../../node_modules/type-plus/
|
|
4303
|
+
!*** ../../node_modules/type-plus/cjs/promise/index.js ***!
|
|
4072
4304
|
\*********************************************************/
|
|
4073
4305
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4074
4306
|
|
|
@@ -4085,17 +4317,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
4085
4317
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4086
4318
|
};
|
|
4087
4319
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4088
|
-
__exportStar(__webpack_require__(/*! ./isPromise */ "../../node_modules/type-plus/
|
|
4089
|
-
__exportStar(__webpack_require__(/*! ./PromiseValue */ "../../node_modules/type-plus/
|
|
4090
|
-
__exportStar(__webpack_require__(/*! ./PromiseValueMerge */ "../../node_modules/type-plus/
|
|
4091
|
-
__exportStar(__webpack_require__(/*! ./mapSeries */ "../../node_modules/type-plus/
|
|
4320
|
+
__exportStar(__webpack_require__(/*! ./isPromise */ "../../node_modules/type-plus/cjs/promise/isPromise.js"), exports);
|
|
4321
|
+
__exportStar(__webpack_require__(/*! ./PromiseValue */ "../../node_modules/type-plus/cjs/promise/PromiseValue.js"), exports);
|
|
4322
|
+
__exportStar(__webpack_require__(/*! ./PromiseValueMerge */ "../../node_modules/type-plus/cjs/promise/PromiseValueMerge.js"), exports);
|
|
4323
|
+
__exportStar(__webpack_require__(/*! ./mapSeries */ "../../node_modules/type-plus/cjs/promise/mapSeries.js"), exports);
|
|
4092
4324
|
//# sourceMappingURL=index.js.map
|
|
4093
4325
|
|
|
4094
4326
|
/***/ }),
|
|
4095
4327
|
|
|
4096
|
-
/***/ "../../node_modules/type-plus/
|
|
4328
|
+
/***/ "../../node_modules/type-plus/cjs/promise/isPromise.js":
|
|
4097
4329
|
/*!*************************************************************!*\
|
|
4098
|
-
!*** ../../node_modules/type-plus/
|
|
4330
|
+
!*** ../../node_modules/type-plus/cjs/promise/isPromise.js ***!
|
|
4099
4331
|
\*************************************************************/
|
|
4100
4332
|
/***/ (function(__unused_webpack_module, exports) {
|
|
4101
4333
|
|
|
@@ -4104,16 +4336,17 @@ __exportStar(__webpack_require__(/*! ./mapSeries */ "../../node_modules/type-plu
|
|
|
4104
4336
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4105
4337
|
exports.isPromise = void 0;
|
|
4106
4338
|
function isPromise(subject) {
|
|
4107
|
-
|
|
4339
|
+
// @ts-ignore
|
|
4340
|
+
return !!subject && typeof subject['then'] === 'function';
|
|
4108
4341
|
}
|
|
4109
4342
|
exports.isPromise = isPromise;
|
|
4110
4343
|
//# sourceMappingURL=isPromise.js.map
|
|
4111
4344
|
|
|
4112
4345
|
/***/ }),
|
|
4113
4346
|
|
|
4114
|
-
/***/ "../../node_modules/type-plus/
|
|
4347
|
+
/***/ "../../node_modules/type-plus/cjs/promise/mapSeries.js":
|
|
4115
4348
|
/*!*************************************************************!*\
|
|
4116
|
-
!*** ../../node_modules/type-plus/
|
|
4349
|
+
!*** ../../node_modules/type-plus/cjs/promise/mapSeries.js ***!
|
|
4117
4350
|
\*************************************************************/
|
|
4118
4351
|
/***/ (function(__unused_webpack_module, exports) {
|
|
4119
4352
|
|
|
@@ -4122,893 +4355,56 @@ exports.isPromise = isPromise;
|
|
|
4122
4355
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4123
4356
|
exports.mapSeries = void 0;
|
|
4124
4357
|
function mapSeries(values, fn) {
|
|
4125
|
-
|
|
4126
|
-
return values.reduce(function (p, v) {
|
|
4127
|
-
return p.then(function () { return fn(v); }).then(function (r) {
|
|
4128
|
-
results.push(r);
|
|
4129
|
-
return results;
|
|
4130
|
-
});
|
|
4131
|
-
}, Promise.resolve());
|
|
4358
|
+
return values.reduce(function (p, v) { return p.then(function (r) { return fn(v).then(function (v) { return (r.push(v), r); }); }); }, Promise.resolve([]));
|
|
4132
4359
|
}
|
|
4133
4360
|
exports.mapSeries = mapSeries;
|
|
4134
4361
|
//# sourceMappingURL=mapSeries.js.map
|
|
4135
4362
|
|
|
4136
4363
|
/***/ }),
|
|
4137
4364
|
|
|
4138
|
-
/***/ "../../node_modules/type-plus/
|
|
4139
|
-
/*!*********************************************************!*\
|
|
4140
|
-
!*** ../../node_modules/type-plus/lib/types/AllType.js ***!
|
|
4141
|
-
\*********************************************************/
|
|
4142
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
4143
|
-
|
|
4144
|
-
"use strict";
|
|
4145
|
-
|
|
4146
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4147
|
-
//# sourceMappingURL=AllType.js.map
|
|
4148
|
-
|
|
4149
|
-
/***/ }),
|
|
4150
|
-
|
|
4151
|
-
/***/ "../../node_modules/type-plus/lib/types/Any.js":
|
|
4152
|
-
/*!*****************************************************!*\
|
|
4153
|
-
!*** ../../node_modules/type-plus/lib/types/Any.js ***!
|
|
4154
|
-
\*****************************************************/
|
|
4155
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
4156
|
-
|
|
4157
|
-
"use strict";
|
|
4158
|
-
|
|
4159
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4160
|
-
exports.any = void 0;
|
|
4161
|
-
exports.any = { type: 'any', value: undefined };
|
|
4162
|
-
//# sourceMappingURL=Any.js.map
|
|
4163
|
-
|
|
4164
|
-
/***/ }),
|
|
4165
|
-
|
|
4166
|
-
/***/ "../../node_modules/type-plus/lib/types/Array.js":
|
|
4167
|
-
/*!*******************************************************!*\
|
|
4168
|
-
!*** ../../node_modules/type-plus/lib/types/Array.js ***!
|
|
4169
|
-
\*******************************************************/
|
|
4170
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4171
|
-
|
|
4172
|
-
"use strict";
|
|
4173
|
-
|
|
4174
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4175
|
-
exports.array = void 0;
|
|
4176
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
4177
|
-
var Union_1 = __webpack_require__(/*! ./Union */ "../../node_modules/type-plus/lib/types/Union.js");
|
|
4178
|
-
var Unknown_1 = __webpack_require__(/*! ./Unknown */ "../../node_modules/type-plus/lib/types/Unknown.js");
|
|
4179
|
-
/**
|
|
4180
|
-
* Creates an array type.
|
|
4181
|
-
*/
|
|
4182
|
-
function create(value) {
|
|
4183
|
-
return {
|
|
4184
|
-
type: 'array',
|
|
4185
|
-
value: value
|
|
4186
|
-
};
|
|
4187
|
-
}
|
|
4188
|
-
var any = create(undefined);
|
|
4189
|
-
exports.array = Object.assign({}, any, {
|
|
4190
|
-
any: any,
|
|
4191
|
-
create: create,
|
|
4192
|
-
optional: Object.assign(Union_1.union.create(any, Undefined_1.undef), {
|
|
4193
|
-
/**
|
|
4194
|
-
* Creates an optional array type.
|
|
4195
|
-
*/
|
|
4196
|
-
create: function (value) {
|
|
4197
|
-
return Union_1.union.create(create(value), Undefined_1.undef);
|
|
4198
|
-
}
|
|
4199
|
-
}),
|
|
4200
|
-
unknown: create(Unknown_1.unknown)
|
|
4201
|
-
});
|
|
4202
|
-
//# sourceMappingURL=Array.js.map
|
|
4203
|
-
|
|
4204
|
-
/***/ }),
|
|
4205
|
-
|
|
4206
|
-
/***/ "../../node_modules/type-plus/lib/types/Boolean.js":
|
|
4207
|
-
/*!*********************************************************!*\
|
|
4208
|
-
!*** ../../node_modules/type-plus/lib/types/Boolean.js ***!
|
|
4209
|
-
\*********************************************************/
|
|
4210
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4211
|
-
|
|
4212
|
-
"use strict";
|
|
4213
|
-
|
|
4214
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4215
|
-
exports.boolean = void 0;
|
|
4216
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
4217
|
-
var Union_1 = __webpack_require__(/*! ./Union */ "../../node_modules/type-plus/lib/types/Union.js");
|
|
4218
|
-
function create(value) {
|
|
4219
|
-
return { type: 'boolean', value: value };
|
|
4220
|
-
}
|
|
4221
|
-
var any = create(undefined);
|
|
4222
|
-
var t = create(true);
|
|
4223
|
-
var f = create(false);
|
|
4224
|
-
exports.boolean = Object.assign(any, {
|
|
4225
|
-
any: any,
|
|
4226
|
-
true: t,
|
|
4227
|
-
false: f,
|
|
4228
|
-
create: create,
|
|
4229
|
-
optional: Object.assign(Union_1.union.create(any, Undefined_1.undef), {
|
|
4230
|
-
/**
|
|
4231
|
-
* Creates an optional boolean type.
|
|
4232
|
-
*/
|
|
4233
|
-
create: function (value) {
|
|
4234
|
-
return Union_1.union.create(create(value), Undefined_1.undef);
|
|
4235
|
-
},
|
|
4236
|
-
true: Union_1.union.create(t, Undefined_1.undef),
|
|
4237
|
-
false: Union_1.union.create(f, Undefined_1.undef),
|
|
4238
|
-
})
|
|
4239
|
-
});
|
|
4240
|
-
//# sourceMappingURL=Boolean.js.map
|
|
4241
|
-
|
|
4242
|
-
/***/ }),
|
|
4243
|
-
|
|
4244
|
-
/***/ "../../node_modules/type-plus/lib/types/Generate.js":
|
|
4245
|
-
/*!**********************************************************!*\
|
|
4246
|
-
!*** ../../node_modules/type-plus/lib/types/Generate.js ***!
|
|
4247
|
-
\**********************************************************/
|
|
4248
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
4249
|
-
|
|
4250
|
-
"use strict";
|
|
4251
|
-
|
|
4252
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4253
|
-
//# sourceMappingURL=Generate.js.map
|
|
4254
|
-
|
|
4255
|
-
/***/ }),
|
|
4256
|
-
|
|
4257
|
-
/***/ "../../node_modules/type-plus/lib/types/Null.js":
|
|
4258
|
-
/*!******************************************************!*\
|
|
4259
|
-
!*** ../../node_modules/type-plus/lib/types/Null.js ***!
|
|
4260
|
-
\******************************************************/
|
|
4261
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4262
|
-
|
|
4263
|
-
"use strict";
|
|
4264
|
-
|
|
4265
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4266
|
-
exports.nil = void 0;
|
|
4267
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
4268
|
-
var Union_1 = __webpack_require__(/*! ./Union */ "../../node_modules/type-plus/lib/types/Union.js");
|
|
4269
|
-
var any = { type: 'null', value: undefined };
|
|
4270
|
-
exports.nil = Object.assign({}, any, {
|
|
4271
|
-
optional: Union_1.union.create(any, Undefined_1.undef)
|
|
4272
|
-
});
|
|
4273
|
-
//# sourceMappingURL=Null.js.map
|
|
4274
|
-
|
|
4275
|
-
/***/ }),
|
|
4276
|
-
|
|
4277
|
-
/***/ "../../node_modules/type-plus/lib/types/Number.js":
|
|
4278
|
-
/*!********************************************************!*\
|
|
4279
|
-
!*** ../../node_modules/type-plus/lib/types/Number.js ***!
|
|
4280
|
-
\********************************************************/
|
|
4281
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4282
|
-
|
|
4283
|
-
"use strict";
|
|
4284
|
-
|
|
4285
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
4286
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
4287
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
4288
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
4289
|
-
r[k] = a[j];
|
|
4290
|
-
return r;
|
|
4291
|
-
};
|
|
4292
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4293
|
-
exports.number = void 0;
|
|
4294
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
4295
|
-
var Union_1 = __webpack_require__(/*! ./Union */ "../../node_modules/type-plus/lib/types/Union.js");
|
|
4296
|
-
/**
|
|
4297
|
-
* Creates a single number type.
|
|
4298
|
-
*/
|
|
4299
|
-
function create(value) {
|
|
4300
|
-
return { type: 'number', value: value };
|
|
4301
|
-
}
|
|
4302
|
-
var any = create(undefined);
|
|
4303
|
-
exports.number = Object.assign(any, {
|
|
4304
|
-
any: any,
|
|
4305
|
-
create: create,
|
|
4306
|
-
// @ts-ignore we know that this can be infinite
|
|
4307
|
-
list: function (value) {
|
|
4308
|
-
var values = [];
|
|
4309
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4310
|
-
values[_i - 1] = arguments[_i];
|
|
4311
|
-
}
|
|
4312
|
-
return Union_1.union.create.apply(Union_1.union, __spreadArrays([create(value)], values.map(create)));
|
|
4313
|
-
},
|
|
4314
|
-
optional: Object.assign(Union_1.union.create(any, Undefined_1.undef), {
|
|
4315
|
-
/**
|
|
4316
|
-
* Creates an optional number constant type.
|
|
4317
|
-
*/
|
|
4318
|
-
create: function (value) {
|
|
4319
|
-
return Union_1.union.create(create(value), Undefined_1.undef);
|
|
4320
|
-
},
|
|
4321
|
-
// @ts-ignore we know that this can be infinite
|
|
4322
|
-
list: function (value) {
|
|
4323
|
-
var values = [];
|
|
4324
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4325
|
-
values[_i - 1] = arguments[_i];
|
|
4326
|
-
}
|
|
4327
|
-
return Union_1.union.create.apply(Union_1.union, __spreadArrays([create(value)], values.map(create), [Undefined_1.undef]));
|
|
4328
|
-
}
|
|
4329
|
-
})
|
|
4330
|
-
});
|
|
4331
|
-
//# sourceMappingURL=Number.js.map
|
|
4332
|
-
|
|
4333
|
-
/***/ }),
|
|
4334
|
-
|
|
4335
|
-
/***/ "../../node_modules/type-plus/lib/types/Object.js":
|
|
4336
|
-
/*!********************************************************!*\
|
|
4337
|
-
!*** ../../node_modules/type-plus/lib/types/Object.js ***!
|
|
4338
|
-
\********************************************************/
|
|
4339
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4340
|
-
|
|
4341
|
-
"use strict";
|
|
4342
|
-
|
|
4343
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4344
|
-
exports.keys = exports.object = exports.map = void 0;
|
|
4345
|
-
var object_1 = __webpack_require__(/*! ../object */ "../../node_modules/type-plus/lib/object/index.js");
|
|
4346
|
-
var Number_1 = __webpack_require__(/*! ./Number */ "../../node_modules/type-plus/lib/types/Number.js");
|
|
4347
|
-
var String_1 = __webpack_require__(/*! ./String */ "../../node_modules/type-plus/lib/types/String.js");
|
|
4348
|
-
var Symbol_1 = __webpack_require__(/*! ./Symbol */ "../../node_modules/type-plus/lib/types/Symbol.js");
|
|
4349
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
4350
|
-
var Union_1 = __webpack_require__(/*! ./Union */ "../../node_modules/type-plus/lib/types/Union.js");
|
|
4351
|
-
/**
|
|
4352
|
-
* create specific object type.
|
|
4353
|
-
*/
|
|
4354
|
-
function create(props) {
|
|
4355
|
-
return { type: 'object', value: props };
|
|
4356
|
-
}
|
|
4357
|
-
var any = create(undefined);
|
|
4358
|
-
function map(callback, subject) {
|
|
4359
|
-
return object_1.reduceByKey(subject, function (p, k) { return (p[k] = callback(subject[k], k, p), p); }, {});
|
|
4360
|
-
}
|
|
4361
|
-
exports.map = map;
|
|
4362
|
-
exports.object = Object.assign(any, {
|
|
4363
|
-
any: any,
|
|
4364
|
-
create: create,
|
|
4365
|
-
map: map,
|
|
4366
|
-
optional: Object.assign(Union_1.union.create(any, Undefined_1.undef), {
|
|
4367
|
-
/**
|
|
4368
|
-
* Creates an optional object type.
|
|
4369
|
-
*/
|
|
4370
|
-
create: function (props) {
|
|
4371
|
-
return Union_1.union.create(create(props), Undefined_1.undef);
|
|
4372
|
-
}
|
|
4373
|
-
})
|
|
4374
|
-
});
|
|
4375
|
-
exports.keys = Union_1.union.create(String_1.string, Number_1.number, Symbol_1.symbol);
|
|
4376
|
-
//# sourceMappingURL=Object.js.map
|
|
4377
|
-
|
|
4378
|
-
/***/ }),
|
|
4379
|
-
|
|
4380
|
-
/***/ "../../node_modules/type-plus/lib/types/Record.js":
|
|
4381
|
-
/*!********************************************************!*\
|
|
4382
|
-
!*** ../../node_modules/type-plus/lib/types/Record.js ***!
|
|
4383
|
-
\********************************************************/
|
|
4384
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4385
|
-
|
|
4386
|
-
"use strict";
|
|
4387
|
-
|
|
4388
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4389
|
-
exports.record = void 0;
|
|
4390
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
4391
|
-
var Union_1 = __webpack_require__(/*! ./Union */ "../../node_modules/type-plus/lib/types/Union.js");
|
|
4392
|
-
function create(value) {
|
|
4393
|
-
return { type: 'record', value: value };
|
|
4394
|
-
}
|
|
4395
|
-
exports.record = {
|
|
4396
|
-
create: create,
|
|
4397
|
-
optional: {
|
|
4398
|
-
create: function (value) {
|
|
4399
|
-
return Union_1.union.create(create(value), Undefined_1.undef);
|
|
4400
|
-
}
|
|
4401
|
-
}
|
|
4402
|
-
};
|
|
4403
|
-
//# sourceMappingURL=Record.js.map
|
|
4404
|
-
|
|
4405
|
-
/***/ }),
|
|
4406
|
-
|
|
4407
|
-
/***/ "../../node_modules/type-plus/lib/types/String.js":
|
|
4408
|
-
/*!********************************************************!*\
|
|
4409
|
-
!*** ../../node_modules/type-plus/lib/types/String.js ***!
|
|
4410
|
-
\********************************************************/
|
|
4411
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4412
|
-
|
|
4413
|
-
"use strict";
|
|
4414
|
-
|
|
4415
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
4416
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
4417
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
4418
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
4419
|
-
r[k] = a[j];
|
|
4420
|
-
return r;
|
|
4421
|
-
};
|
|
4422
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4423
|
-
exports.string = void 0;
|
|
4424
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
4425
|
-
var Union_1 = __webpack_require__(/*! ./Union */ "../../node_modules/type-plus/lib/types/Union.js");
|
|
4426
|
-
/**
|
|
4427
|
-
* Creates a constant string type.
|
|
4428
|
-
*/
|
|
4429
|
-
function create(value) {
|
|
4430
|
-
// Cannot name this function as `const` because it is a reserved keyword.
|
|
4431
|
-
return { type: 'string', value: value };
|
|
4432
|
-
}
|
|
4433
|
-
var any = create(undefined);
|
|
4434
|
-
exports.string = Object.assign(any, {
|
|
4435
|
-
any: any,
|
|
4436
|
-
create: create,
|
|
4437
|
-
// @ts-ignore we know that this can be infinite
|
|
4438
|
-
list: function (value) {
|
|
4439
|
-
var values = [];
|
|
4440
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4441
|
-
values[_i - 1] = arguments[_i];
|
|
4442
|
-
}
|
|
4443
|
-
return Union_1.union.create.apply(Union_1.union, __spreadArrays([create(value)], values.map(create)));
|
|
4444
|
-
},
|
|
4445
|
-
optional: Object.assign(Union_1.union.create(any, Undefined_1.undef), {
|
|
4446
|
-
/**
|
|
4447
|
-
* Creates an optional constant string type.
|
|
4448
|
-
*/
|
|
4449
|
-
create: function (value) {
|
|
4450
|
-
return Union_1.union.create(create(value), Undefined_1.undef);
|
|
4451
|
-
},
|
|
4452
|
-
// @ts-ignore we know that this can be infinite
|
|
4453
|
-
list: function (value) {
|
|
4454
|
-
var values = [];
|
|
4455
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4456
|
-
values[_i - 1] = arguments[_i];
|
|
4457
|
-
}
|
|
4458
|
-
return Union_1.union.create.apply(Union_1.union, __spreadArrays([create(value)], values.map(create), [Undefined_1.undef]));
|
|
4459
|
-
}
|
|
4460
|
-
})
|
|
4461
|
-
});
|
|
4462
|
-
//# sourceMappingURL=String.js.map
|
|
4463
|
-
|
|
4464
|
-
/***/ }),
|
|
4465
|
-
|
|
4466
|
-
/***/ "../../node_modules/type-plus/lib/types/Symbol.js":
|
|
4467
|
-
/*!********************************************************!*\
|
|
4468
|
-
!*** ../../node_modules/type-plus/lib/types/Symbol.js ***!
|
|
4469
|
-
\********************************************************/
|
|
4470
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4471
|
-
|
|
4472
|
-
"use strict";
|
|
4473
|
-
|
|
4474
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4475
|
-
exports.symbol = void 0;
|
|
4476
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
4477
|
-
var Union_1 = __webpack_require__(/*! ./Union */ "../../node_modules/type-plus/lib/types/Union.js");
|
|
4478
|
-
function create(value) {
|
|
4479
|
-
return { type: 'symbol', value: value };
|
|
4480
|
-
}
|
|
4481
|
-
var any = create(undefined);
|
|
4482
|
-
exports.symbol = Object.assign(any, {
|
|
4483
|
-
optional: Union_1.union.create(any, Undefined_1.undef)
|
|
4484
|
-
});
|
|
4485
|
-
//# sourceMappingURL=Symbol.js.map
|
|
4486
|
-
|
|
4487
|
-
/***/ }),
|
|
4488
|
-
|
|
4489
|
-
/***/ "../../node_modules/type-plus/lib/types/Tuple.js":
|
|
4365
|
+
/***/ "../../node_modules/type-plus/cjs/utils/Widen.js":
|
|
4490
4366
|
/*!*******************************************************!*\
|
|
4491
|
-
!*** ../../node_modules/type-plus/
|
|
4367
|
+
!*** ../../node_modules/type-plus/cjs/utils/Widen.js ***!
|
|
4492
4368
|
\*******************************************************/
|
|
4493
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4494
|
-
|
|
4495
|
-
"use strict";
|
|
4496
|
-
|
|
4497
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
4498
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
4499
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
4500
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
4501
|
-
r[k] = a[j];
|
|
4502
|
-
return r;
|
|
4503
|
-
};
|
|
4504
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4505
|
-
exports.tuple = void 0;
|
|
4506
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
4507
|
-
var Union_1 = __webpack_require__(/*! ./Union */ "../../node_modules/type-plus/lib/types/Union.js");
|
|
4508
|
-
/**
|
|
4509
|
-
* Creates a tuple type.
|
|
4510
|
-
*/
|
|
4511
|
-
function create(value) {
|
|
4512
|
-
var values = [];
|
|
4513
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4514
|
-
values[_i - 1] = arguments[_i];
|
|
4515
|
-
}
|
|
4516
|
-
return {
|
|
4517
|
-
type: 'tuple',
|
|
4518
|
-
value: __spreadArrays([value], values)
|
|
4519
|
-
};
|
|
4520
|
-
}
|
|
4521
|
-
exports.tuple = {
|
|
4522
|
-
create: create,
|
|
4523
|
-
optional: {
|
|
4524
|
-
/**
|
|
4525
|
-
* Creates an optional tuple type.
|
|
4526
|
-
*/
|
|
4527
|
-
create: function (value) {
|
|
4528
|
-
var values = [];
|
|
4529
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4530
|
-
values[_i - 1] = arguments[_i];
|
|
4531
|
-
}
|
|
4532
|
-
return Union_1.union.create(create.apply(void 0, __spreadArrays([value], values)), Undefined_1.undef);
|
|
4533
|
-
}
|
|
4534
|
-
}
|
|
4535
|
-
};
|
|
4536
|
-
//# sourceMappingURL=Tuple.js.map
|
|
4537
|
-
|
|
4538
|
-
/***/ }),
|
|
4539
|
-
|
|
4540
|
-
/***/ "../../node_modules/type-plus/lib/types/Undefined.js":
|
|
4541
|
-
/*!***********************************************************!*\
|
|
4542
|
-
!*** ../../node_modules/type-plus/lib/types/Undefined.js ***!
|
|
4543
|
-
\***********************************************************/
|
|
4544
4369
|
/***/ (function(__unused_webpack_module, exports) {
|
|
4545
4370
|
|
|
4546
4371
|
"use strict";
|
|
4547
4372
|
|
|
4548
4373
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4549
|
-
|
|
4550
|
-
exports.undef = { type: 'undefined', value: undefined };
|
|
4551
|
-
//# sourceMappingURL=Undefined.js.map
|
|
4552
|
-
|
|
4553
|
-
/***/ }),
|
|
4554
|
-
|
|
4555
|
-
/***/ "../../node_modules/type-plus/lib/types/Union.js":
|
|
4556
|
-
/*!*******************************************************!*\
|
|
4557
|
-
!*** ../../node_modules/type-plus/lib/types/Union.js ***!
|
|
4558
|
-
\*******************************************************/
|
|
4559
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4560
|
-
|
|
4561
|
-
"use strict";
|
|
4562
|
-
|
|
4563
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
4564
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
4565
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
4566
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
4567
|
-
r[k] = a[j];
|
|
4568
|
-
return r;
|
|
4569
|
-
};
|
|
4570
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4571
|
-
exports.union = void 0;
|
|
4572
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
4573
|
-
/**
|
|
4574
|
-
* Create union type.
|
|
4575
|
-
*/
|
|
4576
|
-
function create(value) {
|
|
4577
|
-
var values = [];
|
|
4578
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4579
|
-
values[_i - 1] = arguments[_i];
|
|
4580
|
-
}
|
|
4581
|
-
values.unshift(value);
|
|
4582
|
-
if (values.length === 1)
|
|
4583
|
-
return values[0];
|
|
4584
|
-
var v = values.reduce(function (p, v) {
|
|
4585
|
-
if (v.type === 'union') {
|
|
4586
|
-
p.push.apply(p, v.value);
|
|
4587
|
-
}
|
|
4588
|
-
else {
|
|
4589
|
-
p.push(v);
|
|
4590
|
-
}
|
|
4591
|
-
return p;
|
|
4592
|
-
}, []);
|
|
4593
|
-
return { type: 'union', value: v };
|
|
4594
|
-
}
|
|
4595
|
-
exports.union = {
|
|
4596
|
-
create: create,
|
|
4597
|
-
optional: {
|
|
4598
|
-
/**
|
|
4599
|
-
* Creates an optional unional type.
|
|
4600
|
-
*/
|
|
4601
|
-
create: function (value) {
|
|
4602
|
-
var values = [];
|
|
4603
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4604
|
-
values[_i - 1] = arguments[_i];
|
|
4605
|
-
}
|
|
4606
|
-
values.push(Undefined_1.undef);
|
|
4607
|
-
return create.apply(void 0, __spreadArrays([value], values));
|
|
4608
|
-
}
|
|
4609
|
-
}
|
|
4610
|
-
};
|
|
4611
|
-
//# sourceMappingURL=Union.js.map
|
|
4374
|
+
//# sourceMappingURL=Widen.js.map
|
|
4612
4375
|
|
|
4613
4376
|
/***/ }),
|
|
4614
4377
|
|
|
4615
|
-
/***/ "../../node_modules/type-plus/
|
|
4616
|
-
|
|
4617
|
-
!*** ../../node_modules/type-plus/
|
|
4618
|
-
|
|
4378
|
+
/***/ "../../node_modules/type-plus/cjs/utils/as.js":
|
|
4379
|
+
/*!****************************************************!*\
|
|
4380
|
+
!*** ../../node_modules/type-plus/cjs/utils/as.js ***!
|
|
4381
|
+
\****************************************************/
|
|
4619
4382
|
/***/ (function(__unused_webpack_module, exports) {
|
|
4620
4383
|
|
|
4621
4384
|
"use strict";
|
|
4622
4385
|
|
|
4623
4386
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4624
|
-
exports.
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
/***/ }),
|
|
4629
|
-
|
|
4630
|
-
/***/ "../../node_modules/type-plus/lib/types/analyze.js":
|
|
4631
|
-
/*!*********************************************************!*\
|
|
4632
|
-
!*** ../../node_modules/type-plus/lib/types/analyze.js ***!
|
|
4633
|
-
\*********************************************************/
|
|
4634
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4635
|
-
|
|
4636
|
-
"use strict";
|
|
4637
|
-
|
|
4638
|
-
var __assign = (this && this.__assign) || function () {
|
|
4639
|
-
__assign = Object.assign || function(t) {
|
|
4640
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4641
|
-
s = arguments[i];
|
|
4642
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
4643
|
-
t[p] = s[p];
|
|
4644
|
-
}
|
|
4645
|
-
return t;
|
|
4646
|
-
};
|
|
4647
|
-
return __assign.apply(this, arguments);
|
|
4648
|
-
};
|
|
4649
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4650
|
-
exports.analyzeInternal = exports.analyze = void 0;
|
|
4651
|
-
var object_1 = __webpack_require__(/*! ../object */ "../../node_modules/type-plus/lib/object/index.js");
|
|
4652
|
-
var Number_1 = __webpack_require__(/*! ./Number */ "../../node_modules/type-plus/lib/types/Number.js");
|
|
4653
|
-
var Object_1 = __webpack_require__(/*! ./Object */ "../../node_modules/type-plus/lib/types/Object.js");
|
|
4654
|
-
var String_1 = __webpack_require__(/*! ./String */ "../../node_modules/type-plus/lib/types/String.js");
|
|
4655
|
-
function analyze(options, type, actual) {
|
|
4656
|
-
return {
|
|
4657
|
-
options: options,
|
|
4658
|
-
analysis: analyzeInternal(options, type, actual),
|
|
4659
|
-
actual: actual
|
|
4660
|
-
};
|
|
4661
|
-
}
|
|
4662
|
-
exports.analyze = analyze;
|
|
4663
|
-
function analyzeInternal(options, type, actual) {
|
|
4664
|
-
var t = type['type'];
|
|
4665
|
-
switch (t) {
|
|
4666
|
-
case 'unknown':
|
|
4667
|
-
case 'any':
|
|
4668
|
-
return ok(type);
|
|
4669
|
-
case 'undefined':
|
|
4670
|
-
case 'symbol':
|
|
4671
|
-
return typeof actual === t ? ok(type) : fail(t);
|
|
4672
|
-
case 'null':
|
|
4673
|
-
return actual === null ? ok(type) : fail(t);
|
|
4674
|
-
case 'boolean': return analyzeBoolean(type, actual);
|
|
4675
|
-
case 'number': return analyzeType(Number_1.number, type, actual);
|
|
4676
|
-
case 'string': return analyzeType(String_1.string, type, actual);
|
|
4677
|
-
// case 'bigint': return analyzeType(bigint, type as BigInt, actual)
|
|
4678
|
-
case 'object': return analyzeObject(options, type, actual);
|
|
4679
|
-
case 'record': return analyzeRecord(options, type, actual);
|
|
4680
|
-
case 'array': return analyzeArray(options, type, actual);
|
|
4681
|
-
case 'tuple': return analyzeTuple(options, type, actual);
|
|
4682
|
-
case 'union': return analyzeUnion(options, type, actual);
|
|
4683
|
-
}
|
|
4684
|
-
}
|
|
4685
|
-
exports.analyzeInternal = analyzeInternal;
|
|
4686
|
-
function analyzeBoolean(type, actual) {
|
|
4687
|
-
var value = type['value'];
|
|
4688
|
-
if (value === undefined) {
|
|
4689
|
-
return typeof actual === 'boolean' ? ok(type) : fail('boolean', value);
|
|
4690
|
-
}
|
|
4691
|
-
else {
|
|
4692
|
-
return value === actual ? ok(type) : fail('boolean', value);
|
|
4693
|
-
}
|
|
4694
|
-
}
|
|
4695
|
-
function analyzeType(baseType, // | BigInt,
|
|
4696
|
-
type, actual) {
|
|
4697
|
-
var value = type['value'];
|
|
4698
|
-
return typeof actual === baseType['type'] && (type === baseType || actual === value)
|
|
4699
|
-
? ok(type)
|
|
4700
|
-
: fail(type['type'], type['value']);
|
|
4701
|
-
}
|
|
4702
|
-
function analyzeUnion(options, type, actual) {
|
|
4703
|
-
var subTypes = type['value'];
|
|
4704
|
-
var r = subTypes.map(function (t) { return analyzeInternal(options, t, actual); });
|
|
4705
|
-
return r.some(function (r) { return !r.fail; }) ? ok(type) : fail('union', r);
|
|
4706
|
-
}
|
|
4707
|
-
function analyzeArray(options, type, actual) {
|
|
4708
|
-
var subType = type['value'];
|
|
4709
|
-
if (!Array.isArray(actual))
|
|
4710
|
-
return fail('array', subType ? ok(subType) : undefined);
|
|
4711
|
-
if (subType === undefined)
|
|
4712
|
-
return ok(type);
|
|
4713
|
-
var r = actual.reduce(function (p, a, i) {
|
|
4714
|
-
var r = analyzeInternal(options, subType, a);
|
|
4715
|
-
if (r.fail) {
|
|
4716
|
-
p.value = r.value;
|
|
4717
|
-
p.keys.push(i);
|
|
4718
|
-
p.actual.push(a);
|
|
4719
|
-
}
|
|
4720
|
-
return p;
|
|
4721
|
-
}, { keys: [], actual: [] });
|
|
4722
|
-
return r.keys.length === 0 ?
|
|
4723
|
-
ok(type) :
|
|
4724
|
-
fail('array', __assign({}, fail(subType['type'], r.value)));
|
|
4725
|
-
}
|
|
4726
|
-
function analyzeTuple(options, type, actual) {
|
|
4727
|
-
var value = type['value'];
|
|
4728
|
-
if (!Array.isArray(actual))
|
|
4729
|
-
return fail('tuple', value.map(ok));
|
|
4730
|
-
var results = value.map(function (v, i) { return analyzeInternal(options, v, actual[i]); });
|
|
4731
|
-
if (options.strict && results.length < actual.length) {
|
|
4732
|
-
return fail('tuple', results);
|
|
4733
|
-
}
|
|
4734
|
-
return results.every(function (r) { return !r.fail; }) ? ok(type) : fail('tuple', results);
|
|
4735
|
-
}
|
|
4736
|
-
function analyzeObject(options, type, actual) {
|
|
4737
|
-
var typeMap = type['value'];
|
|
4738
|
-
if (!isOnlyObject(actual))
|
|
4739
|
-
return fail('object', typeMap ? Object_1.object.map(function (v) { return ok(v); }, typeMap) : undefined);
|
|
4740
|
-
if (type === Object_1.object)
|
|
4741
|
-
return ok(type);
|
|
4742
|
-
var typeKeys = Object.keys(typeMap);
|
|
4743
|
-
var s = __assign({}, actual);
|
|
4744
|
-
var results = typeKeys.reduce(function (p, k) {
|
|
4745
|
-
var r = p.value[k] = analyzeInternal(options, typeMap[k], actual[k]);
|
|
4746
|
-
p.fail || (p.fail = !!r.fail);
|
|
4747
|
-
s[k] = undefined;
|
|
4748
|
-
return p;
|
|
4749
|
-
}, { fail: false, value: {} });
|
|
4750
|
-
var skeys = Object.keys(s);
|
|
4751
|
-
if (options.strict && skeys.length > typeKeys.length) {
|
|
4752
|
-
return fail('object', results.value);
|
|
4753
|
-
}
|
|
4754
|
-
return !results.fail ? ok(type) : fail('object', results.value);
|
|
4755
|
-
}
|
|
4756
|
-
function analyzeRecord(options, type, actual) {
|
|
4757
|
-
var subType = type['value'];
|
|
4758
|
-
if (!isOnlyObject(actual))
|
|
4759
|
-
return fail('record', ok(subType));
|
|
4760
|
-
var r = object_1.reduceByKey(actual, function (p, k) {
|
|
4761
|
-
var r = analyzeInternal(options, subType, actual[k]);
|
|
4762
|
-
if (r.fail) {
|
|
4763
|
-
p.value = r.value;
|
|
4764
|
-
p.keys.push(k);
|
|
4765
|
-
p.actual.push(actual[k]);
|
|
4766
|
-
}
|
|
4767
|
-
return p;
|
|
4768
|
-
}, { keys: [], actual: [], value: undefined });
|
|
4769
|
-
return r.keys.length === 0 ?
|
|
4770
|
-
ok(type) :
|
|
4771
|
-
fail('record', __assign({}, fail(subType['type'], r.value)));
|
|
4772
|
-
}
|
|
4773
|
-
function ok(t) {
|
|
4774
|
-
var type = t['type'];
|
|
4775
|
-
var value = t['value'];
|
|
4776
|
-
if (value === undefined)
|
|
4777
|
-
return { type: type, value: value };
|
|
4778
|
-
if (typeof value !== 'object' || value === null)
|
|
4779
|
-
return { type: type, value: value };
|
|
4780
|
-
if (Array.isArray(value))
|
|
4781
|
-
return { type: type, value: value.map(ok) };
|
|
4782
|
-
if (value['type'])
|
|
4783
|
-
return { type: type, value: ok(value) };
|
|
4784
|
-
return {
|
|
4785
|
-
type: type, value: object_1.reduceByKey(value, function (p, k) { return (p[k] = ok(value[k]), p); }, {})
|
|
4786
|
-
};
|
|
4787
|
-
}
|
|
4788
|
-
function fail(type, value) {
|
|
4789
|
-
return value === undefined ? { type: type, fail: true } : { type: type, value: value, fail: true };
|
|
4790
|
-
}
|
|
4791
|
-
function isOnlyObject(actual) {
|
|
4792
|
-
return typeof actual === 'object' && actual !== null && !Array.isArray(actual);
|
|
4793
|
-
}
|
|
4794
|
-
//# sourceMappingURL=analyze.js.map
|
|
4795
|
-
|
|
4796
|
-
/***/ }),
|
|
4797
|
-
|
|
4798
|
-
/***/ "../../node_modules/type-plus/lib/types/check.js":
|
|
4799
|
-
/*!*******************************************************!*\
|
|
4800
|
-
!*** ../../node_modules/type-plus/lib/types/check.js ***!
|
|
4801
|
-
\*******************************************************/
|
|
4802
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4803
|
-
|
|
4804
|
-
"use strict";
|
|
4805
|
-
|
|
4806
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4807
|
-
exports.check = void 0;
|
|
4808
|
-
var analyze_1 = __webpack_require__(/*! ./analyze */ "../../node_modules/type-plus/lib/types/analyze.js");
|
|
4809
|
-
var getPlainAnalysisReport_1 = __webpack_require__(/*! ./getPlainAnalysisReport */ "../../node_modules/type-plus/lib/types/getPlainAnalysisReport.js");
|
|
4810
|
-
/**
|
|
4811
|
-
* Checks if the specified `subject` against the `type`.
|
|
4812
|
-
* @return type guard (boolean). If the subject does not check to the type,
|
|
4813
|
-
* the detail report is available in `check.result`,
|
|
4814
|
-
* and you can get a string report using `check.getReport()`
|
|
4815
|
-
*/
|
|
4816
|
-
function check(options, type, subject) {
|
|
4817
|
-
var result = check.result = analyze_1.analyze(options, type, subject);
|
|
4818
|
-
return !result.analysis.fail;
|
|
4819
|
-
}
|
|
4820
|
-
exports.check = check;
|
|
4821
|
-
/**
|
|
4822
|
-
* Analysis report.
|
|
4823
|
-
*/
|
|
4824
|
-
check.result = { analysis: {}, actual: undefined };
|
|
4825
|
-
/**
|
|
4826
|
-
* Gets a simple report of the analysis.
|
|
4827
|
-
*/
|
|
4828
|
-
check.getReport = function () { return getPlainAnalysisReport_1.getPlainAnalysisReport(check.result); };
|
|
4829
|
-
//# sourceMappingURL=check.js.map
|
|
4830
|
-
|
|
4831
|
-
/***/ }),
|
|
4832
|
-
|
|
4833
|
-
/***/ "../../node_modules/type-plus/lib/types/conform.js":
|
|
4834
|
-
/*!*********************************************************!*\
|
|
4835
|
-
!*** ../../node_modules/type-plus/lib/types/conform.js ***!
|
|
4836
|
-
\*********************************************************/
|
|
4837
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4838
|
-
|
|
4839
|
-
"use strict";
|
|
4840
|
-
|
|
4841
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4842
|
-
exports.conform = void 0;
|
|
4843
|
-
var analyze_1 = __webpack_require__(/*! ./analyze */ "../../node_modules/type-plus/lib/types/analyze.js");
|
|
4844
|
-
var getPlainAnalysisReport_1 = __webpack_require__(/*! ./getPlainAnalysisReport */ "../../node_modules/type-plus/lib/types/getPlainAnalysisReport.js");
|
|
4845
|
-
/**
|
|
4846
|
-
* Checks if the specified `subject` conforms to the `type`.
|
|
4847
|
-
* `conform()` is the shortcut of `check({ strict: true }, ...)`.
|
|
4848
|
-
* @return type guard (boolean). If the subject does not conform to the type,
|
|
4849
|
-
* the detail report is available in `conform.result`,
|
|
4850
|
-
* and you can get a string report using `conform.getReport()`
|
|
4851
|
-
*/
|
|
4852
|
-
function conform(type, subject) {
|
|
4853
|
-
var result = conform.result = analyze_1.analyze({ strict: true }, type, subject);
|
|
4854
|
-
return !result.analysis.fail;
|
|
4855
|
-
}
|
|
4856
|
-
exports.conform = conform;
|
|
4857
|
-
/**
|
|
4858
|
-
* Analysis report.
|
|
4859
|
-
*/
|
|
4860
|
-
conform.result = { analysis: {}, actual: undefined };
|
|
4861
|
-
/**
|
|
4862
|
-
* Gets a simple report of the analysis.
|
|
4863
|
-
*/
|
|
4864
|
-
conform.getReport = function () { return getPlainAnalysisReport_1.getPlainAnalysisReport(conform.result); };
|
|
4865
|
-
//# sourceMappingURL=conform.js.map
|
|
4866
|
-
|
|
4867
|
-
/***/ }),
|
|
4868
|
-
|
|
4869
|
-
/***/ "../../node_modules/type-plus/lib/types/getPlainAnalysisReport.js":
|
|
4870
|
-
/*!************************************************************************!*\
|
|
4871
|
-
!*** ../../node_modules/type-plus/lib/types/getPlainAnalysisReport.js ***!
|
|
4872
|
-
\************************************************************************/
|
|
4873
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4874
|
-
|
|
4875
|
-
"use strict";
|
|
4876
|
-
|
|
4877
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
4878
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
4879
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
4880
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
4881
|
-
r[k] = a[j];
|
|
4882
|
-
return r;
|
|
4883
|
-
};
|
|
4884
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4885
|
-
exports.getPlainAnalysisReport = void 0;
|
|
4886
|
-
var tersify_1 = __webpack_require__(/*! tersify */ "../../node_modules/tersify/lib/index.js");
|
|
4887
|
-
var object_1 = __webpack_require__(/*! ../object */ "../../node_modules/type-plus/lib/object/index.js");
|
|
4888
|
-
function getPlainAnalysisReport(analysisResult) {
|
|
4889
|
-
if (!analysisResult.analysis.fail) {
|
|
4890
|
-
return "The subject" + (analysisResult.options.strict ? ' strictly' : '') + " satisfies type " + formatAnalysis(analysisResult.analysis);
|
|
4891
|
-
}
|
|
4892
|
-
return toViolations(analysisResult.options, [], analysisResult.actual, analysisResult.analysis).join('\n');
|
|
4893
|
-
}
|
|
4894
|
-
exports.getPlainAnalysisReport = getPlainAnalysisReport;
|
|
4895
|
-
function formatAnalysis(a) {
|
|
4896
|
-
return a.type;
|
|
4897
|
-
}
|
|
4898
|
-
function toViolations(options, path, actual, analysis) {
|
|
4899
|
-
var clause = options.strict ? "expects to be strictly" : "expects to be";
|
|
4900
|
-
var violations = [formatPath(path) + " " + clause + " " + formatType(analysis) + " but is actually " + tersify_1.tersify(actual)];
|
|
4901
|
-
switch (analysis.type) {
|
|
4902
|
-
case 'tuple': {
|
|
4903
|
-
if (options.strict && analysis.value.length < actual.length) {
|
|
4904
|
-
var index = actual.length - analysis.value.length === 1 ? 'index' : 'indices';
|
|
4905
|
-
violations.push(index + " " + range(analysis.value.length, actual.length) + " should not contain any value");
|
|
4906
|
-
}
|
|
4907
|
-
var v2 = analysis.value.reduce(function (p, a, i) {
|
|
4908
|
-
if (a.fail)
|
|
4909
|
-
p.push.apply(p, toViolations(options, __spreadArrays(path, [i]), actual[i], a));
|
|
4910
|
-
return p;
|
|
4911
|
-
}, []);
|
|
4912
|
-
if (v2.length > 0)
|
|
4913
|
-
violations.push.apply(violations, v2);
|
|
4914
|
-
break;
|
|
4915
|
-
}
|
|
4916
|
-
case 'object':
|
|
4917
|
-
if (analysis.value) {
|
|
4918
|
-
var typeKeys_1 = Object.keys(analysis.value);
|
|
4919
|
-
var actualKeys = Object.keys(actual);
|
|
4920
|
-
if (options.strict) {
|
|
4921
|
-
var extraKeys = actualKeys.filter(function (k) { return typeKeys_1.indexOf(k) === -1; });
|
|
4922
|
-
var index = extraKeys.length === 1 ? 'property' : 'properties';
|
|
4923
|
-
violations.push(index + " " + extraKeys.join(',') + " should not contain any value");
|
|
4924
|
-
}
|
|
4925
|
-
var propViolations = typeKeys_1.reduce(function (p, k) {
|
|
4926
|
-
var a = analysis.value[k];
|
|
4927
|
-
if (a.fail)
|
|
4928
|
-
p.push.apply(p, toViolations(options, __spreadArrays(path, [k]), actual[k], a));
|
|
4929
|
-
return p;
|
|
4930
|
-
}, []);
|
|
4931
|
-
if (propViolations.length > 0)
|
|
4932
|
-
violations.push.apply(violations, propViolations);
|
|
4933
|
-
}
|
|
4934
|
-
break;
|
|
4935
|
-
}
|
|
4936
|
-
return violations;
|
|
4937
|
-
}
|
|
4938
|
-
function formatPath(path) {
|
|
4939
|
-
return path.length === 0 ? 'subject' : "subject" + path.map(function (p) { return toAccessor(p); }).join('');
|
|
4940
|
-
}
|
|
4941
|
-
function toAccessor(p) {
|
|
4942
|
-
if (typeof p === 'number')
|
|
4943
|
-
return "[" + p + "]";
|
|
4944
|
-
if (p.indexOf('-') >= 0)
|
|
4945
|
-
return "['" + p + "']";
|
|
4946
|
-
return "." + p;
|
|
4947
|
-
}
|
|
4948
|
-
function toProp(p) {
|
|
4949
|
-
return p.indexOf('-') >= 0 ? "'" + p + "'" : p;
|
|
4950
|
-
}
|
|
4951
|
-
function formatType(e) {
|
|
4952
|
-
switch (e.type) {
|
|
4953
|
-
case 'undefined':
|
|
4954
|
-
case 'null':
|
|
4955
|
-
case 'symbol':
|
|
4956
|
-
// case 'never':
|
|
4957
|
-
return e.type;
|
|
4958
|
-
case 'boolean':
|
|
4959
|
-
case 'number':
|
|
4960
|
-
// case 'bigint':
|
|
4961
|
-
return e.value === undefined ? e.type : String(e.value);
|
|
4962
|
-
case 'string':
|
|
4963
|
-
return e.value === undefined ? e.type : "'" + e.value + "'";
|
|
4964
|
-
case 'array':
|
|
4965
|
-
return e.value === undefined ? 'Array<any>' : "Array<" + formatType(e.value) + ">";
|
|
4966
|
-
case 'tuple':
|
|
4967
|
-
return "[" + formatExpectations(e.value) + "]";
|
|
4968
|
-
case 'object':
|
|
4969
|
-
return e.value === undefined ? e.type
|
|
4970
|
-
: "{ " + object_1.reduceByKey(e.value, function (p, k) {
|
|
4971
|
-
p.push(toProp(k) + ": " + formatType(e.value[k]));
|
|
4972
|
-
return p;
|
|
4973
|
-
}, []).join(', ') + " }";
|
|
4974
|
-
case 'record':
|
|
4975
|
-
return "Record<string, " + formatType(e.value) + ">";
|
|
4976
|
-
case 'union':
|
|
4977
|
-
return "(" + formatExpectations(e.value, ' | ') + ")";
|
|
4978
|
-
// istanbul ignore next
|
|
4979
|
-
default:
|
|
4980
|
-
return "report not expected: " + e.value;
|
|
4981
|
-
}
|
|
4982
|
-
}
|
|
4983
|
-
function formatExpectations(es, sep) {
|
|
4984
|
-
if (sep === void 0) { sep = ','; }
|
|
4985
|
-
return es.map(formatType).join(sep);
|
|
4387
|
+
exports.asAny = exports.as = void 0;
|
|
4388
|
+
function as(subject) {
|
|
4389
|
+
return true;
|
|
4986
4390
|
}
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
r.push(start++);
|
|
4991
|
-
return r;
|
|
4391
|
+
exports.as = as;
|
|
4392
|
+
function asAny(subject) {
|
|
4393
|
+
return true;
|
|
4992
4394
|
}
|
|
4993
|
-
|
|
4395
|
+
exports.asAny = asAny;
|
|
4396
|
+
//# sourceMappingURL=as.js.map
|
|
4994
4397
|
|
|
4995
4398
|
/***/ }),
|
|
4996
4399
|
|
|
4997
|
-
/***/ "../../node_modules/type-plus/
|
|
4400
|
+
/***/ "../../node_modules/type-plus/cjs/utils/index.js":
|
|
4998
4401
|
/*!*******************************************************!*\
|
|
4999
|
-
!*** ../../node_modules/type-plus/
|
|
4402
|
+
!*** ../../node_modules/type-plus/cjs/utils/index.js ***!
|
|
5000
4403
|
\*******************************************************/
|
|
5001
4404
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5002
4405
|
|
|
5003
4406
|
"use strict";
|
|
5004
4407
|
|
|
5005
|
-
/**
|
|
5006
|
-
* A turing complete solution inspired by many.
|
|
5007
|
-
* The types is in Pascal Cases
|
|
5008
|
-
* because lower case type names (e.g. true) is a reserved keyword.
|
|
5009
|
-
* https://github.com/microsoft/TypeScript/issues/14833
|
|
5010
|
-
* https://github.com/tycho01/typical
|
|
5011
|
-
*/
|
|
5012
4408
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5013
4409
|
if (k2 === undefined) k2 = k;
|
|
5014
4410
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -5020,187 +4416,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
5020
4416
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5021
4417
|
};
|
|
5022
4418
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
__exportStar(__webpack_require__(/*! ./AllType */ "../../node_modules/type-plus/lib/types/AllType.js"), exports);
|
|
5026
|
-
__exportStar(__webpack_require__(/*! ./Any */ "../../node_modules/type-plus/lib/types/Any.js"), exports);
|
|
5027
|
-
__exportStar(__webpack_require__(/*! ./Array */ "../../node_modules/type-plus/lib/types/Array.js"), exports);
|
|
5028
|
-
__exportStar(__webpack_require__(/*! ./Boolean */ "../../node_modules/type-plus/lib/types/Boolean.js"), exports);
|
|
5029
|
-
__exportStar(__webpack_require__(/*! ./check */ "../../node_modules/type-plus/lib/types/check.js"), exports);
|
|
5030
|
-
__exportStar(__webpack_require__(/*! ./conform */ "../../node_modules/type-plus/lib/types/conform.js"), exports);
|
|
5031
|
-
__exportStar(__webpack_require__(/*! ./Generate */ "../../node_modules/type-plus/lib/types/Generate.js"), exports);
|
|
5032
|
-
var Null_1 = __webpack_require__(/*! ./Null */ "../../node_modules/type-plus/lib/types/Null.js");
|
|
5033
|
-
Object.defineProperty(exports, "null", ({ enumerable: true, get: function () { return Null_1.nil; } }));
|
|
5034
|
-
__exportStar(__webpack_require__(/*! ./Number */ "../../node_modules/type-plus/lib/types/Number.js"), exports);
|
|
5035
|
-
var Object_1 = __webpack_require__(/*! ./Object */ "../../node_modules/type-plus/lib/types/Object.js");
|
|
5036
|
-
Object.defineProperty(exports, "keys", ({ enumerable: true, get: function () { return Object_1.keys; } }));
|
|
5037
|
-
Object.defineProperty(exports, "object", ({ enumerable: true, get: function () { return Object_1.object; } }));
|
|
5038
|
-
__exportStar(__webpack_require__(/*! ./Record */ "../../node_modules/type-plus/lib/types/Record.js"), exports);
|
|
5039
|
-
__exportStar(__webpack_require__(/*! ./satisfy */ "../../node_modules/type-plus/lib/types/satisfy.js"), exports);
|
|
5040
|
-
__exportStar(__webpack_require__(/*! ./String */ "../../node_modules/type-plus/lib/types/String.js"), exports);
|
|
5041
|
-
__exportStar(__webpack_require__(/*! ./Symbol */ "../../node_modules/type-plus/lib/types/Symbol.js"), exports);
|
|
5042
|
-
__exportStar(__webpack_require__(/*! ./Tuple */ "../../node_modules/type-plus/lib/types/Tuple.js"), exports);
|
|
5043
|
-
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/type-plus/lib/types/types.js"), exports);
|
|
5044
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
5045
|
-
Object.defineProperty(exports, "undefined", ({ enumerable: true, get: function () { return Undefined_1.undef; } }));
|
|
5046
|
-
__exportStar(__webpack_require__(/*! ./Union */ "../../node_modules/type-plus/lib/types/Union.js"), exports);
|
|
5047
|
-
__exportStar(__webpack_require__(/*! ./Unknown */ "../../node_modules/type-plus/lib/types/Unknown.js"), exports);
|
|
4419
|
+
__exportStar(__webpack_require__(/*! ./as */ "../../node_modules/type-plus/cjs/utils/as.js"), exports);
|
|
4420
|
+
__exportStar(__webpack_require__(/*! ./Widen */ "../../node_modules/type-plus/cjs/utils/Widen.js"), exports);
|
|
5048
4421
|
//# sourceMappingURL=index.js.map
|
|
5049
4422
|
|
|
5050
4423
|
/***/ }),
|
|
5051
4424
|
|
|
5052
|
-
/***/ "../../node_modules/
|
|
5053
|
-
|
|
5054
|
-
!*** ../../node_modules/
|
|
5055
|
-
|
|
5056
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5057
|
-
|
|
5058
|
-
"use strict";
|
|
5059
|
-
|
|
5060
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5061
|
-
exports.O = exports.optional = void 0;
|
|
5062
|
-
var Object_1 = __webpack_require__(/*! ./Object */ "../../node_modules/type-plus/lib/types/Object.js");
|
|
5063
|
-
var Any_1 = __webpack_require__(/*! ./Any */ "../../node_modules/type-plus/lib/types/Any.js");
|
|
5064
|
-
var Array_1 = __webpack_require__(/*! ./Array */ "../../node_modules/type-plus/lib/types/Array.js");
|
|
5065
|
-
var Boolean_1 = __webpack_require__(/*! ./Boolean */ "../../node_modules/type-plus/lib/types/Boolean.js");
|
|
5066
|
-
var Null_1 = __webpack_require__(/*! ./Null */ "../../node_modules/type-plus/lib/types/Null.js");
|
|
5067
|
-
var Number_1 = __webpack_require__(/*! ./Number */ "../../node_modules/type-plus/lib/types/Number.js");
|
|
5068
|
-
var String_1 = __webpack_require__(/*! ./String */ "../../node_modules/type-plus/lib/types/String.js");
|
|
5069
|
-
var Symbol_1 = __webpack_require__(/*! ./Symbol */ "../../node_modules/type-plus/lib/types/Symbol.js");
|
|
5070
|
-
var Tuple_1 = __webpack_require__(/*! ./Tuple */ "../../node_modules/type-plus/lib/types/Tuple.js");
|
|
5071
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
5072
|
-
var Unknown_1 = __webpack_require__(/*! ./Unknown */ "../../node_modules/type-plus/lib/types/Unknown.js");
|
|
5073
|
-
var Record_1 = __webpack_require__(/*! ./Record */ "../../node_modules/type-plus/lib/types/Record.js");
|
|
5074
|
-
// import { bigint } from './types/BigInt'
|
|
5075
|
-
exports.optional = {
|
|
5076
|
-
any: Any_1.any,
|
|
5077
|
-
array: Array_1.array.optional,
|
|
5078
|
-
// bigint: bigint.optional,
|
|
5079
|
-
boolean: Boolean_1.boolean.optional,
|
|
5080
|
-
null: Null_1.nil.optional,
|
|
5081
|
-
number: Number_1.number.optional,
|
|
5082
|
-
object: Object_1.object.optional,
|
|
5083
|
-
record: Record_1.record.optional,
|
|
5084
|
-
string: String_1.string.optional,
|
|
5085
|
-
symbol: Symbol_1.symbol.optional,
|
|
5086
|
-
tuple: Tuple_1.tuple.optional,
|
|
5087
|
-
undefined: Undefined_1.undef,
|
|
5088
|
-
unknown: Unknown_1.unknown
|
|
5089
|
-
};
|
|
5090
|
-
exports.O = exports.optional;
|
|
5091
|
-
//# sourceMappingURL=optional.js.map
|
|
5092
|
-
|
|
5093
|
-
/***/ }),
|
|
5094
|
-
|
|
5095
|
-
/***/ "../../node_modules/type-plus/lib/types/required.js":
|
|
5096
|
-
/*!**********************************************************!*\
|
|
5097
|
-
!*** ../../node_modules/type-plus/lib/types/required.js ***!
|
|
5098
|
-
\**********************************************************/
|
|
5099
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5100
|
-
|
|
5101
|
-
"use strict";
|
|
5102
|
-
|
|
5103
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5104
|
-
exports.R = exports.required = void 0;
|
|
5105
|
-
var Object_1 = __webpack_require__(/*! ./Object */ "../../node_modules/type-plus/lib/types/Object.js");
|
|
5106
|
-
var Any_1 = __webpack_require__(/*! ./Any */ "../../node_modules/type-plus/lib/types/Any.js");
|
|
5107
|
-
var Array_1 = __webpack_require__(/*! ./Array */ "../../node_modules/type-plus/lib/types/Array.js");
|
|
5108
|
-
var Boolean_1 = __webpack_require__(/*! ./Boolean */ "../../node_modules/type-plus/lib/types/Boolean.js");
|
|
5109
|
-
var Null_1 = __webpack_require__(/*! ./Null */ "../../node_modules/type-plus/lib/types/Null.js");
|
|
5110
|
-
var Number_1 = __webpack_require__(/*! ./Number */ "../../node_modules/type-plus/lib/types/Number.js");
|
|
5111
|
-
var String_1 = __webpack_require__(/*! ./String */ "../../node_modules/type-plus/lib/types/String.js");
|
|
5112
|
-
var Symbol_1 = __webpack_require__(/*! ./Symbol */ "../../node_modules/type-plus/lib/types/Symbol.js");
|
|
5113
|
-
var Tuple_1 = __webpack_require__(/*! ./Tuple */ "../../node_modules/type-plus/lib/types/Tuple.js");
|
|
5114
|
-
var Undefined_1 = __webpack_require__(/*! ./Undefined */ "../../node_modules/type-plus/lib/types/Undefined.js");
|
|
5115
|
-
var Unknown_1 = __webpack_require__(/*! ./Unknown */ "../../node_modules/type-plus/lib/types/Unknown.js");
|
|
5116
|
-
var Record_1 = __webpack_require__(/*! ./Record */ "../../node_modules/type-plus/lib/types/Record.js");
|
|
5117
|
-
// import { bigint } from './types/BigInt'
|
|
5118
|
-
exports.required = {
|
|
5119
|
-
any: Any_1.any,
|
|
5120
|
-
array: Array_1.array,
|
|
5121
|
-
// bigint: bigint,
|
|
5122
|
-
boolean: Boolean_1.boolean,
|
|
5123
|
-
null: Null_1.nil,
|
|
5124
|
-
number: Number_1.number,
|
|
5125
|
-
object: Object_1.object,
|
|
5126
|
-
record: Record_1.record,
|
|
5127
|
-
string: String_1.string,
|
|
5128
|
-
symbol: Symbol_1.symbol,
|
|
5129
|
-
tuple: Tuple_1.tuple,
|
|
5130
|
-
undefined: Undefined_1.undef,
|
|
5131
|
-
unknown: Unknown_1.unknown
|
|
5132
|
-
};
|
|
5133
|
-
exports.R = exports.required;
|
|
5134
|
-
//# sourceMappingURL=required.js.map
|
|
5135
|
-
|
|
5136
|
-
/***/ }),
|
|
5137
|
-
|
|
5138
|
-
/***/ "../../node_modules/type-plus/lib/types/satisfy.js":
|
|
5139
|
-
/*!*********************************************************!*\
|
|
5140
|
-
!*** ../../node_modules/type-plus/lib/types/satisfy.js ***!
|
|
5141
|
-
\*********************************************************/
|
|
5142
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5143
|
-
|
|
5144
|
-
"use strict";
|
|
5145
|
-
|
|
5146
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5147
|
-
exports.satisfy = void 0;
|
|
5148
|
-
var analyze_1 = __webpack_require__(/*! ./analyze */ "../../node_modules/type-plus/lib/types/analyze.js");
|
|
5149
|
-
var getPlainAnalysisReport_1 = __webpack_require__(/*! ./getPlainAnalysisReport */ "../../node_modules/type-plus/lib/types/getPlainAnalysisReport.js");
|
|
5150
|
-
/**
|
|
5151
|
-
* Checks if the specified `subject` satisfies the `type`.
|
|
5152
|
-
* `satisfy()` is the shortcut of `check({ strict: false }, ...)`.
|
|
5153
|
-
* @return type guard (boolean). If the subject does not satisfies the type,
|
|
5154
|
-
* the detail report is available in `satisfy.result`,
|
|
5155
|
-
* and you can get a string report using `satisfy.getReport()`
|
|
5156
|
-
*/
|
|
5157
|
-
function satisfy(type, subject) {
|
|
5158
|
-
var result = satisfy.result = analyze_1.analyze({ strict: false }, type, subject);
|
|
5159
|
-
return !result.analysis.fail;
|
|
5160
|
-
}
|
|
5161
|
-
exports.satisfy = satisfy;
|
|
5162
|
-
/**
|
|
5163
|
-
* Analysis report.
|
|
5164
|
-
*/
|
|
5165
|
-
satisfy.result = { analysis: {} };
|
|
5166
|
-
/**
|
|
5167
|
-
* Gets a simple report of the analysis.
|
|
5168
|
-
*/
|
|
5169
|
-
satisfy.getReport = function () { return getPlainAnalysisReport_1.getPlainAnalysisReport(satisfy.result); };
|
|
5170
|
-
//# sourceMappingURL=satisfy.js.map
|
|
5171
|
-
|
|
5172
|
-
/***/ }),
|
|
5173
|
-
|
|
5174
|
-
/***/ "../../node_modules/type-plus/lib/types/types.js":
|
|
5175
|
-
/*!*******************************************************!*\
|
|
5176
|
-
!*** ../../node_modules/type-plus/lib/types/types.js ***!
|
|
5177
|
-
\*******************************************************/
|
|
5178
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
5179
|
-
|
|
5180
|
-
"use strict";
|
|
5181
|
-
|
|
5182
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5183
|
-
//# sourceMappingURL=types.js.map
|
|
5184
|
-
|
|
5185
|
-
/***/ }),
|
|
5186
|
-
|
|
5187
|
-
/***/ "../../node_modules/type-plus/lib/utils/Widen.js":
|
|
5188
|
-
/*!*******************************************************!*\
|
|
5189
|
-
!*** ../../node_modules/type-plus/lib/utils/Widen.js ***!
|
|
5190
|
-
\*******************************************************/
|
|
5191
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
5192
|
-
|
|
5193
|
-
"use strict";
|
|
5194
|
-
|
|
5195
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5196
|
-
//# sourceMappingURL=Widen.js.map
|
|
5197
|
-
|
|
5198
|
-
/***/ }),
|
|
5199
|
-
|
|
5200
|
-
/***/ "../../node_modules/type-plus/lib/utils/index.js":
|
|
5201
|
-
/*!*******************************************************!*\
|
|
5202
|
-
!*** ../../node_modules/type-plus/lib/utils/index.js ***!
|
|
5203
|
-
\*******************************************************/
|
|
4425
|
+
/***/ "../../node_modules/unpartial/lib/index.js":
|
|
4426
|
+
/*!*************************************************!*\
|
|
4427
|
+
!*** ../../node_modules/unpartial/lib/index.js ***!
|
|
4428
|
+
\*************************************************/
|
|
5204
4429
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5205
4430
|
|
|
5206
4431
|
"use strict";
|
|
@@ -5216,25 +4441,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
5216
4441
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5217
4442
|
};
|
|
5218
4443
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5219
|
-
__exportStar(__webpack_require__(/*! ./
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
/***/ }),
|
|
5223
|
-
|
|
5224
|
-
/***/ "../../node_modules/unpartial/lib/index.js":
|
|
5225
|
-
/*!*************************************************!*\
|
|
5226
|
-
!*** ../../node_modules/unpartial/lib/index.js ***!
|
|
5227
|
-
\*************************************************/
|
|
5228
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5229
|
-
|
|
5230
|
-
"use strict";
|
|
5231
|
-
|
|
5232
|
-
function __export(m) {
|
|
5233
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
5234
|
-
}
|
|
5235
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5236
|
-
__export(__webpack_require__(/*! ./required */ "../../node_modules/unpartial/lib/required.js"));
|
|
5237
|
-
__export(__webpack_require__(/*! ./unpartial */ "../../node_modules/unpartial/lib/unpartial.js"));
|
|
4444
|
+
__exportStar(__webpack_require__(/*! ./required */ "../../node_modules/unpartial/lib/required.js"), exports);
|
|
4445
|
+
__exportStar(__webpack_require__(/*! ./unpartial */ "../../node_modules/unpartial/lib/unpartial.js"), exports);
|
|
5238
4446
|
//# sourceMappingURL=index.js.map
|
|
5239
4447
|
|
|
5240
4448
|
/***/ }),
|
|
@@ -5258,9 +4466,21 @@ var __assign = (this && this.__assign) || function () {
|
|
|
5258
4466
|
};
|
|
5259
4467
|
return __assign.apply(this, arguments);
|
|
5260
4468
|
};
|
|
4469
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
4470
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4471
|
+
if (ar || !(i in from)) {
|
|
4472
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
4473
|
+
ar[i] = from[i];
|
|
4474
|
+
}
|
|
4475
|
+
}
|
|
4476
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
4477
|
+
};
|
|
5261
4478
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4479
|
+
exports.requiredDeep = exports.required = void 0;
|
|
4480
|
+
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
4481
|
+
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
5262
4482
|
function required(source1, source2, source3) {
|
|
5263
|
-
return merge([source1, source2, source3], function (p, e) { return (__assign({}, p, e)); });
|
|
4483
|
+
return merge([source1, source2, source3], function (p, e) { return (__assign(__assign({}, p), e)); });
|
|
5264
4484
|
}
|
|
5265
4485
|
exports.required = required;
|
|
5266
4486
|
function requiredDeep(source1, source2, source3) {
|
|
@@ -5279,10 +4499,11 @@ function deepmerge(source1, source2) {
|
|
|
5279
4499
|
if (Array.isArray(source2))
|
|
5280
4500
|
return source2;
|
|
5281
4501
|
if (source2 === undefined)
|
|
5282
|
-
return source1
|
|
5283
|
-
return
|
|
4502
|
+
return __spreadArray([], source1, true);
|
|
4503
|
+
return __spreadArray(__spreadArray([], source1, true), [source2], false);
|
|
5284
4504
|
}
|
|
5285
4505
|
return getAllKeys(source1).concat(getAllKeys(source2)).reduce(function (p, k) {
|
|
4506
|
+
// @ts-ignore
|
|
5286
4507
|
p[k] = deepmerge(source1[k], source2 && source2[k]);
|
|
5287
4508
|
return p;
|
|
5288
4509
|
}, {});
|
|
@@ -5293,6 +4514,7 @@ function getAllKeys(subject, internal) {
|
|
|
5293
4514
|
return [];
|
|
5294
4515
|
var propertyNames = Object.getOwnPropertyNames(subject);
|
|
5295
4516
|
var keys = internal ? propertyNames.filter(function (n) { return n !== 'constructor'; }) : propertyNames;
|
|
4517
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
5296
4518
|
var proto = Object.getPrototypeOf(subject);
|
|
5297
4519
|
return proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;
|
|
5298
4520
|
}
|
|
@@ -5309,13 +4531,16 @@ function getAllKeys(subject, internal) {
|
|
|
5309
4531
|
"use strict";
|
|
5310
4532
|
|
|
5311
4533
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4534
|
+
exports.unpartialRecursively = exports.unpartial = void 0;
|
|
5312
4535
|
var required_1 = __webpack_require__(/*! ./required */ "../../node_modules/unpartial/lib/required.js");
|
|
5313
4536
|
function unpartial(arg1, arg2, arg3) {
|
|
5314
|
-
|
|
4537
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
4538
|
+
return (0, required_1.required)(arg1, arg2, arg3);
|
|
5315
4539
|
}
|
|
5316
4540
|
exports.unpartial = unpartial;
|
|
5317
4541
|
function unpartialRecursively(arg1, arg2, arg3) {
|
|
5318
|
-
|
|
4542
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
4543
|
+
return (0, required_1.requiredDeep)(arg1, arg2, arg3);
|
|
5319
4544
|
}
|
|
5320
4545
|
exports.unpartialRecursively = unpartialRecursively;
|
|
5321
4546
|
//# sourceMappingURL=unpartial.js.map
|
|
@@ -6161,8 +5386,9 @@ module.exports = GlobalStore;
|
|
|
6161
5386
|
/******/ // The require function
|
|
6162
5387
|
/******/ function __webpack_require__(moduleId) {
|
|
6163
5388
|
/******/ // Check if module is in cache
|
|
6164
|
-
/******/
|
|
6165
|
-
/******/
|
|
5389
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
5390
|
+
/******/ if (cachedModule !== undefined) {
|
|
5391
|
+
/******/ return cachedModule.exports;
|
|
6166
5392
|
/******/ }
|
|
6167
5393
|
/******/ // Create a new module (and put it into the cache)
|
|
6168
5394
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|