computation
Advanced tools
Comparing version 0.0.3 to 1.0.0
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -19,3 +19,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
_createClass(Computation, [{ | ||
key: "then", | ||
key: 'then', | ||
value: function then(resolve, reject) { | ||
@@ -39,3 +39,3 @@ var _this = this; | ||
}, { | ||
key: "fmap", | ||
key: 'fmap', | ||
value: function fmap(f) { | ||
@@ -51,3 +51,3 @@ return this.then(function (v) { | ||
}, { | ||
key: "bind", | ||
key: 'bind', | ||
value: function bind(f) { | ||
@@ -59,3 +59,3 @@ return this.fmap(function (v) { | ||
}, { | ||
key: "get", | ||
key: 'get', | ||
value: function get(fallback) { | ||
@@ -67,3 +67,3 @@ return this.getf(function () { | ||
}, { | ||
key: "getf", | ||
key: 'getf', | ||
value: function getf(fallback) { | ||
@@ -82,3 +82,3 @@ try { | ||
}], [{ | ||
key: "pure", | ||
key: 'pure', | ||
value: function pure(value) { | ||
@@ -90,3 +90,3 @@ return new Computation(function () { | ||
}, { | ||
key: "fail", | ||
key: 'fail', | ||
value: function fail(e) { | ||
@@ -98,3 +98,3 @@ return new Computation(function () { | ||
}, { | ||
key: "liftA2", | ||
key: 'liftA2', | ||
value: function liftA2(a, b, f) { | ||
@@ -118,5 +118,5 @@ return new Computation(function () { | ||
Computation.Pending = {}; | ||
Computation.Pending = Symbol.for('Computation.Pending'); | ||
Computation.pending = new Computation(function () { | ||
return Computation.Pending; | ||
}); |
{ | ||
"name": "computation", | ||
"version": "0.0.3", | ||
"version": "1.0.0", | ||
"description": "A small JavaScript library to express computations", | ||
@@ -5,0 +5,0 @@ "main": "computation.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10915
1