pareto-core 0.1.65 → 0.1.68
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.
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Unreachable_Code_Path_Error = void 0;
|
|
3
4
|
exports.default = _p_unreachable_code_path;
|
|
5
|
+
class Unreachable_Code_Path_Error extends Error {
|
|
6
|
+
constructor(explanation) {
|
|
7
|
+
super(`PANIC; this should have been an unreachable code path because ${explanation}`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.Unreachable_Code_Path_Error = Unreachable_Code_Path_Error;
|
|
4
11
|
function _p_unreachable_code_path(explanation) {
|
|
5
|
-
throw new
|
|
12
|
+
throw new Unreachable_Code_Path_Error(explanation);
|
|
6
13
|
}
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX3BfdW5yZWFjaGFibGVfY29kZV9wYXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL19wX3VucmVhY2hhYmxlX2NvZGVfcGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFPQSwyQ0FFQztBQVJELE1BQWEsMkJBQTRCLFNBQVEsS0FBSztJQUNsRCxZQUFZLFdBQW1CO1FBQzNCLEtBQUssQ0FBQyxpRUFBaUUsV0FBVyxFQUFFLENBQUMsQ0FBQTtJQUN6RixDQUFDO0NBQ0o7QUFKRCxrRUFJQztBQUVELFNBQXdCLHdCQUF3QixDQUFDLFdBQW1CO0lBQ2hFLE1BQU0sSUFBSSwyQkFBMkIsQ0FBQyxXQUFXLENBQUMsQ0FBQTtBQUN0RCxDQUFDIn0=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Abort } from "../abort";
|
|
2
2
|
import { Iterator } from "../iterator";
|
|
3
3
|
export type Production<Result, Error, Iterator_Item, End_Info> = (iterator: Iterator<Iterator_Item, End_Info>, abort: Abort<Error>) => Result;
|
|
4
|
-
export type Production_With_Parameter<Result, Error, Iterator_Item,
|
|
4
|
+
export type Production_With_Parameter<Result, Error, Iterator_Item, End_Info, Parameter> = (iterator: Iterator<Iterator_Item, End_Info>, abort: Abort<Error>, $p: Parameter) => Result;
|
|
5
5
|
export type Production_Without_Error<Result, Iterator_Item, End_Info> = (iterator: Iterator<Iterator_Item, End_Info>) => Result;
|
|
6
|
-
export type Production_Without_Error_With_Parameter<Result, Iterator_Item,
|
|
6
|
+
export type Production_Without_Error_With_Parameter<Result, Iterator_Item, End_Info, Parameter> = (iterator: Iterator<Iterator_Item, End_Info>, $p: Parameter) => Result;
|