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

ee-query-builder

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ee-query-builder - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

6

lib/QueryBuilder.js

@@ -7,3 +7,2 @@ !function(){

, moment = require('moment')
, async = require('ee-async')
, Functions = require('./Functions');

@@ -43,2 +42,3 @@

this._escape = options.escape;
this._type = options.type;

@@ -94,3 +94,3 @@ this._functions = new Functions(options);

SQLString += ' WHERE ' + (this._renderFilter(parameters, query.filter || {}) || 1);
if(query.limit && !isNaN(parseInt(query.limit, 10))) SQLString += ' LIMIT ' + parseInt(query.limit, 10);

@@ -122,2 +122,4 @@ if(query.offset && !isNaN(parseInt(query.offset, 10))) SQLString += ' OFFSET ' + parseInt(query.offset, 10);

if (this._type === 'postgres' && query.returning) SQLString += ' RETURNING '+this._escapeId(query.returning);
return {SQLString: SQLString, parameters: parameters};

@@ -124,0 +126,0 @@ }

{
"name" : "ee-query-builder"
, "description" : "query builder for ee-orm"
, "version" : "0.1.3"
, "version" : "0.1.4"
, "homepage" : "https://github.com/eventEmitter/ee-query-builder"

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

, "ee-arguments" : "0.1.x"
, "ee-async" : "0.1.x"
, "moment" : "2.5.x"

@@ -29,0 +28,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