🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

fp-small

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fp-small - npm Package Compare versions

Comparing version
1.1.0
to
1.1.1
+0
-3
dist/Either/index.js

@@ -63,5 +63,2 @@ "use strict";

return x == null ? Left() : Right(x);
};
var fromTruth = exports.fromTruth = function fromTruth(x) {
return x ? Left(x) : Right(x);
};
+2
-5

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

'use strict';
"use strict";

@@ -6,6 +6,3 @@ Object.defineProperty(exports, "__esModule", {

});
exports.safeProp = exports.prop = exports.compose = exports.curry = undefined;
var _Either = require('../Either');
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

@@ -44,3 +41,3 @@

var safeProp = exports.safeProp = curry(function (p, obj) {
return compose(_Either.fromNullable, prop(p))(obj);
return compose(fromNullable, prop(p))(obj);
});

@@ -18,10 +18,7 @@ "use strict";

Object.keys(_Either).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _Either[key];
}
});
Object.defineProperty(exports, "Either", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_Either).default;
}
});

@@ -28,0 +25,0 @@

{
"name": "fp-small",
"version": "1.1.0",
"version": "1.1.1",
"description": "A small functional programming library",

@@ -5,0 +5,0 @@ "main": "dist/index.js",