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

@cucumber/messages

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cucumber/messages - npm Package Compare versions

Comparing version 17.0.1 to 17.1.0

12

dist/package.json
{
"name": "@cucumber/messages",
"version": "17.0.1",
"version": "17.1.0",
"description": "JSON schema-based messages for Cucumber's inter-process communication",

@@ -25,8 +25,8 @@ "main": "dist/src/index.js",

"devDependencies": {
"@types/mocha": "8.2.3",
"@types/node": "14.17.5",
"@types/mocha": "9.0.0",
"@types/node": "14.17.14",
"copyfiles": "2.4.1",
"mocha": "9.0.2",
"ts-node": "10.1.0",
"typescript": "4.3.5"
"mocha": "9.1.1",
"ts-node": "10.2.1",
"typescript": "4.4.2"
},

@@ -33,0 +33,0 @@ "bugs": {

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

status: messages_1.TestStepResultStatus.UNKNOWN,
duration: TimeConversion_1.millisecondsToDuration(0),
duration: (0, TimeConversion_1.millisecondsToDuration)(0),
});

@@ -16,0 +16,0 @@ }

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

function uuid() {
return () => uuid_1.v4();
return () => (0, uuid_1.v4)();
}

@@ -9,0 +9,0 @@ exports.uuid = uuid;

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

__decorate([
class_transformer_1.Type(() => Source)
(0, class_transformer_1.Type)(() => Source)
], Attachment.prototype, "source", void 0);

@@ -35,51 +35,51 @@ exports.Attachment = Attachment;

__decorate([
class_transformer_1.Type(() => Attachment)
(0, class_transformer_1.Type)(() => Attachment)
], Envelope.prototype, "attachment", void 0);
__decorate([
class_transformer_1.Type(() => GherkinDocument)
(0, class_transformer_1.Type)(() => GherkinDocument)
], Envelope.prototype, "gherkinDocument", void 0);
__decorate([
class_transformer_1.Type(() => Hook)
(0, class_transformer_1.Type)(() => Hook)
], Envelope.prototype, "hook", void 0);
__decorate([
class_transformer_1.Type(() => Meta)
(0, class_transformer_1.Type)(() => Meta)
], Envelope.prototype, "meta", void 0);
__decorate([
class_transformer_1.Type(() => ParameterType)
(0, class_transformer_1.Type)(() => ParameterType)
], Envelope.prototype, "parameterType", void 0);
__decorate([
class_transformer_1.Type(() => ParseError)
(0, class_transformer_1.Type)(() => ParseError)
], Envelope.prototype, "parseError", void 0);
__decorate([
class_transformer_1.Type(() => Pickle)
(0, class_transformer_1.Type)(() => Pickle)
], Envelope.prototype, "pickle", void 0);
__decorate([
class_transformer_1.Type(() => Source)
(0, class_transformer_1.Type)(() => Source)
], Envelope.prototype, "source", void 0);
__decorate([
class_transformer_1.Type(() => StepDefinition)
(0, class_transformer_1.Type)(() => StepDefinition)
], Envelope.prototype, "stepDefinition", void 0);
__decorate([
class_transformer_1.Type(() => TestCase)
(0, class_transformer_1.Type)(() => TestCase)
], Envelope.prototype, "testCase", void 0);
__decorate([
class_transformer_1.Type(() => TestCaseFinished)
(0, class_transformer_1.Type)(() => TestCaseFinished)
], Envelope.prototype, "testCaseFinished", void 0);
__decorate([
class_transformer_1.Type(() => TestCaseStarted)
(0, class_transformer_1.Type)(() => TestCaseStarted)
], Envelope.prototype, "testCaseStarted", void 0);
__decorate([
class_transformer_1.Type(() => TestRunFinished)
(0, class_transformer_1.Type)(() => TestRunFinished)
], Envelope.prototype, "testRunFinished", void 0);
__decorate([
class_transformer_1.Type(() => TestRunStarted)
(0, class_transformer_1.Type)(() => TestRunStarted)
], Envelope.prototype, "testRunStarted", void 0);
__decorate([
class_transformer_1.Type(() => TestStepFinished)
(0, class_transformer_1.Type)(() => TestStepFinished)
], Envelope.prototype, "testStepFinished", void 0);
__decorate([
class_transformer_1.Type(() => TestStepStarted)
(0, class_transformer_1.Type)(() => TestStepStarted)
], Envelope.prototype, "testStepStarted", void 0);
__decorate([
class_transformer_1.Type(() => UndefinedParameterType)
(0, class_transformer_1.Type)(() => UndefinedParameterType)
], Envelope.prototype, "undefinedParameterType", void 0);

