🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@cucumber/html-formatter

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cucumber/html-formatter - npm Package Compare versions

Comparing version

to
21.6.0

dist/src/index.d.ts

6

dist/package.json
{
"name": "@cucumber/html-formatter",
"version": "21.5.0",
"version": "21.6.0",
"description": "HTML formatter for Cucumber",
"main": "dist/src/CucumberHtmlStream.js",
"types": "dist/src/CucumberHtmlStream.d.ts",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

import * as messages from '@cucumber/messages';
import { Transform, TransformCallback } from 'stream';
export default class CucumberHtmlStream extends Transform {
export declare class CucumberHtmlStream extends Transform {
private readonly cssPath;

@@ -5,0 +5,0 @@ private readonly jsPath;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.CucumberHtmlStream = void 0;
const fs_1 = __importDefault(require("fs"));

@@ -110,3 +111,3 @@ const stream_1 = require("stream");

}
exports.default = CucumberHtmlStream;
exports.CucumberHtmlStream = CucumberHtmlStream;
//# sourceMappingURL=CucumberHtmlStream.js.map

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

const stream_1 = require("stream");
const CucumberHtmlStream_1 = __importDefault(require("../src/CucumberHtmlStream"));
const src_1 = require("../src");
function canRenderHtml(html) {

@@ -54,3 +54,3 @@ return __awaiter(this, void 0, void 0, function* () {

.on('end', () => resolve(Buffer.concat(chunks).toString()));
(0, stream_1.pipeline)(ndjsonData, toMessageStream, new CucumberHtmlStream_1.default(__dirname + '/../dist/main.css', __dirname + '/../dist/main.js'), out, (err) => {
(0, stream_1.pipeline)(ndjsonData, toMessageStream, new src_1.CucumberHtmlStream(__dirname + '/../dist/main.css', __dirname + '/../dist/main.js'), out, (err) => {
if (err) {

@@ -57,0 +57,0 @@ reject(err);

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

const stream_1 = require("stream");
const CucumberHtmlStream_1 = __importDefault(require("../src/CucumberHtmlStream"));
const src_1 = require("../src");
function renderAsHtml(...envelopes) {

@@ -30,3 +30,3 @@ return __awaiter(this, void 0, void 0, function* () {

sink.on('finish', () => resolve(html));
const cucumberHtmlStream = new CucumberHtmlStream_1.default(`${__dirname}/dummy.css`, `${__dirname}/dummy.js`);
const cucumberHtmlStream = new src_1.CucumberHtmlStream(`${__dirname}/dummy.css`, `${__dirname}/dummy.js`);
cucumberHtmlStream.on('error', reject);

@@ -33,0 +33,0 @@ cucumberHtmlStream.pipe(sink);

{
"name": "@cucumber/html-formatter",
"version": "21.5.0",
"version": "21.6.0",
"description": "HTML formatter for Cucumber",
"main": "dist/src/CucumberHtmlStream.js",
"types": "dist/src/CucumberHtmlStream.d.ts",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -5,3 +5,3 @@ import * as messages from '@cucumber/messages'

export default class CucumberHtmlStream extends Transform {
export class CucumberHtmlStream extends Transform {
private template: string | null = null

@@ -8,0 +8,0 @@ private preMessageWritten = false

@@ -9,3 +9,3 @@ import { NdjsonToMessageStream } from '@cucumber/message-streams'

import CucumberHtmlStream from '../src/CucumberHtmlStream'
import { CucumberHtmlStream } from '../src'

@@ -12,0 +12,0 @@ async function canRenderHtml(html: string): Promise<boolean> {

@@ -5,3 +5,3 @@ import * as messages from '@cucumber/messages'

import CucumberHtmlStream from '../src/CucumberHtmlStream'
import { CucumberHtmlStream } from '../src'

@@ -8,0 +8,0 @@ async function renderAsHtml(

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