Comparing version 0.15.0 to 0.15.1
@@ -7,2 +7,3 @@ import { serialize } from './core/tree'; | ||
export * from './core/cross'; | ||
export { getCrossReferenceHeader } from './core/keys'; | ||
export { default as Serializer } from './core/Serializer'; | ||
@@ -9,0 +10,0 @@ export * from './core/plugin'; |
{ | ||
"name": "seroval", | ||
"type": "module", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"files": [ | ||
@@ -69,3 +69,3 @@ "dist", | ||
}, | ||
"gitHead": "0f5b9e1e9fef04bf9a9e6f142950f1167e17a424" | ||
"gitHead": "4c597a39c75fc9918508dc7ceeaeaad51f84ac21" | ||
} |
@@ -1,2 +0,1 @@ | ||
import { getCrossReferenceHeader } from '../keys'; | ||
import type { SerovalNode } from '../types'; | ||
@@ -14,6 +13,2 @@ import type { CrossAsyncParserContextOptions } from './async'; | ||
function insertCrossReferenceHeader(scopeId: string | undefined, value: string): string { | ||
return '(' + getCrossReferenceHeader(scopeId) + ',' + value + ')'; | ||
} | ||
export interface CrossSerializeOptions | ||
@@ -39,3 +34,3 @@ extends CrossSyncParserContextOptions, CrossContextOptions { | ||
}); | ||
return insertCrossReferenceHeader(options.scopeId, serial.serializeTop(tree)); | ||
return serial.serializeTop(tree); | ||
} | ||
@@ -63,3 +58,3 @@ | ||
}); | ||
return insertCrossReferenceHeader(options.scopeId, serial.serializeTop(tree)); | ||
return serial.serializeTop(tree); | ||
} | ||
@@ -127,6 +122,2 @@ | ||
if (initial) { | ||
serialized = insertCrossReferenceHeader(options.scopeId, serialized); | ||
} | ||
options.onSerialize( | ||
@@ -133,0 +124,0 @@ serialized, |
@@ -17,2 +17,4 @@ import { serialize } from './core/tree'; | ||
export { getCrossReferenceHeader } from './core/keys'; | ||
export { default as Serializer } from './core/Serializer'; | ||
@@ -19,0 +21,0 @@ export * from './core/plugin'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1222171
16682