Socket
Socket
Sign inDemoInstall

debugbear

Package Overview
Dependencies
75
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.6 to 2.0.7

8

DebugBear.ts

@@ -22,10 +22,12 @@ import { analyzePage } from "./analyzePage";

let resp;
while (!hasFinished) {
await new Promise(resolve => setTimeout(resolve, interval));
timeWaited += interval;
({ hasFinished } = await callApi({
resp = await callApi({
method: "GET",
path: "/analysis/" + analysisId,
explicitApiKeyParam
}));
});
({ hasFinished } = resp);
if (timeWaited > 10 * 60 * 1000) {

@@ -35,2 +37,4 @@ throw Error("Waiting for result timed out");

}
return resp;
}

@@ -37,0 +41,0 @@

@@ -30,3 +30,3 @@ export declare class DebugBear {

url: any;
waitForResult: () => Promise<void>;
waitForResult: () => Promise<any>;
}>;

@@ -33,0 +33,0 @@ create(projectId: number, { name, url, everyNHours, formFactor, region }: {

@@ -54,3 +54,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var hasFinished, timeWaited, interval;
var hasFinished, timeWaited, interval, resp;
return __generator(this, function (_a) {

@@ -75,3 +75,4 @@ switch (_a.label) {

case 3:
(hasFinished = (_a.sent()).hasFinished);
resp = _a.sent();
(hasFinished = resp.hasFinished);
if (timeWaited > 10 * 60 * 1000) {

@@ -81,3 +82,3 @@ throw Error("Waiting for result timed out");

return [3 /*break*/, 1];
case 4: return [2 /*return*/];
case 4: return [2 /*return*/, resp];
}

@@ -84,0 +85,0 @@ });

{
"name": "debugbear",
"version": "2.0.6",
"version": "2.0.7",
"description": "API/CLI for DebugBearAnalyze pages with DebugBear. Analyze pages on demand on demand or as part of your Continuous Integration process.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc