New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zebrunner-playwright-agent

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zebrunner-playwright-agent - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

package.json
{
"name": "zebrunner-playwright-agent",
"version": "0.0.8",
"version": "0.0.9",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -16,4 +16,4 @@ "use strict";

: `POST ${this.shortenUrl(options.url)}`);
if (attempt !== 0) {
this.wait(this._delayPerAttempt);
if (attempt >= 0) {
await this.wait(this._delayPerAttempt);
}

@@ -31,3 +31,3 @@ try {

expectedStatusCode: options.expectedStatusCode,
}, attempt + 1);
}, isNaN(attempt) ? 0 : attempt + 1);
}

@@ -37,3 +37,4 @@ }

if (attempt === this._maxAttempts) {
throw new Error(`${e.message} \n ${e.stack}`);
console.log(`${e.message} \n ${e.stack}`);
return;
}

@@ -46,3 +47,3 @@ else {

expectedStatusCode: options.expectedStatusCode,
}, attempt + 1);
}, isNaN(attempt) ? 0 : attempt + 1);
}

@@ -55,4 +56,4 @@ }

: `PUT ${this.shortenUrl(options.url)}`);
if (attempt !== 0) {
this.wait(this._delayPerAttempt);
if (attempt > 0) {
await this.wait(this._delayPerAttempt);
}

@@ -70,3 +71,3 @@ try {

expectedStatusCode: options.expectedStatusCode,
}, attempt + 1);
}, isNaN(attempt) ? 0 : attempt + 1);
}

@@ -76,3 +77,4 @@ }

if (attempt === this._maxAttempts) {
return new Error(`${e.message} \n ${e.stack}`);
console.log(`${e.message} \n ${e.stack}`);
return;
}

@@ -85,3 +87,3 @@ else {

expectedStatusCode: options.expectedStatusCode,
}, attempt + 1);
}, isNaN(attempt) ? 0 : attempt + 1);
}

@@ -88,0 +90,0 @@ }

@@ -35,2 +35,5 @@ "use strict";

});
if (!r) {
throw new Error('Failed to obtain refresh token');
}
this._refreshToken = `Bearer ${r.data.authToken}`;

@@ -37,0 +40,0 @@ this._header = {

@@ -27,4 +27,4 @@ import Logger from './Logger';

);
if (attempt !== 0) {
this.wait(this._delayPerAttempt);
if (attempt >= 0) {
await this.wait(this._delayPerAttempt);
}

@@ -44,3 +44,3 @@

},
attempt + 1
isNaN(attempt) ? 0 : attempt + 1
);

@@ -50,3 +50,4 @@ }

if (attempt === this._maxAttempts) {
throw new Error(`${e.message} \n ${e.stack}`);
console.log(`${e.message} \n ${e.stack}`);
return;
} else {

@@ -60,3 +61,3 @@ await this.post(

},
attempt + 1
isNaN(attempt) ? 0 : attempt + 1
);

@@ -81,4 +82,4 @@ }

);
if (attempt !== 0) {
this.wait(this._delayPerAttempt);
if (attempt > 0) {
await this.wait(this._delayPerAttempt);
}

@@ -98,3 +99,3 @@

},
attempt + 1
isNaN(attempt) ? 0 : attempt + 1
);

@@ -104,3 +105,4 @@ }

if (attempt === this._maxAttempts) {
return new Error(`${e.message} \n ${e.stack}`);
console.log(`${e.message} \n ${e.stack}`);
return;
} else {

@@ -114,3 +116,3 @@ await this.put(

},
attempt + 1
isNaN(attempt) ? 0 : attempt + 1
);

@@ -117,0 +119,0 @@ }

@@ -41,2 +41,6 @@ import {AxiosResponse} from 'axios';

if (!r) {
throw new Error('Failed to obtain refresh token');
}
this._refreshToken = `Bearer ${r.data.authToken}`;

@@ -43,0 +47,0 @@ this._header = {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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