phecda-module 1.0.4-alpha.3 → 1.0.4-alpha.5

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.3 build /home/runner/work/phecda/phecda/packages/module
3
+ > phecda-module@1.0.4-alpha.5 build /home/runner/work/phecda/phecda/packages/module
4
4
  > tsup
5
5
 
6
6
  CLI Building entry: src/index.ts, src/vite.ts
@@ -12,11 +12,11 @@
12
12
  ESM Build start
13
13
  CJS dist/index.js 3.13 KB
14
14
  CJS dist/vite.js 1.42 KB
15
- CJS ⚡️ Build success in 53ms
16
- ESM dist/index.mjs 1.91 KB
15
+ CJS ⚡️ Build success in 47ms
16
+ ESM dist/index.mjs 1.92 KB
17
17
  ESM dist/vite.mjs 519.00 B
18
- ESM ⚡️ Build success in 53ms
18
+ ESM ⚡️ Build success in 48ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 3135ms
20
+ DTS ⚡️ Build success in 3127ms
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.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [e8582aa]
8
+ - phecda-core@3.0.0-alpha.5
9
+
10
+ ## 1.0.4-alpha.4
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [f83af88]
15
+ - phecda-core@3.0.0-alpha.4
16
+
3
17
  ## 1.0.4-alpha.3
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.registerAsync)(instance);
68
+ await (0, import_phecda_core.registerSerial)(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 { registerAsync } from "phecda-core";
5
+ import { registerSerial } 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 registerAsync(instance);
42
+ await registerSerial(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.3",
3
+ "version": "1.0.4-alpha.5",
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.3"
30
+ "phecda-core": "3.0.0-alpha.5"
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 { registerAsync } from 'phecda-core'
2
+ import { registerSerial } 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 registerAsync(instance)
48
+ await registerSerial(instance)
49
49
  moduleMap.set(tag, instance)
50
50
  if (__DEV__) {
51
51
  const proxy = new Proxy({}, {