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

data-cache

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-cache - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

11

cache-spec.js

@@ -102,5 +102,14 @@ var Cache = require('./cache');

it('should be possible to unregister a model', function() {
cache.unregisterModel();
cache.unregisterModel('spaceship');
});
it('should be possible to add data without having a model', function() {
var planet = {
type: 'planet',
id: 1,
pos: {x: 0, y: 0}
};
cache.fill(planet);
});
it('should be optional to have registered models', function() {

@@ -107,0 +116,0 @@ cache.unregisterModel();

@@ -0,1 +1,3 @@

var util = require('util');
function AppModel(data) {

@@ -14,4 +16,5 @@ this.setData(data);

function BasicModel() {}
util.inherits(BasicModel, AppModel);
module.exports.AppModel = AppModel;
module.exports.BasicModel = BasicModel;

69

package.json
{
"name": "data-cache",
"version": "0.0.5",
"description": "",
"main": "cache.js",
"scripts": {
"test": "gulp test",
"build": "gulp build",
"coverage": "gulp coverage"
},
"keywords": [
"data",
"cache"
],
"author": "Julian Hollmann",
"license": "BSD-2-Clause",
"devDependencies": {
"gulp": "~3.8.7",
"gulp-browserify": "~0.5.0",
"sinon": "~1.10.3",
"referee": "~1.0.3",
"gulp-mocha": "~1.0.0",
"gulp-watch": "~0.6.9",
"referee-sinon": "~1.0.2",
"setup-referee-sinon": "~0.2.0",
"gulp-rename": "~1.2.0",
"gulp-uglify": "~0.3.1",
"gulp-istanbul": "~0.2.2"
},
"dependencies": {
"when": "~3.4.4",
"asap": "~1.0.0",
"events": "~1.0.1",
"i": "~0.3.2"
}
"name": "data-cache",
"version": "0.0.6",
"description": "",
"main": "cache.js",
"repository": "https://github.com/nerdbeere/data-cache.git",
"scripts": {
"test": "gulp test",
"build": "gulp build",
"coverage": "gulp coverage"
},
"keywords": [
"data",
"cache"
],
"author": "Julian Hollmann",
"license": "BSD-2-Clause",
"devDependencies": {
"gulp": "~3.8.7",
"gulp-browserify": "~0.5.0",
"sinon": "~1.10.3",
"referee": "~1.0.3",
"gulp-mocha": "~1.0.0",
"gulp-watch": "~0.6.9",
"referee-sinon": "~1.0.2",
"setup-referee-sinon": "~0.2.0",
"gulp-rename": "~1.2.0",
"gulp-uglify": "~0.3.1",
"gulp-istanbul": "~0.2.2"
},
"dependencies": {
"when": "~3.4.4",
"asap": "~1.0.0",
"events": "~1.0.1",
"i": "~0.3.2"
}
}
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