@rife/logger 0.0.6-beta.10 → 0.0.6-beta.12
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/common.cjs +3 -3
- package/dist/cjs/env.cjs +3 -3
- package/dist/cjs/index.cjs +7 -9
- package/dist/cjs/pino/index.cjs +125 -70
- package/dist/cjs/pino/rotate.cjs +6 -6
- package/dist/cjs/pino/worker/pino-file.cjs +3354 -0
- package/dist/cjs/pino/worker/pino-pretty.cjs +2823 -0
- package/dist/cjs/pino/worker/pino-rotate.cjs +604 -0
- package/dist/cjs/pino/worker/pino-worker.cjs +3667 -0
- package/dist/cjs/pino/worker/thread-stream.cjs +174 -0
- package/dist/cjs/test.cjs +10 -6
- package/dist/cjs/trace.cjs +4 -4
- package/dist/esm/common.mjs +2 -2
- package/dist/esm/pino/index.mjs +70 -17
- package/dist/esm/pino/rotate.mjs +3 -3
- package/dist/esm/pino/worker/pino-file.cjs +3354 -0
- package/dist/esm/pino/worker/pino-pretty.cjs +2823 -0
- package/dist/esm/pino/worker/pino-rotate.cjs +604 -0
- package/dist/esm/pino/worker/pino-worker.cjs +3667 -0
- package/dist/esm/pino/worker/thread-stream.cjs +174 -0
- package/dist/esm/test.mjs +10 -6
- package/dist/worker/pino-file.cjs +458 -626
- package/dist/worker/pino-pretty.cjs +430 -463
- package/dist/worker/pino-rotate.cjs +13 -13
- package/dist/worker/pino-worker.cjs +533 -701
- package/dist/worker/thread-stream.cjs +39 -37
- package/package.json +7 -7
- package/src/common.ts +4 -4
- package/src/pino/index.ts +122 -102
- package/src/pino/rotate.ts +32 -32
- package/src/test.ts +22 -19
- package/src/trace.ts +15 -15
- package/tsconfig.json +12 -12
|
@@ -1,7 +1,306 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __webpack_modules__ = {
|
|
2
|
-
"../../node_modules/.pnpm
|
|
3
|
+
"../../node_modules/.pnpm/@pinojs+redact@0.4.0/node_modules/@pinojs/redact/index.js" (module1) {
|
|
3
4
|
"use strict";
|
|
4
|
-
|
|
5
|
+
function deepClone(obj) {
|
|
6
|
+
if (null === obj || 'object' != typeof obj) return obj;
|
|
7
|
+
if (obj instanceof Date) return new Date(obj.getTime());
|
|
8
|
+
if (obj instanceof Array) {
|
|
9
|
+
const cloned = [];
|
|
10
|
+
for(let i = 0; i < obj.length; i++)cloned[i] = deepClone(obj[i]);
|
|
11
|
+
return cloned;
|
|
12
|
+
}
|
|
13
|
+
if ('object' == typeof obj) {
|
|
14
|
+
const cloned = Object.create(Object.getPrototypeOf(obj));
|
|
15
|
+
for(const key in obj)if (Object.prototype.hasOwnProperty.call(obj, key)) cloned[key] = deepClone(obj[key]);
|
|
16
|
+
return cloned;
|
|
17
|
+
}
|
|
18
|
+
return obj;
|
|
19
|
+
}
|
|
20
|
+
function parsePath(path) {
|
|
21
|
+
const parts = [];
|
|
22
|
+
let current = '';
|
|
23
|
+
let inBrackets = false;
|
|
24
|
+
let inQuotes = false;
|
|
25
|
+
let quoteChar = '';
|
|
26
|
+
for(let i = 0; i < path.length; i++){
|
|
27
|
+
const char = path[i];
|
|
28
|
+
if (inBrackets || '.' !== char) if ('[' === char) {
|
|
29
|
+
if (current) {
|
|
30
|
+
parts.push(current);
|
|
31
|
+
current = '';
|
|
32
|
+
}
|
|
33
|
+
inBrackets = true;
|
|
34
|
+
} else if (']' === char && inBrackets) {
|
|
35
|
+
parts.push(current);
|
|
36
|
+
current = '';
|
|
37
|
+
inBrackets = false;
|
|
38
|
+
inQuotes = false;
|
|
39
|
+
} else if (('"' === char || "'" === char) && inBrackets) if (inQuotes) if (char === quoteChar) {
|
|
40
|
+
inQuotes = false;
|
|
41
|
+
quoteChar = '';
|
|
42
|
+
} else current += char;
|
|
43
|
+
else {
|
|
44
|
+
inQuotes = true;
|
|
45
|
+
quoteChar = char;
|
|
46
|
+
}
|
|
47
|
+
else current += char;
|
|
48
|
+
else if (current) {
|
|
49
|
+
parts.push(current);
|
|
50
|
+
current = '';
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (current) parts.push(current);
|
|
54
|
+
return parts;
|
|
55
|
+
}
|
|
56
|
+
function setValue(obj, parts, value) {
|
|
57
|
+
let current = obj;
|
|
58
|
+
for(let i = 0; i < parts.length - 1; i++){
|
|
59
|
+
const key = parts[i];
|
|
60
|
+
if ('object' != typeof current || null === current || !(key in current)) return false;
|
|
61
|
+
if ('object' != typeof current[key] || null === current[key]) return false;
|
|
62
|
+
current = current[key];
|
|
63
|
+
}
|
|
64
|
+
const lastKey = parts[parts.length - 1];
|
|
65
|
+
if ('*' === lastKey) {
|
|
66
|
+
if (Array.isArray(current)) for(let i = 0; i < current.length; i++)current[i] = value;
|
|
67
|
+
else if ('object' == typeof current && null !== current) {
|
|
68
|
+
for(const key in current)if (Object.prototype.hasOwnProperty.call(current, key)) current[key] = value;
|
|
69
|
+
}
|
|
70
|
+
} else if ('object' == typeof current && null !== current && lastKey in current && Object.prototype.hasOwnProperty.call(current, lastKey)) current[lastKey] = value;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
function removeKey(obj, parts) {
|
|
74
|
+
let current = obj;
|
|
75
|
+
for(let i = 0; i < parts.length - 1; i++){
|
|
76
|
+
const key = parts[i];
|
|
77
|
+
if ('object' != typeof current || null === current || !(key in current)) return false;
|
|
78
|
+
if ('object' != typeof current[key] || null === current[key]) return false;
|
|
79
|
+
current = current[key];
|
|
80
|
+
}
|
|
81
|
+
const lastKey = parts[parts.length - 1];
|
|
82
|
+
if ('*' === lastKey) {
|
|
83
|
+
if (Array.isArray(current)) for(let i = 0; i < current.length; i++)current[i] = void 0;
|
|
84
|
+
else if ('object' == typeof current && null !== current) {
|
|
85
|
+
for(const key in current)if (Object.prototype.hasOwnProperty.call(current, key)) delete current[key];
|
|
86
|
+
}
|
|
87
|
+
} else if ('object' == typeof current && null !== current && lastKey in current && Object.prototype.hasOwnProperty.call(current, lastKey)) delete current[lastKey];
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
const PATH_NOT_FOUND = Symbol('PATH_NOT_FOUND');
|
|
91
|
+
function getValueIfExists(obj, parts) {
|
|
92
|
+
let current = obj;
|
|
93
|
+
for (const part of parts){
|
|
94
|
+
if (null == current) return PATH_NOT_FOUND;
|
|
95
|
+
if ('object' != typeof current || null === current) return PATH_NOT_FOUND;
|
|
96
|
+
if (!(part in current)) return PATH_NOT_FOUND;
|
|
97
|
+
current = current[part];
|
|
98
|
+
}
|
|
99
|
+
return current;
|
|
100
|
+
}
|
|
101
|
+
function getValue(obj, parts) {
|
|
102
|
+
let current = obj;
|
|
103
|
+
for (const part of parts){
|
|
104
|
+
if (null == current) return;
|
|
105
|
+
if ('object' != typeof current || null === current) return;
|
|
106
|
+
current = current[part];
|
|
107
|
+
}
|
|
108
|
+
return current;
|
|
109
|
+
}
|
|
110
|
+
function redactPaths(obj, paths, censor, remove = false) {
|
|
111
|
+
for (const path of paths){
|
|
112
|
+
const parts = parsePath(path);
|
|
113
|
+
if (parts.includes('*')) redactWildcardPath(obj, parts, censor, path, remove);
|
|
114
|
+
else if (remove) removeKey(obj, parts);
|
|
115
|
+
else {
|
|
116
|
+
const value = getValueIfExists(obj, parts);
|
|
117
|
+
if (value === PATH_NOT_FOUND) continue;
|
|
118
|
+
const actualCensor = 'function' == typeof censor ? censor(value, parts) : censor;
|
|
119
|
+
setValue(obj, parts, actualCensor);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function redactWildcardPath(obj, parts, censor, originalPath, remove = false) {
|
|
124
|
+
const wildcardIndex = parts.indexOf('*');
|
|
125
|
+
if (wildcardIndex === parts.length - 1) {
|
|
126
|
+
const parentParts = parts.slice(0, -1);
|
|
127
|
+
let current = obj;
|
|
128
|
+
for (const part of parentParts){
|
|
129
|
+
if (null == current) return;
|
|
130
|
+
if ('object' != typeof current || null === current) return;
|
|
131
|
+
current = current[part];
|
|
132
|
+
}
|
|
133
|
+
if (Array.isArray(current)) if (remove) for(let i = 0; i < current.length; i++)current[i] = void 0;
|
|
134
|
+
else for(let i = 0; i < current.length; i++){
|
|
135
|
+
const indexPath = [
|
|
136
|
+
...parentParts,
|
|
137
|
+
i.toString()
|
|
138
|
+
];
|
|
139
|
+
const actualCensor = 'function' == typeof censor ? censor(current[i], indexPath) : censor;
|
|
140
|
+
current[i] = actualCensor;
|
|
141
|
+
}
|
|
142
|
+
else if ('object' == typeof current && null !== current) if (remove) {
|
|
143
|
+
const keysToDelete = [];
|
|
144
|
+
for(const key in current)if (Object.prototype.hasOwnProperty.call(current, key)) keysToDelete.push(key);
|
|
145
|
+
for (const key of keysToDelete)delete current[key];
|
|
146
|
+
} else for(const key in current){
|
|
147
|
+
const keyPath = [
|
|
148
|
+
...parentParts,
|
|
149
|
+
key
|
|
150
|
+
];
|
|
151
|
+
const actualCensor = 'function' == typeof censor ? censor(current[key], keyPath) : censor;
|
|
152
|
+
current[key] = actualCensor;
|
|
153
|
+
}
|
|
154
|
+
} else redactIntermediateWildcard(obj, parts, censor, wildcardIndex, originalPath, remove);
|
|
155
|
+
}
|
|
156
|
+
function redactIntermediateWildcard(obj, parts, censor, wildcardIndex, originalPath, remove = false) {
|
|
157
|
+
const beforeWildcard = parts.slice(0, wildcardIndex);
|
|
158
|
+
const afterWildcard = parts.slice(wildcardIndex + 1);
|
|
159
|
+
const pathArray = [];
|
|
160
|
+
function traverse(current, pathLength) {
|
|
161
|
+
if (pathLength === beforeWildcard.length) {
|
|
162
|
+
if (Array.isArray(current)) for(let i = 0; i < current.length; i++){
|
|
163
|
+
pathArray[pathLength] = i.toString();
|
|
164
|
+
traverse(current[i], pathLength + 1);
|
|
165
|
+
}
|
|
166
|
+
else if ('object' == typeof current && null !== current) for(const key in current){
|
|
167
|
+
pathArray[pathLength] = key;
|
|
168
|
+
traverse(current[key], pathLength + 1);
|
|
169
|
+
}
|
|
170
|
+
} else if (pathLength < beforeWildcard.length) {
|
|
171
|
+
const nextKey = beforeWildcard[pathLength];
|
|
172
|
+
if (current && 'object' == typeof current && null !== current && nextKey in current) {
|
|
173
|
+
pathArray[pathLength] = nextKey;
|
|
174
|
+
traverse(current[nextKey], pathLength + 1);
|
|
175
|
+
}
|
|
176
|
+
} else if (afterWildcard.includes('*')) {
|
|
177
|
+
const wrappedCensor = 'function' == typeof censor ? (value, path)=>{
|
|
178
|
+
const fullPath = [
|
|
179
|
+
...pathArray.slice(0, pathLength),
|
|
180
|
+
...path
|
|
181
|
+
];
|
|
182
|
+
return censor(value, fullPath);
|
|
183
|
+
} : censor;
|
|
184
|
+
redactWildcardPath(current, afterWildcard, wrappedCensor, originalPath, remove);
|
|
185
|
+
} else if (remove) removeKey(current, afterWildcard);
|
|
186
|
+
else {
|
|
187
|
+
const actualCensor = 'function' == typeof censor ? censor(getValue(current, afterWildcard), [
|
|
188
|
+
...pathArray.slice(0, pathLength),
|
|
189
|
+
...afterWildcard
|
|
190
|
+
]) : censor;
|
|
191
|
+
setValue(current, afterWildcard, actualCensor);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (0 === beforeWildcard.length) traverse(obj, 0);
|
|
195
|
+
else {
|
|
196
|
+
let current = obj;
|
|
197
|
+
for(let i = 0; i < beforeWildcard.length; i++){
|
|
198
|
+
const part = beforeWildcard[i];
|
|
199
|
+
if (null == current) return;
|
|
200
|
+
if ('object' != typeof current || null === current) return;
|
|
201
|
+
current = current[part];
|
|
202
|
+
pathArray[i] = part;
|
|
203
|
+
}
|
|
204
|
+
if (null != current) traverse(current, beforeWildcard.length);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function buildPathStructure(pathsToClone) {
|
|
208
|
+
if (0 === pathsToClone.length) return null;
|
|
209
|
+
const pathStructure = new Map();
|
|
210
|
+
for (const path of pathsToClone){
|
|
211
|
+
const parts = parsePath(path);
|
|
212
|
+
let current = pathStructure;
|
|
213
|
+
for(let i = 0; i < parts.length; i++){
|
|
214
|
+
const part = parts[i];
|
|
215
|
+
if (!current.has(part)) current.set(part, new Map());
|
|
216
|
+
current = current.get(part);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return pathStructure;
|
|
220
|
+
}
|
|
221
|
+
function selectiveClone(obj, pathStructure) {
|
|
222
|
+
if (!pathStructure) return obj;
|
|
223
|
+
function cloneSelectively(source, pathMap, depth = 0) {
|
|
224
|
+
if (!pathMap || 0 === pathMap.size) return source;
|
|
225
|
+
if (null === source || 'object' != typeof source) return source;
|
|
226
|
+
if (source instanceof Date) return new Date(source.getTime());
|
|
227
|
+
if (Array.isArray(source)) {
|
|
228
|
+
const cloned = [];
|
|
229
|
+
for(let i = 0; i < source.length; i++){
|
|
230
|
+
const indexStr = i.toString();
|
|
231
|
+
if (pathMap.has(indexStr) || pathMap.has('*')) cloned[i] = cloneSelectively(source[i], pathMap.get(indexStr) || pathMap.get('*'));
|
|
232
|
+
else cloned[i] = source[i];
|
|
233
|
+
}
|
|
234
|
+
return cloned;
|
|
235
|
+
}
|
|
236
|
+
const cloned = Object.create(Object.getPrototypeOf(source));
|
|
237
|
+
for(const key in source)if (Object.prototype.hasOwnProperty.call(source, key)) if (pathMap.has(key) || pathMap.has('*')) cloned[key] = cloneSelectively(source[key], pathMap.get(key) || pathMap.get('*'));
|
|
238
|
+
else cloned[key] = source[key];
|
|
239
|
+
return cloned;
|
|
240
|
+
}
|
|
241
|
+
return cloneSelectively(obj, pathStructure);
|
|
242
|
+
}
|
|
243
|
+
function validatePath(path) {
|
|
244
|
+
if ('string' != typeof path) throw new Error('Paths must be (non-empty) strings');
|
|
245
|
+
if ('' === path) throw new Error('Invalid redaction path ()');
|
|
246
|
+
if (path.includes('..')) throw new Error(`Invalid redaction path (${path})`);
|
|
247
|
+
if (path.includes(',')) throw new Error(`Invalid redaction path (${path})`);
|
|
248
|
+
let bracketCount = 0;
|
|
249
|
+
let inQuotes = false;
|
|
250
|
+
let quoteChar = '';
|
|
251
|
+
for(let i = 0; i < path.length; i++){
|
|
252
|
+
const char = path[i];
|
|
253
|
+
if (('"' === char || "'" === char) && bracketCount > 0) if (inQuotes) {
|
|
254
|
+
if (char === quoteChar) {
|
|
255
|
+
inQuotes = false;
|
|
256
|
+
quoteChar = '';
|
|
257
|
+
}
|
|
258
|
+
} else {
|
|
259
|
+
inQuotes = true;
|
|
260
|
+
quoteChar = char;
|
|
261
|
+
}
|
|
262
|
+
else if ('[' !== char || inQuotes) {
|
|
263
|
+
if (']' === char && !inQuotes) {
|
|
264
|
+
bracketCount--;
|
|
265
|
+
if (bracketCount < 0) throw new Error(`Invalid redaction path (${path})`);
|
|
266
|
+
}
|
|
267
|
+
} else bracketCount++;
|
|
268
|
+
}
|
|
269
|
+
if (0 !== bracketCount) throw new Error(`Invalid redaction path (${path})`);
|
|
270
|
+
}
|
|
271
|
+
function validatePaths(paths) {
|
|
272
|
+
if (!Array.isArray(paths)) throw new TypeError('paths must be an array');
|
|
273
|
+
for (const path of paths)validatePath(path);
|
|
274
|
+
}
|
|
275
|
+
function slowRedact(options = {}) {
|
|
276
|
+
const { paths = [], censor = '[REDACTED]', serialize = JSON.stringify, strict = true, remove = false } = options;
|
|
277
|
+
validatePaths(paths);
|
|
278
|
+
const pathStructure = buildPathStructure(paths);
|
|
279
|
+
return function(obj) {
|
|
280
|
+
if (strict && (null === obj || 'object' != typeof obj)) {
|
|
281
|
+
if (null == obj) return serialize ? serialize(obj) : obj;
|
|
282
|
+
if ('object' != typeof obj) return serialize ? serialize(obj) : obj;
|
|
283
|
+
}
|
|
284
|
+
const cloned = selectiveClone(obj, pathStructure);
|
|
285
|
+
const original = obj;
|
|
286
|
+
let actualCensor = censor;
|
|
287
|
+
if ('function' == typeof censor) actualCensor = censor;
|
|
288
|
+
redactPaths(cloned, paths, actualCensor, remove);
|
|
289
|
+
if (false === serialize) {
|
|
290
|
+
cloned.restore = function() {
|
|
291
|
+
return deepClone(original);
|
|
292
|
+
};
|
|
293
|
+
return cloned;
|
|
294
|
+
}
|
|
295
|
+
if ('function' == typeof serialize) return serialize(cloned);
|
|
296
|
+
return JSON.stringify(cloned);
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
module1.exports = slowRedact;
|
|
300
|
+
},
|
|
301
|
+
"../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js" (module1) {
|
|
302
|
+
"use strict";
|
|
303
|
+
if ("u" > typeof SharedArrayBuffer && "u" > typeof Atomics) {
|
|
5
304
|
const nil = new Int32Array(new SharedArrayBuffer(4));
|
|
6
305
|
function sleep(ms) {
|
|
7
306
|
const valid = ms > 0 && ms < 1 / 0;
|
|
@@ -25,525 +324,7 @@ var __webpack_modules__ = {
|
|
|
25
324
|
module1.exports = sleep1;
|
|
26
325
|
}
|
|
27
326
|
},
|
|
28
|
-
"../../node_modules/.pnpm/
|
|
29
|
-
"use strict";
|
|
30
|
-
const validator = __webpack_require__("../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/validator.js");
|
|
31
|
-
const parse = __webpack_require__("../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/parse.js");
|
|
32
|
-
const redactor = __webpack_require__("../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/redactor.js");
|
|
33
|
-
const restorer = __webpack_require__("../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/restorer.js");
|
|
34
|
-
const { groupRedact, nestedRedact } = __webpack_require__("../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/modifiers.js");
|
|
35
|
-
const state = __webpack_require__("../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/state.js");
|
|
36
|
-
const rx = __webpack_require__("../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/rx.js");
|
|
37
|
-
const validate = validator();
|
|
38
|
-
const noop = (o)=>o;
|
|
39
|
-
noop.restore = noop;
|
|
40
|
-
const DEFAULT_CENSOR = '[REDACTED]';
|
|
41
|
-
fastRedact.rx = rx;
|
|
42
|
-
fastRedact.validator = validator;
|
|
43
|
-
module1.exports = fastRedact;
|
|
44
|
-
function fastRedact(opts = {}) {
|
|
45
|
-
const paths = Array.from(new Set(opts.paths || []));
|
|
46
|
-
const serialize = 'serialize' in opts ? false === opts.serialize ? opts.serialize : 'function' == typeof opts.serialize ? opts.serialize : JSON.stringify : JSON.stringify;
|
|
47
|
-
const remove = opts.remove;
|
|
48
|
-
if (true === remove && serialize !== JSON.stringify) throw Error('fast-redact – remove option may only be set when serializer is JSON.stringify');
|
|
49
|
-
const censor = true === remove ? void 0 : 'censor' in opts ? opts.censor : DEFAULT_CENSOR;
|
|
50
|
-
const isCensorFct = 'function' == typeof censor;
|
|
51
|
-
const censorFctTakesPath = isCensorFct && censor.length > 1;
|
|
52
|
-
if (0 === paths.length) return serialize || noop;
|
|
53
|
-
validate({
|
|
54
|
-
paths,
|
|
55
|
-
serialize,
|
|
56
|
-
censor
|
|
57
|
-
});
|
|
58
|
-
const { wildcards, wcLen, secret } = parse({
|
|
59
|
-
paths,
|
|
60
|
-
censor
|
|
61
|
-
});
|
|
62
|
-
const compileRestore = restorer();
|
|
63
|
-
const strict = 'strict' in opts ? opts.strict : true;
|
|
64
|
-
return redactor({
|
|
65
|
-
secret,
|
|
66
|
-
wcLen,
|
|
67
|
-
serialize,
|
|
68
|
-
strict,
|
|
69
|
-
isCensorFct,
|
|
70
|
-
censorFctTakesPath
|
|
71
|
-
}, state({
|
|
72
|
-
secret,
|
|
73
|
-
censor,
|
|
74
|
-
compileRestore,
|
|
75
|
-
serialize,
|
|
76
|
-
groupRedact,
|
|
77
|
-
nestedRedact,
|
|
78
|
-
wildcards,
|
|
79
|
-
wcLen
|
|
80
|
-
}));
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/modifiers.js": function(module1) {
|
|
84
|
-
"use strict";
|
|
85
|
-
module1.exports = {
|
|
86
|
-
groupRedact,
|
|
87
|
-
groupRestore,
|
|
88
|
-
nestedRedact,
|
|
89
|
-
nestedRestore
|
|
90
|
-
};
|
|
91
|
-
function groupRestore({ keys, values, target }) {
|
|
92
|
-
if (null == target || 'string' == typeof target) return;
|
|
93
|
-
const length = keys.length;
|
|
94
|
-
for(var i = 0; i < length; i++){
|
|
95
|
-
const k = keys[i];
|
|
96
|
-
target[k] = values[i];
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
function groupRedact(o, path, censor, isCensorFct, censorFctTakesPath) {
|
|
100
|
-
const target = get(o, path);
|
|
101
|
-
if (null == target || 'string' == typeof target) return {
|
|
102
|
-
keys: null,
|
|
103
|
-
values: null,
|
|
104
|
-
target,
|
|
105
|
-
flat: true
|
|
106
|
-
};
|
|
107
|
-
const keys = Object.keys(target);
|
|
108
|
-
const keysLength = keys.length;
|
|
109
|
-
const pathLength = path.length;
|
|
110
|
-
const pathWithKey = censorFctTakesPath ? [
|
|
111
|
-
...path
|
|
112
|
-
] : void 0;
|
|
113
|
-
const values = new Array(keysLength);
|
|
114
|
-
for(var i = 0; i < keysLength; i++){
|
|
115
|
-
const key = keys[i];
|
|
116
|
-
values[i] = target[key];
|
|
117
|
-
if (censorFctTakesPath) {
|
|
118
|
-
pathWithKey[pathLength] = key;
|
|
119
|
-
target[key] = censor(target[key], pathWithKey);
|
|
120
|
-
} else if (isCensorFct) target[key] = censor(target[key]);
|
|
121
|
-
else target[key] = censor;
|
|
122
|
-
}
|
|
123
|
-
return {
|
|
124
|
-
keys,
|
|
125
|
-
values,
|
|
126
|
-
target,
|
|
127
|
-
flat: true
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
function nestedRestore(instructions) {
|
|
131
|
-
for(let i = 0; i < instructions.length; i++){
|
|
132
|
-
const { target, path, value } = instructions[i];
|
|
133
|
-
let current = target;
|
|
134
|
-
for(let i = path.length - 1; i > 0; i--)current = current[path[i]];
|
|
135
|
-
current[path[0]] = value;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
function nestedRedact(store, o, path, ns, censor, isCensorFct, censorFctTakesPath) {
|
|
139
|
-
const target = get(o, path);
|
|
140
|
-
if (null == target) return;
|
|
141
|
-
const keys = Object.keys(target);
|
|
142
|
-
const keysLength = keys.length;
|
|
143
|
-
for(var i = 0; i < keysLength; i++){
|
|
144
|
-
const key = keys[i];
|
|
145
|
-
specialSet(store, target, key, path, ns, censor, isCensorFct, censorFctTakesPath);
|
|
146
|
-
}
|
|
147
|
-
return store;
|
|
148
|
-
}
|
|
149
|
-
function has(obj, prop) {
|
|
150
|
-
return null != obj ? 'hasOwn' in Object ? Object.hasOwn(obj, prop) : Object.prototype.hasOwnProperty.call(obj, prop) : false;
|
|
151
|
-
}
|
|
152
|
-
function specialSet(store, o, k, path, afterPath, censor, isCensorFct, censorFctTakesPath) {
|
|
153
|
-
const afterPathLen = afterPath.length;
|
|
154
|
-
const lastPathIndex = afterPathLen - 1;
|
|
155
|
-
const originalKey = k;
|
|
156
|
-
var i = -1;
|
|
157
|
-
var n1;
|
|
158
|
-
var nv;
|
|
159
|
-
var ov;
|
|
160
|
-
var oov = null;
|
|
161
|
-
var wc = null;
|
|
162
|
-
var kIsWc;
|
|
163
|
-
var wcov;
|
|
164
|
-
var consecutive = false;
|
|
165
|
-
var level = 0;
|
|
166
|
-
var depth = 0;
|
|
167
|
-
var redactPathCurrent = tree();
|
|
168
|
-
ov = n1 = o[k];
|
|
169
|
-
if ('object' != typeof n1) return;
|
|
170
|
-
while(null != n1 && ++i < afterPathLen){
|
|
171
|
-
depth += 1;
|
|
172
|
-
k = afterPath[i];
|
|
173
|
-
if ('*' !== k && !wc && !('object' == typeof n1 && k in n1)) break;
|
|
174
|
-
if ('*' === k) {
|
|
175
|
-
if ('*' === wc) consecutive = true;
|
|
176
|
-
wc = k;
|
|
177
|
-
if (i !== lastPathIndex) continue;
|
|
178
|
-
}
|
|
179
|
-
if (wc) {
|
|
180
|
-
const wcKeys = Object.keys(n1);
|
|
181
|
-
for(var j = 0; j < wcKeys.length; j++){
|
|
182
|
-
const wck = wcKeys[j];
|
|
183
|
-
wcov = n1[wck];
|
|
184
|
-
kIsWc = '*' === k;
|
|
185
|
-
if (consecutive) {
|
|
186
|
-
redactPathCurrent = node(redactPathCurrent, wck, depth);
|
|
187
|
-
level = i;
|
|
188
|
-
ov = iterateNthLevel(wcov, level - 1, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n1, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, o[originalKey], depth + 1);
|
|
189
|
-
} else if (kIsWc || 'object' == typeof wcov && null !== wcov && k in wcov) {
|
|
190
|
-
ov = kIsWc ? wcov : wcov[k];
|
|
191
|
-
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [
|
|
192
|
-
...path,
|
|
193
|
-
originalKey,
|
|
194
|
-
...afterPath
|
|
195
|
-
]) : censor(ov) : censor;
|
|
196
|
-
if (kIsWc) {
|
|
197
|
-
const rv = restoreInstr(node(redactPathCurrent, wck, depth), ov, o[originalKey]);
|
|
198
|
-
store.push(rv);
|
|
199
|
-
n1[wck] = nv;
|
|
200
|
-
} else if (wcov[k] === nv) ;
|
|
201
|
-
else if (void 0 === nv && void 0 !== censor || has(wcov, k) && nv === ov) redactPathCurrent = node(redactPathCurrent, wck, depth);
|
|
202
|
-
else {
|
|
203
|
-
redactPathCurrent = node(redactPathCurrent, wck, depth);
|
|
204
|
-
const rv = restoreInstr(node(redactPathCurrent, k, depth + 1), ov, o[originalKey]);
|
|
205
|
-
store.push(rv);
|
|
206
|
-
wcov[k] = nv;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
wc = null;
|
|
211
|
-
} else {
|
|
212
|
-
ov = n1[k];
|
|
213
|
-
redactPathCurrent = node(redactPathCurrent, k, depth);
|
|
214
|
-
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [
|
|
215
|
-
...path,
|
|
216
|
-
originalKey,
|
|
217
|
-
...afterPath
|
|
218
|
-
]) : censor(ov) : censor;
|
|
219
|
-
if (has(n1, k) && nv === ov || void 0 === nv && void 0 !== censor) ;
|
|
220
|
-
else {
|
|
221
|
-
const rv = restoreInstr(redactPathCurrent, ov, o[originalKey]);
|
|
222
|
-
store.push(rv);
|
|
223
|
-
n1[k] = nv;
|
|
224
|
-
}
|
|
225
|
-
n1 = n1[k];
|
|
226
|
-
}
|
|
227
|
-
if ('object' != typeof n1) break;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
function get(o, p) {
|
|
231
|
-
var i = -1;
|
|
232
|
-
var l = p.length;
|
|
233
|
-
var n1 = o;
|
|
234
|
-
while(null != n1 && ++i < l)n1 = n1[p[i]];
|
|
235
|
-
return n1;
|
|
236
|
-
}
|
|
237
|
-
function iterateNthLevel(wcov, level, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n1, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth) {
|
|
238
|
-
if (0 === level) {
|
|
239
|
-
if (kIsWc || 'object' == typeof wcov && null !== wcov && k in wcov) {
|
|
240
|
-
ov = kIsWc ? wcov : wcov[k];
|
|
241
|
-
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [
|
|
242
|
-
...path,
|
|
243
|
-
originalKey,
|
|
244
|
-
...afterPath
|
|
245
|
-
]) : censor(ov) : censor;
|
|
246
|
-
if (kIsWc) {
|
|
247
|
-
const rv = restoreInstr(redactPathCurrent, ov, parent);
|
|
248
|
-
store.push(rv);
|
|
249
|
-
n1[wck] = nv;
|
|
250
|
-
} else if (wcov[k] === nv) ;
|
|
251
|
-
else if (void 0 === nv && void 0 !== censor || has(wcov, k) && nv === ov) ;
|
|
252
|
-
else {
|
|
253
|
-
const rv = restoreInstr(node(redactPathCurrent, k, depth + 1), ov, parent);
|
|
254
|
-
store.push(rv);
|
|
255
|
-
wcov[k] = nv;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
for(const key in wcov)if ('object' == typeof wcov[key]) {
|
|
260
|
-
redactPathCurrent = node(redactPathCurrent, key, depth);
|
|
261
|
-
iterateNthLevel(wcov[key], level - 1, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n1, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth + 1);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
function tree() {
|
|
265
|
-
return {
|
|
266
|
-
parent: null,
|
|
267
|
-
key: null,
|
|
268
|
-
children: [],
|
|
269
|
-
depth: 0
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
function node(parent, key, depth) {
|
|
273
|
-
if (parent.depth === depth) return node(parent.parent, key, depth);
|
|
274
|
-
var child = {
|
|
275
|
-
parent,
|
|
276
|
-
key,
|
|
277
|
-
depth,
|
|
278
|
-
children: []
|
|
279
|
-
};
|
|
280
|
-
parent.children.push(child);
|
|
281
|
-
return child;
|
|
282
|
-
}
|
|
283
|
-
function restoreInstr(node, value, target) {
|
|
284
|
-
let current = node;
|
|
285
|
-
const path = [];
|
|
286
|
-
do {
|
|
287
|
-
path.push(current.key);
|
|
288
|
-
current = current.parent;
|
|
289
|
-
}while (null != current.parent);
|
|
290
|
-
return {
|
|
291
|
-
path,
|
|
292
|
-
value,
|
|
293
|
-
target
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
"../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/parse.js": function(module1, __unused_webpack_exports, __webpack_require__) {
|
|
298
|
-
"use strict";
|
|
299
|
-
const rx = __webpack_require__("../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/rx.js");
|
|
300
|
-
module1.exports = parse;
|
|
301
|
-
function parse({ paths }) {
|
|
302
|
-
const wildcards = [];
|
|
303
|
-
var wcLen = 0;
|
|
304
|
-
const secret = paths.reduce(function(o, strPath, ix) {
|
|
305
|
-
var path = strPath.match(rx).map((p)=>p.replace(/'|"|`/g, ''));
|
|
306
|
-
const leadingBracket = '[' === strPath[0];
|
|
307
|
-
path = path.map((p)=>{
|
|
308
|
-
if ('[' === p[0]) return p.substr(1, p.length - 2);
|
|
309
|
-
return p;
|
|
310
|
-
});
|
|
311
|
-
const star = path.indexOf('*');
|
|
312
|
-
if (star > -1) {
|
|
313
|
-
const before = path.slice(0, star);
|
|
314
|
-
const beforeStr = before.join('.');
|
|
315
|
-
const after = path.slice(star + 1, path.length);
|
|
316
|
-
const nested = after.length > 0;
|
|
317
|
-
wcLen++;
|
|
318
|
-
wildcards.push({
|
|
319
|
-
before,
|
|
320
|
-
beforeStr,
|
|
321
|
-
after,
|
|
322
|
-
nested
|
|
323
|
-
});
|
|
324
|
-
} else o[strPath] = {
|
|
325
|
-
path: path,
|
|
326
|
-
val: void 0,
|
|
327
|
-
precensored: false,
|
|
328
|
-
circle: '',
|
|
329
|
-
escPath: JSON.stringify(strPath),
|
|
330
|
-
leadingBracket: leadingBracket
|
|
331
|
-
};
|
|
332
|
-
return o;
|
|
333
|
-
}, {});
|
|
334
|
-
return {
|
|
335
|
-
wildcards,
|
|
336
|
-
wcLen,
|
|
337
|
-
secret
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
"../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/redactor.js": function(module1, __unused_webpack_exports, __webpack_require__) {
|
|
342
|
-
"use strict";
|
|
343
|
-
const rx = __webpack_require__("../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/rx.js");
|
|
344
|
-
module1.exports = redactor;
|
|
345
|
-
function redactor({ secret, serialize, wcLen, strict, isCensorFct, censorFctTakesPath }, state) {
|
|
346
|
-
const redact = Function('o', `
|
|
347
|
-
if (typeof o !== 'object' || o == null) {
|
|
348
|
-
${strictImpl(strict, serialize)}
|
|
349
|
-
}
|
|
350
|
-
const { censor, secret } = this
|
|
351
|
-
const originalSecret = {}
|
|
352
|
-
const secretKeys = Object.keys(secret)
|
|
353
|
-
for (var i = 0; i < secretKeys.length; i++) {
|
|
354
|
-
originalSecret[secretKeys[i]] = secret[secretKeys[i]]
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
${redactTmpl(secret, isCensorFct, censorFctTakesPath)}
|
|
358
|
-
this.compileRestore()
|
|
359
|
-
${dynamicRedactTmpl(wcLen > 0, isCensorFct, censorFctTakesPath)}
|
|
360
|
-
this.secret = originalSecret
|
|
361
|
-
${resultTmpl(serialize)}
|
|
362
|
-
`).bind(state);
|
|
363
|
-
redact.state = state;
|
|
364
|
-
if (false === serialize) redact.restore = (o)=>state.restore(o);
|
|
365
|
-
return redact;
|
|
366
|
-
}
|
|
367
|
-
function redactTmpl(secret, isCensorFct, censorFctTakesPath) {
|
|
368
|
-
return Object.keys(secret).map((path)=>{
|
|
369
|
-
const { escPath, leadingBracket, path: arrPath } = secret[path];
|
|
370
|
-
const skip = leadingBracket ? 1 : 0;
|
|
371
|
-
const delim = leadingBracket ? '' : '.';
|
|
372
|
-
const hops = [];
|
|
373
|
-
var match;
|
|
374
|
-
while(null !== (match = rx.exec(path))){
|
|
375
|
-
const [, ix] = match;
|
|
376
|
-
const { index, input } = match;
|
|
377
|
-
if (index > skip) hops.push(input.substring(0, index - (ix ? 0 : 1)));
|
|
378
|
-
}
|
|
379
|
-
var existence = hops.map((p)=>`o${delim}${p}`).join(' && ');
|
|
380
|
-
if (0 === existence.length) existence += `o${delim}${path} != null`;
|
|
381
|
-
else existence += ` && o${delim}${path} != null`;
|
|
382
|
-
const circularDetection = `
|
|
383
|
-
switch (true) {
|
|
384
|
-
${hops.reverse().map((p)=>`
|
|
385
|
-
case o${delim}${p} === censor:
|
|
386
|
-
secret[${escPath}].circle = ${JSON.stringify(p)}
|
|
387
|
-
break
|
|
388
|
-
`).join('\n')}
|
|
389
|
-
}
|
|
390
|
-
`;
|
|
391
|
-
const censorArgs = censorFctTakesPath ? `val, ${JSON.stringify(arrPath)}` : "val";
|
|
392
|
-
return `
|
|
393
|
-
if (${existence}) {
|
|
394
|
-
const val = o${delim}${path}
|
|
395
|
-
if (val === censor) {
|
|
396
|
-
secret[${escPath}].precensored = true
|
|
397
|
-
} else {
|
|
398
|
-
secret[${escPath}].val = val
|
|
399
|
-
o${delim}${path} = ${isCensorFct ? `censor(${censorArgs})` : 'censor'}
|
|
400
|
-
${circularDetection}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
`;
|
|
404
|
-
}).join('\n');
|
|
405
|
-
}
|
|
406
|
-
function dynamicRedactTmpl(hasWildcards, isCensorFct, censorFctTakesPath) {
|
|
407
|
-
return true === hasWildcards ? `
|
|
408
|
-
{
|
|
409
|
-
const { wildcards, wcLen, groupRedact, nestedRedact } = this
|
|
410
|
-
for (var i = 0; i < wcLen; i++) {
|
|
411
|
-
const { before, beforeStr, after, nested } = wildcards[i]
|
|
412
|
-
if (nested === true) {
|
|
413
|
-
secret[beforeStr] = secret[beforeStr] || []
|
|
414
|
-
nestedRedact(secret[beforeStr], o, before, after, censor, ${isCensorFct}, ${censorFctTakesPath})
|
|
415
|
-
} else secret[beforeStr] = groupRedact(o, before, censor, ${isCensorFct}, ${censorFctTakesPath})
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
` : '';
|
|
419
|
-
}
|
|
420
|
-
function resultTmpl(serialize) {
|
|
421
|
-
return false === serialize ? "return o" : `
|
|
422
|
-
var s = this.serialize(o)
|
|
423
|
-
this.restore(o)
|
|
424
|
-
return s
|
|
425
|
-
`;
|
|
426
|
-
}
|
|
427
|
-
function strictImpl(strict, serialize) {
|
|
428
|
-
return true === strict ? "throw Error('fast-redact: primitives cannot be redacted')" : false === serialize ? "return o" : "return this.serialize(o)";
|
|
429
|
-
}
|
|
430
|
-
},
|
|
431
|
-
"../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/restorer.js": function(module1, __unused_webpack_exports, __webpack_require__) {
|
|
432
|
-
"use strict";
|
|
433
|
-
const { groupRestore, nestedRestore } = __webpack_require__("../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/modifiers.js");
|
|
434
|
-
module1.exports = restorer;
|
|
435
|
-
function restorer() {
|
|
436
|
-
return function() {
|
|
437
|
-
if (this.restore) {
|
|
438
|
-
this.restore.state.secret = this.secret;
|
|
439
|
-
return;
|
|
440
|
-
}
|
|
441
|
-
const { secret, wcLen } = this;
|
|
442
|
-
const paths = Object.keys(secret);
|
|
443
|
-
const resetters = resetTmpl(secret, paths);
|
|
444
|
-
const hasWildcards = wcLen > 0;
|
|
445
|
-
const state = hasWildcards ? {
|
|
446
|
-
secret,
|
|
447
|
-
groupRestore,
|
|
448
|
-
nestedRestore
|
|
449
|
-
} : {
|
|
450
|
-
secret
|
|
451
|
-
};
|
|
452
|
-
this.restore = Function('o', restoreTmpl(resetters, paths, hasWildcards)).bind(state);
|
|
453
|
-
this.restore.state = state;
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
function resetTmpl(secret, paths) {
|
|
457
|
-
return paths.map((path)=>{
|
|
458
|
-
const { circle, escPath, leadingBracket } = secret[path];
|
|
459
|
-
const delim = leadingBracket ? '' : '.';
|
|
460
|
-
const reset = circle ? `o.${circle} = secret[${escPath}].val` : `o${delim}${path} = secret[${escPath}].val`;
|
|
461
|
-
const clear = `secret[${escPath}].val = undefined`;
|
|
462
|
-
return `
|
|
463
|
-
if (secret[${escPath}].val !== undefined) {
|
|
464
|
-
try { ${reset} } catch (e) {}
|
|
465
|
-
${clear}
|
|
466
|
-
}
|
|
467
|
-
`;
|
|
468
|
-
}).join('');
|
|
469
|
-
}
|
|
470
|
-
function restoreTmpl(resetters, paths, hasWildcards) {
|
|
471
|
-
const dynamicReset = true === hasWildcards ? `
|
|
472
|
-
const keys = Object.keys(secret)
|
|
473
|
-
const len = keys.length
|
|
474
|
-
for (var i = len - 1; i >= ${paths.length}; i--) {
|
|
475
|
-
const k = keys[i]
|
|
476
|
-
const o = secret[k]
|
|
477
|
-
if (o) {
|
|
478
|
-
if (o.flat === true) this.groupRestore(o)
|
|
479
|
-
else this.nestedRestore(o)
|
|
480
|
-
secret[k] = null
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
` : '';
|
|
484
|
-
return `
|
|
485
|
-
const secret = this.secret
|
|
486
|
-
${dynamicReset}
|
|
487
|
-
${resetters}
|
|
488
|
-
return o
|
|
489
|
-
`;
|
|
490
|
-
}
|
|
491
|
-
},
|
|
492
|
-
"../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/rx.js": function(module1) {
|
|
493
|
-
"use strict";
|
|
494
|
-
module1.exports = /[^.[\]]+|\[((?:.)*?)\]/g;
|
|
495
|
-
},
|
|
496
|
-
"../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/state.js": function(module1) {
|
|
497
|
-
"use strict";
|
|
498
|
-
module1.exports = state;
|
|
499
|
-
function state(o) {
|
|
500
|
-
const { secret, censor, compileRestore, serialize, groupRedact, nestedRedact, wildcards, wcLen } = o;
|
|
501
|
-
const builder = [
|
|
502
|
-
{
|
|
503
|
-
secret,
|
|
504
|
-
censor,
|
|
505
|
-
compileRestore
|
|
506
|
-
}
|
|
507
|
-
];
|
|
508
|
-
if (false !== serialize) builder.push({
|
|
509
|
-
serialize
|
|
510
|
-
});
|
|
511
|
-
if (wcLen > 0) builder.push({
|
|
512
|
-
groupRedact,
|
|
513
|
-
nestedRedact,
|
|
514
|
-
wildcards,
|
|
515
|
-
wcLen
|
|
516
|
-
});
|
|
517
|
-
return Object.assign(...builder);
|
|
518
|
-
}
|
|
519
|
-
},
|
|
520
|
-
"../../node_modules/.pnpm/fast-redact@3.5.0/node_modules/fast-redact/lib/validator.js": function(module1) {
|
|
521
|
-
"use strict";
|
|
522
|
-
module1.exports = validator;
|
|
523
|
-
function validator(opts = {}) {
|
|
524
|
-
const { ERR_PATHS_MUST_BE_STRINGS = ()=>'fast-redact - Paths must be (non-empty) strings', ERR_INVALID_PATH = (s)=>`fast-redact – Invalid path (${s})` } = opts;
|
|
525
|
-
return function({ paths }) {
|
|
526
|
-
paths.forEach((s)=>{
|
|
527
|
-
if ('string' != typeof s) throw Error(ERR_PATHS_MUST_BE_STRINGS());
|
|
528
|
-
try {
|
|
529
|
-
if (/〇/.test(s)) throw Error();
|
|
530
|
-
const expr = ('[' === s[0] ? '' : '.') + s.replace(/^\*/, '〇').replace(/\.\*/g, '.〇').replace(/\[\*\]/g, '[〇]');
|
|
531
|
-
if (/\n|\r|;/.test(expr)) throw Error();
|
|
532
|
-
if (/\/\*/.test(expr)) throw Error();
|
|
533
|
-
Function(`
|
|
534
|
-
'use strict'
|
|
535
|
-
const o = new Proxy({}, { get: () => o, set: () => { throw Error() } });
|
|
536
|
-
const 〇 = null;
|
|
537
|
-
o${expr}
|
|
538
|
-
if ([o${expr}].length !== 1) throw Error()`)();
|
|
539
|
-
} catch (e) {
|
|
540
|
-
throw Error(ERR_INVALID_PATH(s));
|
|
541
|
-
}
|
|
542
|
-
});
|
|
543
|
-
};
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
"../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js": function(module1) {
|
|
327
|
+
"../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js" (module1) {
|
|
547
328
|
"use strict";
|
|
548
329
|
const refs = {
|
|
549
330
|
exit: [],
|
|
@@ -625,7 +406,7 @@ var __webpack_modules__ = {
|
|
|
625
406
|
unregister
|
|
626
407
|
};
|
|
627
408
|
},
|
|
628
|
-
"../../node_modules/.pnpm/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js"
|
|
409
|
+
"../../node_modules/.pnpm/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js" (module1) {
|
|
629
410
|
"use strict";
|
|
630
411
|
function tryStringify(o) {
|
|
631
412
|
try {
|
|
@@ -721,7 +502,7 @@ var __webpack_modules__ = {
|
|
|
721
502
|
return str;
|
|
722
503
|
}
|
|
723
504
|
},
|
|
724
|
-
"../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js"
|
|
505
|
+
"../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js" (module1, exports) {
|
|
725
506
|
"use strict";
|
|
726
507
|
const { hasOwnProperty } = Object.prototype;
|
|
727
508
|
const stringify = configure();
|
|
@@ -1165,7 +946,7 @@ var __webpack_modules__ = {
|
|
|
1165
946
|
return stringify;
|
|
1166
947
|
}
|
|
1167
948
|
},
|
|
1168
|
-
"../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/index.js"
|
|
949
|
+
"../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1169
950
|
"use strict";
|
|
1170
951
|
const { version } = __webpack_require__("../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/package.json");
|
|
1171
952
|
const { EventEmitter } = __webpack_require__("events");
|
|
@@ -1519,7 +1300,7 @@ var __webpack_modules__ = {
|
|
|
1519
1300
|
}
|
|
1520
1301
|
module1.exports = ThreadStream;
|
|
1521
1302
|
},
|
|
1522
|
-
"../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/indexes.js"
|
|
1303
|
+
"../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/indexes.js" (module1) {
|
|
1523
1304
|
"use strict";
|
|
1524
1305
|
const WRITE_INDEX = 4;
|
|
1525
1306
|
const READ_INDEX = 8;
|
|
@@ -1528,7 +1309,7 @@ var __webpack_modules__ = {
|
|
|
1528
1309
|
READ_INDEX
|
|
1529
1310
|
};
|
|
1530
1311
|
},
|
|
1531
|
-
"../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js"
|
|
1312
|
+
"../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js" (module1) {
|
|
1532
1313
|
"use strict";
|
|
1533
1314
|
const MAX_TIMEOUT = 1000;
|
|
1534
1315
|
function wait(state, index, expected, timeout, done) {
|
|
@@ -1566,55 +1347,59 @@ var __webpack_modules__ = {
|
|
|
1566
1347
|
waitDiff
|
|
1567
1348
|
};
|
|
1568
1349
|
},
|
|
1569
|
-
assert
|
|
1350
|
+
assert (module1) {
|
|
1570
1351
|
"use strict";
|
|
1571
1352
|
module1.exports = require("assert");
|
|
1572
1353
|
},
|
|
1573
|
-
buffer
|
|
1354
|
+
buffer (module1) {
|
|
1574
1355
|
"use strict";
|
|
1575
1356
|
module1.exports = require("buffer");
|
|
1576
1357
|
},
|
|
1577
|
-
events
|
|
1358
|
+
events (module1) {
|
|
1578
1359
|
"use strict";
|
|
1579
1360
|
module1.exports = require("events");
|
|
1580
1361
|
},
|
|
1581
|
-
fs
|
|
1362
|
+
fs (module1) {
|
|
1582
1363
|
"use strict";
|
|
1583
1364
|
module1.exports = require("fs");
|
|
1584
1365
|
},
|
|
1585
|
-
module
|
|
1366
|
+
module (module1) {
|
|
1586
1367
|
"use strict";
|
|
1587
1368
|
module1.exports = require("module");
|
|
1588
1369
|
},
|
|
1589
|
-
"node:
|
|
1370
|
+
"node:diagnostics_channel" (module1) {
|
|
1371
|
+
"use strict";
|
|
1372
|
+
module1.exports = require("node:diagnostics_channel");
|
|
1373
|
+
},
|
|
1374
|
+
"node:events" (module1) {
|
|
1590
1375
|
"use strict";
|
|
1591
1376
|
module1.exports = require("node:events");
|
|
1592
1377
|
},
|
|
1593
|
-
"node:os"
|
|
1378
|
+
"node:os" (module1) {
|
|
1594
1379
|
"use strict";
|
|
1595
1380
|
module1.exports = require("node:os");
|
|
1596
1381
|
},
|
|
1597
|
-
"node:path"
|
|
1382
|
+
"node:path" (module1) {
|
|
1598
1383
|
"use strict";
|
|
1599
1384
|
module1.exports = require("node:path");
|
|
1600
1385
|
},
|
|
1601
|
-
path
|
|
1386
|
+
path (module1) {
|
|
1602
1387
|
"use strict";
|
|
1603
1388
|
module1.exports = require("path");
|
|
1604
1389
|
},
|
|
1605
|
-
url
|
|
1390
|
+
url (module1) {
|
|
1606
1391
|
"use strict";
|
|
1607
1392
|
module1.exports = require("url");
|
|
1608
1393
|
},
|
|
1609
|
-
util
|
|
1394
|
+
util (module1) {
|
|
1610
1395
|
"use strict";
|
|
1611
1396
|
module1.exports = require("util");
|
|
1612
1397
|
},
|
|
1613
|
-
worker_threads
|
|
1398
|
+
worker_threads (module1) {
|
|
1614
1399
|
"use strict";
|
|
1615
1400
|
module1.exports = require("worker_threads");
|
|
1616
1401
|
},
|
|
1617
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/index.js"
|
|
1402
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1618
1403
|
"use strict";
|
|
1619
1404
|
const errSerializer = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err.js");
|
|
1620
1405
|
const errWithCauseSerializer = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-with-cause.js");
|
|
@@ -1647,7 +1432,7 @@ var __webpack_modules__ = {
|
|
|
1647
1432
|
}
|
|
1648
1433
|
};
|
|
1649
1434
|
},
|
|
1650
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-helpers.js"
|
|
1435
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-helpers.js" (module1) {
|
|
1651
1436
|
"use strict";
|
|
1652
1437
|
const isErrorLike = (err)=>err && 'string' == typeof err.message;
|
|
1653
1438
|
const getErrorCause = (err)=>{
|
|
@@ -1689,7 +1474,7 @@ var __webpack_modules__ = {
|
|
|
1689
1474
|
messageWithCauses
|
|
1690
1475
|
};
|
|
1691
1476
|
},
|
|
1692
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-proto.js"
|
|
1477
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-proto.js" (module1) {
|
|
1693
1478
|
"use strict";
|
|
1694
1479
|
const seen = Symbol('circular-ref-tag');
|
|
1695
1480
|
const rawSymbol = Symbol('pino-raw-err-ref');
|
|
@@ -1736,7 +1521,7 @@ var __webpack_modules__ = {
|
|
|
1736
1521
|
}
|
|
1737
1522
|
};
|
|
1738
1523
|
},
|
|
1739
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-with-cause.js"
|
|
1524
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-with-cause.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1740
1525
|
"use strict";
|
|
1741
1526
|
module1.exports = errWithCauseSerializer;
|
|
1742
1527
|
const { isErrorLike } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-helpers.js");
|
|
@@ -1763,7 +1548,7 @@ var __webpack_modules__ = {
|
|
|
1763
1548
|
return _err;
|
|
1764
1549
|
}
|
|
1765
1550
|
},
|
|
1766
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err.js"
|
|
1551
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1767
1552
|
"use strict";
|
|
1768
1553
|
module1.exports = errSerializer;
|
|
1769
1554
|
const { messageWithCauses, stackWithCauses, isErrorLike } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/err-helpers.js");
|
|
@@ -1789,7 +1574,7 @@ var __webpack_modules__ = {
|
|
|
1789
1574
|
return _err;
|
|
1790
1575
|
}
|
|
1791
1576
|
},
|
|
1792
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/req.js"
|
|
1577
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/req.js" (module1) {
|
|
1793
1578
|
"use strict";
|
|
1794
1579
|
module1.exports = {
|
|
1795
1580
|
mapHttpRequest,
|
|
@@ -1875,7 +1660,7 @@ var __webpack_modules__ = {
|
|
|
1875
1660
|
};
|
|
1876
1661
|
}
|
|
1877
1662
|
},
|
|
1878
|
-
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/res.js"
|
|
1663
|
+
"../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/lib/res.js" (module1) {
|
|
1879
1664
|
"use strict";
|
|
1880
1665
|
module1.exports = {
|
|
1881
1666
|
mapHttpResponse,
|
|
@@ -1920,7 +1705,22 @@ var __webpack_modules__ = {
|
|
|
1920
1705
|
};
|
|
1921
1706
|
}
|
|
1922
1707
|
},
|
|
1923
|
-
"../../node_modules/.pnpm/pino@
|
|
1708
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/file.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1709
|
+
"use strict";
|
|
1710
|
+
const pino = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/pino.js");
|
|
1711
|
+
const { once } = __webpack_require__("node:events");
|
|
1712
|
+
module1.exports = async function(opts = {}) {
|
|
1713
|
+
const destOpts = Object.assign({}, opts, {
|
|
1714
|
+
dest: opts.destination || 1,
|
|
1715
|
+
sync: false
|
|
1716
|
+
});
|
|
1717
|
+
delete destOpts.destination;
|
|
1718
|
+
const destination = pino.destination(destOpts);
|
|
1719
|
+
await once(destination, 'ready');
|
|
1720
|
+
return destination;
|
|
1721
|
+
};
|
|
1722
|
+
},
|
|
1723
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/caller.js" (module1) {
|
|
1924
1724
|
"use strict";
|
|
1925
1725
|
function noOpPrepareStackTrace(_, stack) {
|
|
1926
1726
|
return stack;
|
|
@@ -1937,7 +1737,7 @@ var __webpack_modules__ = {
|
|
|
1937
1737
|
return fileNames;
|
|
1938
1738
|
};
|
|
1939
1739
|
},
|
|
1940
|
-
"../../node_modules/.pnpm/pino@
|
|
1740
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/constants.js" (module1) {
|
|
1941
1741
|
const DEFAULT_LEVELS = {
|
|
1942
1742
|
trace: 10,
|
|
1943
1743
|
debug: 20,
|
|
@@ -1955,11 +1755,11 @@ var __webpack_modules__ = {
|
|
|
1955
1755
|
SORTING_ORDER
|
|
1956
1756
|
};
|
|
1957
1757
|
},
|
|
1958
|
-
"../../node_modules/.pnpm/pino@
|
|
1758
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/levels.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
1959
1759
|
"use strict";
|
|
1960
|
-
const { lsCacheSym, levelValSym, useOnlyCustomLevelsSym, streamSym, formattersSym, hooksSym, levelCompSym } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
1961
|
-
const { noop, genLog } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
1962
|
-
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
1760
|
+
const { lsCacheSym, levelValSym, useOnlyCustomLevelsSym, streamSym, formattersSym, hooksSym, levelCompSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js");
|
|
1761
|
+
const { noop, genLog } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/tools.js");
|
|
1762
|
+
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/constants.js");
|
|
1963
1763
|
const levelMethods = {
|
|
1964
1764
|
fatal: (hook)=>{
|
|
1965
1765
|
const logFatal = genLog(DEFAULT_LEVELS.fatal, hook);
|
|
@@ -2107,19 +1907,18 @@ var __webpack_modules__ = {
|
|
|
2107
1907
|
assertLevelComparison
|
|
2108
1908
|
};
|
|
2109
1909
|
},
|
|
2110
|
-
"../../node_modules/.pnpm/pino@
|
|
1910
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/meta.js" (module1) {
|
|
2111
1911
|
"use strict";
|
|
2112
1912
|
module1.exports = {
|
|
2113
|
-
version: '
|
|
1913
|
+
version: '10.1.0'
|
|
2114
1914
|
};
|
|
2115
1915
|
},
|
|
2116
|
-
"../../node_modules/.pnpm/pino@
|
|
1916
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/multistream.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2117
1917
|
"use strict";
|
|
2118
1918
|
const metadata = Symbol.for('pino.metadata');
|
|
2119
|
-
const { DEFAULT_LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
1919
|
+
const { DEFAULT_LEVELS } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/constants.js");
|
|
2120
1920
|
const DEFAULT_INFO_LEVEL = DEFAULT_LEVELS.info;
|
|
2121
1921
|
function multistream(streamsArray, opts) {
|
|
2122
|
-
let counter = 0;
|
|
2123
1922
|
streamsArray = streamsArray || [];
|
|
2124
1923
|
opts = opts || {
|
|
2125
1924
|
dedupe: false
|
|
@@ -2132,10 +1931,12 @@ var __webpack_modules__ = {
|
|
|
2132
1931
|
const res = {
|
|
2133
1932
|
write,
|
|
2134
1933
|
add,
|
|
1934
|
+
remove,
|
|
2135
1935
|
emit,
|
|
2136
1936
|
flushSync,
|
|
2137
1937
|
end,
|
|
2138
1938
|
minLevel: 0,
|
|
1939
|
+
lastId: 0,
|
|
2139
1940
|
streams: [],
|
|
2140
1941
|
clone,
|
|
2141
1942
|
[metadata]: true,
|
|
@@ -2187,13 +1988,23 @@ var __webpack_modules__ = {
|
|
|
2187
1988
|
stream: stream_,
|
|
2188
1989
|
level,
|
|
2189
1990
|
levelVal: void 0,
|
|
2190
|
-
id:
|
|
1991
|
+
id: ++res.lastId
|
|
2191
1992
|
};
|
|
2192
1993
|
streams.unshift(dest_);
|
|
2193
1994
|
streams.sort(compareByLevel);
|
|
2194
1995
|
this.minLevel = streams[0].level;
|
|
2195
1996
|
return res;
|
|
2196
1997
|
}
|
|
1998
|
+
function remove(id) {
|
|
1999
|
+
const { streams } = this;
|
|
2000
|
+
const index = streams.findIndex((s)=>s.id === id);
|
|
2001
|
+
if (index >= 0) {
|
|
2002
|
+
streams.splice(index, 1);
|
|
2003
|
+
streams.sort(compareByLevel);
|
|
2004
|
+
this.minLevel = streams.length > 0 ? streams[0].level : -1;
|
|
2005
|
+
}
|
|
2006
|
+
return res;
|
|
2007
|
+
}
|
|
2197
2008
|
function end() {
|
|
2198
2009
|
for (const { stream } of this.streams){
|
|
2199
2010
|
if ('function' == typeof stream.flushSync) stream.flushSync();
|
|
@@ -2209,6 +2020,7 @@ var __webpack_modules__ = {
|
|
|
2209
2020
|
return {
|
|
2210
2021
|
write,
|
|
2211
2022
|
add,
|
|
2023
|
+
remove,
|
|
2212
2024
|
minLevel: level,
|
|
2213
2025
|
streams,
|
|
2214
2026
|
clone,
|
|
@@ -2232,14 +2044,14 @@ var __webpack_modules__ = {
|
|
|
2232
2044
|
}
|
|
2233
2045
|
module1.exports = multistream;
|
|
2234
2046
|
},
|
|
2235
|
-
"../../node_modules/.pnpm/pino@
|
|
2047
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/proto.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2236
2048
|
"use strict";
|
|
2237
2049
|
const { EventEmitter } = __webpack_require__("node:events");
|
|
2238
|
-
const { lsCacheSym, levelValSym, setLevelSym, getLevelSym, chindingsSym,
|
|
2239
|
-
const { getLevel, setLevel, isLevelEnabled, mappings, initialLsCache, genLsCache, assertNoLevelCollisions } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2240
|
-
const { asChindings, asJson, buildFormatters, stringify } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2241
|
-
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2242
|
-
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2050
|
+
const { lsCacheSym, levelValSym, setLevelSym, getLevelSym, chindingsSym, mixinSym, asJsonSym, writeSym, mixinMergeStrategySym, timeSym, timeSliceIndexSym, streamSym, serializersSym, formattersSym, errorKeySym, messageKeySym, useOnlyCustomLevelsSym, needsMetadataGsym, redactFmtSym, stringifySym, formatOptsSym, stringifiersSym, msgPrefixSym, hooksSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js");
|
|
2051
|
+
const { getLevel, setLevel, isLevelEnabled, mappings, initialLsCache, genLsCache, assertNoLevelCollisions } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/levels.js");
|
|
2052
|
+
const { asChindings, asJson, buildFormatters, stringify, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/tools.js");
|
|
2053
|
+
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/meta.js");
|
|
2054
|
+
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/redaction.js");
|
|
2243
2055
|
const constructor = class {
|
|
2244
2056
|
};
|
|
2245
2057
|
const prototype = {
|
|
@@ -2262,6 +2074,12 @@ var __webpack_modules__ = {
|
|
|
2262
2074
|
set levelVal (n){
|
|
2263
2075
|
throw Error('levelVal is read-only');
|
|
2264
2076
|
},
|
|
2077
|
+
get msgPrefix () {
|
|
2078
|
+
return this[msgPrefixSym];
|
|
2079
|
+
},
|
|
2080
|
+
get [Symbol.toStringTag] () {
|
|
2081
|
+
return 'Pino';
|
|
2082
|
+
},
|
|
2265
2083
|
[lsCacheSym]: initialLsCache,
|
|
2266
2084
|
[writeSym]: write,
|
|
2267
2085
|
[asJsonSym]: asJson,
|
|
@@ -2275,10 +2093,15 @@ var __webpack_modules__ = {
|
|
|
2275
2093
|
const resetChildingsFormatter = (bindings)=>bindings;
|
|
2276
2094
|
function child(bindings, options) {
|
|
2277
2095
|
if (!bindings) throw Error('missing bindings for child Pino');
|
|
2278
|
-
options = options || {};
|
|
2279
2096
|
const serializers = this[serializersSym];
|
|
2280
2097
|
const formatters = this[formattersSym];
|
|
2281
2098
|
const instance = Object.create(this);
|
|
2099
|
+
if (null == options) {
|
|
2100
|
+
if (instance[formattersSym].bindings !== resetChildingsFormatter) instance[formattersSym] = buildFormatters(formatters.level, resetChildingsFormatter, formatters.log);
|
|
2101
|
+
instance[chindingsSym] = asChindings(instance, bindings);
|
|
2102
|
+
if (this.onChild !== noop) this.onChild(instance);
|
|
2103
|
+
return instance;
|
|
2104
|
+
}
|
|
2282
2105
|
if (true === options.hasOwnProperty('serializers')) {
|
|
2283
2106
|
instance[serializersSym] = Object.create(null);
|
|
2284
2107
|
for(const k in serializers)instance[serializersSym][k] = serializers[k];
|
|
@@ -2315,8 +2138,10 @@ var __webpack_modules__ = {
|
|
|
2315
2138
|
}
|
|
2316
2139
|
if ('string' == typeof options.msgPrefix) instance[msgPrefixSym] = (this[msgPrefixSym] || '') + options.msgPrefix;
|
|
2317
2140
|
instance[chindingsSym] = asChindings(instance, bindings);
|
|
2318
|
-
|
|
2319
|
-
|
|
2141
|
+
if (void 0 !== options.level && options.level !== this.level || options.hasOwnProperty('customLevels')) {
|
|
2142
|
+
const childLevel = options.level || this.level;
|
|
2143
|
+
instance[setLevelSym](childLevel);
|
|
2144
|
+
}
|
|
2320
2145
|
this.onChild(instance);
|
|
2321
2146
|
return instance;
|
|
2322
2147
|
}
|
|
@@ -2331,7 +2156,6 @@ var __webpack_modules__ = {
|
|
|
2331
2156
|
function setBindings(newBindings) {
|
|
2332
2157
|
const chindings = asChindings(this, newBindings);
|
|
2333
2158
|
this[chindingsSym] = chindings;
|
|
2334
|
-
delete this[parsedChindingsSym];
|
|
2335
2159
|
}
|
|
2336
2160
|
function defaultMixinMergeStrategy(mergeObject, mixinObject) {
|
|
2337
2161
|
return Object.assign(mixinObject, mergeObject);
|
|
@@ -2366,7 +2190,6 @@ var __webpack_modules__ = {
|
|
|
2366
2190
|
}
|
|
2367
2191
|
stream.write(streamWriteHook ? streamWriteHook(s) : s);
|
|
2368
2192
|
}
|
|
2369
|
-
function noop() {}
|
|
2370
2193
|
function flush(cb) {
|
|
2371
2194
|
if (null != cb && 'function' != typeof cb) throw Error('callback must be a function');
|
|
2372
2195
|
const stream = this[streamSym];
|
|
@@ -2374,19 +2197,15 @@ var __webpack_modules__ = {
|
|
|
2374
2197
|
else if (cb) cb();
|
|
2375
2198
|
}
|
|
2376
2199
|
},
|
|
2377
|
-
"../../node_modules/.pnpm/pino@
|
|
2200
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/redaction.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2378
2201
|
"use strict";
|
|
2379
|
-
const
|
|
2380
|
-
const { redactFmtSym, wildcardFirstSym } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2381
|
-
const
|
|
2382
|
-
const validate = validator({
|
|
2383
|
-
ERR_PATHS_MUST_BE_STRINGS: ()=>'pino – redacted paths must be strings',
|
|
2384
|
-
ERR_INVALID_PATH: (s)=>`pino – redact paths array contains an invalid path (${s})`
|
|
2385
|
-
});
|
|
2202
|
+
const Redact = __webpack_require__("../../node_modules/.pnpm/@pinojs+redact@0.4.0/node_modules/@pinojs/redact/index.js");
|
|
2203
|
+
const { redactFmtSym, wildcardFirstSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js");
|
|
2204
|
+
const rx = /[^.[\]]+|\[([^[\]]*?)\]/g;
|
|
2386
2205
|
const CENSOR = '[Redacted]';
|
|
2387
2206
|
const strict = false;
|
|
2388
2207
|
function redaction(opts, serialize) {
|
|
2389
|
-
const { paths, censor } = handle(opts);
|
|
2208
|
+
const { paths, censor, remove } = handle(opts);
|
|
2390
2209
|
const shape = paths.reduce((o, str)=>{
|
|
2391
2210
|
rx.lastIndex = 0;
|
|
2392
2211
|
const first = rx.exec(str);
|
|
@@ -2409,11 +2228,12 @@ var __webpack_modules__ = {
|
|
|
2409
2228
|
return o;
|
|
2410
2229
|
}, {});
|
|
2411
2230
|
const result = {
|
|
2412
|
-
[redactFmtSym]:
|
|
2231
|
+
[redactFmtSym]: Redact({
|
|
2413
2232
|
paths,
|
|
2414
2233
|
censor,
|
|
2415
2234
|
serialize,
|
|
2416
|
-
strict
|
|
2235
|
+
strict,
|
|
2236
|
+
remove
|
|
2417
2237
|
})
|
|
2418
2238
|
};
|
|
2419
2239
|
const topCensor = (...args)=>'function' == typeof censor ? serialize(censor(...args)) : serialize(censor);
|
|
@@ -2429,11 +2249,12 @@ var __webpack_modules__ = {
|
|
|
2429
2249
|
k,
|
|
2430
2250
|
...path
|
|
2431
2251
|
]) : censor;
|
|
2432
|
-
o[k] =
|
|
2252
|
+
o[k] = Redact({
|
|
2433
2253
|
paths: shape[k],
|
|
2434
2254
|
censor: wrappedCensor,
|
|
2435
2255
|
serialize,
|
|
2436
|
-
strict
|
|
2256
|
+
strict,
|
|
2257
|
+
remove
|
|
2437
2258
|
});
|
|
2438
2259
|
}
|
|
2439
2260
|
return o;
|
|
@@ -2445,24 +2266,20 @@ var __webpack_modules__ = {
|
|
|
2445
2266
|
paths: opts,
|
|
2446
2267
|
censor: CENSOR
|
|
2447
2268
|
};
|
|
2448
|
-
validate(opts);
|
|
2449
2269
|
return opts;
|
|
2450
2270
|
}
|
|
2451
2271
|
let { paths, censor = CENSOR, remove } = opts;
|
|
2452
2272
|
if (false === Array.isArray(paths)) throw Error('pino – redact must contain an array of strings');
|
|
2453
2273
|
if (true === remove) censor = void 0;
|
|
2454
|
-
validate({
|
|
2455
|
-
paths,
|
|
2456
|
-
censor
|
|
2457
|
-
});
|
|
2458
2274
|
return {
|
|
2459
2275
|
paths,
|
|
2460
|
-
censor
|
|
2276
|
+
censor,
|
|
2277
|
+
remove
|
|
2461
2278
|
};
|
|
2462
2279
|
}
|
|
2463
2280
|
module1.exports = redaction;
|
|
2464
2281
|
},
|
|
2465
|
-
"../../node_modules/.pnpm/pino@
|
|
2282
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js" (module1) {
|
|
2466
2283
|
"use strict";
|
|
2467
2284
|
const setLevelSym = Symbol('pino.setLevel');
|
|
2468
2285
|
const getLevelSym = Symbol('pino.getLevel');
|
|
@@ -2529,28 +2346,50 @@ var __webpack_modules__ = {
|
|
|
2529
2346
|
msgPrefixSym
|
|
2530
2347
|
};
|
|
2531
2348
|
},
|
|
2532
|
-
"../../node_modules/.pnpm/pino@
|
|
2349
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/time.js" (module1) {
|
|
2533
2350
|
"use strict";
|
|
2534
2351
|
const nullTime = ()=>'';
|
|
2535
2352
|
const epochTime = ()=>`,"time":${Date.now()}`;
|
|
2536
2353
|
const unixTime = ()=>`,"time":${Math.round(Date.now() / 1000.0)}`;
|
|
2537
2354
|
const isoTime = ()=>`,"time":"${new Date(Date.now()).toISOString()}"`;
|
|
2355
|
+
const NS_PER_MS = 1000000n;
|
|
2356
|
+
const NS_PER_SEC = 1000000000n;
|
|
2357
|
+
const startWallTimeNs = BigInt(Date.now()) * NS_PER_MS;
|
|
2358
|
+
const startHrTime = process.hrtime.bigint();
|
|
2359
|
+
const isoTimeNano = ()=>{
|
|
2360
|
+
const elapsedNs = process.hrtime.bigint() - startHrTime;
|
|
2361
|
+
const currentTimeNs = startWallTimeNs + elapsedNs;
|
|
2362
|
+
const secondsSinceEpoch = currentTimeNs / NS_PER_SEC;
|
|
2363
|
+
const nanosWithinSecond = currentTimeNs % NS_PER_SEC;
|
|
2364
|
+
const msSinceEpoch = Number(1000n * secondsSinceEpoch + nanosWithinSecond / 1000000n);
|
|
2365
|
+
const date = new Date(msSinceEpoch);
|
|
2366
|
+
const year = date.getUTCFullYear();
|
|
2367
|
+
const month = (date.getUTCMonth() + 1).toString().padStart(2, '0');
|
|
2368
|
+
const day = date.getUTCDate().toString().padStart(2, '0');
|
|
2369
|
+
const hours = date.getUTCHours().toString().padStart(2, '0');
|
|
2370
|
+
const minutes = date.getUTCMinutes().toString().padStart(2, '0');
|
|
2371
|
+
const seconds = date.getUTCSeconds().toString().padStart(2, '0');
|
|
2372
|
+
return `,"time":"${year}-${month}-${day}T${hours}:${minutes}:${seconds}.${nanosWithinSecond.toString().padStart(9, '0')}Z"`;
|
|
2373
|
+
};
|
|
2538
2374
|
module1.exports = {
|
|
2539
2375
|
nullTime,
|
|
2540
2376
|
epochTime,
|
|
2541
2377
|
unixTime,
|
|
2542
|
-
isoTime
|
|
2378
|
+
isoTime,
|
|
2379
|
+
isoTimeNano
|
|
2543
2380
|
};
|
|
2544
2381
|
},
|
|
2545
|
-
"../../node_modules/.pnpm/pino@
|
|
2382
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/tools.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2546
2383
|
"use strict";
|
|
2384
|
+
const diagChan = __webpack_require__("node:diagnostics_channel");
|
|
2547
2385
|
const format = __webpack_require__("../../node_modules/.pnpm/quick-format-unescaped@4.0.4/node_modules/quick-format-unescaped/index.js");
|
|
2548
2386
|
const { mapHttpRequest, mapHttpResponse } = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/index.js");
|
|
2549
2387
|
const SonicBoom = __webpack_require__("../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js");
|
|
2550
2388
|
const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
|
|
2551
|
-
const { lsCacheSym, chindingsSym, writeSym, serializersSym, formatOptsSym, endSym, stringifiersSym, stringifySym, stringifySafeSym, wildcardFirstSym, nestedKeySym, formattersSym, messageKeySym, errorKeySym, nestedKeyStrSym, msgPrefixSym } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2389
|
+
const { lsCacheSym, chindingsSym, writeSym, serializersSym, formatOptsSym, endSym, stringifiersSym, stringifySym, stringifySafeSym, wildcardFirstSym, nestedKeySym, formattersSym, messageKeySym, errorKeySym, nestedKeyStrSym, msgPrefixSym } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js");
|
|
2552
2390
|
const { isMainThread } = __webpack_require__("worker_threads");
|
|
2553
|
-
const transport = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2391
|
+
const transport = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/transport.js");
|
|
2392
|
+
const asJsonChan = diagChan.tracingChannel('pino_asJson');
|
|
2554
2393
|
function noop() {}
|
|
2555
2394
|
function genLog(level, hook) {
|
|
2556
2395
|
if (!hook) return LOG;
|
|
@@ -2601,6 +2440,14 @@ var __webpack_modules__ = {
|
|
|
2601
2440
|
return point < 32 ? JSON.stringify(str) : '"' + result + '"';
|
|
2602
2441
|
}
|
|
2603
2442
|
function asJson(obj, msg, num, time) {
|
|
2443
|
+
if (false === asJsonChan.hasSubscribers) return _asJson.call(this, obj, msg, num, time);
|
|
2444
|
+
const store = {
|
|
2445
|
+
instance: this,
|
|
2446
|
+
arguments
|
|
2447
|
+
};
|
|
2448
|
+
return asJsonChan.traceSync(_asJson, store, this, obj, msg, num, time);
|
|
2449
|
+
}
|
|
2450
|
+
function _asJson(obj, msg, num, time) {
|
|
2604
2451
|
const stringify = this[stringifySym];
|
|
2605
2452
|
const stringifySafe = this[stringifySafeSym];
|
|
2606
2453
|
const stringifiers = this[stringifiersSym];
|
|
@@ -2679,7 +2526,7 @@ var __webpack_modules__ = {
|
|
|
2679
2526
|
bindings = formatter(bindings);
|
|
2680
2527
|
for(const key in bindings){
|
|
2681
2528
|
value = bindings[key];
|
|
2682
|
-
const valid = 'level' !== key && 'serializers' !== key && 'formatters' !== key && 'customLevels' !== key && bindings.hasOwnProperty(key) && void 0 !== value;
|
|
2529
|
+
const valid = (key.length < 5 || 'level' !== key && 'serializers' !== key && 'formatters' !== key && 'customLevels' !== key) && bindings.hasOwnProperty(key) && void 0 !== value;
|
|
2683
2530
|
if (true === valid) {
|
|
2684
2531
|
value = serializers[key] ? serializers[key](value) : value;
|
|
2685
2532
|
value = (stringifiers[key] || wildcardStringifier || stringify)(value, stringifySafe);
|
|
@@ -2802,10 +2649,10 @@ var __webpack_modules__ = {
|
|
|
2802
2649
|
normalizeDestFileDescriptor
|
|
2803
2650
|
};
|
|
2804
2651
|
},
|
|
2805
|
-
"../../node_modules/.pnpm/pino@
|
|
2652
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/transport.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2806
2653
|
"use strict";
|
|
2807
2654
|
const { createRequire } = __webpack_require__("module");
|
|
2808
|
-
const getCallers = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2655
|
+
const getCallers = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/caller.js");
|
|
2809
2656
|
const { join, isAbsolute, sep } = __webpack_require__("node:path");
|
|
2810
2657
|
const sleep = __webpack_require__("../../node_modules/.pnpm/atomic-sleep@1.0.0/node_modules/atomic-sleep/index.js");
|
|
2811
2658
|
const onExit = __webpack_require__("../../node_modules/.pnpm/on-exit-leak-free@2.1.2/node_modules/on-exit-leak-free/index.js");
|
|
@@ -2906,20 +2753,20 @@ var __webpack_modules__ = {
|
|
|
2906
2753
|
}
|
|
2907
2754
|
module1.exports = transport;
|
|
2908
2755
|
},
|
|
2909
|
-
"../../node_modules/.pnpm/pino@
|
|
2756
|
+
"../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/pino.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
2910
2757
|
"use strict";
|
|
2911
2758
|
const os = __webpack_require__("node:os");
|
|
2912
2759
|
const stdSerializers = __webpack_require__("../../node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/index.js");
|
|
2913
|
-
const caller = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2914
|
-
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2915
|
-
const time = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2916
|
-
const proto = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2917
|
-
const symbols = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2760
|
+
const caller = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/caller.js");
|
|
2761
|
+
const redaction = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/redaction.js");
|
|
2762
|
+
const time = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/time.js");
|
|
2763
|
+
const proto = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/proto.js");
|
|
2764
|
+
const symbols = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/symbols.js");
|
|
2918
2765
|
const { configure } = __webpack_require__("../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js");
|
|
2919
|
-
const { assertDefaultLevelFound, mappings, genLsCache, genLevelComparison, assertLevelComparison } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2920
|
-
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2921
|
-
const { createArgsNormalizer, asChindings, buildSafeSonicBoom, buildFormatters, stringify, normalizeDestFileDescriptor, noop } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2922
|
-
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2766
|
+
const { assertDefaultLevelFound, mappings, genLsCache, genLevelComparison, assertLevelComparison } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/levels.js");
|
|
2767
|
+
const { DEFAULT_LEVELS, SORTING_ORDER } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/constants.js");
|
|
2768
|
+
const { createArgsNormalizer, asChindings, buildSafeSonicBoom, buildFormatters, stringify, normalizeDestFileDescriptor, noop } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/tools.js");
|
|
2769
|
+
const { version } = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/meta.js");
|
|
2923
2770
|
const { chindingsSym, redactFmtSym, serializersSym, timeSym, timeSliceIndexSym, streamSym, stringifySym, stringifySafeSym, stringifiersSym, setLevelSym, endSym, formatOptsSym, messageKeySym, errorKeySym, nestedKeySym, mixinSym, levelCompSym, useOnlyCustomLevelsSym, formattersSym, hooksSym, nestedKeyStrSym, mixinMergeStrategySym, msgPrefixSym } = symbols;
|
|
2924
2771
|
const { epochTime, nullTime } = time;
|
|
2925
2772
|
const { pid } = process;
|
|
@@ -3053,8 +2900,8 @@ var __webpack_modules__ = {
|
|
|
3053
2900
|
dest.dest = normalizeDestFileDescriptor(dest.dest || process.stdout.fd);
|
|
3054
2901
|
return buildSafeSonicBoom(dest);
|
|
3055
2902
|
};
|
|
3056
|
-
module1.exports.transport = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
3057
|
-
module1.exports.multistream = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
2903
|
+
module1.exports.transport = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/transport.js");
|
|
2904
|
+
module1.exports.multistream = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/lib/multistream.js");
|
|
3058
2905
|
module1.exports.levels = mappings();
|
|
3059
2906
|
module1.exports.stdSerializers = serializers;
|
|
3060
2907
|
module1.exports.stdTimeFunctions = Object.assign({}, time);
|
|
@@ -3063,7 +2910,7 @@ var __webpack_modules__ = {
|
|
|
3063
2910
|
module1.exports["default"] = pino;
|
|
3064
2911
|
module1.exports.pino = pino;
|
|
3065
2912
|
},
|
|
3066
|
-
"../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js"
|
|
2913
|
+
"../../node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/index.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
3067
2914
|
"use strict";
|
|
3068
2915
|
const fs = __webpack_require__("fs");
|
|
3069
2916
|
const EventEmitter = __webpack_require__("events");
|
|
@@ -3488,22 +3335,7 @@ var __webpack_modules__ = {
|
|
|
3488
3335
|
SonicBoom.default = SonicBoom;
|
|
3489
3336
|
module1.exports = SonicBoom;
|
|
3490
3337
|
},
|
|
3491
|
-
"../../node_modules/.pnpm/
|
|
3492
|
-
"use strict";
|
|
3493
|
-
const pino = __webpack_require__("../../node_modules/.pnpm/pino@9.7.0/node_modules/pino/pino.js");
|
|
3494
|
-
const { once } = __webpack_require__("node:events");
|
|
3495
|
-
module1.exports = async function(opts = {}) {
|
|
3496
|
-
const destOpts = Object.assign({}, opts, {
|
|
3497
|
-
dest: opts.destination || 1,
|
|
3498
|
-
sync: false
|
|
3499
|
-
});
|
|
3500
|
-
delete destOpts.destination;
|
|
3501
|
-
const destination = pino.destination(destOpts);
|
|
3502
|
-
await once(destination, 'ready');
|
|
3503
|
-
return destination;
|
|
3504
|
-
};
|
|
3505
|
-
},
|
|
3506
|
-
"../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/package.json": function(module1) {
|
|
3338
|
+
"../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/package.json" (module1) {
|
|
3507
3339
|
"use strict";
|
|
3508
3340
|
module1.exports = JSON.parse('{"name":"thread-stream","version":"3.1.0","description":"A streaming way to send data to a Node.js Worker Thread","main":"index.js","types":"index.d.ts","dependencies":{"real-require":"^0.2.0"},"devDependencies":{"@types/node":"^20.1.0","@types/tap":"^15.0.0","@yao-pkg/pkg":"^5.11.5","desm":"^1.3.0","fastbench":"^1.0.1","husky":"^9.0.6","pino-elasticsearch":"^8.0.0","sonic-boom":"^4.0.1","standard":"^17.0.0","tap":"^16.2.0","ts-node":"^10.8.0","typescript":"^5.3.2","why-is-node-running":"^2.2.2"},"scripts":{"build":"tsc --noEmit","test":"standard && npm run build && npm run transpile && tap \\"test/**/*.test.*js\\" && tap --ts test/*.test.*ts","test:ci":"standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts","test:ci:js":"tap --no-check-coverage --timeout=120 --coverage-report=lcovonly \\"test/**/*.test.*js\\"","test:ci:ts":"tap --ts --no-check-coverage --coverage-report=lcovonly \\"test/**/*.test.*ts\\"","test:yarn":"npm run transpile && tap \\"test/**/*.test.js\\" --no-check-coverage","transpile":"sh ./test/ts/transpile.sh","prepare":"husky install"},"standard":{"ignore":["test/ts/**/*","test/syntax-error.mjs"]},"repository":{"type":"git","url":"git+https://github.com/mcollina/thread-stream.git"},"keywords":["worker","thread","threads","stream"],"author":"Matteo Collina <hello@matteocollina.com>","license":"MIT","bugs":{"url":"https://github.com/mcollina/thread-stream/issues"},"homepage":"https://github.com/mcollina/thread-stream#readme"}');
|
|
3509
3341
|
}
|
|
@@ -3518,5 +3350,5 @@ function __webpack_require__(moduleId) {
|
|
|
3518
3350
|
__webpack_modules__[moduleId](module1, module1.exports, __webpack_require__);
|
|
3519
3351
|
return module1.exports;
|
|
3520
3352
|
}
|
|
3521
|
-
var __webpack_exports__ = __webpack_require__("../../node_modules/.pnpm/pino@
|
|
3353
|
+
var __webpack_exports__ = __webpack_require__("../../node_modules/.pnpm/pino@10.1.0/node_modules/pino/file.js");
|
|
3522
3354
|
module.exports = __webpack_exports__;
|