@digitalwalletcorp/sql-builder 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalwalletcorp/sql-builder",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "This is a library for building SQL",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -429,7 +429,7 @@ export class SQLBuilder {
429
429
  default:
430
430
  // string
431
431
  if (Array.isArray(value)) {
432
- result = `(${value.map(v => typeof v === 'string' ? `'${v}'` : v).join(',')})`;
432
+ result = `(${value.map(v => typeof v === 'string' ? `'${this.escape(v)}'` : v).join(',')})`;
433
433
  } else {
434
434
  result = typeof value === 'string' ? `'${this.escape(value)}'` : value;
435
435
  }