@@ -93,6 +93,6 @@ exports.Envelope = Envelope;

__decorate([
class_transformer_1.Type(() => Feature)
(0, class_transformer_1.Type)(() => Feature)
], GherkinDocument.prototype, "feature", void 0);
__decorate([
class_transformer_1.Type(() => Comment)
(0, class_transformer_1.Type)(() => Comment)
], GherkinDocument.prototype, "comments", void 0);

@@ -111,6 +111,6 @@ exports.GherkinDocument = GherkinDocument;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], Background.prototype, "location", void 0);
__decorate([
class_transformer_1.Type(() => Step)
(0, class_transformer_1.Type)(() => Step)
], Background.prototype, "steps", void 0);

@@ -125,3 +125,3 @@ exports.Background = Background;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], Comment.prototype, "location", void 0);

@@ -136,6 +136,6 @@ exports.Comment = Comment;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], DataTable.prototype, "location", void 0);
__decorate([
class_transformer_1.Type(() => TableRow)
(0, class_transformer_1.Type)(() => TableRow)
], DataTable.prototype, "rows", void 0);

@@ -151,3 +151,3 @@ exports.DataTable = DataTable;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], DocString.prototype, "location", void 0);

@@ -167,12 +167,12 @@ exports.DocString = DocString;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], Examples.prototype, "location", void 0);
__decorate([
class_transformer_1.Type(() => Tag)
(0, class_transformer_1.Type)(() => Tag)
], Examples.prototype, "tags", void 0);
__decorate([
class_transformer_1.Type(() => TableRow)
(0, class_transformer_1.Type)(() => TableRow)
], Examples.prototype, "tableHeader", void 0);
__decorate([
class_transformer_1.Type(() => TableRow)
(0, class_transformer_1.Type)(() => TableRow)
], Examples.prototype, "tableBody", void 0);

@@ -192,9 +192,9 @@ exports.Examples = Examples;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], Feature.prototype, "location", void 0);
__decorate([
class_transformer_1.Type(() => Tag)
(0, class_transformer_1.Type)(() => Tag)
], Feature.prototype, "tags", void 0);
__decorate([
class_transformer_1.Type(() => FeatureChild)
(0, class_transformer_1.Type)(() => FeatureChild)
], Feature.prototype, "children", void 0);

@@ -205,9 +205,9 @@ exports.Feature = Feature;

__decorate([
class_transformer_1.Type(() => Rule)
(0, class_transformer_1.Type)(() => Rule)
], FeatureChild.prototype, "rule", void 0);
__decorate([
class_transformer_1.Type(() => Background)
(0, class_transformer_1.Type)(() => Background)
], FeatureChild.prototype, "background", void 0);
__decorate([
class_transformer_1.Type(() => Scenario)
(0, class_transformer_1.Type)(() => Scenario)
], FeatureChild.prototype, "scenario", void 0);

@@ -227,9 +227,9 @@ exports.FeatureChild = FeatureChild;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], Rule.prototype, "location", void 0);
__decorate([
class_transformer_1.Type(() => Tag)
(0, class_transformer_1.Type)(() => Tag)
], Rule.prototype, "tags", void 0);
__decorate([
class_transformer_1.Type(() => RuleChild)
(0, class_transformer_1.Type)(() => RuleChild)
], Rule.prototype, "children", void 0);

@@ -240,6 +240,6 @@ exports.Rule = Rule;

__decorate([
class_transformer_1.Type(() => Background)
(0, class_transformer_1.Type)(() => Background)
], RuleChild.prototype, "background", void 0);
__decorate([
class_transformer_1.Type(() => Scenario)
(0, class_transformer_1.Type)(() => Scenario)
], RuleChild.prototype, "scenario", void 0);

