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

prettier-plugin-gherkin

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-gherkin - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

example.feature

0

dist/GherkinAST/index.js

@@ -0,0 +0,0 @@ export function isWithLocation(node) {

4

dist/index.js

@@ -336,3 +336,3 @@ import { Parser as GherkinParser, AstBuilder, GherkinClassicTokenMatcher, } from '@cucumber/gherkin';

else if (node instanceof TypedBackground) {
// console.log(node.steps);
// console.log(node);
return [

@@ -345,3 +345,3 @@ printNodeHeading(node),

// @ts-expect-error TODO path should be recognized as an AstPath<TypedBackground>
path.map(print, 'steps'),
join(printHardline(), path.map(print, 'steps')),
])

@@ -348,0 +348,0 @@ : '',

{
"name": "prettier-plugin-gherkin",
"version": "2.4.0",
"version": "2.4.1",
"type": "module",

@@ -5,0 +5,0 @@ "description": "This prettier plugin format your gherkin (`.feature` files) documents.",

export default {
trailingComma: 'es5',
singleQuote: true,
};
};

@@ -151,3 +151,3 @@ # prettier-plugin-gherkin

![Gherkin AST schema](https://github.com/cucumber/gherkin/blob/main/docs/ast.png?raw=true)
![Gherkin AST schema](https://github.com/cucumber/gherkin?tab=readme-ov-file#abstract-syntax-tree-ast)

@@ -154,0 +154,0 @@ ### Useful resources on Gherkin language

@@ -535,3 +535,3 @@ import {

} else if (node instanceof TypedBackground) {
// console.log(node.steps);
// console.log(node);
return [

@@ -544,3 +544,3 @@ printNodeHeading(node),

// @ts-expect-error TODO path should be recognized as an AstPath<TypedBackground>
path.map(print, 'steps'),
join(printHardline(), path.map(print, 'steps')),
])

@@ -547,0 +547,0 @@ : '',

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