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
1136
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.745 to 11.0.0-rc.746

74

dist/bundle-analysis.json
{
"bundleSize": 195513,
"bundleOrigSize": 226893,
"bundleReduction": 13.83,
"bundleSize": 195415,
"bundleOrigSize": 226915,
"bundleReduction": 13.88,
"modules": [

@@ -22,4 +22,4 @@ {

"id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
"size": 20609,
"origSize": 17588,
"size": 20511,
"origSize": 17610,
"renderedExports": [

@@ -35,3 +35,3 @@ "isPromise",

],
"percent": 10.54,
"percent": 10.5,
"reduction": 0

@@ -293,5 +293,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"
],

@@ -356,5 +356,2 @@ "percent": 1.4,

"/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",

@@ -364,2 +361,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",

@@ -387,6 +387,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",

@@ -458,4 +458,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"
],

@@ -865,2 +865,12 @@ "percent": 1.07,

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

@@ -878,5 +888,5 @@ "size": 0,

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

@@ -899,12 +909,2 @@ "removedExports": [],

{
"id": "/src/rpc.ts",
"size": 0,
"origSize": 36,
"renderedExports": [],
"removedExports": [],
"dependents": [],
"percent": 0,
"reduction": 100
},
{
"id": "/src/unstable-core-do-not-import.ts",

@@ -960,12 +960,2 @@ "size": 0,

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

@@ -985,2 +975,12 @@ "size": 0,

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

@@ -987,0 +987,0 @@ ],

@@ -89,4 +89,6 @@ 'use strict';

}
function isPlainObject(value) {
return Object.prototype.toString.call(value) === '[object Object]';
}
// ---------- types
// ---------- types
const CHUNK_VALUE_TYPE_PROMISE = 0;

@@ -239,9 +241,2 @@ const CHUNK_VALUE_TYPE_ASYNC_ITERABLE = 1;

}
if (!utils.isObject(value)) {
return [
[
value
]
];
}
const reg = encodeAsync(value, path);

@@ -259,3 +254,3 @@ if (reg) {

}
if (Object.prototype.toString.call(value) !== '[object Object]') {
if (!isPlainObject(value)) {
return [

@@ -262,0 +257,0 @@ [

{
"name": "@trpc/server",
"version": "11.0.0-rc.745+6ab0f06e2",
"version": "11.0.0-rc.746+6c15b0575",
"description": "The tRPC server library",

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

},
"gitHead": "6ab0f06e288b19b2d40ff0fe483c15365a7699f0"
"gitHead": "6c15b0575d18179ddf964d89d8295aabad39f2cc"
}

@@ -25,3 +25,5 @@ import { isAsyncIterable, isFunction, isObject, run } from '../utils';

// ---------- types
function isPlainObject(value: unknown): value is Record<string, unknown> {
return Object.prototype.toString.call(value) === '[object Object]';
}

@@ -234,6 +236,2 @@ // ---------- types

}
if (!isObject(value)) {
return [[value]];
}
const reg = encodeAsync(value, path);

@@ -244,6 +242,7 @@ if (reg) {

if (Object.prototype.toString.call(value) !== '[object Object]') {
if (!isPlainObject(value)) {
return [[value]];
}
const newObj = {} as Record<string, unknown>;
const newObj: Record<string, unknown> = {};
const asyncValues: ChunkDefinition[] = [];

@@ -269,3 +268,3 @@ for (const [key, item] of Object.entries(value)) {

let iterable: AsyncIterable<Head | ChunkData | typeof PING_SYM, void> =
let iterable: AsyncIterable<ChunkData | typeof PING_SYM, void> =
mergedIterables;

@@ -272,0 +271,0 @@ if (opts.pingMs) {

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