@reliverse/relico 1.2.0 → 1.3.1

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/bin/utils.d.ts DELETED
@@ -1,4 +0,0 @@
1
- /**
2
- * Logs a "FATAL" error, triggers a debugger in dev, and throws an error.
3
- */
4
- export declare const shouldNeverHappen: (msg?: string, ...args: any[]) => never;
package/bin/utils.js DELETED
@@ -1,10 +0,0 @@
1
- function isDevEnv() {
2
- return process.env.NODE_ENV === "development";
3
- }
4
- export const shouldNeverHappen = (msg, ...args) => {
5
- console.error(msg, ...args);
6
- if (isDevEnv()) {
7
- debugger;
8
- }
9
- throw new Error(`This should never happen: ${msg}`);
10
- };