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

@trpc/server

Package Overview
Dependencies
Maintainers
3
Versions
1104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trpc/server - npm Package Compare versions

Comparing version 11.0.0-rc.688 to 11.0.0-rc.692

4

dist/adapters/node-http/incomingMessageToRequest.d.ts

@@ -10,4 +10,6 @@ import type * as http from 'http';

* @see https://github.com/trpc/trpc/issues/6341
* The socket object provided in the request does not fully implement the expected Node.js Socket interface.
* @see https://github.com/trpc/trpc/pull/6358
*/
socket?: http.IncomingMessage['socket'];
socket?: Partial<http.IncomingMessage['socket']>;
}

@@ -14,0 +16,0 @@ export declare function createURL(req: UniversalIncomingMessage): URL;

@@ -93,3 +93,3 @@ 'use strict';

res.off('close', onAbort);
req.socket?.off('end', onAbort);
req.socket?.off?.('end', onAbort);
// abort the request

@@ -99,3 +99,3 @@ ac.abort();

res.once('close', onAbort);
req.socket?.once('end', onAbort);
req.socket?.once?.('end', onAbort);
// Get host from either regular header or HTTP/2 pseudo-header

@@ -102,0 +102,0 @@ const url = createURL(req);

{
"bundleSize": 187247,
"bundleOrigSize": 219578,
"bundleReduction": 14.72,
"bundleSize": 187251,
"bundleOrigSize": 219751,
"bundleReduction": 14.79,
"modules": [

@@ -201,4 +201,4 @@ {

"id": "/src/adapters/node-http/incomingMessageToRequest.ts",
"size": 3914,
"origSize": 4578,
"size": 3918,
"origSize": 4751,
"renderedExports": [

@@ -214,3 +214,3 @@ "createURL",

"percent": 2.09,
"reduction": 14.5
"reduction": 17.53
},

@@ -277,5 +277,5 @@ {

"/src/unstable-core-do-not-import.ts",
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
"/src/unstable-core-do-not-import/initTRPC.ts",
"/src/unstable-core-do-not-import/router.ts"
"/src/unstable-core-do-not-import/router.ts",
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
],

@@ -340,5 +340,2 @@ "percent": 1.46,

"/src/unstable-core-do-not-import.ts",
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
"/src/unstable-core-do-not-import/error/TRPCError.ts",

@@ -348,2 +345,5 @@ "/src/unstable-core-do-not-import/transformer.ts",

"/src/unstable-core-do-not-import/router.ts",
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",

@@ -371,6 +371,6 @@ "/src/unstable-core-do-not-import/http/contentType.ts",

"/src/unstable-core-do-not-import.ts",
"/src/unstable-core-do-not-import/middleware.ts",
"/src/unstable-core-do-not-import/router.ts",
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
"/src/unstable-core-do-not-import/middleware.ts",
"/src/unstable-core-do-not-import/router.ts",
"/src/unstable-core-do-not-import/http/contentType.ts",

@@ -442,4 +442,4 @@ "/src/unstable-core-do-not-import/procedureBuilder.ts",

"/src/unstable-core-do-not-import.ts",
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
"/src/unstable-core-do-not-import/error/getErrorShape.ts"
"/src/unstable-core-do-not-import/error/getErrorShape.ts",
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
],

@@ -831,10 +831,8 @@ "percent": 1.11,

{
"id": "/src/http.ts",
"id": "/src/index.ts",
"size": 0,
"origSize": 37,
"origSize": 32,
"renderedExports": [],
"removedExports": [],
"dependents": [
"/src/adapters/ws.ts"
],
"dependents": [],
"percent": 0,

@@ -844,8 +842,10 @@ "reduction": 100

{
"id": "/src/index.ts",
"id": "/src/http.ts",
"size": 0,
"origSize": 32,
"origSize": 37,
"renderedExports": [],
"removedExports": [],
"dependents": [],
"dependents": [
"/src/adapters/ws.ts"
],
"percent": 0,

@@ -925,12 +925,2 @@ "reduction": 100

{
"id": "/src/adapters/fetch/index.ts",
"size": 0,
"origSize": 64,
"renderedExports": [],
"removedExports": [],
"dependents": [],
"percent": 0,
"reduction": 100
},
{
"id": "/src/adapters/node-http/index.ts",

@@ -950,2 +940,12 @@ "size": 0,

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

@@ -952,0 +952,0 @@ ],

{
"name": "@trpc/server",
"version": "11.0.0-rc.688+87ea49ed1",
"version": "11.0.0-rc.692+fd2342add",
"description": "The tRPC server library",

@@ -155,3 +155,3 @@ "author": "KATT",

},
"gitHead": "87ea49ed1da187e72669ce6f638500369b16b749"
"gitHead": "fd2342add3de8f6956459182154d49686c523b06"
}

@@ -13,4 +13,6 @@ import type * as http from 'http';

* @see https://github.com/trpc/trpc/issues/6341
* The socket object provided in the request does not fully implement the expected Node.js Socket interface.
* @see https://github.com/trpc/trpc/pull/6358
*/
socket?: http.IncomingMessage['socket'];
socket?: Partial<http.IncomingMessage['socket']>;
}

@@ -140,3 +142,3 @@

res.off('close', onAbort);
req.socket?.off('end', onAbort);
req.socket?.off?.('end', onAbort);

@@ -148,3 +150,3 @@ // abort the request

res.once('close', onAbort);
req.socket?.once('end', onAbort);
req.socket?.once?.('end', onAbort);

@@ -151,0 +153,0 @@ // Get host from either regular header or HTTP/2 pseudo-header

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