j-queue-sdk-web
Advanced tools
Comparing version
@@ -76,2 +76,3 @@ import { Socket } from 'socket.io-client'; | ||
* - data-language: Language for popup ('en'/'ko'). | ||
* - data-storage-language-key: Language for popup ('en'/'ko'). | ||
* - data-text-color: Text color for popup. | ||
@@ -78,0 +79,0 @@ * - data-loader-gradient-start: Starting color for the loader gradient. |
@@ -329,2 +329,3 @@ "use strict"; | ||
* - data-language: Language for popup ('en'/'ko'). | ||
* - data-storage-language-key: Language for popup ('en'/'ko'). | ||
* - data-text-color: Text color for popup. | ||
@@ -356,5 +357,6 @@ * - data-loader-gradient-start: Starting color for the loader gradient. | ||
const storageConnectKey = sdkScript.getAttribute('data-storage-connect-key') || this.CONFIG.STORAGE_CONNECT_KEY; | ||
const storageLanguageKey = sdkScript.getAttribute('data-storage-language-key') || this.CONFIG.STORAGE_LANGUAGE_KEY; | ||
const connectKey = sdkScript.getAttribute('data-connect-key'); | ||
const isShowLoadingOnConnect = sdkScript.getAttribute('data-show-loading') === 'true'; | ||
const language = sdkScript.getAttribute('data-language'); | ||
const language = (sdkScript.getAttribute('data-language') || (localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(storageLanguageKey)) || 'ko'); | ||
const textColor = sdkScript.getAttribute('data-text-color'); | ||
@@ -385,3 +387,4 @@ const loaderGradientStart = sdkScript.getAttribute('data-loader-gradient-start'); | ||
STORAGE_TOKEN_KEY: 'queue_token', | ||
STORAGE_CONNECT_KEY: 'connect_key', | ||
STORAGE_CONNECT_KEY: 'queue_connect_key', | ||
STORAGE_LANGUAGE_KEY: 'queue_language', | ||
API_ENDPOINTS: { LEAVE: '/leave' }, | ||
@@ -388,0 +391,0 @@ MESSAGES: { |
{ | ||
"name": "j-queue-sdk-web", | ||
"version": "3.1.1", | ||
"version": "3.3.3", | ||
"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", |
@@ -36,3 +36,4 @@ import { io, Socket } from 'socket.io-client'; | ||
STORAGE_TOKEN_KEY: 'queue_token', | ||
STORAGE_CONNECT_KEY: 'connect_key', | ||
STORAGE_CONNECT_KEY: 'queue_connect_key', | ||
STORAGE_LANGUAGE_KEY: 'queue_language', | ||
API_ENDPOINTS: { LEAVE: '/leave' }, | ||
@@ -458,2 +459,3 @@ MESSAGES: { | ||
* - data-language: Language for popup ('en'/'ko'). | ||
* - data-storage-language-key: Language for popup ('en'/'ko'). | ||
* - data-text-color: Text color for popup. | ||
@@ -488,5 +490,6 @@ * - data-loader-gradient-start: Starting color for the loader gradient. | ||
const storageConnectKey = sdkScript.getAttribute('data-storage-connect-key') || this.CONFIG.STORAGE_CONNECT_KEY; | ||
const storageLanguageKey = sdkScript.getAttribute('data-storage-language-key') || this.CONFIG.STORAGE_LANGUAGE_KEY; | ||
const connectKey = sdkScript.getAttribute('data-connect-key'); | ||
const isShowLoadingOnConnect = sdkScript.getAttribute('data-show-loading') === 'true'; | ||
const language = sdkScript.getAttribute('data-language') as 'en' | 'ko' | undefined; | ||
const language = (sdkScript.getAttribute('data-language') || localStorage?.getItem(storageLanguageKey) || 'ko') as 'en' | 'ko' | undefined; | ||
const textColor = sdkScript.getAttribute('data-text-color'); | ||
@@ -493,0 +496,0 @@ const loaderGradientStart = sdkScript.getAttribute('data-loader-gradient-start'); |
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
478871
0.31%1708
0.41%