seroval 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,7 @@ __export(src_exports, {
32
32
  deserialize: () => deserialize,
33
33
  fromCrossJSON: () => fromCrossJSON,
34
34
  fromJSON: () => fromJSON,
35
+ getCrossReferenceHeader: () => getCrossReferenceHeader,
35
36
  serialize: () => serialize,
36
37
  serializeAsync: () => serializeAsync,
37
38
  toCrossJSON: () => toCrossJSON,
@@ -4159,9 +4160,6 @@ var CrossSyncParserContext = class extends BaseSyncParserContext {
4159
4160
  };
4160
4161
 
4161
4162
  // src/core/cross/index.ts
4162
- function insertCrossReferenceHeader(scopeId, value) {
4163
- return "(" + getCrossReferenceHeader(scopeId) + "," + value + ")";
4164
- }
4165
4163
  function crossSerialize(source, options = {}) {
4166
4164
  const ctx = new CrossSyncParserContext({
4167
4165
  plugins: options.plugins,
@@ -4175,7 +4173,7 @@ function crossSerialize(source, options = {}) {
4175
4173
  scopeId: options.scopeId,
4176
4174
  markedRefs: ctx.marked
4177
4175
  });
4178
- return insertCrossReferenceHeader(options.scopeId, serial.serializeTop(tree));
4176
+ return serial.serializeTop(tree);
4179
4177
  }
4180
4178
  async function crossSerializeAsync(source, options = {}) {
4181
4179
  const ctx = new CrossAsyncParserContext({
@@ -4190,7 +4188,7 @@ async function crossSerializeAsync(source, options = {}) {
4190
4188
  scopeId: options.scopeId,
4191
4189
  markedRefs: ctx.marked
4192
4190
  });
4193
- return insertCrossReferenceHeader(options.scopeId, serial.serializeTop(tree));
4191
+ return serial.serializeTop(tree);
4194
4192
  }
4195
4193
  function toCrossJSON(source, options = {}) {
4196
4194
  const ctx = new CrossSyncParserContext({
@@ -4229,9 +4227,6 @@ function crossSerializeStream(source, options) {
4229
4227
  }
4230
4228
  return;
4231
4229
  }
4232
- if (initial) {
4233
- serialized = insertCrossReferenceHeader(options.scopeId, serialized);
4234
- }
4235
4230
  options.onSerialize(
4236
4231
  serialized,
4237
4232
  initial