@getlimelight/sdk 0.7.8 → 0.7.9

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.mjs CHANGED
@@ -256,7 +256,7 @@ var LIMELIGHT_WEB_WSS_URL = "wss://api.getlimelight.io";
256
256
  var LIMELIGHT_DESKTOP_WSS_URL = "ws://localhost:8484";
257
257
  var LIMELIGHT_MCP_WS_URL = "ws://localhost:9229";
258
258
  var WS_PATH = "/limelight";
259
- var SDK_VERSION = true ? "0.7.8" : "test-version";
259
+ var SDK_VERSION = true ? "0.7.9" : "test-version";
260
260
  var RENDER_THRESHOLDS = {
261
261
  HOT_VELOCITY: 5,
262
262
  HIGH_RENDER_COUNT: 50,
@@ -1406,8 +1406,9 @@ var HttpInterceptor = class {
1406
1406
  let responseSize = 0;
1407
1407
  res.on("data", (chunk) => {
1408
1408
  if (responseSize < MAX_BODY_SIZE) {
1409
- responseChunks.push(chunk);
1410
- responseSize += chunk.length;
1409
+ const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
1410
+ responseChunks.push(buf);
1411
+ responseSize += buf.length;
1411
1412
  }
1412
1413
  });
1413
1414
  res.on("end", () => {