j-queue-sdk-web
Advanced tools
Comparing version
@@ -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 @@ } |
@@ -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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
477041
0.45%1700
0.95%