yargs 15.3.2-beta.0 → 15.4.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.
- package/CHANGELOG.md +21 -0
- package/LICENSE +2 -3
- package/README.md +4 -4
- package/build/lib/apply-extends.d.ts +2 -2
- package/build/lib/apply-extends.js +2 -1
- package/build/lib/argsert.js +1 -0
- package/build/lib/command.d.ts +64 -0
- package/build/lib/command.js +416 -0
- package/build/lib/common-types.d.ts +36 -0
- package/build/lib/common-types.js +25 -0
- package/build/lib/completion-templates.js +1 -0
- package/build/lib/completion.d.ts +20 -1
- package/build/lib/completion.js +14 -5
- package/build/lib/is-promise.js +1 -0
- package/build/lib/levenshtein.js +1 -0
- package/build/lib/middleware.d.ts +10 -0
- package/build/lib/middleware.js +57 -0
- package/build/lib/obj-filter.d.ts +1 -2
- package/build/lib/obj-filter.js +4 -2
- package/build/lib/parse-command.d.ts +10 -1
- package/build/lib/parse-command.js +1 -0
- package/build/lib/process-argv.js +1 -0
- package/build/lib/usage.d.ts +48 -2
- package/build/lib/usage.js +19 -5
- package/build/lib/validation.d.ts +33 -2
- package/build/lib/validation.js +6 -4
- package/build/lib/yargs.d.ts +274 -0
- package/build/lib/yargs.js +1190 -0
- package/build/lib/yerror.js +1 -0
- package/package.json +5 -8
- package/yargs.js +2 -1291
- package/build/lib/type-helpers/command-builder.d.ts +0 -2
- package/build/lib/type-helpers/command-builder.js +0 -6
- package/build/lib/type-helpers/completion-function.d.ts +0 -2
- package/build/lib/type-helpers/completion-function.js +0 -6
- package/build/lib/type-helpers/index.d.ts +0 -2
- package/build/lib/type-helpers/index.js +0 -7
- package/build/lib/types/command-builder.d.ts +0 -5
- package/build/lib/types/command-builder.js +0 -2
- package/build/lib/types/command-handler.d.ts +0 -4
- package/build/lib/types/command-handler.js +0 -2
- package/build/lib/types/command-instance.d.ts +0 -7
- package/build/lib/types/command-instance.js +0 -2
- package/build/lib/types/completion-function.d.ts +0 -8
- package/build/lib/types/completion-function.js +0 -2
- package/build/lib/types/completion-instance.d.ts +0 -10
- package/build/lib/types/completion-instance.js +0 -2
- package/build/lib/types/context.d.ts +0 -4
- package/build/lib/types/context.js +0 -2
- package/build/lib/types/custom-check.d.ts +0 -5
- package/build/lib/types/custom-check.js +0 -2
- package/build/lib/types/dictionary.d.ts +0 -3
- package/build/lib/types/dictionary.js +0 -2
- package/build/lib/types/electron-process.d.ts +0 -7
- package/build/lib/types/electron-process.js +0 -2
- package/build/lib/types/failure-function.d.ts +0 -5
- package/build/lib/types/failure-function.js +0 -2
- package/build/lib/types/frozen-usage-instance.d.ts +0 -11
- package/build/lib/types/frozen-usage-instance.js +0 -2
- package/build/lib/types/frozen-validation-instance.d.ts +0 -8
- package/build/lib/types/frozen-validation-instance.js +0 -2
- package/build/lib/types/index.d.ts +0 -20
- package/build/lib/types/index.js +0 -2
- package/build/lib/types/key-or-pos.d.ts +0 -1
- package/build/lib/types/key-or-pos.js +0 -2
- package/build/lib/types/logger-instance.d.ts +0 -2
- package/build/lib/types/logger-instance.js +0 -2
- package/build/lib/types/options.d.ts +0 -19
- package/build/lib/types/options.js +0 -2
- package/build/lib/types/parsed-command.d.ts +0 -6
- package/build/lib/types/parsed-command.js +0 -2
- package/build/lib/types/parser-configuration.d.ts +0 -5
- package/build/lib/types/parser-configuration.js +0 -2
- package/build/lib/types/positional.d.ts +0 -4
- package/build/lib/types/positional.js +0 -2
- package/build/lib/types/usage-instance.d.ts +0 -37
- package/build/lib/types/usage-instance.js +0 -2
- package/build/lib/types/validation-instance.d.ts +0 -28
- package/build/lib/types/validation-instance.js +0 -2
- package/build/lib/types/yargs-instance.d.ts +0 -44
- package/build/lib/types/yargs-instance.js +0 -2
- package/lib/command.js +0 -435
- package/lib/middleware.js +0 -64
package/build/lib/yerror.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yargs",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.4.1",
|
|
4
4
|
"description": "yargs the modern, pirate-themed, successor to optimist.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"contributors": [
|
|
@@ -13,15 +13,12 @@
|
|
|
13
13
|
"index.js",
|
|
14
14
|
"yargs.js",
|
|
15
15
|
"build",
|
|
16
|
-
"lib/**/*.js",
|
|
17
16
|
"locales",
|
|
18
|
-
"completion.sh.hbs",
|
|
19
|
-
"completion.zsh.hbs",
|
|
20
17
|
"LICENSE"
|
|
21
18
|
],
|
|
22
19
|
"dependencies": {
|
|
23
20
|
"cliui": "^6.0.0",
|
|
24
|
-
"decamelize": "^
|
|
21
|
+
"decamelize": "^1.2.0",
|
|
25
22
|
"find-up": "^4.1.0",
|
|
26
23
|
"get-caller-file": "^2.0.1",
|
|
27
24
|
"require-directory": "^2.1.1",
|
|
@@ -34,11 +31,11 @@
|
|
|
34
31
|
},
|
|
35
32
|
"devDependencies": {
|
|
36
33
|
"@types/chai": "^4.2.11",
|
|
34
|
+
"@types/decamelize": "^1.2.0",
|
|
37
35
|
"@types/mocha": "^7.0.2",
|
|
38
36
|
"@types/node": "^10.0.3",
|
|
39
|
-
"@
|
|
40
|
-
"@typescript-eslint/
|
|
41
|
-
"@typescript-eslint/parser": "^2.25.0",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^3.0.0",
|
|
38
|
+
"@typescript-eslint/parser": "^3.0.0",
|
|
42
39
|
"c8": "^7.0.0",
|
|
43
40
|
"chai": "^4.2.0",
|
|
44
41
|
"chalk": "^4.0.0",
|