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

ee-orm

Package Overview
Dependencies
Maintainers
2
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ee-orm - npm Package Compare versions

Comparing version 0.3.10 to 0.3.11

17

lib/QueryBuilder.js

@@ -404,2 +404,19 @@ !function(){

, order: function(item, desc) {
if (!this._resource.query.order) this._resource.query.order = [];
this._resource.query.order.push({property: item, desc: !!desc});
return this;
}
, orderAsc: function(item) {
this.order(item, false);
return this;
}
, orderDesc: function(item) {
this.order(item, true);
return this;
}
, filter: function(filter) {

@@ -406,0 +423,0 @@ this._resource.query.filter = filter;

2

package.json
{
"name" : "ee-orm"
, "description" : "An easy to use ORM for node.js. Supports advanced eager loading, complex queries, joins, transactions, complex database clusters & connection pooling."
, "version" : "0.3.10"
, "version" : "0.3.11"
, "homepage" : "https://github.com/eventEmitter/ee-orm"

@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)"

@@ -27,3 +27,3 @@

db.event({title: ORM.like('Mapp%')}).find(cb);
db.event().order('title', true).findOne(cb);

@@ -30,0 +30,0 @@

@@ -499,3 +499,9 @@

describe('[Ordering]', function(){
it('should work :)', function(done){
db.event().order('title', true).find(expect('[{"id":3,"title":"Mapping Test","startdate":"1970-01-01T00:00:00.000Z","enddate":null,"canceled":true},{"id":2,"title":"Mapping Test","startdate":"1970-01-01T00:00:00.000Z","enddate":null,"canceled":null},{"id":4,"title":"Changed title","startdate":"1970-01-01T00:00:00.000Z","enddate":"2014-05-13T16:53:20.000Z","canceled":null},{"id":1,"title":"Changed title","startdate":"1970-01-01T00:00:00.000Z","enddate":null,"canceled":null}]', done));
});
});

@@ -502,0 +508,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