Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trpc/server

Package Overview
Dependencies
Maintainers
3
Versions
1072
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.619 to 11.0.0-rc.621

8

dist/adapters/node-http/incomingMessageToRequest.js

@@ -87,5 +87,9 @@ 'use strict';

const ac = new AbortController();
req.once('aborted', ()=>{
const onAbort = ()=>{
ac.abort();
});
req.off('aborted', onAbort);
req.off('close', onAbort);
};
req.once('aborted', onAbort);
req.socket?.once('close', onAbort);
// Get host from either regular header or HTTP/2 pseudo-header

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

{
"bundleSize": 164337,
"bundleOrigSize": 214888,
"bundleReduction": 23.52,
"bundleSize": 164478,
"bundleOrigSize": 215018,
"bundleReduction": 23.51,
"modules": [

@@ -17,3 +17,3 @@ {

],
"percent": 13.17,
"percent": 13.16,
"reduction": 0

@@ -51,3 +51,3 @@ },

],
"percent": 10.22,
"percent": 10.21,
"reduction": 0

@@ -65,3 +65,3 @@ },

"dependents": [],
"percent": 7.08,
"percent": 7.07,
"reduction": 15.45

@@ -81,3 +81,3 @@ },

],
"percent": 4.68,
"percent": 4.67,
"reduction": 0

@@ -117,3 +117,3 @@ },

],
"percent": 3.91,
"percent": 3.9,
"reduction": 39.85

@@ -133,3 +133,3 @@ },

],
"percent": 3.53,
"percent": 3.52,
"reduction": 64.96

@@ -148,3 +148,3 @@ },

],
"percent": 3.3,
"percent": 3.29,
"reduction": 11.44

@@ -184,3 +184,3 @@ },

],
"percent": 2.72,
"percent": 2.71,
"reduction": 2.49

@@ -208,4 +208,4 @@ },

"id": "/src/adapters/node-http/incomingMessageToRequest.ts",
"size": 3665,
"origSize": 4172,
"size": 3806,
"origSize": 4302,
"renderedExports": [

@@ -220,4 +220,4 @@ "createURL",

],
"percent": 2.23,
"reduction": 12.15
"percent": 2.31,
"reduction": 11.53
},

@@ -542,3 +542,3 @@ {

],
"percent": 0.65,
"percent": 0.64,
"reduction": 0

@@ -821,5 +821,5 @@ },

{
"id": "/src/shared.ts",
"id": "/src/rpc.ts",
"size": 0,
"origSize": 653,
"origSize": 36,
"renderedExports": [],

@@ -832,5 +832,5 @@ "removedExports": [],

{
"id": "/src/rpc.ts",
"id": "/src/shared.ts",
"size": 0,
"origSize": 36,
"origSize": 653,
"renderedExports": [],

@@ -850,7 +850,7 @@ "removedExports": [],

"/src/adapters/express.ts",
"/src/adapters/ws.ts",
"/src/adapters/next.ts",
"/src/adapters/standalone.ts",
"/src/adapters/ws.ts",
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
"/src/adapters/node-http/nodeHTTPRequestHandler.ts",
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
],

@@ -910,5 +910,5 @@ "percent": 0,

"/src/adapters/express.ts",
"/src/adapters/ws.ts",
"/src/adapters/next.ts",
"/src/adapters/standalone.ts",
"/src/adapters/ws.ts",
"/src/adapters/fastify/fastifyRequestHandler.ts"

@@ -915,0 +915,0 @@ ],

{
"name": "@trpc/server",
"version": "11.0.0-rc.619+0f06947e0",
"version": "11.0.0-rc.621+87fde6297",
"description": "The tRPC server library",

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

],
"gitHead": "0f06947e0801db7f9cb236d4018dc4dfe34dcedd"
"gitHead": "87fde62978441b1cedd1d5cf7290f6ade9a92607"
}

@@ -129,5 +129,10 @@ import type * as http from 'http';

const ac = new AbortController();
req.once('aborted', () => {
const onAbort = () => {
ac.abort();
});
req.off('aborted', onAbort);
req.off('close', onAbort);
};
req.once('aborted', onAbort);
req.socket?.once('close', onAbort);

@@ -134,0 +139,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