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

@metamask-previews/controller-utils

Package Overview
Dependencies
Maintainers
2
Versions
517
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask-previews/controller-utils - npm Package Compare versions

Comparing version 5.0.2-preview.4ae7d84 to 5.0.2-preview.5736db0

2

CHANGELOG.md

@@ -8,2 +8,4 @@ # Changelog

## [Unreleased]
### Changed
- Bump dependency `@metamask/eth-query` from ^3.0.1 to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028))

@@ -10,0 +12,0 @@ ## [5.0.2]

4

dist/util.js

@@ -16,6 +16,6 @@ "use strict";

exports.isValidJson = exports.isNonEmptyArray = exports.isPlainObject = exports.convertHexToDecimal = exports.query = exports.normalizeEnsName = exports.timeoutFetch = exports.fetchWithErrorHandling = exports.handleFetch = exports.successfulFetch = exports.isSmartContractCode = exports.isValidHexAddress = exports.toChecksumHexAddress = exports.safelyExecuteWithTimeout = exports.safelyExecute = exports.toHex = exports.fromHex = exports.hexToText = exports.hexToBN = exports.getBuyURL = exports.weiHexToGweiDec = exports.gweiDecToWEIBN = exports.fractionBN = exports.BNToHex = exports.isSafeChainId = void 0;
const ethjs_unit_1 = require("@metamask/ethjs-unit");
const utils_1 = require("@metamask/utils");
const eth_ens_namehash_1 = __importDefault(require("eth-ens-namehash"));
const ethereumjs_util_1 = require("ethereumjs-util");
const ethjs_unit_1 = require("ethjs-unit");
const fast_deep_equal_1 = __importDefault(require("fast-deep-equal"));

@@ -103,3 +103,3 @@ const constants_1 = require("./constants");

const hexWei = new ethereumjs_util_1.BN((0, ethereumjs_util_1.stripHexPrefix)(hex), 16);
return (0, ethjs_unit_1.fromWei)(hexWei, 'gwei').toString(10);
return (0, ethjs_unit_1.fromWei)(hexWei, 'gwei');
}

@@ -106,0 +106,0 @@ exports.weiHexToGweiDec = weiHexToGweiDec;

{
"name": "@metamask-previews/controller-utils",
"version": "5.0.2-preview.4ae7d84",
"version": "5.0.2-preview.5736db0",
"description": "Data and convenience functions shared by multiple packages",

@@ -33,2 +33,3 @@ "keywords": [

"dependencies": {
"@metamask/ethjs-unit": "^0.2.1",
"@metamask/utils": "^8.2.0",

@@ -38,3 +39,2 @@ "@spruceid/siwe-parser": "1.1.3",

"ethereumjs-util": "^7.0.10",
"ethjs-unit": "^0.1.6",
"fast-deep-equal": "^3.1.3"

@@ -44,4 +44,5 @@ },

"@metamask/auto-changelog": "^3.4.3",
"@metamask/eth-query": "^3.0.1",
"@metamask/eth-query": "^4.0.0",
"@types/jest": "^27.4.1",
"bn.js": "^5.2.1",
"deepmerge": "^4.2.2",

@@ -48,0 +49,0 @@ "jest": "^27.5.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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