New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodesi

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodesi - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

lib/cache.js

@@ -36,2 +36,6 @@ /* jshint node:true */

Cache.prototype.toString = function() {
return JSON.stringify(this.storage);
};
module.exports = Cache;

2

package.json
{
"name": "nodesi",
"version": "1.0.0",
"version": "1.0.1",
"description": "ESI: the good parts in node.js",

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

@@ -60,2 +60,27 @@ /* jshint node:true */

it('should be able to dump cache to string', function () {
// given
var cache = new Cache({
clock: {
now: function() {
return 0;
}
}
});
// when
cache.set('x', {
value: 'y'
});
assert.equal(cache.toString(), JSON.stringify({
x: {
value: 'y',
expirationTime: 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