@getpara/create-para-app
Advanced tools
| { | ||
| "name": "@getpara/create-para-app", | ||
| "version": "0.5.0", | ||
| "version": "0.6.0", | ||
| "main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -434,3 +434,3 @@ export function getEnvFileContent(apiKey, isNext) { | ||
| } | ||
| export function getHomeFile(tailwind, isNext, externalWalletSupport) { | ||
| export function getHomeFile(tailwind, isNext, externalWalletSupport, networks = []) { | ||
| const maybeUseClient = isNext ? `"use client";\n` : ''; | ||
@@ -440,3 +440,3 @@ const helloParaImport = isNext | ||
| : `import HelloPara from "./HelloPara";`; | ||
| let externalImports = ``; | ||
| let externalImports = ''; | ||
| if (externalWalletSupport) { | ||
@@ -452,2 +452,13 @@ if (isNext) { | ||
| } | ||
| let externalWallets = []; | ||
| if (networks.includes('evm')) { | ||
| externalWallets.push('ExternalWallet.METAMASK', 'ExternalWallet.RABBY', 'ExternalWallet.RAINBOW', 'ExternalWallet.WALLETCONNECT', 'ExternalWallet.COINBASE', 'ExternalWallet.ZERION'); | ||
| } | ||
| if (networks.includes('solana')) { | ||
| externalWallets.push('ExternalWallet.BACKPACK', 'ExternalWallet.GLOW', 'ExternalWallet.PHANTOM'); | ||
| } | ||
| if (networks.includes('cosmos')) { | ||
| externalWallets.push('ExternalWallet.KEPLR', 'ExternalWallet.LEAP'); | ||
| } | ||
| const externalWalletSnippet = externalWalletSupport ? ` externalWallets={[${externalWallets.join(', ')}]}` : ``; | ||
| const wrapBegin = externalWalletSupport ? `<ParaWalletsProvider>` : ``; | ||
@@ -458,17 +469,2 @@ const wrapEnd = externalWalletSupport ? `</ParaWalletsProvider>` : ``; | ||
| : `className="open-button"`; | ||
| const externalWalletSnippet = externalWalletSupport | ||
| ? ` externalWallets={[ | ||
| ExternalWallet.BACKPACK, | ||
| ExternalWallet.COINBASE, | ||
| ExternalWallet.GLOW, | ||
| ExternalWallet.KEPLR, | ||
| ExternalWallet.LEAP, | ||
| ExternalWallet.METAMASK, | ||
| ExternalWallet.PHANTOM, | ||
| ExternalWallet.RABBY, | ||
| ExternalWallet.RAINBOW, | ||
| ExternalWallet.WALLETCONNECT, | ||
| ExternalWallet.ZERION, | ||
| ]}` | ||
| : ``; | ||
| return ` | ||
@@ -475,0 +471,0 @@ ${maybeUseClient}import React, { useState } from "react"; |
@@ -49,3 +49,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| } | ||
| const homeCode = getHomeFile(!!tailwind, !noTypescript, !!externalWalletSupport); | ||
| const homeCode = getHomeFile(!!tailwind, !noTypescript, !!externalWalletSupport, networks); | ||
| let mainPath = ''; | ||
@@ -52,0 +52,0 @@ if (noAppRouter) { |
@@ -46,3 +46,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| } | ||
| const homeCode = getHomeFile(!!tailwind, !noTypescript, !!externalWalletSupport); | ||
| const homeCode = getHomeFile(!!tailwind, !noTypescript, !!externalWalletSupport, networks); | ||
| const mainFileDir = noSrcDir ? projectName : path.join(projectName, 'src'); | ||
@@ -49,0 +49,0 @@ const mainFilePath = path.join(mainFileDir, `App.${noTypescript ? 'jsx' : 'tsx'}`); |
+1
-1
| { | ||
| "name": "@getpara/create-para-app", | ||
| "version": "0.5.0", | ||
| "version": "0.6.0", | ||
| "main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
129049
0.16%2770
-0.14%