cycle-gear
Advanced tools
Comparing version 7.4.0 to 7.5.0
@@ -54,3 +54,8 @@ import { adapt } from '@cycle/run/lib/adapt'; | ||
state = xs.fromObservable(gear.model ? gear.model(actions) : defaultModel(actions)) | ||
.replaceError((err) => xs.fromObservable(gear.catch ? gear.catch(err, actions) : defaultCatch(err, actions))) | ||
.replaceError((err) => { | ||
if (cacheModel && modelCache) { | ||
modelCache.delete(gear); | ||
} | ||
return xs.fromObservable(gear.catch ? gear.catch(err, actions) : defaultCatch(err, actions)); | ||
}) | ||
.remember(); | ||
@@ -57,0 +62,0 @@ if (cacheModel) { |
@@ -100,3 +100,8 @@ "use strict"; | ||
state = xstream_1.default.fromObservable(gear.model ? gear.model(actions_1) : defaultModel(actions_1)) | ||
.replaceError(function (err) { return xstream_1.default.fromObservable(gear.catch ? gear.catch(err, actions_1) : defaultCatch(err, actions_1)); }) | ||
.replaceError(function (err) { | ||
if (cacheModel && modelCache) { | ||
modelCache.delete(gear); | ||
} | ||
return xstream_1.default.fromObservable(gear.catch ? gear.catch(err, actions_1) : defaultCatch(err, actions_1)); | ||
}) | ||
.remember(); | ||
@@ -103,0 +108,0 @@ if (cacheModel) { |
@@ -119,3 +119,8 @@ import { adapt } from '@cycle/run/lib/adapt' | ||
state = xs.fromObservable(gear.model ? gear.model(actions) : defaultModel(actions)) | ||
.replaceError((err: any) => xs.fromObservable(gear.catch ? gear.catch(err, actions) : defaultCatch(err, actions))) | ||
.replaceError((err: any) => { | ||
if (cacheModel && modelCache) { | ||
modelCache.delete(gear) | ||
} | ||
return xs.fromObservable(gear.catch ? gear.catch(err, actions) : defaultCatch(err, actions)) | ||
}) | ||
.remember() | ||
@@ -122,0 +127,0 @@ if (cacheModel) { |
{ | ||
"name": "cycle-gear", | ||
"version": "7.4.0", | ||
"version": "7.5.0", | ||
"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
850
72274
14