airfone-client-js
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -47,11 +47,9 @@ import { io } from 'socket.io-client'; | ||
}).on(`${room}/${role}`, (payload) => { | ||
var _a, _b; | ||
var _a; | ||
let { data, event = 'role', time, from } = payload; // from 来自谁发的角色通知 | ||
(_a = this.events.get(event)) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, data), { time, from })); | ||
(_b = this.events.get('message')) === null || _b === void 0 ? void 0 : _b.call(this, Object.assign(Object.assign({}, payload), { from, time })); | ||
}).on(`${room}`, (payload) => { | ||
var _a, _b; | ||
var _a; | ||
let { data, event = 'group', time, from } = payload; // from 来自谁发的群公告 | ||
(_a = this.events.get(event)) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, data), { time, from })); | ||
(_b = this.events.get('message')) === null || _b === void 0 ? void 0 : _b.call(this, Object.assign(Object.assign({}, payload), { from, time })); | ||
}).on('error', (error) => { | ||
@@ -58,0 +56,0 @@ var _a; |
{ | ||
"name": "airfone-client-js", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6646
150