Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

debugbear

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debugbear - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

2

callApi.ts

@@ -15,3 +15,3 @@ import axios from "axios";

}: {
method: "get" | "post" | "delete";
method: "get" | "post" | "delete" | "patch";
path: string;

@@ -18,0 +18,0 @@ body?: any;

@@ -320,2 +320,30 @@ import * as queryString from "querystring";

update(
pageId: number,
{
name,
url,
testScheduleName,
deviceName,
region,
advancedSettings,
tags,
}: Partial<CreatePageOptions>
): Promise<PageObject> {
return callApi({
method: "patch",
path: `/pages/${pageId}`,
body: {
name,
url,
testScheduleName,
deviceName,
region,
advancedSettings,
tags,
},
explicitApiKeyParam: this.apiKey,
});
}
delete(pageId: string) {

@@ -322,0 +350,0 @@ return callApi({

export declare function callApi({ method, path, body, explicitApiKeyParam, }: {
method: "get" | "post" | "delete";
method: "get" | "post" | "delete" | "patch";
path: string;

@@ -4,0 +4,0 @@ body?: any;

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

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

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

@@ -319,2 +319,19 @@ "use strict";

};
PagesApiClient.prototype.update = function (pageId, _a) {
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({
method: "patch",
path: "/pages/" + pageId,
body: {
name: name,
url: url,
testScheduleName: testScheduleName,
deviceName: deviceName,
region: region,
advancedSettings: advancedSettings,
tags: tags,
},
explicitApiKeyParam: this.apiKey,
});
};
PagesApiClient.prototype.delete = function (pageId) {

@@ -321,0 +338,0 @@ return callApi_1.callApi({

{
"name": "debugbear",
"version": "2.1.3",
"version": "2.1.4",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc