pareto-core 0.1.68 → 0.1.69
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,4 +1,6 @@
|
|
|
1
|
-
export declare class Unreachable_Code_Path_Error
|
|
2
|
-
constructor(
|
|
1
|
+
export declare class Unreachable_Code_Path_Error {
|
|
2
|
+
constructor(message: string, stack?: string);
|
|
3
|
+
message: string;
|
|
4
|
+
stack?: string;
|
|
3
5
|
}
|
|
4
6
|
export default function _p_unreachable_code_path(explanation: string): never;
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Unreachable_Code_Path_Error = void 0;
|
|
4
4
|
exports.default = _p_unreachable_code_path;
|
|
5
|
-
class Unreachable_Code_Path_Error
|
|
6
|
-
constructor(
|
|
7
|
-
|
|
5
|
+
class Unreachable_Code_Path_Error {
|
|
6
|
+
constructor(message, stack) {
|
|
7
|
+
this.message = message;
|
|
8
|
+
this.stack = stack;
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
exports.Unreachable_Code_Path_Error = Unreachable_Code_Path_Error;
|
|
11
12
|
function _p_unreachable_code_path(explanation) {
|
|
12
|
-
|
|
13
|
+
const err = new Error(explanation);
|
|
14
|
+
throw new Unreachable_Code_Path_Error(explanation, err.stack);
|
|
13
15
|
}
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX3BfdW5yZWFjaGFibGVfY29kZV9wYXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL19wX3VucmVhY2hhYmxlX2NvZGVfcGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFhQSwyQ0FHQztBQWZELE1BQWEsMkJBQTJCO0lBQ3BDLFlBQ0ksT0FBZSxFQUNmLEtBQWU7UUFFZixJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQTtRQUN0QixJQUFJLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQTtJQUN0QixDQUFDO0NBR0o7QUFWRCxrRUFVQztBQUVELFNBQXdCLHdCQUF3QixDQUFDLFdBQW1CO0lBQ2hFLE1BQU0sR0FBRyxHQUFHLElBQUksS0FBSyxDQUFDLFdBQVcsQ0FBQyxDQUFBO0lBQ2xDLE1BQU0sSUFBSSwyQkFBMkIsQ0FBQyxXQUFXLEVBQUUsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFBO0FBQ2pFLENBQUMifQ==
|