@reportportal/client-javascript
Advanced tools
Comparing version 5.1.2 to 5.1.3
@@ -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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
81368
16
1364
4
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedglob@8.1.0(transitive)
+ Addedminimatch@5.1.6(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedglob@7.2.3(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
Updatedaxios@^1.6.8
Updatedaxios-retry@^4.1.0
Updatedglob@^8.1.0