@descope/flow-components 2.0.483 → 2.0.485

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.js CHANGED
@@ -87974,7 +87974,7 @@ descope-boolean-field-internal {
87974
87974
 
87975
87975
  if (attrName === 'data-password-policy-value-passwordstrength') {
87976
87976
  const passwordStrength = parseInt(newValue);
87977
- if (!Number.isNaN(passwordStrength) && passwordStrength > 0) {
87977
+ if (!Number.isNaN(passwordStrength) && passwordStrength >= 0) {
87978
87978
  this.#overrides = {
87979
87979
  ...this.#overrides,
87980
87980
  passwordstrength: {
@@ -87987,7 +87987,7 @@ descope-boolean-field-internal {
87987
87987
 
87988
87988
  if (attrName === 'data-password-policy-actual-passwordstrength') {
87989
87989
  const ln = Number(newValue);
87990
- if (!Number.isNaN(ln) && ln > 0) {
87990
+ if (!Number.isNaN(ln) && ln >= 0) {
87991
87991
  this.#overrides = {
87992
87992
  ...this.#overrides,
87993
87993
  passwordstrength: { ...this.#overrides?.passwordstrength, actual: ln },
@@ -88072,7 +88072,11 @@ descope-boolean-field-internal {
88072
88072
  const exp = new RegExp(interpolateString(pattern, data));
88073
88073
  validationResult.valid = exp.test(this.value);
88074
88074
  } else if (compare) {
88075
- validationResult.valid = this.compareValues(compare, data.expected, data.actual);
88075
+ validationResult.valid = this.compareValues(
88076
+ compare,
88077
+ data?.expected ?? -1,
88078
+ data?.actual ?? -1
88079
+ );
88076
88080
  }
88077
88081
 
88078
88082
  results.push(validationResult);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.483",
3
+ "version": "2.0.485",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -68,7 +68,7 @@
68
68
  "eslint-config-airbnb-typescript": "18.0.0",
69
69
  "eslint-config-prettier": "10.1.1",
70
70
  "eslint-config-standard": "17.1.0",
71
- "eslint-import-resolver-typescript": "4.1.1",
71
+ "eslint-import-resolver-typescript": "4.2.1",
72
72
  "eslint-plugin-import": "2.31.0",
73
73
  "eslint-plugin-jest": "28.11.0",
74
74
  "eslint-plugin-jest-dom": "5.5.0",
@@ -104,7 +104,7 @@
104
104
  "typescript": "^5.7.2"
105
105
  },
106
106
  "dependencies": {
107
- "@descope/web-components-ui": "1.53.0"
107
+ "@descope/web-components-ui": "1.54.0"
108
108
  },
109
109
  "peerDependencies": {
110
110
  "react": ">= 18"