Skip to content

Commit fb60d26

Browse files
committed
remove logs, update scripts
1 parent 84fc185 commit fb60d26

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
22
"name": "adonis-websocket-wechatmp",
3-
"version": "0.0.3",
3+
"version": "0.0.5",
44
"description": "WeChat Mini Program Websocket client for AdonisJs",
55
"main": "dist/index.js",
66
"scripts": {
7-
"build": "rollup -c"
7+
"build": "rollup -c",
8+
"prepublish": "npm run build"
9+
},
10+
"repository": {
11+
"type" : "git",
12+
"url" : "https://github.com/borie88/adonis-websocket-wechatmp"
813
},
914
"keywords": [
1015
"websocket",

src/Connection/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,6 @@ export default class Connection extends Emitter {
597597
this.ws.onError((event) => this._onError(event))
598598
this.ws.onOpen((event) => this._onOpen(event))
599599
this.ws.onMessage((event) => this._onMessage(event))
600-
console.log(this.ws, url)
601600

602601
return this
603602
}
@@ -614,7 +613,7 @@ export default class Connection extends Emitter {
614613
write (payload) {
615614
if (this.ws.readyState !== this.ws.OPEN) {
616615
if (this.options.env !== 'production') {
617-
console.log('connection is not in open state, current state %s', this.ws.readyState)
616+
console.log(`connection is not in open state, current state ${this.ws.readyState}`)
618617
}
619618
return
620619
}

src/Socket/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export default class Socket {
233233
close () {
234234
this.state = 'closing'
235235
// if (process.env.NODE_ENV !== 'production') {
236-
console.log(`closing subscription for ${this.topic} topic with server`)
236+
// console.log(`closing subscription for ${this.topic} topic with server`)
237237
// }
238238
this.connection.sendPacket(wsp.leavePacket(this.topic))
239239
}

0 commit comments

Comments
 (0)