@create-moralis-dapp/next
Advanced tools
Comparing version 2.16.1 to 2.17.0
@@ -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 |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
27604
371