sql-typechecker 0.0.93 → 0.0.95
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/out/cli.js +2 -2
- package/out/cli.js.map +1 -1
- package/package.json +1 -1
package/out/cli.js
CHANGED
|
@@ -243591,7 +243591,7 @@ function genDeserializeSimpleT(t, literalVar) {
|
|
|
243591
243591
|
} else if (t.name.name === "time") {
|
|
243592
243592
|
return `LocalTime.parse(${literalVar})`;
|
|
243593
243593
|
} else if (t.name.name === "timestamp with time zone") {
|
|
243594
|
-
return `ZonedDateTime.parse(${literalVar}.trim().replace(/([\\+\\-]\\d\\d)$/, (_, cap) => cap + ":00").replace(" ", "T")).toInstant()`;
|
|
243594
|
+
return `ZonedDateTime.parse(${literalVar}.trim().replace(/([\\+\\-]\\d\\d)$/, (_:string, cap:string) => cap + ":00").replace(" ", "T")).toInstant()`;
|
|
243595
243595
|
} else if (t.name.name === "timestamp without time zone") {
|
|
243596
243596
|
return `LocalDateTime.parse(${literalVar}.replace(" ", "T"))`;
|
|
243597
243597
|
} else if (t.name.name === "jsonb") {
|
|
@@ -243684,7 +243684,7 @@ function genEnum(enu) {
|
|
|
243684
243684
|
function getImports() {
|
|
243685
243685
|
return `
|
|
243686
243686
|
import type { Pool } from "pg";
|
|
243687
|
-
import { ZonedDateTime, LocalDate, LocalTime, LocalDateTime} from "@js-joda/core";
|
|
243687
|
+
import { ZonedDateTime, Instant, LocalDate, LocalTime, LocalDateTime} from "@js-joda/core";
|
|
243688
243688
|
import {parse as parseArray} from "postgres-array";
|
|
243689
243689
|
`;
|
|
243690
243690
|
}
|