@midwayjs/ws 3.0.0-beta.10 → 3.0.0-beta.14

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,48 @@
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.14](https://github.com/midwayjs/midway/compare/v3.0.0-beta.13...v3.0.0-beta.14) (2022-01-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * cos config definition & 3.x doc update ([#1515](https://github.com/midwayjs/midway/issues/1515)) ([0ac7ac5](https://github.com/midwayjs/midway/commit/0ac7ac5805b7ab8873f8792fc1712a74e3223172))
12
+ * **deps:** update dependency ws to v8 ([#1488](https://github.com/midwayjs/midway/issues/1488)) ([7e71bb4](https://github.com/midwayjs/midway/commit/7e71bb4eeb731d3bf91f0caf06bc9d9acb6297ca))
13
+
14
+
15
+
16
+
17
+
18
+ # [3.0.0-beta.13](https://github.com/midwayjs/midway/compare/v3.0.0-beta.12...v3.0.0-beta.13) (2021-12-30)
19
+
20
+
21
+ ### Features
22
+
23
+ * 404 error ([#1465](https://github.com/midwayjs/midway/issues/1465)) ([e7e8a9d](https://github.com/midwayjs/midway/commit/e7e8a9dedfa7198ac05b161b41024c2871f93965))
24
+
25
+
26
+
27
+
28
+
29
+ # [3.0.0-beta.12](https://github.com/midwayjs/midway/compare/v3.0.0-beta.11...v3.0.0-beta.12) (2021-12-28)
30
+
31
+
32
+ ### Features
33
+
34
+ * support throw err status ([#1440](https://github.com/midwayjs/midway/issues/1440)) ([7b98110](https://github.com/midwayjs/midway/commit/7b98110d65c5287a8fcb3eb5356dea2d7a32cee9))
35
+
36
+
37
+
38
+
39
+
40
+ # [3.0.0-beta.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
41
+
42
+ **Note:** Version bump only for package @midwayjs/ws
43
+
44
+
45
+
46
+
47
+
6
48
  # [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
7
49
 
8
50
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # midway framework for socket.io
1
+ # midway framework for WebSocket
2
2
 
3
3
  [![Package Quality](http://npm.packagequality.com/shield/midway-web.svg)](http://packagequality.com/#?package=midway-web)
4
4
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/midwayjs/midway/pulls)
package/dist/framework.js CHANGED
@@ -10,7 +10,7 @@ exports.MidwayWSFramework = void 0;
10
10
  const core_1 = require("@midwayjs/core");
11
11
  const http = require("http");
12
12
  const util_1 = require("util");
13
- const debug = (0, util_1.debuglog)('midway:ws');
13
+ const debug = (0, util_1.debuglog)('midway:debug');
14
14
  const WebSocket = require("ws");
15
15
  const decorator_1 = require("@midwayjs/decorator");
16
16
  let MidwayWSFramework = class MidwayWSFramework extends core_1.BaseFramework {
@@ -96,7 +96,7 @@ let MidwayWSFramework = class MidwayWSFramework extends core_1.BaseFramework {
96
96
  else if (wsEventInfo.eventType === decorator_1.WSEventTypeEnum.ON_MESSAGE) {
97
97
  // on user custom event
98
98
  socket.on(wsEventInfo.messageEventName, async (...args) => {
99
- debug('got message', wsEventInfo.messageEventName, args);
99
+ debug('[ws]: got message', wsEventInfo.messageEventName, args);
100
100
  try {
101
101
  const result = await (await this.applyMiddleware(async (ctx, next) => {
102
102
  // eslint-disable-next-line prefer-spread
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/ws",
3
- "version": "3.0.0-beta.10",
3
+ "version": "3.0.0-beta.14",
4
4
  "description": "Midway Web Framework for ws",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -22,15 +22,15 @@
22
22
  ],
23
23
  "license": "MIT",
24
24
  "devDependencies": {
25
- "@midwayjs/decorator": "^3.0.0-beta.10",
26
- "@midwayjs/mock": "^3.0.0-beta.10",
27
- "@types/ws": "^7.4.4",
28
- "fs-extra": "^8.0.1"
25
+ "@midwayjs/decorator": "^3.0.0-beta.14",
26
+ "@midwayjs/mock": "^3.0.0-beta.14",
27
+ "@types/ws": "8.2.2",
28
+ "fs-extra": "10.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@midwayjs/core": "^3.0.0-beta.10",
32
- "@midwayjs/logger": "^3.0.0-beta.10",
33
- "ws": "^7.4.5"
31
+ "@midwayjs/core": "^3.0.0-beta.14",
32
+ "@midwayjs/logger": "2.14.0",
33
+ "ws": "8.4.0"
34
34
  },
35
35
  "author": "Harry Chen <czy88840616@gmail.com>",
36
36
  "repository": {
@@ -40,5 +40,5 @@
40
40
  "engines": {
41
41
  "node": ">=12"
42
42
  },
43
- "gitHead": "153870f2e2dd6b17673ec7591e49224a6bd51b36"
43
+ "gitHead": "95695ada36190cf376e93a1a8866b3fb6dde06bc"
44
44
  }