@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.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.8" : "test-version";
295
+ var SDK_VERSION = true ? "0.7.9" : "test-version";
296
296
  var RENDER_THRESHOLDS = {
297
297
  HOT_VELOCITY: 5,
298
298
  HIGH_RENDER_COUNT: 50,
@@ -1442,8 +1442,9 @@ var HttpInterceptor = class {
1442
1442
  let responseSize = 0;
1443
1443
  res.on("data", (chunk) => {
1444
1444
  if (responseSize < MAX_BODY_SIZE) {
1445
- responseChunks.push(chunk);
1446
- responseSize += chunk.length;
1445
+ const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
1446
+ responseChunks.push(buf);
1447
+ responseSize += buf.length;
1447
1448
  }
1448
1449
  });
1449
1450
  res.on("end", () => {