standard-log 12.1.2 → 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.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 +1643 -1199
- 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 +273 -303
- 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.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.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@7.
|
|
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@7.
|
|
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@7.
|
|
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,114 +870,54 @@ 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
|
-
/***/ }
|
|
906
|
-
|
|
907
|
-
/***/ "../../node_modules/.pnpm/upper-case@2.0.2/node_modules/upper-case/dist/index.js":
|
|
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
|
-
/***/ }),
|
|
899
|
+
/***/ },
|
|
965
900
|
|
|
966
|
-
/***/ "../../node_modules/.pnpm/iso-error@6.0.
|
|
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
|
-
/* eslint-disable @typescript-eslint/unbound-method */
|
|
981
915
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
982
916
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
983
917
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
984
918
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
985
919
|
};
|
|
986
|
-
var
|
|
920
|
+
var _a, _IsoError_hasCause, _IsoError_toIsoError;
|
|
987
921
|
//#region captureStackTrace polyfill
|
|
988
922
|
// istanbul ignore next
|
|
989
923
|
if (!Error.captureStackTrace) {
|
|
@@ -996,7 +930,9 @@ if (!Error.captureStackTrace) {
|
|
|
996
930
|
defineStack(this, container.stack);
|
|
997
931
|
return container.stack;
|
|
998
932
|
},
|
|
999
|
-
set: function (stack) {
|
|
933
|
+
set: function (stack) {
|
|
934
|
+
defineStack(error, stack);
|
|
935
|
+
}
|
|
1000
936
|
});
|
|
1001
937
|
};
|
|
1002
938
|
}
|
|
@@ -1005,77 +941,85 @@ function defineStack(target, value) {
|
|
|
1005
941
|
Object.defineProperty(target, 'stack', {
|
|
1006
942
|
configurable: true,
|
|
1007
943
|
value,
|
|
1008
|
-
writable: true
|
|
944
|
+
writable: true
|
|
1009
945
|
});
|
|
1010
946
|
}
|
|
1011
947
|
class SerializableConverter {
|
|
1012
948
|
constructor() {
|
|
1013
|
-
|
|
1014
|
-
|
|
949
|
+
Object.defineProperty(this, "plugins", {
|
|
950
|
+
enumerable: true,
|
|
951
|
+
configurable: true,
|
|
952
|
+
writable: true,
|
|
953
|
+
value: []
|
|
954
|
+
});
|
|
1015
955
|
}
|
|
1016
956
|
addPlugin(plugin) {
|
|
1017
|
-
|
|
957
|
+
this.plugins.unshift(plugin);
|
|
1018
958
|
}
|
|
1019
959
|
/**
|
|
1020
960
|
* Deserialize an `Error` from `Serializable`
|
|
1021
961
|
*/
|
|
1022
962
|
fromSerializable(json, options) {
|
|
1023
|
-
const err =
|
|
963
|
+
const err = this.deserializeError(json);
|
|
1024
964
|
Error.captureStackTrace(err, options?.ssf);
|
|
1025
965
|
return err;
|
|
1026
966
|
}
|
|
967
|
+
fromSerializableImpl(json) {
|
|
968
|
+
if (json['name'] === 'AggregateError') {
|
|
969
|
+
const { message, errors, ...rest } = json;
|
|
970
|
+
// @ts-ignore
|
|
971
|
+
// istanbul ignore next
|
|
972
|
+
if (__webpack_require__.g.AggregateError) {
|
|
973
|
+
return Object.assign(new AggregateError(errors, message), rest);
|
|
974
|
+
}
|
|
975
|
+
else {
|
|
976
|
+
return Object.assign(new Error(message), {
|
|
977
|
+
...rest,
|
|
978
|
+
errors
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
const { message, cause, ...rest } = json;
|
|
983
|
+
const causeError = cause ? this.deserializeError(cause) : undefined;
|
|
984
|
+
if (json['name'] === 'Error') {
|
|
985
|
+
return Object.assign(new Error(message), causeError ? { ...rest, cause: causeError } : rest);
|
|
986
|
+
}
|
|
987
|
+
// @ts-ignore
|
|
988
|
+
return Object.assign(new IsoError(message, causeError ? { cause: causeError } : undefined), rest);
|
|
989
|
+
}
|
|
990
|
+
deserializeError(json) {
|
|
991
|
+
let err = undefined;
|
|
992
|
+
for (const { fromSerializable } of this.plugins) {
|
|
993
|
+
err = fromSerializable(json);
|
|
994
|
+
if (err)
|
|
995
|
+
break;
|
|
996
|
+
}
|
|
997
|
+
return err || this.fromSerializableImpl(json);
|
|
998
|
+
}
|
|
1027
999
|
/**
|
|
1028
1000
|
* Serialize `Error` to `Serializable`
|
|
1029
1001
|
*/
|
|
1030
1002
|
toSerializable(err) {
|
|
1031
|
-
return
|
|
1003
|
+
return (this.plugins.reduce((p, s) => p || s.toSerializable(err), undefined) || this.toSerializableImpl(err));
|
|
1032
1004
|
}
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1005
|
+
toSerializableImpl(err) {
|
|
1006
|
+
if (isAggregateError(err)) {
|
|
1007
|
+
return {
|
|
1008
|
+
...err,
|
|
1009
|
+
name: err.constructor.name,
|
|
1010
|
+
message: err.message,
|
|
1011
|
+
errors: err.errors.map(this.toSerializableImpl)
|
|
1012
|
+
};
|
|
1041
1013
|
}
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1014
|
+
if (err instanceof Error) {
|
|
1015
|
+
const { message, cause } = err;
|
|
1016
|
+
return cause
|
|
1017
|
+
? { ...err, name: err.constructor.name, message, cause: this.toSerializableImpl(cause) }
|
|
1018
|
+
: { ...err, name: err.constructor.name, message };
|
|
1047
1019
|
}
|
|
1020
|
+
return err;
|
|
1048
1021
|
}
|
|
1049
|
-
|
|
1050
|
-
const causeError = cause ? __classPrivateFieldGet(this, _SerializableConverter_instances, "m", _SerializableConverter_deserializeError).call(this, cause) : undefined;
|
|
1051
|
-
if (json.name === 'Error') {
|
|
1052
|
-
return Object.assign(new Error(message), causeError ? { ...rest, cause: causeError } : rest);
|
|
1053
|
-
}
|
|
1054
|
-
// @ts-ignore
|
|
1055
|
-
return Object.assign(new IsoError(message, causeError ? { cause: causeError } : undefined), rest);
|
|
1056
|
-
}, _SerializableConverter_deserializeError = function _SerializableConverter_deserializeError(json) {
|
|
1057
|
-
let err = undefined;
|
|
1058
|
-
for (const { fromSerializable } of __classPrivateFieldGet(this, _SerializableConverter_plugins, "f")) {
|
|
1059
|
-
err = fromSerializable(json);
|
|
1060
|
-
if (err)
|
|
1061
|
-
break;
|
|
1062
|
-
}
|
|
1063
|
-
return err || __classPrivateFieldGet(this, _SerializableConverter_instances, "m", _SerializableConverter_fromSerializable).call(this, json);
|
|
1064
|
-
}, _SerializableConverter_toSerializable = function _SerializableConverter_toSerializable(err) {
|
|
1065
|
-
if (isAggregateError(err)) {
|
|
1066
|
-
return {
|
|
1067
|
-
...err, name: err.constructor.name, message: err.message,
|
|
1068
|
-
errors: err.errors.map(__classPrivateFieldGet(this, _SerializableConverter_instances, "m", _SerializableConverter_toSerializable))
|
|
1069
|
-
};
|
|
1070
|
-
}
|
|
1071
|
-
if (err instanceof Error) {
|
|
1072
|
-
const { message, cause } = err;
|
|
1073
|
-
return cause
|
|
1074
|
-
? { ...err, name: err.constructor.name, message, cause: __classPrivateFieldGet(this, _SerializableConverter_instances, "m", _SerializableConverter_toSerializable).call(this, cause) }
|
|
1075
|
-
: { ...err, name: err.constructor.name, message };
|
|
1076
|
-
}
|
|
1077
|
-
return err;
|
|
1078
|
-
};
|
|
1022
|
+
}
|
|
1079
1023
|
const getCircularReplacer = () => {
|
|
1080
1024
|
const seen = new WeakSet();
|
|
1081
1025
|
return (_, value) => {
|
|
@@ -1141,11 +1085,15 @@ class IsoError extends Error {
|
|
|
1141
1085
|
messages.push(`${err.name}: ${err.message}`);
|
|
1142
1086
|
}
|
|
1143
1087
|
if (isAggregateError(err)) {
|
|
1144
|
-
err.errors.forEach(e => messages.push(...this.trace(e)
|
|
1088
|
+
err.errors.forEach(e => messages.push(...this.trace(e)
|
|
1089
|
+
.split('\n')
|
|
1090
|
+
.map(s => ' ' + s)));
|
|
1145
1091
|
}
|
|
1146
1092
|
if (err instanceof Error) {
|
|
1147
1093
|
if (__classPrivateFieldGet(this, _a, "m", _IsoError_hasCause).call(this, err))
|
|
1148
|
-
messages.push(...this.trace(err.cause)
|
|
1094
|
+
messages.push(...this.trace(err.cause)
|
|
1095
|
+
.split('\n')
|
|
1096
|
+
.map(s => ' ' + s));
|
|
1149
1097
|
}
|
|
1150
1098
|
else {
|
|
1151
1099
|
messages.push(typeof err === 'string' ? err : JSON.stringify(err));
|
|
@@ -1189,11 +1137,14 @@ class IsoError extends Error {
|
|
|
1189
1137
|
if (options?.ssf)
|
|
1190
1138
|
Error.captureStackTrace(this, options.ssf);
|
|
1191
1139
|
}
|
|
1192
|
-
toString() {
|
|
1193
|
-
|
|
1140
|
+
toString() {
|
|
1141
|
+
return IsoError.serialize(this);
|
|
1142
|
+
}
|
|
1143
|
+
trace() {
|
|
1144
|
+
return IsoError.trace(this);
|
|
1145
|
+
}
|
|
1194
1146
|
}
|
|
1195
1147
|
_a = IsoError, _IsoError_hasCause = function _IsoError_hasCause(x) {
|
|
1196
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1197
1148
|
return !!x.cause;
|
|
1198
1149
|
}, _IsoError_toIsoError = function _IsoError_toIsoError(err) {
|
|
1199
1150
|
// When the error is an internal error from deserialization,
|
|
@@ -1207,6 +1158,7 @@ Object.defineProperty(IsoError, "converter", {
|
|
|
1207
1158
|
writable: true,
|
|
1208
1159
|
value: new SerializableConverter()
|
|
1209
1160
|
});
|
|
1161
|
+
|
|
1210
1162
|
/**
|
|
1211
1163
|
* An IsoError with a module property.
|
|
1212
1164
|
*/
|
|
@@ -1229,18 +1181,18 @@ function isAggregateError(error) {
|
|
|
1229
1181
|
}
|
|
1230
1182
|
//# sourceMappingURL=index.js.map
|
|
1231
1183
|
|
|
1232
|
-
/***/ }
|
|
1184
|
+
/***/ },
|
|
1233
1185
|
|
|
1234
|
-
/***/ "../../node_modules/.pnpm/type-plus@7.
|
|
1186
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/mapKey.js"
|
|
1235
1187
|
/*!********************************************************************************************!*\
|
|
1236
|
-
!*** ../../node_modules/.pnpm/type-plus@7.
|
|
1188
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/mapKey.js ***!
|
|
1237
1189
|
\********************************************************************************************/
|
|
1238
|
-
|
|
1190
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1239
1191
|
|
|
1240
1192
|
"use strict";
|
|
1241
1193
|
__webpack_require__.r(__webpack_exports__);
|
|
1242
1194
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1243
|
-
/* harmony export */
|
|
1195
|
+
/* harmony export */ mapKey: function() { return /* binding */ mapKey; }
|
|
1244
1196
|
/* harmony export */ });
|
|
1245
1197
|
function mapKey(subject, predicate, thisArg) {
|
|
1246
1198
|
return Object.keys(subject).map(function (k, i, a) {
|
|
@@ -1249,18 +1201,18 @@ function mapKey(subject, predicate, thisArg) {
|
|
|
1249
1201
|
}
|
|
1250
1202
|
//# sourceMappingURL=mapKey.js.map
|
|
1251
1203
|
|
|
1252
|
-
/***/ }
|
|
1204
|
+
/***/ },
|
|
1253
1205
|
|
|
1254
|
-
/***/ "../../node_modules/.pnpm/type-plus@7.
|
|
1206
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/record.js"
|
|
1255
1207
|
/*!********************************************************************************************!*\
|
|
1256
|
-
!*** ../../node_modules/.pnpm/type-plus@7.
|
|
1208
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/record.js ***!
|
|
1257
1209
|
\********************************************************************************************/
|
|
1258
|
-
|
|
1210
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1259
1211
|
|
|
1260
1212
|
"use strict";
|
|
1261
1213
|
__webpack_require__.r(__webpack_exports__);
|
|
1262
1214
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1263
|
-
/* harmony export */
|
|
1215
|
+
/* harmony export */ record: function() { return /* binding */ record; }
|
|
1264
1216
|
/* harmony export */ });
|
|
1265
1217
|
function record(value) {
|
|
1266
1218
|
const r = Object.create(null);
|
|
@@ -1268,19 +1220,19 @@ function record(value) {
|
|
|
1268
1220
|
}
|
|
1269
1221
|
//# sourceMappingURL=record.js.map
|
|
1270
1222
|
|
|
1271
|
-
/***/ }
|
|
1223
|
+
/***/ },
|
|
1272
1224
|
|
|
1273
|
-
/***/ "../../node_modules/.pnpm/type-plus@7.
|
|
1225
|
+
/***/ "../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/reduceKey.js"
|
|
1274
1226
|
/*!***********************************************************************************************!*\
|
|
1275
|
-
!*** ../../node_modules/.pnpm/type-plus@7.
|
|
1227
|
+
!*** ../../node_modules/.pnpm/type-plus@7.6.2/node_modules/type-plus/esm/object/reduceKey.js ***!
|
|
1276
1228
|
\***********************************************************************************************/
|
|
1277
|
-
|
|
1229
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1278
1230
|
|
|
1279
1231
|
"use strict";
|
|
1280
1232
|
__webpack_require__.r(__webpack_exports__);
|
|
1281
1233
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1282
|
-
/* harmony export */
|
|
1283
|
-
/* harmony export */
|
|
1234
|
+
/* harmony export */ reduceByKey: function() { return /* binding */ reduceByKey; },
|
|
1235
|
+
/* harmony export */ reduceKey: function() { return /* binding */ reduceKey; }
|
|
1284
1236
|
/* harmony export */ });
|
|
1285
1237
|
function reduceByKey(subject, callbackfn, initialValue) {
|
|
1286
1238
|
return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);
|
|
@@ -1291,21 +1243,21 @@ function reduceByKey(subject, callbackfn, initialValue) {
|
|
|
1291
1243
|
const reduceKey = reduceByKey;
|
|
1292
1244
|
//# sourceMappingURL=reduceKey.js.map
|
|
1293
1245
|
|
|
1294
|
-
/***/ }
|
|
1246
|
+
/***/ },
|
|
1295
1247
|
|
|
1296
|
-
/***/ "../../node_modules/.pnpm/unpartial@1.0.
|
|
1248
|
+
/***/ "../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/esm/index.js"
|
|
1297
1249
|
/*!************************************************************************************!*\
|
|
1298
|
-
!*** ../../node_modules/.pnpm/unpartial@1.0.
|
|
1250
|
+
!*** ../../node_modules/.pnpm/unpartial@1.0.5/node_modules/unpartial/esm/index.js ***!
|
|
1299
1251
|
\************************************************************************************/
|
|
1300
|
-
|
|
1252
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1301
1253
|
|
|
1302
1254
|
"use strict";
|
|
1303
1255
|
__webpack_require__.r(__webpack_exports__);
|
|
1304
1256
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1305
|
-
/* harmony export */
|
|
1306
|
-
/* harmony export */
|
|
1307
|
-
/* harmony export */
|
|
1308
|
-
/* 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; }
|
|
1309
1261
|
/* harmony export */ });
|
|
1310
1262
|
function required(source1, source2, source3) {
|
|
1311
1263
|
return merge([source1, source2, source3], (p, e) => {
|
|
@@ -1368,7 +1320,7 @@ function unpartialRecursively(arg1, arg2, arg3) {
|
|
|
1368
1320
|
}
|
|
1369
1321
|
//# sourceMappingURL=index.js.map
|
|
1370
1322
|
|
|
1371
|
-
/***/ }
|
|
1323
|
+
/***/ }
|
|
1372
1324
|
|
|
1373
1325
|
/******/ });
|
|
1374
1326
|
/************************************************************************/
|
|
@@ -1390,6 +1342,12 @@ function unpartialRecursively(arg1, arg2, arg3) {
|
|
|
1390
1342
|
/******/ };
|
|
1391
1343
|
/******/
|
|
1392
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
|
+
/******/ }
|
|
1393
1351
|
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
1394
1352
|
/******/
|
|
1395
1353
|
/******/ // Return the exports of the module
|
|
@@ -1421,6 +1379,18 @@ function unpartialRecursively(arg1, arg2, arg3) {
|
|
|
1421
1379
|
/******/ };
|
|
1422
1380
|
/******/ }();
|
|
1423
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
|
+
/******/
|
|
1424
1394
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1425
1395
|
/******/ !function() {
|
|
1426
1396
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
@@ -1439,7 +1409,7 @@ function unpartialRecursively(arg1, arg2, arg3) {
|
|
|
1439
1409
|
/******/
|
|
1440
1410
|
/************************************************************************/
|
|
1441
1411
|
var __webpack_exports__ = {};
|
|
1442
|
-
// This entry
|
|
1412
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
1443
1413
|
!function() {
|
|
1444
1414
|
"use strict";
|
|
1445
1415
|
/*!*********************!*\
|
|
@@ -1447,25 +1417,25 @@ var __webpack_exports__ = {};
|
|
|
1447
1417
|
\*********************/
|
|
1448
1418
|
__webpack_require__.r(__webpack_exports__);
|
|
1449
1419
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1450
|
-
/* harmony export */
|
|
1451
|
-
/* harmony export */
|
|
1452
|
-
/* harmony export */
|
|
1453
|
-
/* harmony export */
|
|
1454
|
-
/* harmony export */
|
|
1455
|
-
/* harmony export */
|
|
1456
|
-
/* harmony export */
|
|
1457
|
-
/* harmony export */
|
|
1458
|
-
/* harmony export */
|
|
1459
|
-
/* harmony export */
|
|
1460
|
-
/* harmony export */
|
|
1461
|
-
/* harmony export */
|
|
1462
|
-
/* harmony export */
|
|
1463
|
-
/* harmony export */
|
|
1464
|
-
/* harmony export */
|
|
1465
|
-
/* harmony export */
|
|
1466
|
-
/* harmony export */
|
|
1467
|
-
/* harmony export */
|
|
1468
|
-
/* 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; }
|
|
1469
1439
|
/* harmony export */ });
|
|
1470
1440
|
/* harmony import */ var _console_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
1471
1441
|
/* harmony import */ var _errors_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./errors.js */ "./ts/errors.ts");
|