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

@sweet-monads/maybe

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/maybe - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

index.js

5

index.d.ts

@@ -1,2 +0,2 @@

import { Monad } from "@sweet-monads/interfaces";
import { Monad, Alternative } from "@sweet-monads/interfaces";
declare const enum MaybeState {

@@ -6,3 +6,3 @@ Just = "Just",

}
export default class MaybeConstructor<T, S extends MaybeState = MaybeState> implements Monad<T> {
export default class MaybeConstructor<T, S extends MaybeState = MaybeState> implements Monad<T>, Alternative<T> {
private readonly type;

@@ -36,2 +36,3 @@ readonly value: S extends MaybeState.Just ? T : undefined;

asyncChain<V>(f: (r: T) => Promise<Maybe<V>>): Promise<Maybe<V>>;
or(x: Maybe<T>): Maybe<T>;
}

@@ -38,0 +39,0 @@ export declare type Maybe<T> = MaybeConstructor<T, MaybeState.Just> | MaybeConstructor<T, MaybeState.None>;

2

package.json
{
"name": "@sweet-monads/maybe",
"version": "2.1.0",
"version": "2.1.1",
"description": "",

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