eslint-plugin-zod-v4 0.4.0 → 0.4.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
@@ -12842,11 +12842,12 @@ function isModuleLevelFactoryFunction(node) {
12842
12842
  }
12843
12843
 
12844
12844
  // src/rules/prefer-error-param.ts
12845
+ var ZOD_OBJECT_FACTORIES = ["object", "strictObject", "looseObject"];
12845
12846
  function isDirectZodObjectCall(node) {
12846
12847
  if (node.callee.type !== "MemberExpression") return false;
12847
12848
  const { object, property } = node.callee;
12848
12849
  if (object.type === "Identifier" && object.name === "z") {
12849
- return property.type === "Identifier" && property.name === "object";
12850
+ return property.type === "Identifier" && ZOD_OBJECT_FACTORIES.includes(property.name);
12850
12851
  }
12851
12852
  return false;
12852
12853
  }
@@ -12893,7 +12894,7 @@ var preferErrorParam = createRule({
12893
12894
  // src/index.ts
12894
12895
  var meta = {
12895
12896
  name: "eslint-plugin-zod-v4",
12896
- version: "0.4.0",
12897
+ version: "0.4.1",
12897
12898
  namespace: "zod-v4"
12898
12899
  };
12899
12900
  var rules = {