Comparing version 9.0.0 to 9.0.1
{ | ||
"name": "inquirer", | ||
"type": "module", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "A collection of common interactive command line user interfaces.", | ||
@@ -50,5 +50,5 @@ "author": "Simon Boudrias <admin@simonboudrias.com>", | ||
"mute-stream": "0.0.8", | ||
"ora": "^6.1.0", | ||
"ora": "^6.1.2", | ||
"run-async": "^2.4.0", | ||
"rxjs": "^7.5.5", | ||
"rxjs": "^7.5.6", | ||
"string-width": "^5.1.2", | ||
@@ -59,3 +59,3 @@ "strip-ansi": "^7.0.1", | ||
}, | ||
"gitHead": "cd0d1465327c0e98a89c937a80b7c473b6d00f74" | ||
"gitHead": "1d5e7e3d15c86851f2e5df2bb9f55084ba231c54" | ||
} |
@@ -54,7 +54,8 @@ <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"/> | ||
```shell | ||
npm install inquirer | ||
npm install --save inquirer | ||
``` | ||
```javascript | ||
var inquirer = require('inquirer'); | ||
import inquirer from 'inquirer'; | ||
inquirer | ||
@@ -76,2 +77,14 @@ .prompt([ | ||
Inquirer v9 and higher are native esm modules, this mean you cannot use the commonjs syntax `require('inquirer')` anymore. If you want to learn more about using native esm in Node, I'd recommend reading [the following guide](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). Alternatively, you can rely on an older version until you're ready to upgrade your environment: | ||
```sh | ||
npm install --save inquirer@^8.0.0 | ||
``` | ||
This will then allow import inquirer with the commonjs `require`: | ||
```js | ||
const inquirer = require('inquirer'); | ||
``` | ||
<a name="examples"></a> | ||
@@ -113,3 +126,3 @@ | ||
```js | ||
var prompt = inquirer.createPromptModule(); | ||
const prompt = inquirer.createPromptModule(); | ||
@@ -157,3 +170,3 @@ prompt(questions).then(/* ... */); | ||
// Declare function as asynchronous, and save the done callback | ||
var done = this.async(); | ||
const done = this.async(); | ||
@@ -315,3 +328,3 @@ // Do async stuff | ||
```javascript | ||
var ui = new inquirer.ui.BottomBar(); | ||
const ui = new inquirer.ui.BottomBar(); | ||
@@ -339,3 +352,3 @@ // pipe a Stream to the log zone | ||
```js | ||
var prompts = new Rx.Subject(); | ||
const prompts = new Rx.Subject(); | ||
inquirer.prompt(prompts); | ||
@@ -342,0 +355,0 @@ |
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
87672
521
Updatedora@^6.1.2
Updatedrxjs@^7.5.6