You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

j-queue-sdk-web

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

j-queue-sdk-web - npm Package Compare versions

Comparing version

to
3.0.0

1

dist/src/index.d.ts

@@ -33,2 +33,3 @@ import { Socket } from 'socket.io-client';

private static clearInterval;
private static reloadPage;
private static startStatusEmission;

@@ -35,0 +36,0 @@ private static startCheckDisconnectedEmission;

@@ -127,2 +127,5 @@ "use strict";

}
static reloadPage() {
window.location.reload();
}
static startStatusEmission(interval) {

@@ -182,4 +185,7 @@ this.clearInterval();

case types_1.OnlineQueueStatus.EMPTY:
alert('[J Queue] - Connect key does not exist!');
alert(`[J Queue] - ${(popupConfig === null || popupConfig === void 0 ? void 0 : popupConfig.language) === 'en' ? 'Connect key does not exist!' : '연결 키가 존재하지 않습니다!'}`);
this.clearInterval();
case types_1.OnlineQueueStatus.EXPIRED:
alert(`[J Queue] - ${(popupConfig === null || popupConfig === void 0 ? void 0 : popupConfig.language) === 'en' ? 'You have waited too long!' : '너무 오래 기다리셨습니다!'}`);
this.reloadPage();
break;

@@ -186,0 +192,0 @@ }

3

dist/src/types.d.ts

@@ -45,3 +45,4 @@ /**

ACTIVE = 2,
EMPTY = 3
EMPTY = 3,
EXPIRED = 4
}

@@ -48,0 +49,0 @@ /**

@@ -12,2 +12,3 @@ "use strict";

OnlineQueueStatus[OnlineQueueStatus["EMPTY"] = 3] = "EMPTY";
OnlineQueueStatus[OnlineQueueStatus["EXPIRED"] = 4] = "EXPIRED";
})(OnlineQueueStatus || (exports.OnlineQueueStatus = OnlineQueueStatus = {}));
{
"name": "j-queue-sdk-web",
"version": "2.0.0",
"version": "3.0.0",
"description": "A TypeScript package to check WebSocket connection status and control web access with a popup",

@@ -5,0 +5,0 @@ "main": "dist/j-queue-sdk-web.js",

@@ -217,2 +217,6 @@ import { io, Socket } from 'socket.io-client';

private static reloadPage(): void {
window.location.reload();
}
private static startStatusEmission(interval: number): void {

@@ -278,4 +282,7 @@ this.clearInterval();

case OnlineQueueStatus.EMPTY:
alert('[J Queue] - Connect key does not exist!');
alert(`[J Queue] - ${popupConfig?.language === 'en' ? 'Connect key does not exist!' : '연결 키가 존재하지 않습니다!'}`);
this.clearInterval();
case OnlineQueueStatus.EXPIRED:
alert(`[J Queue] - ${popupConfig?.language === 'en' ? 'You have waited too long!' : '너무 오래 기다리셨습니다!'}`);
this.reloadPage();
break;

@@ -282,0 +289,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet