standard-log 12.1.1 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/cjs/console.d.ts.map +1 -1
- package/cjs/console.js +8 -11
- package/cjs/console.js.map +1 -1
- package/cjs/errors.d.ts +1 -1
- package/cjs/errors.d.ts.map +1 -1
- package/cjs/errors.js.map +1 -1
- package/cjs/formatter.d.ts.map +1 -1
- package/cjs/formatter.js +5 -7
- package/cjs/formatter.js.map +1 -1
- package/cjs/index.d.ts +2 -2
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/log_levels.js +5 -5
- package/cjs/log_levels.js.map +1 -1
- package/cjs/log_store.js +2 -3
- package/cjs/log_store.js.map +1 -1
- package/cjs/logger.d.ts +1 -1
- package/cjs/logger.d.ts.map +1 -1
- package/cjs/logger.js +1 -2
- package/cjs/logger.js.map +1 -1
- package/cjs/memory.d.ts.map +1 -1
- package/cjs/memory.js +6 -9
- package/cjs/memory.js.map +1 -1
- package/cjs/platform.browser.d.ts.map +1 -1
- package/cjs/platform.d.ts.map +1 -1
- package/cjs/platform.js +2 -2
- package/cjs/platform.js.map +1 -1
- package/cjs/standard_log.d.ts +1 -1
- package/cjs/standard_log.d.ts.map +1 -1
- package/cjs/standard_log.js +5 -6
- package/cjs/standard_log.js.map +1 -1
- package/cjs/standard_log.testing.d.ts +1 -1
- package/cjs/standard_log.testing.js +1 -2
- package/cjs/standard_log.testing.js.map +1 -1
- package/cjs/testing/index.d.ts +2 -2
- package/cjs/testing/index.d.ts.map +1 -1
- package/cjs/testing/index.js.map +1 -1
- package/cjs/types.d.ts +1 -1
- package/cjs/types.d.ts.map +1 -1
- package/cjs/types.js.map +1 -1
- package/dist/standard-log.es5.js +1539 -1116
- package/dist/standard-log.es5.js.gz +0 -0
- package/dist/standard-log.es5.js.map +1 -1
- package/dist/standard-log.es5.js.map.gz +0 -0
- package/dist/standard-log.esm.js +202 -249
- package/dist/standard-log.esm.js.gz +0 -0
- package/dist/standard-log.esm.js.map +1 -1
- package/dist/standard-log.esm.js.map.gz +0 -0
- package/esm/console.d.ts.map +1 -1
- package/esm/console.js +7 -9
- package/esm/console.js.map +1 -1
- package/esm/errors.d.ts +1 -1
- package/esm/errors.d.ts.map +1 -1
- package/esm/errors.js.map +1 -1
- package/esm/formatter.d.ts.map +1 -1
- package/esm/formatter.js +1 -2
- package/esm/formatter.js.map +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/esm/log_levels.js +2 -2
- package/esm/log_levels.js.map +1 -1
- package/esm/logger.d.ts +1 -1
- package/esm/logger.d.ts.map +1 -1
- package/esm/logger.js.map +1 -1
- package/esm/memory.d.ts.map +1 -1
- package/esm/memory.js +3 -5
- package/esm/memory.js.map +1 -1
- package/esm/platform.browser.d.ts.map +1 -1
- package/esm/platform.d.ts.map +1 -1
- package/esm/platform.js +1 -1
- package/esm/platform.js.map +1 -1
- package/esm/standard_log.d.ts +1 -1
- package/esm/standard_log.d.ts.map +1 -1
- package/esm/standard_log.js.map +1 -1
- package/esm/standard_log.testing.d.ts +1 -1
- package/esm/standard_log.testing.js.map +1 -1
- package/esm/testing/index.d.ts +2 -2
- package/esm/testing/index.d.ts.map +1 -1
- package/esm/testing/index.js.map +1 -1
- package/esm/types.d.ts +1 -1
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js.map +1 -1
- package/package.json +24 -36
- package/ts/console.ts +7 -8
- package/ts/errors.ts +5 -2
- package/ts/formatter.ts +1 -2
- package/ts/index.ts +3 -3
- package/ts/log_levels.ts +2 -2
- package/ts/logger.ts +14 -7
- package/ts/memory.ts +3 -5
- package/ts/platform.ts +1 -1
- package/ts/standard_log.testing.ts +1 -1
- package/ts/standard_log.ts +2 -2
- package/ts/testing/index.ts +3 -3
- package/ts/types.ts +1 -1
package/dist/standard-log.esm.js
CHANGED
|
@@ -2,11 +2,11 @@ var StandardLog;
|
|
|
2
2
|
/******/ (function() { // webpackBootstrap
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"
|
|
5
|
+
/***/ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"
|
|
6
6
|
/*!******************************************************************!*\
|
|
7
7
|
!*** ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js ***!
|
|
8
8
|
\******************************************************************/
|
|
9
|
-
|
|
9
|
+
(module) {
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Helpers.
|
|
@@ -172,23 +172,23 @@ function plural(ms, msAbs, n, name) {
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
|
|
175
|
-
/***/ }
|
|
175
|
+
/***/ },
|
|
176
176
|
|
|
177
|
-
/***/ "./ts/console.ts"
|
|
177
|
+
/***/ "./ts/console.ts"
|
|
178
178
|
/*!***********************!*\
|
|
179
179
|
!*** ./ts/console.ts ***!
|
|
180
180
|
\***********************/
|
|
181
|
-
|
|
181
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
182
182
|
|
|
183
183
|
"use strict";
|
|
184
184
|
__webpack_require__.r(__webpack_exports__);
|
|
185
185
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
186
|
-
/* harmony export */
|
|
187
|
-
/* harmony export */
|
|
186
|
+
/* harmony export */ createConsoleLogReporter: function() { return /* binding */ createConsoleLogReporter; },
|
|
187
|
+
/* harmony export */ toConsoleMethod: function() { return /* binding */ toConsoleMethod; }
|
|
188
188
|
/* harmony export */ });
|
|
189
|
-
/* harmony import */ var
|
|
190
|
-
/* harmony import */ var
|
|
191
|
-
/* harmony import */ var
|
|
189
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/esm/index.js");
|
|
190
|
+
/* harmony import */ var _formatter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatter.js */ "./ts/formatter.ts");
|
|
191
|
+
/* harmony import */ var _log_levels_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
192
192
|
/* harmony import */ var _platform_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./platform.js */ "./ts/platform.browser.ts");
|
|
193
193
|
|
|
194
194
|
|
|
@@ -199,11 +199,11 @@ function toConsoleMethod(level) {
|
|
|
199
199
|
// edge case in case none is somehow written
|
|
200
200
|
case level <= 0:
|
|
201
201
|
return 'debug';
|
|
202
|
-
case level <=
|
|
202
|
+
case level <= _log_levels_js__WEBPACK_IMPORTED_MODULE_2__.logLevels.error:
|
|
203
203
|
return 'error';
|
|
204
|
-
case level <=
|
|
204
|
+
case level <= _log_levels_js__WEBPACK_IMPORTED_MODULE_2__.logLevels.warn:
|
|
205
205
|
return 'warn';
|
|
206
|
-
case level <=
|
|
206
|
+
case level <= _log_levels_js__WEBPACK_IMPORTED_MODULE_2__.logLevels.info:
|
|
207
207
|
return 'info';
|
|
208
208
|
default:
|
|
209
209
|
return 'debug';
|
|
@@ -224,23 +224,21 @@ function buildPolyfillConsole() {
|
|
|
224
224
|
error: (typeof console.error === 'function' ? console.error : console.log).bind(console)
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
};
|
|
234
|
-
}
|
|
227
|
+
return {
|
|
228
|
+
debug: buildFn(typeof console.debug === 'function' ? 'debug' : 'log'),
|
|
229
|
+
info: buildFn(typeof console.info === 'function' ? 'info' : 'log'),
|
|
230
|
+
warn: buildFn(typeof console.warn === 'function' ? 'warn' : 'log'),
|
|
231
|
+
error: buildFn(typeof console.error === 'function' ? 'error' : 'log')
|
|
232
|
+
};
|
|
235
233
|
}
|
|
236
234
|
// istanbul ignore next
|
|
237
235
|
function buildFn(name) {
|
|
238
|
-
return
|
|
236
|
+
return (...args) => {
|
|
239
237
|
console[name](...args);
|
|
240
238
|
};
|
|
241
239
|
}
|
|
242
240
|
function createConsoleLogReporter(options) {
|
|
243
|
-
const { id, formatter, filter } = (0,
|
|
241
|
+
const { id, formatter, filter } = (0,type_plus__WEBPACK_IMPORTED_MODULE_0__.unpartial)({ id: 'console', formatter: _formatter_js__WEBPACK_IMPORTED_MODULE_1__.consoleFormatter }, options);
|
|
244
242
|
if (!_platform_js__WEBPACK_IMPORTED_MODULE_3__.polyfill.console)
|
|
245
243
|
_platform_js__WEBPACK_IMPORTED_MODULE_3__.polyfill.console = buildPolyfillConsole();
|
|
246
244
|
return Object.freeze({
|
|
@@ -264,21 +262,21 @@ function createConsoleLogReporter(options) {
|
|
|
264
262
|
}
|
|
265
263
|
|
|
266
264
|
|
|
267
|
-
/***/ }
|
|
265
|
+
/***/ },
|
|
268
266
|
|
|
269
|
-
/***/ "./ts/errors.ts"
|
|
267
|
+
/***/ "./ts/errors.ts"
|
|
270
268
|
/*!**********************!*\
|
|
271
269
|
!*** ./ts/errors.ts ***!
|
|
272
270
|
\**********************/
|
|
273
|
-
|
|
271
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
274
272
|
|
|
275
273
|
"use strict";
|
|
276
274
|
__webpack_require__.r(__webpack_exports__);
|
|
277
275
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
278
|
-
/* harmony export */
|
|
279
|
-
/* harmony export */
|
|
276
|
+
/* harmony export */ InvalidId: function() { return /* binding */ InvalidId; },
|
|
277
|
+
/* harmony export */ StandardLogError: function() { return /* binding */ StandardLogError; }
|
|
280
278
|
/* harmony export */ });
|
|
281
|
-
/* harmony import */ var iso_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! iso-error */ "../../node_modules/.pnpm/iso-error@6.0.
|
|
279
|
+
/* harmony import */ var iso_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! iso-error */ "../../node_modules/.pnpm/iso-error@6.0.3/node_modules/iso-error/esm/index.js");
|
|
282
280
|
|
|
283
281
|
/**
|
|
284
282
|
* @deprecated No longer used since 11.2.0
|
|
@@ -304,27 +302,25 @@ class InvalidId extends StandardLogError {
|
|
|
304
302
|
}
|
|
305
303
|
|
|
306
304
|
|
|
307
|
-
/***/ }
|
|
305
|
+
/***/ },
|
|
308
306
|
|
|
309
|
-
/***/ "./ts/formatter.ts"
|
|
307
|
+
/***/ "./ts/formatter.ts"
|
|
310
308
|
/*!*************************!*\
|
|
311
309
|
!*** ./ts/formatter.ts ***!
|
|
312
310
|
\*************************/
|
|
313
|
-
|
|
311
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
314
312
|
|
|
315
313
|
"use strict";
|
|
316
314
|
__webpack_require__.r(__webpack_exports__);
|
|
317
315
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
318
|
-
/* harmony export */
|
|
319
|
-
/* harmony export */
|
|
320
|
-
/* harmony export */
|
|
321
|
-
/* harmony export */
|
|
316
|
+
/* harmony export */ consoleFormatter: function() { return /* binding */ consoleFormatter; },
|
|
317
|
+
/* harmony export */ createTimestampFormatter: function() { return /* binding */ createTimestampFormatter; },
|
|
318
|
+
/* harmony export */ formatLogLevel: function() { return /* binding */ formatLogLevel; },
|
|
319
|
+
/* harmony export */ plainLogFormatter: function() { return /* binding */ plainLogFormatter; }
|
|
322
320
|
/* harmony export */ });
|
|
323
321
|
/* harmony import */ var ms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ms */ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js");
|
|
324
322
|
/* harmony import */ var ms__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ms__WEBPACK_IMPORTED_MODULE_0__);
|
|
325
|
-
/* harmony import */ var
|
|
326
|
-
/* harmony import */ var _log_levels_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
327
|
-
|
|
323
|
+
/* harmony import */ var _log_levels_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
328
324
|
|
|
329
325
|
|
|
330
326
|
function createTimestampFormatter(format) {
|
|
@@ -345,7 +341,7 @@ function createTimestampFormatter(format) {
|
|
|
345
341
|
}
|
|
346
342
|
}
|
|
347
343
|
function formatLogLevel(level) {
|
|
348
|
-
return `(${(0,
|
|
344
|
+
return `(${(0,_log_levels_js__WEBPACK_IMPORTED_MODULE_1__.toLogLevelName)(level).toUpperCase()})`;
|
|
349
345
|
}
|
|
350
346
|
/**
|
|
351
347
|
* Formats log entry as plain text with the following format:
|
|
@@ -364,21 +360,21 @@ function consoleFormatter({ args }) {
|
|
|
364
360
|
}
|
|
365
361
|
|
|
366
362
|
|
|
367
|
-
/***/ }
|
|
363
|
+
/***/ },
|
|
368
364
|
|
|
369
|
-
/***/ "./ts/log_levels.ts"
|
|
365
|
+
/***/ "./ts/log_levels.ts"
|
|
370
366
|
/*!**************************!*\
|
|
371
367
|
!*** ./ts/log_levels.ts ***!
|
|
372
368
|
\**************************/
|
|
373
|
-
|
|
369
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
374
370
|
|
|
375
371
|
"use strict";
|
|
376
372
|
__webpack_require__.r(__webpack_exports__);
|
|
377
373
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
378
|
-
/* harmony export */
|
|
379
|
-
/* harmony export */
|
|
380
|
-
/* harmony export */
|
|
381
|
-
/* harmony export */
|
|
374
|
+
/* harmony export */ DEFAULT_LOG_METHOD_NAMES: function() { return /* binding */ DEFAULT_LOG_METHOD_NAMES; },
|
|
375
|
+
/* harmony export */ logLevels: function() { return /* binding */ logLevels; },
|
|
376
|
+
/* harmony export */ toLogLevel: function() { return /* binding */ toLogLevel; },
|
|
377
|
+
/* harmony export */ toLogLevelName: function() { return /* binding */ toLogLevelName; }
|
|
382
378
|
/* harmony export */ });
|
|
383
379
|
const logLevels = {
|
|
384
380
|
/**
|
|
@@ -445,11 +441,11 @@ const logLevels = {
|
|
|
445
441
|
*
|
|
446
442
|
* trace -> planck
|
|
447
443
|
*/
|
|
448
|
-
planck:
|
|
444
|
+
planck: Number.POSITIVE_INFINITY,
|
|
449
445
|
/**
|
|
450
446
|
* all: Infinity
|
|
451
447
|
*/
|
|
452
|
-
all:
|
|
448
|
+
all: Number.POSITIVE_INFINITY
|
|
453
449
|
};
|
|
454
450
|
/**
|
|
455
451
|
* Convert default log level value to log level name.
|
|
@@ -495,39 +491,39 @@ const DEFAULT_LOG_METHOD_NAMES = [
|
|
|
495
491
|
];
|
|
496
492
|
|
|
497
493
|
|
|
498
|
-
/***/ }
|
|
494
|
+
/***/ },
|
|
499
495
|
|
|
500
|
-
/***/ "./ts/log_store.ts"
|
|
496
|
+
/***/ "./ts/log_store.ts"
|
|
501
497
|
/*!*************************!*\
|
|
502
498
|
!*** ./ts/log_store.ts ***!
|
|
503
499
|
\*************************/
|
|
504
|
-
|
|
500
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
505
501
|
|
|
506
502
|
"use strict";
|
|
507
503
|
__webpack_require__.r(__webpack_exports__);
|
|
508
504
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
509
|
-
/* harmony export */
|
|
510
|
-
/* harmony export */
|
|
505
|
+
/* harmony export */ createLogStore: function() { return /* binding */ createLogStore; },
|
|
506
|
+
/* harmony export */ logLevelStore: function() { return /* binding */ logLevelStore; }
|
|
511
507
|
/* harmony export */ });
|
|
512
|
-
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@
|
|
513
|
-
/* harmony import */ var
|
|
514
|
-
/* harmony import */ var
|
|
515
|
-
/* harmony import */ var
|
|
516
|
-
/* harmony import */ var
|
|
508
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/mapKey.js");
|
|
509
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/record.js");
|
|
510
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/reduceKey.js");
|
|
511
|
+
/* harmony import */ var _console_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
512
|
+
/* harmony import */ var _log_levels_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
517
513
|
|
|
518
514
|
|
|
519
515
|
|
|
520
516
|
function createLogStore(options) {
|
|
521
517
|
return {
|
|
522
|
-
loggers: (0,
|
|
523
|
-
nonConsoleLoggers: (0,
|
|
524
|
-
reporters: options.reporters || [(0,
|
|
518
|
+
loggers: (0,type_plus__WEBPACK_IMPORTED_MODULE_1__.record)(),
|
|
519
|
+
nonConsoleLoggers: (0,type_plus__WEBPACK_IMPORTED_MODULE_1__.record)(),
|
|
520
|
+
reporters: options.reporters || [(0,_console_js__WEBPACK_IMPORTED_MODULE_3__.createConsoleLogReporter)()],
|
|
525
521
|
logLevel: options.logLevel,
|
|
526
522
|
logLevelStore: logLevelStore(options)
|
|
527
523
|
};
|
|
528
524
|
}
|
|
529
525
|
function logLevelStore(options) {
|
|
530
|
-
const customLevels = options.customLevels || (0,
|
|
526
|
+
const customLevels = options.customLevels || (0,type_plus__WEBPACK_IMPORTED_MODULE_1__.record)();
|
|
531
527
|
const store = {
|
|
532
528
|
customLevels,
|
|
533
529
|
customLevelsReverse: (0,type_plus__WEBPACK_IMPORTED_MODULE_2__.reduceByKey)(customLevels, (p, k) => {
|
|
@@ -538,35 +534,35 @@ function logLevelStore(options) {
|
|
|
538
534
|
return {
|
|
539
535
|
getName(level) {
|
|
540
536
|
var _a;
|
|
541
|
-
return (_a = store.customLevelsReverse[level]) !== null && _a !== void 0 ? _a : (0,
|
|
537
|
+
return (_a = store.customLevelsReverse[level]) !== null && _a !== void 0 ? _a : (0,_log_levels_js__WEBPACK_IMPORTED_MODULE_4__.toLogLevelName)(level);
|
|
542
538
|
},
|
|
543
539
|
getLevel(name) {
|
|
544
540
|
var _a;
|
|
545
|
-
return (_a = store.customLevels[name]) !== null && _a !== void 0 ? _a : (0,
|
|
541
|
+
return (_a = store.customLevels[name]) !== null && _a !== void 0 ? _a : (0,_log_levels_js__WEBPACK_IMPORTED_MODULE_4__.toLogLevel)(name);
|
|
546
542
|
},
|
|
547
543
|
getAllLevels() {
|
|
548
|
-
return (0,type_plus__WEBPACK_IMPORTED_MODULE_2__.reduceKey)(
|
|
544
|
+
return (0,type_plus__WEBPACK_IMPORTED_MODULE_2__.reduceKey)(_log_levels_js__WEBPACK_IMPORTED_MODULE_4__.logLevels, (result, name) => {
|
|
549
545
|
if (name !== 'none' && name !== 'all')
|
|
550
|
-
result.push({ name, level:
|
|
546
|
+
result.push({ name, level: _log_levels_js__WEBPACK_IMPORTED_MODULE_4__.logLevels[name] });
|
|
551
547
|
return result;
|
|
552
|
-
}, (0,
|
|
548
|
+
}, (0,type_plus__WEBPACK_IMPORTED_MODULE_0__.mapKey)(store.customLevels, name => ({ name, level: store.customLevels[name] })));
|
|
553
549
|
}
|
|
554
550
|
};
|
|
555
551
|
}
|
|
556
552
|
|
|
557
553
|
|
|
558
|
-
/***/ }
|
|
554
|
+
/***/ },
|
|
559
555
|
|
|
560
|
-
/***/ "./ts/logger.ts"
|
|
556
|
+
/***/ "./ts/logger.ts"
|
|
561
557
|
/*!**********************!*\
|
|
562
558
|
!*** ./ts/logger.ts ***!
|
|
563
559
|
\**********************/
|
|
564
|
-
|
|
560
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
565
561
|
|
|
566
562
|
"use strict";
|
|
567
563
|
__webpack_require__.r(__webpack_exports__);
|
|
568
564
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
569
|
-
/* harmony export */
|
|
565
|
+
/* harmony export */ createLogger: function() { return /* binding */ createLogger; }
|
|
570
566
|
/* harmony export */ });
|
|
571
567
|
/* harmony import */ var _log_levels_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
572
568
|
|
|
@@ -644,33 +640,33 @@ function shouldLog(store, targetLevel, loggerLevel) {
|
|
|
644
640
|
}
|
|
645
641
|
|
|
646
642
|
|
|
647
|
-
/***/ }
|
|
643
|
+
/***/ },
|
|
648
644
|
|
|
649
|
-
/***/ "./ts/memory.ts"
|
|
645
|
+
/***/ "./ts/memory.ts"
|
|
650
646
|
/*!**********************!*\
|
|
651
647
|
!*** ./ts/memory.ts ***!
|
|
652
648
|
\**********************/
|
|
653
|
-
|
|
649
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
654
650
|
|
|
655
651
|
"use strict";
|
|
656
652
|
__webpack_require__.r(__webpack_exports__);
|
|
657
653
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
658
|
-
/* harmony export */
|
|
659
|
-
/* harmony export */
|
|
660
|
-
/* harmony export */
|
|
654
|
+
/* harmony export */ createMemoryLogReporter: function() { return /* binding */ createMemoryLogReporter; },
|
|
655
|
+
/* harmony export */ createMemoryWithConsoleLogReporter: function() { return /* binding */ createMemoryWithConsoleLogReporter; },
|
|
656
|
+
/* harmony export */ toMessageWithLevel: function() { return /* binding */ toMessageWithLevel; }
|
|
661
657
|
/* harmony export */ });
|
|
662
|
-
/* harmony import */ var
|
|
663
|
-
/* harmony import */ var
|
|
664
|
-
/* harmony import */ var
|
|
665
|
-
/* harmony import */ var
|
|
658
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/esm/index.js");
|
|
659
|
+
/* harmony import */ var _console_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
660
|
+
/* harmony import */ var _formatter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatter.js */ "./ts/formatter.ts");
|
|
661
|
+
/* harmony import */ var _platform_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./platform.js */ "./ts/platform.browser.ts");
|
|
666
662
|
|
|
667
663
|
|
|
668
664
|
|
|
669
665
|
|
|
670
666
|
function toMessageWithLevel(logs) {
|
|
671
667
|
return (logs
|
|
672
|
-
.map(
|
|
673
|
-
.map(log => `${(0,
|
|
668
|
+
.map(_platform_js__WEBPACK_IMPORTED_MODULE_3__.toInspectLogEntry)
|
|
669
|
+
.map(log => `${(0,_formatter_js__WEBPACK_IMPORTED_MODULE_2__.formatLogLevel)(log.level)} ${log.args.join(' ')}`)
|
|
674
670
|
.join('\n')
|
|
675
671
|
// if it has more than this log,
|
|
676
672
|
// we assume it is running under tests,
|
|
@@ -678,10 +674,10 @@ function toMessageWithLevel(logs) {
|
|
|
678
674
|
.replace(/^\(WARN\) already configured for test, ignoring config\(\) call\n/, ''));
|
|
679
675
|
}
|
|
680
676
|
function createMemoryLogReporter(options) {
|
|
681
|
-
return Object.freeze(buildMemoryReporter((0,
|
|
677
|
+
return Object.freeze(buildMemoryReporter((0,type_plus__WEBPACK_IMPORTED_MODULE_0__.unpartial)({ id: 'memory' }, options)));
|
|
682
678
|
}
|
|
683
679
|
function buildMemoryReporter(options) {
|
|
684
|
-
const { id, formatter, filter } = (0,
|
|
680
|
+
const { id, formatter, filter } = (0,type_plus__WEBPACK_IMPORTED_MODULE_0__.required)({ id: 'memory', formatter: (e) => e }, options);
|
|
685
681
|
const logs = [];
|
|
686
682
|
return {
|
|
687
683
|
id,
|
|
@@ -701,17 +697,15 @@ function buildMemoryReporter(options) {
|
|
|
701
697
|
return this.getLogMessages().join('\n');
|
|
702
698
|
},
|
|
703
699
|
getLogMessages() {
|
|
704
|
-
return logs.map(
|
|
700
|
+
return logs.map(_platform_js__WEBPACK_IMPORTED_MODULE_3__.toInspectLogEntry).map(log => log.args.join(' '));
|
|
705
701
|
},
|
|
706
702
|
getLogMessagesWithLevel() {
|
|
707
|
-
return logs
|
|
708
|
-
.map(_platform_js__WEBPACK_IMPORTED_MODULE_0__.toInspectLogEntry)
|
|
709
|
-
.map(log => `${(0,_formatter_js__WEBPACK_IMPORTED_MODULE_1__.formatLogLevel)(log.level)} ${log.args.join(' ')}`);
|
|
703
|
+
return logs.map(_platform_js__WEBPACK_IMPORTED_MODULE_3__.toInspectLogEntry).map(log => `${(0,_formatter_js__WEBPACK_IMPORTED_MODULE_2__.formatLogLevel)(log.level)} ${log.args.join(' ')}`);
|
|
710
704
|
},
|
|
711
705
|
getLogMessagesWithIdAndLevel() {
|
|
712
706
|
return logs
|
|
713
|
-
.map(
|
|
714
|
-
.map(log => `${log.id} ${(0,
|
|
707
|
+
.map(_platform_js__WEBPACK_IMPORTED_MODULE_3__.toInspectLogEntry)
|
|
708
|
+
.map(log => `${log.id} ${(0,_formatter_js__WEBPACK_IMPORTED_MODULE_2__.formatLogLevel)(log.level)} ${log.args.join(' ')}`);
|
|
715
709
|
},
|
|
716
710
|
getLogMessageWithLevel() {
|
|
717
711
|
return toMessageWithLevel(logs);
|
|
@@ -720,79 +714,79 @@ function buildMemoryReporter(options) {
|
|
|
720
714
|
* emit the saved log to console for easy debugging
|
|
721
715
|
*/
|
|
722
716
|
emit() {
|
|
723
|
-
const reporter = (0,
|
|
717
|
+
const reporter = (0,_console_js__WEBPACK_IMPORTED_MODULE_1__.createConsoleLogReporter)();
|
|
724
718
|
logs.forEach(l => reporter.write(l));
|
|
725
719
|
}
|
|
726
720
|
};
|
|
727
721
|
}
|
|
728
722
|
function createMemoryWithConsoleLogReporter(options) {
|
|
729
|
-
return Object.freeze(Object.assign(buildMemoryReporter((0,
|
|
723
|
+
return Object.freeze(Object.assign(buildMemoryReporter((0,type_plus__WEBPACK_IMPORTED_MODULE_0__.unpartial)({ id: 'memory-with-console' }, options)), {
|
|
730
724
|
isConsoleReporter: true
|
|
731
725
|
}));
|
|
732
726
|
}
|
|
733
727
|
|
|
734
728
|
|
|
735
|
-
/***/ }
|
|
729
|
+
/***/ },
|
|
736
730
|
|
|
737
|
-
/***/ "./ts/platform.browser.ts"
|
|
731
|
+
/***/ "./ts/platform.browser.ts"
|
|
738
732
|
/*!********************************!*\
|
|
739
733
|
!*** ./ts/platform.browser.ts ***!
|
|
740
734
|
\********************************/
|
|
741
|
-
|
|
735
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
742
736
|
|
|
743
737
|
"use strict";
|
|
744
738
|
__webpack_require__.r(__webpack_exports__);
|
|
745
739
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
746
|
-
/* harmony export */
|
|
747
|
-
/* harmony export */
|
|
740
|
+
/* harmony export */ polyfill: function() { return /* binding */ polyfill; },
|
|
741
|
+
/* harmony export */ toInspectLogEntry: function() { return /* binding */ toInspectLogEntry; }
|
|
748
742
|
/* harmony export */ });
|
|
749
|
-
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@
|
|
743
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/record.js");
|
|
750
744
|
|
|
751
745
|
const toInspectLogEntry = (e) => e;
|
|
752
746
|
const polyfill = (0,type_plus__WEBPACK_IMPORTED_MODULE_0__.record)();
|
|
753
747
|
|
|
754
748
|
|
|
755
|
-
/***/ }
|
|
749
|
+
/***/ },
|
|
756
750
|
|
|
757
|
-
/***/ "./ts/standard_log.ctx.ts"
|
|
751
|
+
/***/ "./ts/standard_log.ctx.ts"
|
|
758
752
|
/*!********************************!*\
|
|
759
753
|
!*** ./ts/standard_log.ctx.ts ***!
|
|
760
754
|
\********************************/
|
|
761
|
-
|
|
755
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
762
756
|
|
|
763
757
|
"use strict";
|
|
764
758
|
__webpack_require__.r(__webpack_exports__);
|
|
765
759
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
766
|
-
/* harmony export */
|
|
760
|
+
/* harmony export */ ctx: function() { return /* binding */ ctx; }
|
|
767
761
|
/* harmony export */ });
|
|
768
|
-
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@
|
|
762
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/record.js");
|
|
769
763
|
|
|
770
764
|
const ctx = (0,type_plus__WEBPACK_IMPORTED_MODULE_0__.record)();
|
|
771
765
|
|
|
772
766
|
|
|
773
|
-
/***/ }
|
|
767
|
+
/***/ },
|
|
774
768
|
|
|
775
|
-
/***/ "./ts/standard_log.ts"
|
|
769
|
+
/***/ "./ts/standard_log.ts"
|
|
776
770
|
/*!****************************!*\
|
|
777
771
|
!*** ./ts/standard_log.ts ***!
|
|
778
772
|
\****************************/
|
|
779
|
-
|
|
773
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
780
774
|
|
|
781
775
|
"use strict";
|
|
782
776
|
__webpack_require__.r(__webpack_exports__);
|
|
783
777
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
784
|
-
/* harmony export */
|
|
785
|
-
/* harmony export */
|
|
786
|
-
/* harmony export */
|
|
787
|
-
/* harmony export */
|
|
788
|
-
/* harmony export */
|
|
778
|
+
/* harmony export */ configGlobal: function() { return /* binding */ configGlobal; },
|
|
779
|
+
/* harmony export */ createStandardLog: function() { return /* binding */ createStandardLog; },
|
|
780
|
+
/* harmony export */ createStandardLogClosure: function() { return /* binding */ createStandardLogClosure; },
|
|
781
|
+
/* harmony export */ getLogger: function() { return /* binding */ getLogger; },
|
|
782
|
+
/* harmony export */ suppressLogs: function() { return /* binding */ suppressLogs; }
|
|
789
783
|
/* harmony export */ });
|
|
790
|
-
/* harmony import */ var
|
|
791
|
-
/* harmony import */ var
|
|
792
|
-
/* harmony import */ var
|
|
793
|
-
/* harmony import */ var
|
|
784
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/esm/index.js");
|
|
785
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/record.js");
|
|
786
|
+
/* harmony import */ var _log_levels_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log_levels.js */ "./ts/log_levels.ts");
|
|
787
|
+
/* harmony import */ var _log_store_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log_store.js */ "./ts/log_store.ts");
|
|
794
788
|
/* harmony import */ var _logger_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./logger.js */ "./ts/logger.ts");
|
|
795
|
-
/* harmony import */ var
|
|
789
|
+
/* harmony import */ var _standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./standard_log.ctx.js */ "./ts/standard_log.ctx.ts");
|
|
796
790
|
|
|
797
791
|
|
|
798
792
|
|
|
@@ -805,17 +799,17 @@ function createStandardLog(options) {
|
|
|
805
799
|
const log = closure.standardLog.getLogger('standard-log');
|
|
806
800
|
log.critical(`Detected reporter with empty id. This is not allowed as it will create problems with feature like 'getNonConsoleLogger()'. Please add an id to your reporter.`);
|
|
807
801
|
}
|
|
808
|
-
if (!
|
|
809
|
-
|
|
802
|
+
if (!_standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.gsl)
|
|
803
|
+
_standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.gsl = closure;
|
|
810
804
|
return closure.standardLog;
|
|
811
805
|
}
|
|
812
806
|
function noop() { }
|
|
813
807
|
function createStandardLogClosure(options) {
|
|
814
808
|
var _a, _b, _c;
|
|
815
809
|
// TODO reporter.id must not be empty
|
|
816
|
-
const store = (0,
|
|
810
|
+
const store = (0,_log_store_js__WEBPACK_IMPORTED_MODULE_3__.createLogStore)((0,type_plus__WEBPACK_IMPORTED_MODULE_0__.required)({ logLevel: _log_levels_js__WEBPACK_IMPORTED_MODULE_2__.logLevels.info }, options));
|
|
817
811
|
const nonConsoleReporters = (_b = (_a = options === null || options === void 0 ? void 0 : options.reporters) === null || _a === void 0 ? void 0 : _a.filter(r => !r.isConsoleReporter).map(r => r.id)) !== null && _b !== void 0 ? _b : [];
|
|
818
|
-
const logMethods =
|
|
812
|
+
const logMethods = _log_levels_js__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_LOG_METHOD_NAMES.concat(Object.keys((_c = options === null || options === void 0 ? void 0 : options.customLevels) !== null && _c !== void 0 ? _c : {})).concat([
|
|
819
813
|
'on',
|
|
820
814
|
'count',
|
|
821
815
|
'write'
|
|
@@ -863,11 +857,11 @@ function createDummyLogger(logMethods) {
|
|
|
863
857
|
return logMethods.reduce((p, m) => {
|
|
864
858
|
p[m] = noop;
|
|
865
859
|
return p;
|
|
866
|
-
}, (0,
|
|
860
|
+
}, (0,type_plus__WEBPACK_IMPORTED_MODULE_1__.record)());
|
|
867
861
|
}
|
|
868
862
|
function suppressLogs(block, ...logs) {
|
|
869
863
|
const origLevels = logs.map(l => l.level);
|
|
870
|
-
logs.forEach(l => (l.level =
|
|
864
|
+
logs.forEach(l => (l.level = _log_levels_js__WEBPACK_IMPORTED_MODULE_2__.logLevels.none));
|
|
871
865
|
const result = block();
|
|
872
866
|
logs.forEach((l, i) => (l.level = origLevels[i]));
|
|
873
867
|
return result;
|
|
@@ -876,106 +870,47 @@ function getLogger(id, options) {
|
|
|
876
870
|
return getGlobalSL().getLogger(id, options);
|
|
877
871
|
}
|
|
878
872
|
function getGlobalSL() {
|
|
879
|
-
if (!
|
|
880
|
-
|
|
881
|
-
return
|
|
873
|
+
if (!_standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.gsl)
|
|
874
|
+
_standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.gsl = createStandardLogClosure();
|
|
875
|
+
return _standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.gsl.standardLog;
|
|
882
876
|
}
|
|
883
877
|
function configGlobal(options) {
|
|
884
|
-
if (
|
|
885
|
-
const log =
|
|
878
|
+
if (_standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.configured) {
|
|
879
|
+
const log = _standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.gsl.standardLog.getLogger('standard-log');
|
|
886
880
|
log.warn('configGlobal() is being called more than once. Please make sure this is expected. Application should use `createStandardLog()` most of the time.');
|
|
887
881
|
}
|
|
888
|
-
if (
|
|
882
|
+
if (_standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.gsl) {
|
|
889
883
|
if (options.logLevel) {
|
|
890
|
-
|
|
884
|
+
_standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.gsl.store.logLevel = options.logLevel;
|
|
891
885
|
}
|
|
892
886
|
if (options.reporters) {
|
|
893
|
-
const reporters =
|
|
887
|
+
const reporters = _standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.gsl.store.reporters;
|
|
894
888
|
reporters.length = 0;
|
|
895
889
|
reporters.push(...options.reporters);
|
|
896
890
|
}
|
|
897
891
|
}
|
|
898
892
|
else {
|
|
899
|
-
|
|
893
|
+
_standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.gsl = createStandardLogClosure(options);
|
|
900
894
|
}
|
|
901
|
-
|
|
895
|
+
_standard_log_ctx_js__WEBPACK_IMPORTED_MODULE_5__.ctx.configured = true;
|
|
902
896
|
}
|
|
903
897
|
|
|
904
898
|
|
|
905
|
-
/***/ }
|
|
899
|
+
/***/ },
|
|
906
900
|
|
|
907
|
-
/***/ "../../node_modules/.pnpm/
|
|
908
|
-
/*!***************************************************************************************!*\
|
|
909
|
-
!*** ../../node_modules/.pnpm/upper-case@2.0.2/node_modules/upper-case/dist/index.js ***!
|
|
910
|
-
\***************************************************************************************/
|
|
911
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
912
|
-
|
|
913
|
-
"use strict";
|
|
914
|
-
|
|
915
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
916
|
-
exports.upperCase = exports.localeUpperCase = void 0;
|
|
917
|
-
/**
|
|
918
|
-
* Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
|
|
919
|
-
*/
|
|
920
|
-
var SUPPORTED_LOCALE = {
|
|
921
|
-
tr: {
|
|
922
|
-
regexp: /[\u0069]/g,
|
|
923
|
-
map: {
|
|
924
|
-
i: "\u0130",
|
|
925
|
-
},
|
|
926
|
-
},
|
|
927
|
-
az: {
|
|
928
|
-
regexp: /[\u0069]/g,
|
|
929
|
-
map: {
|
|
930
|
-
i: "\u0130",
|
|
931
|
-
},
|
|
932
|
-
},
|
|
933
|
-
lt: {
|
|
934
|
-
regexp: /[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,
|
|
935
|
-
map: {
|
|
936
|
-
i̇: "\u0049",
|
|
937
|
-
j̇: "\u004A",
|
|
938
|
-
į̇: "\u012E",
|
|
939
|
-
i̇̀: "\u00CC",
|
|
940
|
-
i̇́: "\u00CD",
|
|
941
|
-
i̇̃: "\u0128",
|
|
942
|
-
},
|
|
943
|
-
},
|
|
944
|
-
};
|
|
945
|
-
/**
|
|
946
|
-
* Localized upper case.
|
|
947
|
-
*/
|
|
948
|
-
function localeUpperCase(str, locale) {
|
|
949
|
-
var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
|
|
950
|
-
if (lang)
|
|
951
|
-
return upperCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
|
|
952
|
-
return upperCase(str);
|
|
953
|
-
}
|
|
954
|
-
exports.localeUpperCase = localeUpperCase;
|
|
955
|
-
/**
|
|
956
|
-
* Upper case as a function.
|
|
957
|
-
*/
|
|
958
|
-
function upperCase(str) {
|
|
959
|
-
return str.toUpperCase();
|
|
960
|
-
}
|
|
961
|
-
exports.upperCase = upperCase;
|
|
962
|
-
//# sourceMappingURL=index.js.map
|
|
963
|
-
|
|
964
|
-
/***/ }),
|
|
965
|
-
|
|
966
|
-
/***/ "../../node_modules/.pnpm/iso-error@6.0.1/node_modules/iso-error/esm/index.js":
|
|
901
|
+
/***/ "../../node_modules/.pnpm/iso-error@6.0.3/node_modules/iso-error/esm/index.js"
|
|
967
902
|
/*!************************************************************************************!*\
|
|
968
|
-
!*** ../../node_modules/.pnpm/iso-error@6.0.
|
|
903
|
+
!*** ../../node_modules/.pnpm/iso-error@6.0.3/node_modules/iso-error/esm/index.js ***!
|
|
969
904
|
\************************************************************************************/
|
|
970
|
-
|
|
905
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
971
906
|
|
|
972
907
|
"use strict";
|
|
973
908
|
__webpack_require__.r(__webpack_exports__);
|
|
974
909
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
975
|
-
/* harmony export */
|
|
976
|
-
/* harmony export */
|
|
977
|
-
/* harmony export */
|
|
978
|
-
/* harmony export */
|
|
910
|
+
/* harmony export */ IsoError: function() { return /* binding */ IsoError; },
|
|
911
|
+
/* harmony export */ ModuleError: function() { return /* binding */ ModuleError; },
|
|
912
|
+
/* harmony export */ SerializableConverter: function() { return /* binding */ SerializableConverter; },
|
|
913
|
+
/* harmony export */ isAggregateError: function() { return /* binding */ isAggregateError; }
|
|
979
914
|
/* harmony export */ });
|
|
980
915
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
981
916
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
@@ -1030,11 +965,11 @@ class SerializableConverter {
|
|
|
1030
965
|
return err;
|
|
1031
966
|
}
|
|
1032
967
|
fromSerializableImpl(json) {
|
|
1033
|
-
if (json
|
|
968
|
+
if (json['name'] === 'AggregateError') {
|
|
1034
969
|
const { message, errors, ...rest } = json;
|
|
1035
970
|
// @ts-ignore
|
|
1036
971
|
// istanbul ignore next
|
|
1037
|
-
if (
|
|
972
|
+
if (__webpack_require__.g.AggregateError) {
|
|
1038
973
|
return Object.assign(new AggregateError(errors, message), rest);
|
|
1039
974
|
}
|
|
1040
975
|
else {
|
|
@@ -1046,7 +981,7 @@ class SerializableConverter {
|
|
|
1046
981
|
}
|
|
1047
982
|
const { message, cause, ...rest } = json;
|
|
1048
983
|
const causeError = cause ? this.deserializeError(cause) : undefined;
|
|
1049
|
-
if (json
|
|
984
|
+
if (json['name'] === 'Error') {
|
|
1050
985
|
return Object.assign(new Error(message), causeError ? { ...rest, cause: causeError } : rest);
|
|
1051
986
|
}
|
|
1052
987
|
// @ts-ignore
|
|
@@ -1246,18 +1181,18 @@ function isAggregateError(error) {
|
|
|
1246
1181
|
}
|
|
1247
1182
|
//# sourceMappingURL=index.js.map
|
|
1248
1183
|
|
|
1249
|
-
/***/ }
|
|
1184
|
+
/***/ },
|
|
1250
1185
|
|
|
1251
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
1186
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/mapKey.js"
|
|
1252
1187
|
/*!********************************************************************************************!*\
|
|
1253
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
1188
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/mapKey.js ***!
|
|
1254
1189
|
\********************************************************************************************/
|
|
1255
|
-
|
|
1190
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1256
1191
|
|
|
1257
1192
|
"use strict";
|
|
1258
1193
|
__webpack_require__.r(__webpack_exports__);
|
|
1259
1194
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1260
|
-
/* harmony export */
|
|
1195
|
+
/* harmony export */ mapKey: function() { return /* binding */ mapKey; }
|
|
1261
1196
|
/* harmony export */ });
|
|
1262
1197
|
function mapKey(subject, predicate, thisArg) {
|
|
1263
1198
|
return Object.keys(subject).map(function (k, i, a) {
|
|
@@ -1266,18 +1201,18 @@ function mapKey(subject, predicate, thisArg) {
|
|
|
1266
1201
|
}
|
|
1267
1202
|
//# sourceMappingURL=mapKey.js.map
|
|
1268
1203
|
|
|
1269
|
-
/***/ }
|
|
1204
|
+
/***/ },
|
|
1270
1205
|
|
|
1271
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
1206
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/record.js"
|
|
1272
1207
|
/*!********************************************************************************************!*\
|
|
1273
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
1208
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/record.js ***!
|
|
1274
1209
|
\********************************************************************************************/
|
|
1275
|
-
|
|
1210
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1276
1211
|
|
|
1277
1212
|
"use strict";
|
|
1278
1213
|
__webpack_require__.r(__webpack_exports__);
|
|
1279
1214
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1280
|
-
/* harmony export */
|
|
1215
|
+
/* harmony export */ record: function() { return /* binding */ record; }
|
|
1281
1216
|
/* harmony export */ });
|
|
1282
1217
|
function record(value) {
|
|
1283
1218
|
const r = Object.create(null);
|
|
@@ -1285,19 +1220,19 @@ function record(value) {
|
|
|
1285
1220
|
}
|
|
1286
1221
|
//# sourceMappingURL=record.js.map
|
|
1287
1222
|
|
|
1288
|
-
/***/ }
|
|
1223
|
+
/***/ },
|
|
1289
1224
|
|
|
1290
|
-
/***/ "../../node_modules/.pnpm/type-plus@
|
|
1225
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/reduceKey.js"
|
|
1291
1226
|
/*!***********************************************************************************************!*\
|
|
1292
|
-
!*** ../../node_modules/.pnpm/type-plus@
|
|
1227
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/reduceKey.js ***!
|
|
1293
1228
|
\***********************************************************************************************/
|
|
1294
|
-
|
|
1229
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1295
1230
|
|
|
1296
1231
|
"use strict";
|
|
1297
1232
|
__webpack_require__.r(__webpack_exports__);
|
|
1298
1233
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1299
|
-
/* harmony export */
|
|
1300
|
-
/* harmony export */
|
|
1234
|
+
/* harmony export */ reduceByKey: function() { return /* binding */ reduceByKey; },
|
|
1235
|
+
/* harmony export */ reduceKey: function() { return /* binding */ reduceKey; }
|
|
1301
1236
|
/* harmony export */ });
|
|
1302
1237
|
function reduceByKey(subject, callbackfn, initialValue) {
|
|
1303
1238
|
return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);
|
|
@@ -1308,21 +1243,21 @@ function reduceByKey(subject, callbackfn, initialValue) {
|
|
|
1308
1243
|
const reduceKey = reduceByKey;
|
|
1309
1244
|
//# sourceMappingURL=reduceKey.js.map
|
|
1310
1245
|
|
|
1311
|
-
/***/ }
|
|
1246
|
+
/***/ },
|
|
1312
1247
|
|
|
1313
|
-
/***/ "../../node_modules/.pnpm/unpartial@1.0.
|
|
1248
|
+
/***/ "../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/esm/index.js"
|
|
1314
1249
|
/*!************************************************************************************!*\
|
|
1315
|
-
!*** ../../node_modules/.pnpm/unpartial@1.0.
|
|
1250
|
+
!*** ../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/esm/index.js ***!
|
|
1316
1251
|
\************************************************************************************/
|
|
1317
|
-
|
|
1252
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1318
1253
|
|
|
1319
1254
|
"use strict";
|
|
1320
1255
|
__webpack_require__.r(__webpack_exports__);
|
|
1321
1256
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1322
|
-
/* harmony export */
|
|
1323
|
-
/* harmony export */
|
|
1324
|
-
/* harmony export */
|
|
1325
|
-
/* harmony export */
|
|
1257
|
+
/* harmony export */ required: function() { return /* binding */ required; },
|
|
1258
|
+
/* harmony export */ requiredDeep: function() { return /* binding */ requiredDeep; },
|
|
1259
|
+
/* harmony export */ unpartial: function() { return /* binding */ unpartial; },
|
|
1260
|
+
/* harmony export */ unpartialRecursively: function() { return /* binding */ unpartialRecursively; }
|
|
1326
1261
|
/* harmony export */ });
|
|
1327
1262
|
function required(source1, source2, source3) {
|
|
1328
1263
|
return merge([source1, source2, source3], (p, e) => {
|
|
@@ -1385,7 +1320,7 @@ function unpartialRecursively(arg1, arg2, arg3) {
|
|
|
1385
1320
|
}
|
|
1386
1321
|
//# sourceMappingURL=index.js.map
|
|
1387
1322
|
|
|
1388
|
-
/***/ }
|
|
1323
|
+
/***/ }
|
|
1389
1324
|
|
|
1390
1325
|
/******/ });
|
|
1391
1326
|
/************************************************************************/
|
|
@@ -1407,6 +1342,12 @@ function unpartialRecursively(arg1, arg2, arg3) {
|
|
|
1407
1342
|
/******/ };
|
|
1408
1343
|
/******/
|
|
1409
1344
|
/******/ // Execute the module function
|
|
1345
|
+
/******/ if (!(moduleId in __webpack_modules__)) {
|
|
1346
|
+
/******/ delete __webpack_module_cache__[moduleId];
|
|
1347
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
1348
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
1349
|
+
/******/ throw e;
|
|
1350
|
+
/******/ }
|
|
1410
1351
|
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
1411
1352
|
/******/
|
|
1412
1353
|
/******/ // Return the exports of the module
|
|
@@ -1438,6 +1379,18 @@ function unpartialRecursively(arg1, arg2, arg3) {
|
|
|
1438
1379
|
/******/ };
|
|
1439
1380
|
/******/ }();
|
|
1440
1381
|
/******/
|
|
1382
|
+
/******/ /* webpack/runtime/global */
|
|
1383
|
+
/******/ !function() {
|
|
1384
|
+
/******/ __webpack_require__.g = (function() {
|
|
1385
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
1386
|
+
/******/ try {
|
|
1387
|
+
/******/ return this || new Function('return this')();
|
|
1388
|
+
/******/ } catch (e) {
|
|
1389
|
+
/******/ if (typeof window === 'object') return window;
|
|
1390
|
+
/******/ }
|
|
1391
|
+
/******/ })();
|
|
1392
|
+
/******/ }();
|
|
1393
|
+
/******/
|
|
1441
1394
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1442
1395
|
/******/ !function() {
|
|
1443
1396
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
@@ -1456,7 +1409,7 @@ function unpartialRecursively(arg1, arg2, arg3) {
|
|
|
1456
1409
|
/******/
|
|
1457
1410
|
/************************************************************************/
|
|
1458
1411
|
var __webpack_exports__ = {};
|
|
1459
|
-
// This entry
|
|
1412
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
1460
1413
|
!function() {
|
|
1461
1414
|
"use strict";
|
|
1462
1415
|
/*!*********************!*\
|
|
@@ -1464,25 +1417,25 @@ var __webpack_exports__ = {};
|
|
|
1464
1417
|
\*********************/
|
|
1465
1418
|
__webpack_require__.r(__webpack_exports__);
|
|
1466
1419
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1467
|
-
/* harmony export */
|
|
1468
|
-
/* harmony export */
|
|
1469
|
-
/* harmony export */
|
|
1470
|
-
/* harmony export */
|
|
1471
|
-
/* harmony export */
|
|
1472
|
-
/* harmony export */
|
|
1473
|
-
/* harmony export */
|
|
1474
|
-
/* harmony export */
|
|
1475
|
-
/* harmony export */
|
|
1476
|
-
/* harmony export */
|
|
1477
|
-
/* harmony export */
|
|
1478
|
-
/* harmony export */
|
|
1479
|
-
/* harmony export */
|
|
1480
|
-
/* harmony export */
|
|
1481
|
-
/* harmony export */
|
|
1482
|
-
/* harmony export */
|
|
1483
|
-
/* harmony export */
|
|
1484
|
-
/* harmony export */
|
|
1485
|
-
/* harmony export */
|
|
1420
|
+
/* harmony export */ DEFAULT_LOG_METHOD_NAMES: function() { return /* reexport safe */ _log_levels_js__WEBPACK_IMPORTED_MODULE_3__.DEFAULT_LOG_METHOD_NAMES; },
|
|
1421
|
+
/* harmony export */ InvalidId: function() { return /* reexport safe */ _errors_js__WEBPACK_IMPORTED_MODULE_1__.InvalidId; },
|
|
1422
|
+
/* harmony export */ StandardLogError: function() { return /* reexport safe */ _errors_js__WEBPACK_IMPORTED_MODULE_1__.StandardLogError; },
|
|
1423
|
+
/* harmony export */ configGlobal: function() { return /* reexport safe */ _standard_log_js__WEBPACK_IMPORTED_MODULE_5__.configGlobal; },
|
|
1424
|
+
/* harmony export */ consoleFormatter: function() { return /* reexport safe */ _formatter_js__WEBPACK_IMPORTED_MODULE_2__.consoleFormatter; },
|
|
1425
|
+
/* harmony export */ createConsoleLogReporter: function() { return /* reexport safe */ _console_js__WEBPACK_IMPORTED_MODULE_0__.createConsoleLogReporter; },
|
|
1426
|
+
/* harmony export */ createMemoryLogReporter: function() { return /* reexport safe */ _memory_js__WEBPACK_IMPORTED_MODULE_4__.createMemoryLogReporter; },
|
|
1427
|
+
/* harmony export */ createMemoryWithConsoleLogReporter: function() { return /* reexport safe */ _memory_js__WEBPACK_IMPORTED_MODULE_4__.createMemoryWithConsoleLogReporter; },
|
|
1428
|
+
/* harmony export */ createStandardLog: function() { return /* reexport safe */ _standard_log_js__WEBPACK_IMPORTED_MODULE_5__.createStandardLog; },
|
|
1429
|
+
/* harmony export */ createTimestampFormatter: function() { return /* reexport safe */ _formatter_js__WEBPACK_IMPORTED_MODULE_2__.createTimestampFormatter; },
|
|
1430
|
+
/* harmony export */ formatLogLevel: function() { return /* reexport safe */ _formatter_js__WEBPACK_IMPORTED_MODULE_2__.formatLogLevel; },
|
|
1431
|
+
/* harmony export */ getLogger: function() { return /* reexport safe */ _standard_log_js__WEBPACK_IMPORTED_MODULE_5__.getLogger; },
|
|
1432
|
+
/* harmony export */ logLevels: function() { return /* reexport safe */ _log_levels_js__WEBPACK_IMPORTED_MODULE_3__.logLevels; },
|
|
1433
|
+
/* harmony export */ plainLogFormatter: function() { return /* reexport safe */ _formatter_js__WEBPACK_IMPORTED_MODULE_2__.plainLogFormatter; },
|
|
1434
|
+
/* harmony export */ suppressLogs: function() { return /* reexport safe */ _standard_log_js__WEBPACK_IMPORTED_MODULE_5__.suppressLogs; },
|
|
1435
|
+
/* harmony export */ toConsoleMethod: function() { return /* reexport safe */ _console_js__WEBPACK_IMPORTED_MODULE_0__.toConsoleMethod; },
|
|
1436
|
+
/* harmony export */ toLogLevel: function() { return /* reexport safe */ _log_levels_js__WEBPACK_IMPORTED_MODULE_3__.toLogLevel; },
|
|
1437
|
+
/* harmony export */ toLogLevelName: function() { return /* reexport safe */ _log_levels_js__WEBPACK_IMPORTED_MODULE_3__.toLogLevelName; },
|
|
1438
|
+
/* harmony export */ toMessageWithLevel: function() { return /* reexport safe */ _memory_js__WEBPACK_IMPORTED_MODULE_4__.toMessageWithLevel; }
|
|
1486
1439
|
/* harmony export */ });
|
|
1487
1440
|
/* harmony import */ var _console_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
1488
1441
|
/* harmony import */ var _errors_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./errors.js */ "./ts/errors.ts");
|