Socket
Socket
Sign inDemoInstall

airfone-client-js

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airfone-client-js - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

6

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc