pocketbase-zod-schema 0.2.0 → 0.2.1

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/dist/index.cjs CHANGED
@@ -2225,11 +2225,8 @@ function buildFieldDefinition(fieldName, zodType) {
2225
2225
  // Default to false, can be configured later
2226
2226
  };
2227
2227
  if (fieldDef.options) {
2228
- const { min, max, pattern, ...relationSafeOptions } = fieldDef.options;
2229
- console.log("min", min);
2230
- console.log("max", max);
2231
- console.log("pattern", pattern);
2232
- fieldDef.options = Object.keys(relationSafeOptions).length > 0 ? relationSafeOptions : void 0;
2228
+ const { min: _min, max: _max, pattern: _pattern, ...relationSafeOptions } = fieldDef.options;
2229
+ fieldDef.options = Object.keys(relationSafeOptions).length ? relationSafeOptions : void 0;
2233
2230
  }
2234
2231
  }
2235
2232
  return fieldDef;