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

@appliedblockchain/assert-combinators

Package Overview
Dependencies
Maintainers
16
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appliedblockchain/assert-combinators - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

assert.js

10

Changelog.md
# Changelog
## [v2.2.0](../../compare/v2.1.0...v2.2.0) (2020-05-12)
* Adding tests.
* Updating index.
* Bumping npms.
* Adding info on optionals in error message.
* Adding rethrow.
* Adding assert.
* Updating changelog.
## [v2.1.0](../../compare/v2.0.0...v2.1.0) (2020-04-29)

@@ -4,0 +14,0 @@

4

index.js

@@ -5,2 +5,3 @@ // @flow strict

const array = require('./array')
const assert = require('./assert')
const boolean = require('./boolean')

@@ -34,2 +35,3 @@ const clone = require('./clone')

const regexp = require('./regexp')
const rethrow = require('./rethrow')
const safeInteger = require('./safe-integer')

@@ -48,2 +50,3 @@ const sequence = require('./sequence')

array,
assert,
boolean,

@@ -77,2 +80,3 @@ clone,

regexp,
rethrow,
safeInteger,

@@ -79,0 +83,0 @@ sequence,

4

nil-or.js
// @flow strict
const rethrow = require('./rethrow')
const nilOr /*: <T>(mixed => T) => (mixed => ?T) */ = /*:: <T> */

@@ -8,4 +10,4 @@ (a) =>

value :
a(value)
rethrow(a, 'Was not null or undefined.')(value)
module.exports = nilOr
// @flow strict
const rethrow = require('./rethrow')
const nullOr /*: <T>(mixed => T) => mixed => null | T */ = /*:: <T> */

@@ -8,4 +10,4 @@ (a) =>

null :
a(value)
rethrow(a, 'Was not null.')(value)
module.exports = nullOr
{
"name": "@appliedblockchain/assert-combinators",
"version": "2.1.0",
"version": "2.2.0",
"description": "Assertion combinators.",

@@ -17,6 +17,6 @@ "main": "index.js",

"@appliedblockchain/eslint-config": "2.6.0",
"eslint": "6.8.0",
"eslint": "7.0.0",
"eslint-plugin-jest": "23.8.2",
"flow-bin": "0.123.0",
"jest": "25.5.0",
"flow-bin": "0.124.0",
"jest": "26.0.1",
"npm-check": "5.9.2"

@@ -23,0 +23,0 @@ },

// @flow strict
const rethrow = require('./rethrow')
const undefinedOr /*: <T>(mixed => T) => (mixed => void | T) */ = /*:: <T> */

@@ -8,4 +10,4 @@ (a) =>

undefined :
a(value)
rethrow(a, 'Was not undefined.')(value)
module.exports = undefinedOr
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