Socket
Socket
Sign inDemoInstall

flow-static-land

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.6 to 0.2.7

5

CHANGELOG.md

@@ -15,2 +15,7 @@ # Changelog

## 0.2.7
- **Bug Fix**
- Fix error due to increase in strictness of arity checking as of Flow v0.47.0 (@hallettj)
## 0.2.6

@@ -17,0 +22,0 @@

2

lib/Aff.js

@@ -125,3 +125,3 @@ 'use strict';

var requestCancel = false;
var onCanceler = function onCanceler() {};
var onCanceler = function onCanceler(canceler) {}; // eslint-disable-line no-unused-vars
var canceler2 = null;

@@ -128,0 +128,0 @@

@@ -7,2 +7,4 @@ 'use strict';

exports.liftA2 = liftA2;
exports.liftA3 = liftA3;
exports.liftA4 = liftA4;

@@ -20,2 +22,29 @@ var _HKT = require('./HKT');

};
}
function liftA3(apply, f) {
var cf = function cf(a) {
return function (b) {
return function (c) {
return f(a, b, c);
};
};
};
return function (fa, fb, fc) {
return apply.ap(apply.ap(apply.map(cf, fa), fb), fc);
};
}
function liftA4(apply, f) {
var cf = function cf(a) {
return function (b) {
return function (c) {
return function (d) {
return f(a, b, c, d);
};
};
};
};
return function (fa, fb, fc, fd) {
return apply.ap(apply.ap(apply.ap(apply.map(cf, fa), fb), fc), fd);
};
}
{
"name": "flow-static-land",
"version": "0.2.6",
"version": "0.2.7",
"description": "Implementation of common algebraic types in JavaScript + Flow",

@@ -5,0 +5,0 @@ "files": [

@@ -101,3 +101,3 @@ // @flow

let requestCancel = false
let onCanceler = () => {}
let onCanceler = (canceler) => {} // eslint-disable-line no-unused-vars
let canceler2: ?Canceler<any> = null

@@ -104,0 +104,0 @@

@@ -13,1 +13,11 @@ // @flow

}
export function liftA3<F, A, B, C, D>(apply: Apply<F>, f: (a: A, b: B, c: C) => D): (fa: HKT<F, A>, fb: HKT<F, B>, fc: HKT<F, C>) => HKT<F, D> {
const cf = a => b => c => f(a, b, c)
return (fa, fb, fc) => apply.ap(apply.ap(apply.map(cf, fa), fb), fc)
}
export function liftA4<F, A, B, C, D, E>(apply: Apply<F>, f: (a: A, b: B, c: C, d: D) => E): (fa: HKT<F, A>, fb: HKT<F, B>, fc: HKT<F, C>, fd: HKT<F, D>) => HKT<F, E> {
const cf = a => b => c => d => f(a, b, c, d)
return (fa, fb, fc, fd) => apply.ap(apply.ap(apply.ap(apply.map(cf, fa), fb), fc), fd)
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc