framework-do-dede 2.0.6 → 2.0.7

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/dede.d.ts CHANGED
@@ -14,7 +14,7 @@ export type Options = {
14
14
  };
15
15
  export declare class Dede {
16
16
  private static httpServer;
17
- static init({ framework, registries, defaultServerError }: Options): Promise<void>;
17
+ static init({ framework, registries, defaultServerError }: Options): Promise<Dede>;
18
18
  static close(): Promise<void>;
19
19
  private static clearControllers;
20
20
  private static loadRegistries;
package/dist/dede.js CHANGED
@@ -18,6 +18,7 @@ export class Dede {
18
18
  new ControllerHandler(Dede.httpServer, framework.port || 80);
19
19
  this.clearControllers();
20
20
  }
21
+ return Dede;
21
22
  }
22
23
  static async close() {
23
24
  await Dede.httpServer.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework-do-dede",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",