Socket
Socket
Sign inDemoInstall

allure-js-commons

Package Overview
Dependencies
Maintainers
4
Versions
81
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.0.0-beta.12 to 2.0.0-beta.13

2

dist/index.d.ts
export { AllureRuntime } from "./src/AllureRuntime";
export { InMemoryAllureWriter, AllureResults } from "./src/writers";
export { InMemoryAllureWriter, FileSystemAllureWriter, AllureResults } from "./src/writers";
export { AllureConfig } from "./src/AllureConfig";

@@ -4,0 +4,0 @@ export { AllureGroup } from "./src/AllureGroup";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LinkType = exports.Status = exports.Stage = exports.Severity = exports.LabelName = exports.ContentType = exports.Allure = exports.isPromise = exports.AllureStep = exports.AllureTest = exports.ExecutableItemWrapper = exports.AllureGroup = exports.InMemoryAllureWriter = exports.AllureRuntime = void 0;
exports.LinkType = exports.Status = exports.Stage = exports.Severity = exports.LabelName = exports.ContentType = exports.Allure = exports.isPromise = exports.AllureStep = exports.AllureTest = exports.ExecutableItemWrapper = exports.AllureGroup = exports.FileSystemAllureWriter = exports.InMemoryAllureWriter = exports.AllureRuntime = void 0;
var AllureRuntime_1 = require("./src/AllureRuntime");

@@ -8,2 +8,3 @@ Object.defineProperty(exports, "AllureRuntime", { enumerable: true, get: function () { return AllureRuntime_1.AllureRuntime; } });

Object.defineProperty(exports, "InMemoryAllureWriter", { enumerable: true, get: function () { return writers_1.InMemoryAllureWriter; } });
Object.defineProperty(exports, "FileSystemAllureWriter", { enumerable: true, get: function () { return writers_1.FileSystemAllureWriter; } });
var AllureGroup_1 = require("./src/AllureGroup");

@@ -10,0 +11,0 @@ Object.defineProperty(exports, "AllureGroup", { enumerable: true, get: function () { return AllureGroup_1.AllureGroup; } });

@@ -14,5 +14,5 @@ /// <reference types="node" />

writeAttachment(content: Buffer | string, options: ContentType | string | AttachmentOptions): string;
writeAttachmentFromPath(filePath: PathLike, options: ContentType | string | AttachmentOptions): string;
writeAttachmentFromPath(fromPath: PathLike, options: ContentType | string | AttachmentOptions): string;
writeEnvironmentInfo(info?: Record<string, string>): void;
writeCategoriesDefinitions(categories: Category[]): void;
}

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

}
writeAttachmentFromPath(filePath, options) {
writeAttachmentFromPath(fromPath, options) {
const fileName = buildAttachmentFileName(options);
this.writer.writeAttachmentFromPath(fileName, filePath);
this.writer.writeAttachmentFromPath(fromPath, fileName);
return fileName;

@@ -43,0 +43,0 @@ }

@@ -128,2 +128,3 @@ export interface Attachment {

JSON = "application/json",
ZIP = "application/zip",
WEBM = "video/webm",

@@ -130,0 +131,0 @@ JPEG = "image/jpeg"

@@ -59,2 +59,3 @@ "use strict";

ContentType["JSON"] = "application/json";
ContentType["ZIP"] = "application/zip";
ContentType["WEBM"] = "video/webm";

@@ -61,0 +62,0 @@ ContentType["JPEG"] = "image/jpeg";

@@ -8,5 +8,5 @@ /// <reference types="node" />

writeAttachment(name: string, content: Buffer | string): void;
writeAttachmentFromPath(targetFileName: string, sourceFilePath: PathLike): void;
writeAttachmentFromPath(from: PathLike, distFileName: string): void;
writeEnvironmentInfo(info: Record<string, string | undefined>): void;
writeCategoriesDefinitions(categories: Category[]): void;
}

@@ -10,3 +10,3 @@ /// <reference types="node" />

writeAttachment(name: string, content: Buffer | string): void;
writeAttachmentFromPath(targetFileName: string, sourceFilePath: PathLike): void;
writeAttachmentFromPath(from: PathLike, distFileName: string): void;
writeEnvironmentInfo(info?: Record<string, string | undefined>): void;

@@ -13,0 +13,0 @@ writeCategoriesDefinitions(categories: Category[]): void;

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

}
writeAttachmentFromPath(targetFileName, sourceFilePath) {
const path = this.buildPath(targetFileName);
(0, fs_1.copyFileSync)(path, sourceFilePath);
writeAttachmentFromPath(from, distFileName) {
const to = this.buildPath(distFileName);
(0, fs_1.copyFileSync)(from, to);
}

@@ -27,0 +27,0 @@ writeEnvironmentInfo(info) {

@@ -19,3 +19,3 @@ /// <reference types="node" />

writeAttachment(name: string, content: Buffer | string): void;
writeAttachmentFromPath(targetFileName: string, sourceFilePath: PathLike): void;
writeAttachmentFromPath(from: PathLike, toFileName: string): void;
writeCategoriesDefinitions(categories: Category[]): void;

@@ -22,0 +22,0 @@ writeEnvironmentInfo(envInfo?: Record<string, string | undefined>): void;

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

}
writeAttachmentFromPath(targetFileName, sourceFilePath) {
this.attachments[targetFileName] = (0, fs_1.readFileSync)(sourceFilePath);
writeAttachmentFromPath(from, toFileName) {
this.attachments[toFileName] = (0, fs_1.readFileSync)(from);
}

@@ -24,0 +24,0 @@ writeCategoriesDefinitions(categories) {

@@ -28,2 +28,4 @@ "use strict";

return "json";
case model_1.ContentType.ZIP:
return "ZIP";
case model_1.ContentType.WEBM:

@@ -30,0 +32,0 @@ return "webm";

{
"name": "allure-js-commons",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"description": "Allure JS Commons",

@@ -15,10 +15,21 @@ "license": "Apache-2.0",

"compile": "tsc",
"test": "echo 'no tests'"
"test": "nyc ts-node --project test/tsconfig.json test/runner.ts"
},
"devDependencies": {
"@types/chai": "^4.2.21",
"@types/glob": "^7.1.4",
"@types/mkdirp": "^1.0.0",
"@types/mocha": "^9.0.0",
"@types/node": "^16.7.10",
"@types/uuid": "^8.3.0",
"allure-mocha": "2.0.0-beta.13",
"chai": "^4.3.4",
"eslint": "^7.32.0",
"glob": "^7.1.7",
"mocha": "^9.1.1",
"mocha-multi-reporters": "^1.5.1",
"nyc": "^15.1.0",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"ts-node": "^10.2.1",
"typescript": "^4.4.2"

@@ -33,4 +44,3 @@ },

"dist"
],
"stableVersion": "2.0.0-beta.11"
]
}

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