seroval 1.8.0 → 1.8.2
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/dev/index.cjs +1 -1
- package/dist/dev/index.js +1 -1
- package/dist/dev/{read-CfSVIjp6.js → read--2lC-cNb.js} +15 -3
- package/dist/dev/{read-DvIuZ2yx.cjs → read-BOG4auze.cjs} +15 -3
- package/dist/dev/read.cjs +1 -1
- package/dist/dev/read.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{read-CSKXLr9t.js → read-B3lBprVF.js} +15 -3
- package/dist/{read-CD88YElZ.cjs → read-B5Kcd8i1.cjs} +15 -3
- package/dist/read.cjs +1 -1
- package/dist/read.js +1 -1
- package/package.json +1 -1
package/dist/dev/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_shared = require("./shared-DWx3Bwb6.cjs");
|
|
3
|
-
const require_read = require("./read-
|
|
3
|
+
const require_read = require("./read-BOG4auze.cjs");
|
|
4
4
|
const require_write = require("./write-DGOp2jqo.cjs");
|
|
5
5
|
let src_core_validator = require("./validator.cjs");
|
|
6
6
|
exports.Feature = require_shared.Feature;
|
package/dist/dev/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { A as SerovalMalformedNodeError, B as SerovalUnsupportedTypeError, C as getCrossReferenceHeader, D as SerovalDeserializationError, E as SerovalDepthLimitError, F as SerovalParserError, I as SerovalPluginValidationError, L as SerovalSerializationError, M as SerovalMissingPluginError, N as SerovalMissingReferenceError, O as SerovalError, P as SerovalMissingReferenceForIdError, R as SerovalUnknownTypedArrayError, T as SerovalConflictedNodeIdError, a as getPlainObjectPlugins, c as createStream, d as LiveStream, f as createLiveStream, i as createPlugin, j as SerovalMissingInstanceError, k as SerovalLiveStreamError, l as isStream, m as Sequence, n as OpaqueReference, o as resolvePlugins, p as isLiveStream, r as SerovalMode, s as Stream, t as v, tt as Feature, w as SerovalAbortedError, y as createReference, z as SerovalUnsupportedNodeError } from "./shared-Cf-Bmoy-.js";
|
|
2
|
-
import { i as fromCrossJSON, n as fromJSON, r as createCrossDeserializer, t as deserialize } from "./read-
|
|
2
|
+
import { i as fromCrossJSON, n as fromJSON, r as createCrossDeserializer, t as deserialize } from "./read--2lC-cNb.js";
|
|
3
3
|
import { a as toJSONAsync, c as crossSerializeAsync, d as toCrossJSONAsync, f as toCrossJSONStream, i as toJSON, l as crossSerializeStream, n as serialize, o as Serializer, r as serializeAsync, s as crossSerialize, t as compileJSON, u as toCrossJSON } from "./write-BKJsV31u.js";
|
|
4
4
|
export { Feature, LiveStream, OpaqueReference, Sequence, Serializer, SerovalAbortedError, SerovalConflictedNodeIdError, SerovalDepthLimitError, SerovalDeserializationError, SerovalError, SerovalLiveStreamError, SerovalMalformedNodeError, SerovalMissingInstanceError, SerovalMissingPluginError, SerovalMissingReferenceError, SerovalMissingReferenceForIdError, SerovalMode, SerovalParserError, SerovalPluginValidationError, SerovalSerializationError, SerovalUnknownTypedArrayError, SerovalUnsupportedNodeError, SerovalUnsupportedTypeError, Stream, compileJSON, createCrossDeserializer, createLiveStream, createPlugin, createReference, createStream, crossSerialize, crossSerializeAsync, crossSerializeStream, deserialize, fromCrossJSON, fromJSON, getCrossReferenceHeader, getPlainObjectPlugins, isLiveStream, isStream, resolvePlugins, serialize, serializeAsync, toCrossJSON, toCrossJSONAsync, toCrossJSONStream, toJSON, toJSONAsync, v };
|
|
@@ -206,12 +206,24 @@ function deserializeDictionary(ctx, depth, node, result) {
|
|
|
206
206
|
}
|
|
207
207
|
return result;
|
|
208
208
|
}
|
|
209
|
+
function constructError(create) {
|
|
210
|
+
const limit = Error.stackTraceLimit;
|
|
211
|
+
if (typeof limit !== "number") return create();
|
|
212
|
+
Reflect.set(Error, "stackTraceLimit", 0);
|
|
213
|
+
try {
|
|
214
|
+
return create();
|
|
215
|
+
} finally {
|
|
216
|
+
Reflect.set(Error, "stackTraceLimit", limit);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
209
219
|
function deserializeAggregateError(ctx, depth, node) {
|
|
210
|
-
|
|
220
|
+
const message = deserializeString(node.m);
|
|
221
|
+
return deserializeDictionary(ctx, depth, node, assignIndexedValue(ctx, node.i, constructError(() => new AggregateError([], message))));
|
|
211
222
|
}
|
|
212
223
|
function deserializeError(ctx, depth, node) {
|
|
213
224
|
const construct = deserializeKnownValue(node, ERROR_CONSTRUCTOR, node.s);
|
|
214
|
-
|
|
225
|
+
const message = deserializeString(node.m);
|
|
226
|
+
return deserializeDictionary(ctx, depth, node, assignIndexedValue(ctx, node.i, constructError(() => new construct(message))));
|
|
215
227
|
}
|
|
216
228
|
function deserializePromise(ctx, depth, node) {
|
|
217
229
|
const deferred = PROMISE_CONSTRUCTOR();
|
|
@@ -354,7 +366,7 @@ function deserialize$1(ctx, depth, node) {
|
|
|
354
366
|
case 14: return deserializeAggregateError(ctx, depth, node);
|
|
355
367
|
case 13: return deserializeError(ctx, depth, node);
|
|
356
368
|
case 12: return deserializePromise(ctx, depth, node);
|
|
357
|
-
case 17: return deserializeKnownValue(node, SYMBOL_REF, node.s);
|
|
369
|
+
case 17: return assignIndexedValue(ctx, node.i, deserializeKnownValue(node, SYMBOL_REF, node.s));
|
|
358
370
|
case 21: return deserializeBoxed(ctx, depth, node);
|
|
359
371
|
case 25: return deserializePlugin(ctx, depth, node);
|
|
360
372
|
case 22: return deserializePromiseConstructor(ctx, node);
|
|
@@ -206,12 +206,24 @@ function deserializeDictionary(ctx, depth, node, result) {
|
|
|
206
206
|
}
|
|
207
207
|
return result;
|
|
208
208
|
}
|
|
209
|
+
function constructError(create) {
|
|
210
|
+
const limit = Error.stackTraceLimit;
|
|
211
|
+
if (typeof limit !== "number") return create();
|
|
212
|
+
Reflect.set(Error, "stackTraceLimit", 0);
|
|
213
|
+
try {
|
|
214
|
+
return create();
|
|
215
|
+
} finally {
|
|
216
|
+
Reflect.set(Error, "stackTraceLimit", limit);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
209
219
|
function deserializeAggregateError(ctx, depth, node) {
|
|
210
|
-
|
|
220
|
+
const message = require_shared.deserializeString(node.m);
|
|
221
|
+
return deserializeDictionary(ctx, depth, node, assignIndexedValue(ctx, node.i, constructError(() => new AggregateError([], message))));
|
|
211
222
|
}
|
|
212
223
|
function deserializeError(ctx, depth, node) {
|
|
213
224
|
const construct = deserializeKnownValue(node, require_shared.ERROR_CONSTRUCTOR, node.s);
|
|
214
|
-
|
|
225
|
+
const message = require_shared.deserializeString(node.m);
|
|
226
|
+
return deserializeDictionary(ctx, depth, node, assignIndexedValue(ctx, node.i, constructError(() => new construct(message))));
|
|
215
227
|
}
|
|
216
228
|
function deserializePromise(ctx, depth, node) {
|
|
217
229
|
const deferred = require_shared.PROMISE_CONSTRUCTOR();
|
|
@@ -354,7 +366,7 @@ function deserialize$1(ctx, depth, node) {
|
|
|
354
366
|
case 14: return deserializeAggregateError(ctx, depth, node);
|
|
355
367
|
case 13: return deserializeError(ctx, depth, node);
|
|
356
368
|
case 12: return deserializePromise(ctx, depth, node);
|
|
357
|
-
case 17: return deserializeKnownValue(node, require_shared.SYMBOL_REF, node.s);
|
|
369
|
+
case 17: return assignIndexedValue(ctx, node.i, deserializeKnownValue(node, require_shared.SYMBOL_REF, node.s));
|
|
358
370
|
case 21: return deserializeBoxed(ctx, depth, node);
|
|
359
371
|
case 25: return deserializePlugin(ctx, depth, node);
|
|
360
372
|
case 22: return deserializePromiseConstructor(ctx, node);
|
package/dist/dev/read.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_shared = require("./shared-DWx3Bwb6.cjs");
|
|
3
|
-
const require_read = require("./read-
|
|
3
|
+
const require_read = require("./read-BOG4auze.cjs");
|
|
4
4
|
let src_core_validator = require("./validator.cjs");
|
|
5
5
|
exports.Feature = require_shared.Feature;
|
|
6
6
|
exports.LiveStream = require_shared.LiveStream;
|
package/dist/dev/read.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { A as SerovalMalformedNodeError, B as SerovalUnsupportedTypeError, D as SerovalDeserializationError, E as SerovalDepthLimitError, F as SerovalParserError, I as SerovalPluginValidationError, L as SerovalSerializationError, M as SerovalMissingPluginError, N as SerovalMissingReferenceError, O as SerovalError, P as SerovalMissingReferenceForIdError, R as SerovalUnknownTypedArrayError, T as SerovalConflictedNodeIdError, a as getPlainObjectPlugins, c as createStream, d as LiveStream, f as createLiveStream, i as createPlugin, j as SerovalMissingInstanceError, k as SerovalLiveStreamError, l as isStream, m as Sequence, n as OpaqueReference, o as resolvePlugins, p as isLiveStream, r as SerovalMode, s as Stream, t as v, tt as Feature, w as SerovalAbortedError, y as createReference, z as SerovalUnsupportedNodeError } from "./shared-Cf-Bmoy-.js";
|
|
2
|
-
import { i as fromCrossJSON, n as fromJSON, r as createCrossDeserializer, t as deserialize } from "./read-
|
|
2
|
+
import { i as fromCrossJSON, n as fromJSON, r as createCrossDeserializer, t as deserialize } from "./read--2lC-cNb.js";
|
|
3
3
|
export { Feature, LiveStream, OpaqueReference, Sequence, SerovalAbortedError, SerovalConflictedNodeIdError, SerovalDepthLimitError, SerovalDeserializationError, SerovalError, SerovalLiveStreamError, SerovalMalformedNodeError, SerovalMissingInstanceError, SerovalMissingPluginError, SerovalMissingReferenceError, SerovalMissingReferenceForIdError, SerovalMode, SerovalParserError, SerovalPluginValidationError, SerovalSerializationError, SerovalUnknownTypedArrayError, SerovalUnsupportedNodeError, SerovalUnsupportedTypeError, Stream, createCrossDeserializer, createLiveStream, createPlugin, createReference, createStream, deserialize, fromCrossJSON, fromJSON, getPlainObjectPlugins, isLiveStream, isStream, resolvePlugins, v };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_shared = require("./shared-u-KYXAax.cjs");
|
|
3
|
-
const require_read = require("./read-
|
|
3
|
+
const require_read = require("./read-B5Kcd8i1.cjs");
|
|
4
4
|
const require_write = require("./write-CMi0CxOu.cjs");
|
|
5
5
|
let src_core_validator = require("./validator.cjs");
|
|
6
6
|
exports.Feature = require_shared.Feature;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { A as SerovalMalformedNodeError, B as SerovalUnsupportedTypeError, C as getCrossReferenceHeader, D as SerovalDeserializationError, E as SerovalDepthLimitError, F as SerovalParserError, I as SerovalPluginValidationError, L as SerovalSerializationError, M as SerovalMissingPluginError, N as SerovalMissingReferenceError, O as SerovalError, P as SerovalMissingReferenceForIdError, R as SerovalUnknownTypedArrayError, T as SerovalConflictedNodeIdError, a as getPlainObjectPlugins, c as createStream, d as LiveStream, f as createLiveStream, i as createPlugin, j as SerovalMissingInstanceError, k as SerovalLiveStreamError, l as isStream, m as Sequence, n as OpaqueReference, o as resolvePlugins, p as isLiveStream, r as SerovalMode, s as Stream, t as v, tt as Feature, w as SerovalAbortedError, y as createReference, z as SerovalUnsupportedNodeError } from "./shared-DJIVyqa9.js";
|
|
2
|
-
import { i as fromCrossJSON, n as fromJSON, r as createCrossDeserializer, t as deserialize } from "./read-
|
|
2
|
+
import { i as fromCrossJSON, n as fromJSON, r as createCrossDeserializer, t as deserialize } from "./read-B3lBprVF.js";
|
|
3
3
|
import { a as toJSONAsync, c as crossSerializeAsync, d as toCrossJSONAsync, f as toCrossJSONStream, i as toJSON, l as crossSerializeStream, n as serialize, o as Serializer, r as serializeAsync, s as crossSerialize, t as compileJSON, u as toCrossJSON } from "./write-B_hZaAwC.js";
|
|
4
4
|
export { Feature, LiveStream, OpaqueReference, Sequence, Serializer, SerovalAbortedError, SerovalConflictedNodeIdError, SerovalDepthLimitError, SerovalDeserializationError, SerovalError, SerovalLiveStreamError, SerovalMalformedNodeError, SerovalMissingInstanceError, SerovalMissingPluginError, SerovalMissingReferenceError, SerovalMissingReferenceForIdError, SerovalMode, SerovalParserError, SerovalPluginValidationError, SerovalSerializationError, SerovalUnknownTypedArrayError, SerovalUnsupportedNodeError, SerovalUnsupportedTypeError, Stream, compileJSON, createCrossDeserializer, createLiveStream, createPlugin, createReference, createStream, crossSerialize, crossSerializeAsync, crossSerializeStream, deserialize, fromCrossJSON, fromJSON, getCrossReferenceHeader, getPlainObjectPlugins, isLiveStream, isStream, resolvePlugins, serialize, serializeAsync, toCrossJSON, toCrossJSONAsync, toCrossJSONStream, toJSON, toJSONAsync, v };
|
|
@@ -206,12 +206,24 @@ function deserializeDictionary(ctx, depth, node, result) {
|
|
|
206
206
|
}
|
|
207
207
|
return result;
|
|
208
208
|
}
|
|
209
|
+
function constructError(create) {
|
|
210
|
+
const limit = Error.stackTraceLimit;
|
|
211
|
+
if (typeof limit !== "number") return create();
|
|
212
|
+
Reflect.set(Error, "stackTraceLimit", 0);
|
|
213
|
+
try {
|
|
214
|
+
return create();
|
|
215
|
+
} finally {
|
|
216
|
+
Reflect.set(Error, "stackTraceLimit", limit);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
209
219
|
function deserializeAggregateError(ctx, depth, node) {
|
|
210
|
-
|
|
220
|
+
const message = deserializeString(node.m);
|
|
221
|
+
return deserializeDictionary(ctx, depth, node, assignIndexedValue(ctx, node.i, constructError(() => new AggregateError([], message))));
|
|
211
222
|
}
|
|
212
223
|
function deserializeError(ctx, depth, node) {
|
|
213
224
|
const construct = deserializeKnownValue(node, ERROR_CONSTRUCTOR, node.s);
|
|
214
|
-
|
|
225
|
+
const message = deserializeString(node.m);
|
|
226
|
+
return deserializeDictionary(ctx, depth, node, assignIndexedValue(ctx, node.i, constructError(() => new construct(message))));
|
|
215
227
|
}
|
|
216
228
|
function deserializePromise(ctx, depth, node) {
|
|
217
229
|
const deferred = PROMISE_CONSTRUCTOR();
|
|
@@ -354,7 +366,7 @@ function deserialize$1(ctx, depth, node) {
|
|
|
354
366
|
case 14: return deserializeAggregateError(ctx, depth, node);
|
|
355
367
|
case 13: return deserializeError(ctx, depth, node);
|
|
356
368
|
case 12: return deserializePromise(ctx, depth, node);
|
|
357
|
-
case 17: return deserializeKnownValue(node, SYMBOL_REF, node.s);
|
|
369
|
+
case 17: return assignIndexedValue(ctx, node.i, deserializeKnownValue(node, SYMBOL_REF, node.s));
|
|
358
370
|
case 21: return deserializeBoxed(ctx, depth, node);
|
|
359
371
|
case 25: return deserializePlugin(ctx, depth, node);
|
|
360
372
|
case 22: return deserializePromiseConstructor(ctx, node);
|
|
@@ -206,12 +206,24 @@ function deserializeDictionary(ctx, depth, node, result) {
|
|
|
206
206
|
}
|
|
207
207
|
return result;
|
|
208
208
|
}
|
|
209
|
+
function constructError(create) {
|
|
210
|
+
const limit = Error.stackTraceLimit;
|
|
211
|
+
if (typeof limit !== "number") return create();
|
|
212
|
+
Reflect.set(Error, "stackTraceLimit", 0);
|
|
213
|
+
try {
|
|
214
|
+
return create();
|
|
215
|
+
} finally {
|
|
216
|
+
Reflect.set(Error, "stackTraceLimit", limit);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
209
219
|
function deserializeAggregateError(ctx, depth, node) {
|
|
210
|
-
|
|
220
|
+
const message = require_shared.deserializeString(node.m);
|
|
221
|
+
return deserializeDictionary(ctx, depth, node, assignIndexedValue(ctx, node.i, constructError(() => new AggregateError([], message))));
|
|
211
222
|
}
|
|
212
223
|
function deserializeError(ctx, depth, node) {
|
|
213
224
|
const construct = deserializeKnownValue(node, require_shared.ERROR_CONSTRUCTOR, node.s);
|
|
214
|
-
|
|
225
|
+
const message = require_shared.deserializeString(node.m);
|
|
226
|
+
return deserializeDictionary(ctx, depth, node, assignIndexedValue(ctx, node.i, constructError(() => new construct(message))));
|
|
215
227
|
}
|
|
216
228
|
function deserializePromise(ctx, depth, node) {
|
|
217
229
|
const deferred = require_shared.PROMISE_CONSTRUCTOR();
|
|
@@ -354,7 +366,7 @@ function deserialize$1(ctx, depth, node) {
|
|
|
354
366
|
case 14: return deserializeAggregateError(ctx, depth, node);
|
|
355
367
|
case 13: return deserializeError(ctx, depth, node);
|
|
356
368
|
case 12: return deserializePromise(ctx, depth, node);
|
|
357
|
-
case 17: return deserializeKnownValue(node, require_shared.SYMBOL_REF, node.s);
|
|
369
|
+
case 17: return assignIndexedValue(ctx, node.i, deserializeKnownValue(node, require_shared.SYMBOL_REF, node.s));
|
|
358
370
|
case 21: return deserializeBoxed(ctx, depth, node);
|
|
359
371
|
case 25: return deserializePlugin(ctx, depth, node);
|
|
360
372
|
case 22: return deserializePromiseConstructor(ctx, node);
|
package/dist/read.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_shared = require("./shared-u-KYXAax.cjs");
|
|
3
|
-
const require_read = require("./read-
|
|
3
|
+
const require_read = require("./read-B5Kcd8i1.cjs");
|
|
4
4
|
let src_core_validator = require("./validator.cjs");
|
|
5
5
|
exports.Feature = require_shared.Feature;
|
|
6
6
|
exports.LiveStream = require_shared.LiveStream;
|
package/dist/read.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { A as SerovalMalformedNodeError, B as SerovalUnsupportedTypeError, D as SerovalDeserializationError, E as SerovalDepthLimitError, F as SerovalParserError, I as SerovalPluginValidationError, L as SerovalSerializationError, M as SerovalMissingPluginError, N as SerovalMissingReferenceError, O as SerovalError, P as SerovalMissingReferenceForIdError, R as SerovalUnknownTypedArrayError, T as SerovalConflictedNodeIdError, a as getPlainObjectPlugins, c as createStream, d as LiveStream, f as createLiveStream, i as createPlugin, j as SerovalMissingInstanceError, k as SerovalLiveStreamError, l as isStream, m as Sequence, n as OpaqueReference, o as resolvePlugins, p as isLiveStream, r as SerovalMode, s as Stream, t as v, tt as Feature, w as SerovalAbortedError, y as createReference, z as SerovalUnsupportedNodeError } from "./shared-DJIVyqa9.js";
|
|
2
|
-
import { i as fromCrossJSON, n as fromJSON, r as createCrossDeserializer, t as deserialize } from "./read-
|
|
2
|
+
import { i as fromCrossJSON, n as fromJSON, r as createCrossDeserializer, t as deserialize } from "./read-B3lBprVF.js";
|
|
3
3
|
export { Feature, LiveStream, OpaqueReference, Sequence, SerovalAbortedError, SerovalConflictedNodeIdError, SerovalDepthLimitError, SerovalDeserializationError, SerovalError, SerovalLiveStreamError, SerovalMalformedNodeError, SerovalMissingInstanceError, SerovalMissingPluginError, SerovalMissingReferenceError, SerovalMissingReferenceForIdError, SerovalMode, SerovalParserError, SerovalPluginValidationError, SerovalSerializationError, SerovalUnknownTypedArrayError, SerovalUnsupportedNodeError, SerovalUnsupportedTypeError, Stream, createCrossDeserializer, createLiveStream, createPlugin, createReference, createStream, deserialize, fromCrossJSON, fromJSON, getPlainObjectPlugins, isLiveStream, isStream, resolvePlugins, v };
|