@workers-utils/common
Advanced tools
Comparing version 0.0.0-canary-20230424181811 to 0.0.0-canary-20230601193737
@@ -1,2 +0,2 @@ | ||
import format from 'format-util'; | ||
import { utilFormat } from './utilFormat.js'; | ||
export class RedirectError extends Error { | ||
@@ -30,5 +30,5 @@ message; | ||
constructor(message, ...args) { | ||
super(format(message, ...args)); | ||
super(utilFormat(message, ...args)); | ||
} | ||
} | ||
//# sourceMappingURL=errors.js.map |
@@ -1,6 +0,6 @@ | ||
import format from 'format-util'; | ||
import { utilFormat } from './utilFormat.js'; | ||
export function invariant(condition, message, ...args) { | ||
if (!condition) { | ||
if (typeof message === 'string') { | ||
throw new Error(format(message, ...args)); | ||
throw new Error(utilFormat(message, ...args)); | ||
} | ||
@@ -7,0 +7,0 @@ else { |
{ | ||
"name": "@workers-utils/common", | ||
"version": "0.0.0-canary-20230424181811", | ||
"version": "0.0.0-canary-20230601193737", | ||
"type": "module", | ||
@@ -12,4 +12,2 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@types/format-util": "^1.0.2", | ||
"format-util": "^1.0.5", | ||
"http-status-codes": "^2.2.0" | ||
@@ -16,0 +14,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
29974
1
34
205
- Removed@types/format-util@^1.0.2
- Removedformat-util@^1.0.5
- Removed@types/format-util@1.0.4(transitive)
- Removedformat-util@1.0.5(transitive)