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

downstairs

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

downstairs - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

5

lib/record.js

@@ -41,3 +41,6 @@ var async = require('async')

if (result){
return self._model.update(data, {id: self.id}, cb);
if (!self.id) {
self._model.create(data, cb);
}
else self._model.update(data, {id: self.id}, cb);
}

@@ -44,0 +47,0 @@ else {

2

package.json
{
"name": "downstairs",
"description": "A light ORM wrapped about brianc's node-sql and node-pg",
"version": "0.3.4",
"version": "0.3.5",
"homepage": "https://github.com/moneytribeaustralia/downstairs.js",

@@ -6,0 +6,0 @@ "author": {

@@ -325,3 +325,15 @@ var Downstairs = require('../lib/downstairs')

});
it('parses multiple order bys', function(done){
var data = {password: '5f4dcc3b5aa765d61d8327deb882cf99', username: 'anthony', email: 'anthony@moneytribe.com.au'};
ectypes.User.create(data, function(err, user){
User.findAll({queryParameters: {orderBy: 'id ASC, username DESC'}}, function(err, users){
users[0].username.should.equal('andrew');
users[1].username.should.equal('zack');
users[2].username.should.equal('anthony');
done()
});
});
});
})
});
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