New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@exodus/assets

Package Overview
Dependencies
Maintainers
0
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/assets - npm Package Compare versions

Comparing version 9.0.1 to 9.1.0

10

lib/connect-assets.js

@@ -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,

8

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc