@inquirer/expand 0.0.20-alpha.0 → 0.0.21-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/demo.js +1 -1
  2. package/index.js +9 -5
  3. package/package.json +6 -5
package/demo.js CHANGED
@@ -1,4 +1,4 @@
1
- const expand = require('.');
1
+ import expand from './index.js';
2
2
 
3
3
  (async () => {
4
4
  let answer;
package/index.js CHANGED
@@ -1,7 +1,11 @@
1
- const { createPrompt, useState, useKeypress } = require('@inquirer/core/hooks');
2
- const { usePrefix } = require('@inquirer/core/lib/prefix');
3
- const { isEnterKey } = require('@inquirer/core/lib/key');
4
- const chalk = require('chalk');
1
+ import {
2
+ createPrompt,
3
+ useState,
4
+ useKeypress,
5
+ usePrefix,
6
+ isEnterKey,
7
+ } from '@inquirer/core';
8
+ import chalk from 'chalk';
5
9
 
6
10
  const helpChoice = {
7
11
  key: 'h',
@@ -9,7 +13,7 @@ const helpChoice = {
9
13
  value: undefined,
10
14
  };
11
15
 
12
- module.exports = createPrompt((config, done) => {
16
+ export default createPrompt((config, done) => {
13
17
  const {
14
18
  choices,
15
19
  default: defaultKey = 'h',
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@inquirer/expand",
3
- "version": "0.0.20-alpha.0",
3
+ "type": "module",
4
+ "version": "0.0.21-alpha.0",
4
5
  "description": "Inquirer checkbox prompt",
5
6
  "main": "index.js",
6
7
  "repository": "SBoudrias/Inquirer.js",
@@ -15,12 +16,12 @@
15
16
  "license": "MIT",
16
17
  "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/expand/README.md",
17
18
  "dependencies": {
18
- "@inquirer/core": "^0.0.20-alpha.0",
19
- "chalk": "^4.1.1",
20
- "figures": "^3.0.0"
19
+ "@inquirer/core": "^0.0.21-alpha.0",
20
+ "chalk": "^5.0.1",
21
+ "figures": "^4.0.1"
21
22
  },
22
23
  "publishConfig": {
23
24
  "access": "public"
24
25
  },
25
- "gitHead": "83b807522ca6e10ab90a6921eac9d9655e2dac38"
26
+ "gitHead": "cd0d1465327c0e98a89c937a80b7c473b6d00f74"
26
27
  }