@inflector/optima 1.1.6 → 1.1.7
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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -296,7 +296,7 @@ var escape = (val) => {
|
|
|
296
296
|
if (val === null || val === void 0) return "NULL";
|
|
297
297
|
if (typeof val === "bigint") return val.toString();
|
|
298
298
|
if (typeof val === "string") {
|
|
299
|
-
return `'${val.replace(
|
|
299
|
+
return `'${val.replace(/'/g, "''")}'`;
|
|
300
300
|
}
|
|
301
301
|
if (val instanceof Date) return `'${val.toISOString()}'`;
|
|
302
302
|
if (typeof val === "boolean") return val ? "TRUE" : "FALSE";
|
|
@@ -305,7 +305,7 @@ var escape = (val) => {
|
|
|
305
305
|
val,
|
|
306
306
|
(_, v) => typeof v === "bigint" ? v.toString() : v
|
|
307
307
|
);
|
|
308
|
-
return `'${safe.replace(
|
|
308
|
+
return `'${safe.replace(/'/g, "''")}'`;
|
|
309
309
|
}
|
|
310
310
|
return String(val);
|
|
311
311
|
};
|