x-runtime-lib 0.8.86 → 0.8.88

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/index.js CHANGED
@@ -8269,7 +8269,7 @@ function Pu(t) {
8269
8269
  function ni(t, e) {
8270
8270
  const n = Su(), o = oe(-1);
8271
8271
  pe(() => {
8272
- const s = n.value[t];
8272
+ const s = n[t];
8273
8273
  if (!s) {
8274
8274
  o.value = -1, e.value = void 0, fo.emit("compNotAvail", t);
8275
8275
  return;
@@ -29,7 +29,7 @@ export type CompMeta = {
29
29
  methods?: Method[];
30
30
  events?: Event[];
31
31
  states?: Field[];
32
- slots: {
32
+ slots?: {
33
33
  properties?: Field[];
34
34
  methods?: Method[];
35
35
  events?: Event[];
@@ -1,5 +1,5 @@
1
1
  import { QuickJSRuntime } from 'quickjs-emscripten';
2
- import { Ref } from 'vue';
2
+ import { Ref, ShallowReactive } from 'vue';
3
3
  import { Sandbox } from '@/sandbox';
4
4
  import { Data, Depends, Env, Mode } from '@/types';
5
5
  export declare function provideOrg(org: string): void;
@@ -20,8 +20,8 @@ export declare function provideType(type: 'page' | 'comp'): void;
20
20
  export declare function injectType(): "page" | "comp";
21
21
  export declare function provideData(data: Ref<Data>): void;
22
22
  export declare function injectData(): Ref<Data>;
23
- export declare function provideDepends(depends: Ref<Depends>): void;
24
- export declare function injectDepends(): Ref<Depends>;
23
+ export declare function provideDepends(depends: ShallowReactive<Depends>): void;
24
+ export declare function injectDepends(): ShallowReactive<Depends>;
25
25
  export declare function provideRuntime(runtime: QuickJSRuntime): void;
26
26
  export declare function injectRuntime(): QuickJSRuntime;
27
27
  export declare function provideSandbox(sandbox: Sandbox): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.86",
4
+ "version": "0.8.88",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",