@trpc/client
Advanced tools
Comparing version 11.0.0-rc.475 to 11.0.0-rc.477
{ | ||
"bundleSize": 52463, | ||
"bundleOrigSize": 69768, | ||
"bundleReduction": 24.8, | ||
"bundleSize": 52634, | ||
"bundleOrigSize": 69964, | ||
"bundleReduction": 24.77, | ||
"modules": [ | ||
@@ -16,3 +16,3 @@ { | ||
"dependents": [], | ||
"percent": 26.08, | ||
"percent": 26, | ||
"reduction": 9.58 | ||
@@ -29,3 +29,3 @@ }, | ||
"dependents": [], | ||
"percent": 11.17, | ||
"percent": 11.14, | ||
"reduction": 3.51 | ||
@@ -42,3 +42,3 @@ }, | ||
"dependents": [], | ||
"percent": 10.4, | ||
"percent": 10.37, | ||
"reduction": 18.48 | ||
@@ -67,3 +67,3 @@ }, | ||
], | ||
"percent": 8.51, | ||
"percent": 8.48, | ||
"reduction": 32.82 | ||
@@ -83,3 +83,3 @@ }, | ||
], | ||
"percent": 7.78, | ||
"percent": 7.76, | ||
"reduction": 5.64 | ||
@@ -96,3 +96,3 @@ }, | ||
"dependents": [], | ||
"percent": 7.48, | ||
"percent": 7.46, | ||
"reduction": 4.69 | ||
@@ -102,4 +102,4 @@ }, | ||
"id": "/src/links/httpSubscriptionLink.ts", | ||
"size": 3634, | ||
"origSize": 4025, | ||
"size": 3805, | ||
"origSize": 4221, | ||
"renderedExports": [ | ||
@@ -110,4 +110,4 @@ "unstable_httpSubscriptionLink" | ||
"dependents": [], | ||
"percent": 6.93, | ||
"reduction": 9.71 | ||
"percent": 7.23, | ||
"reduction": 9.86 | ||
}, | ||
@@ -123,3 +123,3 @@ { | ||
"dependents": [], | ||
"percent": 6.07, | ||
"percent": 6.05, | ||
"reduction": 14.15 | ||
@@ -139,3 +139,3 @@ }, | ||
], | ||
"percent": 4.12, | ||
"percent": 4.11, | ||
"reduction": 47.6 | ||
@@ -160,3 +160,3 @@ }, | ||
], | ||
"percent": 3.7, | ||
"percent": 3.69, | ||
"reduction": 45.43 | ||
@@ -193,3 +193,3 @@ }, | ||
], | ||
"percent": 1.32, | ||
"percent": 1.31, | ||
"reduction": 32.75 | ||
@@ -220,3 +220,3 @@ }, | ||
], | ||
"percent": 1.08, | ||
"percent": 1.07, | ||
"reduction": 66.75 | ||
@@ -236,3 +236,3 @@ }, | ||
], | ||
"percent": 0.82, | ||
"percent": 0.81, | ||
"reduction": 33.54 | ||
@@ -239,0 +239,0 @@ }, |
@@ -66,4 +66,8 @@ 'use strict'; | ||
for await (const chunk of iterable){ | ||
if (!chunk.ok) { | ||
continue; | ||
} | ||
const chunkData = chunk.data; | ||
// if the `tracked()`-helper is used, we always have an `id` field | ||
const data = 'id' in chunk ? chunk : chunk.data; | ||
const data = 'id' in chunkData ? chunkData : chunkData.data; | ||
observer.next({ | ||
@@ -70,0 +74,0 @@ result: { |
{ | ||
"name": "@trpc/client", | ||
"version": "11.0.0-rc.475+10b4bde0c", | ||
"version": "11.0.0-rc.477+a467f8314", | ||
"description": "The tRPC client library", | ||
@@ -79,6 +79,6 @@ "author": "KATT", | ||
"peerDependencies": { | ||
"@trpc/server": "11.0.0-rc.475+10b4bde0c" | ||
"@trpc/server": "11.0.0-rc.477+a467f8314" | ||
}, | ||
"devDependencies": { | ||
"@trpc/server": "11.0.0-rc.475+10b4bde0c", | ||
"@trpc/server": "11.0.0-rc.477+a467f8314", | ||
"@types/isomorphic-fetch": "^0.0.39", | ||
@@ -100,3 +100,3 @@ "@types/node": "^20.10.0", | ||
], | ||
"gitHead": "10b4bde0cb497c29d00f3c78c09fe8b64391f93c" | ||
"gitHead": "a467f831416d19c0bf96139fd4ca576fcf80de2a" | ||
} |
@@ -109,4 +109,10 @@ import { observable } from '@trpc/server/observable'; | ||
for await (const chunk of iterable) { | ||
if (!chunk.ok) { | ||
// TODO: handle in https://github.com/trpc/trpc/issues/5871 | ||
continue; | ||
} | ||
const chunkData = chunk.data; | ||
// if the `tracked()`-helper is used, we always have an `id` field | ||
const data = 'id' in chunk ? chunk : chunk.data; | ||
const data = 'id' in chunkData ? chunkData : chunkData.data; | ||
observer.next({ | ||
@@ -113,0 +119,0 @@ result: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
257536
6730