reportportal-js-client
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -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: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
249
134291
+ Addedaxios@0.19.2(transitive)
- Removedaxios@0.19.0(transitive)
- Removedis-buffer@2.0.5(transitive)
Updatedaxios@0.19.2