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

@swan-io/boxed

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swan-io/boxed - npm Package Compare versions

Comparing version 0.12.1 to 0.13.0

4

dist/AsyncData.d.ts

@@ -21,3 +21,3 @@ import { Option, Result } from "./OptionResult";

*/
mapResult<A, E, B, F = E>(this: AsyncData<Result<A, E>>, func: (value: A) => Result<B, F>): AsyncData<Result<B, F | E>>;
mapResult<A, E, B, F>(this: AsyncData<Result<A, E>>, func: (value: A) => Result<B, F>): AsyncData<Result<B, F | E>>;
/**

@@ -40,3 +40,3 @@ * Takes a callback taking the Ok value and returning a new ok value and returns an AsyncData resolving to this new result

*/
flatMapOk<A, E, B, F = E>(this: AsyncData<Result<A, E>>, func: (value: A) => AsyncData<Result<B, F>>): AsyncData<Result<B, F | E>>;
flatMapOk<A, E, B, F>(this: AsyncData<Result<A, E>>, func: (value: A) => AsyncData<Result<B, F>>): AsyncData<Result<B, F | E>>;
/**

@@ -43,0 +43,0 @@ * Takes a callback taking the Error value and returning an AsyncData

@@ -82,3 +82,3 @@ import { Result } from "./OptionResult";

*/
mapResult<A, E, B, F = E>(this: Future<Result<A, E>>, func: (value: A) => Result<B, F>, propagateCancel?: boolean): Future<Result<B, F | E>>;
mapResult<A, E, B, F>(this: Future<Result<A, E>>, func: (value: A) => Result<B, F>, propagateCancel?: boolean): Future<Result<B, F | E>>;
/**

@@ -101,3 +101,3 @@ * For Future<Result<*>>:

*/
flatMapOk<A, E, B, F = E>(this: Future<Result<A, E>>, func: (value: A) => Future<Result<B, F>>, propagateCancel?: boolean): Future<Result<B, F | E>>;
flatMapOk<A, E, B, F>(this: Future<Result<A, E>>, func: (value: A) => Future<Result<B, F>>, propagateCancel?: boolean): Future<Result<B, F | E>>;
/**

@@ -104,0 +104,0 @@ * For Future<Result<*>>:

@@ -125,3 +125,3 @@ import { LooseRecord, Remap } from "./types";

*/
flatMap<B, F = E>(this: Result<A, E>, func: (value: A) => Result<B, F>): Result<B, F | E>;
flatMap<B, F>(this: Result<A, E>, func: (value: A) => Result<B, F>): Result<B, F | E>;
/**

@@ -128,0 +128,0 @@ * Returns the Result containing the value from the callback

@@ -1,6 +0,6 @@

# 0.12.1
# 0.13.0
Features:
Changes:
- Add `Array.keepMapOne` (a8300de)
- Don't default error types to initial ones in `flatMap`-like methods (29d3307)

@@ -7,0 +7,0 @@ # 0.12.0

{
"name": "@swan-io/boxed",
"version": "0.12.1",
"version": "0.13.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Utility types for functional TypeScript",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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