dingtalk-stream 2.1.1 → 2.1.2

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/client.cjs CHANGED
@@ -134,7 +134,7 @@ class DWClient extends EventEmitter {
134
134
  this.socket = new WebSocket(this.dw_url, this.sslopts);
135
135
  this.socket.on("open", () => {
136
136
  this.connected = true;
137
- this.printDebug("Socket open");
137
+ console.info("[" + (/* @__PURE__ */ new Date()).toISOString() + "] connect success");
138
138
  if (this.config.keepAlive) {
139
139
  this.isAlive = true;
140
140
  this.heartbeatIntervallId = setInterval(() => {
package/dist/client.mjs CHANGED
@@ -132,7 +132,7 @@ class DWClient extends EventEmitter {
132
132
  this.socket = new WebSocket(this.dw_url, this.sslopts);
133
133
  this.socket.on("open", () => {
134
134
  this.connected = true;
135
- this.printDebug("Socket open");
135
+ console.info("[" + (/* @__PURE__ */ new Date()).toISOString() + "] connect success");
136
136
  if (this.config.keepAlive) {
137
137
  this.isAlive = true;
138
138
  this.heartbeatIntervallId = setInterval(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dingtalk-stream",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Nodejs SDK for DingTalk Stream Mode API, Compared with the webhook mode, it is easier to access the DingTalk",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",