Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cushax-client

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cushax-client - npm Package Compare versions

Comparing version 0.1.11 to 0.1.13

2

lib/cushax.d.ts

@@ -8,2 +8,3 @@ /// <reference types="socket.io-client" />

private vue;
private _retryTimes;
get state(): TModule["state"];

@@ -13,3 +14,4 @@ constructor(socket: SocketIOClient.Socket, vue: Vue);

auth: CushaxAuthType<TModule>;
private retry;
}
export {};

@@ -6,2 +6,3 @@ var Cushax = /** @class */ (function () {

this.vue = vue;
this._retryTimes = 0;
this.commit = (function (name, payload) {

@@ -12,5 +13,8 @@ _this.vue.$store.commit("cushax/" + name, payload);

if (!_this.socket.connected) {
if (!_this.retry()) {
return;
}
setTimeout(function () {
_this.auth(data);
});
}, 100);
return;

@@ -28,4 +32,12 @@ }

});
Cushax.prototype.retry = function () {
if (this._retryTimes === 5) {
this._retryTimes = 0;
return false;
}
this._retryTimes++;
return true;
};
return Cushax;
}());
export { Cushax };

2

package.json
{
"name": "cushax-client",
"version": "0.1.11",
"version": "0.1.13",
"author": "boenfu <1997@boenfu.cn>",

@@ -5,0 +5,0 @@ "license": "MIT",

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