@@ -260,12 +260,12 @@ exports.RuleChild = RuleChild;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], Scenario.prototype, "location", void 0);
__decorate([
class_transformer_1.Type(() => Tag)
(0, class_transformer_1.Type)(() => Tag)
], Scenario.prototype, "tags", void 0);
__decorate([
class_transformer_1.Type(() => Step)
(0, class_transformer_1.Type)(() => Step)
], Scenario.prototype, "steps", void 0);
__decorate([
class_transformer_1.Type(() => Examples)
(0, class_transformer_1.Type)(() => Examples)
], Scenario.prototype, "examples", void 0);

@@ -282,9 +282,9 @@ exports.Scenario = Scenario;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], Step.prototype, "location", void 0);
__decorate([
class_transformer_1.Type(() => DocString)
(0, class_transformer_1.Type)(() => DocString)
], Step.prototype, "docString", void 0);
__decorate([
class_transformer_1.Type(() => DataTable)
(0, class_transformer_1.Type)(() => DataTable)
], Step.prototype, "dataTable", void 0);

@@ -299,3 +299,3 @@ exports.Step = Step;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], TableCell.prototype, "location", void 0);

@@ -311,6 +311,6 @@ exports.TableCell = TableCell;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], TableRow.prototype, "location", void 0);
__decorate([
class_transformer_1.Type(() => TableCell)
(0, class_transformer_1.Type)(() => TableCell)
], TableRow.prototype, "cells", void 0);

@@ -326,3 +326,3 @@ exports.TableRow = TableRow;

__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], Tag.prototype, "location", void 0);

@@ -337,3 +337,3 @@ exports.Tag = Tag;

__decorate([
class_transformer_1.Type(() => SourceReference)
(0, class_transformer_1.Type)(() => SourceReference)
], Hook.prototype, "sourceReference", void 0);

@@ -357,15 +357,15 @@ exports.Hook = Hook;

__decorate([
class_transformer_1.Type(() => Product)
(0, class_transformer_1.Type)(() => Product)
], Meta.prototype, "implementation", void 0);
__decorate([
class_transformer_1.Type(() => Product)
(0, class_transformer_1.Type)(() => Product)
], Meta.prototype, "runtime", void 0);
__decorate([
class_transformer_1.Type(() => Product)
(0, class_transformer_1.Type)(() => Product)
], Meta.prototype, "os", void 0);
__decorate([
class_transformer_1.Type(() => Product)
(0, class_transformer_1.Type)(() => Product)
], Meta.prototype, "cpu", void 0);
__decorate([
class_transformer_1.Type(() => Ci)
(0, class_transformer_1.Type)(() => Ci)
], Meta.prototype, "ci", void 0);

@@ -379,3 +379,3 @@ exports.Meta = Meta;

__decorate([
class_transformer_1.Type(() => Git)
(0, class_transformer_1.Type)(() => Git)
], Ci.prototype, "git", void 0);

@@ -413,3 +413,3 @@ exports.Ci = Ci;

__decorate([
class_transformer_1.Type(() => SourceReference)
(0, class_transformer_1.Type)(() => SourceReference)
], ParseError.prototype, "source", void 0);

@@ -429,6 +429,6 @@ exports.ParseError = ParseError;

__decorate([
class_transformer_1.Type(() => PickleStep)
(0, class_transformer_1.Type)(() => PickleStep)
], Pickle.prototype, "steps", void 0);
__decorate([
class_transformer_1.Type(() => PickleTag)
(0, class_transformer_1.Type)(() => PickleTag)
], Pickle.prototype, "tags", void 0);

@@ -450,3 +450,3 @@ exports.Pickle = Pickle;

__decorate([
class_transformer_1.Type(() => PickleStepArgument)
(0, class_transformer_1.Type)(() => PickleStepArgument)
], PickleStep.prototype, "argument", void 0);

@@ -457,6 +457,6 @@ exports.PickleStep = PickleStep;

__decorate([
class_transformer_1.Type(() => PickleDocString)
(0, class_transformer_1.Type)(() => PickleDocString)
], PickleStepArgument.prototype, "docString", void 0);
__decorate([
class_transformer_1.Type(() => PickleTable)
(0, class_transformer_1.Type)(() => PickleTable)
], PickleStepArgument.prototype, "dataTable", void 0);

