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

@poppinss/prompts

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poppinss/prompts - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

build/src/Base.d.ts

@@ -12,3 +12,3 @@ /**

export declare abstract class Prompt extends EventEmitter implements PromptContract {
protected abstract $prompt(options: any): Promise<any>;
protected abstract prompt(options: any): Promise<any>;
on(event: 'prompt', callback: (options: PromptEventOptions) => any): this;

@@ -15,0 +15,0 @@ on(event: 'prompt:error', callback: (message: string) => any): this;

@@ -38,3 +38,3 @@ "use strict";

builder.addProp('validate', options.validate);
return this.$prompt(builder.toJSON());
return this.prompt(builder.toJSON());
}

@@ -54,3 +54,3 @@ /**

builder.addProp('validate', options.validate);
return this.$prompt(builder.toJSON());
return this.prompt(builder.toJSON());
}

@@ -70,3 +70,3 @@ /**

builder.addProp('validate', options.validate);
return this.$prompt(builder.toJSON());
return this.prompt(builder.toJSON());
}

@@ -88,3 +88,3 @@ /**

builder.addProp('disabled', choices[1]);
return this.$prompt(builder.toJSON());
return this.prompt(builder.toJSON());
}

@@ -110,3 +110,3 @@ /**

}));
return this.$prompt(builder.toJSON());
return this.prompt(builder.toJSON());
}

@@ -132,5 +132,5 @@ /**

}));
return this.$prompt(builder.toJSON());
return this.prompt(builder.toJSON());
}
}
exports.Prompt = Prompt;

@@ -10,3 +10,3 @@ /**

export declare class EmitterPrompt extends Prompt {
protected $prompt(options: any): Promise<any>;
protected prompt(options: any): Promise<any>;
}

@@ -20,3 +20,3 @@ "use strict";

class EmitterPrompt extends Base_1.Prompt {
$prompt(options) {
prompt(options) {
return new Promise((resolve, reject) => {

@@ -23,0 +23,0 @@ const self = this;

@@ -10,3 +10,3 @@ /**

export declare class EnquirerPrompt extends Prompt {
protected $prompt(options: any): Promise<any>;
protected prompt(options: any): Promise<any>;
}

@@ -29,3 +29,3 @@ "use strict";

class EnquirerPrompt extends Base_1.Prompt {
async $prompt(options) {
async prompt(options) {
options = Object.assign({ name: 'prompt' }, options);

@@ -32,0 +32,0 @@ const output = await enquirer.prompt(options);

{
"name": "@poppinss/prompts",
"version": "1.0.7",
"version": "1.0.8",
"description": "Module on top of enquirer with API to fake prompts during testing",

@@ -38,5 +38,5 @@ "main": "build/index.js",

"devDependencies": {
"@adonisjs/mrm-preset": "^2.2.4",
"@types/node": "^13.7.0",
"commitizen": "^4.0.3",
"@adonisjs/mrm-preset": "^2.3.0",
"@types/node": "^13.11.1",
"commitizen": "^4.0.4",
"cz-conventional-changelog": "^3.1.0",

@@ -46,12 +46,12 @@ "del-cli": "^3.0.0",

"eslint": "^6.8.0",
"eslint-plugin-adonis": "^1.0.6",
"husky": "^4.2.1",
"eslint-plugin-adonis": "^1.0.9",
"husky": "^4.2.3",
"japa": "^3.0.1",
"mrm": "^2.0.4",
"mrm": "^2.2.0",
"np": "^5.2.1",
"ts-node": "^8.6.2",
"typedoc": "^0.16.9",
"ts-node": "^8.8.2",
"typedoc": "^0.17.4",
"typedoc-plugin-external-module-name": "^3.0.0",
"typedoc-plugin-markdown": "^2.2.16",
"typescript": "^3.7.5"
"typedoc-plugin-markdown": "^2.2.17",
"typescript": "^3.8.3"
},

@@ -82,4 +82,4 @@ "nyc": {

"dependencies": {
"enquirer": "^2.3.4"
"enquirer": "^2.3.5"
}
}
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