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

if-err

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

if-err - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

index.js

@@ -26,3 +26,3 @@ /**

if (typeof func === 'function') {
func(check);
func(err);
} else {

@@ -29,0 +29,0 @@ // throw error

{
"name": "if-err",
"version": "0.2.0",
"version": "0.3.0",
"description": "",

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

@@ -47,3 +47,3 @@ 'use strict';

error.if(true, function (check) {
assert.strictEqual(true, check);
assert(check instanceof Error);
});

@@ -50,0 +50,0 @@ });

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