@workers-utils/common
Advanced tools
Comparing version 0.0.0-canary-20230323085142 to 0.0.0-canary-20230323095543
@@ -0,1 +1,2 @@ | ||
export * from './errors.js'; | ||
export * from './invariant.js'; | ||
@@ -2,0 +3,0 @@ export * from './isNotNullish.js'; |
@@ -0,1 +1,2 @@ | ||
export * from './errors.js'; | ||
export * from './invariant.js'; | ||
@@ -2,0 +3,0 @@ export * from './isNotNullish.js'; |
@@ -0,1 +1,2 @@ | ||
import { StatusCodes } from 'http-status-codes'; | ||
export class JsonResponse extends Response { | ||
@@ -9,3 +10,3 @@ constructor(data, init) { | ||
super(null, { | ||
status: 307 /* temporary redirect */, | ||
status: StatusCodes.TEMPORARY_REDIRECT, | ||
headers: { | ||
@@ -12,0 +13,0 @@ Location: redirectTo, |
{ | ||
"name": "@workers-utils/common", | ||
"version": "0.0.0-canary-20230323085142", | ||
"version": "0.0.0-canary-20230323095543", | ||
"type": "module", | ||
@@ -16,2 +16,3 @@ "module": "dist/index.js", | ||
"@types/format-util": "^1.0.2", | ||
"http-status-codes": "^2.2.0", | ||
"typescript": "^5.0.2" | ||
@@ -18,0 +19,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
23190
26
118
4
1