@likec4/core 0.6.3 → 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 +1 -0
- package/dist/compute-view/{compute-view.d.ts → compute.d.ts} +1 -0
- package/dist/compute-view/compute.element-view.d.ts +1 -0
- package/dist/compute-view/compute.element-view.js +1 -1
- package/dist/compute-view/index.d.ts +2 -1
- package/dist/compute-view/index.js +1 -1
- package/dist/compute-view/utils/anyPossibleRelations.d.ts +1 -0
- package/dist/compute-view/utils/evaluate-expression.d.ts +1 -0
- package/dist/compute-view/utils/sortNodes.d.ts +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/model-index/{model-index.d.ts → ModelIndex.d.ts} +1 -0
- package/dist/model-index/index.d.ts +2 -1
- package/dist/model-index/index.js +1 -1
- package/dist/types/computed-view.d.ts +1 -0
- package/dist/types/diagram.d.ts +1 -0
- package/dist/types/element.d.ts +1 -0
- package/dist/types/expression.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/model.d.ts +1 -0
- package/dist/types/opaque.d.ts +1 -0
- package/dist/types/relation.d.ts +1 -0
- package/dist/types/view.d.ts +1 -0
- package/dist/utils/fqn.d.ts +1 -0
- package/dist/utils/guards.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/relations.d.ts +1 -0
- package/package.json +18 -16
- /package/dist/compute-view/{compute-view.js → compute.js} +0 -0
- /package/dist/model-index/{model-index.js → ModelIndex.js} +0 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ModelIndex } from '../model-index';
|
|
2
|
+
import type { ElementKind, ElementView, Fqn, RelationID } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
┌──────────────────────────────────────────────────┐
|
|
5
|
+
│ cloud │
|
|
6
|
+
│ ┌───────────────────────────────────────────┐ │
|
|
7
|
+
│ │ frontend │ │
|
|
8
|
+
┏━━━━━━━━━━┓ │ │ ┏━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━━┓ │ │ ┏━━━━━━━━━━━┓
|
|
9
|
+
┃ ┃ │ │ ┃ ┃ ┃ ┃ │ │ ┃ ┃
|
|
10
|
+
┃ customer ┃──┼──┼──▶┃ dashboard ┃ ┃ adminpanel ┃◀───┼───┼───┃ support ┃
|
|
11
|
+
┃ ┃ │ │ ┃ ┃ ┃ ┃ │ │ ┃ ┃
|
|
12
|
+
┗━━━━━━━━━━┛ │ │ ┗━━━━━━┳━━━━━━┛ ┗━━━━━━━━┳━━━━━━━┛ │ │ ┗━━━━━━━━━━━┛
|
|
13
|
+
│ └──────────┼───────────────────┼────────────┘ │
|
|
14
|
+
│ ├───────────────────┘ │
|
|
15
|
+
│ │ │
|
|
16
|
+
│ ┌──────────┼────────────────────────────────┐ │
|
|
17
|
+
│ │ ▼ backend │ │
|
|
18
|
+
│ │ ┏━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━┓ │ │
|
|
19
|
+
│ │ ┃ ┃ ┃ ┃ │ │
|
|
20
|
+
│ │ ┃ graphlql ┃──────▶┃ storage ┃ │ │
|
|
21
|
+
│ │ ┃ ┃ ┃ ┃ │ │
|
|
22
|
+
│ │ ┗━━━━━━━━━━━━━┛ ┗━━━━━━┳━━━━━━┛ │ │
|
|
23
|
+
│ └────────────────────────────────┼──────────┘ │
|
|
24
|
+
└───────────────────────────────────┼──────────────┘
|
|
25
|
+
│
|
|
26
|
+
┌─────────┼─────────┐
|
|
27
|
+
│ amazon │ │
|
|
28
|
+
│ ▼ │
|
|
29
|
+
│ ┏━━━━━━━━━━━━━━┓ │
|
|
30
|
+
│ ┃ ┃ │
|
|
31
|
+
│ ┃ s3 ┃ │
|
|
32
|
+
│ ┃ ┃ │
|
|
33
|
+
│ ┗━━━━━━━━━━━━━━┛ │
|
|
34
|
+
└───────────────────┘
|
|
35
|
+
|
|
36
|
+
specification {
|
|
37
|
+
element actor
|
|
38
|
+
element system
|
|
39
|
+
element component
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
model {
|
|
43
|
+
|
|
44
|
+
actor customer
|
|
45
|
+
actor support
|
|
46
|
+
|
|
47
|
+
system cloud {
|
|
48
|
+
component backend {
|
|
49
|
+
component graphql
|
|
50
|
+
component storage
|
|
51
|
+
|
|
52
|
+
graphql -> storage
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
component frontend {
|
|
56
|
+
component dashboard {
|
|
57
|
+
-> graphql
|
|
58
|
+
}
|
|
59
|
+
component adminPanel {
|
|
60
|
+
-> graphql
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
customer -> dashboard
|
|
66
|
+
support -> adminPanel
|
|
67
|
+
|
|
68
|
+
system amazon {
|
|
69
|
+
component s3
|
|
70
|
+
|
|
71
|
+
cloud.backend.storage -> s3
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
*/
|
|
77
|
+
export declare const fakeElements: {
|
|
78
|
+
amazon: {
|
|
79
|
+
id: Fqn;
|
|
80
|
+
kind: ElementKind;
|
|
81
|
+
title: string;
|
|
82
|
+
};
|
|
83
|
+
cloud: {
|
|
84
|
+
id: Fqn;
|
|
85
|
+
kind: ElementKind;
|
|
86
|
+
title: string;
|
|
87
|
+
};
|
|
88
|
+
customer: {
|
|
89
|
+
id: Fqn;
|
|
90
|
+
kind: ElementKind;
|
|
91
|
+
title: string;
|
|
92
|
+
};
|
|
93
|
+
support: {
|
|
94
|
+
id: Fqn;
|
|
95
|
+
kind: ElementKind;
|
|
96
|
+
title: string;
|
|
97
|
+
};
|
|
98
|
+
'amazon.s3': {
|
|
99
|
+
id: Fqn;
|
|
100
|
+
kind: ElementKind;
|
|
101
|
+
title: string;
|
|
102
|
+
};
|
|
103
|
+
'cloud.backend': {
|
|
104
|
+
id: Fqn;
|
|
105
|
+
kind: ElementKind;
|
|
106
|
+
title: string;
|
|
107
|
+
};
|
|
108
|
+
'cloud.frontend': {
|
|
109
|
+
id: Fqn;
|
|
110
|
+
kind: ElementKind;
|
|
111
|
+
title: string;
|
|
112
|
+
};
|
|
113
|
+
'cloud.backend.graphql': {
|
|
114
|
+
id: Fqn;
|
|
115
|
+
kind: ElementKind;
|
|
116
|
+
title: string;
|
|
117
|
+
};
|
|
118
|
+
'cloud.backend.storage': {
|
|
119
|
+
id: Fqn;
|
|
120
|
+
kind: ElementKind;
|
|
121
|
+
title: string;
|
|
122
|
+
};
|
|
123
|
+
'cloud.frontend.adminPanel': {
|
|
124
|
+
id: Fqn;
|
|
125
|
+
kind: ElementKind;
|
|
126
|
+
title: string;
|
|
127
|
+
};
|
|
128
|
+
'cloud.frontend.dashboard': {
|
|
129
|
+
id: Fqn;
|
|
130
|
+
kind: ElementKind;
|
|
131
|
+
title: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
export declare const fakeRelations: {
|
|
135
|
+
'customer:cloud.frontend.dashboard': {
|
|
136
|
+
id: RelationID;
|
|
137
|
+
source: Fqn;
|
|
138
|
+
target: Fqn;
|
|
139
|
+
title: string;
|
|
140
|
+
};
|
|
141
|
+
'support:cloud.frontend.adminPanel': {
|
|
142
|
+
id: RelationID;
|
|
143
|
+
source: Fqn;
|
|
144
|
+
target: Fqn;
|
|
145
|
+
title: string;
|
|
146
|
+
};
|
|
147
|
+
'cloud.backend.storage:amazon.s3': {
|
|
148
|
+
id: RelationID;
|
|
149
|
+
source: Fqn;
|
|
150
|
+
target: Fqn;
|
|
151
|
+
title: string;
|
|
152
|
+
};
|
|
153
|
+
'cloud.backend.graphql:cloud.backend.storage': {
|
|
154
|
+
id: RelationID;
|
|
155
|
+
source: Fqn;
|
|
156
|
+
target: Fqn;
|
|
157
|
+
title: string;
|
|
158
|
+
};
|
|
159
|
+
'cloud.frontend.dashboard:cloud.backend.graphql': {
|
|
160
|
+
id: RelationID;
|
|
161
|
+
source: Fqn;
|
|
162
|
+
target: Fqn;
|
|
163
|
+
title: string;
|
|
164
|
+
};
|
|
165
|
+
'cloud.frontend.adminPanel:cloud.backend.graphql': {
|
|
166
|
+
id: RelationID;
|
|
167
|
+
source: Fqn;
|
|
168
|
+
target: Fqn;
|
|
169
|
+
title: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export declare const fakeElementView: ElementView;
|
|
173
|
+
export declare const fakeModel: () => ModelIndex;
|
|
174
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { ModelIndex } from '../model-index';
|
|
2
|
+
/**
|
|
3
|
+
┌──────────────────────────────────────────────────┐
|
|
4
|
+
│ cloud │
|
|
5
|
+
│ ┌───────────────────────────────────────────┐ │
|
|
6
|
+
│ │ frontend │ │
|
|
7
|
+
┏━━━━━━━━━━┓ │ │ ┏━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━━━━┓ │ │ ┏━━━━━━━━━━━┓
|
|
8
|
+
┃ ┃ │ │ ┃ ┃ ┃ ┃ │ │ ┃ ┃
|
|
9
|
+
┃ customer ┃──┼──┼──▶┃ dashboard ┃ ┃ adminpanel ┃◀───┼───┼───┃ support ┃
|
|
10
|
+
┃ ┃ │ │ ┃ ┃ ┃ ┃ │ │ ┃ ┃
|
|
11
|
+
┗━━━━━━━━━━┛ │ │ ┗━━━━━━┳━━━━━━┛ ┗━━━━━━━━┳━━━━━━━┛ │ │ ┗━━━━━━━━━━━┛
|
|
12
|
+
│ └──────────┼───────────────────┼────────────┘ │
|
|
13
|
+
│ ├───────────────────┘ │
|
|
14
|
+
│ │ │
|
|
15
|
+
│ ┌──────────┼────────────────────────────────┐ │
|
|
16
|
+
│ │ ▼ backend │ │
|
|
17
|
+
│ │ ┏━━━━━━━━━━━━━┓ ┏━━━━━━━━━━━━━┓ │ │
|
|
18
|
+
│ │ ┃ ┃ ┃ ┃ │ │
|
|
19
|
+
│ │ ┃ graphlql ┃──────▶┃ storage ┃ │ │
|
|
20
|
+
│ │ ┃ ┃ ┃ ┃ │ │
|
|
21
|
+
│ │ ┗━━━━━━━━━━━━━┛ ┗━━━━━━┳━━━━━━┛ │ │
|
|
22
|
+
│ └────────────────────────────────┼──────────┘ │
|
|
23
|
+
└───────────────────────────────────┼──────────────┘
|
|
24
|
+
│
|
|
25
|
+
┌─────────┼─────────┐
|
|
26
|
+
│ amazon │ │
|
|
27
|
+
│ ▼ │
|
|
28
|
+
│ ┏━━━━━━━━━━━━━━┓ │
|
|
29
|
+
│ ┃ ┃ │
|
|
30
|
+
│ ┃ s3 ┃ │
|
|
31
|
+
│ ┃ ┃ │
|
|
32
|
+
│ ┗━━━━━━━━━━━━━━┛ │
|
|
33
|
+
└───────────────────┘
|
|
34
|
+
|
|
35
|
+
specification {
|
|
36
|
+
element actor
|
|
37
|
+
element system
|
|
38
|
+
element component
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
model {
|
|
42
|
+
|
|
43
|
+
actor customer
|
|
44
|
+
actor support
|
|
45
|
+
|
|
46
|
+
system cloud {
|
|
47
|
+
component backend {
|
|
48
|
+
component graphql
|
|
49
|
+
component storage
|
|
50
|
+
|
|
51
|
+
graphql -> storage
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
component frontend {
|
|
55
|
+
component dashboard {
|
|
56
|
+
-> graphql
|
|
57
|
+
}
|
|
58
|
+
component adminPanel {
|
|
59
|
+
-> graphql
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
customer -> dashboard
|
|
65
|
+
support -> adminPanel
|
|
66
|
+
|
|
67
|
+
system amazon {
|
|
68
|
+
component s3
|
|
69
|
+
|
|
70
|
+
cloud.backend.storage -> s3
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
*/
|
|
76
|
+
export const fakeElements = {
|
|
77
|
+
amazon: {
|
|
78
|
+
id: 'amazon',
|
|
79
|
+
kind: 'system',
|
|
80
|
+
title: 'amazon'
|
|
81
|
+
},
|
|
82
|
+
cloud: {
|
|
83
|
+
id: 'cloud',
|
|
84
|
+
kind: 'system',
|
|
85
|
+
title: 'cloud'
|
|
86
|
+
},
|
|
87
|
+
customer: {
|
|
88
|
+
id: 'customer',
|
|
89
|
+
kind: 'actor',
|
|
90
|
+
title: 'customer'
|
|
91
|
+
},
|
|
92
|
+
support: {
|
|
93
|
+
id: 'support',
|
|
94
|
+
kind: 'actor',
|
|
95
|
+
title: 'support'
|
|
96
|
+
},
|
|
97
|
+
'amazon.s3': {
|
|
98
|
+
id: 'amazon.s3',
|
|
99
|
+
kind: 'component',
|
|
100
|
+
title: 's3'
|
|
101
|
+
},
|
|
102
|
+
'cloud.backend': {
|
|
103
|
+
id: 'cloud.backend',
|
|
104
|
+
kind: 'component',
|
|
105
|
+
title: 'backend'
|
|
106
|
+
},
|
|
107
|
+
'cloud.frontend': {
|
|
108
|
+
id: 'cloud.frontend',
|
|
109
|
+
kind: 'component',
|
|
110
|
+
title: 'frontend'
|
|
111
|
+
},
|
|
112
|
+
'cloud.backend.graphql': {
|
|
113
|
+
id: 'cloud.backend.graphql',
|
|
114
|
+
kind: 'component',
|
|
115
|
+
title: 'graphql'
|
|
116
|
+
},
|
|
117
|
+
'cloud.backend.storage': {
|
|
118
|
+
id: 'cloud.backend.storage',
|
|
119
|
+
kind: 'component',
|
|
120
|
+
title: 'storage'
|
|
121
|
+
},
|
|
122
|
+
'cloud.frontend.adminPanel': {
|
|
123
|
+
id: 'cloud.frontend.adminPanel',
|
|
124
|
+
kind: 'component',
|
|
125
|
+
title: 'adminPanel'
|
|
126
|
+
},
|
|
127
|
+
'cloud.frontend.dashboard': {
|
|
128
|
+
id: 'cloud.frontend.dashboard',
|
|
129
|
+
kind: 'component',
|
|
130
|
+
title: 'dashboard'
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
export const fakeRelations = {
|
|
134
|
+
'customer:cloud.frontend.dashboard': {
|
|
135
|
+
id: 'customer:cloud.frontend.dashboard',
|
|
136
|
+
source: 'customer',
|
|
137
|
+
target: 'cloud.frontend.dashboard',
|
|
138
|
+
title: ''
|
|
139
|
+
},
|
|
140
|
+
'support:cloud.frontend.adminPanel': {
|
|
141
|
+
id: 'support:cloud.frontend.adminPanel',
|
|
142
|
+
source: 'support',
|
|
143
|
+
target: 'cloud.frontend.adminPanel',
|
|
144
|
+
title: ''
|
|
145
|
+
},
|
|
146
|
+
'cloud.backend.storage:amazon.s3': {
|
|
147
|
+
id: 'cloud.backend.storage:amazon.s3',
|
|
148
|
+
source: 'cloud.backend.storage',
|
|
149
|
+
target: 'amazon.s3',
|
|
150
|
+
title: ''
|
|
151
|
+
},
|
|
152
|
+
'cloud.backend.graphql:cloud.backend.storage': {
|
|
153
|
+
id: 'cloud.backend.graphql:cloud.backend.storage',
|
|
154
|
+
source: 'cloud.backend.graphql',
|
|
155
|
+
target: 'cloud.backend.storage',
|
|
156
|
+
title: ''
|
|
157
|
+
},
|
|
158
|
+
'cloud.frontend.dashboard:cloud.backend.graphql': {
|
|
159
|
+
id: 'cloud.frontend.dashboard:cloud.backend.graphql',
|
|
160
|
+
source: 'cloud.frontend.dashboard',
|
|
161
|
+
target: 'cloud.backend.graphql',
|
|
162
|
+
title: ''
|
|
163
|
+
},
|
|
164
|
+
'cloud.frontend.adminPanel:cloud.backend.graphql': {
|
|
165
|
+
id: 'cloud.frontend.adminPanel:cloud.backend.graphql',
|
|
166
|
+
source: 'cloud.frontend.adminPanel',
|
|
167
|
+
target: 'cloud.backend.graphql',
|
|
168
|
+
title: ''
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
export const fakeElementView = {
|
|
172
|
+
id: 'fakeView',
|
|
173
|
+
title: '',
|
|
174
|
+
viewOf: 'cloud',
|
|
175
|
+
rules: [
|
|
176
|
+
{
|
|
177
|
+
isInclude: true,
|
|
178
|
+
exprs: [{ wildcard: true }]
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
};
|
|
182
|
+
export const fakeModel = () => ModelIndex.from({
|
|
183
|
+
elements: fakeElements,
|
|
184
|
+
relations: fakeRelations,
|
|
185
|
+
views: {
|
|
186
|
+
[fakeElementView.id]: fakeElementView
|
|
187
|
+
}
|
|
188
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './data';
|
|
@@ -2,3 +2,4 @@ import type { ModelIndex } from '../model-index';
|
|
|
2
2
|
import { type ElementView } from '../types';
|
|
3
3
|
import type { ComputedView } from '../types/computed-view';
|
|
4
4
|
export declare function computeElementView(view: ElementView, index: ModelIndex): ComputedView;
|
|
5
|
+
//# sourceMappingURL=compute.element-view.d.ts.map
|
|
@@ -13,7 +13,7 @@ function updateSetWith(set, elements, addToSet = true) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
function transformToNodes(elementsIterator, index, currentViewid) {
|
|
16
|
-
return
|
|
16
|
+
return Array.from(elementsIterator)
|
|
17
17
|
.sort(compareByFqnHierarchically)
|
|
18
18
|
.reduce((map, { id, title, color, shape, description }) => {
|
|
19
19
|
let parent = parentFqn(id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { computeView, computeViews } from './compute
|
|
1
|
+
export { computeView, computeViews } from './compute';
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './ModelIndex';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './ModelIndex';
|
package/dist/types/diagram.d.ts
CHANGED
package/dist/types/element.d.ts
CHANGED
|
@@ -41,3 +41,4 @@ export type AnyRelationExpression = RelationExpr | InOutExpr | IncomingExpr | Ou
|
|
|
41
41
|
export declare function isAnyRelation(expr: Expression): expr is AnyRelationExpression;
|
|
42
42
|
export type Expression = ElementExpression | AnyRelationExpression;
|
|
43
43
|
export {};
|
|
44
|
+
//# sourceMappingURL=expression.d.ts.map
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/model.d.ts
CHANGED
package/dist/types/opaque.d.ts
CHANGED
package/dist/types/relation.d.ts
CHANGED
package/dist/types/view.d.ts
CHANGED
package/dist/utils/fqn.d.ts
CHANGED
package/dist/utils/guards.d.ts
CHANGED
package/dist/utils/index.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export declare const isIncoming: (target: Fqn) => (rel: Relation) => boolean;
|
|
|
14
14
|
export declare const isOutgoing: (source: Fqn) => (rel: Relation) => boolean;
|
|
15
15
|
export declare const isAnyInOut: (source: Fqn) => import("rambdax").Predicate<Relation>;
|
|
16
16
|
export {};
|
|
17
|
+
//# sourceMappingURL=relations.d.ts.map
|
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
|
}
|
|
File without changes
|
|
File without changes
|