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.4 to 2.0.5

DebugBear.ts

11

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var runCli_1 = require("./runCli");
var makeApiClient_1 = require("./makeApiClient");
module.exports = makeApiClient_1.makeApiClient;
module.exports.analyzePage = function () {
exports.__runCli = runCli_1.__runCli;
var DebugBear_1 = require("./DebugBear");
exports.DebugBear = DebugBear_1.DebugBear;
function analyzePage() {
throw Error("analyzePage was removed in version 2 of the DebugBear API. Install version 0.1.12 or upgrade to v2: https://www.debugbear.com/docs/migrating-to-the-v2-api");
};
module.exports.__runCli = runCli_1.__runCli;
}
exports.analyzePage = analyzePage;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ApiClient_1 = require("./ApiClient");
var DebugBear_1 = require("./DebugBear");
function makeApiClient(apiKey) {
return new ApiClient_1.ApiClient(apiKey);
return new DebugBear_1.DebugBear(apiKey);
}
exports.makeApiClient = makeApiClient;

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

.option("--waitForResult")
.option("--inferBuildInfo")
.option("--inferBuildInfo", "look at environment variables and local git to determine e.g. branch name and commit title")
.option("--ngrokWebPort <ngrokWebPort>")

@@ -62,5 +62,13 @@ .option("--commitHash <commitHash>")

.option("--repoName <repoName>")
.option("--buildTitle <buildTitle>", "Title of the build, e.g. a commit message")
.option("--buildTitle <buildTitle>", "title of the build, e.g. a commit message")
.option("--loginStep.username <loginStep.username>")
.option("--loginStep.password <loginStep.password>")
.option("--customHeader <customHeader>", "custom header, name and value separated by a colon", function collect(value, previous) {
var _a;
var parts = value.split(":");
if (parts.length !== 2) {
throw Error("Custom header needs to have two parts separated by a colon");
}
return Object.assign(previous || {}, (_a = {}, _a[parts[0]] = parts[1], _a));
})
.action(function (url) {

@@ -109,2 +117,4 @@ urlValue = url;

isCli: true
}, {
customHeaders: program.customHeader
}, lodash_1.pick(program, [

@@ -111,0 +121,0 @@ "pageId",

import { __runCli } from "./runCli";
import { makeApiClient } from "./makeApiClient";
import { DebugBear } from "./DebugBear";
module.exports = makeApiClient;
module.exports.analyzePage = function() {
export function analyzePage() {
throw Error(
"analyzePage was removed in version 2 of the DebugBear API. Install version 0.1.12 or upgrade to v2: https://www.debugbear.com/docs/migrating-to-the-v2-api"
);
};
module.exports.__runCli = __runCli;
}
export { DebugBear, __runCli };

@@ -1,5 +0,5 @@

import { ApiClient } from "./ApiClient";
import { DebugBear } from "./DebugBear";
export function makeApiClient(apiKey) {
return new ApiClient(apiKey);
return new DebugBear(apiKey);
}
{
"name": "debugbear",
"version": "2.0.4",
"version": "2.0.5",
"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",

@@ -14,3 +14,6 @@ import * as commander from "commander";

.option("--waitForResult")
.option("--inferBuildInfo")
.option(
"--inferBuildInfo",
"look at environment variables and local git to determine e.g. branch name and commit title"
)
.option("--ngrokWebPort <ngrokWebPort>")

@@ -25,6 +28,19 @@ .option("--commitHash <commitHash>")

"--buildTitle <buildTitle>",
"Title of the build, e.g. a commit message"
"title of the build, e.g. a commit message"
)
.option("--loginStep.username <loginStep.username>")
.option("--loginStep.password <loginStep.password>")
.option(
"--customHeader <customHeader>",
"custom header, name and value separated by a colon",
function collect(value, previous) {
const parts = value.split(":");
if (parts.length !== 2) {
throw Error(
"Custom header needs to have two parts separated by a colon"
);
}
return Object.assign(previous || {}, { [parts[0]]: parts[1] });
}
)
.action(function(url) {

@@ -79,2 +95,5 @@ urlValue = url;

},
{
customHeaders: program.customHeader
},
pick(program, [

@@ -81,0 +100,0 @@ "pageId",

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