standard-log 7.0.0 → 7.0.1
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/CHANGELOG.md +797 -0
- package/dist/standard-log.js +5 -1
- package/dist/standard-log.js.gz +0 -0
- package/dist/standard-log.js.map +1 -1
- package/dist/standard-log.js.map.gz +0 -0
- package/lib/memory/MemoryLogReporter.d.ts.map +1 -1
- package/lib/memory/MemoryLogReporter.js +5 -1
- package/lib/memory/MemoryLogReporter.js.map +1 -1
- package/libm/memory/MemoryLogReporter.d.ts.map +1 -1
- package/libm/memory/MemoryLogReporter.js +5 -1
- package/libm/memory/MemoryLogReporter.js.map +1 -1
- package/package.json +2 -3
- package/src/memory/MemoryLogReporter.ts +4 -0
package/dist/standard-log.js
CHANGED
|
@@ -2223,7 +2223,11 @@ function createGetLogMessage() {
|
|
|
2223
2223
|
function toMessageWithLevel(logs) {
|
|
2224
2224
|
return logs.map(toInspectStringForObject_1.toInspectLogEntry)
|
|
2225
2225
|
.map(function (log) { return "".concat((0, formatter_1.formatLogLevel)(log.level), " ").concat(log.args.join(' ')); })
|
|
2226
|
-
.join('\n')
|
|
2226
|
+
.join('\n')
|
|
2227
|
+
// if it has more than this log,
|
|
2228
|
+
// we assume it is running under tests,
|
|
2229
|
+
// and remove this log to simplify testing.
|
|
2230
|
+
.replace(/^\(WARN\) already configured for test, ignoring config\(\) call\\n.+/, '');
|
|
2227
2231
|
}
|
|
2228
2232
|
exports.toMessageWithLevel = toMessageWithLevel;
|
|
2229
2233
|
function createMemoryLogReporter(options) {
|
package/dist/standard-log.js.gz
CHANGED
|
Binary file
|