Socket
Socket
Sign inDemoInstall

edge-runtime

Package Overview
Dependencies
12
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.5.1 to 2.5.2

9

dist/server/create-handler.js

@@ -83,4 +83,3 @@ "use strict";

* Transforms WHATWG Headers into a Node Headers shape. Copies all items but
* does a special case for Set-Cookie using the hidden method getAll which
* allows to get all cookies instead of a folded value.
* does a special case for Set-Cookie using the [`getSetCookie`](https://developer.mozilla.org/en-US/docs/Web/API/Headers/getSetCookie) method.
*/

@@ -91,7 +90,3 @@ function toNodeHeaders(headers) {

for (const [key, value] of headers.entries()) {
result[key] =
key.toLowerCase() === 'set-cookie'
? // @ts-ignore getAll is hidden in Headers but exists.
headers.getAll('set-cookie')
: value;
result[key] = key === 'set-cookie' ? headers.getSetCookie() : value;
}

@@ -98,0 +93,0 @@ }

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

"homepage": "https://edge-runtime.vercel.app/packages/runtime",
"version": "2.5.1",
"version": "2.5.2",
"main": "dist/index.js",

@@ -36,3 +36,3 @@ "bin": {

"@edge-runtime/format": "2.2.0",
"@edge-runtime/vm": "3.1.1"
"@edge-runtime/vm": "3.1.2"
},

@@ -39,0 +39,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc