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

allure-js-commons

Package Overview
Dependencies
Maintainers
4
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-js-commons - npm Package Compare versions

Comparing version 2.10.0 to 2.11.0

5

dist/src/AllureCommandStep.js

@@ -24,4 +24,5 @@ "use strict";

static toExecutableItem(runtime, stepMetadata) {
var _a, _b;
const executable = Object.assign(Object.assign({}, stepMetadata), { attachments: [], steps: [] });
if (stepMetadata.attachments.length > 0) {
if (((_a = stepMetadata.attachments) === null || _a === void 0 ? void 0 : _a.length) > 0) {
stepMetadata.attachments.forEach((attachment) => {

@@ -37,3 +38,3 @@ const attachmentContent = Buffer.from(attachment.content, attachment.encoding);

}
if (stepMetadata.steps.length > 0) {
if (((_b = stepMetadata.steps) === null || _b === void 0 ? void 0 : _b.length) > 0) {
executable.steps = stepMetadata.steps.map((nestedStep) => AllureCommandStepExecutable.toExecutableItem(runtime, nestedStep));

@@ -40,0 +41,0 @@ }

2

dist/src/AllureGroup.js

@@ -5,4 +5,4 @@ "use strict";

const AllureTest_1 = require("./AllureTest");
const ExecutableItemWrapper_1 = require("./ExecutableItemWrapper");
const constructors_1 = require("./constructors");
const ExecutableItemWrapper_1 = require("./ExecutableItemWrapper");
class AllureGroup {

@@ -9,0 +9,0 @@ constructor(runtime) {

@@ -5,4 +5,4 @@ "use strict";

const AllureCommandStep_1 = require("./AllureCommandStep");
const ExecutableItemWrapper_1 = require("./ExecutableItemWrapper");
const constructors_1 = require("./constructors");
const ExecutableItemWrapper_1 = require("./ExecutableItemWrapper");
const model_1 = require("./model");

@@ -9,0 +9,0 @@ const utils_1 = require("./utils");

@@ -903,5 +903,3 @@ "use strict";

if (options.fileExtension) {
return options.fileExtension.startsWith(".")
? options.fileExtension
: `.${options.fileExtension}`;
return options.fileExtension.startsWith(".") ? options.fileExtension : `.${options.fileExtension}`;
}

@@ -908,0 +906,0 @@ return extensionsByType[options.contentType] || "";

{
"name": "allure-js-commons",
"version": "2.10.0",
"version": "2.11.0",
"description": "Allure JS Commons",
"homepage": "https://allurereport.org/",
"repository": {
"type": "git",
"url": "https://github.com/allure-framework/allure-js.git",
"directory": "packages/allure-js-commons"
},
"license": "Apache-2.0",

@@ -11,9 +17,2 @@ "author": {

},
"repository": {
"type": "git",
"url": "https://github.com/allure-framework/allure-js.git",
"directory": "packages/allure-js-commons"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {

@@ -31,9 +30,17 @@ ".": {

},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"clean": "rimraf ./dist",
"compile": "tsc",
"lint": "eslint ./src ./index.ts --ext .ts",
"lint:fix": "eslint ./src ./index.ts --ext .ts --fix",
"compile": "tsc",
"test": "ts-node --project test/tsconfig.json test/runner.ts"
},
"dependencies": {
"properties": "^1.2.1"
},
"devDependencies": {

@@ -48,3 +55,3 @@ "@types/chai": "^4.3.6",

"@typescript-eslint/parser": "^6.7.0",
"allure-mocha": "2.10.0",
"allure-mocha": "2.11.0",
"chai": "^4.3.8",

@@ -66,9 +73,3 @@ "eslint": "^8.49.0",

"typescript": "^5.2.2"
},
"dependencies": {
"properties": "^1.2.1"
},
"files": [
"dist"
]
}
}

@@ -5,3 +5,3 @@ # allure-js-commons

<!--<img src="https://allurereport.org/public/img/allure-report.svg" alt="Allure Report logo" style="float: right" />-->
[<img src="https://allurereport.org/public/img/allure-report.svg" height="85px" alt="Allure Report logo" align="right" />](https://allurereport.org "Allure Report")

@@ -8,0 +8,0 @@ - Learn more about Allure Report at https://allurereport.org

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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