@immense/vue-pom-generator 1.0.97 → 1.0.99

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.mjs CHANGED
@@ -3011,9 +3011,10 @@ Fix: either (1) include ${bestKeyPreservePlaceholder} in your :${attrLabel} temp
3011
3011
  }
3012
3012
  }
3013
3013
  }
3014
+ const selectorParameterName = args.selectorParameterName?.trim() || "key";
3014
3015
  const getKeyTypeFromValues = (values) => {
3015
3016
  if (!values || values.length === 0) {
3016
- return "string";
3017
+ return selectorParameterName === "key" ? "string" : "string | number | boolean | bigint";
3017
3018
  }
3018
3019
  return values.map((v) => JSON.stringify(v)).join(" | ");
3019
3020
  };
@@ -3038,7 +3039,6 @@ Fix: either (1) include ${bestKeyPreservePlaceholder} in your :${attrLabel} temp
3038
3039
  };
3039
3040
  const normalizedRole = normalizeNativeRole(args.nativeRole) ?? "button";
3040
3041
  const targetPageObjectModelClass = entryOverrides.targetPageObjectModelClass;
3041
- const selectorParameterName = args.selectorParameterName?.trim() || "key";
3042
3042
  const pomKeyPattern = dataTestId.kind === "template" ? toPomKeyPattern(dataTestId, selectorParameterName) : null;
3043
3043
  const formattedDataTestIdForPom = dataTestId.kind === "template" ? pomKeyPattern.formatted : dataTestId.value;
3044
3044
  const selectorPatternKind = dataTestId.kind === "template" ? "parameterized" : "static";