@bazariodev/docket 0.0.0-stage → 1.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/CHANGELOG.md +37 -0
- package/LICENSE +21 -0
- package/README.md +985 -2
- package/dist/browser/constants.d.cts +14 -0
- package/dist/browser/constants.d.ts +14 -0
- package/dist/browser/index.cjs +192 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts +29 -0
- package/dist/browser/index.d.ts +29 -0
- package/dist/browser/index.js +187 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/chunk-7ld72rnl.js +376 -0
- package/dist/chunk-7ld72rnl.js.map +1 -0
- package/dist/chunk-BLf-eCDO.cjs +53 -0
- package/dist/chunk-BLf-eCDO.cjs.map +1 -0
- package/dist/chunk-CEhpwtwJ.cjs +379 -0
- package/dist/chunk-CEhpwtwJ.cjs.map +1 -0
- package/dist/chunk-CSS3f4_M.js +46 -0
- package/dist/chunk-CSS3f4_M.js.map +1 -0
- package/dist/chunk-CXZYNALm.cjs +124 -0
- package/dist/chunk-CXZYNALm.cjs.map +1 -0
- package/dist/chunk-DYcNnkOV.js +50 -0
- package/dist/chunk-DYcNnkOV.js.map +1 -0
- package/dist/chunk-DkvWLziD.js +437 -0
- package/dist/chunk-DkvWLziD.js.map +1 -0
- package/dist/chunk-DqK_3eFr.cjs +53 -0
- package/dist/chunk-DqK_3eFr.cjs.map +1 -0
- package/dist/chunk-LRCHwVuE.js +110 -0
- package/dist/chunk-LRCHwVuE.js.map +1 -0
- package/dist/chunk-ieB8yTEn.cjs +439 -0
- package/dist/chunk-ieB8yTEn.cjs.map +1 -0
- package/dist/client/index.cjs +167 -0
- package/dist/client/index.cjs.map +1 -0
- package/dist/client/index.d.cts +40 -0
- package/dist/client/index.d.ts +40 -0
- package/dist/client/index.js +165 -0
- package/dist/client/index.js.map +1 -0
- package/dist/constants.d.cts +4 -0
- package/dist/constants.d.ts +4 -0
- package/dist/core/constants.d.cts +43 -0
- package/dist/core/constants.d.ts +43 -0
- package/dist/devtools/index.cjs +37 -0
- package/dist/devtools/index.cjs.map +1 -0
- package/dist/devtools/index.d.cts +11 -0
- package/dist/devtools/index.d.ts +11 -0
- package/dist/devtools/index.js +35 -0
- package/dist/devtools/index.js.map +1 -0
- package/dist/export/index.cjs +139 -0
- package/dist/export/index.cjs.map +1 -0
- package/dist/export/index.d.cts +49 -0
- package/dist/export/index.d.ts +49 -0
- package/dist/export/index.js +137 -0
- package/dist/export/index.js.map +1 -0
- package/dist/history/index.cjs +30 -0
- package/dist/history/index.cjs.map +1 -0
- package/dist/history/index.d.cts +11 -0
- package/dist/history/index.d.ts +11 -0
- package/dist/history/index.js +28 -0
- package/dist/history/index.js.map +1 -0
- package/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +159 -0
- package/dist/index.d.ts +159 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/indexeddb/index.cjs +26 -0
- package/dist/indexeddb/index.cjs.map +1 -0
- package/dist/indexeddb/index.d.cts +61 -0
- package/dist/indexeddb/index.d.ts +61 -0
- package/dist/indexeddb/index.js +23 -0
- package/dist/indexeddb/index.js.map +1 -0
- package/dist/redaction/index.cjs +154 -0
- package/dist/redaction/index.cjs.map +1 -0
- package/dist/redaction/index.d.cts +70 -0
- package/dist/redaction/index.d.ts +70 -0
- package/dist/redaction/index.js +152 -0
- package/dist/redaction/index.js.map +1 -0
- package/dist/sip/index.cjs +336 -0
- package/dist/sip/index.cjs.map +1 -0
- package/dist/sip/index.d.cts +34 -0
- package/dist/sip/index.d.ts +34 -0
- package/dist/sip/index.js +333 -0
- package/dist/sip/index.js.map +1 -0
- package/dist/storage/constants.d.cts +11 -0
- package/dist/storage/constants.d.ts +11 -0
- package/dist/storage/contracts.d.cts +31 -0
- package/dist/storage/contracts.d.ts +31 -0
- package/dist/upload/constants.d.cts +17 -0
- package/dist/upload/constants.d.ts +17 -0
- package/dist/upload/index.cjs +246 -0
- package/dist/upload/index.cjs.map +1 -0
- package/dist/upload/index.d.cts +51 -0
- package/dist/upload/index.d.ts +51 -0
- package/dist/upload/index.js +244 -0
- package/dist/upload/index.js.map +1 -0
- package/package.json +150 -3
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import { d as define, o as own } from './chunk-LRCHwVuE.js';
|
|
2
|
+
import { M as MARKERS, L as LEVELS } from './chunk-CSS3f4_M.js';
|
|
3
|
+
|
|
4
|
+
const errorKeys = ['name', 'message', 'stack', 'cause', 'errors', 'fields'];
|
|
5
|
+
const recordKeys = [
|
|
6
|
+
'runId',
|
|
7
|
+
'seq',
|
|
8
|
+
'at',
|
|
9
|
+
'level',
|
|
10
|
+
'area',
|
|
11
|
+
'scope',
|
|
12
|
+
'message',
|
|
13
|
+
'redactionVersion',
|
|
14
|
+
'fields',
|
|
15
|
+
'context',
|
|
16
|
+
'error',
|
|
17
|
+
'truncated',
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
function errorShape(keys, descriptors) {
|
|
21
|
+
return (
|
|
22
|
+
keys.every((key) => errorKeys.includes(key)) &&
|
|
23
|
+
typeof descriptors.get('name')?.value === 'string' &&
|
|
24
|
+
typeof descriptors.get('message')?.value === 'string' &&
|
|
25
|
+
(!descriptors.has('stack') ||
|
|
26
|
+
typeof descriptors.get('stack').value === 'string')
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function errorMarker({ array, keys, descriptors }) {
|
|
31
|
+
return (
|
|
32
|
+
!array &&
|
|
33
|
+
keys.length === 2 &&
|
|
34
|
+
descriptors.get('name')?.value === 'Error' &&
|
|
35
|
+
descriptors.get('message')?.value === MARKERS.LIMIT
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function arrayIndex(key, length) {
|
|
40
|
+
const index = typeof key === 'string' ? Number(key) : -1;
|
|
41
|
+
return (
|
|
42
|
+
Number.isSafeInteger(index) &&
|
|
43
|
+
index >= 0 &&
|
|
44
|
+
index < length &&
|
|
45
|
+
String(index) === key
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function ownJson(value, limits, { record = false } = {}) {
|
|
50
|
+
let nodes = 0;
|
|
51
|
+
let classifiedNodes = 0;
|
|
52
|
+
const ancestors = new Set();
|
|
53
|
+
const snapshots = new WeakMap();
|
|
54
|
+
const classifications = new WeakMap();
|
|
55
|
+
const classifying = new Set();
|
|
56
|
+
|
|
57
|
+
function inspect(value, kind = '') {
|
|
58
|
+
const cached = snapshots.get(value);
|
|
59
|
+
if (cached) return cached;
|
|
60
|
+
const array = Array.isArray(value);
|
|
61
|
+
const length = array ? own(value, 'length') : 0;
|
|
62
|
+
if (
|
|
63
|
+
array &&
|
|
64
|
+
(!Number.isSafeInteger(length) ||
|
|
65
|
+
length < 0 ||
|
|
66
|
+
length > limits.maxArrayLength + 1)
|
|
67
|
+
)
|
|
68
|
+
throw new TypeError('Invalid redactor bounds');
|
|
69
|
+
const keys = Reflect.ownKeys(value).filter(
|
|
70
|
+
(key) => !(array && key === 'length'),
|
|
71
|
+
);
|
|
72
|
+
const ceiling =
|
|
73
|
+
kind === 'marker'
|
|
74
|
+
? 2
|
|
75
|
+
: kind === 'record'
|
|
76
|
+
? recordKeys.length
|
|
77
|
+
: Math.max(limits.maxKeys + 1, errorKeys.length);
|
|
78
|
+
if (
|
|
79
|
+
(array && keys.length > limits.maxArrayLength + 1) ||
|
|
80
|
+
(!array && keys.length > ceiling)
|
|
81
|
+
)
|
|
82
|
+
throw new TypeError('Invalid redactor bounds');
|
|
83
|
+
const descriptors = new Map();
|
|
84
|
+
for (const key of keys) {
|
|
85
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
86
|
+
if (!descriptor || !Object.hasOwn(descriptor, 'value'))
|
|
87
|
+
throw new TypeError('Invalid redactor property');
|
|
88
|
+
descriptors.set(key, descriptor);
|
|
89
|
+
}
|
|
90
|
+
const snapshot = { array, length, keys, descriptors };
|
|
91
|
+
snapshots.set(value, snapshot);
|
|
92
|
+
return snapshot;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function errorRelationships({ descriptors }, depth) {
|
|
96
|
+
const fields = descriptors.get('fields');
|
|
97
|
+
if (
|
|
98
|
+
fields &&
|
|
99
|
+
(!fields.value ||
|
|
100
|
+
typeof fields.value !== 'object' ||
|
|
101
|
+
Array.isArray(fields.value))
|
|
102
|
+
)
|
|
103
|
+
return false;
|
|
104
|
+
const cause = descriptors.get('cause');
|
|
105
|
+
if (cause && !canonicalError(cause.value, depth + 1)) return false;
|
|
106
|
+
const errors = descriptors.get('errors');
|
|
107
|
+
if (!errors) return true;
|
|
108
|
+
if (!Array.isArray(errors.value)) return false;
|
|
109
|
+
const { length, keys, descriptors: children } = inspect(errors.value);
|
|
110
|
+
if (length !== keys.length || !keys.every((key) => arrayIndex(key, length)))
|
|
111
|
+
return false;
|
|
112
|
+
for (const key of keys)
|
|
113
|
+
if (!canonicalError(children.get(key).value, depth + 1)) return false;
|
|
114
|
+
return (
|
|
115
|
+
length <= limits.maxArrayLength ||
|
|
116
|
+
errorMarker(inspect(children.get(String(length - 1)).value))
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function canonicalError(value, depth) {
|
|
121
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
122
|
+
return false;
|
|
123
|
+
const cached = classifications.get(value);
|
|
124
|
+
if (cached !== undefined) return cached;
|
|
125
|
+
if (classifying.has(value)) return false;
|
|
126
|
+
const snapshot = inspect(
|
|
127
|
+
value,
|
|
128
|
+
depth > limits.maxDepth || classifiedNodes >= limits.maxNodes
|
|
129
|
+
? 'marker'
|
|
130
|
+
: '',
|
|
131
|
+
);
|
|
132
|
+
if (!errorShape(snapshot.keys, snapshot.descriptors)) {
|
|
133
|
+
classifications.set(value, false);
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
if (errorMarker(snapshot)) {
|
|
137
|
+
classifications.set(value, true);
|
|
138
|
+
return true;
|
|
139
|
+
}
|
|
140
|
+
if (depth > limits.maxDepth) return false;
|
|
141
|
+
if (++classifiedNodes > limits.maxNodes)
|
|
142
|
+
throw new TypeError('Invalid redactor bounds');
|
|
143
|
+
classifying.add(value);
|
|
144
|
+
const valid = errorRelationships(snapshot, depth);
|
|
145
|
+
classifying.delete(value);
|
|
146
|
+
classifications.set(value, valid);
|
|
147
|
+
return valid;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function charge(kind, marker) {
|
|
151
|
+
if (
|
|
152
|
+
!marker &&
|
|
153
|
+
![
|
|
154
|
+
'record',
|
|
155
|
+
'header',
|
|
156
|
+
'fixed',
|
|
157
|
+
'error-name',
|
|
158
|
+
'error-text',
|
|
159
|
+
'errors',
|
|
160
|
+
'error-fields',
|
|
161
|
+
'boxed-fields',
|
|
162
|
+
].includes(kind) &&
|
|
163
|
+
++nodes > limits.maxNodes
|
|
164
|
+
)
|
|
165
|
+
throw new TypeError('Invalid redactor bounds');
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function copy(value, depth, kind = '', overflow = false) {
|
|
169
|
+
const compound = value && typeof value === 'object';
|
|
170
|
+
const marker = overflow && value === MARKERS.LIMIT;
|
|
171
|
+
if (!compound) {
|
|
172
|
+
if (
|
|
173
|
+
[
|
|
174
|
+
'error',
|
|
175
|
+
'errors',
|
|
176
|
+
'error-fields',
|
|
177
|
+
'record',
|
|
178
|
+
'fields',
|
|
179
|
+
'context',
|
|
180
|
+
].includes(kind)
|
|
181
|
+
)
|
|
182
|
+
throw new TypeError('Invalid redactor JSON');
|
|
183
|
+
charge(kind, marker);
|
|
184
|
+
if (depth > limits.maxDepth && value !== MARKERS.LIMIT)
|
|
185
|
+
throw new TypeError('Invalid redactor bounds');
|
|
186
|
+
if (
|
|
187
|
+
value === null ||
|
|
188
|
+
typeof value === 'boolean' ||
|
|
189
|
+
(typeof value === 'number' && Number.isFinite(value))
|
|
190
|
+
)
|
|
191
|
+
return value;
|
|
192
|
+
if (
|
|
193
|
+
typeof value === 'string' &&
|
|
194
|
+
(value.length <= limits.maxStringLength ||
|
|
195
|
+
Object.values(MARKERS).includes(value) ||
|
|
196
|
+
(kind === 'fixed' && value.length <= 64) ||
|
|
197
|
+
(kind === 'error-name' && value === 'Error'))
|
|
198
|
+
)
|
|
199
|
+
return value;
|
|
200
|
+
throw new TypeError('Invalid redactor JSON');
|
|
201
|
+
}
|
|
202
|
+
if (ancestors.has(value)) throw new TypeError('Invalid redactor JSON');
|
|
203
|
+
if (
|
|
204
|
+
depth > limits.maxDepth &&
|
|
205
|
+
kind !== 'errors' &&
|
|
206
|
+
!(overflow && kind === 'error')
|
|
207
|
+
)
|
|
208
|
+
throw new TypeError('Invalid redactor bounds');
|
|
209
|
+
const { array, length, keys, descriptors } = inspect(
|
|
210
|
+
value,
|
|
211
|
+
depth > limits.maxDepth && kind === 'error' ? 'marker' : kind,
|
|
212
|
+
);
|
|
213
|
+
if (
|
|
214
|
+
(kind === 'errors' && !array) ||
|
|
215
|
+
(['record', 'error', 'error-fields', 'fields', 'context'].includes(
|
|
216
|
+
kind,
|
|
217
|
+
) &&
|
|
218
|
+
array)
|
|
219
|
+
)
|
|
220
|
+
throw new TypeError('Invalid redactor JSON');
|
|
221
|
+
const shapedError = !array && errorShape(keys, descriptors);
|
|
222
|
+
if (kind === 'error' && !shapedError)
|
|
223
|
+
throw new TypeError('Invalid serialized error');
|
|
224
|
+
if (!kind && shapedError && canonicalError(value, depth)) kind = 'error';
|
|
225
|
+
if (kind === 'fields' && keys.length === 1 && keys[0] === 'value')
|
|
226
|
+
kind = 'boxed-fields';
|
|
227
|
+
const overflowMarker =
|
|
228
|
+
overflow && kind === 'error' && errorMarker({ array, keys, descriptors });
|
|
229
|
+
if (overflowMarker)
|
|
230
|
+
return Object.freeze({ name: 'Error', message: MARKERS.LIMIT });
|
|
231
|
+
if (depth > limits.maxDepth && kind !== 'errors')
|
|
232
|
+
throw new TypeError('Invalid redactor bounds');
|
|
233
|
+
charge(kind, false);
|
|
234
|
+
const schema = kind === 'record' || kind === 'error';
|
|
235
|
+
const keyLimit = schema
|
|
236
|
+
? kind === 'record'
|
|
237
|
+
? recordKeys.length
|
|
238
|
+
: errorKeys.length
|
|
239
|
+
: array
|
|
240
|
+
? limits.maxArrayLength
|
|
241
|
+
: limits.maxKeys;
|
|
242
|
+
const lastKey = array && length ? String(length - 1) : '';
|
|
243
|
+
const last = descriptors.get(lastKey)?.value;
|
|
244
|
+
const markerCount = array
|
|
245
|
+
? Number(
|
|
246
|
+
last === MARKERS.LIMIT ||
|
|
247
|
+
(kind === 'errors' && last && typeof last === 'object'),
|
|
248
|
+
)
|
|
249
|
+
: Number(descriptors.get(MARKERS.LIMIT)?.value === MARKERS.LIMIT);
|
|
250
|
+
if (
|
|
251
|
+
keys.length > keyLimit + markerCount ||
|
|
252
|
+
(array &&
|
|
253
|
+
(length !== keys.length ||
|
|
254
|
+
length > limits.maxArrayLength + markerCount))
|
|
255
|
+
)
|
|
256
|
+
throw new TypeError('Invalid redactor bounds');
|
|
257
|
+
if (kind === 'record' && keys.some((key) => !recordKeys.includes(key)))
|
|
258
|
+
throw new TypeError('Invalid record property');
|
|
259
|
+
const result = array ? [] : {};
|
|
260
|
+
ancestors.add(value);
|
|
261
|
+
for (const key of keys) {
|
|
262
|
+
if (array && !arrayIndex(key, length))
|
|
263
|
+
throw new TypeError('Invalid redactor index');
|
|
264
|
+
const descriptor = descriptors.get(key);
|
|
265
|
+
if (
|
|
266
|
+
typeof key !== 'string' ||
|
|
267
|
+
(!schema &&
|
|
268
|
+
!array &&
|
|
269
|
+
kind !== 'boxed-fields' &&
|
|
270
|
+
key.length > limits.maxStringLength &&
|
|
271
|
+
!Object.values(MARKERS).includes(key)) ||
|
|
272
|
+
!Object.hasOwn(descriptor, 'value')
|
|
273
|
+
)
|
|
274
|
+
throw new TypeError('Invalid redactor property');
|
|
275
|
+
let childKind = '';
|
|
276
|
+
let childDepth = depth + 1;
|
|
277
|
+
let childOverflow =
|
|
278
|
+
(array &&
|
|
279
|
+
key === lastKey &&
|
|
280
|
+
(last === MARKERS.LIMIT || (kind === 'errors' && markerCount))) ||
|
|
281
|
+
(key === MARKERS.LIMIT && descriptor.value === MARKERS.LIMIT);
|
|
282
|
+
if (kind === 'record') {
|
|
283
|
+
childDepth = 0;
|
|
284
|
+
childKind = 'header';
|
|
285
|
+
if (key === 'context') childKind = 'context';
|
|
286
|
+
if (key === 'fields') childKind = 'fields';
|
|
287
|
+
if (key === 'error') {
|
|
288
|
+
childKind = 'error';
|
|
289
|
+
childOverflow = true;
|
|
290
|
+
}
|
|
291
|
+
if (['runId', 'level', 'redactionVersion'].includes(key))
|
|
292
|
+
childKind = 'fixed';
|
|
293
|
+
} else if (kind === 'error') {
|
|
294
|
+
switch (key) {
|
|
295
|
+
case 'cause':
|
|
296
|
+
childKind = 'error';
|
|
297
|
+
childOverflow = true;
|
|
298
|
+
break;
|
|
299
|
+
case 'errors':
|
|
300
|
+
childKind = 'errors';
|
|
301
|
+
break;
|
|
302
|
+
case 'fields':
|
|
303
|
+
childKind = 'error-fields';
|
|
304
|
+
childDepth = depth;
|
|
305
|
+
break;
|
|
306
|
+
default:
|
|
307
|
+
childKind = key === 'name' ? 'error-name' : 'error-text';
|
|
308
|
+
childDepth = depth;
|
|
309
|
+
}
|
|
310
|
+
} else if (kind === 'errors') {
|
|
311
|
+
childKind = 'error';
|
|
312
|
+
childDepth = depth;
|
|
313
|
+
if (depth > limits.maxDepth) childOverflow = true;
|
|
314
|
+
} else if (kind === 'boxed-fields') {
|
|
315
|
+
childDepth = depth;
|
|
316
|
+
childOverflow = descriptor.value === MARKERS.LIMIT;
|
|
317
|
+
}
|
|
318
|
+
define(
|
|
319
|
+
result,
|
|
320
|
+
key,
|
|
321
|
+
copy(descriptor.value, childDepth, childKind, childOverflow),
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
if (array && length > limits.maxArrayLength) {
|
|
326
|
+
const end = result[length - 1];
|
|
327
|
+
if (
|
|
328
|
+
end !== MARKERS.LIMIT &&
|
|
329
|
+
!(
|
|
330
|
+
kind === 'errors' &&
|
|
331
|
+
end &&
|
|
332
|
+
typeof end === 'object' &&
|
|
333
|
+
Object.keys(end).length === 2 &&
|
|
334
|
+
end.name === 'Error' &&
|
|
335
|
+
end.message === MARKERS.LIMIT
|
|
336
|
+
)
|
|
337
|
+
)
|
|
338
|
+
throw new TypeError('Invalid redactor bounds');
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
ancestors.delete(value);
|
|
342
|
+
return Object.freeze(result);
|
|
343
|
+
}
|
|
344
|
+
const result = copy(value, 0, record ? 'record' : '');
|
|
345
|
+
if (JSON.stringify(result).length > limits.maxRecordSize)
|
|
346
|
+
throw new TypeError('Invalid record size');
|
|
347
|
+
return result;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
function ownRecord(record, limits) {
|
|
351
|
+
const result = ownJson(record, limits, { record: true });
|
|
352
|
+
for (const key of ['runId', 'area', 'scope', 'message', 'redactionVersion'])
|
|
353
|
+
if (typeof result[key] !== 'string')
|
|
354
|
+
throw new TypeError('Invalid record header');
|
|
355
|
+
if (
|
|
356
|
+
!Number.isSafeInteger(result.seq) ||
|
|
357
|
+
result.seq < 1 ||
|
|
358
|
+
!Number.isFinite(result.at) ||
|
|
359
|
+
!Object.values(LEVELS).includes(result.level)
|
|
360
|
+
)
|
|
361
|
+
throw new TypeError('Invalid record header');
|
|
362
|
+
if (
|
|
363
|
+
result.context !== undefined &&
|
|
364
|
+
Object.values(result.context).some(
|
|
365
|
+
(value) => typeof value !== 'string' && typeof value !== 'number',
|
|
366
|
+
)
|
|
367
|
+
)
|
|
368
|
+
throw new TypeError('Invalid record context');
|
|
369
|
+
|
|
370
|
+
if (result.truncated !== undefined && result.truncated !== true)
|
|
371
|
+
throw new TypeError('Invalid truncation flag');
|
|
372
|
+
return result;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export { ownRecord as a, ownJson as o };
|
|
376
|
+
//# sourceMappingURL=chunk-7ld72rnl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-7ld72rnl.js","sources":["../src/core/conversion.js"],"sourcesContent":["import { define, own } from './common.js';\nimport { LEVELS, MARKERS } from './constants.js';\n\nconst errorKeys = ['name', 'message', 'stack', 'cause', 'errors', 'fields'];\nconst recordKeys = [\n 'runId',\n 'seq',\n 'at',\n 'level',\n 'area',\n 'scope',\n 'message',\n 'redactionVersion',\n 'fields',\n 'context',\n 'error',\n 'truncated',\n];\n\nfunction errorShape(keys, descriptors) {\n return (\n keys.every((key) => errorKeys.includes(key)) &&\n typeof descriptors.get('name')?.value === 'string' &&\n typeof descriptors.get('message')?.value === 'string' &&\n (!descriptors.has('stack') ||\n typeof descriptors.get('stack').value === 'string')\n );\n}\n\nfunction errorMarker({ array, keys, descriptors }) {\n return (\n !array &&\n keys.length === 2 &&\n descriptors.get('name')?.value === 'Error' &&\n descriptors.get('message')?.value === MARKERS.LIMIT\n );\n}\n\nfunction arrayIndex(key, length) {\n const index = typeof key === 'string' ? Number(key) : -1;\n return (\n Number.isSafeInteger(index) &&\n index >= 0 &&\n index < length &&\n String(index) === key\n );\n}\n\nexport function ownJson(value, limits, { record = false } = {}) {\n let nodes = 0;\n let classifiedNodes = 0;\n const ancestors = new Set();\n const snapshots = new WeakMap();\n const classifications = new WeakMap();\n const classifying = new Set();\n\n function inspect(value, kind = '') {\n const cached = snapshots.get(value);\n if (cached) return cached;\n const array = Array.isArray(value);\n const length = array ? own(value, 'length') : 0;\n if (\n array &&\n (!Number.isSafeInteger(length) ||\n length < 0 ||\n length > limits.maxArrayLength + 1)\n )\n throw new TypeError('Invalid redactor bounds');\n const keys = Reflect.ownKeys(value).filter(\n (key) => !(array && key === 'length'),\n );\n const ceiling =\n kind === 'marker'\n ? 2\n : kind === 'record'\n ? recordKeys.length\n : Math.max(limits.maxKeys + 1, errorKeys.length);\n if (\n (array && keys.length > limits.maxArrayLength + 1) ||\n (!array && keys.length > ceiling)\n )\n throw new TypeError('Invalid redactor bounds');\n const descriptors = new Map();\n for (const key of keys) {\n const descriptor = Object.getOwnPropertyDescriptor(value, key);\n if (!descriptor || !Object.hasOwn(descriptor, 'value'))\n throw new TypeError('Invalid redactor property');\n descriptors.set(key, descriptor);\n }\n const snapshot = { array, length, keys, descriptors };\n snapshots.set(value, snapshot);\n return snapshot;\n }\n\n function errorRelationships({ descriptors }, depth) {\n const fields = descriptors.get('fields');\n if (\n fields &&\n (!fields.value ||\n typeof fields.value !== 'object' ||\n Array.isArray(fields.value))\n )\n return false;\n const cause = descriptors.get('cause');\n if (cause && !canonicalError(cause.value, depth + 1)) return false;\n const errors = descriptors.get('errors');\n if (!errors) return true;\n if (!Array.isArray(errors.value)) return false;\n const { length, keys, descriptors: children } = inspect(errors.value);\n if (length !== keys.length || !keys.every((key) => arrayIndex(key, length)))\n return false;\n for (const key of keys)\n if (!canonicalError(children.get(key).value, depth + 1)) return false;\n return (\n length <= limits.maxArrayLength ||\n errorMarker(inspect(children.get(String(length - 1)).value))\n );\n }\n\n function canonicalError(value, depth) {\n if (!value || typeof value !== 'object' || Array.isArray(value))\n return false;\n const cached = classifications.get(value);\n if (cached !== undefined) return cached;\n if (classifying.has(value)) return false;\n const snapshot = inspect(\n value,\n depth > limits.maxDepth || classifiedNodes >= limits.maxNodes\n ? 'marker'\n : '',\n );\n if (!errorShape(snapshot.keys, snapshot.descriptors)) {\n classifications.set(value, false);\n return false;\n }\n if (errorMarker(snapshot)) {\n classifications.set(value, true);\n return true;\n }\n if (depth > limits.maxDepth) return false;\n if (++classifiedNodes > limits.maxNodes)\n throw new TypeError('Invalid redactor bounds');\n classifying.add(value);\n const valid = errorRelationships(snapshot, depth);\n classifying.delete(value);\n classifications.set(value, valid);\n return valid;\n }\n\n function charge(kind, marker) {\n if (\n !marker &&\n ![\n 'record',\n 'header',\n 'fixed',\n 'error-name',\n 'error-text',\n 'errors',\n 'error-fields',\n 'boxed-fields',\n ].includes(kind) &&\n ++nodes > limits.maxNodes\n )\n throw new TypeError('Invalid redactor bounds');\n }\n\n function copy(value, depth, kind = '', overflow = false) {\n const compound = value && typeof value === 'object';\n const marker = overflow && value === MARKERS.LIMIT;\n if (!compound) {\n if (\n [\n 'error',\n 'errors',\n 'error-fields',\n 'record',\n 'fields',\n 'context',\n ].includes(kind)\n )\n throw new TypeError('Invalid redactor JSON');\n charge(kind, marker);\n if (depth > limits.maxDepth && value !== MARKERS.LIMIT)\n throw new TypeError('Invalid redactor bounds');\n if (\n value === null ||\n typeof value === 'boolean' ||\n (typeof value === 'number' && Number.isFinite(value))\n )\n return value;\n if (\n typeof value === 'string' &&\n (value.length <= limits.maxStringLength ||\n Object.values(MARKERS).includes(value) ||\n (kind === 'fixed' && value.length <= 64) ||\n (kind === 'error-name' && value === 'Error'))\n )\n return value;\n throw new TypeError('Invalid redactor JSON');\n }\n if (ancestors.has(value)) throw new TypeError('Invalid redactor JSON');\n if (\n depth > limits.maxDepth &&\n kind !== 'errors' &&\n !(overflow && kind === 'error')\n )\n throw new TypeError('Invalid redactor bounds');\n const { array, length, keys, descriptors } = inspect(\n value,\n depth > limits.maxDepth && kind === 'error' ? 'marker' : kind,\n );\n if (\n (kind === 'errors' && !array) ||\n (['record', 'error', 'error-fields', 'fields', 'context'].includes(\n kind,\n ) &&\n array)\n )\n throw new TypeError('Invalid redactor JSON');\n const shapedError = !array && errorShape(keys, descriptors);\n if (kind === 'error' && !shapedError)\n throw new TypeError('Invalid serialized error');\n if (!kind && shapedError && canonicalError(value, depth)) kind = 'error';\n if (kind === 'fields' && keys.length === 1 && keys[0] === 'value')\n kind = 'boxed-fields';\n const overflowMarker =\n overflow && kind === 'error' && errorMarker({ array, keys, descriptors });\n if (overflowMarker)\n return Object.freeze({ name: 'Error', message: MARKERS.LIMIT });\n if (depth > limits.maxDepth && kind !== 'errors')\n throw new TypeError('Invalid redactor bounds');\n charge(kind, false);\n const schema = kind === 'record' || kind === 'error';\n const keyLimit = schema\n ? kind === 'record'\n ? recordKeys.length\n : errorKeys.length\n : array\n ? limits.maxArrayLength\n : limits.maxKeys;\n const lastKey = array && length ? String(length - 1) : '';\n const last = descriptors.get(lastKey)?.value;\n const markerCount = array\n ? Number(\n last === MARKERS.LIMIT ||\n (kind === 'errors' && last && typeof last === 'object'),\n )\n : Number(descriptors.get(MARKERS.LIMIT)?.value === MARKERS.LIMIT);\n if (\n keys.length > keyLimit + markerCount ||\n (array &&\n (length !== keys.length ||\n length > limits.maxArrayLength + markerCount))\n )\n throw new TypeError('Invalid redactor bounds');\n if (kind === 'record' && keys.some((key) => !recordKeys.includes(key)))\n throw new TypeError('Invalid record property');\n const result = array ? [] : {};\n ancestors.add(value);\n for (const key of keys) {\n if (array && !arrayIndex(key, length))\n throw new TypeError('Invalid redactor index');\n const descriptor = descriptors.get(key);\n if (\n typeof key !== 'string' ||\n (!schema &&\n !array &&\n kind !== 'boxed-fields' &&\n key.length > limits.maxStringLength &&\n !Object.values(MARKERS).includes(key)) ||\n !Object.hasOwn(descriptor, 'value')\n )\n throw new TypeError('Invalid redactor property');\n let childKind = '';\n let childDepth = depth + 1;\n let childOverflow =\n (array &&\n key === lastKey &&\n (last === MARKERS.LIMIT || (kind === 'errors' && markerCount))) ||\n (key === MARKERS.LIMIT && descriptor.value === MARKERS.LIMIT);\n if (kind === 'record') {\n childDepth = 0;\n childKind = 'header';\n if (key === 'context') childKind = 'context';\n if (key === 'fields') childKind = 'fields';\n if (key === 'error') {\n childKind = 'error';\n childOverflow = true;\n }\n if (['runId', 'level', 'redactionVersion'].includes(key))\n childKind = 'fixed';\n } else if (kind === 'error') {\n switch (key) {\n case 'cause':\n childKind = 'error';\n childOverflow = true;\n break;\n case 'errors':\n childKind = 'errors';\n break;\n case 'fields':\n childKind = 'error-fields';\n childDepth = depth;\n break;\n default:\n childKind = key === 'name' ? 'error-name' : 'error-text';\n childDepth = depth;\n }\n } else if (kind === 'errors') {\n childKind = 'error';\n childDepth = depth;\n if (depth > limits.maxDepth) childOverflow = true;\n } else if (kind === 'boxed-fields') {\n childDepth = depth;\n childOverflow = descriptor.value === MARKERS.LIMIT;\n }\n define(\n result,\n key,\n copy(descriptor.value, childDepth, childKind, childOverflow),\n );\n }\n\n if (array && length > limits.maxArrayLength) {\n const end = result[length - 1];\n if (\n end !== MARKERS.LIMIT &&\n !(\n kind === 'errors' &&\n end &&\n typeof end === 'object' &&\n Object.keys(end).length === 2 &&\n end.name === 'Error' &&\n end.message === MARKERS.LIMIT\n )\n )\n throw new TypeError('Invalid redactor bounds');\n }\n\n ancestors.delete(value);\n return Object.freeze(result);\n }\n const result = copy(value, 0, record ? 'record' : '');\n if (JSON.stringify(result).length > limits.maxRecordSize)\n throw new TypeError('Invalid record size');\n return result;\n}\n\nexport function ownRecord(record, limits) {\n const result = ownJson(record, limits, { record: true });\n for (const key of ['runId', 'area', 'scope', 'message', 'redactionVersion'])\n if (typeof result[key] !== 'string')\n throw new TypeError('Invalid record header');\n if (\n !Number.isSafeInteger(result.seq) ||\n result.seq < 1 ||\n !Number.isFinite(result.at) ||\n !Object.values(LEVELS).includes(result.level)\n )\n throw new TypeError('Invalid record header');\n if (\n result.context !== undefined &&\n Object.values(result.context).some(\n (value) => typeof value !== 'string' && typeof value !== 'number',\n )\n )\n throw new TypeError('Invalid record context');\n\n if (result.truncated !== undefined && result.truncated !== true)\n throw new TypeError('Invalid truncation flag');\n return result;\n}\n"],"names":[],"mappings":";;;AAGA,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;AAC3E,MAAM,UAAU,GAAG;AACnB,EAAE,OAAO;AACT,EAAE,KAAK;AACP,EAAE,IAAI;AACN,EAAE,OAAO;AACT,EAAE,MAAM;AACR,EAAE,OAAO;AACT,EAAE,SAAS;AACX,EAAE,kBAAkB;AACpB,EAAE,QAAQ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ACtC,MAAM,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ;AACvE;AACA;AACA,IAAI,MAAM,IAAI,SAAS,CAAC,wBAAwB,CAAC;;AAEjD,EAAE,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,KAAK,IAAI;AACjE,IAAI,MAAM,IAAI,SAAS,CAAC,yBAAyB,CAAC;AAClD,EAAE,OAAO,MAAM;AACf;;"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const LEVELS = /* @__PURE__ */ Object.freeze({
|
|
4
|
+
DEBUG: 'debug',
|
|
5
|
+
INFO: 'info',
|
|
6
|
+
WARN: 'warn',
|
|
7
|
+
ERROR: 'error',
|
|
8
|
+
});
|
|
9
|
+
const LOGGING_LIMITS = /* @__PURE__ */ Object.freeze({
|
|
10
|
+
ROOT_LOGGER_CACHE_PAIRS: 1000,
|
|
11
|
+
STORM_SCOPE_PAIRS: 1000,
|
|
12
|
+
STORM_WINDOW_MS: 1000,
|
|
13
|
+
STORM_SUMMARY_DELAY_MS: 1000,
|
|
14
|
+
DEFAULT_LEVEL_OVERRIDE_MS: 86_400_000,
|
|
15
|
+
MAX_TIMER_DELAY_MS: 2_147_483_647,
|
|
16
|
+
DEFAULT_STORM_LIMIT: 100,
|
|
17
|
+
});
|
|
18
|
+
const LOGGING_ERROR_CODES = /* @__PURE__ */ Object.freeze({
|
|
19
|
+
RECURSIVE_LOGGING: 'recursive-logging',
|
|
20
|
+
ROOT_LOGGER_CACHE_LIMIT: 'root-logger-cache-limit',
|
|
21
|
+
STOPPED: 'stopped',
|
|
22
|
+
});
|
|
23
|
+
const LOGGING_ERROR_SOURCES = /* @__PURE__ */ Object.freeze({
|
|
24
|
+
DATA: 'data',
|
|
25
|
+
REDACTOR: 'redactor',
|
|
26
|
+
SINK: 'sink',
|
|
27
|
+
STORAGE: 'storage',
|
|
28
|
+
SCOPE: 'scope',
|
|
29
|
+
REENTRY: 'reentry',
|
|
30
|
+
});
|
|
31
|
+
const LIMITS = /* @__PURE__ */ Object.freeze({
|
|
32
|
+
maxDepth: 6,
|
|
33
|
+
maxStringLength: 16_384,
|
|
34
|
+
maxArrayLength: 100,
|
|
35
|
+
maxKeys: 100,
|
|
36
|
+
maxNodes: 1000,
|
|
37
|
+
maxRecordSize: 65_536,
|
|
38
|
+
});
|
|
39
|
+
const MARKERS = /* @__PURE__ */ Object.freeze({
|
|
40
|
+
LIMIT: '[truncated]',
|
|
41
|
+
CYCLE: '[circular]',
|
|
42
|
+
ACCESSOR: '[accessor]',
|
|
43
|
+
UNSUPPORTED: '[unsupported]',
|
|
44
|
+
MASK: '[redacted]',
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
exports.LEVELS = LEVELS;
|
|
48
|
+
exports.LIMITS = LIMITS;
|
|
49
|
+
exports.LOGGING_ERROR_CODES = LOGGING_ERROR_CODES;
|
|
50
|
+
exports.LOGGING_ERROR_SOURCES = LOGGING_ERROR_SOURCES;
|
|
51
|
+
exports.LOGGING_LIMITS = LOGGING_LIMITS;
|
|
52
|
+
exports.MARKERS = MARKERS;
|
|
53
|
+
//# sourceMappingURL=chunk-BLf-eCDO.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-BLf-eCDO.cjs","sources":["../src/core/constants.js"],"sourcesContent":["export const LEVELS = /* @__PURE__ */ Object.freeze({\n DEBUG: 'debug',\n INFO: 'info',\n WARN: 'warn',\n ERROR: 'error',\n});\nexport const LOGGING_LIMITS = /* @__PURE__ */ Object.freeze({\n ROOT_LOGGER_CACHE_PAIRS: 1000,\n STORM_SCOPE_PAIRS: 1000,\n STORM_WINDOW_MS: 1000,\n STORM_SUMMARY_DELAY_MS: 1000,\n DEFAULT_LEVEL_OVERRIDE_MS: 86_400_000,\n MAX_TIMER_DELAY_MS: 2_147_483_647,\n DEFAULT_STORM_LIMIT: 100,\n});\nexport const LOGGING_ERROR_CODES = /* @__PURE__ */ Object.freeze({\n RECURSIVE_LOGGING: 'recursive-logging',\n ROOT_LOGGER_CACHE_LIMIT: 'root-logger-cache-limit',\n STOPPED: 'stopped',\n});\nexport const LOGGING_ERROR_SOURCES = /* @__PURE__ */ Object.freeze({\n DATA: 'data',\n REDACTOR: 'redactor',\n SINK: 'sink',\n STORAGE: 'storage',\n SCOPE: 'scope',\n REENTRY: 'reentry',\n});\nexport const LIMITS = /* @__PURE__ */ Object.freeze({\n maxDepth: 6,\n maxStringLength: 16_384,\n maxArrayLength: 100,\n maxKeys: 100,\n maxNodes: 1000,\n maxRecordSize: 65_536,\n});\nexport const MARKERS = /* @__PURE__ */ Object.freeze({\n LIMIT: '[truncated]',\n CYCLE: '[circular]',\n ACCESSOR: '[accessor]',\n UNSUPPORTED: '[unsupported]',\n MASK: '[redacted]',\n});\n"],"names":[],"mappings":";;AAAY,MAAC,MAAM,mBAAmB,MAAM,CAAC,MAAM,CAAC;AACpD,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC;AACW,MAAC,cAAc,mBAAmB,MAAM,CAAC,MAAM,CAAC;AAC5D,EAAE,uBAAuB,EAAE,IAAI;AAC/B,EAAE,iBAAiB,EAAE,IAAI;AACzB,EAAE,eAAe,EAAE,IAAI;AACvB,EAAE,sBAAsB,EAAE,IAAI;AAC9B,EAAE,yBAAyB,EAAE,UAAU;AACvC,EAAE,kBAAkB,EAAE,aAAa;AACnC,EAAE,mBAAmB,EAAE,GAAG;AAC1B,CAAC;AACW,MAAC,mBAAmB,mBAAmB,MAAM,CAAC,MAAM,CAAC;AACjE,EAAE,iBAAiB,EAAE,mBAAmB;AACxC,EAAE,uBAAuB,EAAE,yBAAyB;AACpD,EAAE,OAAO,EAAE,SAAS;AACpB,CAAC;AACW,MAAC,qBA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