@inquirer/password 0.0.17-alpha.0 → 0.0.20-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.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Simon Boudrias
1
+ Copyright (c) 2022 Simon Boudrias
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
@@ -19,4 +19,4 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
19
  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
20
  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
21
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.
22
+ OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -30,5 +30,5 @@ const answer = await password({ message: 'Enter your name' });
30
30
 
31
31
  # License
32
32
 
33
- Copyright (c) 2019 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
33
+ Copyright (c) 2022 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
34
34
  Licensed under the MIT license.
package/demo.js CHANGED
@@ -1,4 +1,4 @@
1
- const password = require('.');
1
+ import password from './index.js';
2
2
 
3
3
  (async () => {
4
4
  let answer;
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
- const input = require('@inquirer/input');
2
- const chalk = require('chalk');
1
+ import input from '@inquirer/input';
2
+ import chalk from 'chalk';
3
3
 
4
- module.exports = (config, ...args) => {
4
+ export default (config, ...args) => {
5
5
  if (config.transformer) {
6
6
  throw new Error(
7
7
  'Inquirer password prompt do not support custom transformer function. Use the input prompt instead.'
@@ -12,7 +12,7 @@ module.exports = (config, ...args) => {
12
12
  {
13
13
  ...config, // Make sure we do not display the default password
14
14
  default: undefined,
15
- transformer: (input, { isFinal }) => {
15
+ transformer(input, { isFinal }) {
16
16
  if (config.mask) {
17
17
  return String(config.mask).repeat(input.length);
18
18
  }
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@inquirer/password",
3
- "version": "0.0.17-alpha.0",
3
+ "type": "module",
4
+ "version": "0.0.20-alpha.0",
4
5
  "description": "Inquirer password prompt",
6
+ "main": "index.js",
7
+ "repository": "SBoudrias/Inquirer.js",
5
8
  "keywords": [
6
9
  "cli",
7
10
  "command",
@@ -13,16 +16,14 @@
13
16
  "terminal"
14
17
  ],
15
18
  "author": "Simon Boudrias <admin@simonboudrias.com>",
16
- "homepage": "https://github.com/SBoudrias/Inquirer.js#readme",
17
19
  "license": "MIT",
18
- "main": "index.js",
19
- "repository": "SBoudrias/Inquirer.js",
20
+ "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/password/README.md",
20
21
  "dependencies": {
21
- "@inquirer/input": "^0.0.18-alpha.0",
22
- "chalk": "^4.1.1"
22
+ "@inquirer/input": "^0.0.21-alpha.0",
23
+ "chalk": "^5.0.1"
23
24
  },
24
25
  "publishConfig": {
25
26
  "access": "public"
26
27
  },
27
- "gitHead": "e71313db1a6e26f501b58d75a9d3acf53dab5da7"
28
+ "gitHead": "cd0d1465327c0e98a89c937a80b7c473b6d00f74"
28
29
  }