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

@tangle/strategy

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tangle/strategy - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

8

is-valid-strategy.js

@@ -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",

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