@likec4/core 1.0.0-rc.1 → 1.0.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/dist/errors/index.d.ts +0 -1
- package/dist/errors/index.js +0 -11
- package/package.json +2 -2
package/dist/errors/index.d.ts
CHANGED
|
@@ -36,4 +36,3 @@ export declare function nonexhaustive(value: never): never;
|
|
|
36
36
|
export declare class InvalidModelError extends BaseError {
|
|
37
37
|
constructor(message: string, options?: BaseErrorOptions);
|
|
38
38
|
}
|
|
39
|
-
export declare function ensureModel(condition: any, message?: string): asserts condition;
|
package/dist/errors/index.js
CHANGED
|
@@ -98,14 +98,3 @@ export class InvalidModelError extends BaseError {
|
|
|
98
98
|
Object.defineProperty(this, 'name', { value: 'InvalidModelError' });
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
export function ensureModel(
|
|
102
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
103
|
-
condition,
|
|
104
|
-
// Can provide a string, or a function that returns a string for cases where
|
|
105
|
-
// the message takes a fair amount of effort to compute
|
|
106
|
-
message) {
|
|
107
|
-
if (condition) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
throw new InvalidModelError(message ?? 'ModelIndex Invariant failed');
|
|
111
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likec4/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://likec4.dev",
|
|
6
6
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"typescript": "^5.4.5",
|
|
77
77
|
"vitest": "~1.5.2"
|
|
78
78
|
},
|
|
79
|
-
"packageManager": "yarn@4.
|
|
79
|
+
"packageManager": "yarn@4.2.2"
|
|
80
80
|
}
|