@thi.ng/args 2.3.21 → 2.3.23

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-07T20:40:47Z
3
+ - **Last updated**: 2024-03-13T14:04:31Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
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
- * parse({ a: tuple(coerceInt, 2, {})}, ["--a", "1,2"])
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.21",
3
+ "version": "2.3.23",
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.28",
40
- "@thi.ng/checks": "^3.5.2",
41
- "@thi.ng/errors": "^2.4.20",
42
- "@thi.ng/logger": "^3.0.5",
43
- "@thi.ng/strings": "^3.7.21",
44
- "@thi.ng/text-format": "^2.1.6"
39
+ "@thi.ng/api": "^8.9.30",
40
+ "@thi.ng/checks": "^3.5.3",
41
+ "@thi.ng/errors": "^2.5.0",
42
+ "@thi.ng/logger": "^3.0.6",
43
+ "@thi.ng/strings": "^3.7.23",
44
+ "@thi.ng/text-format": "^2.1.8"
45
45
  },
46
46
  "devDependencies": {
47
- "@microsoft/api-extractor": "^7.40.1",
48
- "esbuild": "^0.20.0",
47
+ "@microsoft/api-extractor": "^7.42.3",
48
+ "esbuild": "^0.20.1",
49
49
  "rimraf": "^5.0.5",
50
- "typedoc": "^0.25.7",
51
- "typescript": "^5.3.3"
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": "a421058a65ba76608d94129ac29451bfedaf201c\n"
106
+ "gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\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;