@exodus/assets
Advanced tools
Comparing version 9.0.1 to 9.1.0
@@ -10,2 +10,3 @@ "use strict"; | ||
exports.assetsListToObject = assetsListToObject; | ||
exports.coerceAssetProps = coerceAssetProps; | ||
exports.coerceTokenProps = coerceTokenProps; | ||
@@ -19,3 +20,2 @@ exports.connectAsset = connectAsset; | ||
var _basicUtils = require("@exodus/basic-utils"); | ||
var _assetsBase = _interopRequireDefault(require("@exodus/assets-base")); | ||
var _currency = require("@exodus/currency"); | ||
@@ -25,3 +25,2 @@ var _constants = require("./constants"); | ||
var _createCombined = require("./create-combined"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const connectProp = (asset, prop, value) => { | ||
@@ -67,4 +66,4 @@ if (asset[prop] === undefined && value !== undefined) asset[prop] = value; | ||
} | ||
asset.isBuiltIn = !!(_assetsBase.default[asset.name] || asset.isCombined); | ||
if (!asset.isBuiltIn || ['bcashclaim', 'bgoldclaim', 'bitcoinsvclaim'].includes(asset.name)) { | ||
asset.isBuiltIn = !asset.isCustomToken; | ||
if (asset.isCustomToken || ['bcashclaim', 'bgoldclaim', 'bitcoinsvclaim'].includes(asset.name)) { | ||
coerceTokenProps(asset, asset.baseAsset); | ||
@@ -104,2 +103,5 @@ } | ||
} | ||
function coerceAssetProps(asset, baseAsset) { | ||
return coerceTokenProps(asset, baseAsset); | ||
} | ||
function assetsListToObject(assetsList) { | ||
@@ -106,0 +108,0 @@ return (0, _basicUtils.keyBy)(assetsList, ({ |
@@ -30,14 +30,2 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "addCombinedAsset", { | ||
enumerable: true, | ||
get: function () { | ||
return _connectAssets.addCombinedAsset; | ||
} | ||
}); | ||
Object.defineProperty(exports, "addNetwork", { | ||
enumerable: true, | ||
get: function () { | ||
return _connectAssets.addNetwork; | ||
} | ||
}); | ||
Object.defineProperty(exports, "addToken", { | ||
@@ -49,8 +37,2 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "assert", { | ||
enumerable: true, | ||
get: function () { | ||
return _validateAsset.assert; | ||
} | ||
}); | ||
Object.defineProperty(exports, "assertNotAnObjectPrototypeProperty", { | ||
@@ -68,8 +50,2 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "coerceTokenProps", { | ||
enumerable: true, | ||
get: function () { | ||
return _connectAssets.coerceTokenProps; | ||
} | ||
}); | ||
Object.defineProperty(exports, "connectAsset", { | ||
@@ -111,8 +87,2 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, "updateCombinedAsset", { | ||
enumerable: true, | ||
get: function () { | ||
return _connectAssets.updateCombinedAsset; | ||
} | ||
}); | ||
Object.defineProperty(exports, "updateToken", { | ||
@@ -119,0 +89,0 @@ enumerable: true, |
{ | ||
"name": "@exodus/assets", | ||
"version": "9.0.1", | ||
"version": "9.1.0", | ||
"description": "Exodus assets", | ||
@@ -13,4 +13,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@exodus/assets-base": "^8.1.13", | ||
"@exodus/basic-utils": "^2.0.1", | ||
"@exodus/basic-utils": "^2.1.1", | ||
"@exodus/currency": "^2.2.0", | ||
@@ -21,2 +20,3 @@ "lodash": "^4.17.11", | ||
"devDependencies": { | ||
"@exodus/assets-base": "^8.1.14", | ||
"@exodus/combined-assets-meta": "^1.2.9", | ||
@@ -39,3 +39,3 @@ "jest": "^29.3.1" | ||
}, | ||
"gitHead": "91c23f8b8dffd44cb9103a1110f1f82bd9452e8d" | ||
"gitHead": "f427565edd185759e4b05ada4a8d66e3c91968c1" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4
0
21568
3
566
- Removed@exodus/assets-base@^8.1.13
- Removed@exodus/asset@1.2.0(transitive)
- Removed@exodus/assets-base@8.2.0(transitive)
- Removed@exodus/aurora-meta@1.0.5(transitive)
- Removed@exodus/basemainnet-meta@1.0.8(transitive)
- Removed@exodus/basic-utils@1.5.0(transitive)
- Removed@exodus/bitcoin-meta@1.0.2(transitive)
- Removed@exodus/bitcoinregtest-meta@1.0.1(transitive)
- Removed@exodus/bitcointestnet-meta@1.0.1(transitive)
- Removed@exodus/ethereum-meta@1.5.1(transitive)
- Removed@exodus/ethereumclassic-meta@1.0.3(transitive)
- Removed@exodus/ethereumholesky-meta@1.0.3(transitive)
- Removed@exodus/fantommainnet-meta@1.1.2(transitive)
- Removed@exodus/matic-meta@1.3.0(transitive)
- Removed@exodus/optimism-meta@1.3.0(transitive)
- Removed@exodus/rootstock-meta@1.0.7(transitive)
- Removed@exodus/solana-meta@1.2.0(transitive)
Updated@exodus/basic-utils@^2.1.1