Comparing version 5.0.1 to 5.1.0
@@ -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 @@ }, |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
4
437721
30
13192