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

@orpc/server-standard-fetch

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orpc/server-standard-fetch - npm Package Compare versions

Comparing version 0.0.0-next.63309dc to 0.0.0-next.64a419b

10

dist/index.js
// src/body.ts
import { contentDisposition, parseContentDisposition } from "@orpc/server-standard";
import { contentDisposition, parseContentDisposition, parseEmptyableJSON } from "@orpc/server-standard";
async function toStandardBody(re) {

@@ -20,6 +20,3 @@ if (!re.body) {

const text = await re.text();
if (!text) {
return void 0;
}
return JSON.parse(text);
return parseEmptyableJSON(text);
}

@@ -30,3 +27,4 @@ if (contentType.startsWith("multipart/form-data")) {

if (contentType.startsWith("application/x-www-form-urlencoded")) {
return new URLSearchParams(await re.text());
const text = await re.text();
return new URLSearchParams(text);
}

@@ -33,0 +31,0 @@ if (contentType.startsWith("text/")) {

4

package.json
{
"name": "@orpc/server-standard-fetch",
"type": "module",
"version": "0.0.0-next.63309dc",
"version": "0.0.0-next.64a419b",
"license": "MIT",

@@ -31,3 +31,3 @@ "homepage": "https://unnoq.com",

"dependencies": {
"@orpc/server-standard": "0.0.0-next.63309dc"
"@orpc/server-standard": "0.0.0-next.64a419b"
},

@@ -34,0 +34,0 @@ "scripts": {

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