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
0
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-20241210060829

6

dist/invariant.js
import { utilFormat } from './utilFormat.js';
export function invariant(condition, message, ...args) {
if (!condition) {
if (typeof message === 'string') {
throw new Error(utilFormat(message, ...args));
if (typeof message === 'function') {
throw new message(...args);
}
throw new message(...args);
throw new Error(utilFormat(message, ...args));
}

@@ -9,0 +9,0 @@ }

{
"name": "@workers-utils/common",
"version": "0.0.0-canary-20241210053457",
"version": "0.0.0-canary-20241210060829",
"type": "module",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet