@noldova/context.exceptions 0.0.12 → 0.0.13
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/api/index.d.ts +4 -0
- package/package.json +3 -3
package/api/index.d.ts
CHANGED
|
@@ -117,6 +117,8 @@ export declare class ArgumentException extends Exception {
|
|
|
117
117
|
* guard uses `ArgumentException` even for nullish input, not `ArgumentNullException`.
|
|
118
118
|
* @example
|
|
119
119
|
* ```ts
|
|
120
|
+
* import { ArgumentException } from "@noldova/context.exceptions";
|
|
121
|
+
*
|
|
120
122
|
* const input = new Map([["input", "value"]]).get("input");
|
|
121
123
|
* ArgumentException.throwIfNullOrEmpty(input, "input");
|
|
122
124
|
* input.length; // 5; the guard excludes undefined from the lookup result.
|
|
@@ -201,6 +203,8 @@ export declare class ArgumentNullException extends ArgumentException {
|
|
|
201
203
|
* @throws {ArgumentNullException} If `value` is null or undefined.
|
|
202
204
|
* @example
|
|
203
205
|
* ```ts
|
|
206
|
+
* import { ArgumentNullException } from "@noldova/context.exceptions";
|
|
207
|
+
*
|
|
204
208
|
* const count = new Map([["count", 0]]).get("count");
|
|
205
209
|
* ArgumentNullException.throwIfNull(count, "count");
|
|
206
210
|
* count + 1; // 1: zero is a valid non-nullish value.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noldova/context.exceptions",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "api/index.js",
|
|
6
6
|
"types": "api/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"registry": "https://registry.npmjs.org/"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@noldova/context.core": ">=0.0.
|
|
22
|
+
"@noldova/context.core": ">=0.0.13 <0.1.0"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "369ff7e46413dd5278f3623ead81e08137d609dd"
|
|
25
25
|
}
|