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

fp-ts-rxjs

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fp-ts-rxjs - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

7

CHANGELOG.md

@@ -16,2 +16,9 @@ # Changelog

# 0.5.0
* **Breaking Change**
* upgrade to `rxjs@6` (@marcinwadon)
* **Internal**
* upgrade to `typescript@2.8.3` (@marcinwadon)
# 0.4.0

@@ -18,0 +25,0 @@

14

lib/Observable.d.ts

@@ -0,12 +1,6 @@

import { Alternative1 } from 'fp-ts/lib/Alternative';
import { Monad1 } from 'fp-ts/lib/Monad';
import { Monoid } from 'fp-ts/lib/Monoid';
import { Monad1 } from 'fp-ts/lib/Monad';
import { Alternative1 } from 'fp-ts/lib/Alternative';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/empty';
import 'rxjs/add/observable/merge';
import 'rxjs/add/observable/of';
import 'rxjs/add/observable/combineLatest';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/mergeMap';
declare module 'rxjs/Observable' {
import { Observable } from 'rxjs';
declare module 'rxjs/internal/Observable' {
interface Observable<T> {

@@ -13,0 +7,0 @@ _URI: URI;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Observable_1 = require("rxjs/Observable");
require("rxjs/add/observable/empty");
require("rxjs/add/observable/merge");
require("rxjs/add/observable/of");
require("rxjs/add/observable/combineLatest");
require("rxjs/add/operator/map");
require("rxjs/add/operator/mergeMap");
var rxjs_1 = require("rxjs");
var operators_1 = require("rxjs/operators");
exports.URI = 'Observable';
exports.getMonoid = function () {
return {
concat: function (x, y) { return Observable_1.Observable.merge(x, y); },
empty: Observable_1.Observable.empty()
concat: function (x, y) { return rxjs_1.merge(x, y); },
empty: rxjs_1.EMPTY
};
};
var map = function (fa, f) { return fa.map(f); };
var of = function (a) { return Observable_1.Observable.of(a); };
var map = function (fa, f) { return fa.pipe(operators_1.map(f)); };
var of = function (a) { return rxjs_1.of(a); };
var ap = function (fab, fa) {
return Observable_1.Observable.combineLatest(fab, fa, function (f, a) { return f(a); });
return rxjs_1.combineLatest(fab, fa, function (f, a) { return f(a); });
};
var chain = function (fa, f) { return fa.flatMap(f); };
var alt = function (x, y) { return Observable_1.Observable.merge(x, y); };
var zero = function () { return Observable_1.Observable.empty(); };
var chain = function (fa, f) { return fa.pipe(operators_1.mergeMap(f)); };
var alt = function (x, y) { return rxjs_1.merge(x, y); };
var zero = function () { return rxjs_1.EMPTY; };
exports.observable = {

@@ -26,0 +21,0 @@ URI: exports.URI,

{
"name": "fp-ts-rxjs",
"version": "0.4.0",
"version": "0.5.0",
"description": "fp-ts bindings for RxJS",
"files": ["lib"],
"files": [
"lib"
],
"main": "lib/index.js",

@@ -11,4 +13,3 @@ "typings": "lib/index.d.ts",

"mocha": "TS_NODE_CACHE=false mocha -r ts-node/register test/*.ts",
"prettier":
"prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"",
"prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"",
"test": "npm run prettier && npm run lint && npm run mocha",

@@ -30,3 +31,3 @@ "clean": "rm -rf lib/*",

"fp-ts": "^1.0.1",
"rxjs": "^5.4.0"
"rxjs": "^6.0.0"
},

@@ -41,6 +42,12 @@ "devDependencies": {

"tslint-config-standard": "4.0.0",
"typescript": "^2.7.1"
"typescript": "^2.8.3"
},
"tags": ["fp-ts", "rxjs"],
"keywords": ["fp-ts", "rxjs"]
"tags": [
"fp-ts",
"rxjs"
],
"keywords": [
"fp-ts",
"rxjs"
]
}

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