@0xsequence/provider 1.9.1 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3612,7 +3612,7 @@ const setupAnalytics = (projectAccessKey, server) => {
|
|
|
3612
3612
|
|
|
3613
3613
|
var packageJson = {
|
|
3614
3614
|
name: "@0xsequence/provider",
|
|
3615
|
-
version: "1.9.
|
|
3615
|
+
version: "1.9.3",
|
|
3616
3616
|
description: "provider sub-package for Sequence",
|
|
3617
3617
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3618
3618
|
source: "src/index.ts",
|
|
@@ -4167,6 +4167,12 @@ const initWallet = (projectAccessKey, partialConfig) => {
|
|
|
4167
4167
|
const network = (_config$networks2 = config.networks) == null ? void 0 : _config$networks2.find(cn => cn.chainId === n.chainId);
|
|
4168
4168
|
return network ? _extends({}, n, network) : n;
|
|
4169
4169
|
}).concat(newNetworks).map(network => {
|
|
4170
|
+
// don't double-append in the case the user has already included their access key in the rpc URL
|
|
4171
|
+
if (network.rpcUrl.includes(projectAccessKey)) {
|
|
4172
|
+
return network;
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
// this will probably break non-sequence RPC provider URLs.
|
|
4170
4176
|
network.rpcUrl = network.rpcUrl + `/${projectAccessKey}`;
|
|
4171
4177
|
return network;
|
|
4172
4178
|
});
|
|
@@ -3612,7 +3612,7 @@ const setupAnalytics = (projectAccessKey, server) => {
|
|
|
3612
3612
|
|
|
3613
3613
|
var packageJson = {
|
|
3614
3614
|
name: "@0xsequence/provider",
|
|
3615
|
-
version: "1.9.
|
|
3615
|
+
version: "1.9.3",
|
|
3616
3616
|
description: "provider sub-package for Sequence",
|
|
3617
3617
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3618
3618
|
source: "src/index.ts",
|
|
@@ -4167,6 +4167,12 @@ const initWallet = (projectAccessKey, partialConfig) => {
|
|
|
4167
4167
|
const network = (_config$networks2 = config.networks) == null ? void 0 : _config$networks2.find(cn => cn.chainId === n.chainId);
|
|
4168
4168
|
return network ? _extends({}, n, network) : n;
|
|
4169
4169
|
}).concat(newNetworks).map(network => {
|
|
4170
|
+
// don't double-append in the case the user has already included their access key in the rpc URL
|
|
4171
|
+
if (network.rpcUrl.includes(projectAccessKey)) {
|
|
4172
|
+
return network;
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
// this will probably break non-sequence RPC provider URLs.
|
|
4170
4176
|
network.rpcUrl = network.rpcUrl + `/${projectAccessKey}`;
|
|
4171
4177
|
return network;
|
|
4172
4178
|
});
|
|
@@ -3608,7 +3608,7 @@ const setupAnalytics = (projectAccessKey, server) => {
|
|
|
3608
3608
|
|
|
3609
3609
|
var packageJson = {
|
|
3610
3610
|
name: "@0xsequence/provider",
|
|
3611
|
-
version: "1.9.
|
|
3611
|
+
version: "1.9.3",
|
|
3612
3612
|
description: "provider sub-package for Sequence",
|
|
3613
3613
|
repository: "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
3614
3614
|
source: "src/index.ts",
|
|
@@ -4163,6 +4163,12 @@ const initWallet = (projectAccessKey, partialConfig) => {
|
|
|
4163
4163
|
const network = (_config$networks2 = config.networks) == null ? void 0 : _config$networks2.find(cn => cn.chainId === n.chainId);
|
|
4164
4164
|
return network ? _extends({}, n, network) : n;
|
|
4165
4165
|
}).concat(newNetworks).map(network => {
|
|
4166
|
+
// don't double-append in the case the user has already included their access key in the rpc URL
|
|
4167
|
+
if (network.rpcUrl.includes(projectAccessKey)) {
|
|
4168
|
+
return network;
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
// this will probably break non-sequence RPC provider URLs.
|
|
4166
4172
|
network.rpcUrl = network.rpcUrl + `/${projectAccessKey}`;
|
|
4167
4173
|
return network;
|
|
4168
4174
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/provider",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
4
4
|
"description": "provider sub-package for Sequence",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"@databeat/tracker": "^0.9.1",
|
|
13
13
|
"eventemitter2": "^6.4.5",
|
|
14
14
|
"webextension-polyfill": "^0.10.0",
|
|
15
|
-
"@0xsequence/abi": "1.9.
|
|
16
|
-
"@0xsequence/account": "1.9.
|
|
17
|
-
"@0xsequence/auth": "1.9.
|
|
18
|
-
"@0xsequence/
|
|
19
|
-
"@0xsequence/
|
|
20
|
-
"@0xsequence/
|
|
21
|
-
"@0xsequence/relayer": "1.9.
|
|
22
|
-
"@0xsequence/utils": "1.9.
|
|
23
|
-
"@0xsequence/
|
|
15
|
+
"@0xsequence/abi": "1.9.3",
|
|
16
|
+
"@0xsequence/account": "1.9.3",
|
|
17
|
+
"@0xsequence/auth": "1.9.3",
|
|
18
|
+
"@0xsequence/core": "1.9.3",
|
|
19
|
+
"@0xsequence/migration": "1.9.3",
|
|
20
|
+
"@0xsequence/network": "1.9.3",
|
|
21
|
+
"@0xsequence/relayer": "1.9.3",
|
|
22
|
+
"@0xsequence/utils": "1.9.3",
|
|
23
|
+
"@0xsequence/wallet": "1.9.3"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"ethers": ">=5.5 < 6"
|
package/src/init.ts
CHANGED
|
@@ -101,6 +101,12 @@ export const initWallet = (projectAccessKey: string, partialConfig?: Partial<Pro
|
|
|
101
101
|
})
|
|
102
102
|
.concat(newNetworks)
|
|
103
103
|
.map(network => {
|
|
104
|
+
// don't double-append in the case the user has already included their access key in the rpc URL
|
|
105
|
+
if (network.rpcUrl.includes(projectAccessKey)) {
|
|
106
|
+
return network
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// this will probably break non-sequence RPC provider URLs.
|
|
104
110
|
network.rpcUrl = network.rpcUrl + `/${projectAccessKey}`
|
|
105
111
|
return network
|
|
106
112
|
})
|