phecda-web 1.0.1-alpha.4 → 1.0.1-alpha.6

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
@@ -115,7 +115,7 @@ async function unmountModule(module2) {
115
115
  if (typeof module2 === "object")
116
116
  module2 = getTag(module2);
117
117
  const { state } = getActiveInstance();
118
- await (0, import_phecda_core2.unmountParallel)(state[module2]);
118
+ await (0, import_phecda_core2.invokeHandler)("unmount", state[module2]);
119
119
  delete state[module2];
120
120
  }
121
121
  __name(unmountModule, "unmountModule");
package/dist/index.mjs CHANGED
@@ -49,7 +49,7 @@ function defaultWebInject() {
49
49
  __name(defaultWebInject, "defaultWebInject");
50
50
 
51
51
  // src/core.ts
52
- import { unmountParallel } from "phecda-core";
52
+ import { invokeHandler } from "phecda-core";
53
53
  function waitUntilInit(...instances) {
54
54
  return Promise.all(instances.map((i) => i._promise));
55
55
  }
@@ -78,7 +78,7 @@ async function unmountModule(module) {
78
78
  if (typeof module === "object")
79
79
  module = getTag(module);
80
80
  const { state } = getActiveInstance();
81
- await unmountParallel(state[module]);
81
+ await invokeHandler("unmount", state[module]);
82
82
  delete state[module];
83
83
  }
84
84
  __name(unmountModule, "unmountModule");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-web",
3
- "version": "1.0.1-alpha.4",
3
+ "version": "1.0.1-alpha.6",
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.7"
16
+ "phecda-core": "3.0.0-alpha.9"
17
17
  },
18
18
  "devDependencies": {
19
19
  "tsup": "^6.5.0"