@nyig/models 0.2.30 → 0.2.31

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/index.js CHANGED
@@ -161,7 +161,7 @@ var import_zod4 = require("zod");
161
161
  function addAutoProps(original) {
162
162
  return original.extend({
163
163
  _id: import_zod4.z.string(),
164
- editedBy: import_zod4.z.string(),
164
+ editedBy: import_zod4.z.string().optional(),
165
165
  createdAt: import_zod4.z.coerce.date().optional(),
166
166
  updatedAt: import_zod4.z.coerce.date().optional()
167
167
  });
package/index.mjs CHANGED
@@ -74,7 +74,7 @@ import { z as z4 } from "zod";
74
74
  function addAutoProps(original) {
75
75
  return original.extend({
76
76
  _id: z4.string(),
77
- editedBy: z4.string(),
77
+ editedBy: z4.string().optional(),
78
78
  createdAt: z4.coerce.date().optional(),
79
79
  updatedAt: z4.coerce.date().optional()
80
80
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",