@thi.ng/args 2.3.22 → 2.3.24
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 +1 -1
- package/args.d.ts +4 -2
- package/package.json +12 -12
- package/parse.d.ts +1 -0
package/CHANGELOG.md
CHANGED
package/args.d.ts
CHANGED
|
@@ -201,10 +201,12 @@ export declare const kvPairsMulti: <S extends Partial<ArgSpec<KVMultiDict>>>(spe
|
|
|
201
201
|
* specified tuple size or any value coercion fails.
|
|
202
202
|
*
|
|
203
203
|
* @example
|
|
204
|
-
* ```ts
|
|
204
|
+
* ```ts tangle:../export/tuple.ts
|
|
205
205
|
* import { coerceInt, parse, tuple } from "@thi.ng/args";
|
|
206
206
|
*
|
|
207
|
-
*
|
|
207
|
+
* console.log(
|
|
208
|
+
* parse({ a: tuple(coerceInt, 2, {})}, ["--a", "1,2"])
|
|
209
|
+
* );
|
|
208
210
|
* // {
|
|
209
211
|
* // result: { a: Tuple { value: [1, 2] } },
|
|
210
212
|
* // index: 2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/args",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.24",
|
|
4
4
|
"description": "Declarative, functional & typechecked CLI argument/options parser, value coercions etc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.9.
|
|
40
|
-
"@thi.ng/checks": "^3.5.
|
|
41
|
-
"@thi.ng/errors": "^2.
|
|
42
|
-
"@thi.ng/logger": "^3.0.
|
|
43
|
-
"@thi.ng/strings": "^3.7.
|
|
44
|
-
"@thi.ng/text-format": "^2.1.
|
|
39
|
+
"@thi.ng/api": "^8.9.30",
|
|
40
|
+
"@thi.ng/checks": "^3.5.3",
|
|
41
|
+
"@thi.ng/errors": "^2.5.1",
|
|
42
|
+
"@thi.ng/logger": "^3.0.6",
|
|
43
|
+
"@thi.ng/strings": "^3.7.24",
|
|
44
|
+
"@thi.ng/text-format": "^2.1.8"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@microsoft/api-extractor": "^7.
|
|
48
|
-
"esbuild": "^0.20.
|
|
47
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
48
|
+
"esbuild": "^0.20.1",
|
|
49
49
|
"rimraf": "^5.0.5",
|
|
50
|
-
"typedoc": "^0.25.
|
|
51
|
-
"typescript": "^5.
|
|
50
|
+
"typedoc": "^0.25.12",
|
|
51
|
+
"typescript": "^5.4.2"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
54
54
|
"argument",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"thi.ng": {
|
|
104
104
|
"year": 2018
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "bc0f3cb07d6f1cab6dbdc5ff57428f5484e711bb\n"
|
|
107
107
|
}
|
package/parse.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { IObjectOf } from "@thi.ng/api";
|
|
|
3
3
|
import type { Args, ParseOpts, ParseResult } from "./api.js";
|
|
4
4
|
export declare const ParseError: {
|
|
5
5
|
new (msg?: string | undefined): {
|
|
6
|
+
origMessage: string;
|
|
6
7
|
name: string;
|
|
7
8
|
message: string;
|
|
8
9
|
stack?: string | undefined;
|