Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@metamask/network-controller

Package Overview
Dependencies
Maintainers
11
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/network-controller - npm Package Compare versions

Comparing version 20.1.0 to 20.2.0

dist/chunk-BEL2VMHN.js

15

CHANGELOG.md

@@ -10,2 +10,14 @@ # Changelog

## [20.2.0]
### Changed
- `upsertNetworkConfiguration` now accepts an optional id property on the NetworkConfiguration param. It allows a network configuration to have its rpcUrl updated in place when an id is specified, but only if that new rpcUrl does not already exist on a different network configuration. ([#4614](https://github.com/MetaMask/core/pull/4614))
- Bump `@metamask/eth-json-rpc-provider` to `^4.1.3` ([#4607](https://github.com/MetaMask/core/pull/4607))
- Update TypeScript to 5.2.2 ([#4576](https://github.com/MetaMask/core/pull/4576), [#4584](https://github.com/MetaMask/core/pull/4584))
### Fixed
- `removeNetworkConfiguration` now throws an error if you attempt to remove the selected network ([#4566](https://github.com/MetaMask/core/pull/4566))
## [20.1.0]

@@ -544,3 +556,4 @@

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@20.1.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@20.2.0...HEAD
[20.2.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@20.1.0...@metamask/network-controller@20.2.0
[20.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@20.0.0...@metamask/network-controller@20.1.0

@@ -547,0 +560,0 @@ [20.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@19.0.0...@metamask/network-controller@20.0.0

4

dist/index.js

@@ -5,3 +5,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkWT5ZBF4Xjs = require('./chunk-WT5ZBF4X.js');
var _chunkBEL2VMHNjs = require('./chunk-BEL2VMHN.js');

@@ -25,3 +25,3 @@

exports.INFURA_BLOCKED_KEY = _chunkZKNI7MD3js.INFURA_BLOCKED_KEY; exports.NetworkClientType = _chunkKHZTS7TFjs.NetworkClientType; exports.NetworkController = _chunkWT5ZBF4Xjs.NetworkController; exports.NetworkStatus = _chunkZKNI7MD3js.NetworkStatus; exports.defaultState = _chunkWT5ZBF4Xjs.defaultState; exports.knownKeysOf = _chunkWT5ZBF4Xjs.knownKeysOf;
exports.INFURA_BLOCKED_KEY = _chunkZKNI7MD3js.INFURA_BLOCKED_KEY; exports.NetworkClientType = _chunkKHZTS7TFjs.NetworkClientType; exports.NetworkController = _chunkBEL2VMHNjs.NetworkController; exports.NetworkStatus = _chunkZKNI7MD3js.NetworkStatus; exports.defaultState = _chunkBEL2VMHNjs.defaultState; exports.knownKeysOf = _chunkBEL2VMHNjs.knownKeysOf;
//# sourceMappingURL=index.js.map

@@ -5,3 +5,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkWT5ZBF4Xjs = require('./chunk-WT5ZBF4X.js');
var _chunkBEL2VMHNjs = require('./chunk-BEL2VMHN.js');
require('./chunk-ZKNI7MD3.js');

@@ -17,3 +17,3 @@ require('./chunk-LLMZDA4Q.js');

exports.NetworkController = _chunkWT5ZBF4Xjs.NetworkController; exports.defaultState = _chunkWT5ZBF4Xjs.defaultState; exports.knownKeysOf = _chunkWT5ZBF4Xjs.knownKeysOf;
exports.NetworkController = _chunkBEL2VMHNjs.NetworkController; exports.defaultState = _chunkBEL2VMHNjs.defaultState; exports.knownKeysOf = _chunkBEL2VMHNjs.knownKeysOf;
//# sourceMappingURL=NetworkController.js.map

@@ -355,3 +355,5 @@ import type { ControllerGetStateAction, ControllerStateChangeEvent, RestrictedControllerMessenger } from '@metamask/base-controller';

*/
upsertNetworkConfiguration(networkConfiguration: NetworkConfiguration, { referrer, source, setActive, }: {
upsertNetworkConfiguration(networkConfiguration: NetworkConfiguration & {
id?: NetworkConfigurationId;
}, { referrer, source, setActive, }: {
referrer: string;

@@ -358,0 +360,0 @@ source: string;

{
"name": "@metamask/network-controller",
"version": "20.1.0",
"version": "20.2.0",
"description": "Provides an interface to the currently selected network via a MetaMask-compatible provider object",

@@ -49,3 +49,3 @@ "keywords": [

"@metamask/eth-json-rpc-middleware": "^12.1.1",
"@metamask/eth-json-rpc-provider": "^4.1.2",
"@metamask/eth-json-rpc-provider": "^4.1.3",
"@metamask/eth-query": "^4.0.0",

@@ -76,3 +76,3 @@ "@metamask/json-rpc-engine": "^9.0.2",

"typedoc-plugin-missing-exports": "^2.0.0",
"typescript": "~5.0.4"
"typescript": "~5.2.2"
},

@@ -79,0 +79,0 @@ "engines": {

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