Socket
Socket
Sign inDemoInstall

debugbear

Package Overview
Dependencies
28
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.2 to 2.1.3

36

DebugBear.ts

@@ -12,3 +12,2 @@ import * as queryString from "querystring";

projects: ProjectsApiClient;
collaborators: CollaboratorsApiClient;
annotations: AnnotationsApiClient;

@@ -25,3 +24,2 @@ constructor(apiKey: string) {

this.projects = new ProjectsApiClient(apiKey, this);
this.collaborators = new CollaboratorsApiClient(apiKey);
this.annotations = new AnnotationsApiClient(apiKey, this);

@@ -210,23 +208,2 @@ }

class CollaboratorsApiClient {
constructor(private apiKey: string) {}
create(projectId, { email }: { email: string }) {
return callApi({
method: "post",
path: `/projects/${projectId}/collaborators`,
body: { email },
explicitApiKeyParam: this.apiKey,
});
}
get(projectId) {
return callApi({
method: "get",
path: `/projects/${projectId}/collaborators`,
explicitApiKeyParam: this.apiKey,
});
}
}
class PagesApiClient {

@@ -318,3 +295,13 @@ constructor(private apiKey: string) {}

advancedSettings,
}: CreatePageOptions
tags,
}: Pick<
CreatePageOptions,
| "name"
| "url"
| "testScheduleName"
| "deviceName"
| "region"
| "advancedSettings"
| "tags"
>
): Promise<PageObject> {

@@ -331,2 +318,3 @@ return callApi({

advancedSettings,
tags,
},

@@ -333,0 +321,0 @@ explicitApiKeyParam: this.apiKey,

@@ -5,3 +5,2 @@ import { AnalysisResultObject } from "./ResponseTypes";

projects: ProjectsApiClient;
collaborators: CollaboratorsApiClient;
annotations: AnnotationsApiClient;

@@ -82,10 +81,2 @@ constructor(apiKey: string);

}
declare class CollaboratorsApiClient {
private apiKey;
constructor(apiKey: string);
create(projectId: any, { email }: {
email: string;
}): Promise<any>;
get(projectId: any): Promise<any>;
}
declare class PagesApiClient {

@@ -130,3 +121,3 @@ private apiKey;

}>;
create(projectId: string, { name, url, testScheduleName, deviceName, region, advancedSettings, }: CreatePageOptions): Promise<PageObject>;
create(projectId: string, { name, url, testScheduleName, deviceName, region, advancedSettings, tags, }: Pick<CreatePageOptions, "name" | "url" | "testScheduleName" | "deviceName" | "region" | "advancedSettings" | "tags">): Promise<PageObject>;
delete(pageId: string): Promise<any>;

@@ -133,0 +124,0 @@ getMetrics(pageId: string, { from, to }: GetMetricsOptions): Promise<any[]>;

@@ -80,3 +80,2 @@ "use strict";

this.projects = new ProjectsApiClient(apiKey, this);
this.collaborators = new CollaboratorsApiClient(apiKey);
this.annotations = new AnnotationsApiClient(apiKey, this);

@@ -251,24 +250,2 @@ }

}(ApiClientObject));
var CollaboratorsApiClient = /** @class */ (function () {
function CollaboratorsApiClient(apiKey) {
this.apiKey = apiKey;
}
CollaboratorsApiClient.prototype.create = function (projectId, _a) {
var email = _a.email;
return callApi_1.callApi({
method: "post",
path: "/projects/" + projectId + "/collaborators",
body: { email: email },
explicitApiKeyParam: this.apiKey,
});
};
CollaboratorsApiClient.prototype.get = function (projectId) {
return callApi_1.callApi({
method: "get",
path: "/projects/" + projectId + "/collaborators",
explicitApiKeyParam: this.apiKey,
});
};
return CollaboratorsApiClient;
}());
var PagesApiClient = /** @class */ (function () {

@@ -328,3 +305,3 @@ function PagesApiClient(apiKey) {

PagesApiClient.prototype.create = function (projectId, _a) {
var name = _a.name, url = _a.url, testScheduleName = _a.testScheduleName, deviceName = _a.deviceName, region = _a.region, advancedSettings = _a.advancedSettings;
var name = _a.name, url = _a.url, testScheduleName = _a.testScheduleName, deviceName = _a.deviceName, region = _a.region, advancedSettings = _a.advancedSettings, tags = _a.tags;
return callApi_1.callApi({

@@ -340,2 +317,3 @@ method: "post",

advancedSettings: advancedSettings,
tags: tags,
},

@@ -342,0 +320,0 @@ explicitApiKeyParam: this.apiKey,

{
"name": "debugbear",
"version": "2.1.2",
"version": "2.1.3",
"description": "Use DebugBear to test web performance 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