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

@workers-utils/common

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workers-utils/common - npm Package Compare versions

Comparing version

to
0.0.0-canary-20230601193737

dist/utilFormat.d.ts

4

dist/errors.js

@@ -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