@inquirer/input 0.1.0 → 1.0.1

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/LICENSE +1 -1
  2. package/README.md +2 -2
  3. package/package.json +8 -5
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2022 Simon Boudrias
1
+ Copyright (c) 2023 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
package/README.md CHANGED
@@ -26,10 +26,10 @@ const answer = await input({ message: 'Enter your name' });
26
26
  | ----------- | ----------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27
27
  | message | `string` | yes | The question to ask |
28
28
  | default | `string` | no | Default value if no answer is provided (clear it by pressing backspace) |
29
- | transformer | `(string, { isFinal: boolean }) => string` | no | Transform/Format the raw value entered by the user. Once the prompt is completed, `isFinal` will be `true`. This function is purely visual; to modify the answer, use the `filter` option. |
29
+ | transformer | `(string, { isFinal: boolean }) => string` | no | Transform/Format the raw value entered by the user. Once the prompt is completed, `isFinal` will be `true`. This function is purely visual, modify the answer in your code if needed. |
30
30
  | validate | `string => boolean \| string \| Promise<string \| boolean>` | no | On submit, validate the filtered answered content. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |
31
31
 
32
32
  # License
33
33
 
34
- Copyright (c) 2022 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))
34
+ Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))<br/>
35
35
  Licensed under the MIT license.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/input",
3
- "version": "0.1.0",
3
+ "version": "1.0.1",
4
4
  "description": "Inquirer input text prompt",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "typings": "./dist/cjs/types/index.d.mts",
@@ -54,16 +54,19 @@
54
54
  "license": "MIT",
55
55
  "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/input/README.md",
56
56
  "dependencies": {
57
- "@inquirer/core": "^1.0.0",
58
- "@inquirer/type": "^0.1.0",
57
+ "@inquirer/core": "^1.0.2",
58
+ "@inquirer/type": "^1.0.1",
59
59
  "chalk": "^5.2.0"
60
60
  },
61
+ "devDependencies": {
62
+ "@inquirer/testing": "^1.0.1"
63
+ },
61
64
  "scripts": {
62
65
  "tsc": "yarn run clean && yarn run tsc:esm && yarn run tsc:cjs",
63
66
  "clean": "rm -rf dist",
64
67
  "tsc:esm": "tsc -p ./tsconfig.esm.json",
65
68
  "tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
66
- "fix-ext": "ts-node ../../tools/rename-ext.ts"
69
+ "fix-ext": "ts-node ../../tools/rename-ext.mts"
67
70
  },
68
71
  "publishConfig": {
69
72
  "access": "public"
@@ -83,5 +86,5 @@
83
86
  }
84
87
  }
85
88
  },
86
- "gitHead": "bd58130dd8204945a31b062070b829003b8385fc"
89
+ "gitHead": "5b8563d850962ce48daba46e7e95e7285d581a56"
87
90
  }