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

cycle-gear

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cycle-gear - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

3

dist-es2015/index.d.ts

@@ -22,5 +22,4 @@ import * as Rx from 'rx';

defaultFilter?: (model: any) => boolean;
defaultCatch?: (error: any) => Rx.Observable<any>;
sinkMap?: Map<string, string>;
}
export declare function pedal(transmission: Transmission, {defaultGear, defaultFilter, defaultCatch, sinkMap}?: PedalOptions): (sources: any) => {};
export declare function pedal(transmission: Transmission, {defaultGear, defaultFilter, sinkMap}?: PedalOptions): (sources: any) => {};
import * as Rx from 'rx';
export function pedal(transmission, { defaultGear = { intent: (sources) => ({}), model: (actions) => Rx.Observable.just({}), teeth: {} }, defaultFilter = (model) => true, defaultCatch = (error) => Rx.Observable.throw(error), sinkMap = new Map() } = {}) {
let { intent: defaultIntent, model: defaultModel } = defaultGear;
export function pedal(transmission, { defaultGear = { intent: (sources) => ({}), model: (actions) => Rx.Observable.just({}), teeth: {} }, defaultFilter = (model) => true, sinkMap = new Map() } = {}) {
let { catch: defaultCatch, intent: defaultIntent, model: defaultModel } = defaultGear;
defaultCatch = defaultCatch || ((error) => Rx.Observable.throw(error));
defaultIntent = defaultIntent || ((sources) => ({}));

@@ -5,0 +6,0 @@ defaultModel = defaultModel || ((actions) => Rx.Observable.just({}).delay(300)); // TODO: Why does this delay work?

@@ -22,5 +22,4 @@ import * as Rx from 'rx';

defaultFilter?: (model: any) => boolean;
defaultCatch?: (error: any) => Rx.Observable<any>;
sinkMap?: Map<string, string>;
}
export declare function pedal(transmission: Transmission, {defaultGear, defaultFilter, defaultCatch, sinkMap}?: PedalOptions): (sources: any) => {};
export declare function pedal(transmission: Transmission, {defaultGear, defaultFilter, sinkMap}?: PedalOptions): (sources: any) => {};
"use strict";
var Rx = require("rx");
function pedal(transmission, _a) {
var _b = _a === void 0 ? {} : _a, _c = _b.defaultGear, defaultGear = _c === void 0 ? { intent: function (sources) { return ({}); }, model: function (actions) { return Rx.Observable.just({}); }, teeth: {} } : _c, _d = _b.defaultFilter, defaultFilter = _d === void 0 ? function (model) { return true; } : _d, _e = _b.defaultCatch, defaultCatch = _e === void 0 ? function (error) { return Rx.Observable.throw(error); } : _e, _f = _b.sinkMap, sinkMap = _f === void 0 ? new Map() : _f;
var defaultIntent = defaultGear.intent, defaultModel = defaultGear.model;
var _b = _a === void 0 ? {} : _a, _c = _b.defaultGear, defaultGear = _c === void 0 ? { intent: function (sources) { return ({}); }, model: function (actions) { return Rx.Observable.just({}); }, teeth: {} } : _c, _d = _b.defaultFilter, defaultFilter = _d === void 0 ? function (model) { return true; } : _d, _e = _b.sinkMap, sinkMap = _e === void 0 ? new Map() : _e;
var defaultCatch = defaultGear.catch, defaultIntent = defaultGear.intent, defaultModel = defaultGear.model;
defaultCatch = defaultCatch || (function (error) { return Rx.Observable.throw(error); });
defaultIntent = defaultIntent || (function (sources) { return ({}); });

@@ -7,0 +8,0 @@ defaultModel = defaultModel || (function (actions) { return Rx.Observable.just({}).delay(300); }); // TODO: Why does this delay work?

@@ -28,3 +28,2 @@ import * as Rx from 'rx'

defaultFilter?: (model: any) => boolean
defaultCatch?: (error: any) => Rx.Observable<any>
sinkMap?: Map<string, string>

@@ -36,6 +35,6 @@ }

defaultFilter = (model: any) => true,
defaultCatch = (error: any) => Rx.Observable.throw(error),
sinkMap = new Map()
}: PedalOptions = {}) {
let { intent: defaultIntent, model: defaultModel } = defaultGear
let { catch: defaultCatch, intent: defaultIntent, model: defaultModel } = defaultGear
defaultCatch = defaultCatch || ((error: any) => Rx.Observable.throw(error))
defaultIntent = defaultIntent || ((sources: any) => ({}))

@@ -42,0 +41,0 @@ defaultModel = defaultModel || ((actions: any) => Rx.Observable.just({}).delay(300)) // TODO: Why does this delay work?

{
"name": "cycle-gear",
"version": "2.0.0",
"version": "3.0.0",
"description": "Main function factory for CycleJS",

@@ -5,0 +5,0 @@ "main": "dist/index.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