@mxpicture/tesla-superchargers-mate 0.1.21 → 0.1.22

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.
@@ -1 +1 @@
1
- {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/store/db.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,MAAM,MAAM,GAAG,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE9C,oFAAoF;AACpF,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC;AAIlC;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,QAAO,GAUlB,CAAC;AAEN,+EAA+E;AAC/E,eAAO,MAAM,MAAM,QAAa,OAAO,CAAC,IAAI,CAG3C,CAAC"}
1
+ {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/store/db.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,MAAM,MAAM,GAAG,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE9C,oFAAoF;AACpF,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC;AAIlC;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,QAAO,GAelB,CAAC;AAEN,+EAA+E;AAC/E,eAAO,MAAM,MAAM,QAAa,OAAO,CAAC,IAAI,CAG3C,CAAC"}
package/dist/store/db.js CHANGED
@@ -16,6 +16,11 @@ export const sql = () => (_sql ??= postgres({
16
16
  max: 10, // pool size
17
17
  idle_timeout: 20,
18
18
  connect_timeout: 10,
19
+ // TIME columns (pricebook start/end) are inserted from JS Dates, which
20
+ // postgres.js sends as timestamptz; the implicit timestamptz->time cast
21
+ // uses the session zone, so a non-UTC session (e.g. prod's Europe/Berlin)
22
+ // shifts them. Pin UTC so wall-clock times round-trip unchanged.
23
+ connection: { TimeZone: "UTC" },
19
24
  }));
20
25
  /** Close the pool if it was ever created, so the process can exit promptly. */
21
26
  export const endSql = async () => {
@@ -1 +1 @@
1
- {"version":3,"file":"db.js","sourceRoot":"","sources":["../../src/store/db.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAOhC,IAAI,IAAI,GAAe,IAAI,CAAC;AAE5B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,GAAQ,EAAE,CAC3B,CAAC,IAAI,KAAK,QAAQ,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM;IACxB,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI;IACxC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;IAChC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM;IAC5B,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;IAChC,GAAG,EAAE,EAAE,EAAE,YAAY;IACrB,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;CACpB,CAAC,CAAC,CAAC;AAEN,+EAA+E;AAC/E,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,IAAmB,EAAE;IAC9C,IAAI,IAAI;QAAE,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;IAC3B,IAAI,GAAG,IAAI,CAAC;AACd,CAAC,CAAC"}
1
+ {"version":3,"file":"db.js","sourceRoot":"","sources":["../../src/store/db.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAOhC,IAAI,IAAI,GAAe,IAAI,CAAC;AAE5B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,GAAQ,EAAE,CAC3B,CAAC,IAAI,KAAK,QAAQ,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM;IACxB,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI;IACxC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;IAChC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM;IAC5B,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;IAChC,GAAG,EAAE,EAAE,EAAE,YAAY;IACrB,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;IACnB,uEAAuE;IACvE,wEAAwE;IACxE,0EAA0E;IAC1E,iEAAiE;IACjE,UAAU,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE;CAChC,CAAC,CAAC,CAAC;AAEN,+EAA+E;AAC/E,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,IAAmB,EAAE;IAC9C,IAAI,IAAI;QAAE,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;IAC3B,IAAI,GAAG,IAAI,CAAC;AACd,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxpicture/tesla-superchargers-mate",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "TeslaMate integration",
5
5
  "type": "module",
6
6
  "author": "MXPicture",
@@ -48,7 +48,7 @@
48
48
  "access": "public"
49
49
  },
50
50
  "dependencies": {
51
- "@mxpicture/tesla-superchargers-generated": "^0.1.21",
51
+ "@mxpicture/tesla-superchargers-generated": "^0.1.22",
52
52
  "postgres": "^3.4.9",
53
53
  "short-uuid": "^6.0.3",
54
54
  "zod": "^4.3.6"