@inflector/optima-pg 1.0.8 → 1.0.9

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 +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -493,6 +493,9 @@ var Table = class {
493
493
  if (vectorCols.has(k) && typeof v === "string") {
494
494
  return [k, JSON.parse(v)];
495
495
  }
496
+ if (typeof v === "string" && this.isPostgresTimestamp(v)) {
497
+ return [k, v.replace(" ", "T").replace(/\+\d+(:\d+)?$/, "Z")];
498
+ }
496
499
  return [k, v];
497
500
  })
498
501
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/optima-pg",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "author": "Inflector",
6
6
  "main": "./dist/index.js",