New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

loopback-connector

Package Overview
Dependencies
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-connector - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

8

CHANGES.md

@@ -0,1 +1,9 @@

2015-05-22, Version 2.1.2
=========================
* Fix for https://github.com/strongloop/loopback-connector-mssql/issues/45 (Raymond Feng)
* Fix the jsdoc for applyPagination (Raymond Feng)
2015-05-20, Version 2.1.1

@@ -2,0 +10,0 @@ =========================

30

lib/sql.js

@@ -863,17 +863,21 @@ var util = require('util');

var p = props[key];
if (p == null) {
// Unknown property, ignore it
debug('Unknown property %s is skipped for model %s', key, model);
continue;
}
if (excludeIds && p.id) {
continue;
}
if (p) {
var k = this.columnEscaped(model, key);
var v = this.toColumnValue(p, data[key]);
if (v !== undefined) {
fields.names.push(k);
if (v instanceof ParameterizedSQL) {
fields.columnValues.push(v);
} else {
fields.columnValues.push(new ParameterizedSQL(PLACEHOLDER, [v]));
}
fields.properties.push(p);
var k = this.columnEscaped(model, key);
var v = this.toColumnValue(p, data[key]);
if (v !== undefined) {
fields.names.push(k);
if (v instanceof ParameterizedSQL) {
fields.columnValues.push(v);
} else {
fields.columnValues.push(new ParameterizedSQL(PLACEHOLDER, [v]));
}
fields.properties.push(p);
}

@@ -1296,5 +1300,3 @@ }

* @param {ParameterizedSQL} stmt The sql statement
* @param {Number} limit The maximum number of records to be fetched
* @param {Number} offset The offset to start fetching records
* @param {String[]} order The sorting criteria
* @param {Object} filter The filter object from the query
*/

@@ -1301,0 +1303,0 @@ SQLConnector.prototype.applyPagination = function(model, stmt, filter) {

{
"name": "loopback-connector",
"version": "2.1.1",
"version": "2.1.2",
"description": "Building blocks for LoopBack connectors",

@@ -5,0 +5,0 @@ "keywords": [

@@ -146,3 +146,4 @@ var expect = require('chai').expect;

it('builds fields for columns', function() {
var fields = connector.buildFields('customer', {name: 'John', vip: true});
var fields = connector.buildFields('customer',
{name: 'John', vip: true, unknown: 'Random'});
expect(fields.names).to.eql(['`NAME`', '`VIP`']);

@@ -149,0 +150,0 @@ expect(fields.columnValues[0].toJSON()).to.eql(

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