phecda-module 1.0.4-alpha.7 → 1.0.4-alpha.9

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.
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/work/phecda/phecda/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
2
2
 
3
- > phecda-module@1.0.4-alpha.7 build /home/runner/work/phecda/phecda/packages/module
3
+ > phecda-module@1.0.4-alpha.9 build /home/runner/work/phecda/phecda/packages/module
4
4
  > tsup
5
5
 
6
6
  CLI Building entry: src/index.ts, src/vite.ts
@@ -10,13 +10,13 @@
10
10
  CLI Target: esnext
11
11
  CJS Build start
12
12
  ESM Build start
13
+ CJS dist/index.js 3.14 KB
14
+ CJS dist/vite.js 1.42 KB
15
+ CJS ⚡️ Build success in 56ms
13
16
  ESM dist/index.mjs 1.92 KB
14
17
  ESM dist/vite.mjs 519.00 B
15
- ESM ⚡️ Build success in 51ms
16
- CJS dist/index.js 3.13 KB
17
- CJS dist/vite.js 1.42 KB
18
- CJS ⚡️ Build success in 51ms
18
+ ESM ⚡️ Build success in 58ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 3125ms
20
+ DTS ⚡️ Build success in 2979ms
21
21
  DTS dist/index.d.ts 186.00 B
22
22
  DTS dist/vite.d.ts 210.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # phecda-module
2
2
 
3
+ ## 1.0.4-alpha.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [3fd911a]
8
+ - phecda-core@3.0.0-alpha.9
9
+
10
+ ## 1.0.4-alpha.8
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [37bdc86]
15
+ - phecda-core@3.0.0-alpha.8
16
+
3
17
  ## 1.0.4-alpha.7
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -65,7 +65,7 @@ async function buildNestModule(Module) {
65
65
  } else {
66
66
  instance = new Module();
67
67
  }
68
- await (0, import_phecda_core.registerSerial)(instance);
68
+ await (0, import_phecda_core.invokeHandler)("init", instance);
69
69
  moduleMap.set(tag, instance);
70
70
  if (__DEV__) {
71
71
  const proxy = new Proxy({}, {
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
 
4
4
  // src/core.ts
5
- import { registerSerial } from "phecda-core";
5
+ import { invokeHandler } from "phecda-core";
6
6
  import "reflect-metadata";
7
7
  var moduleMap = /* @__PURE__ */ new Map();
8
8
  async function Factory(Modules) {
@@ -39,7 +39,7 @@ async function buildNestModule(Module) {
39
39
  } else {
40
40
  instance = new Module();
41
41
  }
42
- await registerSerial(instance);
42
+ await invokeHandler("init", instance);
43
43
  moduleMap.set(tag, instance);
44
44
  if (__DEV__) {
45
45
  const proxy = new Proxy({}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-module",
3
- "version": "1.0.4-alpha.7",
3
+ "version": "1.0.4-alpha.9",
4
4
  "description": "provide DI and HMR for modules by reflect-metadata and vite",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -27,7 +27,7 @@
27
27
  "license": "ISC",
28
28
  "dependencies": {
29
29
  "reflect-metadata": "^0.1.13",
30
- "phecda-core": "3.0.0-alpha.7"
30
+ "phecda-core": "3.0.0-alpha.9"
31
31
  },
32
32
  "devDependencies": {
33
33
  "tsup": "^6.5.0"
package/src/core.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Construct } from 'phecda-core'
2
- import { registerSerial } from 'phecda-core'
2
+ import { invokeHandler } from 'phecda-core'
3
3
  import 'reflect-metadata'
4
4
 
5
5
  export const moduleMap = new Map<string, InstanceType<Construct>>()
@@ -45,7 +45,7 @@ async function buildNestModule(Module: Construct) {
45
45
  else {
46
46
  instance = new Module()
47
47
  }
48
- await registerSerial(instance)
48
+ await invokeHandler('init', instance)
49
49
  moduleMap.set(tag, instance)
50
50
  if (__DEV__) {
51
51
  const proxy = new Proxy({}, {