modli-postgres
Advanced tools
Comparing version 3.1.0 to 3.2.0
{ | ||
"name": "modli-postgres", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Modli adapter for PostgreSQL", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -77,3 +77,3 @@ const { Pool } = require('pg') | ||
} | ||
vals.push(`'${data[key]}'`) | ||
vals.push(typeof data[key] === 'string' ? `'${data[key].replace(/'/g, "''")}'` : data[key]) | ||
acc.push(key) | ||
@@ -126,2 +126,3 @@ return acc | ||
} | ||
if (typeof data[key] === 'string') data[key] = data[key].replace(/'/g, "''") | ||
let comma = (i !== len) ? ', ' : '' | ||
@@ -128,0 +129,0 @@ changes += `${key}='${data[key]}'${comma}` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121911
174