@thi.ng/args 2.2.40 → 2.2.43

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**: 2023-10-23T07:37:37Z
3
+ - **Last updated**: 2023-11-24T09:35:46Z
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/README.md CHANGED
@@ -69,7 +69,7 @@ For Node.js REPL:
69
69
  const args = await import("@thi.ng/args");
70
70
  ```
71
71
 
72
- Package sizes (brotli'd, pre-treeshake): ESM: 2.29 KB
72
+ Package sizes (brotli'd, pre-treeshake): ESM: 2.39 KB
73
73
 
74
74
  ## Dependencies
75
75
 
package/api.js CHANGED
@@ -9,6 +9,7 @@ export const DEFAULT_THEME = {
9
9
  * Wrapper for fixed size tuple values produced by {@link tuple}.
10
10
  */
11
11
  export class Tuple {
12
+ value;
12
13
  constructor(value) {
13
14
  this.value = value;
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/args",
3
- "version": "2.2.40",
3
+ "version": "2.2.43",
4
4
  "description": "Declarative, functional & typechecked CLI argument/options parser, value coercions etc.",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -28,24 +28,23 @@
28
28
  "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc",
29
29
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && tools:readme",
32
- "doc:stats": "tools:module-stats",
31
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
33
32
  "pub": "yarn npm publish --access public",
34
- "test": "testament test"
33
+ "test": "bun test"
35
34
  },
36
35
  "dependencies": {
37
- "@thi.ng/api": "^8.9.6",
38
- "@thi.ng/checks": "^3.4.6",
39
- "@thi.ng/errors": "^2.4.0",
40
- "@thi.ng/strings": "^3.6.4"
36
+ "@thi.ng/api": "^8.9.9",
37
+ "@thi.ng/checks": "^3.4.9",
38
+ "@thi.ng/errors": "^2.4.3",
39
+ "@thi.ng/strings": "^3.7.0"
41
40
  },
42
41
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.38.0",
44
- "@thi.ng/testament": "^0.3.24",
42
+ "@microsoft/api-extractor": "^7.38.3",
43
+ "@thi.ng/testament": "^0.4.2",
45
44
  "rimraf": "^5.0.5",
46
45
  "tools": "^0.0.1",
47
- "typedoc": "^0.25.2",
48
- "typescript": "^5.2.2"
46
+ "typedoc": "^0.25.3",
47
+ "typescript": "^5.3.2"
49
48
  },
50
49
  "keywords": [
51
50
  "argument",
@@ -96,5 +95,5 @@
96
95
  "thi.ng": {
97
96
  "year": 2018
98
97
  },
99
- "gitHead": "336bd1bf95825b3c318a3ab49c54451c94aaa883\n"
98
+ "gitHead": "f6de41f4991704fdbbb2899bb430ed4f4f6efab0\n"
100
99
  }
package/parse.d.ts CHANGED
@@ -6,6 +6,7 @@ export declare const ParseError: {
6
6
  name: string;
7
7
  message: string;
8
8
  stack?: string | undefined;
9
+ cause?: unknown;
9
10
  };
10
11
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
11
12
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;