cgserver 12.2.2 → 12.2.3

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/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # 版本更新日志
2
2
 
3
+ ## v12.2.3
4
+ - mongo 添加了await,不太重要这个更新
5
+
3
6
  ## v12.2.0
4
7
  - mongo 添加了重连功能
5
8
  ## v12.1.0
@@ -159,7 +159,7 @@ class MongoExt {
159
159
  this._mongoClient.on("connectionCreated", this.onConnectionCreated.bind(this));
160
160
  this._mongoClient.on("connectionReady", this.onConnectionReady.bind(this));
161
161
  this._mongoClient.on("connectionClosed", this.onConnectionClosed.bind(this));
162
- this._mongoClient.connect();
162
+ await this._mongoClient.connect();
163
163
  return true;
164
164
  }
165
165
  onConnectionCreated(event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "12.2.2",
3
+ "version": "12.2.3",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",