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

reportportal-js-client

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reportportal-js-client - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

16

lib/report-portal-client.js

@@ -18,5 +18,11 @@ /* eslint-disable quotes,no-console,class-methods-use-this */

* project: "PROJECT NAME",
* (optional) headers: {"X-Custom": "headers"},
* }
*/
constructor(params) {
const headers = {
'User-Agent': 'NodeJS',
Authorization: `bearer ${params.token}`,
...(params.headers || {}),
};
this.debug = params.debug;

@@ -26,11 +32,5 @@ this.map = {};

this.options = {
headers: {
'User-Agent': 'NodeJS',
Authorization: `bearer ${params.token}`,
},
headers,
};
this.headers = {
'User-Agent': 'NodeJS',
Authorization: `bearer ${params.token}`,
};
this.headers = headers;
this.token = params.token;

@@ -37,0 +37,0 @@ this.config = params;

{
"name": "reportportal-js-client",
"version": "1.2.1",
"version": "1.2.2",
"description": "ReportPortal client for NodeJS",

@@ -32,3 +32,3 @@ "contributors": [

"dependencies": {
"axios": "0.19.0",
"axios": "0.19.2",
"axios-retry": "3.1.2",

@@ -46,3 +46,3 @@ "uniqid": "5.0.3"

"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-node": "^10.0.0",

@@ -49,0 +49,0 @@ "jasmine": "^3.5.0",

[![Build Status](https://travis-ci.org/BorisOsipov/reportportal-js-client.svg?branch=master)](https://travis-ci.org/BorisOsipov/reportportal-js-client)
# ReportPortal js client
Fork of [client-javascript](https://github.com/reportportal/client-javascript)
Fork of [client-javascript](https://github.com/reportportal/client-javascript)
This Client is to communicate with the Report Portal on node js.

@@ -13,3 +13,3 @@ Library is used only for implementors of custom listeners for ReportPortal.

```
## Example

@@ -45,2 +45,3 @@

project | The name of the project in which the launches will be created.
headers: | (optional) headers object passed to all http request to report portal server.

@@ -201,3 +202,3 @@ ## Api

status | (optional) item status, one of "", "PASSED", "FAILED", "STOPPED", "SKIPPED", "RESTED", "CANCELLED". Default: "PASSED".
issue | (optional) object issue
issue | (optional) object issue

@@ -204,0 +205,0 @@ Example issue object:

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