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

web3-core

Package Overview
Dependencies
Maintainers
4
Versions
479
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-core - npm Package Compare versions

Comparing version 4.5.2-dev.9b32205.0 to 4.5.2-dev.b86d8ca.0

4

lib/commonjs/utils.js

@@ -25,3 +25,5 @@ "use strict";

'request' in provider &&
provider.request.constructor.name === 'AsyncFunction' && 'isMetaMask' in provider && provider.isMetaMask;
provider.request.constructor.name === 'AsyncFunction' &&
'isMetaMask' in provider &&
provider.isMetaMask;
exports.isMetaMaskProvider = isMetaMaskProvider;

@@ -28,0 +30,0 @@ const isLegacyRequestProvider = (provider) => typeof provider !== 'string' &&

@@ -52,3 +52,3 @@ "use strict";

}
const { config, provider, requestManager, subscriptionManager, registeredSubscriptions, accountProvider, wallet, requestManagerMiddleware } = providerOrContext;
const { config, provider, requestManager, subscriptionManager, registeredSubscriptions, accountProvider, wallet, requestManagerMiddleware, } = providerOrContext;
this.setConfig(config !== null && config !== void 0 ? config : {});

@@ -55,0 +55,0 @@ this._requestManager =

@@ -21,3 +21,5 @@ /*

'request' in provider &&
provider.request.constructor.name === 'AsyncFunction' && 'isMetaMask' in provider && provider.isMetaMask;
provider.request.constructor.name === 'AsyncFunction' &&
'isMetaMask' in provider &&
provider.isMetaMask;
export const isLegacyRequestProvider = (provider) => typeof provider !== 'string' &&

@@ -24,0 +26,0 @@ 'request' in provider &&

@@ -49,3 +49,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
const { config, provider, requestManager, subscriptionManager, registeredSubscriptions, accountProvider, wallet, requestManagerMiddleware } = providerOrContext;
const { config, provider, requestManager, subscriptionManager, registeredSubscriptions, accountProvider, wallet, requestManagerMiddleware, } = providerOrContext;
this.setConfig(config !== null && config !== void 0 ? config : {});

@@ -52,0 +52,0 @@ this._requestManager =

{
"name": "web3-core",
"version": "4.5.2-dev.9b32205.0+9b32205",
"version": "4.5.2-dev.b86d8ca.0+b86d8ca",
"description": "Web3 core tools for sub-packages. This is an internal package.",

@@ -45,13 +45,13 @@ "main": "./lib/commonjs/index.js",

"dependencies": {
"web3-errors": "1.3.1-dev.9b32205.0+9b32205",
"web3-eth-accounts": "4.2.2-dev.9b32205.0+9b32205",
"web3-eth-iban": "4.0.8-dev.9b32205.0+9b32205",
"web3-providers-http": "4.2.1-dev.9b32205.0+9b32205",
"web3-providers-ws": "4.0.9-dev.9b32205.0+9b32205",
"web3-types": "1.7.1-dev.9b32205.0+9b32205",
"web3-utils": "4.3.2-dev.9b32205.0+9b32205",
"web3-validator": "2.0.7-dev.9b32205.0+9b32205"
"web3-errors": "1.3.1-dev.b86d8ca.0+b86d8ca",
"web3-eth-accounts": "4.2.2-dev.b86d8ca.0+b86d8ca",
"web3-eth-iban": "4.0.8-dev.b86d8ca.0+b86d8ca",
"web3-providers-http": "4.2.1-dev.b86d8ca.0+b86d8ca",
"web3-providers-ws": "4.0.9-dev.b86d8ca.0+b86d8ca",
"web3-types": "1.7.1-dev.b86d8ca.0+b86d8ca",
"web3-utils": "4.3.2-dev.b86d8ca.0+b86d8ca",
"web3-validator": "2.0.7-dev.b86d8ca.0+b86d8ca"
},
"optionalDependencies": {
"web3-providers-ipc": "4.0.8-dev.9b32205.0+9b32205"
"web3-providers-ipc": "4.0.8-dev.b86d8ca.0+b86d8ca"
},

@@ -74,3 +74,3 @@ "devDependencies": {

},
"gitHead": "9b322052ef266cc57b29080b20053991e0c9a0a9"
"gitHead": "b86d8cae50d60e56e96bde9d1b836ca01ecd0fbc"
}

@@ -36,7 +36,8 @@ /*

): provider is MetaMaskProvider<API> =>
typeof provider !== 'string' &&
'request' in provider &&
provider.request.constructor.name === 'AsyncFunction' && 'isMetaMask' in provider && provider.isMetaMask;
typeof provider !== 'string' &&
'request' in provider &&
provider.request.constructor.name === 'AsyncFunction' &&
'isMetaMask' in provider &&
provider.isMetaMask;
export const isLegacyRequestProvider = <API extends Web3APISpec>(

@@ -66,3 +67,3 @@ provider: SupportedProviders<API>,

provider: SupportedProviders<API>,
): provider is SupportedProviders<API> =>
): provider is SupportedProviders<API> =>
provider &&

@@ -69,0 +70,0 @@ (isWeb3Provider(provider) ||

@@ -118,6 +118,7 @@ /*

if(!isNullish(options[key]) &&
if (
!isNullish(options[key]) &&
typeof options[key] === 'number' &&
key === 'maxListenersWarningThreshold' )
{
key === 'maxListenersWarningThreshold'
) {
// additionally set in event emitter

@@ -124,0 +125,0 @@ this.setMaxListenerWarningThreshold(Number(options[key]));

@@ -21,4 +21,11 @@ /*

EthExecutionAPI,
HexString, Numbers, SupportedProviders, Transaction, Web3AccountProvider, Web3APISpec, Web3BaseProvider, Web3BaseWallet,
Web3BaseWalletAccount
HexString,
Numbers,
SupportedProviders,
Transaction,
Web3AccountProvider,
Web3APISpec,
Web3BaseProvider,
Web3BaseWallet,
Web3BaseWalletAccount,
} from 'web3-types';

@@ -134,3 +141,3 @@ import { isNullish } from 'web3-utils';

wallet,
requestManagerMiddleware
requestManagerMiddleware,
} = providerOrContext as Web3ContextInitOptions<API, RegisteredSubs>;

@@ -145,3 +152,3 @@

config?.enableExperimentalFeatures?.useSubscriptionWhenCheckingBlockTimeout,
requestManagerMiddleware
requestManagerMiddleware,
);

@@ -227,3 +234,3 @@

this[ContextRef.name] = newContextChild;
return newContextChild;

@@ -366,6 +373,6 @@ }

public setRequestManagerMiddleware(requestManagerMiddleware: RequestManagerMiddleware<API>){
public setRequestManagerMiddleware(requestManagerMiddleware: RequestManagerMiddleware<API>) {
this.requestManager.setMiddleware(requestManagerMiddleware);
}
/**

@@ -372,0 +379,0 @@ * Will return the {@link Web3BatchRequest} constructor.

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

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