@tangle/strategy
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -22,8 +22,6 @@ const isEqual = require('lodash.isequal') | ||
const i = strategy.identity() | ||
if (i === undefined) return errors.push('cannot have an identity element equal to "undefined"') | ||
if (i === undefined) errors.push('cannot have an identity element equal to "undefined"') | ||
// undefined not supported by JSON | ||
if (strategy.mapToOutput(i) === undefined) errors.push('mapToOutput(identity()) must not equal undefined') | ||
if (!isEqual(strategy.concat(i, i), i)) errors.push('concat(identity, identity) !== identity') | ||
else if (strategy.mapToOutput(i) === undefined) errors.push('mapToOutput(identity()) must not equal undefined') | ||
else if (!isEqual(strategy.concat(i, i), i)) errors.push('concat(identity, identity) !== identity') | ||
} | ||
@@ -30,0 +28,0 @@ |
{ | ||
"name": "@tangle/strategy", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "a toolkit for composing tangle reducing strategies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
22419