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

@cucumber/gherkin

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cucumber/gherkin - npm Package Compare versions

Comparing version 14.0.2 to 14.1.0

20

dist/package.json
{
"name": "@cucumber/gherkin",
"version": "14.0.2",
"version": "14.1.0",
"description": "Gherkin parser",

@@ -33,11 +33,11 @@ "main": "dist/src/index.js",

"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.14",
"@typescript-eslint/eslint-plugin": "^3.4.0",
"@typescript-eslint/parser": "^3.4.0",
"eslint": "^7.3.1",
"@types/mocha": "^8.0.0",
"@types/node": "^14.0.27",
"@typescript-eslint/eslint-plugin": "^3.7.1",
"@typescript-eslint/parser": "^3.7.1",
"eslint": "^7.5.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.1",
"eslint-plugin-react": "^7.20.5",
"json-schema": "^0.2.5",

@@ -48,8 +48,8 @@ "mocha": "^8.0.1",

"ts-node": "^8.10.2",
"typescript": "^3.9.5"
"typescript": "^3.9.7"
},
"dependencies": {
"@cucumber/messages": "^12.2.0",
"@cucumber/messages": "^12.3.2",
"@teppeis/multimaps": "^1.1.0",
"commander": "^5.1.0",
"commander": "^6.0.0",
"source-map-support": "^0.5.19"

@@ -56,0 +56,0 @@ },

@@ -7,3 +7,3 @@ import { messages } from '@cucumber/messages';

constructor(message: string);
protected static _create<T>(location: messages.ILocation, message: string): GherkinException;
protected static _create<T>(message: string, location?: messages.ILocation): GherkinException;
}

@@ -26,4 +26,4 @@ export declare class ParserException extends GherkinException {

export declare class NoSuchLanguageException extends GherkinException {
static create(language: string, location: messages.ILocation): GherkinException;
static create(language: string, location?: messages.ILocation): GherkinException;
}
export {};

@@ -37,5 +37,6 @@ "use strict";

}
GherkinException._create = function (location, message) {
var column = location.column || 0;
var m = "(" + location.line + ":" + column + "): " + message;
GherkinException._create = function (message, location) {
var column = location != null ? location.column || 0 : -1;
var line = location != null ? location.line || 0 : -1;
var m = "(" + line + ":" + column + "): " + message;
var err = new this(m);

@@ -82,3 +83,3 @@ err.location = location;

var location = tokenLocation(token);
return this._create(location, message);
return this._create(message, location);
};

@@ -96,3 +97,3 @@ return UnexpectedTokenException;

var location = tokenLocation(token);
return this._create(location, message);
return this._create(message, location);
};

@@ -108,3 +109,3 @@ return UnexpectedEOFException;

AstBuilderException.create = function (message, location) {
return this._create(location, message);
return this._create(message, location);
};

@@ -121,3 +122,3 @@ return AstBuilderException;

var message = 'Language not supported: ' + language;
return this._create(location, message);
return this._create(message, location);
};

@@ -124,0 +125,0 @@ return NoSuchLanguageException;

{
"name": "@cucumber/gherkin",
"version": "14.0.2",
"version": "14.1.0",
"description": "Gherkin parser",

@@ -33,11 +33,11 @@ "main": "dist/src/index.js",

"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.14",
"@typescript-eslint/eslint-plugin": "^3.4.0",
"@typescript-eslint/parser": "^3.4.0",
"eslint": "^7.3.1",
"@types/mocha": "^8.0.0",
"@types/node": "^14.0.27",
"@typescript-eslint/eslint-plugin": "^3.7.1",
"@typescript-eslint/parser": "^3.7.1",
"eslint": "^7.5.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.1",
"eslint-plugin-react": "^7.20.5",
"json-schema": "^0.2.5",

@@ -48,8 +48,8 @@ "mocha": "^8.0.1",

"ts-node": "^8.10.2",
"typescript": "^3.9.5"
"typescript": "^3.9.7"
},
"dependencies": {
"@cucumber/messages": "^12.2.0",
"@cucumber/messages": "^12.3.2",
"@teppeis/multimaps": "^1.1.0",
"commander": "^5.1.0",
"commander": "^6.0.0",
"source-map-support": "^0.5.19"

@@ -56,0 +56,0 @@ },

@@ -23,5 +23,6 @@ import { messages } from '@cucumber/messages'

protected static _create<T>(location: messages.ILocation, message: string) {
const column = location.column || 0
const m = `(${location.line}:${column}): ${message}`
protected static _create<T>(message: string, location?: messages.ILocation) {
const column = location != null ? location.column || 0 : -1
const line = location != null ? location.line || 0 : -1
const m = `(${line}:${column}): ${message}`
const err = new this(m)

@@ -58,3 +59,3 @@ err.location = location

return this._create(location, message)
return this._create(message, location)
}

@@ -70,3 +71,3 @@ }

return this._create(location, message)
return this._create(message, location)
}

@@ -77,3 +78,3 @@ }

public static create(message: string, location: messages.ILocation) {
return this._create(location, message)
return this._create(message, location)
}

@@ -83,5 +84,5 @@ }

export class NoSuchLanguageException extends GherkinException {
public static create(language: string, location: messages.ILocation) {
public static create(language: string, location?: messages.ILocation) {
const message = 'Language not supported: ' + language
return this._create(location, message)
return this._create(message, location)
}

@@ -88,0 +89,0 @@ }

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