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

shared-store

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shared-store - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

4

CHANGELOG.md

@@ -0,1 +1,5 @@

1.0.6
-----
* fix multiple error events for single onError value - @chkhoo #11
1.0.5

@@ -2,0 +6,0 @@ -----

14

lib/cache.js

@@ -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

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