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

@reportportal/client-javascript

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reportportal/client-javascript - npm Package Compare versions

Comparing version 5.1.2 to 5.1.3

9

lib/constants/outputs.js

@@ -0,8 +1,13 @@

const helpers = require('../helpers');
const OUTPUT_TYPES = {
// eslint-disable-next-line no-console
STDOUT: console.log,
STDOUT: (launchUuid) => console.log(`Report Portal Launch UUID: ${launchUuid}`),
// eslint-disable-next-line no-console
STDERR: console.error,
STDERR: (launchUuid) => console.error(`Report Portal Launch UUID: ${launchUuid}`),
// eslint-disable-next-line no-return-assign
ENVIRONMENT: (launchUuid) => (process.env.RP_LAUNCH_UUID = launchUuid),
FILE: helpers.saveLaunchUuidToFile,
};
module.exports = { OUTPUT_TYPES };

@@ -92,2 +92,11 @@ const fs = require('fs');

},
saveLaunchUuidToFile(launchUuid) {
const filename = `rp-launch-uuid-${launchUuid}.tmp`;
fs.open(filename, 'w', (err) => {
if (err) {
throw err;
}
});
},
};

@@ -10,3 +10,2 @@ /* eslint-disable quotes,no-console,class-methods-use-this */

const { RP_STATUSES } = require('./constants/statuses');
require('./polyfills');

@@ -211,3 +210,3 @@ const MULTIPART_BOUNDARY = Math.floor(Math.random() * 10000000000).toString();

if (this.config.launchUuidPrint) {
this.config.launchUuidPrintOutput(`Report Portal Launch UUID: ${this.launchUuid}`);
this.config.launchUuidPrintOutput(this.launchUuid);
}

@@ -214,0 +213,0 @@

{
"name": "@reportportal/client-javascript",
"version": "5.1.2",
"version": "5.1.3",
"description": "ReportPortal client for Node.js",

@@ -27,5 +27,5 @@ "author": "ReportPortal.io",

"dependencies": {
"axios": "^1.6.5",
"axios-retry": "^4.0.0",
"glob": "^7.2.3",
"axios": "^1.6.8",
"axios-retry": "^4.1.0",
"glob": "^8.1.0",
"ini": "^2.0.0",

@@ -32,0 +32,0 @@ "uniqid": "^5.4.0",

@@ -67,3 +67,3 @@ # ReportPortal js client

| launchUuidPrint | Optional | false | Whether to print the current launch UUID. |
| launchUuidPrintOutput | Optional | 'STDOUT' | Launch UUID printing output. Possible values: 'STDOUT', 'STDERR'. Works only if `launchUuidPrint` set to `true`. |
| launchUuidPrintOutput | Optional | 'STDOUT' | Launch UUID printing output. Possible values: 'STDOUT', 'STDERR', 'FILE', 'ENVIRONMENT'. Works only if `launchUuidPrint` set to `true`. File format: `rp-launch-uuid-${launch_uuid}.tmp`. Env variable: `RP_LAUNCH_UUID`. |
| token | Deprecated | Not set | Use `apiKey` instead. |

@@ -70,0 +70,0 @@

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