New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sweet-monads/either

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sweet-monads/either - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

2

package.json
{
"name": "@sweet-monads/either",
"version": "2.1.2",
"version": "2.1.3",
"description": "Either monad",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -162,6 +162,6 @@ # @sweet-monads/either

```typescript
const v1 = right<number, string>(2);
const v2 = left<number, string>("Error 1");
const v3 = left<number, string>("Error 2");
const v4 = right<number, string>(3);
const v1 = right<string, number>(2);
const v2 = left<string, number>("Error 1");
const v3 = left<string, number>("Error 2");
const v4 = right<string, number>(3);

@@ -168,0 +168,0 @@ v1.or(v2) // v1 will be returned

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