@rife/logger 0.0.6-beta.18 → 0.0.6-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/pino/worker/pino-file.cjs +127 -91
- package/dist/cjs/pino/worker/pino-pretty.cjs +497 -265
- package/dist/cjs/pino/worker/pino-rotate.cjs +7 -5
- package/dist/cjs/pino/worker/pino-worker.cjs +133 -97
- package/dist/cjs/pino/worker/thread-stream.cjs +6 -6
- package/dist/esm/pino/index.mjs +3 -8
- package/dist/esm/pino/rotate.mjs +3 -8
- package/dist/esm/pino/worker/pino-file.cjs +127 -91
- package/dist/esm/pino/worker/pino-pretty.cjs +497 -265
- package/dist/esm/pino/worker/pino-rotate.cjs +7 -5
- package/dist/esm/pino/worker/pino-worker.cjs +133 -97
- package/dist/esm/pino/worker/thread-stream.cjs +6 -6
- package/dist/worker/pino-file.cjs +127 -91
- package/dist/worker/pino-pretty.cjs +497 -265
- package/dist/worker/pino-rotate.cjs +7 -5
- package/dist/worker/pino-worker.cjs +133 -97
- package/dist/worker/thread-stream.cjs +6 -6
- package/package.json +6 -6
- package/tsconfig.json +2 -1
- package/dist/esm/rslib-runtime.mjs +0 -19
|
@@ -24,7 +24,7 @@ var __webpack_modules__ = {
|
|
|
24
24
|
zlib (module1) {
|
|
25
25
|
module1.exports = require("zlib");
|
|
26
26
|
},
|
|
27
|
-
"../../node_modules/.pnpm/rotating-file-stream@3.2.
|
|
27
|
+
"../../node_modules/.pnpm/rotating-file-stream@3.2.10/node_modules/rotating-file-stream/dist/cjs/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
28
28
|
exports.createStream = createStream;
|
|
29
29
|
const child_process_1 = __webpack_require__("child_process");
|
|
30
30
|
const zlib_1 = __webpack_require__("zlib");
|
|
@@ -71,7 +71,9 @@ var __webpack_modules__ = {
|
|
|
71
71
|
this.initPromise = this.init();
|
|
72
72
|
await this.initPromise;
|
|
73
73
|
delete this.initPromise;
|
|
74
|
-
} catch (e) {
|
|
74
|
+
} catch (e) {
|
|
75
|
+
this.destroy(e);
|
|
76
|
+
}
|
|
75
77
|
})();
|
|
76
78
|
}
|
|
77
79
|
_destroy(error, callback) {
|
|
@@ -245,11 +247,11 @@ var __webpack_modules__ = {
|
|
|
245
247
|
day = 1;
|
|
246
248
|
hours = 0;
|
|
247
249
|
} else hours = "d" === unit ? 0 : parseInt(hours / num, 10) * num;
|
|
248
|
-
this.prev = new Date(year, month, day, hours, 0, 0, 0).getTime();
|
|
250
|
+
this.prev = this.options.intervalUTC ? Date.UTC(year, month, day, hours, 0, 0, 0) : new Date(year, month, day, hours, 0, 0, 0).getTime();
|
|
249
251
|
if ("M" === unit) month += num;
|
|
250
252
|
else if ("d" === unit) day += num;
|
|
251
253
|
else hours += num;
|
|
252
|
-
this.next = new Date(year, month, day, hours, 0, 0, 0).getTime();
|
|
254
|
+
this.next = this.options.intervalUTC ? Date.UTC(year, month, day, hours, 0, 0, 0) : new Date(year, month, day, hours, 0, 0, 0).getTime();
|
|
253
255
|
}
|
|
254
256
|
intervalBounds(now) {
|
|
255
257
|
const unit = this.options.interval.unit;
|
|
@@ -593,7 +595,7 @@ var __webpack_exports__ = {};
|
|
|
593
595
|
return `server.${time.getFullYear()}${month}${day}.log`;
|
|
594
596
|
};
|
|
595
597
|
const __rspack_default_export = (options)=>{
|
|
596
|
-
const { createStream } = __webpack_require__("../../node_modules/.pnpm/rotating-file-stream@3.2.
|
|
598
|
+
const { createStream } = __webpack_require__("../../node_modules/.pnpm/rotating-file-stream@3.2.10/node_modules/rotating-file-stream/dist/cjs/index.js");
|
|
597
599
|
const { path } = options;
|
|
598
600
|
return createStream(generator, {
|
|
599
601
|
size: '50M',
|