@remnawave/backend-contract 0.0.42 → 0.0.43

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,6 +23,6 @@ exports.NodesSchema = zod_1.z.object({
23
23
  cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
24
24
  cpuModel: zod_1.z.nullable(zod_1.z.string()),
25
25
  totalRam: zod_1.z.nullable(zod_1.z.string()),
26
- createdAt: zod_1.z.date(),
27
- updatedAt: zod_1.z.date(),
26
+ createdAt: zod_1.z.string().transform((str) => new Date(str)),
27
+ updatedAt: zod_1.z.string().transform((str) => new Date(str)),
28
28
  });
@@ -23,6 +23,6 @@ export const NodesSchema = z.object({
23
23
  cpuModel: z.nullable(z.string()),
24
24
  totalRam: z.nullable(z.string()),
25
25
 
26
- createdAt: z.date(),
27
- updatedAt: z.date(),
26
+ createdAt: z.string().transform((str) => new Date(str)),
27
+ updatedAt: z.string().transform((str) => new Date(str)),
28
28
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "description": "A contract library for Remnawave",
5
5
  "main": "index.js",
6
6
  "scripts": {