Socket
Socket
Sign inDemoInstall

gherkin

Package Overview
Dependencies
Maintainers
3
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gherkin - npm Package Compare versions

Comparing version 5.0.1 to 5.1.0

.github/ISSUE_TEMPLATE.md

54

lib/gherkin/gherkin-languages.json

@@ -84,2 +84,47 @@ {

},
"an": {
"and": [
"* ",
"Y ",
"E "
],
"background": [
"Antecedents"
],
"but": [
"* ",
"Pero "
],
"examples": [
"Eixemplos"
],
"feature": [
"Caracteristica"
],
"given": [
"* ",
"Dau ",
"Dada ",
"Daus ",
"Dadas "
],
"name": "Aragonese",
"native": "Aragonés",
"scenario": [
"Caso"
],
"scenarioOutline": [
"Esquema del caso"
],
"then": [
"* ",
"Alavez ",
"Allora ",
"Antonces "
],
"when": [
"* ",
"Cuan "
]
},
"ar": {

@@ -2389,3 +2434,4 @@ "and": [

"Но ",
"А "
"А ",
"Иначе "
],

@@ -2405,4 +2451,3 @@ "examples": [

"Дано ",
"Пусть ",
"Если "
"Пусть "
],

@@ -2425,3 +2470,4 @@ "name": "Russian",

"* ",
"Когда "
"Когда ",
"Если "
]

@@ -2428,0 +2474,0 @@ },

10

lib/gherkin/pickles/compiler.js

@@ -103,4 +103,7 @@ var countSymbols = require('../count_symbols');

location: pickleLocation(argument.location),
content: interpolate(argument.content, variableCells, valueCells)
content: interpolate(argument.content, variableCells, valueCells),
};
if(argument.contentType) {
docString.contentType = interpolate(argument.contentType, variableCells, valueCells);
}
result.push(docString);

@@ -117,3 +120,6 @@ } else {

var search = new RegExp('<' + variableCell.value + '>', 'g');
name = name.replace(search, valueCell.value);
// JS Specific - dollar sign needs to be escaped with another dollar sign
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter
var replacement = valueCell.value.replace(new RegExp('\\$', 'g'), '$$$$')
name = name.replace(search, replacement);
});

@@ -120,0 +126,0 @@ return name;

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

'use strict'
const Stream = require('stream')

@@ -2,0 +4,0 @@ const generateEvents = require('../generate_events')

{
"name": "gherkin",
"version": "5.0.1",
"version": "5.1.0",
"description": "Gherkin parser",

@@ -5,0 +5,0 @@ "main": "index.js",

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 too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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