cycle-gear
Advanced tools
Comparing version 7.1.3 to 7.1.4
@@ -99,2 +99,3 @@ import { adapt } from '@cycle/run/lib/adapt'; | ||
const spinCache = new WeakMap(); | ||
const spinner = spinGear(sources, defaultIntent, defaultModel, defaultCatch, sourcesWrapper, teeth, toothFilter, toothView, true, defaultConnector, connectors); | ||
return gears => { | ||
@@ -108,3 +109,3 @@ const spins = []; | ||
else { | ||
const spinnning = spinGear(sources, defaultIntent, defaultModel, defaultCatch, sourcesWrapper, teeth, toothFilter, toothView, true, defaultConnector, connectors); | ||
const spinnning = spinner(gear); | ||
spinCache.set(gear, spinnning); | ||
@@ -130,3 +131,2 @@ spins.push(spinnning); | ||
.startWith([]) | ||
.debug('cycle-gear spin') | ||
.remember(); | ||
@@ -136,3 +136,2 @@ const sinks = teeth.reduce((accum, tooth) => { | ||
.map(gear => gear[tooth]) | ||
.debug('cycle-gear spin-tooth') | ||
.filter(toothView => !!toothView) | ||
@@ -139,0 +138,0 @@ .compose(flattenConcurrently)) |
@@ -162,2 +162,3 @@ "use strict"; | ||
var spinCache = new WeakMap(); | ||
var spinner = spinGear(sources, defaultIntent, defaultModel, defaultCatch, sourcesWrapper, teeth, toothFilter, toothView, true, defaultConnector, connectors); | ||
return function (gears) { | ||
@@ -173,3 +174,3 @@ var spins = []; | ||
else { | ||
var spinnning = spinGear(sources, defaultIntent, defaultModel, defaultCatch, sourcesWrapper, teeth, toothFilter, toothView, true, defaultConnector, connectors); | ||
var spinnning = spinner(gear); | ||
spinCache.set(gear, spinnning); | ||
@@ -205,3 +206,2 @@ spins.push(spinnning); | ||
.startWith([]) | ||
.debug('cycle-gear spin') | ||
.remember(); | ||
@@ -211,3 +211,2 @@ var sinks = teeth.reduce(function (accum, tooth) { | ||
.map(function (gear) { return gear[tooth]; }) | ||
.debug('cycle-gear spin-tooth') | ||
.filter(function (toothView) { return !!toothView; }) | ||
@@ -214,0 +213,0 @@ .compose(flattenConcurrently_1.default); }) |
25
index.ts
@@ -188,2 +188,13 @@ import { adapt } from '@cycle/run/lib/adapt' | ||
const spinCache = new WeakMap<Gear<any, any>, any>() | ||
const spinner = spinGear(sources, | ||
defaultIntent, | ||
defaultModel, | ||
defaultCatch, | ||
sourcesWrapper, | ||
teeth, | ||
toothFilter, | ||
toothView, | ||
true, | ||
defaultConnector, | ||
connectors) | ||
return gears => { | ||
@@ -196,13 +207,3 @@ const spins = [] | ||
} else { | ||
const spinnning = spinGear(sources, | ||
defaultIntent, | ||
defaultModel, | ||
defaultCatch, | ||
sourcesWrapper, | ||
teeth, | ||
toothFilter, | ||
toothView, | ||
true, | ||
defaultConnector, | ||
connectors) | ||
const spinnning = spinner(gear) | ||
spinCache.set(gear, spinnning) | ||
@@ -244,3 +245,2 @@ spins.push(spinnning) | ||
.startWith([]) | ||
.debug('cycle-gear spin') | ||
.remember() | ||
@@ -251,3 +251,2 @@ | ||
.map(gear => gear[tooth]) | ||
.debug('cycle-gear spin-tooth') | ||
.filter(toothView => !!toothView) | ||
@@ -254,0 +253,0 @@ .compose(flattenConcurrently)) |
{ | ||
"name": "cycle-gear", | ||
"version": "7.1.3", | ||
"version": "7.1.4", | ||
"description": "Main function factory for CycleJS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69009
750