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

@edge-runtime/node-utils

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edge-runtime/node-utils - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0-beta.0

9

dist/index.js

@@ -91,2 +91,3 @@ "use strict";

return function toRequest(request, options) {
var _a;
return new Request(

@@ -102,3 +103,3 @@ String(

headers: toHeaders(request.headers),
body: !["HEAD", "GET"].includes(request.method ?? "") ? toReadableStream(request) : null
body: !["HEAD", "GET"].includes((_a = request.method) != null ? _a : "") ? toReadableStream(request) : null
}

@@ -119,3 +120,3 @@ );

function toOutgoingHeaders(headers) {
var _a;
var _a, _b;
const outputHeaders = {};

@@ -126,3 +127,3 @@ if (headers) {

if (name.toLowerCase() === "set-cookie") {
outputHeaders[name] = ((_a = headers.getAll) == null ? void 0 : _a.call(headers, "set-cookie")) ?? splitCookiesString(value);
outputHeaders[name] = (_b = (_a = headers.getAll) == null ? void 0 : _a.call(headers, "set-cookie")) != null ? _b : splitCookiesString(value);
}

@@ -200,2 +201,3 @@ }

encoding,
// @ts-ignore signal exist only since Node@17
signal,

@@ -267,2 +269,3 @@ read() {

mergeIntoServerResponse(
// @ts-ignore getAll() is not standard https://fetch.spec.whatwg.org/#headers-class
toOutgoingHeaders(webResponse.headers),

@@ -269,0 +272,0 @@ serverResponse

@@ -5,3 +5,3 @@ {

"homepage": "https://edge-runtime.vercel.app/packages/node-utils",
"version": "2.0.3",
"version": "2.1.0-beta.0",
"main": "dist/index.js",

@@ -28,3 +28,3 @@ "module": "dist/index.mjs",

"devDependencies": {
"@edge-runtime/primitives": "2.1.2",
"@edge-runtime/primitives": "2.2.0-beta.0",
"@types/test-listen": "1.1.0",

@@ -31,0 +31,0 @@ "test-listen": "1.1.0",

<div align="center">
<br>
<img src="https://edge-runtime.vercel.app/og-image.png" alt="edge-runtime logo">
<img src="https://user-images.githubusercontent.com/2096101/235130063-e561514e-1f66-4ff6-9034-70dbf7ca3260.png#gh-dark-mode-only">
<img src="https://user-images.githubusercontent.com/2096101/235127419-ac6fe609-d0cd-4339-a593-c48305a83823.png#gh-light-mode-only">
<br>

@@ -5,0 +6,0 @@ <br>

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