@metamask/controller-utils
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -9,2 +9,7 @@ # Changelog | ||
## [4.3.0] | ||
### Changed | ||
- Update `@metamask/utils` to `^6.2.0` ([#1514](https://github.com/MetaMask/core/pull/1514)) | ||
- Remove unnecessary `babel-runtime` dependency ([#1504](https://github.com/MetaMask/core/pull/1504)) | ||
## [4.2.0] | ||
@@ -131,3 +136,4 @@ ### Added | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/controller-utils@4.2.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/controller-utils@4.3.0...HEAD | ||
[4.3.0]: https://github.com/MetaMask/core/compare/@metamask/controller-utils@4.2.0...@metamask/controller-utils@4.3.0 | ||
[4.2.0]: https://github.com/MetaMask/core/compare/@metamask/controller-utils@4.1.0...@metamask/controller-utils@4.2.0 | ||
@@ -134,0 +140,0 @@ [4.1.0]: https://github.com/MetaMask/core/compare/@metamask/controller-utils@4.0.1...@metamask/controller-utils@4.1.0 |
@@ -11,3 +11,3 @@ /** | ||
}; | ||
export declare type InfuraNetworkType = typeof InfuraNetworkType[keyof typeof InfuraNetworkType]; | ||
export declare type InfuraNetworkType = (typeof InfuraNetworkType)[keyof typeof InfuraNetworkType]; | ||
/** | ||
@@ -24,3 +24,3 @@ * The "network type"; either the name of a built-in network, or "rpc" for custom networks. | ||
}; | ||
export declare type NetworkType = typeof NetworkType[keyof typeof NetworkType]; | ||
export declare type NetworkType = (typeof NetworkType)[keyof typeof NetworkType]; | ||
/** | ||
@@ -59,3 +59,3 @@ * A helper to determine whether a given input is NetworkType. | ||
}; | ||
export declare type ChainId = typeof ChainId[keyof typeof ChainId]; | ||
export declare type ChainId = (typeof ChainId)[keyof typeof ChainId]; | ||
/** | ||
@@ -71,3 +71,3 @@ * Decimal string network IDs of built-in Infura networks, by name. | ||
}; | ||
export declare type NetworkId = typeof NetworkId[keyof typeof NetworkId]; | ||
export declare type NetworkId = (typeof NetworkId)[keyof typeof NetworkId]; | ||
export declare enum NetworksTicker { | ||
@@ -74,0 +74,0 @@ mainnet = "ETH", |
/// <reference types="bn.js" /> | ||
import type { Hex, Json } from '@metamask/utils'; | ||
import type EthQuery from 'eth-query'; | ||
import { BN } from 'ethereumjs-util'; | ||
import type EthQuery from 'eth-query'; | ||
import type { Hex } from '@metamask/utils'; | ||
import { Json } from '@metamask/utils'; | ||
/** | ||
@@ -7,0 +6,0 @@ * Checks whether the given number primitive chain ID is safe. |
@@ -16,7 +16,7 @@ "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 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 eth_ens_namehash_1 = __importDefault(require("eth-ens-namehash")); | ||
const fast_deep_equal_1 = __importDefault(require("fast-deep-equal")); | ||
const utils_1 = require("@metamask/utils"); | ||
const constants_1 = require("./constants"); | ||
@@ -23,0 +23,0 @@ const TIMEOUT_ERROR = new Error('timeout'); |
{ | ||
"name": "@metamask/controller-utils", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "Data and convenience functions shared by multiple packages", | ||
@@ -32,5 +32,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@metamask/utils": "^5.0.2", | ||
"@metamask/utils": "^6.2.0", | ||
"@spruceid/siwe-parser": "1.1.3", | ||
"babel-runtime": "^6.26.0", | ||
"eth-ens-namehash": "^2.0.8", | ||
@@ -37,0 +36,0 @@ "eth-query": "^2.1.2", |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110628
8
1326
+ Added@metamask/utils@6.2.0(transitive)
+ Added@noble/hashes@1.5.0(transitive)
- Removedbabel-runtime@^6.26.0
- Removed@metamask/utils@5.0.2(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
Updated@metamask/utils@^6.2.0