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

@e2y/bdd-dictionary-generator

Package Overview
Dependencies
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@e2y/bdd-dictionary-generator - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

79

lib/index.js
#!/usr/bin/env node
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const yargs_1 = __importDefault(require("yargs"));
const Dictionary_1 = require("./src/Dictionary");
const MarkdownGenerator_1 = require("./src/markdown_generator/MarkdownGenerator");
const options = yargs_1.default
.scriptName('bdd-dictionary-generator')
.usage('Usage: $0 [options]')
.example('$0 -p ./step-definitions', 'Creates a Markdown dictionary in the current directory containing the definitions defined in the given path')
.options({
f: {
alias: 'format',
default: 'markdown',
defaultDescription: 'Markdown',
demandOption: false,
describe: 'Output format: [Markdown, JSON]',
type: 'string'
},
o: {
alias: 'output',
default: './dictionary',
defaultDescription: 'Current directory',
demandOption: false,
describe: 'Path where the dictionary will be created',
type: 'string'
},
p: {
alias: 'path',
default: '.',
defaultDescription: 'Current directory',
demandOption: false,
describe: 'Directory path containing the step definition files',
type: 'string'
}
}).argv;
const dictionary = new Dictionary_1.Dictionary(options.p);
import yargs from 'yargs';
import { Dictionary } from './src/Dictionary';
import { MarkdownGenerator } from './src/markdown_generator/MarkdownGenerator';
const [options] = await Promise.all([
yargs
.scriptName('bdd-dictionary-generator')
.usage('Usage: $0 [options]')
.example('$0 -p ./step-definitions', 'Creates a Markdown dictionary in the current directory containing the definitions defined in the given path')
.options({
f: {
alias: 'format',
default: 'markdown',
defaultDescription: 'Markdown',
demandOption: false,
describe: 'Output format: [Markdown, JSON]',
type: 'string'
},
o: {
alias: 'output',
default: './dictionary',
defaultDescription: 'Current directory',
demandOption: false,
describe: 'Path where the dictionary will be created',
type: 'string'
},
p: {
alias: 'path',
default: '.',
defaultDescription: 'Current directory',
demandOption: false,
describe: 'Directory path containing the step definition files',
type: 'string'
}
}).argv
]);
const dictionary = new Dictionary(options.p);
switch (options.f.toLowerCase()) {
case 'markdown':
MarkdownGenerator_1.MarkdownGenerator.write(dictionary, options.o);
MarkdownGenerator.write(dictionary, options.o);
break;

@@ -52,2 +49,2 @@ case 'json':

console.info('✅ The dictionary was generated successfully!');
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFFQSxrREFBMEI7QUFFMUIsaURBQThDO0FBQzlDLGtGQUErRTtBQUUvRSxNQUFNLE9BQU8sR0FBRyxlQUFLO0tBQ2xCLFVBQVUsQ0FBQywwQkFBMEIsQ0FBQztLQUN0QyxLQUFLLENBQUMscUJBQXFCLENBQUM7S0FDNUIsT0FBTyxDQUNOLDBCQUEwQixFQUMxQiw2R0FBNkcsQ0FDOUc7S0FDQSxPQUFPLENBQUM7SUFDUCxDQUFDLEVBQUU7UUFDRCxLQUFLLEVBQUUsUUFBUTtRQUNmLE9BQU8sRUFBRSxVQUFVO1FBQ25CLGtCQUFrQixFQUFFLFVBQVU7UUFDOUIsWUFBWSxFQUFFLEtBQUs7UUFDbkIsUUFBUSxFQUFFLGlDQUFpQztRQUMzQyxJQUFJLEVBQUUsUUFBUTtLQUNmO0lBQ0QsQ0FBQyxFQUFFO1FBQ0QsS0FBSyxFQUFFLFFBQVE7UUFDZixPQUFPLEVBQUUsY0FBYztRQUN2QixrQkFBa0IsRUFBRSxtQkFBbUI7UUFDdkMsWUFBWSxFQUFFLEtBQUs7UUFDbkIsUUFBUSxFQUFFLDJDQUEyQztRQUNyRCxJQUFJLEVBQUUsUUFBUTtLQUNmO0lBQ0QsQ0FBQyxFQU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UFBRSxFQUFFO0lBQy9CLEtBQUssVUFBVTtRQUNiLGlCQUFpQixDQUFDLEtBQUssQ0FBQyxVQUFVLEVBQUUsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQy9DLE1BQU07SUFDUixLQUFLLE1BQU07UUFDVCxPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsVUFBVSxDQUFDLFNBQVMsRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUM1RCxNQUFNO0lBQ1I7UUFDRSxNQUFNLElBQUksS0FBSyxDQUFDLHdEQUF3RCxDQUFDLENBQUM7Q0FDN0U7QUFFRCxPQUFPLENBQUMsSUFBSSxDQUFDLCtDQUErQyxDQUFDLENBQUMifQ==

@@ -1,9 +0,11 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Dictionary = void 0;
const fs_1 = require("fs");
const path_1 = require("path");
class Dictionary {
import { readdirSync, readFileSync } from 'fs';
import { isAbsolute, relative, resolve } from 'path';
export class Dictionary {
static PARAMETERS_MATCHER = /(?:(?<=\()(?:[\w:\s*],?)*\)?(?=\)\s=>)|(?<=function\s*\()(?:[\w:\s*],?)*\)?(?=\)))/;
static PATTERN_MATCHER = /(?<=\((?:\s*["']|\/\^))(?:.*)(?=(?:["']|\$\/),)/;
static STEP_DEFINITION_MATCHER = /(?:Given|When|Then)\(\s?.*,\s*?(\{.*},)?\s*(?:async\s)?((function\s\((?:[\w:\s+],?)*\))|(\((?:[\w:\s+],?)*\)\s+=>))(?=\s+{|\s+)/gm;
static STEP_TYPE_MATCHER = /^(?:Given|When|Then)/;
_directory;
_stepFiles = [];
constructor(stepsDir) {
this._stepFiles = [];
this._directory = Dictionary.convertAbsolute(stepsDir);

@@ -19,3 +21,3 @@ this.readDir(this._directory);

static convertAbsolute(path) {
return path_1.isAbsolute(path) ? path : path_1.resolve(process.cwd(), path);
return isAbsolute(path) ? path : resolve(process.cwd(), path);
}

@@ -26,4 +28,3 @@ static filterFolders(entries) {

static getParameters(step) {
var _a;
const parameters = (_a = Dictionary.PARAMETERS_MATCHER.exec(step)) === null || _a === void 0 ? void 0 : _a.toString();
const parameters = Dictionary.PARAMETERS_MATCHER.exec(step)?.toString();
if (!parameters) {

@@ -35,4 +36,3 @@ return;

static getPattern(step) {
var _a;
const pattern = (_a = Dictionary.PATTERN_MATCHER.exec(step)) === null || _a === void 0 ? void 0 : _a.toString();
const pattern = Dictionary.PATTERN_MATCHER.exec(step)?.toString();
if (!pattern) {

@@ -44,5 +44,6 @@ throw new Error(`The step "${step}" does not contain any pattern`);

static getStepDefinitions(file) {
var _a;
return (((_a = fs_1.readFileSync(file, { encoding: 'utf8' })
.match(Dictionary.STEP_DEFINITION_MATCHER)) === null || _a === void 0 ? void 0 : _a.sort().map((step) => {
return (readFileSync(file, { encoding: 'utf8' })
.match(Dictionary.STEP_DEFINITION_MATCHER)
?.sort()
.map((step) => {
step = step.replace(/\s\s+/g, '').replace(/\n/g, '');

@@ -54,7 +55,6 @@ return {

};
})) || []);
}) || []);
}
static getType(step) {
var _a;
const type = (_a = Dictionary.STEP_TYPE_MATCHER.exec(step)) === null || _a === void 0 ? void 0 : _a.toString();
const type = Dictionary.STEP_TYPE_MATCHER.exec(step)?.toString();
if (!type) {

@@ -72,3 +72,3 @@ throw new Error(`The step "${step}" does not contain any type "Given, When or Then"`);

readDir(path) {
const entries = fs_1.readdirSync(path, { withFileTypes: true });
const entries = readdirSync(path, { withFileTypes: true });
const files = this.filterFiles(path, entries);

@@ -85,10 +85,5 @@ const folders = Dictionary.filterFolders(entries);

readFile(file) {
return { steps: Dictionary.getStepDefinitions(file), uri: path_1.relative(this._directory, file) };
return { steps: Dictionary.getStepDefinitions(file), uri: relative(this._directory, file) };
}
}
exports.Dictionary = Dictionary;
Dictionary.PARAMETERS_MATCHER = /(?:(?<=\()(?:[\w:\s*],?)*\)?(?=\)\s=>)|(?<=function\s*\()(?:[\w:\s*],?)*\)?(?=\)))/;
Dictionary.PATTERN_MATCHER = /(?<=\((?:\s*["']|\/\^))(?:.*)(?=(?:["']|\$\/),)/;
Dictionary.STEP_DEFINITION_MATCHER = /(?:Given|When|Then)\(\s?.*,\s*?(\{.*},)?\s*(?:async\s)?((function\s\((?:[\w:\s+],?)*\))|(\((?:[\w:\s+],?)*\)\s+=>))(?=\s+{|\s+)/gm;
Dictionary.STEP_TYPE_MATCHER = /^(?:Given|When|Then)/;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGljdGlvbmFyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9EaWN0aW9uYXJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJCQUF1RDtBQUN2RCwrQkFBcUQ7QUFLckQsTUFBYSxVQUFVO0lBUXJCLFlBQVksUUFBZ0I7UUFGWCxlQUFVLEdBQWUsRUFBRSxDQUFDO1FBRzNDLElBQUksQ0FBQyxVQUFVLEdBQUcsVUFBVSxDQUFDLGVBQWUsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUN2RCxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUNoQyxDQUFDO0lBRUQsSUFBSSxTQUFTO1FBQ1gsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDO0lBQ3pCLENBQUM7SUFFRCxJQUFJLFNBQVM7UUFDWCxPQUFPLElBQUksQ0FBQyxVQUFVLENBQUM7SUFDekIsQ0FBQztJQUVPLE1BQU0sQ0FBQyxlQUFlLENBQUMsSUFBWTtRQUN6QyxPQUFPLGlCQUFVLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsY0FBTyxDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUUsRUFBRSxJQUFJLENBQUMsQ0FBQztJ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FQUFFLEVBQUUsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUVqRSxNQUFNLGtCQUFrQixHQUFHLENBQUMsTUFBYyxFQUFFLEVBQUU7WUFDNUMsTUFBTSxNQUFNLEdBQUcsR0FBRyxJQUFJLElBQUksTUFBTSxDQUFDLElBQUksRUFBRSxDQUFDO1lBQ3hDLEtBQUssQ0FBQyxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUM7UUFDdEMsQ0FBQyxDQUFDO1FBQ0YsT0FBTyxDQUFDLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO1FBRXBDLE9BQU8sS0FBSyxDQUFDO0lBQ2YsQ0FBQztJQUVPLFFBQVEsQ0FBQyxJQUFZO1FBQzNCLE9BQU8sRUFBRSxLQUFLLEVBQUUsVUFBVSxDQUFDLGtCQUFrQixDQUFDLElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxRQUFRLENBQUMsSUFBSSxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsRUFBRSxDQUFDO0lBQzlGLENBQUMifQ==

@@ -1,20 +0,18 @@

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MainPageGenerator = void 0;
const fs_1 = require("fs");
const json2md_1 = __importDefault(require("json2md"));
const path_1 = require("path");
class MainPageGenerator {
import { writeFileSync } from 'fs';
import json2md from 'json2md';
import { extname, resolve } from 'path';
export class MainPageGenerator {
static TITLE = '📚 Dictionary';
static DICTIONARY_DESCRIPTION = `This dictionary provides the essential steps to test your application.`;
static FILENAME = 'README.md';
static STEP_DEFINITION_LIST_HEADER = `📖 Step definitions:`;
static write(filenames, path) {
const content = this.createContent(filenames);
path = path_1.resolve(path, this.FILENAME);
fs_1.writeFileSync(path, content);
path = resolve(path, this.FILENAME);
writeFileSync(path, content);
}
static createContent(filenames) {
const orderStepFilesListAlphabeticallyAsc = (string1, string2) => string1.localeCompare(string2);
const addLinkToStepFile = (file) => `[${file.replace(path_1.extname(file), '')}](${file.replace(path_1.extname(file), '.md')})`;
return json2md_1.default([
const addLinkToStepFile = (file) => `[${file.replace(extname(file), '')}](${file.replace(extname(file), '.md')})`;
return json2md([
{ h1: this.TITLE },

@@ -31,7 +29,2 @@ {

}
exports.MainPageGenerator = MainPageGenerator;
MainPageGenerator.TITLE = '📚 Dictionary';
MainPageGenerator.DICTIONARY_DESCRIPTION = `This dictionary provides the essential steps to test your application.`;
MainPageGenerator.FILENAME = 'README.md';
MainPageGenerator.STEP_DEFINITION_LIST_HEADER = `📖 Step definitions:`;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWFpblBhZ2VHZW5lcmF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbWFya2Rvd25fZ2VuZXJhdG9yL01haW5QYWdlR2VuZXJhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLDJCQUFtQztBQUNuQyxzREFBOEI7QUFDOUIsK0JBQXdDO0FBRXhDLE1BQWEsaUJBQWlCO0lBTXJCLE1BQU0sQ0FBQyxLQUFLLENBQUMsU0FBbUIsRUFBRSxJQUFZO1FBQ25ELE1BQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxhQUFhLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDOUMsSUFBSSxHQUFHLGNBQU8sQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBRXBDLGtCQUFhLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBQy9CLENBQUM7SUFFTyxNQUFNLENBQUMsYUFBYSxDQUFDLFNBQW1CO1FBQzl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FBQyxFQUFFLEVBQUUsQ0FBQyxLQUFLLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFFLEtBQUssQ0FBQyxHQUFHLENBQUM7UUFFaEYsT0FBTyxPQUFPLENBQUM7WUFDYixFQUFFLEVBQUUsRUFBRSxJQUFJLENBQUMsS0FBSyxFQUFFO1lBQ2xCO2dCQUNFLENBQUMsRUFBRSxJQUFJLENBQUMsc0JBQXNCO2FBQy9CO1lBQ0QsRUFBRSxDQUFDLEVBQUUsSUFBSSxDQUFDLDJCQUEyQixFQUFFO1lBQ3ZDO2dCQUNFLEVBQUUsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLElBQUksQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO2FBQ3BGO1NBQ0YsQ0FBQyxDQUFDO0lBQ0wsQ0FBQyJ9

@@ -1,17 +0,13 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MarkdownGenerator = void 0;
const fs_1 = require("fs");
const path_1 = require("path");
const MainPageGenerator_1 = require("./MainPageGenerator");
const StepsPageGenerator_1 = require("./StepsPageGenerator");
class MarkdownGenerator {
import { mkdirSync } from 'fs';
import { resolve } from 'path';
import { MainPageGenerator } from './MainPageGenerator';
import { StepsPageGenerator } from './StepsPageGenerator';
export class MarkdownGenerator {
static write({ stepFiles }, path) {
const stepFilesUris = stepFiles.map(({ uri }) => uri);
fs_1.mkdirSync(path_1.resolve(path), { recursive: true });
MainPageGenerator_1.MainPageGenerator.write(stepFilesUris, path);
StepsPageGenerator_1.StepsPageGenerator.write(stepFiles, path);
mkdirSync(resolve(path), { recursive: true });
MainPageGenerator.write(stepFilesUris, path);
StepsPageGenerator.write(stepFiles, path);
}
}
exports.MarkdownGenerator = MarkdownGenerator;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWFya2Rvd25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QztBQUcvQixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN4RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUUxRCxNQUFNLE9BQU8saUJBQWlCO0lBQ3JCLE1BQU0sQ0FBQyxLQUFLLENBQUMsRUFBRSxTQUFTLEVBQWMsRUFBRSxJQUFZO1FBQ3pELE1BQU0sYUFBYSxHQUFHLFNBQVMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLEdBQUcsRUFBRSxFQUFFLEVBQUUsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUV0RCxTQUFTLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFFLEVBQUUsU0FBUyxFQUFFLElBQUksRUFBRSxDQUFDLENBQUM7UUFFOUMsaUJBQWlCLENBQUMsS0FBSyxDQUFDLGFBQWEsRUFBRSxJQUFJLENBQUMsQ0FBQztRQUM3QyxrQkFBa0IsQ0FBQyxLQUFLLENBQUMsU0FBUyxFQUFFLElBQUksQ0FBQyxDQUFDO0lBQzVDLENBQUM7Q0FDRiJ9

@@ -1,18 +0,12 @@

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StepsPageGenerator = void 0;
const fs_1 = require("fs");
const json2md_1 = __importDefault(require("json2md"));
const path_1 = require("path");
const StepsPageHeaderGenerator_1 = require("./StepsPageHeaderGenerator");
const StepTypeSectionGenerator_1 = require("./StepTypeSectionGenerator");
class StepsPageGenerator {
import { mkdirSync, writeFileSync } from 'fs';
import json2md from 'json2md';
import { dirname, extname, resolve } from 'path';
import { StepsPageHeaderGenerator } from './StepsPageHeaderGenerator';
import { StepTypeSectionGenerator } from './StepTypeSectionGenerator';
export class StepsPageGenerator {
static write(stepFiles, path) {
const writeStepsPage = ({ page, content }) => {
const filepath = path_1.resolve(path, page);
fs_1.mkdirSync(path_1.dirname(filepath), { recursive: true });
fs_1.writeFileSync(filepath, content);
const filepath = resolve(path, page);
mkdirSync(dirname(filepath), { recursive: true });
writeFileSync(filepath, content);
};

@@ -22,3 +16,3 @@ this.createStepsPages(stepFiles).forEach(writeStepsPage);

static createContent({ steps, uri }) {
const header = StepsPageHeaderGenerator_1.StepsPageHeaderGenerator.createContent(uri);
const header = StepsPageHeaderGenerator.createContent(uri);
const description = `${steps.length} steps defined.`;

@@ -29,3 +23,3 @@ const data = [{ h1: header }, { p: description }];

this.pushStepTypeSectionContent('Then', steps, data);
return json2md_1.default(data);
return json2md(data);
}

@@ -37,3 +31,3 @@ static createStepsPage(stepFile) {

content: this.createContent(stepFile),
page: uri.replace(path_1.extname(uri), markdownExt)
page: uri.replace(extname(uri), markdownExt)
};

@@ -52,7 +46,6 @@ }

const h2 = `${emoji} ${stepType}`;
content.push({ h2 }, ...StepTypeSectionGenerator_1.StepTypeSectionGenerator.createContent(filteredSteps));
content.push({ h2 }, ...StepTypeSectionGenerator.createContent(filteredSteps));
}
}
}
exports.StepsPageGenerator = StepsPageGenerator;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RlcHNQYWdlR2VuZXJhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21hcmtkb3duX2dlbmVyYXRvci9TdGVwc1BhZ2VHZW5lcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsMkJBQThDO0FBQzlDLHNEQUE4QjtBQUM5QiwrQkFBaUQ7QUFLakQseUVBQXNFO0FBQ3RFLHlFQUFzRTtBQUl0RSxNQUFhLGtCQUFrQjtJQUN0QixNQUFNLENBQUMsS0FBSyxDQUFDLFNBQXFCLEVBQUUsSUFBWTtRQUNyRCxNQUFNLGNBQWMsR0FBRyxDQUFDLEVBQUUsSUFBSSxFQUFFLE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yxHQUFHLEtBQUssSUFBSSxRQUFRLEVBQUUsQ0FBQztZQUNsQyxPQUFPLENBQUMsSUFBSSxDQUFDLEVBQUUsRUFBRSxFQUFFLEVBQUUsR0FBRyx3QkFBd0IsQ0FBQyxhQUFhLENBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQztTQUNoRjtJQUNILENBQUM7Q0FDRiJ9

@@ -1,12 +0,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StepsPageHeaderGenerator = void 0;
const path_1 = require("path");
class StepsPageHeaderGenerator {
import { extname } from 'path';
export class StepsPageHeaderGenerator {
static createContent(uri) {
const title = uri.replace(path_1.extname(uri), '');
const title = uri.replace(extname(uri), '');
return `📗 ${title}`;
}
}
exports.StepsPageHeaderGenerator = StepsPageHeaderGenerator;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RlcHNQYWdlSGVhZGVyR2VuZXJhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21hcmtkb3duX2dlbmVyYXRvci9TdGVwc1BhZ2VIZWFkZXJHZW5lcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQStCO0FBRS9CLE1BQWEsd0JBQXdCO0lBQzVCLE1BQU0sQ0FBQyxhQUFhLENBQUMsR0FBVztRQUNyQyxNQUFNLEtBQUssR0FBRyxHQUFHLENBQUMsT0FBTyxDQUFDLGNBQU8sQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUU1QyxPQUFPLE1BQU0sS0FBSyxFQUFFLENBQUM7SUFDdkIsQ0FBQztDQUNGO0FBTkQsNERBTUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RlcHNQYWdlSGVhZGVyR2VuZXJhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21hcmtkb3duX2dlbmVyYXRvci9TdGVwc1BhZ2VIZWFkZXJHZW5lcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUUvQixNQUFNLE9BQU8sd0JBQXdCO0lBQzVCLE1BQU0sQ0FBQyxhQUFhLENBQUMsR0FBVztRQUNyQyxNQUFNLEtBQUssR0FBRyxHQUFHLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUU1QyxPQUFPLE1BQU0sS0FBSyxFQUFFLENBQUM7SUFDdkIsQ0FBQztDQUNGIn0=

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StepTypeSectionGenerator = void 0;
class StepTypeSectionGenerator {
export class StepTypeSectionGenerator {
static createContent(steps) {

@@ -22,3 +19,2 @@ return steps.map(({ pattern, parameters }) => {

}
exports.StepTypeSectionGenerator = StepTypeSectionGenerator;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RlcFR5cGVTZWN0aW9uR2VuZXJhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21hcmtkb3duX2dlbmVyYXRvci9TdGVwVHlwZVNlY3Rpb25HZW5lcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBSUEsTUFBYSx3QkFBd0I7SUFDNUIsTUFBTSxDQUFDLGFBQWEsQ0FBQyxLQUF1QjtRQUNqRCxPQUFPLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUFFLE9BQU8sRUFBRSxVQUFVLEVBQUUsRUFBRSxFQUFFO1lBQzNDLE1BQU0sTUFBTSxHQUFHLEtBQUssT0FBTyxFQ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M7SUFDeEQsQ0FBQztDQUNGIn0=

@@ -1,3 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RlcERlZmluaXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90eXBlcy9TdGVwRGVmaW5pdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=

@@ -1,3 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RlcEZpbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90eXBlcy9TdGVwRmlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=

@@ -1,3 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RlcHNQYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHlwZXMvU3RlcHNQYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
{
"name": "@e2y/bdd-dictionary-generator",
"version": "1.0.4",
"version": "1.0.5",
"description": "This package generates a dictionary from our cucumber (or another) step definition collection.",

@@ -12,2 +12,6 @@ "author": "e2y",

},
"engines": {
"node": ">= 18"
},
"engineStrict": true,
"files": [

@@ -32,4 +36,4 @@ "lib"

"dependencies": {
"json2md": "^1.7.1",
"yargs": "^16.0.3"
"json2md": "^2.0.0",
"yargs": "^17.6.0"
},

@@ -39,6 +43,6 @@ "devDependencies": {

"@types/json2md": "^1.5.0",
"@types/yargs": "^15.0.7",
"@types/yargs": "^17",
"fs-mock": "^1.2.1"
},
"gitHead": "9bb5b448423bc2ecd4a237853f03c7be2d61bfe5"
"gitHead": "501c5ebb353a8700da0281191efe02b95db68d46"
}
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