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

@worker-tools/response-creators

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@worker-tools/response-creators - npm Package Compare versions

Comparing version 1.2.0-pre.2 to 1.2.0-pre.3

6

esm/index.js

@@ -11,3 +11,3 @@ const mkResponse = (status, statusText) => (body = null, init = {}) => new Response(body, {

headers: [
...init?.headers ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
...(init === null || init === void 0 ? void 0 : init.headers) ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
['Location', location.toString()],

@@ -21,3 +21,3 @@ ],

headers: [
...init?.headers ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
...(init === null || init === void 0 ? void 0 : init.headers) ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
['WWW-Authenticate', `Basic realm="${realm}", charset="UTF-8"`],

@@ -31,3 +31,3 @@ ],

headers: [
...init?.headers ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
...(init === null || init === void 0 ? void 0 : init.headers) ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
['If-None-Match', ifNoneMatch],

@@ -34,0 +34,0 @@ ['If-Modified-Since', ifModifiedSince.toUTCString()],

@@ -6,3 +6,3 @@ {

"name": "@worker-tools/response-creators",
"version": "1.2.0-pre.2",
"version": "1.2.0-pre.3",
"description": "A collection of factory functions for Fetch API Response types with pre-filled status and status-text headers for well-known HTTP status codes.",

@@ -9,0 +9,0 @@ "license": "MIT",

@@ -15,3 +15,3 @@ "use strict";

headers: [
...init?.headers ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
...(init === null || init === void 0 ? void 0 : init.headers) ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
['Location', location.toString()],

@@ -25,3 +25,3 @@ ],

headers: [
...init?.headers ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
...(init === null || init === void 0 ? void 0 : init.headers) ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
['WWW-Authenticate', `Basic realm="${realm}", charset="UTF-8"`],

@@ -35,3 +35,3 @@ ],

headers: [
...init?.headers ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
...(init === null || init === void 0 ? void 0 : init.headers) ? Array.isArray(init.headers) ? init.headers : new Headers(init.headers) : [],
['If-None-Match', ifNoneMatch],

@@ -38,0 +38,0 @@ ['If-Modified-Since', ifModifiedSince.toUTCString()],

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