@0xsequence/provider
Advanced tools
Comparing version 2.0.19 to 2.0.20
@@ -1,2 +0,2 @@ | ||
export * from "./declarations/src/index"; | ||
export * from "./declarations/src/index.js"; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMHhzZXF1ZW5jZS1wcm92aWRlci5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0= |
{ | ||
"name": "@0xsequence/provider", | ||
"version": "2.0.19", | ||
"version": "2.0.20", | ||
"description": "provider sub-package for Sequence", | ||
@@ -11,23 +11,23 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider", | ||
"license": "Apache-2.0", | ||
"peerDependencies": { | ||
"ethers": ">=6" | ||
}, | ||
"dependencies": { | ||
"@databeat/tracker": "^0.9.2", | ||
"@databeat/tracker": "^0.9.3", | ||
"eventemitter2": "^6.4.5", | ||
"webextension-polyfill": "^0.10.0", | ||
"@0xsequence/abi": "2.0.19", | ||
"@0xsequence/account": "2.0.19", | ||
"@0xsequence/core": "2.0.19", | ||
"@0xsequence/auth": "2.0.19", | ||
"@0xsequence/migration": "2.0.19", | ||
"@0xsequence/network": "2.0.19", | ||
"@0xsequence/utils": "2.0.19", | ||
"@0xsequence/relayer": "2.0.19", | ||
"@0xsequence/wallet": "2.0.19" | ||
"@0xsequence/abi": "2.0.20", | ||
"@0xsequence/network": "2.0.20", | ||
"@0xsequence/migration": "2.0.20", | ||
"@0xsequence/relayer": "2.0.20", | ||
"@0xsequence/core": "2.0.20", | ||
"@0xsequence/wallet": "2.0.20", | ||
"@0xsequence/auth": "2.0.20", | ||
"@0xsequence/utils": "2.0.20", | ||
"@0xsequence/account": "2.0.20" | ||
}, | ||
"peerDependencies": { | ||
"ethers": ">=6" | ||
}, | ||
"devDependencies": { | ||
"@types/webextension-polyfill": "^0.10.0", | ||
"ethers": "^6.13.0", | ||
"hardhat": "^2.20.1" | ||
"ethers": "6.13.4", | ||
"hardhat": "^2.22.14" | ||
}, | ||
@@ -34,0 +34,0 @@ "files": [ |
@@ -92,2 +92,3 @@ import { | ||
const newNetworks = (config.networks?.filter(n => { | ||
// eslint-disable-next-line | ||
n.rpcUrl !== undefined && n.chainId !== undefined && !allNetworks.find(an => an.chainId === n.chainId) | ||
@@ -94,0 +95,0 @@ }) ?? []) as NetworkConfig[] |
@@ -265,4 +265,10 @@ import { Account, AccountStatus } from '@0xsequence/account' | ||
} | ||
const jsonRpcProvider = provider instanceof ethers.JsonRpcProvider ? provider : undefined | ||
// NOTE: we cannot use `instanceof ethers.JsonRpcProvider` because despite that we know | ||
// its the proper type, its not resolving properly at runtime during the pupeteer e2e tests. | ||
// Switching to the type guard function below is safer and more reliable. | ||
// | ||
// const jsonRpcProvider = provider instanceof ethers.JsonRpcProvider ? provider : undefined | ||
const jsonRpcProvider = isJsonRpcProvider(provider) ? provider : undefined | ||
switch (request.method) { | ||
@@ -903,1 +909,7 @@ case 'net_version': { | ||
] | ||
function isJsonRpcProvider(provider: any): provider is ethers.JsonRpcProvider { | ||
return ( | ||
provider && typeof provider === 'object' && typeof provider.send === 'function' && typeof provider.getNetwork === 'function' | ||
) | ||
} |
@@ -355,2 +355,4 @@ import { ETHAuthProof as AuthETHAuthProof } from '@0xsequence/auth' | ||
eventNames(): (keyof Events | string | symbol)[] | ||
// eslint-disable-next-line | ||
listeners<E extends keyof Events>(event: E): Function[] | ||
@@ -357,0 +359,0 @@ listenerCount<E extends keyof Events>(event: E): number |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
702331
17885
+ Added@0xsequence/abi@2.0.20(transitive)
+ Added@0xsequence/account@2.0.20(transitive)
+ Added@0xsequence/api@2.0.20(transitive)
+ Added@0xsequence/auth@2.0.20(transitive)
+ Added@0xsequence/core@2.0.20(transitive)
+ Added@0xsequence/indexer@2.0.20(transitive)
+ Added@0xsequence/metadata@2.0.20(transitive)
+ Added@0xsequence/migration@2.0.20(transitive)
+ Added@0xsequence/network@2.0.20(transitive)
+ Added@0xsequence/relayer@2.0.20(transitive)
+ Added@0xsequence/replacer@2.0.20(transitive)
+ Added@0xsequence/sessions@2.0.20(transitive)
+ Added@0xsequence/signhub@2.0.20(transitive)
+ Added@0xsequence/utils@2.0.20(transitive)
+ Added@0xsequence/wallet@2.0.20(transitive)
- Removed@0xsequence/abi@2.0.19(transitive)
- Removed@0xsequence/account@2.0.19(transitive)
- Removed@0xsequence/api@2.0.19(transitive)
- Removed@0xsequence/auth@2.0.19(transitive)
- Removed@0xsequence/core@2.0.19(transitive)
- Removed@0xsequence/indexer@2.0.19(transitive)
- Removed@0xsequence/metadata@2.0.19(transitive)
- Removed@0xsequence/migration@2.0.19(transitive)
- Removed@0xsequence/network@2.0.19(transitive)
- Removed@0xsequence/relayer@2.0.19(transitive)
- Removed@0xsequence/replacer@2.0.19(transitive)
- Removed@0xsequence/sessions@2.0.19(transitive)
- Removed@0xsequence/signhub@2.0.19(transitive)
- Removed@0xsequence/utils@2.0.19(transitive)
- Removed@0xsequence/wallet@2.0.19(transitive)
Updated@0xsequence/abi@2.0.20
Updated@0xsequence/account@2.0.20
Updated@0xsequence/auth@2.0.20
Updated@0xsequence/core@2.0.20
Updated@0xsequence/migration@2.0.20
Updated@0xsequence/network@2.0.20
Updated@0xsequence/relayer@2.0.20
Updated@0xsequence/utils@2.0.20
Updated@0xsequence/wallet@2.0.20
Updated@databeat/tracker@^0.9.3