Socket
Socket
Sign inDemoInstall

@inquirer/core

Package Overview
Dependencies
11
Maintainers
3
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.3.0

10

./dist/cjs/index.js

@@ -139,4 +139,5 @@ "use strict";

var _a, _b;
// Set our state before starting the prompt.
resetHookState();
if (sessionRl) {
throw new Error('An inquirer prompt is already running.\nMake sure you await the result of the previous prompt before calling another prompt.');
}
// Default `input` to stdin

@@ -172,2 +173,3 @@ const input = (_a = context === null || context === void 0 ? void 0 : context.input) !== null && _a !== void 0 ? _a : process.stdin;

screen.done();
resetHookState();
process.removeListener('SIGINT', onForceExit);

@@ -210,2 +212,3 @@ };

catch (err) {
onExit();
reject(err);

@@ -217,2 +220,5 @@ }

});
answer.catch(() => {
resetHookState();
});
answer.cancel = cancel;

@@ -219,0 +225,0 @@ return answer;

@@ -139,4 +139,5 @@ "use strict";

var _a, _b;
// Set our state before starting the prompt.
resetHookState();
if (sessionRl) {
throw new Error('An inquirer prompt is already running.\nMake sure you await the result of the previous prompt before calling another prompt.');
}
// Default `input` to stdin

@@ -172,2 +173,3 @@ const input = (_a = context === null || context === void 0 ? void 0 : context.input) !== null && _a !== void 0 ? _a : process.stdin;

screen.done();
resetHookState();
process.removeListener('SIGINT', onForceExit);

@@ -210,2 +212,3 @@ };

catch (err) {
onExit();
reject(err);

@@ -217,2 +220,5 @@ }

});
answer.catch(() => {
resetHookState();
});
answer.cancel = cancel;

@@ -219,0 +225,0 @@ return answer;

6

package.json
{
"name": "@inquirer/core",
"version": "2.2.0",
"version": "2.3.0",
"engines": {

@@ -73,3 +73,3 @@ "node": ">=14.18.0"

"devDependencies": {
"@inquirer/testing": "^2.0.0"
"@inquirer/testing": "^2.1.0"
},

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

},
"gitHead": "ba98109480c442d261f243e4117243a9e2f12fd0"
"gitHead": "4c139f50414bd538eae1d48e61fd2586581d3e70"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc