standard-log 10.2.1 → 11.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/cjs/console.js.map +1 -1
- package/cjs/console.spec.js.map +1 -1
- package/cjs/logStore.js.map +1 -1
- package/cjs/memory.d.ts +2 -0
- package/cjs/memory.d.ts.map +1 -1
- package/cjs/memory.js +13 -1
- package/cjs/memory.js.map +1 -1
- package/cjs/memory.spec.js +23 -2
- package/cjs/memory.spec.js.map +1 -1
- package/cjs/package.json +1 -1
- package/cjs/standardLog.js.map +1 -1
- package/cjs/testUtil.d.ts +1 -1
- package/cjs/testUtil.d.ts.map +1 -1
- package/cjs/testUtil.js.map +1 -1
- package/dist/standard-log.es5.js +409 -1230
- 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 +66 -731
- 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/memory.d.ts +2 -0
- package/esm/memory.d.ts.map +1 -1
- package/esm/memory.js +13 -1
- package/esm/memory.js.map +1 -1
- package/esm/memory.spec.js +23 -2
- package/esm/memory.spec.js.map +1 -1
- package/esm/testUtil.d.ts +1 -1
- package/esm/testUtil.d.ts.map +1 -1
- package/esm/testUtil.js.map +1 -1
- package/package.json +46 -35
- package/ts/memory.ts +16 -2
package/dist/standard-log.esm.js
CHANGED
|
@@ -2,10 +2,10 @@ var StandardLog;
|
|
|
2
2
|
/******/ (function() { // webpackBootstrap
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/ "../../node_modules/ms/index.js":
|
|
6
|
-
|
|
7
|
-
!*** ../../node_modules/ms/index.js ***!
|
|
8
|
-
|
|
5
|
+
/***/ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js":
|
|
6
|
+
/*!******************************************************************!*\
|
|
7
|
+
!*** ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js ***!
|
|
8
|
+
\******************************************************************/
|
|
9
9
|
/***/ (function(module) {
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -186,10 +186,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
186
186
|
/* harmony export */ "createConsoleLogReporter": function() { return /* binding */ createConsoleLogReporter; },
|
|
187
187
|
/* harmony export */ "toConsoleMethod": function() { return /* binding */ toConsoleMethod; }
|
|
188
188
|
/* harmony export */ });
|
|
189
|
-
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! type-plus */ "../../node_modules/unpartial/esm/
|
|
189
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/esm/index.js");
|
|
190
190
|
/* harmony import */ var _formatter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatter.js */ "./ts/formatter.ts");
|
|
191
191
|
/* harmony import */ var _logLevels_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./logLevels.js */ "./ts/logLevels.ts");
|
|
192
|
-
/* harmony import */ var _platform_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./platform.js */ "./ts/platform.ts");
|
|
192
|
+
/* harmony import */ var _platform_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./platform.js */ "./ts/platform.browser.ts");
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
|
|
@@ -267,7 +267,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
267
267
|
/* harmony export */ "InvalidId": function() { return /* binding */ InvalidId; },
|
|
268
268
|
/* harmony export */ "StandardLogError": function() { return /* binding */ StandardLogError; }
|
|
269
269
|
/* harmony export */ });
|
|
270
|
-
/* harmony import */ var iso_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! iso-error */ "../../node_modules/iso-error/esm/index.js");
|
|
270
|
+
/* harmony import */ var iso_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! iso-error */ "../../node_modules/.pnpm/iso-error@4.4.0/node_modules/iso-error/esm/index.js");
|
|
271
271
|
|
|
272
272
|
class StandardLogError extends iso_error__WEBPACK_IMPORTED_MODULE_0__.ModuleError {
|
|
273
273
|
constructor(description, options) {
|
|
@@ -303,9 +303,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
303
303
|
/* harmony export */ "formatLogLevel": function() { return /* binding */ formatLogLevel; },
|
|
304
304
|
/* harmony export */ "plainLogFormatter": function() { return /* binding */ plainLogFormatter; }
|
|
305
305
|
/* harmony export */ });
|
|
306
|
-
/* harmony import */ var ms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ms */ "../../node_modules/ms/index.js");
|
|
306
|
+
/* harmony import */ var ms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ms */ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js");
|
|
307
307
|
/* harmony import */ var ms__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ms__WEBPACK_IMPORTED_MODULE_0__);
|
|
308
|
-
/* harmony import */ var upper_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! upper-case */ "../../node_modules/upper-case/dist/index.js");
|
|
308
|
+
/* harmony import */ var upper_case__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! upper-case */ "../../node_modules/.pnpm/upper-case@2.0.2/node_modules/upper-case/dist/index.js");
|
|
309
309
|
/* harmony import */ var _logLevels_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logLevels.js */ "./ts/logLevels.ts");
|
|
310
310
|
|
|
311
311
|
|
|
@@ -472,8 +472,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
472
472
|
/* harmony export */ "createLogStore": function() { return /* binding */ createLogStore; },
|
|
473
473
|
/* harmony export */ "logLevelStore": function() { return /* binding */ logLevelStore; }
|
|
474
474
|
/* harmony export */ });
|
|
475
|
-
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/esm/object/reduceKey.js");
|
|
476
|
-
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/esm/object/mapKey.js");
|
|
475
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@4.13.1/node_modules/type-plus/esm/object/reduceKey.js");
|
|
476
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@4.13.1/node_modules/type-plus/esm/object/mapKey.js");
|
|
477
477
|
/* harmony import */ var _console_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
478
478
|
/* harmony import */ var _logLevels_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logLevels.js */ "./ts/logLevels.ts");
|
|
479
479
|
|
|
@@ -622,9 +622,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
622
622
|
/* harmony export */ "createMemoryLogReporter": function() { return /* binding */ createMemoryLogReporter; },
|
|
623
623
|
/* harmony export */ "toMessageWithLevel": function() { return /* binding */ toMessageWithLevel; }
|
|
624
624
|
/* harmony export */ });
|
|
625
|
-
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! type-plus */ "../../node_modules/unpartial/esm/
|
|
626
|
-
/* harmony import */ var _platform_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./platform.js */ "./ts/platform.ts");
|
|
625
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/esm/index.js");
|
|
626
|
+
/* harmony import */ var _platform_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./platform.js */ "./ts/platform.browser.ts");
|
|
627
627
|
/* harmony import */ var _formatter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatter.js */ "./ts/formatter.ts");
|
|
628
|
+
/* harmony import */ var _console_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./console.js */ "./ts/console.ts");
|
|
629
|
+
|
|
628
630
|
|
|
629
631
|
|
|
630
632
|
|
|
@@ -657,17 +659,28 @@ function createMemoryLogReporter(options) {
|
|
|
657
659
|
return logs.map(_platform_js__WEBPACK_IMPORTED_MODULE_0__.toInspectLogEntry)
|
|
658
660
|
.map(log => log.args.join(' '));
|
|
659
661
|
},
|
|
660
|
-
|
|
662
|
+
getLogMessagesWithIdAndLevel() {
|
|
663
|
+
return logs.map(_platform_js__WEBPACK_IMPORTED_MODULE_0__.toInspectLogEntry)
|
|
664
|
+
.map(log => `${log.id} ${(0,_formatter_js__WEBPACK_IMPORTED_MODULE_1__.formatLogLevel)(log.level)} ${log.args.join(' ')}`);
|
|
665
|
+
},
|
|
666
|
+
getLogMessageWithLevel() { return toMessageWithLevel(logs); },
|
|
667
|
+
/**
|
|
668
|
+
* emit the saved log to console for easy debugging
|
|
669
|
+
*/
|
|
670
|
+
emit() {
|
|
671
|
+
const reporter = (0,_console_js__WEBPACK_IMPORTED_MODULE_3__.createConsoleLogReporter)();
|
|
672
|
+
logs.forEach(l => reporter.write(l));
|
|
673
|
+
}
|
|
661
674
|
});
|
|
662
675
|
}
|
|
663
676
|
|
|
664
677
|
|
|
665
678
|
/***/ }),
|
|
666
679
|
|
|
667
|
-
/***/ "./ts/platform.ts":
|
|
668
|
-
|
|
669
|
-
!*** ./ts/platform.ts ***!
|
|
670
|
-
|
|
680
|
+
/***/ "./ts/platform.browser.ts":
|
|
681
|
+
/*!********************************!*\
|
|
682
|
+
!*** ./ts/platform.browser.ts ***!
|
|
683
|
+
\********************************/
|
|
671
684
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
672
685
|
|
|
673
686
|
"use strict";
|
|
@@ -676,11 +689,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
676
689
|
/* harmony export */ "polyfill": function() { return /* binding */ polyfill; },
|
|
677
690
|
/* harmony export */ "toInspectLogEntry": function() { return /* binding */ toInspectLogEntry; }
|
|
678
691
|
/* harmony export */ });
|
|
679
|
-
|
|
680
|
-
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_0__);
|
|
681
|
-
|
|
682
|
-
const toInspectLogEntry = (e) => (e.args = e.args.map(value => typeof value === 'object' && value !== null ? (0,util__WEBPACK_IMPORTED_MODULE_0__.inspect)(value) : value),
|
|
683
|
-
e);
|
|
692
|
+
const toInspectLogEntry = (e) => e;
|
|
684
693
|
const polyfill = {};
|
|
685
694
|
|
|
686
695
|
|
|
@@ -703,8 +712,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
703
712
|
/* harmony export */ "getLogger": function() { return /* binding */ getLogger; },
|
|
704
713
|
/* harmony export */ "suppressLogs": function() { return /* binding */ suppressLogs; }
|
|
705
714
|
/* harmony export */ });
|
|
706
|
-
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! type-plus */ "../../node_modules/unpartial/esm/
|
|
707
|
-
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! type-plus */ "../../node_modules/type-plus/esm/object/record.js");
|
|
715
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/esm/index.js");
|
|
716
|
+
/* harmony import */ var type_plus__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! type-plus */ "../../node_modules/.pnpm/type-plus@4.13.1/node_modules/type-plus/esm/object/record.js");
|
|
708
717
|
/* harmony import */ var _logger_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./logger.js */ "./ts/logger.ts");
|
|
709
718
|
/* harmony import */ var _logLevels_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logLevels.js */ "./ts/logLevels.ts");
|
|
710
719
|
/* harmony import */ var _logStore_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./logStore.js */ "./ts/logStore.ts");
|
|
@@ -786,10 +795,10 @@ function configGlobal(options) {
|
|
|
786
795
|
|
|
787
796
|
/***/ }),
|
|
788
797
|
|
|
789
|
-
/***/ "../../node_modules/upper-case/dist/index.js":
|
|
790
|
-
|
|
791
|
-
!*** ../../node_modules/upper-case/dist/index.js ***!
|
|
792
|
-
|
|
798
|
+
/***/ "../../node_modules/.pnpm/upper-case@2.0.2/node_modules/upper-case/dist/index.js":
|
|
799
|
+
/*!***************************************************************************************!*\
|
|
800
|
+
!*** ../../node_modules/.pnpm/upper-case@2.0.2/node_modules/upper-case/dist/index.js ***!
|
|
801
|
+
\***************************************************************************************/
|
|
793
802
|
/***/ (function(__unused_webpack_module, exports) {
|
|
794
803
|
|
|
795
804
|
"use strict";
|
|
@@ -845,654 +854,10 @@ exports.upperCase = upperCase;
|
|
|
845
854
|
|
|
846
855
|
/***/ }),
|
|
847
856
|
|
|
848
|
-
/***/ "../../node_modules/
|
|
849
|
-
|
|
850
|
-
!*** ../../node_modules/
|
|
851
|
-
|
|
852
|
-
/***/ (function(module) {
|
|
853
|
-
|
|
854
|
-
if (typeof Object.create === 'function') {
|
|
855
|
-
// implementation from standard node.js 'util' module
|
|
856
|
-
module.exports = function inherits(ctor, superCtor) {
|
|
857
|
-
ctor.super_ = superCtor
|
|
858
|
-
ctor.prototype = Object.create(superCtor.prototype, {
|
|
859
|
-
constructor: {
|
|
860
|
-
value: ctor,
|
|
861
|
-
enumerable: false,
|
|
862
|
-
writable: true,
|
|
863
|
-
configurable: true
|
|
864
|
-
}
|
|
865
|
-
});
|
|
866
|
-
};
|
|
867
|
-
} else {
|
|
868
|
-
// old school shim for old browsers
|
|
869
|
-
module.exports = function inherits(ctor, superCtor) {
|
|
870
|
-
ctor.super_ = superCtor
|
|
871
|
-
var TempCtor = function () {}
|
|
872
|
-
TempCtor.prototype = superCtor.prototype
|
|
873
|
-
ctor.prototype = new TempCtor()
|
|
874
|
-
ctor.prototype.constructor = ctor
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
/***/ }),
|
|
880
|
-
|
|
881
|
-
/***/ "../../node_modules/util/support/isBufferBrowser.js":
|
|
882
|
-
/*!**********************************************************!*\
|
|
883
|
-
!*** ../../node_modules/util/support/isBufferBrowser.js ***!
|
|
884
|
-
\**********************************************************/
|
|
885
|
-
/***/ (function(module) {
|
|
886
|
-
|
|
887
|
-
module.exports = function isBuffer(arg) {
|
|
888
|
-
return arg && typeof arg === 'object'
|
|
889
|
-
&& typeof arg.copy === 'function'
|
|
890
|
-
&& typeof arg.fill === 'function'
|
|
891
|
-
&& typeof arg.readUInt8 === 'function';
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
/***/ }),
|
|
895
|
-
|
|
896
|
-
/***/ "../../node_modules/util/util.js":
|
|
897
|
-
/*!***************************************!*\
|
|
898
|
-
!*** ../../node_modules/util/util.js ***!
|
|
899
|
-
\***************************************/
|
|
900
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
901
|
-
|
|
902
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
903
|
-
//
|
|
904
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
905
|
-
// copy of this software and associated documentation files (the
|
|
906
|
-
// "Software"), to deal in the Software without restriction, including
|
|
907
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
908
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
909
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
910
|
-
// following conditions:
|
|
911
|
-
//
|
|
912
|
-
// The above copyright notice and this permission notice shall be included
|
|
913
|
-
// in all copies or substantial portions of the Software.
|
|
914
|
-
//
|
|
915
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
916
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
917
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
918
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
919
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
920
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
921
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
922
|
-
|
|
923
|
-
var formatRegExp = /%[sdj%]/g;
|
|
924
|
-
exports.format = function(f) {
|
|
925
|
-
if (!isString(f)) {
|
|
926
|
-
var objects = [];
|
|
927
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
928
|
-
objects.push(inspect(arguments[i]));
|
|
929
|
-
}
|
|
930
|
-
return objects.join(' ');
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
var i = 1;
|
|
934
|
-
var args = arguments;
|
|
935
|
-
var len = args.length;
|
|
936
|
-
var str = String(f).replace(formatRegExp, function(x) {
|
|
937
|
-
if (x === '%%') return '%';
|
|
938
|
-
if (i >= len) return x;
|
|
939
|
-
switch (x) {
|
|
940
|
-
case '%s': return String(args[i++]);
|
|
941
|
-
case '%d': return Number(args[i++]);
|
|
942
|
-
case '%j':
|
|
943
|
-
try {
|
|
944
|
-
return JSON.stringify(args[i++]);
|
|
945
|
-
} catch (_) {
|
|
946
|
-
return '[Circular]';
|
|
947
|
-
}
|
|
948
|
-
default:
|
|
949
|
-
return x;
|
|
950
|
-
}
|
|
951
|
-
});
|
|
952
|
-
for (var x = args[i]; i < len; x = args[++i]) {
|
|
953
|
-
if (isNull(x) || !isObject(x)) {
|
|
954
|
-
str += ' ' + x;
|
|
955
|
-
} else {
|
|
956
|
-
str += ' ' + inspect(x);
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
return str;
|
|
960
|
-
};
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
// Mark that a method should not be used.
|
|
964
|
-
// Returns a modified function which warns once by default.
|
|
965
|
-
// If --no-deprecation is set, then it is a no-op.
|
|
966
|
-
exports.deprecate = function(fn, msg) {
|
|
967
|
-
// Allow for deprecating things in the process of starting up.
|
|
968
|
-
if (isUndefined(__webpack_require__.g.process)) {
|
|
969
|
-
return function() {
|
|
970
|
-
return exports.deprecate(fn, msg).apply(this, arguments);
|
|
971
|
-
};
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
if (process.noDeprecation === true) {
|
|
975
|
-
return fn;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
var warned = false;
|
|
979
|
-
function deprecated() {
|
|
980
|
-
if (!warned) {
|
|
981
|
-
if (process.throwDeprecation) {
|
|
982
|
-
throw new Error(msg);
|
|
983
|
-
} else if (process.traceDeprecation) {
|
|
984
|
-
console.trace(msg);
|
|
985
|
-
} else {
|
|
986
|
-
console.error(msg);
|
|
987
|
-
}
|
|
988
|
-
warned = true;
|
|
989
|
-
}
|
|
990
|
-
return fn.apply(this, arguments);
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
return deprecated;
|
|
994
|
-
};
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
var debugs = {};
|
|
998
|
-
var debugEnviron;
|
|
999
|
-
exports.debuglog = function(set) {
|
|
1000
|
-
if (isUndefined(debugEnviron))
|
|
1001
|
-
debugEnviron = process.env.NODE_DEBUG || '';
|
|
1002
|
-
set = set.toUpperCase();
|
|
1003
|
-
if (!debugs[set]) {
|
|
1004
|
-
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
1005
|
-
var pid = process.pid;
|
|
1006
|
-
debugs[set] = function() {
|
|
1007
|
-
var msg = exports.format.apply(exports, arguments);
|
|
1008
|
-
console.error('%s %d: %s', set, pid, msg);
|
|
1009
|
-
};
|
|
1010
|
-
} else {
|
|
1011
|
-
debugs[set] = function() {};
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
return debugs[set];
|
|
1015
|
-
};
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
/**
|
|
1019
|
-
* Echos the value of a value. Trys to print the value out
|
|
1020
|
-
* in the best way possible given the different types.
|
|
1021
|
-
*
|
|
1022
|
-
* @param {Object} obj The object to print out.
|
|
1023
|
-
* @param {Object} opts Optional options object that alters the output.
|
|
1024
|
-
*/
|
|
1025
|
-
/* legacy: obj, showHidden, depth, colors*/
|
|
1026
|
-
function inspect(obj, opts) {
|
|
1027
|
-
// default options
|
|
1028
|
-
var ctx = {
|
|
1029
|
-
seen: [],
|
|
1030
|
-
stylize: stylizeNoColor
|
|
1031
|
-
};
|
|
1032
|
-
// legacy...
|
|
1033
|
-
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
1034
|
-
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
1035
|
-
if (isBoolean(opts)) {
|
|
1036
|
-
// legacy...
|
|
1037
|
-
ctx.showHidden = opts;
|
|
1038
|
-
} else if (opts) {
|
|
1039
|
-
// got an "options" object
|
|
1040
|
-
exports._extend(ctx, opts);
|
|
1041
|
-
}
|
|
1042
|
-
// set default options
|
|
1043
|
-
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
1044
|
-
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
1045
|
-
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
1046
|
-
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
1047
|
-
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
1048
|
-
return formatValue(ctx, obj, ctx.depth);
|
|
1049
|
-
}
|
|
1050
|
-
exports.inspect = inspect;
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
1054
|
-
inspect.colors = {
|
|
1055
|
-
'bold' : [1, 22],
|
|
1056
|
-
'italic' : [3, 23],
|
|
1057
|
-
'underline' : [4, 24],
|
|
1058
|
-
'inverse' : [7, 27],
|
|
1059
|
-
'white' : [37, 39],
|
|
1060
|
-
'grey' : [90, 39],
|
|
1061
|
-
'black' : [30, 39],
|
|
1062
|
-
'blue' : [34, 39],
|
|
1063
|
-
'cyan' : [36, 39],
|
|
1064
|
-
'green' : [32, 39],
|
|
1065
|
-
'magenta' : [35, 39],
|
|
1066
|
-
'red' : [31, 39],
|
|
1067
|
-
'yellow' : [33, 39]
|
|
1068
|
-
};
|
|
1069
|
-
|
|
1070
|
-
// Don't use 'blue' not visible on cmd.exe
|
|
1071
|
-
inspect.styles = {
|
|
1072
|
-
'special': 'cyan',
|
|
1073
|
-
'number': 'yellow',
|
|
1074
|
-
'boolean': 'yellow',
|
|
1075
|
-
'undefined': 'grey',
|
|
1076
|
-
'null': 'bold',
|
|
1077
|
-
'string': 'green',
|
|
1078
|
-
'date': 'magenta',
|
|
1079
|
-
// "name": intentionally not styling
|
|
1080
|
-
'regexp': 'red'
|
|
1081
|
-
};
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
function stylizeWithColor(str, styleType) {
|
|
1085
|
-
var style = inspect.styles[styleType];
|
|
1086
|
-
|
|
1087
|
-
if (style) {
|
|
1088
|
-
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
1089
|
-
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
1090
|
-
} else {
|
|
1091
|
-
return str;
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
function stylizeNoColor(str, styleType) {
|
|
1097
|
-
return str;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
function arrayToHash(array) {
|
|
1102
|
-
var hash = {};
|
|
1103
|
-
|
|
1104
|
-
array.forEach(function(val, idx) {
|
|
1105
|
-
hash[val] = true;
|
|
1106
|
-
});
|
|
1107
|
-
|
|
1108
|
-
return hash;
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
function formatValue(ctx, value, recurseTimes) {
|
|
1113
|
-
// Provide a hook for user-specified inspect functions.
|
|
1114
|
-
// Check that value is an object with an inspect function on it
|
|
1115
|
-
if (ctx.customInspect &&
|
|
1116
|
-
value &&
|
|
1117
|
-
isFunction(value.inspect) &&
|
|
1118
|
-
// Filter out the util module, it's inspect function is special
|
|
1119
|
-
value.inspect !== exports.inspect &&
|
|
1120
|
-
// Also filter out any prototype objects using the circular check.
|
|
1121
|
-
!(value.constructor && value.constructor.prototype === value)) {
|
|
1122
|
-
var ret = value.inspect(recurseTimes, ctx);
|
|
1123
|
-
if (!isString(ret)) {
|
|
1124
|
-
ret = formatValue(ctx, ret, recurseTimes);
|
|
1125
|
-
}
|
|
1126
|
-
return ret;
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
// Primitive types cannot have properties
|
|
1130
|
-
var primitive = formatPrimitive(ctx, value);
|
|
1131
|
-
if (primitive) {
|
|
1132
|
-
return primitive;
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
// Look up the keys of the object.
|
|
1136
|
-
var keys = Object.keys(value);
|
|
1137
|
-
var visibleKeys = arrayToHash(keys);
|
|
1138
|
-
|
|
1139
|
-
if (ctx.showHidden) {
|
|
1140
|
-
keys = Object.getOwnPropertyNames(value);
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
// IE doesn't make error fields non-enumerable
|
|
1144
|
-
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
1145
|
-
if (isError(value)
|
|
1146
|
-
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
1147
|
-
return formatError(value);
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
// Some type of object without properties can be shortcutted.
|
|
1151
|
-
if (keys.length === 0) {
|
|
1152
|
-
if (isFunction(value)) {
|
|
1153
|
-
var name = value.name ? ': ' + value.name : '';
|
|
1154
|
-
return ctx.stylize('[Function' + name + ']', 'special');
|
|
1155
|
-
}
|
|
1156
|
-
if (isRegExp(value)) {
|
|
1157
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1158
|
-
}
|
|
1159
|
-
if (isDate(value)) {
|
|
1160
|
-
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
1161
|
-
}
|
|
1162
|
-
if (isError(value)) {
|
|
1163
|
-
return formatError(value);
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
var base = '', array = false, braces = ['{', '}'];
|
|
1168
|
-
|
|
1169
|
-
// Make Array say that they are Array
|
|
1170
|
-
if (isArray(value)) {
|
|
1171
|
-
array = true;
|
|
1172
|
-
braces = ['[', ']'];
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
// Make functions say that they are functions
|
|
1176
|
-
if (isFunction(value)) {
|
|
1177
|
-
var n = value.name ? ': ' + value.name : '';
|
|
1178
|
-
base = ' [Function' + n + ']';
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
// Make RegExps say that they are RegExps
|
|
1182
|
-
if (isRegExp(value)) {
|
|
1183
|
-
base = ' ' + RegExp.prototype.toString.call(value);
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
// Make dates with properties first say the date
|
|
1187
|
-
if (isDate(value)) {
|
|
1188
|
-
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
// Make error with message first say the error
|
|
1192
|
-
if (isError(value)) {
|
|
1193
|
-
base = ' ' + formatError(value);
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
1197
|
-
return braces[0] + base + braces[1];
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
if (recurseTimes < 0) {
|
|
1201
|
-
if (isRegExp(value)) {
|
|
1202
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1203
|
-
} else {
|
|
1204
|
-
return ctx.stylize('[Object]', 'special');
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
ctx.seen.push(value);
|
|
1209
|
-
|
|
1210
|
-
var output;
|
|
1211
|
-
if (array) {
|
|
1212
|
-
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
1213
|
-
} else {
|
|
1214
|
-
output = keys.map(function(key) {
|
|
1215
|
-
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
ctx.seen.pop();
|
|
1220
|
-
|
|
1221
|
-
return reduceToSingleString(output, base, braces);
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
function formatPrimitive(ctx, value) {
|
|
1226
|
-
if (isUndefined(value))
|
|
1227
|
-
return ctx.stylize('undefined', 'undefined');
|
|
1228
|
-
if (isString(value)) {
|
|
1229
|
-
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
1230
|
-
.replace(/'/g, "\\'")
|
|
1231
|
-
.replace(/\\"/g, '"') + '\'';
|
|
1232
|
-
return ctx.stylize(simple, 'string');
|
|
1233
|
-
}
|
|
1234
|
-
if (isNumber(value))
|
|
1235
|
-
return ctx.stylize('' + value, 'number');
|
|
1236
|
-
if (isBoolean(value))
|
|
1237
|
-
return ctx.stylize('' + value, 'boolean');
|
|
1238
|
-
// For some reason typeof null is "object", so special case here.
|
|
1239
|
-
if (isNull(value))
|
|
1240
|
-
return ctx.stylize('null', 'null');
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
function formatError(value) {
|
|
1245
|
-
return '[' + Error.prototype.toString.call(value) + ']';
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
1250
|
-
var output = [];
|
|
1251
|
-
for (var i = 0, l = value.length; i < l; ++i) {
|
|
1252
|
-
if (hasOwnProperty(value, String(i))) {
|
|
1253
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1254
|
-
String(i), true));
|
|
1255
|
-
} else {
|
|
1256
|
-
output.push('');
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
keys.forEach(function(key) {
|
|
1260
|
-
if (!key.match(/^\d+$/)) {
|
|
1261
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1262
|
-
key, true));
|
|
1263
|
-
}
|
|
1264
|
-
});
|
|
1265
|
-
return output;
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
1270
|
-
var name, str, desc;
|
|
1271
|
-
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
1272
|
-
if (desc.get) {
|
|
1273
|
-
if (desc.set) {
|
|
1274
|
-
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
1275
|
-
} else {
|
|
1276
|
-
str = ctx.stylize('[Getter]', 'special');
|
|
1277
|
-
}
|
|
1278
|
-
} else {
|
|
1279
|
-
if (desc.set) {
|
|
1280
|
-
str = ctx.stylize('[Setter]', 'special');
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
if (!hasOwnProperty(visibleKeys, key)) {
|
|
1284
|
-
name = '[' + key + ']';
|
|
1285
|
-
}
|
|
1286
|
-
if (!str) {
|
|
1287
|
-
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
1288
|
-
if (isNull(recurseTimes)) {
|
|
1289
|
-
str = formatValue(ctx, desc.value, null);
|
|
1290
|
-
} else {
|
|
1291
|
-
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
1292
|
-
}
|
|
1293
|
-
if (str.indexOf('\n') > -1) {
|
|
1294
|
-
if (array) {
|
|
1295
|
-
str = str.split('\n').map(function(line) {
|
|
1296
|
-
return ' ' + line;
|
|
1297
|
-
}).join('\n').substr(2);
|
|
1298
|
-
} else {
|
|
1299
|
-
str = '\n' + str.split('\n').map(function(line) {
|
|
1300
|
-
return ' ' + line;
|
|
1301
|
-
}).join('\n');
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
} else {
|
|
1305
|
-
str = ctx.stylize('[Circular]', 'special');
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
if (isUndefined(name)) {
|
|
1309
|
-
if (array && key.match(/^\d+$/)) {
|
|
1310
|
-
return str;
|
|
1311
|
-
}
|
|
1312
|
-
name = JSON.stringify('' + key);
|
|
1313
|
-
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
1314
|
-
name = name.substr(1, name.length - 2);
|
|
1315
|
-
name = ctx.stylize(name, 'name');
|
|
1316
|
-
} else {
|
|
1317
|
-
name = name.replace(/'/g, "\\'")
|
|
1318
|
-
.replace(/\\"/g, '"')
|
|
1319
|
-
.replace(/(^"|"$)/g, "'");
|
|
1320
|
-
name = ctx.stylize(name, 'string');
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
return name + ': ' + str;
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
function reduceToSingleString(output, base, braces) {
|
|
1329
|
-
var numLinesEst = 0;
|
|
1330
|
-
var length = output.reduce(function(prev, cur) {
|
|
1331
|
-
numLinesEst++;
|
|
1332
|
-
if (cur.indexOf('\n') >= 0) numLinesEst++;
|
|
1333
|
-
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
1334
|
-
}, 0);
|
|
1335
|
-
|
|
1336
|
-
if (length > 60) {
|
|
1337
|
-
return braces[0] +
|
|
1338
|
-
(base === '' ? '' : base + '\n ') +
|
|
1339
|
-
' ' +
|
|
1340
|
-
output.join(',\n ') +
|
|
1341
|
-
' ' +
|
|
1342
|
-
braces[1];
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
1350
|
-
// because it is fragile and can be easily faked with `Object.create()`.
|
|
1351
|
-
function isArray(ar) {
|
|
1352
|
-
return Array.isArray(ar);
|
|
1353
|
-
}
|
|
1354
|
-
exports.isArray = isArray;
|
|
1355
|
-
|
|
1356
|
-
function isBoolean(arg) {
|
|
1357
|
-
return typeof arg === 'boolean';
|
|
1358
|
-
}
|
|
1359
|
-
exports.isBoolean = isBoolean;
|
|
1360
|
-
|
|
1361
|
-
function isNull(arg) {
|
|
1362
|
-
return arg === null;
|
|
1363
|
-
}
|
|
1364
|
-
exports.isNull = isNull;
|
|
1365
|
-
|
|
1366
|
-
function isNullOrUndefined(arg) {
|
|
1367
|
-
return arg == null;
|
|
1368
|
-
}
|
|
1369
|
-
exports.isNullOrUndefined = isNullOrUndefined;
|
|
1370
|
-
|
|
1371
|
-
function isNumber(arg) {
|
|
1372
|
-
return typeof arg === 'number';
|
|
1373
|
-
}
|
|
1374
|
-
exports.isNumber = isNumber;
|
|
1375
|
-
|
|
1376
|
-
function isString(arg) {
|
|
1377
|
-
return typeof arg === 'string';
|
|
1378
|
-
}
|
|
1379
|
-
exports.isString = isString;
|
|
1380
|
-
|
|
1381
|
-
function isSymbol(arg) {
|
|
1382
|
-
return typeof arg === 'symbol';
|
|
1383
|
-
}
|
|
1384
|
-
exports.isSymbol = isSymbol;
|
|
1385
|
-
|
|
1386
|
-
function isUndefined(arg) {
|
|
1387
|
-
return arg === void 0;
|
|
1388
|
-
}
|
|
1389
|
-
exports.isUndefined = isUndefined;
|
|
1390
|
-
|
|
1391
|
-
function isRegExp(re) {
|
|
1392
|
-
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
1393
|
-
}
|
|
1394
|
-
exports.isRegExp = isRegExp;
|
|
1395
|
-
|
|
1396
|
-
function isObject(arg) {
|
|
1397
|
-
return typeof arg === 'object' && arg !== null;
|
|
1398
|
-
}
|
|
1399
|
-
exports.isObject = isObject;
|
|
1400
|
-
|
|
1401
|
-
function isDate(d) {
|
|
1402
|
-
return isObject(d) && objectToString(d) === '[object Date]';
|
|
1403
|
-
}
|
|
1404
|
-
exports.isDate = isDate;
|
|
1405
|
-
|
|
1406
|
-
function isError(e) {
|
|
1407
|
-
return isObject(e) &&
|
|
1408
|
-
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
1409
|
-
}
|
|
1410
|
-
exports.isError = isError;
|
|
1411
|
-
|
|
1412
|
-
function isFunction(arg) {
|
|
1413
|
-
return typeof arg === 'function';
|
|
1414
|
-
}
|
|
1415
|
-
exports.isFunction = isFunction;
|
|
1416
|
-
|
|
1417
|
-
function isPrimitive(arg) {
|
|
1418
|
-
return arg === null ||
|
|
1419
|
-
typeof arg === 'boolean' ||
|
|
1420
|
-
typeof arg === 'number' ||
|
|
1421
|
-
typeof arg === 'string' ||
|
|
1422
|
-
typeof arg === 'symbol' || // ES6 symbol
|
|
1423
|
-
typeof arg === 'undefined';
|
|
1424
|
-
}
|
|
1425
|
-
exports.isPrimitive = isPrimitive;
|
|
1426
|
-
|
|
1427
|
-
exports.isBuffer = __webpack_require__(/*! ./support/isBuffer */ "../../node_modules/util/support/isBufferBrowser.js");
|
|
1428
|
-
|
|
1429
|
-
function objectToString(o) {
|
|
1430
|
-
return Object.prototype.toString.call(o);
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
function pad(n) {
|
|
1435
|
-
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
1440
|
-
'Oct', 'Nov', 'Dec'];
|
|
1441
|
-
|
|
1442
|
-
// 26 Feb 16:19:34
|
|
1443
|
-
function timestamp() {
|
|
1444
|
-
var d = new Date();
|
|
1445
|
-
var time = [pad(d.getHours()),
|
|
1446
|
-
pad(d.getMinutes()),
|
|
1447
|
-
pad(d.getSeconds())].join(':');
|
|
1448
|
-
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
1453
|
-
exports.log = function() {
|
|
1454
|
-
console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
|
|
1455
|
-
};
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
/**
|
|
1459
|
-
* Inherit the prototype methods from one constructor into another.
|
|
1460
|
-
*
|
|
1461
|
-
* The Function.prototype.inherits from lang.js rewritten as a standalone
|
|
1462
|
-
* function (not on Function.prototype). NOTE: If this file is to be loaded
|
|
1463
|
-
* during bootstrapping this function needs to be rewritten using some native
|
|
1464
|
-
* functions as prototype setup using normal JavaScript does not work as
|
|
1465
|
-
* expected during bootstrapping (see mirror.js in r114903).
|
|
1466
|
-
*
|
|
1467
|
-
* @param {function} ctor Constructor function which needs to inherit the
|
|
1468
|
-
* prototype.
|
|
1469
|
-
* @param {function} superCtor Constructor function to inherit prototype from.
|
|
1470
|
-
*/
|
|
1471
|
-
exports.inherits = __webpack_require__(/*! inherits */ "../../node_modules/util/node_modules/inherits/inherits_browser.js");
|
|
1472
|
-
|
|
1473
|
-
exports._extend = function(origin, add) {
|
|
1474
|
-
// Don't do anything if add isn't an object
|
|
1475
|
-
if (!add || !isObject(add)) return origin;
|
|
1476
|
-
|
|
1477
|
-
var keys = Object.keys(add);
|
|
1478
|
-
var i = keys.length;
|
|
1479
|
-
while (i--) {
|
|
1480
|
-
origin[keys[i]] = add[keys[i]];
|
|
1481
|
-
}
|
|
1482
|
-
return origin;
|
|
1483
|
-
};
|
|
1484
|
-
|
|
1485
|
-
function hasOwnProperty(obj, prop) {
|
|
1486
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
/***/ }),
|
|
1491
|
-
|
|
1492
|
-
/***/ "../../node_modules/iso-error/esm/index.js":
|
|
1493
|
-
/*!*************************************************!*\
|
|
1494
|
-
!*** ../../node_modules/iso-error/esm/index.js ***!
|
|
1495
|
-
\*************************************************/
|
|
857
|
+
/***/ "../../node_modules/.pnpm/iso-error@4.4.0/node_modules/iso-error/esm/index.js":
|
|
858
|
+
/*!************************************************************************************!*\
|
|
859
|
+
!*** ../../node_modules/.pnpm/iso-error@4.4.0/node_modules/iso-error/esm/index.js ***!
|
|
860
|
+
\************************************************************************************/
|
|
1496
861
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1497
862
|
|
|
1498
863
|
"use strict";
|
|
@@ -1726,10 +1091,10 @@ function isAggregateError(error) {
|
|
|
1726
1091
|
|
|
1727
1092
|
/***/ }),
|
|
1728
1093
|
|
|
1729
|
-
/***/ "../../node_modules/type-plus/esm/object/mapKey.js":
|
|
1730
|
-
|
|
1731
|
-
!*** ../../node_modules/type-plus/esm/object/mapKey.js ***!
|
|
1732
|
-
|
|
1094
|
+
/***/ "../../node_modules/.pnpm/type-plus@4.13.1/node_modules/type-plus/esm/object/mapKey.js":
|
|
1095
|
+
/*!*********************************************************************************************!*\
|
|
1096
|
+
!*** ../../node_modules/.pnpm/type-plus@4.13.1/node_modules/type-plus/esm/object/mapKey.js ***!
|
|
1097
|
+
\*********************************************************************************************/
|
|
1733
1098
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1734
1099
|
|
|
1735
1100
|
"use strict";
|
|
@@ -1744,10 +1109,10 @@ function mapKey(subject, predicate, thisArg) {
|
|
|
1744
1109
|
|
|
1745
1110
|
/***/ }),
|
|
1746
1111
|
|
|
1747
|
-
/***/ "../../node_modules/type-plus/esm/object/record.js":
|
|
1748
|
-
|
|
1749
|
-
!*** ../../node_modules/type-plus/esm/object/record.js ***!
|
|
1750
|
-
|
|
1112
|
+
/***/ "../../node_modules/.pnpm/type-plus@4.13.1/node_modules/type-plus/esm/object/record.js":
|
|
1113
|
+
/*!*********************************************************************************************!*\
|
|
1114
|
+
!*** ../../node_modules/.pnpm/type-plus@4.13.1/node_modules/type-plus/esm/object/record.js ***!
|
|
1115
|
+
\*********************************************************************************************/
|
|
1751
1116
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1752
1117
|
|
|
1753
1118
|
"use strict";
|
|
@@ -1766,10 +1131,10 @@ function record(value) {
|
|
|
1766
1131
|
|
|
1767
1132
|
/***/ }),
|
|
1768
1133
|
|
|
1769
|
-
/***/ "../../node_modules/type-plus/esm/object/reduceKey.js":
|
|
1770
|
-
|
|
1771
|
-
!*** ../../node_modules/type-plus/esm/object/reduceKey.js ***!
|
|
1772
|
-
|
|
1134
|
+
/***/ "../../node_modules/.pnpm/type-plus@4.13.1/node_modules/type-plus/esm/object/reduceKey.js":
|
|
1135
|
+
/*!************************************************************************************************!*\
|
|
1136
|
+
!*** ../../node_modules/.pnpm/type-plus@4.13.1/node_modules/type-plus/esm/object/reduceKey.js ***!
|
|
1137
|
+
\************************************************************************************************/
|
|
1773
1138
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1774
1139
|
|
|
1775
1140
|
"use strict";
|
|
@@ -1789,20 +1154,20 @@ const reduceKey = reduceByKey;
|
|
|
1789
1154
|
|
|
1790
1155
|
/***/ }),
|
|
1791
1156
|
|
|
1792
|
-
/***/ "../../node_modules/unpartial/esm/
|
|
1793
|
-
|
|
1794
|
-
!*** ../../node_modules/unpartial/esm/
|
|
1795
|
-
|
|
1157
|
+
/***/ "../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/esm/index.js":
|
|
1158
|
+
/*!************************************************************************************!*\
|
|
1159
|
+
!*** ../../node_modules/.pnpm/unpartial@1.0.4/node_modules/unpartial/esm/index.js ***!
|
|
1160
|
+
\************************************************************************************/
|
|
1796
1161
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1797
1162
|
|
|
1798
1163
|
"use strict";
|
|
1799
1164
|
__webpack_require__.r(__webpack_exports__);
|
|
1800
1165
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1801
1166
|
/* harmony export */ "required": function() { return /* binding */ required; },
|
|
1802
|
-
/* harmony export */ "requiredDeep": function() { return /* binding */ requiredDeep; }
|
|
1167
|
+
/* harmony export */ "requiredDeep": function() { return /* binding */ requiredDeep; },
|
|
1168
|
+
/* harmony export */ "unpartial": function() { return /* binding */ unpartial; },
|
|
1169
|
+
/* harmony export */ "unpartialRecursively": function() { return /* binding */ unpartialRecursively; }
|
|
1803
1170
|
/* harmony export */ });
|
|
1804
|
-
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
1805
|
-
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
1806
1171
|
function required(source1, source2, source3) {
|
|
1807
1172
|
return merge([source1, source2, source3], (p, e) => {
|
|
1808
1173
|
return { ...p, ...e };
|
|
@@ -1840,28 +1205,6 @@ function getAllKeys(subject, internal = false) {
|
|
|
1840
1205
|
const proto = Object.getPrototypeOf(subject);
|
|
1841
1206
|
return proto !== Object.prototype ? keys.concat(getAllKeys(proto, true)) : keys;
|
|
1842
1207
|
}
|
|
1843
|
-
//# sourceMappingURL=required.js.map
|
|
1844
|
-
|
|
1845
|
-
/***/ }),
|
|
1846
|
-
|
|
1847
|
-
/***/ "../../node_modules/unpartial/esm/unpartial.js":
|
|
1848
|
-
/*!*****************************************************!*\
|
|
1849
|
-
!*** ../../node_modules/unpartial/esm/unpartial.js ***!
|
|
1850
|
-
\*****************************************************/
|
|
1851
|
-
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1852
|
-
|
|
1853
|
-
"use strict";
|
|
1854
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1855
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1856
|
-
/* harmony export */ "unpartial": function() { return /* binding */ unpartial; },
|
|
1857
|
-
/* harmony export */ "unpartialRecursively": function() { return /* binding */ unpartialRecursively; }
|
|
1858
|
-
/* harmony export */ });
|
|
1859
|
-
/* harmony import */ var _required_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./required.js */ "../../node_modules/unpartial/esm/required.js");
|
|
1860
|
-
|
|
1861
|
-
function unpartialRecursively(arg1, arg2, arg3) {
|
|
1862
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1863
|
-
return (0,_required_js__WEBPACK_IMPORTED_MODULE_0__.requiredDeep)(arg1, arg2, arg3);
|
|
1864
|
-
}
|
|
1865
1208
|
function unpartial(s1, s2, s3) {
|
|
1866
1209
|
// defensive check for JS
|
|
1867
1210
|
if (s1 === undefined || s1 === null)
|
|
@@ -1880,7 +1223,11 @@ function trimNilProps(value) {
|
|
|
1880
1223
|
function notNil(value) {
|
|
1881
1224
|
return value !== null && value !== undefined;
|
|
1882
1225
|
}
|
|
1883
|
-
|
|
1226
|
+
function unpartialRecursively(arg1, arg2, arg3) {
|
|
1227
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1228
|
+
return requiredDeep(arg1, arg2, arg3);
|
|
1229
|
+
}
|
|
1230
|
+
//# sourceMappingURL=index.js.map
|
|
1884
1231
|
|
|
1885
1232
|
/***/ })
|
|
1886
1233
|
|
|
@@ -1935,18 +1282,6 @@ function notNil(value) {
|
|
|
1935
1282
|
/******/ };
|
|
1936
1283
|
/******/ }();
|
|
1937
1284
|
/******/
|
|
1938
|
-
/******/ /* webpack/runtime/global */
|
|
1939
|
-
/******/ !function() {
|
|
1940
|
-
/******/ __webpack_require__.g = (function() {
|
|
1941
|
-
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
1942
|
-
/******/ try {
|
|
1943
|
-
/******/ return this || new Function('return this')();
|
|
1944
|
-
/******/ } catch (e) {
|
|
1945
|
-
/******/ if (typeof window === 'object') return window;
|
|
1946
|
-
/******/ }
|
|
1947
|
-
/******/ })();
|
|
1948
|
-
/******/ }();
|
|
1949
|
-
/******/
|
|
1950
1285
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1951
1286
|
/******/ !function() {
|
|
1952
1287
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|