@getlimelight/sdk 0.7.9 → 0.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -292,7 +292,7 @@ var LIMELIGHT_WEB_WSS_URL = "wss://api.getlimelight.io";
|
|
|
292
292
|
var LIMELIGHT_DESKTOP_WSS_URL = "ws://localhost:8484";
|
|
293
293
|
var LIMELIGHT_MCP_WS_URL = "ws://localhost:9229";
|
|
294
294
|
var WS_PATH = "/limelight";
|
|
295
|
-
var SDK_VERSION = true ? "0.7.
|
|
295
|
+
var SDK_VERSION = true ? "0.7.10" : "test-version";
|
|
296
296
|
var RENDER_THRESHOLDS = {
|
|
297
297
|
HOT_VELOCITY: 5,
|
|
298
298
|
HIGH_RENDER_COUNT: 50,
|
|
@@ -558,6 +558,7 @@ var formatRequestName = (url) => {
|
|
|
558
558
|
|
|
559
559
|
// src/helpers/utils/environment.ts
|
|
560
560
|
var hasDOM = () => typeof window !== "undefined" && typeof document !== "undefined";
|
|
561
|
+
var isServer = () => !hasDOM() && typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.versions.node !== "undefined";
|
|
561
562
|
|
|
562
563
|
// src/helpers/render/generateRenderId.ts
|
|
563
564
|
var counter = 0;
|
|
@@ -3039,17 +3040,17 @@ var LimelightClient = class {
|
|
|
3039
3040
|
if (typeof XMLHttpRequest !== "undefined") {
|
|
3040
3041
|
this.xhrInterceptor.setup(this.config);
|
|
3041
3042
|
}
|
|
3042
|
-
if (
|
|
3043
|
+
if (isServer()) {
|
|
3043
3044
|
this.httpInterceptor.setup(this.config);
|
|
3044
3045
|
}
|
|
3045
3046
|
}
|
|
3046
3047
|
if (this.config.enableConsole) {
|
|
3047
3048
|
this.consoleInterceptor.setup(this.config);
|
|
3048
|
-
if (
|
|
3049
|
+
if (isServer()) {
|
|
3049
3050
|
this.errorInterceptor.setup(this.config);
|
|
3050
3051
|
}
|
|
3051
3052
|
}
|
|
3052
|
-
if (this.config.enableRenderInspector &&
|
|
3053
|
+
if (this.config.enableRenderInspector && !isServer()) {
|
|
3053
3054
|
this.renderInterceptor.setup(this.config);
|
|
3054
3055
|
}
|
|
3055
3056
|
if (this.config.stores && this.config.enableStateInspector) {
|