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

exalted.future

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exalted.future - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

13

dist/index.esm.js

@@ -294,2 +294,9 @@ var compose = function compose() {

var len = function len() {
var r = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
return r.filter(function (a) {
return a !== undefined;
}).length;
};
var all = function all(futures) {

@@ -301,8 +308,6 @@ return Future(function (left, right) {

Left: function Left(error) {
return !errored && (errored = true, left(error));
return errored = true, results[i] = error || 'undefined error', len(results) === len(futures) && left(results);
},
Right: function Right(result) {
return results[i] = result, !errored && results.filter(function (a) {
return a !== undefined;
}).length === futures.length && right(results);
return results[i] = result, len(results) === len(futures) && (errored ? left(results) : right(results));
}

@@ -309,0 +314,0 @@ }), results;

@@ -136,2 +136,4 @@ (function (global, factory) {

const len = (r = []) => r.filter(a => a !== undefined).length;
const all = futures =>

@@ -142,8 +144,9 @@ Future((left, right, errored = false) =>

future.cata({
Left: error => !errored && ((errored = true), left(error)),
Left: error => (
(errored = true),
(results[i] = error || 'undefined error'),
len(results) === len(futures) && left(results)),
Right: result => (
(results[i] = result),
!errored &&
results.filter(a => a !== undefined).length === futures.length &&
right(results))
len(results) === len(futures) && (errored ? left(results) : right(results)))
}),

@@ -150,0 +153,0 @@ results

{
"name": "exalted.future",
"version": "0.0.35",
"version": "0.0.36",
"description": "Exalted monadic library & functional fun, fantasy-land compliant, mostly.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/pre63/exalted.future.git",

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