@getpara/react-sdk 2.0.0-dev.3 → 2.0.0-fc.0
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
CHANGED
|
@@ -8,12 +8,12 @@ const PACKAGES_TO_STUB = [
|
|
|
8
8
|
'@getpara/evm-wallet-connectors',
|
|
9
9
|
'@getpara/cosmos-wallet-connectors',
|
|
10
10
|
'@getpara/solana-wallet-connectors',
|
|
11
|
-
'@farcaster/miniapp-sdk',
|
|
12
|
-
'@farcaster/miniapp-wagmi-connector',
|
|
13
11
|
];
|
|
14
12
|
|
|
15
13
|
const checkForPackages = async () => {
|
|
16
|
-
const
|
|
14
|
+
const pathToParaPackages = require.resolve('@getpara/react-sdk');
|
|
15
|
+
|
|
16
|
+
const pathToNodeModules = path.resolve(pathToParaPackages, '../../node_modules');
|
|
17
17
|
|
|
18
18
|
for (let i = 0; i < PACKAGES_TO_STUB.length; i++) {
|
|
19
19
|
const packageName = PACKAGES_TO_STUB[i];
|
|
@@ -22,24 +22,11 @@ const checkForPackages = async () => {
|
|
|
22
22
|
} catch (err) {
|
|
23
23
|
if (err.code === 'ERR_MODULE_NOT_FOUND') {
|
|
24
24
|
const packageJsonContent = { name: packageName, main: './index.js' };
|
|
25
|
-
|
|
26
25
|
await fs.mkdir(path.join(pathToNodeModules, packageName), { recursive: true });
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
await fs.access(indexPath);
|
|
32
|
-
} catch {
|
|
33
|
-
await fs.writeFile(indexPath, '//STUB');
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
try {
|
|
37
|
-
await fs.access(packageJsonPath);
|
|
38
|
-
} catch {
|
|
39
|
-
await fs.writeFile(packageJsonPath, JSON.stringify(packageJsonContent), {
|
|
40
|
-
encoding: 'utf-8',
|
|
41
|
-
});
|
|
42
|
-
}
|
|
26
|
+
await fs.writeFile(path.join(pathToNodeModules, packageName, 'index.js'), '//STUB');
|
|
27
|
+
await fs.writeFile(path.join(pathToNodeModules, packageName, 'package.json'), JSON.stringify(packageJsonContent), {
|
|
28
|
+
encoding: 'utf-8',
|
|
29
|
+
});
|
|
43
30
|
}
|
|
44
31
|
}
|
|
45
32
|
}
|
|
@@ -532,7 +532,7 @@ function ExternalWalletProvider({ children }) {
|
|
|
532
532
|
});
|
|
533
533
|
}
|
|
534
534
|
loginFarcasterMiniApp();
|
|
535
|
-
}, [para.isReady, para.isFarcasterMiniApp
|
|
535
|
+
}, [para.isReady, para.isFarcasterMiniApp]);
|
|
536
536
|
return /* @__PURE__ */ jsx(
|
|
537
537
|
ExternalWalletContext.Provider,
|
|
538
538
|
{
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-sdk",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-fc.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"setup-para": "dist/cli/cli.mjs"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@getpara/react-common": "2.0.0-
|
|
9
|
-
"@getpara/react-components": "2.0.0-
|
|
10
|
-
"@getpara/web-sdk": "2.0.0-
|
|
8
|
+
"@getpara/react-common": "2.0.0-fc.0",
|
|
9
|
+
"@getpara/react-components": "2.0.0-fc.0",
|
|
10
|
+
"@getpara/web-sdk": "2.0.0-fc.0",
|
|
11
11
|
"date-fns": "^3.6.0",
|
|
12
12
|
"framer-motion": "^11.3.31",
|
|
13
13
|
"libphonenumber-js": "^1.11.7",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"zustand-sync-tabs": "^0.2.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@getpara/cosmos-wallet-connectors": "2.0.0-
|
|
20
|
-
"@getpara/evm-wallet-connectors": "2.0.0-
|
|
21
|
-
"@getpara/solana-wallet-connectors": "2.0.0-
|
|
19
|
+
"@getpara/cosmos-wallet-connectors": "2.0.0-fc.0",
|
|
20
|
+
"@getpara/evm-wallet-connectors": "2.0.0-fc.0",
|
|
21
|
+
"@getpara/solana-wallet-connectors": "2.0.0-fc.0",
|
|
22
22
|
"@tanstack/react-query": "^5.74.0",
|
|
23
23
|
"@testing-library/dom": "^10.4.0",
|
|
24
24
|
"@testing-library/react": "^16.3.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"package.json",
|
|
39
39
|
"styles.css"
|
|
40
40
|
],
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "c114a295010c27f8a2056e43085cc53bcdba9f8f",
|
|
42
42
|
"main": "dist/index.js",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@getpara/cosmos-wallet-connectors": "^2.0.0-alpha.26",
|