@thi.ng/args
Advanced tools
Comparing version 2.2.27 to 2.2.28
@@ -1,2 +0,2 @@ | ||
import type { Fn } from "@thi.ng/api"; | ||
import { type Fn } from "@thi.ng/api/fn"; | ||
import type { ArgSpec, KVDict, KVMultiDict, Tuple } from "./api.js"; | ||
@@ -3,0 +3,0 @@ /** |
@@ -0,1 +1,2 @@ | ||
import { identity } from "@thi.ng/api/fn"; | ||
import { repeat } from "@thi.ng/strings/repeat"; | ||
@@ -34,3 +35,3 @@ import { coerceFloat, coerceFloats, coerceHexInt, coerceHexInts, coerceInt, coerceInts, coerceJson, coerceKV, coerceOneOf, coerceTuple, } from "./coerce.js"; | ||
*/ | ||
export const string = $single((x) => x, "STR"); | ||
export const string = $single(identity, "STR"); | ||
/** | ||
@@ -43,3 +44,3 @@ * Multi-arg version of {@link string}. Returns a full {@link ArgSpec} for a | ||
*/ | ||
export const strings = $multi((x) => x, "STR"); | ||
export const strings = $multi(identity, "STR"); | ||
/** | ||
@@ -46,0 +47,0 @@ * Returns a full {@link ArgSpec} for a floating point value arg. The value |
# Change Log | ||
- **Last updated**: 2023-06-14T07:58:51Z | ||
- **Last updated**: 2023-08-04T10:58:19Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -12,2 +12,8 @@ | ||
### [2.2.28](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@2.2.28) (2023-08-04) | ||
#### ♻️ Refactoring | ||
- update `identity` usage in various pkgs ([b6db053](https://github.com/thi-ng/umbrella/commit/b6db053)) | ||
### [2.2.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/args@2.2.15) (2022-12-29) | ||
@@ -14,0 +20,0 @@ |
{ | ||
"name": "@thi.ng/args", | ||
"version": "2.2.27", | ||
"version": "2.2.28", | ||
"description": "Declarative, functional & typechecked CLI argument/options parser, value coercions etc.", | ||
@@ -37,14 +37,14 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.8.2", | ||
"@thi.ng/checks": "^3.3.14", | ||
"@thi.ng/errors": "^2.2.17", | ||
"@thi.ng/strings": "^3.4.7" | ||
"@thi.ng/api": "^8.9.0", | ||
"@thi.ng/checks": "^3.4.0", | ||
"@thi.ng/errors": "^2.3.0", | ||
"@thi.ng/strings": "^3.4.8" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.35.3", | ||
"@thi.ng/testament": "^0.3.17", | ||
"@microsoft/api-extractor": "^7.36.3", | ||
"@thi.ng/testament": "^0.3.18", | ||
"rimraf": "^5.0.1", | ||
"tools": "^0.0.1", | ||
"typedoc": "^0.24.8", | ||
"typescript": "^5.1.3" | ||
"typescript": "^5.1.6" | ||
}, | ||
@@ -100,3 +100,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "54e825a976c72067a244cff8725ca98f5416d26d\n" | ||
"gitHead": "9fa3f7f8169efa30e3c71b43c82f77393581c3b5\n" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59156
933
Updated@thi.ng/api@^8.9.0
Updated@thi.ng/checks@^3.4.0
Updated@thi.ng/errors@^2.3.0
Updated@thi.ng/strings@^3.4.8