🎩 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.0.1
to
1.1.0
+3
-0
dist/Either/index.js

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

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

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

"use strict";
'use strict';

@@ -6,3 +6,6 @@ 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); } }

@@ -35,2 +38,9 @@

};
};
};
var prop = exports.prop = curry(function (prop, obj) {
return obj[prop];
});
var safeProp = exports.safeProp = curry(function (p, obj) {
return compose(_Either.fromNullable, prop(p))(obj);
});
+8
-5

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

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

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

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

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