Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

computation

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

computation - npm Package Compare versions

Comparing version 0.0.3 to 1.0.0

20

computation.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc