Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@create-moralis-dapp/next

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@create-moralis-dapp/next - npm Package Compare versions

Comparing version 2.16.1 to 2.17.0

114

lib/NextAppInquirer.d.ts

@@ -0,116 +1,6 @@

/// <reference types="prompts" />
export declare class NextAppInquirer {
private static commonQuestions;
static inquire(): Promise<import("@create-moralis-dapp/toolkit").InquirerAnswers<({
readonly name: "confirmBeta";
readonly type: "confirm";
readonly default: true;
readonly message: "Note: This tool is still in beta, and in active development.\n Many changes and updates are coming, which may impact your experience.\n Reach out to us in forum.moralis.io or in our discord for any feedback.";
} | {
readonly type: "input";
readonly name: "name";
readonly message: "What name would you like to use for your new project? ...";
readonly default: "moralis-dapp";
readonly prefix: "🧙 :";
} | {
readonly name: "moralisApiKey";
readonly message: "Input your Moralis Api key. You can find it on https://admin.moralis.io/web3apis";
readonly type: "password";
readonly prefix: "🧙 :";
readonly default: null;
} | {
readonly type: "list";
readonly name: "packageManager";
readonly message: "🧙 : Select a package manager for installing dependencies ...";
readonly choices: readonly ["yarn", "npm", "pnpm"];
readonly default: "yarn";
} | {
type: string;
name: string;
message: string;
choices: {
name: string;
value: {
name: string;
imports: string;
config: string;
wrappers: string[];
dependencies: import("@create-moralis-dapp/toolkit").Dependency[];
};
}[];
prefix: string;
default: {
name: string;
value: {
name: string;
imports: string;
config: string;
wrappers: string[];
dependencies: import("@create-moralis-dapp/toolkit").Dependency[];
};
};
} | {
name: string;
message: string;
default: string;
prefix: string;
type?: undefined;
choices?: undefined;
})[]>>;
static questions: ({
readonly name: "confirmBeta";
readonly type: "confirm";
readonly default: true;
readonly message: "Note: This tool is still in beta, and in active development.\n Many changes and updates are coming, which may impact your experience.\n Reach out to us in forum.moralis.io or in our discord for any feedback.";
} | {
readonly type: "input";
readonly name: "name";
readonly message: "What name would you like to use for your new project? ...";
readonly default: "moralis-dapp";
readonly prefix: "🧙 :";
} | {
readonly name: "moralisApiKey";
readonly message: "Input your Moralis Api key. You can find it on https://admin.moralis.io/web3apis";
readonly type: "password";
readonly prefix: "🧙 :";
readonly default: null;
} | {
readonly type: "list";
readonly name: "packageManager";
readonly message: "🧙 : Select a package manager for installing dependencies ...";
readonly choices: readonly ["yarn", "npm", "pnpm"];
readonly default: "yarn";
} | {
type: string;
name: string;
message: string;
choices: {
name: string;
value: {
name: string;
imports: string;
config: string;
wrappers: string[];
dependencies: import("@create-moralis-dapp/toolkit").Dependency[];
};
}[];
prefix: string;
default: {
name: string;
value: {
name: string;
imports: string;
config: string;
wrappers: string[];
dependencies: import("@create-moralis-dapp/toolkit").Dependency[];
};
};
} | {
name: string;
message: string;
default: string;
prefix: string;
type?: undefined;
choices?: undefined;
})[];
static inquire(): Promise<import("prompts").Answers<"web3Lib" | "nextAuthUrl" | "packageManager" | "confirmBeta" | "name" | "moralisApiKey">>;
}
//# sourceMappingURL=NextAppInquirer.d.ts.map

52

lib/NextAppInquirer.js

@@ -47,34 +47,30 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_b) {
return [2 /*return*/, toolkit_1.Inquirer.inquire(this.questions)];
return __generator(this, function (_a) {
return [2 /*return*/, toolkit_1.Inquirer.inquire([
this.commonQuestions.confirmBeta,
this.commonQuestions.name,
{
type: 'select',
name: 'web3Lib',
message: 'Select a Web3 library ...',
choices: [
{ title: 'wagmi', value: web3LibSchema_1.web3LibSchema.wagmi },
{ title: 'useDapp', value: web3LibSchema_1.web3LibSchema.useDapp },
{ title: 'web3-react', value: web3LibSchema_1.web3LibSchema.web3React },
],
initial: 0,
},
{
name: 'nextAuthUrl',
type: 'text',
message: 'Input your NextJS app URL. You can use "http://localhost:3000" for development. Change it before go production!',
initial: 'http://localhost:3000',
},
this.commonQuestions.moralisApiKey,
this.commonQuestions.packageManager,
])];
});
});
};
var _a;
_a = NextAppInquirer;
NextAppInquirer.commonQuestions = toolkit_1.Inquirer.commonQuestions;
NextAppInquirer.questions = [
_a.commonQuestions.confirmBeta,
_a.commonQuestions.name,
{
type: 'list',
name: 'web3Lib',
message: 'Select a Web3 library ...',
choices: [
{ name: 'wagmi', value: web3LibSchema_1.web3LibSchema.wagmi },
{ name: 'useDapp', value: web3LibSchema_1.web3LibSchema.useDapp },
{ name: 'web3-react', value: web3LibSchema_1.web3LibSchema.web3React },
],
prefix: '🧙 :',
default: { name: 'wagmi', value: web3LibSchema_1.web3LibSchema.wagmi },
},
{
name: 'nextAuthUrl',
message: 'Input your NextJS app URL. You can use "http://localhost:3000" for development. Change it before go production!',
default: 'http://localhost:3000',
prefix: '🧙 :',
},
_a.commonQuestions.moralisApiKey,
_a.commonQuestions.packageManager,
];
return NextAppInquirer;

@@ -81,0 +77,0 @@ }());

{
"name": "@create-moralis-dapp/next",
"author": "Moralis",
"version": "2.16.1",
"version": "2.17.0",
"license": "MIT",

@@ -25,3 +25,3 @@ "main": "./lib/index.js",

"dependencies": {
"@create-moralis-dapp/toolkit": "^2.16.1"
"@create-moralis-dapp/toolkit": "^2.17.0"
},

@@ -28,0 +28,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc