Socket
Socket
Sign inDemoInstall

fluture

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluture - npm Package Compare versions

Comparing version 12.0.1 to 12.0.2

10

index.d.ts

@@ -134,6 +134,8 @@ /// <reference lib="es2015.generator" />

/** Map over the resolution value of the given Future or ConcurrentFuture. See https://github.com/fluture-js/Fluture#map */
export function map<RA, RB>(mapper: (value: RA) => RB): {
<L>(source: FutureInstance<L, RA>): FutureInstance<L, RB>
<L>(source: ConcurrentFutureInstance<L, RA>): ConcurrentFutureInstance<L, RB>
}
export function map<RA, RB>(mapper: (value: RA) => RB): <T extends FutureInstance<any, RA> | ConcurrentFutureInstance<any, RA>>(source: T) =>
T extends FutureInstance<infer L, RA> ?
FutureInstance<L, RB> :
T extends ConcurrentFutureInstance<infer L, RA> ?
ConcurrentFutureInstance<L, RB> :
never;

@@ -140,0 +142,0 @@ /** Map over the rejection reason of the given Future. See https://github.com/fluture-js/Fluture#maprej */

2

package.json
{
"name": "fluture",
"version": "12.0.1",
"version": "12.0.2",
"description": "FantasyLand compliant (monadic) alternative to Promises",

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

@@ -94,3 +94,3 @@ # [![Fluture](logo.png)](#butterfly)

Fluture is hosted in full with all of its dependencies at
https://cdn.jsdelivr.net/gh/fluture-js/Fluture@12.0.1/dist/bundle.js
https://cdn.jsdelivr.net/gh/fluture-js/Fluture@12.0.2/dist/bundle.js

@@ -97,0 +97,0 @@ This script will add `Fluture` to the global scope.

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