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

prompts

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompts - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

8

lib/index.js

@@ -28,6 +28,2 @@ 'use strict';

if (typeof question.message !== 'string') {
throw new Error('prompt message is required');
}
// if property is a function, invoke it unless it's ignored

@@ -40,2 +36,6 @@ for (let key in question) {

if (typeof question.message !== 'string') {
throw new Error('prompt message is required');
}
// update vars in case they changed

@@ -42,0 +42,0 @@ ({ name, type } = question);

{
"name": "prompts",
"version": "0.1.7",
"version": "0.1.8",
"description": "Lightweight, beautiful and user-friendly prompts",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/terkelg/prompts",

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