Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@getpara/create-para-app

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getpara/create-para-app - npm Package Compare versions

Comparing version
0.5.0
to
0.6.0
+1
-1
dist/package.json
{
"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'}`);

{
"name": "@getpara/create-para-app",
"version": "0.5.0",
"version": "0.6.0",
"main": "dist/src/index.js",

@@ -5,0 +5,0 @@ "type": "module",