@peasant-labs/schema 0.27.0 → 0.27.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.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -98,7 +98,7 @@ function normalizeEmptyOptionalPublicRefs(value) {
|
|
|
98
98
|
visitTurns(section.turns);
|
|
99
99
|
}
|
|
100
100
|
export function parseSessionDetailPayloadText(text) {
|
|
101
|
-
scanRawJsonText(text, { maxDocumentBytes:
|
|
101
|
+
scanRawJsonText(text, { maxDocumentBytes: 128 << 20, maxDocumentDepth: 64, opaqueMetadataPointers: ["/nativeMetadata/*/data"] });
|
|
102
102
|
return parseSessionDetailPayloadValue(JSON.parse(text));
|
|
103
103
|
}
|
|
104
104
|
export function parseSchemaVersionAdvertisement(text) {
|
|
@@ -115,7 +115,7 @@ export function parseSchemaVersionAdvertisement(text) {
|
|
|
115
115
|
return [...value.contentCapabilities];
|
|
116
116
|
}
|
|
117
117
|
export function parseTranscriptContentText(text) {
|
|
118
|
-
scanRawJsonText(text, { maxDocumentBytes:
|
|
118
|
+
scanRawJsonText(text, { maxDocumentBytes: 128 << 20, maxDocumentDepth: 64, opaqueMetadataPointers: ["/sessionDetail/nativeMetadata/*/data"] });
|
|
119
119
|
const raw = JSON.parse(text);
|
|
120
120
|
if (!isRecord(raw))
|
|
121
121
|
return zTranscriptContent.parse(raw);
|