Comparing version 0.12.2 to 0.12.3
{ | ||
"name": "seroval", | ||
"type": "module", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"files": [ | ||
@@ -69,3 +69,3 @@ "dist", | ||
}, | ||
"gitHead": "41c5dc532b6c4cc1c2ced46ea31879545cc67ec6" | ||
"gitHead": "d808e3d6798faca42fde0ae4c9f0e4e067f7e945" | ||
} |
@@ -38,7 +38,9 @@ import { serializeString } from './string'; | ||
const GLOBAL_CONTEXT_R = `self.${GLOBAL_CONTEXT_REFERENCES}`; | ||
export function getCrossReferenceHeader(id?: string): string { | ||
if (id == null) { | ||
return `self.${GLOBAL_CONTEXT_REFERENCES}=self.${GLOBAL_CONTEXT_REFERENCES}||[];`; | ||
return `${GLOBAL_CONTEXT_R}=${GLOBAL_CONTEXT_R}||[];`; | ||
} | ||
return `(${GLOBAL_CONTEXT_API_REF}=${GLOBAL_CONTEXT_API_REF}||{})["${serializeString(id)}"]=[];`; | ||
return `(${GLOBAL_CONTEXT_R}=${GLOBAL_CONTEXT_R}||{})["${serializeString(id)}"]=[];`; | ||
} |
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
1121308
16029