Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@workers-utils/common

Package Overview
Dependencies
Maintainers
2
Versions
40
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 0.0.0-canary-20230424181811 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

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