@midwayjs/ws 3.0.0-beta.3 → 3.0.0-beta.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * add i18n ([#1375](https://github.com/midwayjs/midway/issues/1375)) ([bffefe0](https://github.com/midwayjs/midway/commit/bffefe07afe45777d49b5a76b9ab17fc2b9d9a55))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
7
18
 
8
19
 
@@ -1,7 +1,3 @@
1
- import { MidwayWSFramework } from './framework';
2
1
  export declare class WebSocketConfiguration {
3
- framework: MidwayWSFramework;
4
- onReady(): Promise<void>;
5
- onServerReady(): Promise<void>;
6
2
  }
7
3
  //# sourceMappingURL=configuration.d.ts.map
@@ -5,23 +5,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
8
  Object.defineProperty(exports, "__esModule", { value: true });
12
9
  exports.WebSocketConfiguration = void 0;
13
10
  const decorator_1 = require("@midwayjs/decorator");
14
- const framework_1 = require("./framework");
15
11
  let WebSocketConfiguration = class WebSocketConfiguration {
16
- async onReady() { }
17
- async onServerReady() {
18
- await this.framework.run();
19
- }
20
12
  };
21
- __decorate([
22
- (0, decorator_1.Inject)(),
23
- __metadata("design:type", framework_1.MidwayWSFramework)
24
- ], WebSocketConfiguration.prototype, "framework", void 0);
25
13
  WebSocketConfiguration = __decorate([
26
14
  (0, decorator_1.Configuration)({
27
15
  namespace: 'webSocket',
@@ -1,5 +1,5 @@
1
1
  import * as WebSocket from 'ws';
2
- import { IConfigurationOptions, IMidwayApplication, IMidwayContext } from '@midwayjs/core';
2
+ import { IConfigurationOptions, IMidwayApplication, IMidwayContext, NextFunction as BaseNextFunction } from '@midwayjs/core';
3
3
  export declare type IMidwayWSApplication = IMidwayApplication<IMidwayWSContext> & WebSocket.Server;
4
4
  export declare type IMidwayWSConfigurationOptions = {
5
5
  pubClient?: any;
@@ -9,6 +9,7 @@ export declare type IMidwayWSContext = IMidwayContext<WebSocket & {
9
9
  app: IMidwayWSApplication;
10
10
  }>;
11
11
  export declare type Application = IMidwayWSApplication;
12
+ export declare type NextFunction = BaseNextFunction;
12
13
  export interface Context extends IMidwayWSContext {
13
14
  }
14
15
  declare module '@midwayjs/core/dist/interface' {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/ws",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "Midway Web Framework for ws",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -22,14 +22,14 @@
22
22
  ],
23
23
  "license": "MIT",
24
24
  "devDependencies": {
25
- "@midwayjs/decorator": "^3.0.0-beta.3",
26
- "@midwayjs/mock": "^3.0.0-beta.3",
25
+ "@midwayjs/decorator": "^3.0.0-beta.4",
26
+ "@midwayjs/mock": "^3.0.0-beta.4",
27
27
  "@types/ws": "^7.4.4",
28
28
  "fs-extra": "^8.0.1"
29
29
  },
30
30
  "dependencies": {
31
- "@midwayjs/core": "^3.0.0-beta.3",
32
- "@midwayjs/logger": "^3.0.0-beta.3",
31
+ "@midwayjs/core": "^3.0.0-beta.4",
32
+ "@midwayjs/logger": "^3.0.0-beta.4",
33
33
  "ws": "^7.4.5"
34
34
  },
35
35
  "author": "Harry Chen <czy88840616@gmail.com>",
@@ -40,5 +40,5 @@
40
40
  "engines": {
41
41
  "node": ">=12"
42
42
  },
43
- "gitHead": "a46b7f83d1cb161ec312f2892a9b33ff2d290d7e"
43
+ "gitHead": "02e2144e302f807770b512b0d89da3145b1cbf2e"
44
44
  }