Socket
Socket
Sign inDemoInstall

fp-ts

Package Overview
Dependencies
Maintainers
1
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fp-ts - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

5

CHANGELOG.md

@@ -15,2 +15,7 @@ # Changelog

# 0.2.2
- **Bug Fix**
- fix `Some.reduce` so it calls `f`, https://github.com/gcanti/fp-ts/pull/45 (@leemhenson)
# 0.2.1

@@ -17,0 +22,0 @@

4

lib-jsnext/Option.js

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

import { identity, constant, constFalse, constTrue } from './function';
import { constant, constFalse, constTrue } from './function';
export var URI = 'Option';

@@ -89,3 +89,3 @@ var None = (function () {

Some.prototype.reduce = function (f, b) {
return this.fold(constant(b), identity);
return this.fold(constant(b), function (a) { return f(b, a); });
};

@@ -92,0 +92,0 @@ Some.prototype.traverse = function (applicative) {

@@ -93,3 +93,3 @@ "use strict";

Some.prototype.reduce = function (f, b) {
return this.fold(function_1.constant(b), function_1.identity);
return this.fold(function_1.constant(b), function (a) { return f(b, a); });
};

@@ -96,0 +96,0 @@ Some.prototype.traverse = function (applicative) {

{
"name": "fp-ts",
"version": "0.2.1",
"version": "0.2.2",
"description": "Functional programming in TypeScript",

@@ -37,3 +37,3 @@ "files": [

"mocha": "3.2.0",
"ts-node": "2.0.0",
"ts-node": "3.0.2",
"tslint": "4.4.2",

@@ -40,0 +40,0 @@ "tslint-config-standard": "4.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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