@matrixai/rpc
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -196,5 +196,6 @@ "use strict"; | ||
// stream. | ||
const replacer = this.replacer; | ||
const headerStream = new web_1.TransformStream({ | ||
start(controller) { | ||
controller.enqueue(Buffer.from(JSON.stringify(header))); | ||
controller.enqueue(Buffer.from(JSON.stringify(header, replacer))); | ||
}, | ||
@@ -454,3 +455,3 @@ transform(chunk, controller) { | ||
}; | ||
await headerWriter.write(Buffer.from(JSON.stringify(rpcErrorMessage))); | ||
await headerWriter.write(Buffer.from(JSON.stringify(rpcErrorMessage, this.replacer))); | ||
await headerWriter.close(); | ||
@@ -477,3 +478,3 @@ } | ||
}; | ||
await headerWriter.write(Buffer.from(JSON.stringify(leadingMessage))); | ||
await headerWriter.write(Buffer.from(JSON.stringify(leadingMessage, this.replacer))); | ||
} | ||
@@ -480,0 +481,0 @@ headerWriter.releaseLock(); |
{ | ||
"name": "@matrixai/rpc", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"author": "Matrix AI", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
348565
3058