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 7.2.0 to 7.2.1

8

dist-es2015/index.js

@@ -96,3 +96,3 @@ import { adapt } from '@cycle/run/lib/adapt';

}
const defaultReduce = (acc, [cur, gear]) => (Object.assign({}, acc, { [gear.name || '?']: cur }));
const defaultReduce = (acc, [cur, gear]) => Object.assign(acc, { [gear.name || '?']: cur });
function spinGears(sources, defaultIntent, defaultModel, defaultCatch, teeth, toothFilter, toothView, cumulative, sourcesWrapper, defaultConnector, connectors) {

@@ -156,3 +156,3 @@ const spinCache = new WeakMap();

if (connector.fold) {
view = view.fold(connector.reduce || defaultReduce, connector.init || {});
view = view.fold(connector.reduce || defaultReduce, connector.init ? connector.init() : {});
}

@@ -162,3 +162,5 @@ else {

}
return Object.assign({}, accum, { [sinkMap.has(tooth) ? sinkMap.get(tooth) : tooth]: adapt(view) });
return Object.assign(accum, {
[sinkMap.has(tooth) ? sinkMap.get(tooth) : tooth]: adapt(view)
});
}, {});

@@ -165,0 +167,0 @@ return sinks;

"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
var __values = (this && this.__values) || function (o) {

@@ -157,3 +149,3 @@ var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;

var _b = __read(_a, 2), cur = _b[0], gear = _b[1];
return (__assign({}, acc, (_c = {}, _c[gear.name || '?'] = cur, _c)));
return Object.assign(acc, (_c = {}, _c[gear.name || '?'] = cur, _c));
var _c;

@@ -231,3 +223,3 @@ };

if (connector.fold) {
view = view.fold(connector.reduce || defaultReduce, connector.init || {});
view = view.fold(connector.reduce || defaultReduce, connector.init ? connector.init() : {});
}

@@ -240,3 +232,5 @@ else {

}
return __assign({}, accum, (_a = {}, _a[sinkMap.has(tooth) ? sinkMap.get(tooth) : tooth] = adapt_1.adapt(view), _a));
return Object.assign(accum, (_a = {},
_a[sinkMap.has(tooth) ? sinkMap.get(tooth) : tooth] = adapt_1.adapt(view),
_a));
var _a;

@@ -243,0 +237,0 @@ }, {});

@@ -179,3 +179,3 @@ import { adapt } from '@cycle/run/lib/adapt'

const defaultReduce = (acc: any, [cur, gear]: [any, Gear<any, any>]) => ({ ...acc, [gear.name || '?']: cur })
const defaultReduce = (acc: any, [cur, gear]: [any, Gear<any, any>]) => Object.assign(acc, { [gear.name || '?']: cur })

@@ -286,10 +286,9 @@ function spinGears(sources: any,

if (connector.fold) {
view = view.fold(connector.reduce || defaultReduce, connector.init || {})
view = view.fold(connector.reduce || defaultReduce, connector.init ? connector.init() : {})
} else {
view = view.map(([cur]: [any]) => cur)
}
return {
...accum,
return Object.assign(accum, {
[sinkMap.has(tooth) ? sinkMap.get(tooth) : tooth]: adapt(view)
}
})
},

@@ -296,0 +295,0 @@ {})

{
"name": "cycle-gear",
"version": "7.2.0",
"version": "7.2.1",
"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