@@ -470,3 +470,3 @@ exports.PickleStepArgument = PickleStepArgument;

__decorate([
class_transformer_1.Type(() => PickleTableRow)
(0, class_transformer_1.Type)(() => PickleTableRow)
], PickleTable.prototype, "rows", void 0);

@@ -486,3 +486,3 @@ exports.PickleTable = PickleTable;

__decorate([
class_transformer_1.Type(() => PickleTableCell)
(0, class_transformer_1.Type)(() => PickleTableCell)
], PickleTableRow.prototype, "cells", void 0);

@@ -508,9 +508,9 @@ exports.PickleTableRow = PickleTableRow;

__decorate([
class_transformer_1.Type(() => JavaMethod)
(0, class_transformer_1.Type)(() => JavaMethod)
], SourceReference.prototype, "javaMethod", void 0);
__decorate([
class_transformer_1.Type(() => JavaStackTraceElement)
(0, class_transformer_1.Type)(() => JavaStackTraceElement)
], SourceReference.prototype, "javaStackTraceElement", void 0);
__decorate([
class_transformer_1.Type(() => Location)
(0, class_transformer_1.Type)(() => Location)
], SourceReference.prototype, "location", void 0);

@@ -542,6 +542,6 @@ exports.SourceReference = SourceReference;

__decorate([
class_transformer_1.Type(() => StepDefinitionPattern)
(0, class_transformer_1.Type)(() => StepDefinitionPattern)
], StepDefinition.prototype, "pattern", void 0);
__decorate([
class_transformer_1.Type(() => SourceReference)
(0, class_transformer_1.Type)(() => SourceReference)
], StepDefinition.prototype, "sourceReference", void 0);

@@ -564,3 +564,3 @@ exports.StepDefinition = StepDefinition;

__decorate([
class_transformer_1.Type(() => TestStep)
(0, class_transformer_1.Type)(() => TestStep)
], TestCase.prototype, "testSteps", void 0);

@@ -574,3 +574,3 @@ exports.TestCase = TestCase;

__decorate([
class_transformer_1.Type(() => Group)
(0, class_transformer_1.Type)(() => Group)
], Group.prototype, "children", void 0);

@@ -584,3 +584,3 @@ exports.Group = Group;

__decorate([
class_transformer_1.Type(() => Group)
(0, class_transformer_1.Type)(() => Group)
], StepMatchArgument.prototype, "group", void 0);

@@ -594,3 +594,3 @@ exports.StepMatchArgument = StepMatchArgument;

__decorate([
class_transformer_1.Type(() => StepMatchArgument)
(0, class_transformer_1.Type)(() => StepMatchArgument)
], StepMatchArgumentsList.prototype, "stepMatchArguments", void 0);

@@ -604,3 +604,3 @@ exports.StepMatchArgumentsList = StepMatchArgumentsList;

__decorate([
class_transformer_1.Type(() => StepMatchArgumentsList)
(0, class_transformer_1.Type)(() => StepMatchArgumentsList)
], TestStep.prototype, "stepMatchArgumentsLists", void 0);

@@ -616,3 +616,3 @@ exports.TestStep = TestStep;

__decorate([
class_transformer_1.Type(() => Timestamp)
(0, class_transformer_1.Type)(() => Timestamp)
], TestCaseFinished.prototype, "timestamp", void 0);

@@ -629,3 +629,3 @@ exports.TestCaseFinished = TestCaseFinished;

__decorate([
class_transformer_1.Type(() => Timestamp)
(0, class_transformer_1.Type)(() => Timestamp)
], TestCaseStarted.prototype, "timestamp", void 0);

@@ -640,3 +640,3 @@ exports.TestCaseStarted = TestCaseStarted;

__decorate([
class_transformer_1.Type(() => Timestamp)
(0, class_transformer_1.Type)(() => Timestamp)
], TestRunFinished.prototype, "timestamp", void 0);

@@ -650,3 +650,3 @@ exports.TestRunFinished = TestRunFinished;

__decorate([
class_transformer_1.Type(() => Timestamp)
(0, class_transformer_1.Type)(() => Timestamp)
], TestRunStarted.prototype, "timestamp", void 0);

