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

outvariant

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outvariant - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

9

lib/index.js

@@ -102,4 +102,9 @@ "use strict";

if (!predicate) {
const isConstructor = ErrorConstructor.prototype.name != null;
const error = isConstructor ? new ErrorConstructor(format(message, positionals)) : ErrorConstructor(format(message, positionals));
const formatMessage = positionals.length === 0 ? message : format(message, positionals);
let error;
try {
error = Reflect.construct(ErrorConstructor, [formatMessage]);
} catch (err) {
error = ErrorConstructor(formatMessage);
}
throw error;

@@ -106,0 +111,0 @@ }

{
"name": "outvariant",
"version": "1.4.1",
"version": "1.4.2",
"description": "Type-safe implementation of invariant with positionals.",

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

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