Socket
Socket
Sign inDemoInstall

gherkin

Package Overview
Dependencies
Maintainers
4
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 7.0.3 to 7.0.4

.idea/codeStyles/codeStyleConfig.xml

6

dist/src/index.d.ts
/// <reference types="node" />
import { messages } from 'cucumber-messages';
import { Transform } from 'stream';
declare function fromPaths(paths: string[], options?: IGherkinOptions): Transform;
declare function fromSources(sources: messages.Source[], options?: IGherkinOptions): Transform;
import { Readable } from 'stream';
declare function fromPaths(paths: string[], options?: IGherkinOptions): Readable;
declare function fromSources(sources: messages.Source[], options?: IGherkinOptions): Readable;
declare function dialects(): {

@@ -7,0 +7,0 @@ [key: string]: Dialect;

@@ -13,6 +13,6 @@ "use strict";

};
var __values = (this && this.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
return {
if (o && typeof o.length === "number") return {
next: function () {

@@ -23,2 +23,3 @@ if (o && i >= o.length) o = void 0;

};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};

@@ -55,3 +56,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

this.options = options;
this.options = __assign({}, defaultOptions, options);
this.options = __assign(__assign({}, defaultOptions), options);
var executables = __dirname + "/../../executables";

@@ -64,4 +65,6 @@ try {

executables = __dirname + "/../executables";
fs_1.statSync(executables);
}
this.exeFile = new c21e_1.ExeFile(executables + "/gherkin-{{.OS}}-{{.Arch}}{{.Ext}}");
fs_1.statSync(this.exeFile.fileName);
}

@@ -94,4 +97,4 @@ Gherkin.prototype.dialects = function () {

var source = _c.value;
var wrapper = cucumber_messages_1.messages.Envelope.fromObject({ source: source });
gherkin.stdin.write(cucumber_messages_1.messages.Envelope.encodeDelimited(wrapper).finish());
var envelope = cucumber_messages_1.messages.Envelope.fromObject({ source: source });
gherkin.stdin.write(cucumber_messages_1.messages.Envelope.encodeDelimited(envelope).finish());
}

@@ -98,0 +101,0 @@ }

{
"name": "gherkin",
"version": "7.0.3",
"version": "7.0.4",
"description": "Gherkin parser",

@@ -34,3 +34,3 @@ "main": "dist/src/index.js",

"@types/mocha": "^5.2.7",
"@types/node": "^12.7.1",
"@types/node": "^12.7.2",
"mocha": "^6.2.0",

@@ -40,11 +40,11 @@ "nyc": "^14.1.1",

"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1",
"typescript": "^3.5.3"
"typescript": "^3.6.2"
},
"dependencies": {
"c21e": "2.0.0",
"cucumber-messages": "4.0.0"
"cucumber-messages": "5.0.1"
}
}

@@ -5,3 +5,3 @@ import { spawn, spawnSync } from 'child_process'

import { messages, ProtobufMessageStream } from 'cucumber-messages'
import { Transform } from 'stream'
import { Readable } from 'stream'

@@ -70,2 +70,3 @@ const defaultOptions = {

executables = `${__dirname}/../executables`
statSync(executables)
}

@@ -75,2 +76,3 @@ this.exeFile = new ExeFile(

)
statSync(this.exeFile.fileName)
}

@@ -83,3 +85,3 @@

public messageStream(): Transform {
public messageStream(): Readable {
const options = ['--default-dialect', this.options.defaultDialect]

@@ -105,4 +107,4 @@ if (!this.options.includeSource) {

for (const source of this.sources) {
const wrapper = messages.Envelope.fromObject({ source })
gherkin.stdin.write(messages.Envelope.encodeDelimited(wrapper).finish())
const envelope = messages.Envelope.fromObject({ source })
gherkin.stdin.write(messages.Envelope.encodeDelimited(envelope).finish())
}

@@ -109,0 +111,0 @@ gherkin.stdin.end()

@@ -15,2 +15,4 @@ {

"allowJs": false,
"jsx": "react",
"resolveJsonModule": true,
"module": "commonjs",

@@ -21,3 +23,4 @@ "esModuleInterop": true,

"outDir": "dist",
"downlevelIteration": true
"downlevelIteration": true,
"skipLibCheck": true
},

@@ -24,0 +27,0 @@ "include": [

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 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 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 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 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 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 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 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