Socket
Socket
Sign inDemoInstall

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.15 to 0.1.16

19

lib/Functions.js

@@ -9,5 +9,14 @@ !function(){

module.exports = new Class({
module.exports = new Class({
aggregateFunctions: {
avg : 'AVG'
, sum : 'SUM'
, min : 'MIN'
, max : 'MAX'
, count : 'COUNT'
}
init: function(options){
, init: function(options){
this._escapeId = options.escapeId;

@@ -18,2 +27,8 @@ this._escape = options.escape;

, renderSelectFunction: function(tablename, command) {
return this.aggregateFunctions[command.fn]+'('+this._escapeId(tablename)+'.'+this._escapeId(command.value)+')'
}
, in: function(command, paramaters){

@@ -20,0 +35,0 @@ //if (command.values.length) {

@@ -294,2 +294,5 @@ !function(){

}
else if (command.fn) {
selects.push(this._functions.renderSelectFunction(tablename, command));
}
break;

@@ -296,0 +299,0 @@ }

2

package.json
{
"name" : "ee-query-builder"
, "description" : "query builder for ee-orm"
, "version" : "0.1.15"
, "version" : "0.1.16"
, "homepage" : "https://github.com/eventEmitter/ee-query-builder"

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

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