@getpara/react-sdk 1.3.1-dev.1 → 1.3.1-dev.2
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.
- package/dist/cli/cli.mjs +3 -8
- package/dist/index.js +18 -6
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/package.json +1 -2
package/dist/cli/cli.mjs
CHANGED
|
@@ -13,14 +13,7 @@ const PACKAGES_TO_STUB = [
|
|
|
13
13
|
const checkForPackages = async () => {
|
|
14
14
|
const pathToParaPackages = require.resolve('@getpara/react-sdk');
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// If path isn't in a node_modules dir, it's locally symlinked in the monorepo
|
|
19
|
-
if (!pathToParaPackages.includes('mode_modules')) {
|
|
20
|
-
pathToNodeModules = path.resolve(pathToParaPackages, '../../../../node_modules');
|
|
21
|
-
} else {
|
|
22
|
-
pathToNodeModules = path.resolve(pathToParaPackages, '../../../');
|
|
23
|
-
}
|
|
16
|
+
const pathToNodeModules = path.resolve(pathToParaPackages, '../../node_modules');
|
|
24
17
|
|
|
25
18
|
for (let i = 0; i < PACKAGES_TO_STUB.length; i++) {
|
|
26
19
|
const packageName = PACKAGES_TO_STUB[i];
|
|
@@ -30,8 +23,10 @@ const checkForPackages = async () => {
|
|
|
30
23
|
if (err.code === 'ERR_MODULE_NOT_FOUND') {
|
|
31
24
|
const packageJsonContent = {
|
|
32
25
|
name: packageName,
|
|
26
|
+
main: './index.js',
|
|
33
27
|
};
|
|
34
28
|
await fs.mkdir(`${pathToNodeModules}/${packageName}`, { recursive: true });
|
|
29
|
+
await fs.writeFile(`${pathToNodeModules}/${packageName}/index.js`, '//STUB');
|
|
35
30
|
await fs.writeFile(`${pathToNodeModules}/${packageName}/package.json`, JSON.stringify(packageJsonContent), {
|
|
36
31
|
encoding: 'utf-8',
|
|
37
32
|
});
|
package/dist/index.js
CHANGED
|
@@ -2031,8 +2031,12 @@ function EvmExternalWalletProvider({
|
|
|
2031
2031
|
if (Provider) {
|
|
2032
2032
|
setEvmProvider(Provider);
|
|
2033
2033
|
}
|
|
2034
|
-
|
|
2035
|
-
|
|
2034
|
+
if (wallets) {
|
|
2035
|
+
setEvmWallets(wallets);
|
|
2036
|
+
}
|
|
2037
|
+
if (context) {
|
|
2038
|
+
setEvmContext(context);
|
|
2039
|
+
}
|
|
2036
2040
|
setIsLoadingLib(false);
|
|
2037
2041
|
};
|
|
2038
2042
|
loadLib();
|
|
@@ -2125,8 +2129,12 @@ function CosmosExternalWalletProvider({
|
|
|
2125
2129
|
if (Provider) {
|
|
2126
2130
|
setCosmosProvider(Provider);
|
|
2127
2131
|
}
|
|
2128
|
-
|
|
2129
|
-
|
|
2132
|
+
if (wallets) {
|
|
2133
|
+
setCosmosWallets(wallets);
|
|
2134
|
+
}
|
|
2135
|
+
if (context) {
|
|
2136
|
+
setCosmosContext(context);
|
|
2137
|
+
}
|
|
2130
2138
|
setIsLoadingLib(false);
|
|
2131
2139
|
};
|
|
2132
2140
|
loadLib();
|
|
@@ -2230,8 +2238,12 @@ function SolanaExternalWalletProvider({
|
|
|
2230
2238
|
if (Provider) {
|
|
2231
2239
|
setSolanaProvider(Provider);
|
|
2232
2240
|
}
|
|
2233
|
-
|
|
2234
|
-
|
|
2241
|
+
if (wallets) {
|
|
2242
|
+
setSolanaWallets(wallets);
|
|
2243
|
+
}
|
|
2244
|
+
if (context) {
|
|
2245
|
+
setSolanaContext(context);
|
|
2246
|
+
}
|
|
2235
2247
|
setIsLoadingLib(false);
|
|
2236
2248
|
};
|
|
2237
2249
|
loadLib();
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-sdk",
|
|
3
|
-
"version": "1.3.1-dev.
|
|
3
|
+
"version": "1.3.1-dev.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"@cosmjs/proto-signing": "<=0.31.3",
|
|
21
21
|
"@cosmjs/stargate": "<=0.31.3",
|
|
22
22
|
"@cosmjs/tendermint-rpc": "<=0.31.3",
|
|
23
|
-
"@getpara/graz": "^0.1.0",
|
|
24
23
|
"@getpara/react-common": "1.3.1",
|
|
25
24
|
"@getpara/react-components": "1.3.1",
|
|
26
25
|
"@getpara/web-sdk": "1.3.1",
|