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

volos-connectors-common

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

volos-connectors-common - npm Package Compare versions

Comparing version 0.0.9 to 0.0.11

39

lib/sqlServerBase.js

@@ -47,3 +47,9 @@ var serverBase = require('./serverBase');

var limit = this.getParameter(req.query, 'limit', this.defaults.limit);
var limit;
var id = req.params.id;
if (id) {
limit = 1;
} else {
limit = this.getParameter(req.query, 'limit', this.defaults.limit);
}
queryString += " LIMIT " + limit;

@@ -157,16 +163,25 @@

var id = req.params.id;
if (id) {
queryString = this.addWhere(queryString, queryInfo.idName + '=\'' + id + '\'');
for (var key in req.params) {
if (key === 'id') {
queryString = this.addWhere(queryString, queryInfo.idName + ' = \'' + req.params.id + '\'');
} else if (queryInfo.templateParameters) {
var whereFragment = queryInfo.templateParameters[key];
if (whereFragment) {
var templatedWhereFragment = whereFragment.replace('{' + key + '}', req.params[key]);
queryString = this.addWhere(queryString, templatedWhereFragment);
}
}
}
for (var key in nonstockQueryParameters) {
if (queryInfo.queryParameters[key] != undefined) {
var whereFragment = queryInfo.queryParameters[key];
var templatedWhereFragment = whereFragment.replace('{' + key + '}', nonstockQueryParameters[key]);
queryString = this.addWhere(queryString, templatedWhereFragment);
}
if (queryInfo.queryParameters) {
for (var key in nonstockQueryParameters) {
var whereFragment = queryInfo.queryParameters[key];
if (whereFragment) {
var templatedWhereFragment = whereFragment.replace('{' + key + '}', nonstockQueryParameters[key]);
queryString = this.addWhere(queryString, templatedWhereFragment);
}
}
}
return(queryString);
return queryString;
}

@@ -198,2 +213,2 @@

exports.SqlServerBase = SqlServerBase;
exports.SqlServerBase = SqlServerBase;
{
"name": "volos-connectors-common",
"version": "0.0.9",
"version": "0.0.11",
"description": "Basic support library for Volos Connectors.",

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

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