phecda-web 1.0.1-alpha.0 → 1.0.1-alpha.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/index.d.ts CHANGED
@@ -23,7 +23,7 @@ declare const emitter: PhecdaEmitter;
23
23
  declare const storagePlugin: () => Plugin;
24
24
  declare const watchPlugin: () => Plugin;
25
25
 
26
- declare function waitUntilInit(...instances: InstanceType<Construct>[]): Promise<void>;
26
+ declare function waitUntilInit(...instances: InstanceType<Construct>[]): Promise<any[]>;
27
27
  declare function resetActiveInstance(instance?: ActiveInstance): void;
28
28
  declare function getActiveInstance(): ActiveInstance;
29
29
  declare function serializeState(): any;
package/dist/index.js CHANGED
@@ -102,8 +102,8 @@ var watchPlugin = /* @__PURE__ */ __name(() => {
102
102
  }, "watchPlugin");
103
103
 
104
104
  // src/core.ts
105
- async function waitUntilInit(...instances) {
106
- await Promise.all(instances.map((i) => i._promise));
105
+ function waitUntilInit(...instances) {
106
+ return Promise.all(instances.map((i) => i._promise));
107
107
  }
108
108
  __name(waitUntilInit, "waitUntilInit");
109
109
  var activeInstance;
package/dist/index.mjs CHANGED
@@ -65,8 +65,8 @@ var watchPlugin = /* @__PURE__ */ __name(() => {
65
65
  }, "watchPlugin");
66
66
 
67
67
  // src/core.ts
68
- async function waitUntilInit(...instances) {
69
- await Promise.all(instances.map((i) => i._promise));
68
+ function waitUntilInit(...instances) {
69
+ return Promise.all(instances.map((i) => i._promise));
70
70
  }
71
71
  __name(waitUntilInit, "waitUntilInit");
72
72
  var activeInstance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-web",
3
- "version": "1.0.1-alpha.0",
3
+ "version": "1.0.1-alpha.1",
4
4
  "description": "provide web function for phecda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13,7 +13,7 @@
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
15
  "mitt": "^3.0.0",
16
- "phecda-core": "3.0.0-alpha.3"
16
+ "phecda-core": "3.0.0-alpha.4"
17
17
  },
18
18
  "devDependencies": {
19
19
  "tsup": "^6.5.0"