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

confidence

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confidence - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

17

lib/store.js

@@ -24,3 +24,2 @@ // Load modules

this._tree = Hoek.clone(document);
return null;
};

@@ -46,3 +45,3 @@

if (invalid) {
return null;
return undefined;
}

@@ -53,6 +52,4 @@ }

for (var i = 0, il = path.length; i < il && node; ++i) {
if (typeof node !== 'object' ||
node instanceof Array) {
node = null;
if (typeof node !== 'object') {
node = undefined;
break;

@@ -218,3 +215,3 @@ }

return node || null; // Override undefined
return node;
}

@@ -230,3 +227,3 @@

if (!sub) {
return null;
return undefined;
}

@@ -240,3 +237,3 @@

else {
return null;
return undefined;
}

@@ -267,3 +264,3 @@ };

return node || null; // Override undefined
return node;
}

@@ -270,0 +267,0 @@

{
"name": "confidence",
"description": "Configuration API",
"version": "0.7.0",
"version": "0.7.1",
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)",

@@ -6,0 +6,0 @@ "repository": "git://github.com/spumko/confidence",

@@ -83,4 +83,4 @@ // Load modules

get('/key2/deeper', 'value', { env: 'production' });
get('/key2/deeper', null, { env: 'qa' });
get('/key2/deeper', null);
get('/key2/deeper', undefined, { env: 'qa' });
get('/key2/deeper', undefined);
get('/key5', {});

@@ -98,3 +98,3 @@ get('/', { key1: 'abc', key2: 2, key3: { sub1: 123 }, key4: [12, 13, 14], key5: {}, ab: 6 });

var value = store.get('key');
expect(value).to.equal(null);
expect(value).to.equal(undefined);
done();

@@ -101,0 +101,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