Skip to content

Commit 4caf528

Browse files
committed
refactor(omnium): omnium.loadCaplet -> omnium.caplet.load
1 parent e2a0bf0 commit 4caf528

File tree

2 files changed

+55
-57
lines changed

2 files changed

+55
-57
lines changed

packages/omnium-gatherum/src/background.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,14 @@ function defineGlobals(): GlobalSetters {
243243
getKernel: {
244244
value: async () => kernelP,
245245
},
246-
loadCaplet: {
247-
value: loadCaplet,
248-
},
249246
caplet: {
250247
value: harden({
251248
install: async (manifest: CapletManifest, bundle?: unknown) =>
252249
E(capletController).install(manifest, bundle),
253250
uninstall: async (capletId: string) =>
254251
E(capletController).uninstall(capletId),
255252
list: async () => E(capletController).list(),
253+
load: loadCaplet,
256254
get: async (capletId: string) => E(capletController).get(capletId),
257255
getByService: async (serviceName: string) =>
258256
E(capletController).getByService(serviceName),

vitest.config.ts

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ export default defineConfig({
8787
lines: 88.13,
8888
},
8989
'packages/kernel-browser-runtime/**': {
90-
statements: 84.16,
91-
functions: 78.3,
92-
branches: 81.11,
93-
lines: 84.4,
90+
statements: 77.21,
91+
functions: 72.8,
92+
branches: 68.86,
93+
lines: 77.41,
9494
},
9595
'packages/kernel-errors/**': {
9696
statements: 99.24,
@@ -99,22 +99,22 @@ export default defineConfig({
9999
lines: 99.21,
100100
},
101101
'packages/kernel-language-model-service/**': {
102-
statements: 0,
103-
functions: 0,
104-
branches: 0,
105-
lines: 0,
102+
statements: 99,
103+
functions: 100,
104+
branches: 94.11,
105+
lines: 98.97,
106106
},
107107
'packages/kernel-platforms/**': {
108-
statements: 0,
109-
functions: 0,
110-
branches: 0,
111-
lines: 0,
108+
statements: 99.28,
109+
functions: 100,
110+
branches: 91.89,
111+
lines: 99.26,
112112
},
113113
'packages/kernel-rpc-methods/**': {
114-
statements: 0,
115-
functions: 0,
116-
branches: 0,
117-
lines: 0,
114+
statements: 100,
115+
functions: 100,
116+
branches: 100,
117+
lines: 100,
118118
},
119119
'packages/kernel-shims/**': {
120120
statements: 0,
@@ -123,28 +123,28 @@ export default defineConfig({
123123
lines: 0,
124124
},
125125
'packages/kernel-store/**': {
126-
statements: 0,
127-
functions: 0,
128-
branches: 0,
129-
lines: 0,
126+
statements: 98.37,
127+
functions: 100,
128+
branches: 91.42,
129+
lines: 98.36,
130130
},
131131
'packages/kernel-ui/**': {
132-
statements: 0,
133-
functions: 0,
134-
branches: 0,
135-
lines: 0,
132+
statements: 95.03,
133+
functions: 95.83,
134+
branches: 87.53,
135+
lines: 95.11,
136136
},
137137
'packages/kernel-utils/**': {
138-
statements: 0,
139-
functions: 0,
140-
branches: 0,
141-
lines: 0,
138+
statements: 100,
139+
functions: 100,
140+
branches: 100,
141+
lines: 100,
142142
},
143143
'packages/logger/**': {
144-
statements: 0,
145-
functions: 0,
146-
branches: 0,
147-
lines: 0,
144+
statements: 98.66,
145+
functions: 96.66,
146+
branches: 97.36,
147+
lines: 100,
148148
},
149149
'packages/nodejs/**': {
150150
statements: 88.88,
@@ -153,40 +153,40 @@ export default defineConfig({
153153
lines: 89.65,
154154
},
155155
'packages/nodejs-test-workers/**': {
156-
statements: 0,
157-
functions: 0,
158-
branches: 0,
159-
lines: 0,
156+
statements: 23.52,
157+
functions: 25,
158+
branches: 25,
159+
lines: 25,
160160
},
161161
'packages/ocap-kernel/**': {
162-
statements: 95.44,
162+
statements: 95.17,
163163
functions: 98.06,
164-
branches: 87.65,
165-
lines: 95.42,
164+
branches: 87.04,
165+
lines: 95.15,
166166
},
167167
'packages/omnium-gatherum/**': {
168-
statements: 60.5,
169-
functions: 61.44,
170-
branches: 71.11,
171-
lines: 60.42,
168+
statements: 58.98,
169+
functions: 60.22,
170+
branches: 68.62,
171+
lines: 58.89,
172172
},
173173
'packages/remote-iterables/**': {
174-
statements: 0,
175-
functions: 0,
176-
branches: 0,
177-
lines: 0,
174+
statements: 100,
175+
functions: 100,
176+
branches: 100,
177+
lines: 100,
178178
},
179179
'packages/streams/**': {
180-
statements: 0,
181-
functions: 0,
182-
branches: 0,
183-
lines: 0,
180+
statements: 100,
181+
functions: 100,
182+
branches: 100,
183+
lines: 100,
184184
},
185185
'packages/template-package/**': {
186-
statements: 0,
187-
functions: 0,
186+
statements: 100,
187+
functions: 100,
188188
branches: 100,
189-
lines: 0,
189+
lines: 100,
190190
},
191191
},
192192
},

0 commit comments

Comments
 (0)