@exodus/assets
Advanced tools
Comparing version 8.0.86 to 8.0.87
@@ -9,2 +9,5 @@ "use strict"; | ||
coerceTokenProps: true, | ||
assetsListToObject: true, | ||
connectAssetsList: true, | ||
connectAsset: true, | ||
connectAssets: true, | ||
@@ -19,5 +22,8 @@ addToken: true, | ||
exports.addToken = addToken; | ||
exports.assetsListToObject = assetsListToObject; | ||
exports.coerceTokenProps = coerceTokenProps; | ||
exports.combinedAssets = void 0; | ||
exports.connectAsset = connectAsset; | ||
exports.connectAssets = connectAssets; | ||
exports.connectAssetsList = connectAssetsList; | ||
exports.default = void 0; | ||
@@ -107,2 +113,15 @@ exports.updateCombinedAsset = updateCombinedAsset; | ||
} | ||
function assetsListToObject(assetsList) { | ||
return (0, _basicUtils.keyBy)(assetsList, ({ | ||
name | ||
}) => name); | ||
} | ||
function connectAssetsList(assetsList) { | ||
return connectAssets(assetsListToObject(assetsList)); | ||
} | ||
function connectAsset(asset) { | ||
return connectAssets({ | ||
[asset.name]: asset | ||
})[asset.name]; | ||
} | ||
function connectAssets(assets) { | ||
@@ -109,0 +128,0 @@ const _assets = (0, _basicUtils.mapValues)(assets, v => ({ |
{ | ||
"name": "@exodus/assets", | ||
"version": "8.0.86", | ||
"version": "8.0.87", | ||
"description": "Exodus assets", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "e009757fff8c943dab5b1d3d713adab1a1a53d84" | ||
"gitHead": "c2bd4e1841da83e3ea3ab4a7625ab25f5c55e178" | ||
} |
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
12882
285
0