allure-playwright
Advanced tools
Comparing version 2.0.0-beta.12 to 2.0.0-beta.13
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fs_1 = __importDefault(require("fs")); | ||
const path_1 = __importDefault(require("path")); | ||
@@ -64,5 +65,12 @@ const allure_js_commons_1 = require("allure-js-commons"); | ||
} | ||
const fileName = attachment.body | ||
? runtime.writeAttachment(attachment.body, attachment.contentType) | ||
: runtime.writeAttachmentFromPath(attachment.path, attachment.contentType); | ||
let fileName; | ||
if (attachment.body) { | ||
fileName = runtime.writeAttachment(attachment.body, attachment.contentType); | ||
} | ||
else { | ||
if (!fs_1.default.existsSync(attachment.path)) { | ||
continue; | ||
} | ||
fileName = runtime.writeAttachmentFromPath(attachment.path, attachment.contentType); | ||
} | ||
allureTest.addAttachment(attachment.name, attachment.contentType, fileName); | ||
@@ -69,0 +77,0 @@ if (attachment.name === "diff") { |
{ | ||
"name": "allure-playwright", | ||
"version": "2.0.0-beta.12", | ||
"version": "2.0.0-beta.13", | ||
"description": "Allure Playwright integration", | ||
@@ -9,3 +9,3 @@ "license": "Apache-2.0", | ||
}, | ||
"repository": "https://github.com/allure-framework/allure-playwright", | ||
"repository": "https://github.com/allure-framework/allure-js", | ||
"keywords": [ | ||
@@ -34,8 +34,7 @@ "playwright", | ||
"dependencies": { | ||
"allure-js-commons": "2.0.0-beta.12" | ||
"allure-js-commons": "2.0.0-beta.13" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"stableVersion": "2.0.0-beta.11" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
24635
139
6
+ Addedallure-js-commons@2.0.0-beta.13(transitive)
- Removedallure-js-commons@2.0.0-beta.12(transitive)