Socket
Socket
Sign inDemoInstall

inquirer

Package Overview
Dependencies
Maintainers
4
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inquirer - npm Package Compare versions

Comparing version 10.0.3 to 10.0.4

4

dist/cjs/types/ui/prompt.d.ts
import { Observable } from 'rxjs';
import type { InquirerReadline } from '@inquirer/type';
import type { Answers, Question, QuestionAnswerMap, QuestionArray, QuestionObservable, StreamOptions } from '../types.js';
export declare const _: {
set: (obj: object, path: string | undefined, value: unknown) => void;
get: (obj: object, path?: string | number | symbol, defaultValue?: unknown) => any;
};
export interface PromptBase {

@@ -5,0 +9,0 @@ /**

9

dist/cjs/ui/prompt.js

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports._ = void 0;
/* eslint-disable @typescript-eslint/no-explicit-any */

@@ -13,3 +14,3 @@ const node_readline_1 = __importDefault(require("node:readline"));

const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
const _ = {
exports._ = {
set: (obj, path = '', value) => {

@@ -23,3 +24,3 @@ let pointer = obj;

}
else if (!(key in pointer)) {
else if (!(key in pointer) || typeof pointer[key] !== 'object') {
pointer[key] = {};

@@ -186,3 +187,3 @@ }

if (question.askAnswered !== true &&
_.get(this.answers, question.name) !== undefined) {
exports._.get(this.answers, question.name) !== undefined) {
return rxjs_1.EMPTY;

@@ -230,3 +231,3 @@ }

const promise = (0, rxjs_1.lastValueFrom)(this.process.pipe((0, rxjs_1.reduce)((answersObj, answer) => {
_.set(answersObj, answer.name, answer.answer);
exports._.set(answersObj, answer.name, answer.answer);
return answersObj;

@@ -233,0 +234,0 @@ }, this.answers))).then(() => this.onCompletion(), (error) => this.onError(error));

{
"name": "inquirer",
"version": "10.0.3",
"version": "10.0.4",
"description": "A collection of common interactive command line user interfaces.",

@@ -58,3 +58,3 @@ "author": "Simon Boudrias <admin@simonboudrias.com>",

"dependencies": {
"@inquirer/prompts": "^5.2.0",
"@inquirer/prompts": "^5.2.1",
"@inquirer/type": "^1.5.0",

@@ -67,3 +67,3 @@ "@types/mute-stream": "^0.0.4",

},
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/inquirer/README.md",
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/inquirer/README.md",
"sideEffects": false,

@@ -90,3 +90,3 @@ "scripts": {

"typings": "./dist/cjs/types/index.d.ts",
"gitHead": "6e2ddec8ca97ee176f080efd2cba76e39b5b9628"
"gitHead": "f2c4983dd390c6244fb4668a8e87c9e786e4326f"
}

@@ -1,2 +0,2 @@

<img width="75px" height="75px" align="right" alt="Inquirer Logo" src="https://raw.githubusercontent.com/SBoudrias/Inquirer.js/master/assets/inquirer_readme.svg?sanitize=true" title="Inquirer.js"/>
<img width="75px" height="75px" align="right" alt="Inquirer Logo" src="https://raw.githubusercontent.com/SBoudrias/Inquirer.js/main/assets/inquirer_readme.svg?sanitize=true" title="Inquirer.js"/>

@@ -101,3 +101,3 @@ # Inquirer.js

Check out the [`packages/inquirer/examples/`](https://github.com/SBoudrias/Inquirer.js/tree/master/packages/inquirer/examples) folder for code and interface examples.
Check out the [`packages/inquirer/examples/`](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/inquirer/examples) folder for code and interface examples.

@@ -425,3 +425,3 @@ ```shell

You can build custom prompts, or use open sourced ones. See [`@inquirer/core` documentation for building custom prompts](https://github.com/SBoudrias/Inquirer.js/tree/master/packages/core).
You can build custom prompts, or use open sourced ones. See [`@inquirer/core` documentation for building custom prompts](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/core).

@@ -428,0 +428,0 @@ You can either call the custom prompts directly (preferred), or you can register them (depreciated):

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