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.4 to 4.0.5

11

CHANGELOG.md

@@ -0,1 +1,12 @@

### 4.0.5 - 2020-09-03
* refactor: remove nodash functions & test refactor - **[@aaarichter](https://github.com/aaarichter)** [#47](https://github.com/groupon/shared-store/pull/47)
- [`2ac79e2`](https://github.com/groupon/shared-store/commit/2ac79e2acb1c15617c1e6f09a08a8608cc4dd7d1) ♻️ **chore:** update dependencies
- [`4ed2eb1`](https://github.com/groupon/shared-store/commit/4ed2eb14766c1d66fd3d1dc3c56a2416b7a512e4) ✅ **test:** use node assert instead of assertive
- [`2e868e3`](https://github.com/groupon/shared-store/commit/2e868e3bfb239859d6bbcd866e0c155566f59f9e) 💚 **ci:** add node 14 to travis
- [`d979d32`](https://github.com/groupon/shared-store/commit/d979d32198f93313d16475ad3317f424f656dcf8) ♻️ **chore:** update dependencies
- [`9891749`](https://github.com/groupon/shared-store/commit/9891749bfbc9395b0c17db2bf002577b668f10b6) 📦️ **refactor:** remove nodash functions
- [`779937e`](https://github.com/groupon/shared-store/commit/779937e8da8287bf9518db6c28aef322abf62687) ✅ **test:** fix test promise handling
### 4.0.4 - 2020-07-20

@@ -2,0 +13,0 @@

8

lib/cache.js

@@ -57,4 +57,2 @@ /*

const { property } = require('./nodash');
const writeFile = promisify(fs.writeFile);

@@ -88,3 +86,3 @@ const readFile = promisify(fs.readFile);

.skip(5)
.map(property('absolute'))
.map(x => x.absolute)
.subscribe(unlink)

@@ -157,3 +155,3 @@ );

debug('skip writing a cache, returning raw data stream');
return rawData.distinctUntilChanged(property('data'), isEqual).publish();
return rawData.distinctUntilChanged(x => x.data, isEqual).publish();
}

@@ -174,3 +172,3 @@

.merge(data)
.distinctUntilChanged(property('data'), isEqual)
.distinctUntilChanged(x => x.data, isEqual)
.flatMapLatest(writeCache.bind(null, tmpDir))

@@ -177,0 +175,0 @@ .publish();

@@ -43,4 +43,2 @@ /*

const { partial } = require('./nodash');
const { promisify } = require('util');

@@ -87,6 +85,6 @@

case '.json':
return partial(parseJSON, filename);
return parseJSON.bind(null, filename);
case '.cson':
return partial(parseCSON, filename);
return parseCSON.bind(null, filename);

@@ -147,3 +145,3 @@ default:

const load = partial(fromPromiseFunction, () => {
const load = fromPromiseFunction.bind(null, () => {
debug('readFile %s', filename);

@@ -150,0 +148,0 @@ return readFile(filename, 'utf8')

@@ -41,4 +41,2 @@ /*

const { partial } = require('./nodash');
function httpResource({ fetch, interval }) {

@@ -86,3 +84,3 @@ let lastETag;

const load = partial(fromPromiseFunction, () =>
const load = fromPromiseFunction.bind(null, () =>
fetch({

@@ -89,0 +87,0 @@ 'If-None-Match': lastETag,

{
"name": "shared-store",
"version": "4.0.4",
"version": "4.0.5",
"description": "Keeping config data in sync",

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

"dependencies": {
"@types/rx-lite": "^4.0.6",
"@types/rx-lite-aggregates": "^4.0.3",
"cson-parser": "^4.0.4",
"cson-parser": "^4.0.5",
"debug": "^4.1.1",

@@ -50,15 +48,16 @@ "deep-freeze": "0.0.1",

"devDependencies": {
"assertive": "^5.0.1",
"eslint": "^6.8.0",
"eslint-config-groupon": "^9.0.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.3",
"mocha": "^7.1.2",
"nlm": "^4.2.0",
"nyc": "^15.0.1",
"prettier": "^2.0.5",
"@types/rx-lite": "^4.0.6",
"@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",
"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",
"rimraf": "^3.0.2",
"tmp": "^0.1.0"
"tmp": "^0.2.1"
},

@@ -65,0 +64,0 @@ "author": {

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