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

@pheasantplucker/failables

Package Overview
Dependencies
Maintainers
6
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pheasantplucker/failables - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

2

package.json
{
"name": "@pheasantplucker/failables",
"version": "2.0.5",
"version": "2.0.6",
"description": "to protect against null and throwing errors",

@@ -5,0 +5,0 @@ "main": "src/failable.js",

@@ -43,3 +43,3 @@ const equal = require('assert').deepEqual

equal(isFailure(f), true)
if (p) equal(payload(f), p)
if (p !== undefined) equal(payload(f), p)
}

@@ -46,0 +46,0 @@

@@ -141,4 +141,5 @@ const equal = require('assert').deepEqual

})
it('should fail success with wrong payload', () => {
it('should fail success with wrong boolean payload', () => {
throws(() => assertSuccess(success(true), false))
throws(() => assertSuccess(success(false), true))
})

@@ -163,2 +164,6 @@ })

})
it('should fail failure with wrong boolean payload', () => {
throws(() => assertFailure(failure(true), false))
throws(() => assertFailure(failure(false), true))
})
})

@@ -165,0 +170,0 @@

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