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

sqlquerybuilder

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlquerybuilder - npm Package Compare versions

Comparing version 0.0.26 to 0.0.27

4

lib/pagingAndLists.js

@@ -14,3 +14,3 @@ module.exports = function pagingAndLists(self) {

self.processListRequest = function processListRequest(reqquery) {
self.processListRequest = function processListRequest(reqquery, defaultSort) {
if(reqquery.query){

@@ -24,3 +24,3 @@ reqquery = reqquery.query;

if (reqquery.sidx && reqquery.sord) {
self.orderBy(reqquery.sidx, reqquery.sord);
self.orderBy(reqquery.sidx || defaultSort, reqquery.sord);
}

@@ -27,0 +27,0 @@ if (reqquery.rows) {

@@ -67,11 +67,10 @@ module.exports = function where(self) {

var filter = filters[i];
// if(filter.charAt(0) === '('){
// filter = filter.substr(1);
// }
// if(filter.lastIndexOf(')') === filter.length -1) { filter = filter.substr(0,filter.length-1);}
if (filter.indexOf('.DisplayName') !== -1) {
filter = filter.replace(/\b.DisplayName/ig, "DisplayName");
}
if (filter.indexOf('.Value') !== -1) {
filter = filter.replace(/\b.Value/ig, "Value");
}

@@ -78,0 +77,0 @@ // IsActive

{
"name": "sqlquerybuilder",
"version": "0.0.26",
"version": "0.0.27",
"description": "Highly opinionated Sql Server Query Writer, mostly for internal use.",

@@ -5,0 +5,0 @@ "main": "./lib/index",

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