@appliedblockchain/assert-combinators
Advanced tools
Comparing version 2.1.0 to 2.2.0
# 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 @@ |
@@ -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, |
// @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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56856
50
851