@infra-blocks/types 0.36.0-alpha.4 → 0.36.1-alpha.0
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/lib/cjs/index.js +1 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +1 -2
- package/lib/esm/index.js.map +1 -1
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.unreachable = unreachable;
|
|
18
18
|
exports.trusted = trusted;
|
|
19
|
-
const node_assert_1 = require("node:assert");
|
|
20
19
|
__exportStar(require("./func.js"), exports);
|
|
21
20
|
__exportStar(require("./guard.js"), exports);
|
|
22
21
|
__exportStar(require("./keys.js"), exports);
|
|
@@ -46,7 +45,7 @@ __exportStar(require("./types.js"), exports);
|
|
|
46
45
|
* @param value - The value to validate against never.
|
|
47
46
|
*/
|
|
48
47
|
function unreachable(_, message) {
|
|
49
|
-
|
|
48
|
+
throw new Error(message ?? "unreachable code reached!");
|
|
50
49
|
}
|
|
51
50
|
/**
|
|
52
51
|
* A function to mark a value as trusted for a type cast that can leverage inference.
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA6BA,kCAEC;AAsBD,0BAEC;AAvDD,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B;AAE3B,8HAA8H;AAC9H;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,WAAW,CAAC,CAAQ,EAAE,OAAgB;IACpD,MAAM,IAAI,KAAK,CAAC,OAAO,IAAI,2BAA2B,CAAC,CAAC;AAC1D,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,OAAO,CAAI,KAAc;IACvC,OAAO,KAAU,CAAC;AACpB,CAAC"}
|
package/lib/esm/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fail } from "node:assert";
|
|
2
1
|
export * from "./func.js";
|
|
3
2
|
export * from "./guard.js";
|
|
4
3
|
export * from "./keys.js";
|
|
@@ -28,7 +27,7 @@ export * from "./types.js";
|
|
|
28
27
|
* @param value - The value to validate against never.
|
|
29
28
|
*/
|
|
30
29
|
export function unreachable(_, message) {
|
|
31
|
-
|
|
30
|
+
throw new Error(message ?? "unreachable code reached!");
|
|
32
31
|
}
|
|
33
32
|
/**
|
|
34
33
|
* A function to mark a value as trusted for a type cast that can leverage inference.
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAE3B,8HAA8H;AAC9H;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,WAAW,CAAC,CAAQ,EAAE,OAAgB;IACpD,MAAM,IAAI,KAAK,CAAC,OAAO,IAAI,2BAA2B,CAAC,CAAC;AAC1D,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,OAAO,CAAI,KAAc;IACvC,OAAO,KAAU,CAAC;AACpB,CAAC"}
|