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

shared-store

Package Overview
Dependencies
Maintainers
4
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 2.1.3 to 2.1.4

6

CHANGELOG.md

@@ -0,1 +1,7 @@

### 2.1.4
* Gracefully handle missing dir - **[@jkrems](https://github.com/jkrems)** [#33](https://github.com/groupon/shared-store/pull/33)
- [`571d011`](https://github.com/groupon/shared-store/commit/571d011cbcd00d0065d4034ed023d7301cccc090) **fix:** Gracefully handle missing dir
### 2.1.3

@@ -2,0 +8,0 @@

18

lib/file.js

@@ -34,3 +34,3 @@

'use strict';
var Bluebird, CSON, debug, dirChanges, fileChanges, fileContent, fromPromiseFunction, fs, identity, isMissingError, onInterval, parseCSON, parseJSON, parserFromExtension, partial, path, promisify, readFile, ref;
var Bluebird, CSON, debug, dirChanges, fileChanges, fileContent, fromPromiseFunction, fs, identity, isMissingError, onInterval, parseCSON, parseJSON, parserFromExtension, partial, path, promisify, readFile, ref, surroundingDirExists;

@@ -102,2 +102,16 @@ fs = require('fs');

surroundingDirExists = function(filename) {
var dirStat, err;
try {
dirStat = fs.statSync(path.dirname(filename));
return dirStat.isDirectory();
} catch (error1) {
err = error1;
if (err.code !== 'ENOENT') {
throw err;
}
return false;
}
};
fileContent = function(filename, options) {

@@ -138,3 +152,3 @@ var defaultValue, hasDefault, interval, load, loaded, parse, returnDefault, rootDir, watch, wrap;

});
if (watch) {
if (watch && surroundingDirExists(filename)) {
return load().concat(fileChanges(filename).flatMap(load));

@@ -141,0 +155,0 @@ } else {

2

package.json
{
"name": "shared-store",
"version": "2.1.3",
"version": "2.1.4",
"description": "Keeping config data in sync",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

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