@thi.ng/args 2.2.27 → 2.2.29
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 +7 -1
- package/README.md +2 -1
- package/args.d.ts +1 -1
- package/args.js +3 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-
|
|
3
|
+
- **Last updated**: 2023-08-10T12:16:43Z
|
|
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.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [2.2.28](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@2.2.28) (2023-08-04)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update `identity` usage in various pkgs ([b6db053](https://github.com/thi-ng/umbrella/commit/b6db053))
|
|
17
|
+
|
|
12
18
|
### [2.2.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@2.2.15) (2022-12-29)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
+
<!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
|
|
2
3
|
|
|
3
|
-
# 
|
|
4
5
|
|
|
5
6
|
[](https://www.npmjs.com/package/@thi.ng/args)
|
|
6
7
|

|
package/args.d.ts
CHANGED
package/args.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { identity } from "@thi.ng/api/fn";
|
|
1
2
|
import { repeat } from "@thi.ng/strings/repeat";
|
|
2
3
|
import { coerceFloat, coerceFloats, coerceHexInt, coerceHexInts, coerceInt, coerceInts, coerceJson, coerceKV, coerceOneOf, coerceTuple, } from "./coerce.js";
|
|
3
4
|
const $single = (coerce, hint) => (spec) => ({
|
|
@@ -31,7 +32,7 @@ export const flag = (spec) => ({
|
|
|
31
32
|
*
|
|
32
33
|
* @param spec -
|
|
33
34
|
*/
|
|
34
|
-
export const string = $single(
|
|
35
|
+
export const string = $single(identity, "STR");
|
|
35
36
|
/**
|
|
36
37
|
* Multi-arg version of {@link string}. Returns a full {@link ArgSpec} for a
|
|
37
38
|
* multi string value arg. This argument can be provided mutiple times with
|
|
@@ -39,7 +40,7 @@ export const string = $single((x) => x, "STR");
|
|
|
39
40
|
*
|
|
40
41
|
* @param spec -
|
|
41
42
|
*/
|
|
42
|
-
export const strings = $multi(
|
|
43
|
+
export const strings = $multi(identity, "STR");
|
|
43
44
|
/**
|
|
44
45
|
* Returns a full {@link ArgSpec} for a floating point value arg. The value
|
|
45
46
|
* will be autoatically coerced into a number using {@link coerceFloat}.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/args",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.29",
|
|
4
4
|
"description": "Declarative, functional & typechecked CLI argument/options parser, value coercions etc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/checks": "^3.
|
|
39
|
-
"@thi.ng/errors": "^2.
|
|
40
|
-
"@thi.ng/strings": "^3.4.
|
|
37
|
+
"@thi.ng/api": "^8.9.1",
|
|
38
|
+
"@thi.ng/checks": "^3.4.1",
|
|
39
|
+
"@thi.ng/errors": "^2.3.1",
|
|
40
|
+
"@thi.ng/strings": "^3.4.9"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-extractor": "^7.
|
|
44
|
-
"@thi.ng/testament": "^0.3.
|
|
43
|
+
"@microsoft/api-extractor": "^7.36.3",
|
|
44
|
+
"@thi.ng/testament": "^0.3.19",
|
|
45
45
|
"rimraf": "^5.0.1",
|
|
46
46
|
"tools": "^0.0.1",
|
|
47
47
|
"typedoc": "^0.24.8",
|
|
48
|
-
"typescript": "^5.1.
|
|
48
|
+
"typescript": "^5.1.6"
|
|
49
49
|
},
|
|
50
50
|
"keywords": [
|
|
51
51
|
"argument",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"thi.ng": {
|
|
97
97
|
"year": 2018
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "672fb5ede530598da51c9d1cee48fe58c23bad34\n"
|
|
100
100
|
}
|