Socket
Socket
Sign inDemoInstall

@trpc/client

Package Overview
Dependencies
Maintainers
3
Versions
1030
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trpc/client - npm Package Compare versions

Comparing version 11.0.0-alpha-tmp-app-router-example.369 to 11.0.0-alpha-tmp-app-router-example.370

48

dist/bundle-analysis.json
{
"bundleSize": 46599,
"bundleOrigSize": 63289,
"bundleReduction": 26.37,
"bundleSize": 46976,
"bundleOrigSize": 63519,
"bundleReduction": 26.04,
"modules": [

@@ -16,3 +16,3 @@ {

"dependents": [],
"percent": 25.88,
"percent": 25.67,
"reduction": 11.68

@@ -22,4 +22,4 @@ },

"id": "/src/links/httpBatchStreamLink.ts",
"size": 5776,
"origSize": 6023,
"size": 6153,
"origSize": 6253,
"renderedExports": [

@@ -30,4 +30,4 @@ "unstable_httpBatchStreamLink"

"dependents": [],
"percent": 12.4,
"reduction": 4.1
"percent": 13.1,
"reduction": 1.6
},

@@ -43,3 +43,3 @@ {

"dependents": [],
"percent": 11.71,
"percent": 11.62,
"reduction": 18.48

@@ -59,3 +59,3 @@ },

],
"percent": 9.67,
"percent": 9.59,
"reduction": 6.34

@@ -72,3 +72,3 @@ },

"dependents": [],
"percent": 8.38,
"percent": 8.31,
"reduction": 4.12

@@ -91,7 +91,7 @@ },

"dependents": [
"/src/links/httpBatchLink.ts",
"/src/links/httpLink.ts",
"/src/links/httpBatchLink.ts",
"/src/links/httpBatchStreamLink.ts"
],
"percent": 7.44,
"percent": 7.38,
"reduction": 41.47

@@ -108,3 +108,3 @@ },

"dependents": [],
"percent": 6.31,
"percent": 6.26,
"reduction": 15.03

@@ -124,3 +124,3 @@ },

],
"percent": 4.93,
"percent": 4.89,
"reduction": 45.35

@@ -138,4 +138,4 @@ },

"/src/index.ts",
"/src/links/httpBatchLink.ts",
"/src/links/httpLink.ts",
"/src/links/httpBatchLink.ts",
"/src/links/wsLink.ts",

@@ -146,3 +146,3 @@ "/src/links/httpBatchStreamLink.ts",

],
"percent": 4,
"percent": 3.97,
"reduction": 45.71

@@ -164,3 +164,3 @@ },

],
"percent": 2.59,
"percent": 2.57,
"reduction": 72.4

@@ -180,3 +180,3 @@ },

],
"percent": 1.48,
"percent": 1.47,
"reduction": 32.75

@@ -193,3 +193,3 @@ },

"dependents": [],
"percent": 1.31,
"percent": 1.3,
"reduction": 44.95

@@ -208,3 +208,3 @@ },

],
"percent": 1.21,
"percent": 1.2,
"reduction": 66.75

@@ -224,3 +224,3 @@ },

],
"percent": 0.92,
"percent": 0.91,
"reduction": 33.54

@@ -239,3 +239,3 @@ },

],
"percent": 0.85,
"percent": 0.84,
"reduction": 30.4

@@ -254,3 +254,3 @@ },

"dependents": [],
"percent": 0.71,
"percent": 0.7,
"reduction": 15.17

@@ -257,0 +257,0 @@ },

@@ -68,3 +68,10 @@ 'use strict';

from: res.body,
deserialize: resolvedOpts.transformer.output.deserialize
deserialize: resolvedOpts.transformer.output.deserialize,
// onError: console.error,
formatError (opts) {
const error = opts.error;
return TRPCClientError.TRPCClientError.from({
error
});
}
});

@@ -71,0 +78,0 @@ const promises = Object.keys(batchOps).map(async (key)=>{

{
"name": "@trpc/client",
"version": "11.0.0-alpha-tmp-app-router-example.369+840e1867d",
"version": "11.0.0-alpha-tmp-app-router-example.370+4e1730616",
"description": "The tRPC client library",

@@ -79,6 +79,6 @@ "author": "KATT",

"peerDependencies": {
"@trpc/server": "11.0.0-alpha-tmp-app-router-example.369+840e1867d"
"@trpc/server": "11.0.0-alpha-tmp-app-router-example.370+4e1730616"
},
"devDependencies": {
"@trpc/server": "11.0.0-alpha-tmp-app-router-example.369+840e1867d",
"@trpc/server": "11.0.0-alpha-tmp-app-router-example.370+4e1730616",
"@types/isomorphic-fetch": "^0.0.39",

@@ -100,3 +100,3 @@ "@types/node": "^20.10.0",

],
"gitHead": "840e1867d43beb0d68bbd9a758c14d8d0233c426"
"gitHead": "4e173061689ffbe59e6a9647092d60b21c495b61"
}
import type { AnyRouter, ProcedureType } from '@trpc/server';
import { observable } from '@trpc/server/observable';
import type { TRPCResponse } from '@trpc/server/rpc';
import type { TRPCErrorShape, TRPCResponse } from '@trpc/server/rpc';
import type { AnyRootTypes } from '@trpc/server/unstable-core-do-not-import';

@@ -107,2 +107,8 @@ import { jsonlStreamConsumer } from '@trpc/server/unstable-core-do-not-import';

// onError: console.error,
formatError(opts) {
const error = opts.error as TRPCErrorShape;
return TRPCClientError.from({
error,
});
},
});

@@ -109,0 +115,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc