@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.
Files changed (2) hide show
  1. package/dist/index.js +2 -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(/\\/g, "\\\\").replace(/'/g, "''")}'`;
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(/\\/g, "\\\\").replace(/'/g, "''")}'`;
308
+ return `'${safe.replace(/'/g, "''")}'`;
309
309
  }
310
310
  return String(val);
311
311
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/optima",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "author": "Inflector",
6
6
  "main": "./dist/index.js",