@sundaeswap/wallet-lite 0.0.66 → 0.0.68

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.
@@ -1 +1 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../src/utils/assets.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,KAAG,MAazD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,OAAQ,MAAM,KAAG,OAA8B,CAAC"}
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../src/utils/assets.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,KAAG,MASzD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,OAAQ,MAAM,KAAG,OAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sundaeswap/wallet-lite",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -47,9 +47,9 @@
47
47
  "react-error-boundary": "^4.0.13",
48
48
  "@tanstack/react-query": "^5.51.11",
49
49
  "lodash": "^4.17.21",
50
- "@cardano-sdk/core": "^0.37.0",
51
- "@cardano-sdk/dapp-connector": "^0.12.28",
52
- "@cardano-sdk/util": "^0.15.4"
50
+ "@cardano-sdk/core": "^0.40.1",
51
+ "@cardano-sdk/dapp-connector": "^0.12.38",
52
+ "@cardano-sdk/util": "^0.15.5"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@babel/core": "^7.24.7",
@@ -57,7 +57,7 @@
57
57
  "@babel/preset-env": "^7.24.7",
58
58
  "@babel/preset-react": "^7.24.7",
59
59
  "@babel/preset-typescript": "^7.24.7",
60
- "@happy-dom/global-registrator": "^14.12.0",
60
+ "@happy-dom/global-registrator": "^16.5.3",
61
61
  "@sundaeswap/babel-preset": "^2.0.15",
62
62
  "@testing-library/dom": "^10.1.0",
63
63
  "@testing-library/react": "^16.0.0",
@@ -71,7 +71,7 @@
71
71
  "@types/react-dom": "^18.3.0",
72
72
  "cross-env": "^7.0.3",
73
73
  "fetch-mock": "^9.11.0",
74
- "happy-dom": "^14.12.0",
74
+ "happy-dom": "^16.5.3",
75
75
  "standard-version": "^9.5.0",
76
76
  "typescript": "^5.4.5"
77
77
  }
@@ -407,7 +407,7 @@ export class WalletObserver<
407
407
  if (multiassetEntries) {
408
408
  for (const [id, amount] of multiassetEntries) {
409
409
  balanceMap.set(
410
- id,
410
+ normalizeAssetIdWithDot(id),
411
411
  new AssetAmount(amount, metadata.get(normalizeAssetIdWithDot(id))),
412
412
  );
413
413
  }
@@ -14,11 +14,7 @@ export const normalizeAssetIdWithDot = (assetId: string): string => {
14
14
  const policyId = assetId.slice(0, 56);
15
15
  const assetName = assetId.slice(56);
16
16
 
17
- if (assetName) {
18
- return `${policyId}.${assetName}`;
19
- }
20
-
21
- return policyId;
17
+ return `${policyId}.${assetName}`;
22
18
  };
23
19
 
24
20
  /**