@ledgerhq/ledger-wallet-provider 2.0.0 → 2.0.2

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.js CHANGED
@@ -6939,7 +6939,7 @@ function Lr(e, t = "USD", n = jn) {
6939
6939
  }).format(Number(e));
6940
6940
  }
6941
6941
  function Rr(e, t = jn) {
6942
- let n = parseFloat(e);
6942
+ let n = parseFloat(e.replace(/,/g, ""));
6943
6943
  return isNaN(n) ? e : new Intl.NumberFormat(t, { maximumFractionDigits: 8 }).format(n);
6944
6944
  }
6945
6945
  function zr(e, t) {
@@ -9124,7 +9124,7 @@ var Si = {
9124
9124
  },
9125
9125
  type: "module",
9126
9126
  types: "./dist/index.d.ts",
9127
- version: "2.0.0"
9127
+ version: "2.0.2"
9128
9128
  }, Ci = 7, N = class extends e {
9129
9129
  constructor(...e) {
9130
9130
  super(...e), this.hasDeveloperMode = !1, this.versionClickCount = 0;
@@ -16,7 +16,8 @@ export declare function formatFiatValue(value: number | string, currencyCode?: s
16
16
  /**
17
17
  * Formats a token/crypto balance as a locale-aware number string.
18
18
  *
19
- * @param value - The balance string (e.g., "1234.5678")
19
+ * @param value - The balance string (e.g., "1234.5678" or "1,234.5678"). Core
20
+ * formats balances with an English grouping separator, which is stripped before parsing.
20
21
  * @param locale - BCP 47 locale tag (e.g., "en-US", "fr-FR")
21
22
  * @returns Formatted string (e.g., "1,234.5678" for en-US, "1 234,5678" for fr-FR)
22
23
  *
@@ -1 +1 @@
1
- {"version":3,"file":"format-fiat.d.ts","sourceRoot":"","sources":["../../src/utils/format-fiat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAIzE;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,YAAY,SAAQ,EACpB,MAAM,SAAiB,GACtB,MAAM,CAMR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,EACb,MAAM,SAAiB,GACtB,MAAM,CAMR;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,WAAW,GAAG,SAAS,EACpC,MAAM,EAAE,MAAM,GACb,MAAM,CAGR"}
1
+ {"version":3,"file":"format-fiat.d.ts","sourceRoot":"","sources":["../../src/utils/format-fiat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAIzE;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,YAAY,SAAQ,EACpB,MAAM,SAAiB,GACtB,MAAM,CAMR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,EACb,MAAM,SAAiB,GACtB,MAAM,CAMR;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,WAAW,GAAG,SAAS,EACpC,MAAM,EAAE,MAAM,GACb,MAAM,CAGR"}
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "lit": "3.3.3",
8
8
  "lottie-web": "^5.12.2",
9
9
  "motion": "^12.23.6",
10
- "@ledgerhq/ledger-wallet-provider-core": "2.0.0"
10
+ "@ledgerhq/ledger-wallet-provider-core": "2.0.2"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@storybook/web-components": "10.6.0",
@@ -47,5 +47,5 @@
47
47
  },
48
48
  "type": "module",
49
49
  "types": "./dist/index.d.ts",
50
- "version": "2.0.0"
50
+ "version": "2.0.2"
51
51
  }