allure-js-parser
Advanced tools
+1
-1
| { | ||
| "name": "allure-js-parser", | ||
| "version": "0.0.8-alpha.4", | ||
| "version": "0.0.8-alpha.5", | ||
| "description": "allure-js-parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,2 +20,3 @@ import { AllureContainer, AllureNode, AllureTest } from '../types'; | ||
| failOnError?: boolean; | ||
| logError?: boolean; | ||
| }) => AllureTest[]; |
+7
-3
@@ -124,10 +124,14 @@ "use strict"; | ||
| else { | ||
| logError(err); | ||
| if (err) { | ||
| logError(err); | ||
| } | ||
| } | ||
| }; | ||
| const parseAllure = (directoryPath, config) => { | ||
| var _a; | ||
| const env = process.env['failOnError'] !== undefined ? process.env.failOnError !== 'false' : false; | ||
| const failOnError = (config === null || config === void 0 ? void 0 : config.failOnError) !== undefined ? config.failOnError : env; | ||
| const logError = (_a = config === null || config === void 0 ? void 0 : config.logError) !== null && _a !== void 0 ? _a : true; | ||
| if (!fs.existsSync(directoryPath)) { | ||
| exitWhenFailOnError(failOnError, `No allure-results folder: ${directoryPath}\n`); | ||
| exitWhenFailOnError(failOnError, logError ? `No allure-results folder: ${directoryPath}\n` : undefined); | ||
| return []; | ||
@@ -139,3 +143,3 @@ } | ||
| if (pureTestCases.length === 0) { | ||
| exitWhenFailOnError(failOnError, `No allure-results in folder (did you forgot to run tests?). Path '${directoryPath}'`); | ||
| exitWhenFailOnError(failOnError, logError ? `No allure-results in folder (did you forgot to run tests?). Path '${directoryPath}'` : undefined); | ||
| return []; | ||
@@ -142,0 +146,0 @@ } |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
16302
1.53%293
1.74%