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

allure-js-commons

Package Overview
Dependencies
Maintainers
1
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 1.3.0 to 1.3.1

.editorconfig

21

index.js

@@ -56,5 +56,11 @@ 'use strict';

suite = this.getCurrentSuite();
if (!suite || !suite.currentStep) {
console.warn('allure-js-commons: Unexpected startStep() of ' + stepName + '. There is no parent step');
return;
}
step.parent = suite.currentStep;
step.parent.addStep(step);
suite.currentStep = step;
};

@@ -64,6 +70,7 @@

var suite = this.getCurrentSuite();
if(!(suite.currentStep instanceof Step)) {
console.warn('allure-js-commons: Unexpected endStep(). There is no any steps running');
if (!suite || !(suite.currentStep instanceof Step)) {
console.warn('allure-js-commons: Unexpected endStep(). There are no any steps running');
return;
}
suite.currentStep.end(status, timestamp);

@@ -80,4 +87,10 @@ suite.currentStep = suite.currentStep.parent;

name = writer.writeBuffer(this.options.targetDir, buffer, info.ext),
attachment = new Attachment(attachmentName, name, buffer.length, info.mime);
this.getCurrentSuite().currentStep.addAttachment(attachment);
attachment = new Attachment(attachmentName, name, buffer.length, info.mime),
currentStep = this.getCurrentSuite().currentStep;
if (currentStep) {
currentStep.addAttachment(attachment);
} else {
console.warn('Trying to add attachment ' + attachmentName + ' to non-existent step');
}
};

@@ -84,0 +97,0 @@

2

package.json
{
"name": "allure-js-commons",
"version": "1.3.0",
"version": "1.3.1",
"description": "Common helper for writing plugins to allure-framework",

@@ -5,0 +5,0 @@ "main": "index.js",

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