shared-store
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -0,1 +1,5 @@ | ||
1.0.6 | ||
----- | ||
* fix multiple error events for single onError value - @chkhoo #11 | ||
1.0.5 | ||
@@ -2,0 +6,0 @@ ----- |
@@ -154,5 +154,5 @@ // Generated by CoffeeScript 1.9.0 | ||
activeLoader = function(meta, loader, tmpDir, onError) { | ||
activeLoader = function(meta, loader, tmpDir) { | ||
var cachedData, data, fromCache, insurance, rawData; | ||
rawData = meta.flatMapLatest(loader).tapOnError(onError); | ||
rawData = meta.flatMapLatest(loader); | ||
insurance = crashRecovery(tmpDir); | ||
@@ -167,6 +167,6 @@ data = rawData.tap(insurance.onDataLoaded).publish(); | ||
passiveLoader = function(tmpDir, onError) { | ||
passiveLoader = function(tmpDir) { | ||
var data, rawData; | ||
rawData = latestCacheFile(tmpDir, true); | ||
data = rawData.tapOnError(onError).publish(); | ||
data = rawData.publish(); | ||
data.connect(); | ||
@@ -176,9 +176,9 @@ return data; | ||
this.cachedLoader = function(meta, loader, tmpDir, active, onError) { | ||
this.cachedLoader = function(meta, loader, tmpDir, active) { | ||
debug('cachedLoader(%j)', active); | ||
if (active) { | ||
return activeLoader(meta, loader, tmpDir, onError); | ||
return activeLoader(meta, loader, tmpDir); | ||
} else { | ||
return passiveLoader(tmpDir, onError); | ||
return passiveLoader(tmpDir); | ||
} | ||
}; |
@@ -80,3 +80,3 @@ // Generated by CoffeeScript 1.9.0 | ||
this._receivedData = false; | ||
this._subscription = this.stream.subscribe(this._handleUpdate, this._handleError); | ||
this.stream.subscribe(this._handleUpdate, this._handleError); | ||
this._cache = null; | ||
@@ -83,0 +83,0 @@ } |
{ | ||
"name": "shared-store", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Keeping config data in sync", | ||
@@ -5,0 +5,0 @@ "main": "lib/shared-store.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
91234