@likec4/core 0.6.2 → 0.7.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/dist/__test__/data.d.ts +174 -0
- package/dist/__test__/data.js +188 -0
- package/dist/__test__/index.d.ts +2 -0
- package/dist/__test__/index.js +1 -0
- package/dist/compute-view/EdgeBuilder.d.ts +8 -0
- package/dist/compute-view/EdgeBuilder.js +34 -0
- package/dist/compute-view/compute.d.ts +12 -0
- package/dist/compute-view/compute.element-view.d.ts +5 -0
- package/dist/compute-view/compute.element-view.js +168 -0
- package/dist/compute-view/compute.js +14 -0
- package/dist/compute-view/index.d.ts +3 -0
- package/dist/compute-view/index.js +1 -0
- package/dist/compute-view/utils/anyPossibleRelations.d.ts +3 -0
- package/dist/compute-view/utils/anyPossibleRelations.js +12 -0
- package/dist/compute-view/utils/evaluate-expression.d.ts +11 -0
- package/dist/compute-view/utils/evaluate-expression.js +186 -0
- package/dist/compute-view/utils/sortNodes.d.ts +3 -0
- package/dist/compute-view/utils/sortNodes.js +42 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3 -0
- package/dist/model-index/ModelIndex.d.ts +31 -0
- package/dist/model-index/ModelIndex.js +143 -0
- package/dist/model-index/index.d.ts +2 -0
- package/dist/model-index/index.js +1 -0
- package/dist/types/computed-view.d.ts +31 -0
- package/dist/types/computed-view.js +1 -0
- package/dist/types/diagram.d.ts +28 -0
- package/dist/types/diagram.js +1 -0
- package/dist/types/element.d.ts +27 -0
- package/dist/types/element.js +5 -0
- package/dist/types/expression.d.ts +44 -0
- package/dist/types/expression.js +24 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.js +2 -0
- package/dist/types/model.d.ts +10 -0
- package/dist/types/model.js +1 -0
- package/dist/types/opaque.d.ts +103 -0
- package/dist/types/opaque.js +1 -0
- package/dist/types/relation.d.ts +11 -0
- package/dist/types/relation.js +1 -0
- package/dist/types/view.d.ts +30 -0
- package/dist/types/view.js +9 -0
- package/dist/utils/fqn.d.ts +11 -0
- package/dist/utils/fqn.js +51 -0
- package/dist/utils/guards.d.ts +4 -0
- package/dist/utils/guards.js +10 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/relations.d.ts +17 -0
- package/dist/utils/relations.js +36 -0
- package/package.json +18 -16
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
declare const tag: unique symbol;
|
|
2
|
+
declare type Tagged<Token> = {
|
|
3
|
+
readonly [tag]: Token;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
Create an opaque type, which hides its internal details from the public, and can only be created by being used explicitly.
|
|
7
|
+
|
|
8
|
+
The generic type parameter can be anything. It doesn't have to be an object.
|
|
9
|
+
|
|
10
|
+
[Read more about opaque types.](https://codemix.com/opaque-types-in-javascript/)
|
|
11
|
+
|
|
12
|
+
There have been several discussions about adding this feature to TypeScript via the `opaque type` operator, similar to how Flow does it. Unfortunately, nothing has (yet) moved forward:
|
|
13
|
+
- [Microsoft/TypeScript#202](https://github.com/microsoft/TypeScript/issues/202)
|
|
14
|
+
- [Microsoft/TypeScript#15408](https://github.com/Microsoft/TypeScript/issues/15408)
|
|
15
|
+
- [Microsoft/TypeScript#15807](https://github.com/Microsoft/TypeScript/issues/15807)
|
|
16
|
+
|
|
17
|
+
@example
|
|
18
|
+
```
|
|
19
|
+
import type {Opaque} from 'type-fest';
|
|
20
|
+
|
|
21
|
+
type AccountNumber = Opaque<number, 'AccountNumber'>;
|
|
22
|
+
type AccountBalance = Opaque<number, 'AccountBalance'>;
|
|
23
|
+
|
|
24
|
+
// The `Token` parameter allows the compiler to differentiate between types, whereas "unknown" will not. For example, consider the following structures:
|
|
25
|
+
type ThingOne = Opaque<string>;
|
|
26
|
+
type ThingTwo = Opaque<string>;
|
|
27
|
+
|
|
28
|
+
// To the compiler, these types are allowed to be cast to each other as they have the same underlying type. They are both `string & { __opaque__: unknown }`.
|
|
29
|
+
// To avoid this behaviour, you would instead pass the "Token" parameter, like so.
|
|
30
|
+
type NewThingOne = Opaque<string, 'ThingOne'>;
|
|
31
|
+
type NewThingTwo = Opaque<string, 'ThingTwo'>;
|
|
32
|
+
|
|
33
|
+
// Now they're completely separate types, so the following will fail to compile.
|
|
34
|
+
function createNewThingOne (): NewThingOne {
|
|
35
|
+
// As you can see, casting from a string is still allowed. However, you may not cast NewThingOne to NewThingTwo, and vice versa.
|
|
36
|
+
return 'new thing one' as NewThingOne;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// This will fail to compile, as they are fundamentally different types.
|
|
40
|
+
const thingTwo = createNewThingOne() as NewThingTwo;
|
|
41
|
+
|
|
42
|
+
// Here's another example of opaque typing.
|
|
43
|
+
function createAccountNumber(): AccountNumber {
|
|
44
|
+
return 2 as AccountNumber;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function getMoneyForAccount(accountNumber: AccountNumber): AccountBalance {
|
|
48
|
+
return 4 as AccountBalance;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// This will compile successfully.
|
|
52
|
+
getMoneyForAccount(createAccountNumber());
|
|
53
|
+
|
|
54
|
+
// But this won't, because it has to be explicitly passed as an `AccountNumber` type.
|
|
55
|
+
getMoneyForAccount(2);
|
|
56
|
+
|
|
57
|
+
// You can use opaque values like they aren't opaque too.
|
|
58
|
+
const accountNumber = createAccountNumber();
|
|
59
|
+
|
|
60
|
+
// This will not compile successfully.
|
|
61
|
+
const newAccountNumber = accountNumber + 2;
|
|
62
|
+
|
|
63
|
+
// As a side note, you can (and should) use recursive types for your opaque types to make them stronger and hopefully easier to type.
|
|
64
|
+
type Person = {
|
|
65
|
+
id: Opaque<number, Person>;
|
|
66
|
+
name: string;
|
|
67
|
+
};
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
@category Type
|
|
71
|
+
*/
|
|
72
|
+
export type Opaque<Type, Token = unknown> = Type & Tagged<Token>;
|
|
73
|
+
/**
|
|
74
|
+
Revert an opaque type back to its original type by removing the readonly `[tag]`.
|
|
75
|
+
|
|
76
|
+
Why is this necessary?
|
|
77
|
+
|
|
78
|
+
1. Use an `Opaque` type as object keys
|
|
79
|
+
2. Prevent TS4058 error: "Return type of exported function has or is using name X from external module Y but cannot be named"
|
|
80
|
+
|
|
81
|
+
@example
|
|
82
|
+
```
|
|
83
|
+
import type {Opaque, UnwrapOpaque} from 'type-fest';
|
|
84
|
+
|
|
85
|
+
type AccountType = Opaque<'SAVINGS' | 'CHECKING', 'AccountType'>;
|
|
86
|
+
|
|
87
|
+
const moneyByAccountType: Record<UnwrapOpaque<AccountType>, number> = {
|
|
88
|
+
SAVINGS: 99,
|
|
89
|
+
CHECKING: 0.1
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// Without UnwrapOpaque, the following expression would throw a type error.
|
|
93
|
+
const money = moneyByAccountType.SAVINGS; // TS error: Property 'SAVINGS' does not exist
|
|
94
|
+
|
|
95
|
+
// Attempting to pass an non-Opaque type to UnwrapOpaque will raise a type error.
|
|
96
|
+
type WontWork = UnwrapOpaque<string>;
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
@category Type
|
|
100
|
+
*/
|
|
101
|
+
export type UnwrapOpaque<OpaqueType extends Tagged<unknown>> = OpaqueType extends Opaque<infer Type, OpaqueType[typeof tag]> ? Type : OpaqueType;
|
|
102
|
+
export {};
|
|
103
|
+
//# sourceMappingURL=opaque.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Opaque } from './opaque';
|
|
2
|
+
import type { Fqn, Tag } from './element';
|
|
3
|
+
export type RelationID = Opaque<string, 'RelationID'>;
|
|
4
|
+
export interface Relation {
|
|
5
|
+
readonly id: RelationID;
|
|
6
|
+
readonly source: Fqn;
|
|
7
|
+
readonly target: Fqn;
|
|
8
|
+
readonly title: string;
|
|
9
|
+
readonly tags?: Tag[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=relation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Opaque } from './opaque';
|
|
2
|
+
import type { ElementShape, Fqn, ThemeColor } from './element';
|
|
3
|
+
import type { ElementExpression, Expression } from './expression';
|
|
4
|
+
export type ViewID = Opaque<string, 'ViewID'>;
|
|
5
|
+
export interface ViewRuleExpression {
|
|
6
|
+
isInclude: boolean;
|
|
7
|
+
exprs: Expression[];
|
|
8
|
+
}
|
|
9
|
+
export declare function isViewRuleExpression(rule: ViewRule): rule is ViewRuleExpression;
|
|
10
|
+
export interface ViewRuleStyle {
|
|
11
|
+
targets: ElementExpression[];
|
|
12
|
+
style: {
|
|
13
|
+
color?: ThemeColor;
|
|
14
|
+
shape?: ElementShape;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare function isViewRuleStyle(rule: ViewRule): rule is ViewRuleStyle;
|
|
18
|
+
export interface ViewRuleAutoLayout {
|
|
19
|
+
autoLayout: 'TB' | 'BT' | 'LR' | 'RL';
|
|
20
|
+
}
|
|
21
|
+
export declare function isViewRuleAutoLayout(rule: ViewRule): rule is ViewRuleAutoLayout;
|
|
22
|
+
export type ViewRule = ViewRuleExpression | ViewRuleStyle | ViewRuleAutoLayout;
|
|
23
|
+
export interface ElementView {
|
|
24
|
+
readonly id: ViewID;
|
|
25
|
+
readonly viewOf?: Fqn;
|
|
26
|
+
readonly title?: string;
|
|
27
|
+
readonly description?: string;
|
|
28
|
+
readonly rules: ViewRule[];
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=view.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function isViewRuleExpression(rule) {
|
|
2
|
+
return 'exprs' in rule && 'isInclude' in rule;
|
|
3
|
+
}
|
|
4
|
+
export function isViewRuleStyle(rule) {
|
|
5
|
+
return 'style' in rule && 'targets' in rule;
|
|
6
|
+
}
|
|
7
|
+
export function isViewRuleAutoLayout(rule) {
|
|
8
|
+
return 'autoLayout' in rule;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Element, Fqn } from '../types';
|
|
2
|
+
export declare function nameFromFqn(fqn: Fqn): string;
|
|
3
|
+
export declare function isAncestor(...args: [ancestor: Fqn, another: Fqn] | [ancestor: Element, another: Element]): boolean;
|
|
4
|
+
export declare function isSameHierarchy(...args: [one: Fqn, another: Fqn] | [one: Element, another: Element]): boolean;
|
|
5
|
+
export declare function commonAncestor(first: Fqn, second: Fqn): Fqn | null;
|
|
6
|
+
export declare function parentFqn(fqn: Fqn): Fqn | null;
|
|
7
|
+
export declare const compareFqnHierarchically: (a: string, b: string) => number;
|
|
8
|
+
export declare const compareByFqnHierarchically: <T extends {
|
|
9
|
+
id: Fqn;
|
|
10
|
+
}>(a: T, b: T) => number;
|
|
11
|
+
//# sourceMappingURL=fqn.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { isString } from './guards';
|
|
2
|
+
export function nameFromFqn(fqn) {
|
|
3
|
+
const lastDot = fqn.lastIndexOf('.');
|
|
4
|
+
if (lastDot > 0) {
|
|
5
|
+
return fqn.slice(lastDot + 1);
|
|
6
|
+
}
|
|
7
|
+
else {
|
|
8
|
+
return fqn;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export function isAncestor(...args) {
|
|
12
|
+
const ancestor = isString(args[0]) ? args[0] : args[0].id;
|
|
13
|
+
const another = isString(args[1]) ? args[1] : args[1].id;
|
|
14
|
+
return another.startsWith(ancestor + '.');
|
|
15
|
+
}
|
|
16
|
+
export function isSameHierarchy(...args) {
|
|
17
|
+
const one = isString(args[0]) ? args[0] : args[0].id;
|
|
18
|
+
const another = isString(args[1]) ? args[1] : args[1].id;
|
|
19
|
+
return one === another || another.startsWith(one + '.') || one.startsWith(another + '.');
|
|
20
|
+
}
|
|
21
|
+
export function commonAncestor(first, second) {
|
|
22
|
+
const a = first.split('.');
|
|
23
|
+
const b = second.split('.');
|
|
24
|
+
let ancestor = null;
|
|
25
|
+
while (a.length > 1 && b.length > 1 && !!a[0] && a[0] === b[0]) {
|
|
26
|
+
ancestor = (ancestor ? `${ancestor}.${a[0]}` : a[0]);
|
|
27
|
+
a.shift();
|
|
28
|
+
b.shift();
|
|
29
|
+
}
|
|
30
|
+
return ancestor;
|
|
31
|
+
}
|
|
32
|
+
export function parentFqn(fqn) {
|
|
33
|
+
const lastDot = fqn.lastIndexOf('.');
|
|
34
|
+
if (lastDot > 0) {
|
|
35
|
+
return fqn.substring(0, lastDot);
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
export const compareFqnHierarchically = (a, b) => {
|
|
40
|
+
const depthA = a.split('.').length;
|
|
41
|
+
const depthB = b.split('.').length;
|
|
42
|
+
if (depthA === depthB) {
|
|
43
|
+
return a.localeCompare(b);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return depthA - depthB;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
export const compareByFqnHierarchically = (a, b) => {
|
|
50
|
+
return compareFqnHierarchically(a.id, b.id);
|
|
51
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function isString(value) {
|
|
2
|
+
return typeof value === 'string';
|
|
3
|
+
}
|
|
4
|
+
export function failExpectedNever(arg) {
|
|
5
|
+
throw new Error(`Unexpected value: ${JSON.stringify(arg)}`);
|
|
6
|
+
}
|
|
7
|
+
export function ignoreNeverInRuntime(arg) {
|
|
8
|
+
console.warn(`Unexpected and ignored value: ${JSON.stringify(arg)}`);
|
|
9
|
+
// throw new Error(`Unexpected value: ${arg}`);
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Fqn } from '../types';
|
|
2
|
+
type Relation = {
|
|
3
|
+
source: Fqn;
|
|
4
|
+
target: Fqn;
|
|
5
|
+
};
|
|
6
|
+
export declare const compareRelations: <T extends {
|
|
7
|
+
source: Fqn;
|
|
8
|
+
target: Fqn;
|
|
9
|
+
}>(a: T, b: T) => number;
|
|
10
|
+
export declare const isInside: (parent: Fqn) => (rel: Relation) => boolean;
|
|
11
|
+
export declare const isBetween: (source: Fqn, target: Fqn) => (rel: Relation) => boolean;
|
|
12
|
+
export declare const isAnyBetween: (source: Fqn, target: Fqn) => import("rambdax").Predicate<Relation>;
|
|
13
|
+
export declare const isIncoming: (target: Fqn) => (rel: Relation) => boolean;
|
|
14
|
+
export declare const isOutgoing: (source: Fqn) => (rel: Relation) => boolean;
|
|
15
|
+
export declare const isAnyInOut: (source: Fqn) => import("rambdax").Predicate<Relation>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=relations.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { either } from 'rambdax';
|
|
2
|
+
import { compareFqnHierarchically } from './fqn';
|
|
3
|
+
export const compareRelations = (a, b) => {
|
|
4
|
+
return (compareFqnHierarchically(a.source, b.source) || compareFqnHierarchically(a.target, b.target));
|
|
5
|
+
};
|
|
6
|
+
export const isInside = (parent) => {
|
|
7
|
+
const prefix = parent + '.';
|
|
8
|
+
return (rel) => {
|
|
9
|
+
return rel.source.startsWith(prefix) && rel.target.startsWith(prefix);
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export const isBetween = (source, target) => {
|
|
13
|
+
const sourcePrefix = source + '.';
|
|
14
|
+
const targetPrefix = target + '.';
|
|
15
|
+
return (rel) => {
|
|
16
|
+
return ((rel.source + '.').startsWith(sourcePrefix) && (rel.target + '.').startsWith(targetPrefix));
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export const isAnyBetween = (source, target) => {
|
|
20
|
+
return either(isBetween(source, target), isBetween(target, source));
|
|
21
|
+
};
|
|
22
|
+
export const isIncoming = (target) => {
|
|
23
|
+
const targetPrefix = target + '.';
|
|
24
|
+
return (rel) => {
|
|
25
|
+
return (!(rel.source + '.').startsWith(targetPrefix) && (rel.target + '.').startsWith(targetPrefix));
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export const isOutgoing = (source) => {
|
|
29
|
+
const sourcePrefix = source + '.';
|
|
30
|
+
return (rel) => {
|
|
31
|
+
return ((rel.source + '.').startsWith(sourcePrefix) && !(rel.target + '.').startsWith(sourcePrefix));
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export const isAnyInOut = (source) => {
|
|
35
|
+
return either(isIncoming(source), isOutgoing(source));
|
|
36
|
+
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likec4/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bugs": "https://github.com/likec4/likec4/issues",
|
|
6
|
-
"homepage": "https://
|
|
6
|
+
"homepage": "https://likec4.dev",
|
|
7
7
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist"
|
|
9
|
+
"dist",
|
|
10
|
+
"!**/*.spec.js",
|
|
11
|
+
"!**/*.spec.d.ts",
|
|
12
|
+
"!**/*.map"
|
|
10
13
|
],
|
|
11
14
|
"repository": {
|
|
12
15
|
"type": "git",
|
|
@@ -14,8 +17,7 @@
|
|
|
14
17
|
"directory": "packages/core"
|
|
15
18
|
},
|
|
16
19
|
"scripts": {
|
|
17
|
-
"compile": "tsc --
|
|
18
|
-
"build:release": "tsc -p tsconfig.esm.json",
|
|
20
|
+
"compile": "tsc --noEmit",
|
|
19
21
|
"build": "tsc",
|
|
20
22
|
"dev": "tsc --watch",
|
|
21
23
|
"lint": "run -T eslint src/ --fix",
|
|
@@ -30,22 +32,22 @@
|
|
|
30
32
|
".": {
|
|
31
33
|
"types": "./dist/index.d.ts",
|
|
32
34
|
"import": "./dist/index.js",
|
|
33
|
-
"
|
|
35
|
+
"default": "./dist/index.js"
|
|
34
36
|
},
|
|
35
37
|
"./types": {
|
|
36
38
|
"types": "./dist/types/index.d.ts",
|
|
37
39
|
"import": "./dist/types/index.js",
|
|
38
|
-
"
|
|
40
|
+
"default": "./dist/types/index.js"
|
|
39
41
|
},
|
|
40
42
|
"./utils": {
|
|
41
43
|
"types": "./dist/utils/index.d.ts",
|
|
42
44
|
"import": "./dist/utils/index.js",
|
|
43
|
-
"
|
|
45
|
+
"default": "./dist/utils/index.js"
|
|
44
46
|
},
|
|
45
47
|
"./compute-view": {
|
|
46
48
|
"types": "./dist/compute-view/index.d.ts",
|
|
47
49
|
"import": "./dist/compute-view/index.js",
|
|
48
|
-
"
|
|
50
|
+
"default": "./dist/compute-view/index.js"
|
|
49
51
|
}
|
|
50
52
|
},
|
|
51
53
|
"sideEffects": false,
|
|
@@ -58,33 +60,33 @@
|
|
|
58
60
|
".": {
|
|
59
61
|
"types": "./dist/index.d.ts",
|
|
60
62
|
"import": "./dist/index.js",
|
|
61
|
-
"
|
|
63
|
+
"default": "./dist/index.js"
|
|
62
64
|
},
|
|
63
65
|
"./types": {
|
|
64
66
|
"types": "./dist/types/index.d.ts",
|
|
65
67
|
"import": "./dist/types/index.js",
|
|
66
|
-
"
|
|
68
|
+
"default": "./dist/types/index.js"
|
|
67
69
|
},
|
|
68
70
|
"./utils": {
|
|
69
71
|
"types": "./dist/utils/index.d.ts",
|
|
70
72
|
"import": "./dist/utils/index.js",
|
|
71
|
-
"
|
|
73
|
+
"default": "./dist/utils/index.js"
|
|
72
74
|
},
|
|
73
75
|
"./compute-view": {
|
|
74
76
|
"types": "./dist/compute-view/index.d.ts",
|
|
75
77
|
"import": "./dist/compute-view/index.js",
|
|
76
|
-
"
|
|
78
|
+
"default": "./dist/compute-view/index.js"
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
},
|
|
80
82
|
"dependencies": {
|
|
81
83
|
"@dagrejs/graphlib": "^2.1.12",
|
|
82
|
-
"rambdax": "^9.1.
|
|
84
|
+
"rambdax": "^9.1.1",
|
|
83
85
|
"tiny-invariant": "^1.3.1"
|
|
84
86
|
},
|
|
85
87
|
"devDependencies": {
|
|
86
88
|
"typescript": "^5.0.4",
|
|
87
|
-
"vite": "^4.
|
|
88
|
-
"vitest": "^0.
|
|
89
|
+
"vite": "^4.3.3",
|
|
90
|
+
"vitest": "^0.31.0"
|
|
89
91
|
}
|
|
90
92
|
}
|