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.11.1 to 2.12.0

2

dist/index.d.ts

@@ -12,4 +12,4 @@ export { AllureRuntime } from "./src/AllureRuntime";

export { AttachmentOptions, MetadataMessage, Attachment, Category, ExecutableItem, StepResult, Parameter, StatusDetails, Link, Label, ExecutorInfo, TestResultContainer, FixtureResult, TestResult, ContentType, LabelName, Severity, Stage, Status, LinkType, ParameterOptions, StepMetadata, AttachmentMetadata, ImageDiffAttachment } from "./src/model";
export { allureIdRegexp, allureIdRegexpGlobal, allureLabelRegexp, allureLabelRegexpGlobal, allureReportFolder, escapeRegExp, getLabelsFromEnv, getStatusFromError, getSuitesLabels, isAnyStepFailed, md5, readImageAsBase64, serialize, stripAscii } from "./src/utils";
export { allureIdRegexp, allureIdRegexpGlobal, allureLabelRegexp, allureLabelRegexpGlobal, allureReportFolder, escapeRegExp, getLabelsFromEnv, getStatusFromError, getSuitesLabels, isAnyStepFailed, md5, readImageAsBase64, serialize, stripAscii, extractMetadataFromString } from "./src/utils";
export { AllureRuntimeApiInterface } from "./src/framework";
export { TestPlanV1, parseTestPlan } from "./src/testplan";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseTestPlan = exports.stripAscii = exports.serialize = exports.readImageAsBase64 = exports.md5 = exports.isAnyStepFailed = exports.getSuitesLabels = exports.getStatusFromError = exports.getLabelsFromEnv = exports.escapeRegExp = exports.allureReportFolder = exports.allureLabelRegexpGlobal = exports.allureLabelRegexp = exports.allureIdRegexpGlobal = exports.allureIdRegexp = exports.LinkType = exports.Status = exports.Stage = exports.Severity = exports.LabelName = exports.ContentType = exports.AllureCommandStepExecutable = exports.Allure = exports.isPromise = exports.AllureStep = exports.AllureTest = exports.ExecutableItemWrapper = exports.AllureGroup = exports.MessageAllureWriter = exports.FileSystemAllureWriter = exports.InMemoryAllureWriter = exports.typeToExtension = exports.AllureRuntime = void 0;
exports.parseTestPlan = exports.extractMetadataFromString = exports.stripAscii = exports.serialize = exports.readImageAsBase64 = exports.md5 = exports.isAnyStepFailed = exports.getSuitesLabels = exports.getStatusFromError = exports.getLabelsFromEnv = exports.escapeRegExp = exports.allureReportFolder = exports.allureLabelRegexpGlobal = exports.allureLabelRegexp = exports.allureIdRegexpGlobal = exports.allureIdRegexp = exports.LinkType = exports.Status = exports.Stage = exports.Severity = exports.LabelName = exports.ContentType = exports.AllureCommandStepExecutable = exports.Allure = exports.isPromise = exports.AllureStep = exports.AllureTest = exports.ExecutableItemWrapper = exports.AllureGroup = exports.MessageAllureWriter = exports.FileSystemAllureWriter = exports.InMemoryAllureWriter = exports.typeToExtension = exports.AllureRuntime = void 0;
var AllureRuntime_1 = require("./src/AllureRuntime");

@@ -47,4 +47,5 @@ Object.defineProperty(exports, "AllureRuntime", { enumerable: true, get: function () { return AllureRuntime_1.AllureRuntime; } });

Object.defineProperty(exports, "stripAscii", { enumerable: true, get: function () { return utils_1.stripAscii; } });
Object.defineProperty(exports, "extractMetadataFromString", { enumerable: true, get: function () { return utils_1.extractMetadataFromString; } });
var testplan_1 = require("./src/testplan");
Object.defineProperty(exports, "parseTestPlan", { enumerable: true, get: function () { return testplan_1.parseTestPlan; } });
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

export { ALLURE_METADATA_CONTENT_TYPE, ALLURE_IMAGEDIFF_CONTENT_TYPE } from "./src/model";
export { ALLURE_SKIPPED_BY_TEST_PLAN_LABEL, ALLURE_METADATA_CONTENT_TYPE, ALLURE_IMAGEDIFF_CONTENT_TYPE } from "./src/model";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ALLURE_IMAGEDIFF_CONTENT_TYPE = exports.ALLURE_METADATA_CONTENT_TYPE = void 0;
exports.ALLURE_IMAGEDIFF_CONTENT_TYPE = exports.ALLURE_METADATA_CONTENT_TYPE = exports.ALLURE_SKIPPED_BY_TEST_PLAN_LABEL = void 0;
var model_1 = require("./src/model");
Object.defineProperty(exports, "ALLURE_SKIPPED_BY_TEST_PLAN_LABEL", { enumerable: true, get: function () { return model_1.ALLURE_SKIPPED_BY_TEST_PLAN_LABEL; } });
Object.defineProperty(exports, "ALLURE_METADATA_CONTENT_TYPE", { enumerable: true, get: function () { return model_1.ALLURE_METADATA_CONTENT_TYPE; } });
Object.defineProperty(exports, "ALLURE_IMAGEDIFF_CONTENT_TYPE", { enumerable: true, get: function () { return model_1.ALLURE_IMAGEDIFF_CONTENT_TYPE; } });
//# sourceMappingURL=internal.js.map

