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.5 to 2.0.6

4

analyzePage.ts

@@ -1,2 +0,2 @@

const debugbear = require("./makeApiClient").makeApiClient;
import { DebugBear } from "./DebugBear";

@@ -9,3 +9,3 @@ export async function analyzePage(options) {

}
const dbbClient = debugbear(process.env.DEBUGBEAR_API_KEY);
const dbbClient = new DebugBear(process.env.DEBUGBEAR_API_KEY);
if (!options) {

@@ -12,0 +12,0 @@ console.log(

@@ -85,3 +85,24 @@ import { analyzePage } from "./analyzePage";

async analyze(pageId: number, options: any = {}) {
async analyze(
pageId: number,
options: {
commitHash?: string;
commitBranch?: string;
baseHash?: string;
baseBranch?: string;
url?: string;
baseUrl?: string;
path?: string;
repoOwner?: string;
repoName?: string;
buildTitle?: string;
loginStepOverrides?: {
password?: string;
username?: string;
};
customHeaders?: { [key: string]: string };
inferBuildInfo?: boolean;
ngrokWebPort?: boolean;
} = {}
) {
if (options.inferBuildInfo) {

@@ -88,0 +109,0 @@ let inferredBuildInfo = await inferBuildInfo({

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

Object.defineProperty(exports, "__esModule", { value: true });
var debugbear = require("./makeApiClient").makeApiClient;
var DebugBear_1 = require("./DebugBear");
function analyzePage(options) {

@@ -49,3 +49,3 @@ return __awaiter(this, void 0, void 0, function () {

}
dbbClient = debugbear(process.env.DEBUGBEAR_API_KEY);
dbbClient = new DebugBear_1.DebugBear(process.env.DEBUGBEAR_API_KEY);
if (!options) {

@@ -52,0 +52,0 @@ console.log("The pageId option is required. You can find the page ID in the top right corner on the results page.");

@@ -8,3 +8,23 @@ export declare class DebugBear {

constructor(apiKey: string);
analyze(pageId: number, options?: any): Promise<{
analyze(pageId: number, options?: {
commitHash?: string;
commitBranch?: string;
baseHash?: string;
baseBranch?: string;
url?: string;
baseUrl?: string;
path?: string;
repoOwner?: string;
repoName?: string;
buildTitle?: string;
loginStepOverrides?: {
password?: string;
username?: string;
};
customHeaders?: {
[key: string]: string;
};
inferBuildInfo?: boolean;
ngrokWebPort?: boolean;
}): Promise<{
url: any;

@@ -11,0 +31,0 @@ waitForResult: () => Promise<void>;

{
"name": "debugbear",
"version": "2.0.5",
"version": "2.0.6",
"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