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

cqrsnode.dbstore

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cqrsnode.dbstore - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

11

lib/tiny.js

@@ -10,3 +10,3 @@ var Tiny = require('tiny');

for(var n in cfg.names){
Tiny(cfg.names[n],function(err,db){
Tiny('dbs/'+cfg.names[n],function(err,db){
dbs[db.name] = db;

@@ -17,12 +17,11 @@ });

this.remove = function(AggreName,id,callback){
dbs[AggreName].remove(id,callback)
dbs['dbs/'+AggreName].remove(id,callback)
}
this.save = function(AggreName,data,callback){
console.log(dbs)
dbs[AggreName].set(data.id,data,callback)
dbs['dbs/'+AggreName].set(data.id,data,callback)
}
this.update = function(AggreName,id,data,callback){
dbs[AggreName].update(id,data,callback);
dbs['dbs/'+AggreName].update(id,data,callback);
}

@@ -32,3 +31,3 @@

var name = [].shift.apply(arguments);
var db = dbs[name];
var db = dbs["dbs/"+name];
return db.find.apply(db,arguments);

@@ -35,0 +34,0 @@ }

{
"name": "cqrsnode.dbstore",
"version": "0.0.3",
"version": "0.0.4",
"description": "db store for cqrsnode",

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

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