@@ -13,4 +13,8 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AllureCommandStepExecutable = void 0;
const strip_ansi_1 = __importDefault(require("strip-ansi"));
const model_1 = require("./model");

@@ -163,4 +167,4 @@ class AllureCommandStepExecutable {

statusDetails: {
message: e.message,
trace: e.trace,
message: (0, strip_ansi_1.default)((e.message || "")),
trace: (0, strip_ansi_1.default)((e.stack || "")),
},

@@ -167,0 +171,0 @@ attachments: this.attachments,

/// <reference types="node" />
export declare const ALLURE_METADATA_CONTENT_TYPE = "application/vnd.allure.metadata+json";
export declare const ALLURE_IMAGEDIFF_CONTENT_TYPE = "application/vnd.allure.image.diff";
export declare const ALLURE_SKIPPED_BY_TEST_PLAN_LABEL = "allure-skipped-by-test-plan";
export interface AttachmentMetadata {

@@ -5,0 +6,0 @@ name: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LinkType = exports.ContentType = exports.Severity = exports.LabelName = exports.Stage = exports.Status = exports.ALLURE_IMAGEDIFF_CONTENT_TYPE = exports.ALLURE_METADATA_CONTENT_TYPE = void 0;
exports.LinkType = exports.ContentType = exports.Severity = exports.LabelName = exports.Stage = exports.Status = exports.ALLURE_SKIPPED_BY_TEST_PLAN_LABEL = exports.ALLURE_IMAGEDIFF_CONTENT_TYPE = exports.ALLURE_METADATA_CONTENT_TYPE = void 0;
exports.ALLURE_METADATA_CONTENT_TYPE = "application/vnd.allure.metadata+json";
exports.ALLURE_IMAGEDIFF_CONTENT_TYPE = "application/vnd.allure.image.diff";
exports.ALLURE_SKIPPED_BY_TEST_PLAN_LABEL = "allure-skipped-by-test-plan";
var Status;

@@ -7,0 +8,0 @@ (function (Status) {

@@ -18,1 +18,5 @@ import { ExecutableItem, Label, Status } from "./model";

export declare const serialize: (val: unknown) => string;
export declare const extractMetadataFromString: (title: string) => {
labels: Label[];
cleanTitle: string;
};

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.serialize = exports.getSuitesLabels = exports.getStatusFromError = exports.allureLabelRegexpGlobal = exports.allureLabelRegexp = exports.allureIdRegexpGlobal = exports.allureIdRegexp = exports.defaultReportFolder = exports.allureReportFolder = exports.stripAscii = exports.readImageAsBase64 = exports.isAllStepsEnded = exports.isAnyStepFailed = exports.escapeRegExp = exports.getLabelsFromEnv = exports.md5 = void 0;
exports.extractMetadataFromString = exports.serialize = exports.getSuitesLabels = exports.getStatusFromError = exports.allureLabelRegexpGlobal = exports.allureLabelRegexp = exports.allureIdRegexpGlobal = exports.allureIdRegexp = exports.defaultReportFolder = exports.allureReportFolder = exports.stripAscii = exports.readImageAsBase64 = exports.isAllStepsEnded = exports.isAnyStepFailed = exports.escapeRegExp = exports.getLabelsFromEnv = exports.md5 = void 0;
const crypto_1 = require("crypto");

@@ -131,2 +131,20 @@ const promises_1 = require("fs/promises");

exports.serialize = serialize;
const extractMetadataFromString = (title) => {
const labels = [];
title.split(" ").forEach((val) => {
var _a, _b;
const idValue = (_b = (_a = val.match(exports.allureIdRegexp)) === null || _a === void 0 ? void 0 : _a.groups) === null || _b === void 0 ? void 0 : _b.id;
if (idValue) {
labels.push({ name: model_1.LabelName.ALLURE_ID, value: idValue });
}
const labelMatch = val.match(exports.allureLabelRegexp);
const { name, value } = (labelMatch === null || labelMatch === void 0 ? void 0 : labelMatch.groups) || {};
if (name && value) {
labels === null || labels === void 0 ? void 0 : labels.push({ name, value });
}
});
const cleanTitle = title.replace(exports.allureLabelRegexpGlobal, "").replace(exports.allureIdRegexpGlobal, "").trim();
return { labels, cleanTitle };
};
exports.extractMetadataFromString = extractMetadataFromString;
//# sourceMappingURL=utils.js.map
{
"name": "allure-js-commons",
"version": "2.11.1",
"version": "2.12.0",
"description": "Allure JS Commons",

@@ -42,3 +42,4 @@ "homepage": "https://allurereport.org/",

"dependencies": {
"properties": "^1.2.1"
"properties": "^1.2.1",
"strip-ansi": "^5.2.0"
},

@@ -54,3 +55,3 @@ "devDependencies": {

"@typescript-eslint/parser": "^6.7.0",
"allure-mocha": "2.11.1",
"allure-mocha": "2.12.0",
"chai": "^4.3.8",

@@ -60,3 +61,3 @@ "eslint": "^8.49.0",

"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsdoc": "^46.6.0",
"eslint-plugin-jsdoc": "^48.0.0",
"eslint-plugin-no-null": "^1.0.2",

@@ -63,0 +64,0 @@ "eslint-plugin-prefer-arrow": "^1.2.3",

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