@defuse-protocol/crosschain-assetid 1.0.1 → 1.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.cjs CHANGED
@@ -76,13 +76,12 @@ function fromUniswapToken(token, caip2slugMap) {
76
76
  const caip2 = `eip155:${token.chainId}`;
77
77
  const chain = caip2slugMap?.[caip2] ?? evmSlugRegistry[caip2];
78
78
  if (chain == null) throw new Error(`Unsupported chainId = ${token.chainId}`);
79
- const o = {
79
+ return stringify1cs({
80
80
  version: "v1",
81
81
  chain,
82
82
  namespace: "erc20",
83
83
  reference: token.address
84
- };
85
- return stringify1cs(o);
84
+ });
86
85
  }
87
86
 
88
87
  //#endregion
package/dist/index.js CHANGED
@@ -75,13 +75,12 @@ function fromUniswapToken(token, caip2slugMap) {
75
75
  const caip2 = `eip155:${token.chainId}`;
76
76
  const chain = caip2slugMap?.[caip2] ?? evmSlugRegistry[caip2];
77
77
  if (chain == null) throw new Error(`Unsupported chainId = ${token.chainId}`);
78
- const o = {
78
+ return stringify1cs({
79
79
  version: "v1",
80
80
  chain,
81
81
  namespace: "erc20",
82
82
  reference: token.address
83
- };
84
- return stringify1cs(o);
83
+ });
85
84
  }
86
85
 
87
86
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defuse-protocol/crosschain-assetid",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": false,