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

@metamask-previews/network-controller

Package Overview
Dependencies
Maintainers
2
Versions
433
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 12.1.2-preview.0f6a2fb to 12.1.2-preview.82c2888

6

dist/NetworkController.d.ts

@@ -196,3 +196,7 @@ import type { RestrictedControllerMessenger } from '@metamask/base-controller';

};
export declare type NetworkControllerActions = NetworkControllerGetStateAction | NetworkControllerGetProviderConfigAction | NetworkControllerGetEthQueryAction;
export declare type NetworkControllerGetNetworkClientByIdAction = {
type: `NetworkController:getNetworkClientById`;
handler: NetworkController['getNetworkClientById'];
};
export declare type NetworkControllerActions = NetworkControllerGetStateAction | NetworkControllerGetProviderConfigAction | NetworkControllerGetEthQueryAction | NetworkControllerGetNetworkClientByIdAction;
export declare type NetworkControllerMessenger = RestrictedControllerMessenger<typeof name, NetworkControllerActions, NetworkControllerEvents, string, string>;

@@ -199,0 +203,0 @@ export declare type NetworkControllerOptions = {

6

dist/NetworkController.js

@@ -274,2 +274,3 @@ "use strict";

});
this.messagingSystem.registerActionHandler(`${this.name}:getNetworkClientById`, this.getNetworkClientById.bind(this));
__classPrivateFieldSet(this, _NetworkController_previousProviderConfig, this.state.providerConfig, "f");

@@ -337,3 +338,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
const isInfura = networkClientId in controller_utils_1.InfuraNetworkType;
const isInfura = isInfuraProviderType(networkClientId);
let updatedNetworkStatus;

@@ -814,5 +815,2 @@ let updatedIsEIP1559Compatible;

const ethQuery = new eth_query_1.default(networkClient.provider);
if (!ethQuery) {
throw new Error('Provider has not been initialized');
}
return new Promise((resolve, reject) => {

@@ -819,0 +817,0 @@ ethQuery.sendAsync({ method: 'eth_getBlockByNumber', params: ['latest', false] }, (error, block) => {

{
"name": "@metamask-previews/network-controller",
"version": "12.1.2-preview.0f6a2fb",
"version": "12.1.2-preview.82c2888",
"description": "Provides an interface to the currently selected network via a MetaMask-compatible provider object",

@@ -5,0 +5,0 @@ "keywords": [

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