New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@trpc/client

Package Overview
Dependencies
Maintainers
3
Versions
1108
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-01-21-trpc-monorepo-prebuilt.739 to 11.0.0-alpha-tmp-01-22-fix.719

28

dist/bundle-analysis.json
{
"bundleSize": 66027,
"bundleOrigSize": 83146,
"bundleReduction": 20.59,
"bundleOrigSize": 83110,
"bundleReduction": 20.55,
"modules": [

@@ -184,3 +184,3 @@ {

"size": 1185,
"origSize": 4701,
"origSize": 4665,
"renderedExports": [

@@ -197,3 +197,3 @@ "clientCallTypeToProcedureType",

"percent": 1.79,
"reduction": 74.79
"reduction": 74.6
},

@@ -315,12 +315,2 @@ {

{
"id": "/src/index.ts",
"size": 0,
"origSize": 588,
"renderedExports": [],
"removedExports": [],
"dependents": [],
"percent": 0,
"reduction": 100
},
{
"id": "/src/unstable-internals.ts",

@@ -338,2 +328,12 @@ "size": 0,

"reduction": 100
},
{
"id": "/src/index.ts",
"size": 0,
"origSize": 588,
"renderedExports": [],
"removedExports": [],
"dependents": [],
"percent": 0,
"reduction": 100
}

@@ -340,0 +340,0 @@ ],

import type { Unsubscribable } from '@trpc/server/observable';
import type { AnyProcedure, AnyRouter, coerceToRouterRecord, inferClientTypes, inferProcedureInput, inferTransformedProcedureOutput, IntersectionError, ProcedureOptions, ProcedureType, RouterRecord } from '@trpc/server/unstable-core-do-not-import';
import type { AnyProcedure, AnyRouter, inferClientTypes, inferProcedureInput, inferTransformedProcedureOutput, IntersectionError, ProcedureOptions, ProcedureType, RouterRecord } from '@trpc/server/unstable-core-do-not-import';
import type { CreateTRPCClientOptions } from './createTRPCUntypedClient';

@@ -32,3 +32,3 @@ import type { TRPCSubscriptionObserver, UntypedClientProperties } from './internals/TRPCUntypedClient';

type DecoratedProcedureRecord<TRouter extends AnyRouter, TRecord extends RouterRecord> = {
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends AnyProcedure ? DecorateProcedure<$Value['_def']['type'], {
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends RouterRecord ? DecoratedProcedureRecord<TRouter, $Value> : $Value extends AnyProcedure ? DecorateProcedure<$Value['_def']['type'], {
input: inferProcedureInput<$Value>;

@@ -38,3 +38,3 @@ output: inferTransformedProcedureOutput<inferClientTypes<TRouter>, $Value>;

transformer: inferClientTypes<TRouter>['transformer'];
}> : $Value extends RouterRecord | AnyRouter ? DecoratedProcedureRecord<TRouter, coerceToRouterRecord<$Value>> : never : never;
}> : never : never;
};

@@ -41,0 +41,0 @@ /** @internal */

{
"name": "@trpc/client",
"version": "11.0.0-alpha-tmp-01-21-trpc-monorepo-prebuilt.739+b648648f8",
"version": "11.0.0-alpha-tmp-01-22-fix.719+3aba9dfa0",
"description": "The tRPC client library",

@@ -80,7 +80,7 @@ "author": "KATT",

"peerDependencies": {
"@trpc/server": "11.0.0-alpha-tmp-01-21-trpc-monorepo-prebuilt.739+b648648f8",
"@trpc/server": "11.0.0-alpha-tmp-01-22-fix.719+3aba9dfa0",
"typescript": ">=5.7.2"
},
"devDependencies": {
"@trpc/server": "11.0.0-alpha-tmp-01-21-trpc-monorepo-prebuilt.739+b648648f8",
"@trpc/server": "11.0.0-alpha-tmp-01-22-fix.719+3aba9dfa0",
"@types/isomorphic-fetch": "^0.0.39",

@@ -103,3 +103,3 @@ "@types/node": "^22.9.0",

],
"gitHead": "b648648f888f5f458d32402ef006787616c1b080"
"gitHead": "3aba9dfa047316926e28ad9b8bca5c95bb939812"
}

@@ -6,3 +6,2 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */

AnyRouter,
coerceToRouterRecord,
inferClientTypes,

@@ -85,17 +84,17 @@ inferProcedureInput,

[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value
? $Value extends AnyProcedure
? DecorateProcedure<
$Value['_def']['type'],
{
input: inferProcedureInput<$Value>;
output: inferTransformedProcedureOutput<
inferClientTypes<TRouter>,
$Value
>;
errorShape: inferClientTypes<TRouter>['errorShape'];
transformer: inferClientTypes<TRouter>['transformer'];
}
>
: $Value extends RouterRecord | AnyRouter
? DecoratedProcedureRecord<TRouter, coerceToRouterRecord<$Value>>
? $Value extends RouterRecord
? DecoratedProcedureRecord<TRouter, $Value>
: $Value extends AnyProcedure
? DecorateProcedure<
$Value['_def']['type'],
{
input: inferProcedureInput<$Value>;
output: inferTransformedProcedureOutput<
inferClientTypes<TRouter>,
$Value
>;
errorShape: inferClientTypes<TRouter>['errorShape'];
transformer: inferClientTypes<TRouter>['transformer'];
}
>
: never

@@ -102,0 +101,0 @@ : never;

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