From c00274b738fdc82e616a60b7f87e393fdbfb687f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 4 Jun 2021 09:13:15 +0100 Subject: [PATCH] chore(deps): update eslint packages (#1683) * chore(deps): update eslint packages * autofix prettier Co-authored-by: Renovate Bot Co-authored-by: Charles Rudolph --- .../formatters/passed-rule.message.json.ts | 3 +- package.json | 10 +- src/cli/configuration_builder_spec.ts | 49 +-- src/cli/index.ts | 4 +- src/formatter/helpers/event_data_collector.ts | 10 +- .../helpers/gherkin_document_parser.ts | 5 +- .../helpers/gherkin_document_parser_spec.ts | 12 +- src/formatter/helpers/pickle_parser.ts | 5 +- .../helpers/test_case_attempt_parser.ts | 5 +- .../helpers/usage_helpers/index_spec.ts | 10 +- src/formatter/json_formatter.ts | 12 +- src/formatter/json_formatter_spec.ts | 8 +- src/formatter/progress_bar_formatter.ts | 5 +- src/formatter/progress_bar_formatter_spec.ts | 15 +- src/formatter/progress_formatter.ts | 20 +- src/formatter/rerun_formatter.ts | 7 +- src/formatter/rerun_formatter_spec.ts | 3 +- .../step_definition_snippet_builder/index.ts | 5 +- .../javascript_snippet_syntax.ts | 5 +- src/models/test_case_hook_definition.ts | 3 +- src/models/test_step_hook_definition.ts | 3 +- src/pickle_filter.ts | 5 +- src/runtime/parallel/coordinator.ts | 14 +- src/support_code_library_builder/index.ts | 4 +- test/fake_report_server.ts | 3 +- yarn.lock | 345 ++++++++++-------- 26 files changed, 288 insertions(+), 282 deletions(-) diff --git a/features/fixtures/formatters/passed-rule.message.json.ts b/features/fixtures/formatters/passed-rule.message.json.ts index 55c2162d4..784f4eba1 100644 --- a/features/fixtures/formatters/passed-rule.message.json.ts +++ b/features/fixtures/formatters/passed-rule.message.json.ts @@ -2,8 +2,7 @@ module.exports = [ { source: { uri: 'features/a.feature', - data: - 'Feature: a feature\n Rule: a rule\n Example: an example\n Given a step', + data: 'Feature: a feature\n Rule: a rule\n Example: an example\n Given a step', mediaType: 'text/x.cucumber.gherkin+plain', }, }, diff --git a/package.json b/package.json index 172a35639..b16ba764f 100644 --- a/package.json +++ b/package.json @@ -226,17 +226,17 @@ "@types/stream-buffers": "3.0.3", "@types/tmp": "0.2.0", "@types/verror": "1.10.4", - "@typescript-eslint/eslint-plugin": "4.22.0", - "@typescript-eslint/parser": "4.22.0", + "@typescript-eslint/eslint-plugin": "4.26.0", + "@typescript-eslint/parser": "4.26.0", "chai": "4.3.4", "chai-exclude": "2.0.3", "coffeescript": "2.5.1", "dependency-lint": "6.0.0", "dirty-chai": "2.0.1", - "eslint": "7.25.0", + "eslint": "7.27.0", "eslint-config-prettier": "8.3.0", "eslint-config-standard-with-typescript": "20.0.0", - "eslint-plugin-import": "2.22.1", + "eslint-plugin-import": "2.23.4", "eslint-plugin-node": "11.1.0", "eslint-plugin-prettier": "3.4.0", "eslint-plugin-promise": "5.1.0", @@ -246,7 +246,7 @@ "mocha": "8.4.0", "mustache": "4.2.0", "nyc": "15.1.0", - "prettier": "2.2.1", + "prettier": "2.3.0", "semver": "7.3.5", "sinon": "11.1.1", "sinon-chai": "3.7.0", diff --git a/src/cli/configuration_builder_spec.ts b/src/cli/configuration_builder_spec.ts index 23b1149bc..c8628a58a 100644 --- a/src/cli/configuration_builder_spec.ts +++ b/src/cli/configuration_builder_spec.ts @@ -76,11 +76,8 @@ describe('Configuration', () => { const argv = baseArgv.concat([relativeFeaturePath]) // Act - const { - featurePaths, - pickleFilterOptions, - supportCodePaths, - } = await ConfigurationBuilder.build({ argv, cwd }) + const { featurePaths, pickleFilterOptions, supportCodePaths } = + await ConfigurationBuilder.build({ argv, cwd }) // Assert expect(featurePaths).to.eql([featurePath]) @@ -99,11 +96,8 @@ describe('Configuration', () => { const argv = baseArgv.concat([relativeFeaturePath]) // Act - const { - featurePaths, - pickleFilterOptions, - supportCodePaths, - } = await ConfigurationBuilder.build({ argv, cwd }) + const { featurePaths, pickleFilterOptions, supportCodePaths } = + await ConfigurationBuilder.build({ argv, cwd }) // Assert expect(featurePaths).to.eql([featurePath]) @@ -124,11 +118,8 @@ describe('Configuration', () => { const argv = baseArgv.concat([relativeFeaturePath]) // Act - const { - featurePaths, - pickleFilterOptions, - supportCodePaths, - } = await ConfigurationBuilder.build({ argv, cwd }) + const { featurePaths, pickleFilterOptions, supportCodePaths } = + await ConfigurationBuilder.build({ argv, cwd }) // Assert expect(featurePaths).to.eql([featurePath]) @@ -151,11 +142,8 @@ describe('Configuration', () => { const argv = baseArgv.concat([relativeFeaturePath]) // Act - const { - featurePaths, - pickleFilterOptions, - supportCodePaths, - } = await ConfigurationBuilder.build({ argv, cwd }) + const { featurePaths, pickleFilterOptions, supportCodePaths } = + await ConfigurationBuilder.build({ argv, cwd }) // Assert expect(featurePaths).to.eql([featurePath]) @@ -175,11 +163,8 @@ describe('Configuration', () => { const argv = baseArgv.concat([relativeRerunPath]) // Act - const { - featurePaths, - pickleFilterOptions, - supportCodePaths, - } = await ConfigurationBuilder.build({ argv, cwd }) + const { featurePaths, pickleFilterOptions, supportCodePaths } = + await ConfigurationBuilder.build({ argv, cwd }) // Assert expect(featurePaths).to.eql([]) @@ -199,11 +184,8 @@ describe('Configuration', () => { const argv = baseArgv.concat([relativeRerunPath]) // Act - const { - featurePaths, - pickleFilterOptions, - supportCodePaths, - } = await ConfigurationBuilder.build({ argv, cwd }) + const { featurePaths, pickleFilterOptions, supportCodePaths } = + await ConfigurationBuilder.build({ argv, cwd }) // Assert expect(featurePaths).to.eql([]) @@ -223,11 +205,8 @@ describe('Configuration', () => { const argv = baseArgv.concat([relativeRerunPath]) // Act - const { - featurePaths, - pickleFilterOptions, - supportCodePaths, - } = await ConfigurationBuilder.build({ argv, cwd }) + const { featurePaths, pickleFilterOptions, supportCodePaths } = + await ConfigurationBuilder.build({ argv, cwd }) // Assert expect(featurePaths).to.eql([]) diff --git a/src/cli/index.ts b/src/cli/index.ts index 24c5b7d08..259d3b528 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -133,7 +133,9 @@ export default class Cli { supportCodeLibrary, } if (doesNotHaveValue(formatOptions.colorsEnabled)) { - typeOptions.parsedArgvOptions.colorsEnabled = (stream as TtyWriteStream).isTTY + typeOptions.parsedArgvOptions.colorsEnabled = ( + stream as TtyWriteStream + ).isTTY } if (type === 'progress-bar' && !(stream as TtyWriteStream).isTTY) { const outputToName = outputTo === '' ? 'stdout' : outputTo diff --git a/src/formatter/helpers/event_data_collector.ts b/src/formatter/helpers/event_data_collector.ts index db1e0365c..fad379c1f 100644 --- a/src/formatter/helpers/event_data_collector.ts +++ b/src/formatter/helpers/event_data_collector.ts @@ -113,17 +113,15 @@ export default class EventDataCollector { testStepId, testStepResult, }: messages.TestStepFinished): void { - this.testCaseAttemptDataMap[testCaseStartedId].stepResults[ - testStepId - ] = testStepResult + this.testCaseAttemptDataMap[testCaseStartedId].stepResults[testStepId] = + testStepResult } storeTestCaseResult({ testCaseStartedId }: messages.TestCaseFinished): void { const stepResults = values( this.testCaseAttemptDataMap[testCaseStartedId].stepResults ) - this.testCaseAttemptDataMap[ - testCaseStartedId - ].worstTestStepResult = messages.getWorstTestStepResult(stepResults) + this.testCaseAttemptDataMap[testCaseStartedId].worstTestStepResult = + messages.getWorstTestStepResult(stepResults) } } diff --git a/src/formatter/helpers/gherkin_document_parser.ts b/src/formatter/helpers/gherkin_document_parser.ts index ead172647..2730e3819 100644 --- a/src/formatter/helpers/gherkin_document_parser.ts +++ b/src/formatter/helpers/gherkin_document_parser.ts @@ -68,9 +68,8 @@ export function getGherkinScenarioLocationMap( gherkinDocument: messages.GherkinDocument ): Record { const locationMap: Record = {} - const scenarioMap: Record = getGherkinScenarioMap( - gherkinDocument - ) + const scenarioMap: Record = + getGherkinScenarioMap(gherkinDocument) _.entries(scenarioMap).forEach(([id, scenario]) => { locationMap[id] = scenario.location if (doesHaveValue(scenario.examples)) { diff --git a/src/formatter/helpers/gherkin_document_parser_spec.ts b/src/formatter/helpers/gherkin_document_parser_spec.ts index fd243bcf4..fd4b54f3c 100644 --- a/src/formatter/helpers/gherkin_document_parser_spec.ts +++ b/src/formatter/helpers/gherkin_document_parser_spec.ts @@ -78,7 +78,8 @@ describe('GherkinDocumentParser', () => { it('works for a Background and Rule with its own Background and Examples', async () => { // Arrange - const gherkinDocument = await withBackgroundAndRuleWithBackgroundAndExamples() + const gherkinDocument = + await withBackgroundAndRuleWithBackgroundAndExamples() // Act const output = getGherkinStepMap(gherkinDocument) @@ -156,7 +157,8 @@ describe('GherkinDocumentParser', () => { it('works for a Background and Rule with its own Background and Examples', async () => { // Arrange - const gherkinDocument = await withBackgroundAndRuleWithBackgroundAndExamples() + const gherkinDocument = + await withBackgroundAndRuleWithBackgroundAndExamples() // Act const output = getGherkinScenarioMap(gherkinDocument) @@ -215,7 +217,8 @@ describe('GherkinDocumentParser', () => { it('works for a Background and Rule with its own Background and Examples', async () => { // Arrange - const gherkinDocument = await withBackgroundAndRuleWithBackgroundAndExamples() + const gherkinDocument = + await withBackgroundAndRuleWithBackgroundAndExamples() // Act const output = await getGherkinExampleRuleMap(gherkinDocument) @@ -284,7 +287,8 @@ describe('GherkinDocumentParser', () => { it('works for a Background and Rule with its own Background and Examples', async () => { // Arrange - const gherkinDocument = await withBackgroundAndRuleWithBackgroundAndExamples() + const gherkinDocument = + await withBackgroundAndRuleWithBackgroundAndExamples() // Act const output = await getGherkinScenarioLocationMap(gherkinDocument) diff --git a/src/formatter/helpers/pickle_parser.ts b/src/formatter/helpers/pickle_parser.ts index 1ce57e16f..941eb0d15 100644 --- a/src/formatter/helpers/pickle_parser.ts +++ b/src/formatter/helpers/pickle_parser.ts @@ -52,8 +52,7 @@ export function getPickleLocation({ gherkinDocument, pickle, }: IGetPickleLocationRequest): messages.Location { - const gherkinScenarioLocationMap = getGherkinScenarioLocationMap( - gherkinDocument - ) + const gherkinScenarioLocationMap = + getGherkinScenarioLocationMap(gherkinDocument) return gherkinScenarioLocationMap[_.last(pickle.astNodeIds)] } diff --git a/src/formatter/helpers/test_case_attempt_parser.ts b/src/formatter/helpers/test_case_attempt_parser.ts index 82920d490..9a3e2c89c 100644 --- a/src/formatter/helpers/test_case_attempt_parser.ts +++ b/src/formatter/helpers/test_case_attempt_parser.ts @@ -133,9 +133,8 @@ export function parseTestCaseAttempt({ }: IParseTestCaseAttemptRequest): IParsedTestCaseAttempt { const { testCase, pickle, gherkinDocument } = testCaseAttempt const gherkinStepMap = getGherkinStepMap(gherkinDocument) - const gherkinScenarioLocationMap = getGherkinScenarioLocationMap( - gherkinDocument - ) + const gherkinScenarioLocationMap = + getGherkinScenarioLocationMap(gherkinDocument) const pickleStepMap = getPickleStepMap(pickle) const relativePickleUri = pickle.uri const parsedTestCase: IParsedTestCase = { diff --git a/src/formatter/helpers/usage_helpers/index_spec.ts b/src/formatter/helpers/usage_helpers/index_spec.ts index b6305dc71..081224a2a 100644 --- a/src/formatter/helpers/usage_helpers/index_spec.ts +++ b/src/formatter/helpers/usage_helpers/index_spec.ts @@ -16,9 +16,8 @@ describe('Usage Helpers', () => { const supportCodeLibrary = buildSupportCodeLibrary(({ Given }) => { Given('a step', code) }) - const { - eventDataCollector, - } = await getEnvelopesAndEventDataCollector({ supportCodeLibrary }) + const { eventDataCollector } = + await getEnvelopesAndEventDataCollector({ supportCodeLibrary }) // Act const output = getUsage({ @@ -53,9 +52,8 @@ describe('Usage Helpers', () => { ) } ) - const { - eventDataCollector, - } = await getEnvelopesAndEventDataCollector({ supportCodeLibrary }) + const { eventDataCollector } = + await getEnvelopesAndEventDataCollector({ supportCodeLibrary }) // Act const output = getUsage({ diff --git a/src/formatter/json_formatter.ts b/src/formatter/json_formatter.ts index a0d31837b..16be8d51c 100644 --- a/src/formatter/json_formatter.ts +++ b/src/formatter/json_formatter.ts @@ -12,11 +12,8 @@ import { parseStepArgument } from '../step_arguments' const { getGherkinStepMap, getGherkinScenarioMap } = GherkinDocumentParser -const { - getScenarioDescription, - getPickleStepMap, - getStepKeyword, -} = PickleParser +const { getScenarioDescription, getPickleStepMap, getStepKeyword } = + PickleParser export interface IJsonFeature { description: string @@ -148,9 +145,8 @@ export default class JsonFormatter extends Formatter { const gherkinStepMap = getGherkinStepMap(gherkinDocument) const gherkinScenarioMap = getGherkinScenarioMap(gherkinDocument) const gherkinExampleRuleMap = getGherkinExampleRuleMap(gherkinDocument) - const gherkinScenarioLocationMap = getGherkinScenarioLocationMap( - gherkinDocument - ) + const gherkinScenarioLocationMap = + getGherkinScenarioLocationMap(gherkinDocument) const elements = group.map((testCaseAttempt: ITestCaseAttempt) => { const { pickle } = testCaseAttempt const pickleStepMap = getPickleStepMap(pickle) diff --git a/src/formatter/json_formatter_spec.ts b/src/formatter/json_formatter_spec.ts index 9e03b4084..de84daedc 100644 --- a/src/formatter/json_formatter_spec.ts +++ b/src/formatter/json_formatter_spec.ts @@ -321,8 +321,8 @@ describe('JsonFormatter', () => { }) // Assert - const stepArguments = JSON.parse(output)[0].elements[0].steps[0] - .arguments + const stepArguments = + JSON.parse(output)[0].elements[0].steps[0].arguments expect(stepArguments).to.eql([ { content: 'This is a DocString', @@ -359,8 +359,8 @@ describe('JsonFormatter', () => { }) // Assert - const stepArguments = JSON.parse(output)[0].elements[0].steps[0] - .arguments + const stepArguments = + JSON.parse(output)[0].elements[0].steps[0].arguments expect(stepArguments).to.eql([ { rows: [ diff --git a/src/formatter/progress_bar_formatter.ts b/src/formatter/progress_bar_formatter.ts index 4aa972330..2456ec93c 100644 --- a/src/formatter/progress_bar_formatter.ts +++ b/src/formatter/progress_bar_formatter.ts @@ -43,9 +43,8 @@ export default class ProgressBarFormatter extends Formatter { testStepId, testCaseStartedId, }: messages.TestStepFinished): void { - const { testCase } = this.eventDataCollector.getTestCaseAttempt( - testCaseStartedId - ) + const { testCase } = + this.eventDataCollector.getTestCaseAttempt(testCaseStartedId) const testStep = testCase.testSteps.find((s) => s.id === testStepId) if (doesHaveValue(testStep.pickleStepId)) { this.progressBar.tick() diff --git a/src/formatter/progress_bar_formatter_spec.ts b/src/formatter/progress_bar_formatter_spec.ts index a0c4d74ab..a083c2d1c 100644 --- a/src/formatter/progress_bar_formatter_spec.ts +++ b/src/formatter/progress_bar_formatter_spec.ts @@ -101,8 +101,7 @@ describe('ProgressBarFormatter', () => { uri: 'a.feature', }, { - data: - 'Feature: a\nScenario: b\nGiven a step\nWhen a step\nThen a step', + data: 'Feature: a\nScenario: b\nGiven a step\nWhen a step\nThen a step', uri: 'b.feature', }, ] @@ -125,8 +124,7 @@ describe('ProgressBarFormatter', () => { uri: 'a.feature', }, { - data: - 'Feature: a\nRule: b\nExample: c\nGiven a step\nWhen a step\nThen a step', + data: 'Feature: a\nRule: b\nExample: c\nGiven a step\nWhen a step\nThen a step', uri: 'b.feature', }, ] @@ -149,8 +147,7 @@ describe('ProgressBarFormatter', () => { uri: 'a.feature', }, { - data: - 'Feature: a\nScenario: b\nGiven a step\nWhen a step\nThen a step', + data: 'Feature: a\nScenario: b\nGiven a step\nWhen a step\nThen a step', uri: 'b.feature', }, ] @@ -370,8 +367,7 @@ describe('ProgressBarFormatter', () => { // Arrange const sources = [ { - data: - 'Feature: a\nScenario: b\nGiven a passing step\n When a flaky step\nThen a passing step', + data: 'Feature: a\nScenario: b\nGiven a passing step\n When a flaky step\nThen a passing step', uri: 'a.feature', }, ] @@ -384,7 +380,8 @@ describe('ProgressBarFormatter', () => { sources, supportCodeLibrary, }) - const progressBar = progressBarFormatter.progressBar as sinon.SinonStubbedInstance + const progressBar = + progressBarFormatter.progressBar as sinon.SinonStubbedInstance // Assert expect(progressBar.interrupt).to.have.callCount(1) diff --git a/src/formatter/progress_formatter.ts b/src/formatter/progress_formatter.ts index 4e47fb21e..2bd058505 100644 --- a/src/formatter/progress_formatter.ts +++ b/src/formatter/progress_formatter.ts @@ -5,17 +5,15 @@ import * as messages from '@cucumber/messages' import IEnvelope = messages.Envelope import ITestStepFinished = messages.TestStepFinished -const STATUS_CHARACTER_MAPPING: Map< - messages.TestStepResultStatus, - string -> = new Map([ - [messages.TestStepResultStatus.AMBIGUOUS, 'A'], - [messages.TestStepResultStatus.FAILED, 'F'], - [messages.TestStepResultStatus.PASSED, '.'], - [messages.TestStepResultStatus.PENDING, 'P'], - [messages.TestStepResultStatus.SKIPPED, '-'], - [messages.TestStepResultStatus.UNDEFINED, 'U'], -]) +const STATUS_CHARACTER_MAPPING: Map = + new Map([ + [messages.TestStepResultStatus.AMBIGUOUS, 'A'], + [messages.TestStepResultStatus.FAILED, 'F'], + [messages.TestStepResultStatus.PASSED, '.'], + [messages.TestStepResultStatus.PENDING, 'P'], + [messages.TestStepResultStatus.SKIPPED, '-'], + [messages.TestStepResultStatus.UNDEFINED, 'U'], + ]) export default class ProgressFormatter extends SummaryFormatter { constructor(options: IFormatterOptions) { diff --git a/src/formatter/rerun_formatter.ts b/src/formatter/rerun_formatter.ts index 6b5c53310..2091923fc 100644 --- a/src/formatter/rerun_formatter.ts +++ b/src/formatter/rerun_formatter.ts @@ -37,9 +37,10 @@ export default class RerunFormatter extends Formatter { worstTestStepResult.status !== messages.TestStepResultStatus.PASSED ) { const relativeUri = pickle.uri - const line = getGherkinScenarioLocationMap(gherkinDocument)[ - _.last(pickle.astNodeIds) - ].line + const line = + getGherkinScenarioLocationMap(gherkinDocument)[ + _.last(pickle.astNodeIds) + ].line if (doesNotHaveValue(mapping[relativeUri])) { mapping[relativeUri] = [] } diff --git a/src/formatter/rerun_formatter_spec.ts b/src/formatter/rerun_formatter_spec.ts index 5791d209a..9235dde43 100644 --- a/src/formatter/rerun_formatter_spec.ts +++ b/src/formatter/rerun_formatter_spec.ts @@ -148,8 +148,7 @@ describe('RerunFormatter', () => { // Arrange const sources = [ { - data: - 'Feature: a\nScenario: b\nGiven a step\nScenario: c\nGiven a step', + data: 'Feature: a\nScenario: b\nGiven a step\nScenario: c\nGiven a step', uri: 'a.feature', }, ] diff --git a/src/formatter/step_definition_snippet_builder/index.ts b/src/formatter/step_definition_snippet_builder/index.ts index 768f5b039..ce7065d1e 100644 --- a/src/formatter/step_definition_snippet_builder/index.ts +++ b/src/formatter/step_definition_snippet_builder/index.ts @@ -36,9 +36,8 @@ export default class StepDefinitionSnippetBuilder { const comment = 'Write code here that turns the phrase above into concrete actions' const functionName = this.getFunctionName(keywordType) - const generatedExpressions = this.cucumberExpressionGenerator.generateExpressions( - pickleStep.text - ) + const generatedExpressions = + this.cucumberExpressionGenerator.generateExpressions(pickleStep.text) const stepParameterNames = this.getStepParameterNames(pickleStep) return this.snippetSyntax.build({ comment, diff --git a/src/formatter/step_definition_snippet_builder/javascript_snippet_syntax.ts b/src/formatter/step_definition_snippet_builder/javascript_snippet_syntax.ts index e230b9ebd..aae697c1c 100644 --- a/src/formatter/step_definition_snippet_builder/javascript_snippet_syntax.ts +++ b/src/formatter/step_definition_snippet_builder/javascript_snippet_syntax.ts @@ -36,9 +36,8 @@ export default class JavaScriptSnippetSyntax implements ISnippetSnytax { const definitionChoices = generatedExpressions.map( (generatedExpression, index) => { const prefix = index === 0 ? '' : '// ' - const allParameterNames = generatedExpression.parameterNames.concat( - stepParameterNames - ) + const allParameterNames = + generatedExpression.parameterNames.concat(stepParameterNames) if (this.snippetInterface === SnippetInterface.Callback) { allParameterNames.push(CALLBACK_NAME) } diff --git a/src/models/test_case_hook_definition.ts b/src/models/test_case_hook_definition.ts index b6afeda43..21d8b47e7 100644 --- a/src/models/test_case_hook_definition.ts +++ b/src/models/test_case_hook_definition.ts @@ -10,7 +10,8 @@ import * as messages from '@cucumber/messages' export default class TestCaseHookDefinition extends Definition - implements IDefinition { + implements IDefinition +{ public readonly tagExpression: string private readonly pickleTagFilter: PickleTagFilter diff --git a/src/models/test_step_hook_definition.ts b/src/models/test_step_hook_definition.ts index a36967bc0..32aa03367 100644 --- a/src/models/test_step_hook_definition.ts +++ b/src/models/test_step_hook_definition.ts @@ -10,7 +10,8 @@ import * as messages from '@cucumber/messages' export default class TestStepHookDefinition extends Definition - implements IDefinition { + implements IDefinition +{ public readonly tagExpression: string private readonly pickleTagFilter: PickleTagFilter diff --git a/src/pickle_filter.ts b/src/pickle_filter.ts index 0b4436937..78f425d62 100644 --- a/src/pickle_filter.ts +++ b/src/pickle_filter.ts @@ -92,9 +92,8 @@ export class PickleLineFilter { const uri = path.normalize(pickle.uri) const linesToMatch = this.featureUriToLinesMapping[uri] if (doesHaveValue(linesToMatch)) { - const gherkinScenarioLocationMap = getGherkinScenarioLocationMap( - gherkinDocument - ) + const gherkinScenarioLocationMap = + getGherkinScenarioLocationMap(gherkinDocument) const pickleLines = pickle.astNodeIds.map( (sourceId) => gherkinScenarioLocationMap[sourceId].line ) diff --git a/src/runtime/parallel/coordinator.ts b/src/runtime/parallel/coordinator.ts index 0e9e13df7..0f7f54c3c 100644 --- a/src/runtime/parallel/coordinator.ts +++ b/src/runtime/parallel/coordinator.ts @@ -125,12 +125,14 @@ export default class Coordinator { stepDefinitionIds: this.supportCodeLibrary.stepDefinitions.map( (s) => s.id ), - beforeTestCaseHookDefinitionIds: this.supportCodeLibrary.beforeTestCaseHookDefinitions.map( - (h) => h.id - ), - afterTestCaseHookDefinitionIds: this.supportCodeLibrary.afterTestCaseHookDefinitions.map( - (h) => h.id - ), + beforeTestCaseHookDefinitionIds: + this.supportCodeLibrary.beforeTestCaseHookDefinitions.map( + (h) => h.id + ), + afterTestCaseHookDefinitionIds: + this.supportCodeLibrary.afterTestCaseHookDefinitions.map( + (h) => h.id + ), }, options: this.options, }, diff --git a/src/support_code_library_builder/index.ts b/src/support_code_library_builder/index.ts index 7fee92afd..c90aec8c7 100644 --- a/src/support_code_library_builder/index.ts +++ b/src/support_code_library_builder/index.ts @@ -308,9 +308,7 @@ export class SupportCodeLibraryBuilder { }) } - buildStepDefinitions( - canonicalIds?: string[] - ): { + buildStepDefinitions(canonicalIds?: string[]): { stepDefinitions: StepDefinition[] undefinedParameterTypes: messages.UndefinedParameterType[] } { diff --git a/test/fake_report_server.ts b/test/fake_report_server.ts index d554b30f0..b912ec943 100644 --- a/test/fake_report_server.ts +++ b/test/fake_report_server.ts @@ -113,6 +113,7 @@ function extractAuthorizationToken( } function isValidUUID(token: string): boolean { - const v4 = /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i + const v4 = + /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i return v4.test(token) } diff --git a/yarn.lock b/yarn.lock index ec6a1b57b..a62318d93 100644 --- a/yarn.lock +++ b/yarn.lock @@ -285,7 +285,7 @@ resolved "https://registry.yarnpkg.com/@cucumber/tag-expressions/-/tag-expressions-3.0.1.tgz#ca0702342bc4234ad73d9de3f1bf97461c3b5eb7" integrity sha512-OGCXaJ1BQXmQ5b9pw+JYsBGumK2/LPZiLmbj1o1JFVeSNs2PY8WPQFSyXrskhrHz5Nd/6lYg7lvGMtFHOncC4w== -"@eslint/eslintrc@^0.4.0": +"@eslint/eslintrc@^0.4.1": version "0.4.1" resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.1.tgz#442763b88cecbe3ee0ec7ca6d6dd6168550cbf14" integrity sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ== @@ -463,7 +463,7 @@ "@types/minimatch" "*" "@types/node" "*" -"@types/json-schema@^7.0.3": +"@types/json-schema@^7.0.7": version "7.0.7" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA== @@ -602,41 +602,41 @@ resolved "https://registry.yarnpkg.com/@types/verror/-/verror-1.10.4.tgz#805c0612b3a0c124cf99f517364142946b74ba3b" integrity sha512-OjJdqx6QlbyZw9LShPwRW+Kmiegeg3eWNI41MQQKaG3vjdU2L9SRElntM51HmHBY1cu7izxQJ1lMYioQh3XMBg== -"@typescript-eslint/eslint-plugin@4.22.0": - version "4.22.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.22.0.tgz#3d5f29bb59e61a9dba1513d491b059e536e16dbc" - integrity sha512-U8SP9VOs275iDXaL08Ln1Fa/wLXfj5aTr/1c0t0j6CdbOnxh+TruXu1p4I0NAvdPBQgoPjHsgKn28mOi0FzfoA== +"@typescript-eslint/eslint-plugin@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.26.0.tgz#12bbd6ebd5e7fabd32e48e1e60efa1f3554a3242" + integrity sha512-yA7IWp+5Qqf+TLbd8b35ySFOFzUfL7i+4If50EqvjT6w35X8Lv0eBHb6rATeWmucks37w+zV+tWnOXI9JlG6Eg== dependencies: - "@typescript-eslint/experimental-utils" "4.22.0" - "@typescript-eslint/scope-manager" "4.22.0" - debug "^4.1.1" + "@typescript-eslint/experimental-utils" "4.26.0" + "@typescript-eslint/scope-manager" "4.26.0" + debug "^4.3.1" functional-red-black-tree "^1.0.1" - lodash "^4.17.15" - regexpp "^3.0.0" - semver "^7.3.2" - tsutils "^3.17.1" - -"@typescript-eslint/experimental-utils@4.22.0": - version "4.22.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.22.0.tgz#68765167cca531178e7b650a53456e6e0bef3b1f" - integrity sha512-xJXHHl6TuAxB5AWiVrGhvbGL8/hbiCQ8FiWwObO3r0fnvBdrbWEDy1hlvGQOAWc6qsCWuWMKdVWlLAEMpxnddg== - dependencies: - "@types/json-schema" "^7.0.3" - "@typescript-eslint/scope-manager" "4.22.0" - "@typescript-eslint/types" "4.22.0" - "@typescript-eslint/typescript-estree" "4.22.0" - eslint-scope "^5.0.0" - eslint-utils "^2.0.0" + lodash "^4.17.21" + regexpp "^3.1.0" + semver "^7.3.5" + tsutils "^3.21.0" + +"@typescript-eslint/experimental-utils@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.26.0.tgz#ba7848b3f088659cdf71bce22454795fc55be99a" + integrity sha512-TH2FO2rdDm7AWfAVRB5RSlbUhWxGVuxPNzGT7W65zVfl8H/WeXTk1e69IrcEVsBslrQSTDKQSaJD89hwKrhdkw== + dependencies: + "@types/json-schema" "^7.0.7" + "@typescript-eslint/scope-manager" "4.26.0" + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/typescript-estree" "4.26.0" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" -"@typescript-eslint/parser@4.22.0": - version "4.22.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.22.0.tgz#e1637327fcf796c641fe55f73530e90b16ac8fe8" - integrity sha512-z/bGdBJJZJN76nvAY9DkJANYgK3nlRstRRi74WHm3jjgf2I8AglrSY+6l7ogxOmn55YJ6oKZCLLy+6PW70z15Q== +"@typescript-eslint/parser@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.26.0.tgz#31b6b732c9454f757b020dab9b6754112aa5eeaf" + integrity sha512-b4jekVJG9FfmjUfmM4VoOItQhPlnt6MPOBUL0AQbiTmm+SSpSdhHYlwayOm4IW9KLI/4/cRKtQCmDl1oE2OlPg== dependencies: - "@typescript-eslint/scope-manager" "4.22.0" - "@typescript-eslint/types" "4.22.0" - "@typescript-eslint/typescript-estree" "4.22.0" - debug "^4.1.1" + "@typescript-eslint/scope-manager" "4.26.0" + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/typescript-estree" "4.26.0" + debug "^4.3.1" "@typescript-eslint/parser@^4.0.0": version "4.25.0" @@ -648,14 +648,6 @@ "@typescript-eslint/typescript-estree" "4.25.0" debug "^4.1.1" -"@typescript-eslint/scope-manager@4.22.0": - version "4.22.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.22.0.tgz#ed411545e61161a8d702e703a4b7d96ec065b09a" - integrity sha512-OcCO7LTdk6ukawUM40wo61WdeoA7NM/zaoq1/2cs13M7GyiF+T4rxuA4xM+6LeHWjWbss7hkGXjFDRcKD4O04Q== - dependencies: - "@typescript-eslint/types" "4.22.0" - "@typescript-eslint/visitor-keys" "4.22.0" - "@typescript-eslint/scope-manager@4.25.0": version "4.25.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.25.0.tgz#9d86a5bcc46ef40acd03d85ad4e908e5aab8d4ca" @@ -664,28 +656,23 @@ "@typescript-eslint/types" "4.25.0" "@typescript-eslint/visitor-keys" "4.25.0" -"@typescript-eslint/types@4.22.0": - version "4.22.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.22.0.tgz#0ca6fde5b68daf6dba133f30959cc0688c8dd0b6" - integrity sha512-sW/BiXmmyMqDPO2kpOhSy2Py5w6KvRRsKZnV0c4+0nr4GIcedJwXAq+RHNK4lLVEZAJYFltnnk1tJSlbeS9lYA== +"@typescript-eslint/scope-manager@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.26.0.tgz#60d1a71df162404e954b9d1c6343ff3bee496194" + integrity sha512-G6xB6mMo4xVxwMt5lEsNTz3x4qGDt0NSGmTBNBPJxNsrTXJSm21c6raeYroS2OwQsOyIXqKZv266L/Gln1BWqg== + dependencies: + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/visitor-keys" "4.26.0" "@typescript-eslint/types@4.25.0": version "4.25.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.25.0.tgz#0e444a5c5e3c22d7ffa5e16e0e60510b3de5af87" integrity sha512-+CNINNvl00OkW6wEsi32wU5MhHti2J25TJsJJqgQmJu3B3dYDBcmOxcE5w9cgoM13TrdE/5ND2HoEnBohasxRQ== -"@typescript-eslint/typescript-estree@4.22.0": - version "4.22.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.22.0.tgz#b5d95d6d366ff3b72f5168c75775a3e46250d05c" - integrity sha512-TkIFeu5JEeSs5ze/4NID+PIcVjgoU3cUQUIZnH3Sb1cEn1lBo7StSV5bwPuJQuoxKXlzAObjYTilOEKRuhR5yg== - dependencies: - "@typescript-eslint/types" "4.22.0" - "@typescript-eslint/visitor-keys" "4.22.0" - debug "^4.1.1" - globby "^11.0.1" - is-glob "^4.0.1" - semver "^7.3.2" - tsutils "^3.17.1" +"@typescript-eslint/types@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.26.0.tgz#7c6732c0414f0a69595f4f846ebe12616243d546" + integrity sha512-rADNgXl1kS/EKnDr3G+m7fB9yeJNnR9kF7xMiXL6mSIWpr3Wg5MhxyfEXy/IlYthsqwBqHOr22boFbf/u6O88A== "@typescript-eslint/typescript-estree@4.25.0": version "4.25.0" @@ -700,13 +687,18 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/visitor-keys@4.22.0": - version "4.22.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.22.0.tgz#169dae26d3c122935da7528c839f42a8a42f6e47" - integrity sha512-nnMu4F+s4o0sll6cBSsTeVsT4cwxB7zECK3dFxzEjPBii9xLpq4yqqsy/FU5zMfan6G60DKZSCXAa3sHJZrcYw== +"@typescript-eslint/typescript-estree@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.26.0.tgz#aea17a40e62dc31c63d5b1bbe9a75783f2ce7109" + integrity sha512-GHUgahPcm9GfBuy3TzdsizCcPjKOAauG9xkz9TR8kOdssz2Iz9jRCSQm6+aVFa23d5NcSpo1GdHGSQKe0tlcbg== dependencies: - "@typescript-eslint/types" "4.22.0" - eslint-visitor-keys "^2.0.0" + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/visitor-keys" "4.26.0" + debug "^4.3.1" + globby "^11.0.3" + is-glob "^4.0.1" + semver "^7.3.5" + tsutils "^3.21.0" "@typescript-eslint/visitor-keys@4.25.0": version "4.25.0" @@ -716,6 +708,14 @@ "@typescript-eslint/types" "4.25.0" eslint-visitor-keys "^2.0.0" +"@typescript-eslint/visitor-keys@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.0.tgz#26d2583169222815be4dcd1da4fe5459bc3bcc23" + integrity sha512-cw4j8lH38V1ycGBbF+aFiLUls9Z0Bw8QschP3mkth50BbWzgFS33ISIgBzUMuQ2IdahoEv/rXstr8Zhlz4B1Zg== + dependencies: + "@typescript-eslint/types" "4.26.0" + eslint-visitor-keys "^2.0.0" + "@ungap/promise-all-settled@1.1.2": version "1.1.2" resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" @@ -876,7 +876,7 @@ array-flatten@1.1.1: resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= -array-includes@^3.1.1: +array-includes@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.3.tgz#c7f619b382ad2afaf5326cddfdc0afc61af7690a" integrity sha512-gcem1KlBU7c9rB+Rq8/3PPKsK2kjqeEBa3bD5kkQo4nYlOHQCJqIJFqBXDEfwaRuYTT4E+FxA9xez7Gf/e3Q7A== @@ -892,7 +892,7 @@ array-union@^2.1.0: resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -array.prototype.flat@^1.2.3: +array.prototype.flat@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz#6ef638b43312bd401b4c6199fdec7e2dc9e9a123" integrity sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg== @@ -1293,11 +1293,6 @@ configstore@^5.0.1: write-file-atomic "^3.0.0" xdg-basedir "^4.0.0" -contains-path@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" - integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo= - content-disposition@0.5.3: version "0.5.3" resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" @@ -1371,7 +1366,7 @@ debug@2.6.9, debug@^2.6.9: dependencies: ms "2.0.0" -debug@4.3.1, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: +debug@4.3.1, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: version "4.3.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee" integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== @@ -1525,13 +1520,12 @@ docopt@^0.6.0: resolved "https://registry.yarnpkg.com/docopt/-/docopt-0.6.2.tgz#b28e9e2220da5ec49f7ea5bb24a47787405eeb11" integrity sha1-so6eIiDaXsSffqW7JKR3h0Be6xE= -doctrine@1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" - integrity sha1-N53Ocw9hZvds76TmcHoVmwLFpvo= +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== dependencies: esutils "^2.0.2" - isarray "^1.0.0" doctrine@^3.0.0: version "3.0.0" @@ -1604,7 +1598,7 @@ enquirer@^2.3.5: dependencies: ansi-colors "^4.1.1" -error-ex@^1.2.0, error-ex@^1.3.1: +error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== @@ -1640,6 +1634,28 @@ es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2: string.prototype.trimstart "^1.0.4" unbox-primitive "^1.0.1" +es-abstract@^1.18.2: + version "1.18.3" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.3.tgz#25c4c3380a27aa203c44b2b685bba94da31b63e0" + integrity sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw== + dependencies: + call-bind "^1.0.2" + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + get-intrinsic "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.2" + is-callable "^1.2.3" + is-negative-zero "^2.0.1" + is-regex "^1.1.3" + is-string "^1.0.6" + object-inspect "^1.10.3" + object-keys "^1.1.1" + object.assign "^4.1.2" + string.prototype.trimend "^1.0.4" + string.prototype.trimstart "^1.0.4" + unbox-primitive "^1.0.1" + es-to-primitive@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" @@ -1695,7 +1711,7 @@ escape-html@~1.0.3: resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= -escape-string-regexp@4.0.0: +escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== @@ -1744,7 +1760,7 @@ eslint-import-resolver-node@^0.3.4: debug "^2.6.9" resolve "^1.13.1" -eslint-module-utils@^2.6.0: +eslint-module-utils@^2.6.1: version "2.6.1" resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.6.1.tgz#b51be1e473dd0de1c5ea638e22429c2490ea8233" integrity sha512-ZXI9B8cxAJIH4nfkhTwcRTEAnrVfobYqwjWy/QMCZ8rHkZHFjf9yO4BzpiF9kCSfNlMG54eKigISHpX0+AaT4A== @@ -1760,23 +1776,25 @@ eslint-plugin-es@^3.0.0: eslint-utils "^2.0.0" regexpp "^3.0.0" -eslint-plugin-import@2.22.1: - version "2.22.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.22.1.tgz#0896c7e6a0cf44109a2d97b95903c2bb689d7702" - integrity sha512-8K7JjINHOpH64ozkAhpT3sd+FswIZTfMZTjdx052pnWrgRCVfp8op9tbjpAk3DdUeI/Ba4C8OjdC0r90erHEOw== +eslint-plugin-import@2.23.4: + version "2.23.4" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.23.4.tgz#8dceb1ed6b73e46e50ec9a5bb2411b645e7d3d97" + integrity sha512-6/wP8zZRsnQFiR3iaPFgh5ImVRM1WN5NUWfTIRqwOdeiGJlBcSk82o1FEVq8yXmy4lkIzTo7YhHCIxlU/2HyEQ== dependencies: - array-includes "^3.1.1" - array.prototype.flat "^1.2.3" - contains-path "^0.1.0" + array-includes "^3.1.3" + array.prototype.flat "^1.2.4" debug "^2.6.9" - doctrine "1.5.0" + doctrine "^2.1.0" eslint-import-resolver-node "^0.3.4" - eslint-module-utils "^2.6.0" + eslint-module-utils "^2.6.1" + find-up "^2.0.0" has "^1.0.3" + is-core-module "^2.4.0" minimatch "^3.0.4" - object.values "^1.1.1" - read-pkg-up "^2.0.0" - resolve "^1.17.0" + object.values "^1.1.3" + pkg-up "^2.0.0" + read-pkg-up "^3.0.0" + resolve "^1.20.0" tsconfig-paths "^3.9.0" eslint-plugin-node@11.1.0: @@ -1813,7 +1831,7 @@ eslint-rule-docs@^1.1.5: resolved "https://registry.yarnpkg.com/eslint-rule-docs/-/eslint-rule-docs-1.1.226.tgz#5778f20065109ab7c5604100776af089f76f9ca0" integrity sha512-Wnn0ETzE2v2UT0OdRCcdMNPkQtbzyZr3pPPXnkreP0l6ZJaKqnl88dL1DqZ6nCCZZwDGBAnN0Y+nCvGxxLPQLQ== -eslint-scope@^5.0.0, eslint-scope@^5.1.1: +eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== @@ -1828,6 +1846,13 @@ eslint-utils@^2.0.0, eslint-utils@^2.1.0: dependencies: eslint-visitor-keys "^1.1.0" +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== + dependencies: + eslint-visitor-keys "^2.0.0" + eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" @@ -1838,25 +1863,27 @@ eslint-visitor-keys@^2.0.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== -eslint@7.25.0: - version "7.25.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.25.0.tgz#1309e4404d94e676e3e831b3a3ad2b050031eb67" - integrity sha512-TVpSovpvCNpLURIScDRB6g5CYu/ZFq9GfX2hLNIV4dSBKxIWojeDODvYl3t0k0VtMxYeR8OXPCFE5+oHMlGfhw== +eslint@7.27.0: + version "7.27.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.27.0.tgz#665a1506d8f95655c9274d84bd78f7166b07e9c7" + integrity sha512-JZuR6La2ZF0UD384lcbnd0Cgg6QJjiCwhMD6eU4h/VGPcVGwawNNzKU41tgokGXnfjOOyI6QIffthhJTPzzuRA== dependencies: "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.4.0" + "@eslint/eslintrc" "^0.4.1" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" debug "^4.0.1" doctrine "^3.0.0" enquirer "^2.3.5" + escape-string-regexp "^4.0.0" eslint-scope "^5.1.1" eslint-utils "^2.1.0" eslint-visitor-keys "^2.0.0" espree "^7.3.1" esquery "^1.4.0" esutils "^2.0.2" + fast-deep-equal "^3.1.3" file-entry-cache "^6.0.1" functional-red-black-tree "^1.0.1" glob-parent "^5.0.0" @@ -1868,7 +1895,7 @@ eslint@7.25.0: js-yaml "^3.13.1" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" - lodash "^4.17.21" + lodash.merge "^4.6.2" minimatch "^3.0.4" natural-compare "^1.4.0" optionator "^0.9.1" @@ -1877,7 +1904,7 @@ eslint@7.25.0: semver "^7.2.1" strip-ansi "^6.0.0" strip-json-comments "^3.1.0" - table "^6.0.4" + table "^6.0.9" text-table "^0.2.0" v8-compile-cache "^2.0.3" @@ -1977,7 +2004,7 @@ extsprintf@^1.2.0: resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= -fast-deep-equal@^3.1.1: +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== @@ -2267,7 +2294,7 @@ globals@^13.6.0: dependencies: type-fest "^0.20.2" -globby@^11.0.1: +globby@^11.0.1, globby@^11.0.3: version "11.0.3" resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb" integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg== @@ -2507,7 +2534,7 @@ is-ci@^2.0.0: dependencies: ci-info "^2.0.0" -is-core-module@^2.2.0: +is-core-module@^2.2.0, is-core-module@^2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" integrity sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A== @@ -2644,11 +2671,6 @@ isarray@0.0.1: resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8= -isarray@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -2745,6 +2767,11 @@ json-buffer@3.0.0: resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" integrity sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg= +json-parse-better-errors@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" + integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== + json-parse-even-better-errors@^2.3.0: version "2.3.1" resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" @@ -2839,14 +2866,14 @@ lines-and-columns@^1.1.6: resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= -load-json-file@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" - integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg= +load-json-file@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" + integrity sha1-L19Fq5HjMhYjT9U62rZo607AmTs= dependencies: graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" + parse-json "^4.0.0" + pify "^3.0.0" strip-bom "^3.0.0" locate-path@^2.0.0: @@ -2886,12 +2913,17 @@ lodash.get@^4.4.2: resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + lodash.truncate@^4.4.2: version "4.4.2" resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM= -lodash@^4.17.15, lodash@^4.17.21, lodash@^4.2.1: +lodash@^4.17.21, lodash@^4.2.1: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -3263,15 +3295,14 @@ object.assign@^4.1.2: has-symbols "^1.0.1" object-keys "^1.1.1" -object.values@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.3.tgz#eaa8b1e17589f02f698db093f7c62ee1699742ee" - integrity sha512-nkF6PfDB9alkOUxpf1HNm/QlkeW3SReqL5WXeBLpEJJnlPSvRaDQpW3gQTksTN3fgJX4hL42RzKyOin6ff3tyw== +object.values@^1.1.3: + version "1.1.4" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.4.tgz#0d273762833e816b693a637d30073e7051535b30" + integrity sha512-TnGo7j4XSnKQoK3MfvkzqKCi0nVe/D9I9IjwTNYdb/fxYHpjrluHVOgw0AF6jrRFGMPHdfuidR09tIDiIvnaSg== dependencies: call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.18.0-next.2" - has "^1.0.3" + es-abstract "^1.18.2" on-finished@~2.3.0: version "2.3.0" @@ -3397,12 +3428,13 @@ parent-module@^1.0.0: dependencies: callsites "^3.0.0" -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck= +parse-json@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" + integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= dependencies: - error-ex "^1.2.0" + error-ex "^1.3.1" + json-parse-better-errors "^1.0.1" parse-json@^5.0.0: version "5.2.0" @@ -3456,12 +3488,12 @@ path-to-regexp@^1.7.0: dependencies: isarray "0.0.1" -path-type@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" - integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM= +path-type@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" + integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== dependencies: - pify "^2.0.0" + pify "^3.0.0" path-type@^4.0.0: version "4.0.0" @@ -3478,10 +3510,10 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== -pify@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY= pkg-dir@^2.0.0: version "2.0.0" @@ -3497,6 +3529,13 @@ pkg-dir@^4.1.0: dependencies: find-up "^4.0.0" +pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-2.0.0.tgz#c819ac728059a461cab1c3889a2be3c49a004d7f" + integrity sha1-yBmscoBZpGHKscOImivjxJoATX8= + dependencies: + find-up "^2.1.0" + plur@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/plur/-/plur-4.0.0.tgz#729aedb08f452645fe8c58ef115bf16b0a73ef84" @@ -3521,10 +3560,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" - integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== +prettier@2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18" + integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w== process-on-spawn@^1.0.0: version "1.0.0" @@ -3618,13 +3657,13 @@ rc@^1.2.8: minimist "^1.2.0" strip-json-comments "~2.0.1" -read-pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" - integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4= +read-pkg-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" + integrity sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc= dependencies: find-up "^2.0.0" - read-pkg "^2.0.0" + read-pkg "^3.0.0" read-pkg-up@^7.0.0, read-pkg-up@^7.0.1: version "7.0.1" @@ -3635,14 +3674,14 @@ read-pkg-up@^7.0.0, read-pkg-up@^7.0.1: read-pkg "^5.2.0" type-fest "^0.8.1" -read-pkg@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" - integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg= +read-pkg@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" + integrity sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k= dependencies: - load-json-file "^2.0.0" + load-json-file "^4.0.0" normalize-package-data "^2.3.2" - path-type "^2.0.0" + path-type "^3.0.0" read-pkg@^5.2.0: version "5.2.0" @@ -3742,7 +3781,7 @@ resolve-pkg@^2.0.0: dependencies: resolve-from "^5.0.0" -resolve@^1.10.0, resolve@^1.10.1, resolve@^1.13.1, resolve@^1.17.0, resolve@^1.19.0: +resolve@^1.10.0, resolve@^1.10.1, resolve@^1.13.1, resolve@^1.19.0, resolve@^1.20.0: version "1.20.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A== @@ -3808,7 +3847,7 @@ semver-diff@^3.1.1: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@7.3.5, semver@^7.2.1, semver@^7.3.2: +semver@7.3.5, semver@^7.2.1, semver@^7.3.2, semver@^7.3.5: version "7.3.5" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== @@ -4160,7 +4199,7 @@ supports-hyperlinks@^2.0.0: has-flag "^4.0.0" supports-color "^7.0.0" -table@^6.0.4: +table@^6.0.9: version "6.7.1" resolved "https://registry.yarnpkg.com/table/-/table-6.7.1.tgz#ee05592b7143831a8c94f3cee6aae4c1ccef33e2" integrity sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg== @@ -4283,7 +4322,7 @@ tslib@^2.0.3: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.2.0.tgz#fb2c475977e35e241311ede2693cee1ec6698f5c" integrity sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w== -tsutils@^3.17.1: +tsutils@^3.17.1, tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==