@@ -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); | ||
| }); |
+5
-8
@@ -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 @@ |
+1
-1
| { | ||
| "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", |
10125
-2.94%247
-3.14%