trpc-browser
Advanced tools
Comparing version
@@ -52,3 +52,3 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
error: (0, shared_1.getErrorShape)({ | ||
error: transformer.output.serialize((0, shared_1.getErrorShape)({ | ||
config: router._def._config, | ||
@@ -60,3 +60,3 @@ error, | ||
ctx, | ||
}), | ||
})), | ||
}); | ||
@@ -87,3 +87,6 @@ }; | ||
const subscription = result.subscribe({ | ||
next: (data) => sendResponse({ result: { type: 'data', data } }), | ||
next: (data) => { | ||
const serializedData = transformer.output.serialize(data); | ||
sendResponse({ result: { type: 'data', data: serializedData } }); | ||
}, | ||
error: handleError, | ||
@@ -90,0 +93,0 @@ complete: () => sendResponse({ result: { type: 'stopped' } }), |
@@ -57,3 +57,3 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
error: (0, shared_1.getErrorShape)({ | ||
error: transformer.output.serialize((0, shared_1.getErrorShape)({ | ||
config: router._def._config, | ||
@@ -65,3 +65,3 @@ error, | ||
ctx, | ||
}), | ||
})), | ||
}); | ||
@@ -92,3 +92,6 @@ }; | ||
const subscription = result.subscribe({ | ||
next: (data) => sendResponse({ result: { type: 'data', data } }), | ||
next: (data) => { | ||
const serializedData = transformer.output.serialize(data); | ||
sendResponse({ result: { type: 'data', data: serializedData } }); | ||
}, | ||
error: handleError, | ||
@@ -95,0 +98,0 @@ complete: () => sendResponse({ result: { type: 'stopped' } }), |
{ | ||
"name": "trpc-browser", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "tRPC adapters and links for everywhere in the browser", | ||
@@ -5,0 +5,0 @@ "author": "Janek Rahrt <janek.rahrt@me.com>, James Berry <jb@jamesbe.com>", |
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
74646
0.81%780
0.78%