Socket
Socket
Sign inDemoInstall

bx

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.2

12

lib/bx.js

@@ -209,3 +209,13 @@ var tv = require('tv4');

}
return this.data;
var data = {};
for (var key in this.data) {
var val = this.get(key);
if (val) {
data[key] = val;
}
}
return data;
};

@@ -212,0 +222,0 @@

2

package.json
{
"name": "bx",
"version": "0.3.0",
"version": "0.3.2",
"description": "in-memory storage for node",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -29,6 +29,3 @@ var expect = require('chai').expect;

expect(stuff.all()).to.eql({
name: {
value: 'Bob',
_exp: undefined
}
name: 'Bob'
});

@@ -52,18 +49,8 @@ });

it('should add a bunch of items and check that the data object is correct', function() {
for (var i = 0; i < 3; i++) {
for (var i = 1; i < 3; i++) {
stuff.put(i, i);
}
expect(stuff.all()).to.eql({
0: {
value: 0,
_exp: undefined
},
1: {
value: 1,
_exp: undefined
},
2: {
value: 2,
_exp: undefined
}
1: 1,
2: 2
});

@@ -75,10 +62,4 @@ });

expect(stuff.all()).to.eql({
1: {
value: 1,
_exp: undefined
},
2: {
value: 2,
_exp: undefined
}
1: 1,
2: 2
});

@@ -85,0 +66,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc