@staroverlay/dom
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -5,3 +5,3 @@ { | ||
"description": "DOM API client for build StarOverlay widgets.", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "main": "lib/index.js", |
import { Template, TemplateVersion, Widget } from '@staroverlay/sdk'; | ||
import { Socket } from 'socket.io-client'; | ||
import type { Socket } from 'socket.io-client'; | ||
@@ -4,0 +4,0 @@ import { injectContent, renderIf } from './utils/dom-utils'; |
import { Template, TemplateVersion, Widget } from '@staroverlay/sdk'; | ||
import io from 'socket.io-client'; | ||
import { io } from 'socket.io-client'; | ||
@@ -17,3 +17,3 @@ import StarOverlay from './client'; | ||
export function injectLibDOM({ | ||
function injectLibDOM({ | ||
backendURL, | ||
@@ -27,2 +27,4 @@ workerURL, | ||
transports: ['websocket'], | ||
autoConnect: true, | ||
reconnection: true, | ||
}); | ||
@@ -106,2 +108,4 @@ | ||
window.injectLibDOM = injectLibDOM; | ||
declare global { | ||
@@ -111,3 +115,4 @@ interface Window { | ||
env: Environment; | ||
injectLibDOM: typeof injectLibDOM; | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78413
337