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 4.0.6 to 4.0.7

7

CHANGELOG.md

@@ -0,1 +1,8 @@

### v4.0.7 (2021-03-15)
#### 🐛 Bug Fixes
* [#49](https://github.com/groupon/shared-store/pull/49) fix: avoid error on empty cson/json ([@aaarichter](https://github.com/aaarichter))
### v4.0.6 (2021-02-17)

@@ -2,0 +9,0 @@

18

lib/file.js

@@ -63,3 +63,10 @@ /*

function parseCSON(filename, content) {
/**
* @param {string} filename
* @param {string} content
* @returns {{}}
*/
function parseCSON(filename, content = '') {
if (content.trim().length === 0) return {};
try {

@@ -73,3 +80,10 @@ return CSON.parse(content);

function parseJSON(filename, content) {
/**
* @param {string} filename
* @param {string} content
* @returns {{}}
*/
function parseJSON(filename, content = '') {
if (content.trim().length === 0) return {};
try {

@@ -76,0 +90,0 @@ return JSON.parse(content);

2

lib/shared-store.js

@@ -41,3 +41,3 @@ /*

const freeze = require('deep-freeze');
const freeze = require('deep-freeze-es6');

@@ -44,0 +44,0 @@ const { Observable } = require('rx-lite');

{
"name": "shared-store",
"version": "4.0.6",
"version": "4.0.7",
"description": "Keeping config data in sync",

@@ -18,5 +18,11 @@ "license": "BSD-3-Clause",

"pretest": "npm run lint",
"test": "nyc mocha",
"test": "c8 mocha",
"posttest": "nlm verify"
},
"c8": {
"reporter": [
"text",
"json-summary"
]
},
"engines": {

@@ -37,5 +43,5 @@ "node": ">=10"

"dependencies": {
"cson-parser": "^4.0.5",
"debug": "^4.1.1",
"deep-freeze": "0.0.1",
"cson-parser": "^4.0.8",
"debug": "^4.3.1",
"deep-freeze-es6": "^1.4.1",
"lodash.isequal": "^4.5.0",

@@ -51,12 +57,12 @@ "lodash.merge": "^4.6.2",

"@types/rx-lite-aggregates": "^4.0.3",
"eslint": "^7.8.1",
"eslint-config-groupon": "^10.0.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-mocha": "^8.0.0",
"c8": "^7.6.0",
"eslint": "^7.21.0",
"eslint-config-groupon": "^10.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-mocha": "^8.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"mocha": "^8.1.3",
"nlm": "^5.0.0",
"nyc": "^15.1.0",
"prettier": "^2.1.1",
"eslint-plugin-prettier": "^3.3.1",
"mocha": "^8.3.1",
"nlm": "^5.3.3",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",

@@ -63,0 +69,0 @@ "tmp": "^0.2.1"

@@ -0,1 +1,4 @@

[![nlm-github](https://img.shields.io/badge/github-groupon%2Fshared--store%2Fissues-F4D03F?logo=github&logoColor=white)](https://github.com/groupon/shared-store/issues)
![nlm-node](https://img.shields.io/badge/node-%3E%3D10-blue?logo=node.js&logoColor=white)
![nlm-version](https://img.shields.io/badge/version-4.0.7-blue?logo=version&logoColor=white)
# shared-store

@@ -2,0 +5,0 @@

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