@inquirer/expand
Advanced tools
Comparing version 1.1.9 to 1.1.10
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const core_1 = require("@inquirer/core"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const chalk_1 = require("chalk"); | ||
const helpChoice = { | ||
@@ -30,4 +27,4 @@ key: 'h', | ||
const prefix = (0, core_1.usePrefix)(); | ||
(0, core_1.useKeypress)((key, rl) => { | ||
if ((0, core_1.isEnterKey)(key)) { | ||
(0, core_1.useKeypress)((event, rl) => { | ||
if ((0, core_1.isEnterKey)(event)) { | ||
const answer = (value || defaultKey).toLowerCase(); | ||
@@ -34,0 +31,0 @@ if (answer === 'h' && !expanded) { |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const core_1 = require("@inquirer/core"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const chalk_1 = require("chalk"); | ||
const helpChoice = { | ||
@@ -30,4 +27,4 @@ key: 'h', | ||
const prefix = (0, core_1.usePrefix)(); | ||
(0, core_1.useKeypress)((key, rl) => { | ||
if ((0, core_1.isEnterKey)(key)) { | ||
(0, core_1.useKeypress)((event, rl) => { | ||
if ((0, core_1.isEnterKey)(event)) { | ||
const answer = (value || defaultKey).toLowerCase(); | ||
@@ -34,0 +31,0 @@ if (answer === 'h' && !expanded) { |
{ | ||
"name": "@inquirer/expand", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Inquirer checkbox prompt", | ||
@@ -57,4 +57,4 @@ "main": "./dist/cjs/index.js", | ||
"dependencies": { | ||
"@inquirer/core": "^4.0.0", | ||
"@inquirer/type": "^1.1.2", | ||
"@inquirer/core": "^4.1.0", | ||
"@inquirer/type": "^1.1.3", | ||
"chalk": "^4.1.2", | ||
@@ -64,9 +64,8 @@ "figures": "^3.2.0" | ||
"devDependencies": { | ||
"@inquirer/testing": "^2.1.4" | ||
"@inquirer/testing": "^2.1.5" | ||
}, | ||
"scripts": { | ||
"tsc": "yarn run clean && yarn run tsc:esm && yarn run tsc:cjs", | ||
"clean": "rm -rf dist", | ||
"tsc:esm": "tsc -p ./tsconfig.json", | ||
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs" | ||
"tsc": "yarn run tsc:esm && yarn run tsc:cjs", | ||
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json", | ||
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs" | ||
}, | ||
@@ -91,3 +90,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "ea5baff21fb29ed3c0931ea4030cc1dd1e92fc8d" | ||
"gitHead": "f5c544a8ded1c7dfb6ac8364759955e8f2ecfb0c" | ||
} |
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
16206
308
Updated@inquirer/core@^4.1.0
Updated@inquirer/type@^1.1.3