@thi.ng/args 2.3.15 → 2.3.17

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-02-19T16:07:07Z
3
+ - **Last updated**: 2024-02-25T14:07:53Z
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
@@ -18,7 +18,7 @@
18
18
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
19
19
 
20
20
  > [!NOTE]
21
- > This is one of 189 standalone projects, maintained as part
21
+ > This is one of 190 standalone projects, maintained as part
22
22
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
23
23
  > and anti-framework.
24
24
  >
package/args.d.ts CHANGED
@@ -202,6 +202,8 @@ export declare const kvPairsMulti: <S extends Partial<ArgSpec<KVMultiDict>>>(spe
202
202
  *
203
203
  * @example
204
204
  * ```ts
205
+ * import { coerceInt, parse, tuple } from "@thi.ng/args";
206
+ *
205
207
  * parse({ a: tuple(coerceInt, 2, {})}, ["--a", "1,2"])
206
208
  * // {
207
209
  * // result: { a: Tuple { value: [1, 2] } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/args",
3
- "version": "2.3.15",
3
+ "version": "2.3.17",
4
4
  "description": "Declarative, functional & typechecked CLI argument/options parser, value coercions etc.",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,12 +35,12 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.24",
39
- "@thi.ng/checks": "^3.4.24",
40
- "@thi.ng/errors": "^2.4.17",
41
- "@thi.ng/logger": "^3.0.1",
42
- "@thi.ng/strings": "^3.7.15",
43
- "@thi.ng/text-format": "^2.1.1"
38
+ "@thi.ng/api": "^8.9.26",
39
+ "@thi.ng/checks": "^3.5.0",
40
+ "@thi.ng/errors": "^2.4.18",
41
+ "@thi.ng/logger": "^3.0.3",
42
+ "@thi.ng/strings": "^3.7.17",
43
+ "@thi.ng/text-format": "^2.1.3"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-extractor": "^7.40.1",
@@ -102,5 +102,5 @@
102
102
  "thi.ng": {
103
103
  "year": 2018
104
104
  },
105
- "gitHead": "2724c87ca41810f2112f9d8c3d6b90dfaeea876b\n"
105
+ "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
106
106
  }