@@ -663,6 +663,6 @@ exports.TestRunStarted = TestRunStarted;

__decorate([
class_transformer_1.Type(() => TestStepResult)
(0, class_transformer_1.Type)(() => TestStepResult)
], TestStepFinished.prototype, "testStepResult", void 0);
__decorate([
class_transformer_1.Type(() => Timestamp)
(0, class_transformer_1.Type)(() => Timestamp)
], TestStepFinished.prototype, "timestamp", void 0);

@@ -677,3 +677,3 @@ exports.TestStepFinished = TestStepFinished;

__decorate([
class_transformer_1.Type(() => Duration)
(0, class_transformer_1.Type)(() => Duration)
], TestStepResult.prototype, "duration", void 0);

@@ -689,3 +689,3 @@ exports.TestStepResult = TestStepResult;

__decorate([
class_transformer_1.Type(() => Timestamp)
(0, class_transformer_1.Type)(() => Timestamp)
], TestStepStarted.prototype, "timestamp", void 0);

@@ -692,0 +692,0 @@ exports.TestStepStarted = TestStepStarted;

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

const plain = JSON.parse(json);
return class_transformer_1.plainToClass(messages_1.Envelope, plain);
return (0, class_transformer_1.plainToClass)(messages_1.Envelope, plain);
}
exports.parseEnvelope = parseEnvelope;
//# sourceMappingURL=parseEnvelope.js.map

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

it('returns a FAILED result for PASSED,FAILED,PASSED', () => {
const result = getWorstTestStepResult_1.getWorstTestStepResult([
const result = (0, getWorstTestStepResult_1.getWorstTestStepResult)([
{

@@ -14,0 +14,0 @@ status: messages_1.TestStepResultStatus.PASSED,

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

};
const envelope = index_1.parseEnvelope(JSON.stringify(partialGherkinDocumentEnvelope));
const envelope = (0, index_1.parseEnvelope)(JSON.stringify(partialGherkinDocumentEnvelope));
const expectedEnvelope = {

@@ -43,0 +43,0 @@ gherkinDocument: {

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

const durationB = millisecondsToDuration(200);
const sumDuration = TimeConversion_1.addDurations(durationA, durationB);
const sumDuration = (0, TimeConversion_1.addDurations)(durationA, durationB);
assert_1.default.deepStrictEqual(sumDuration, { seconds: 0, nanos: 3e8 });

@@ -48,3 +48,3 @@ });

const durationB = millisecondsToDuration(2000);
const sumDuration = TimeConversion_1.addDurations(durationA, durationB);
const sumDuration = (0, TimeConversion_1.addDurations)(durationA, durationB);
assert_1.default.deepStrictEqual(sumDuration, { seconds: 3, nanos: 0 });

@@ -55,3 +55,3 @@ });

const durationB = millisecondsToDuration(1600);
const sumDuration = TimeConversion_1.addDurations(durationA, durationB);
const sumDuration = (0, TimeConversion_1.addDurations)(durationA, durationB);
assert_1.default.deepStrictEqual(sumDuration, { seconds: 3, nanos: 1e8 });

@@ -66,3 +66,3 @@ });

durationB.seconds = String(durationB.seconds);
const sumDuration = TimeConversion_1.addDurations(durationA, durationB);
const sumDuration = (0, TimeConversion_1.addDurations)(durationA, durationB);
assert_1.default.deepStrictEqual(sumDuration, { seconds: 3, nanos: 1e8 });

@@ -69,0 +69,0 @@ });

{
"name": "@cucumber/messages",
"version": "17.0.1",
"version": "17.1.0",
"description": "JSON schema-based messages for Cucumber's inter-process communication",

@@ -25,8 +25,8 @@ "main": "dist/src/index.js",

"devDependencies": {
"@types/mocha": "8.2.3",
"@types/node": "14.17.5",
"@types/mocha": "9.0.0",
"@types/node": "14.17.14",
"copyfiles": "2.4.1",
"mocha": "9.0.2",
"ts-node": "10.1.0",
"typescript": "4.3.5"
"mocha": "9.1.1",
"ts-node": "10.2.1",
"typescript": "4.4.2"
},

@@ -33,0 +33,0 @@ "bugs": {

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