Socket
Socket
Sign inDemoInstall

@cucumber/gherkin-utils

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cucumber/gherkin-utils - npm Package Compare versions

Comparing version 2.1.1 to 3.0.0

3

.eslintrc.json

@@ -13,2 +13,3 @@ {

"react",
"import",
"node",

@@ -20,2 +21,3 @@ "@typescript-eslint"

"plugin:react/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",

@@ -26,2 +28,3 @@ "plugin:@typescript-eslint/recommended",

"rules": {
"import/no-cycle": "error",
"node/no-extraneous-import": "error",

@@ -28,0 +31,0 @@ "@typescript-eslint/ban-ts-ignore": "off",

9

dist/test/messageTest.js

@@ -54,3 +54,4 @@ "use strict";

var messages_1 = require("@cucumber/messages");
var stream_1 = require("stream");
var stream_1 = require("@cucumber/messages/dist/src/stream");
var stream_2 = require("stream");
var src_1 = require("../src");

@@ -60,3 +61,3 @@ var fs_1 = __importDefault(require("fs"));

var util_1 = require("util");
var asyncPipeline = util_1.promisify(stream_1.pipeline);
var asyncPipeline = util_1.promisify(stream_2.pipeline);
describe('Walking with messages', function () {

@@ -73,4 +74,4 @@ var e_1, _a;

case 0:
messageStream = new messages_1.NdjsonToMessageStream(messages_1.messages.Envelope.fromObject.bind(messages_1.messages.Envelope));
return [4 /*yield*/, asyncPipeline(fs_1.default.createReadStream(messageFile, 'utf-8'), messageStream, new stream_1.Writable({
messageStream = new stream_1.NdjsonToMessageStream(messages_1.messages.Envelope.fromObject.bind(messages_1.messages.Envelope));
return [4 /*yield*/, asyncPipeline(fs_1.default.createReadStream(messageFile, 'utf-8'), messageStream, new stream_2.Writable({
objectMode: true,

@@ -77,0 +78,0 @@ write: function (envelope, _encoding, callback) {

@@ -42,3 +42,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var gherkin_1 = require("@cucumber/gherkin");
var GherkinStreams_1 = __importDefault(require("@cucumber/gherkin/dist/src/stream/GherkinStreams"));
var messages_1 = require("@cucumber/messages");

@@ -240,5 +240,5 @@ var stream_1 = require("stream");

var newId = messages_1.IdGenerator.incrementing();
return gherkin_1.GherkinStreams.fromSources([source], { newId: newId });
return GherkinStreams_1.default.fromSources([source], { newId: newId });
}
});
//# sourceMappingURL=QueryTest.js.map
{
"name": "@cucumber/gherkin-utils",
"version": "2.1.1",
"version": "3.0.0",
"description": "Various Gherkin utilities",

@@ -30,14 +30,15 @@ "main": "dist/src/index.js",

"devDependencies": {
"@cucumber/gherkin": "^16.0.0",
"@cucumber/gherkin": "^17.0.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.13",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.9.1",
"core-js": "^3.8.1",
"eslint": "^7.15.0",
"eslint-config-prettier": "^7.0.0",
"@types/node": "^14.14.25",
"@typescript-eslint/eslint-plugin": "^4.14.2",
"@typescript-eslint/parser": "^4.14.2",
"core-js": "^3.8.3",
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.2.0",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"glob": "^7.1.6",

@@ -51,4 +52,4 @@ "mocha": "^8.2.1",

"dependencies": {
"@cucumber/messages": "^13.2.1",
"@teppeis/multimaps": "^1.1.0"
"@cucumber/messages": "^14.0.0",
"@teppeis/multimaps": "^2.0.0"
},

@@ -55,0 +56,0 @@ "directories": {

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

import { NdjsonToMessageStream, messages } from '@cucumber/messages'
import { messages } from '@cucumber/messages'
import { NdjsonToMessageStream } from '@cucumber/messages/dist/src/stream'
import { Writable, pipeline } from 'stream'

@@ -3,0 +4,0 @@

@@ -1,2 +0,2 @@

import { GherkinStreams } from '@cucumber/gherkin'
import GherkinStreams from '@cucumber/gherkin/dist/src/stream/GherkinStreams'
import { IdGenerator, messages } from '@cucumber/messages'

@@ -3,0 +3,0 @@ import { pipeline, Readable, Writable } from 'stream'

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