@inflector/optima-pg 1.0.8 → 1.1.0

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 +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -493,6 +493,12 @@ 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 [
498
+ k,
499
+ v.replace(" ", "T").replace(/\.\d+/, "").replace(/\+\d+(:\d+)?$/, "Z")
500
+ ];
501
+ }
496
502
  return [k, v];
497
503
  })
498
504
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/optima-pg",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "author": "Inflector",
6
6
  "main": "./dist/index.js",