@sprucelabs/spruce-cli 19.1.20 → 19.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/build/GlobalEmitter.js +2 -2
- package/build/GlobalEmitter.js.map +1 -1
- package/build/InFlightEntertainment.js +2 -2
- package/build/InFlightEntertainment.js.map +1 -1
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingToSandbox.test.js +6 -6
- package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js +1 -1
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +2 -2
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +2 -2
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js +2 -2
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
- package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js +1 -1
- package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js +1 -1
- package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js +2 -2
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/BootingASkill.test.js +1 -1
- package/build/__tests__/behavioral/skill/BootingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/RunningTests.test.js +2 -2
- package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js +1 -1
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js.map +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js +2 -2
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
- package/build/__tests__/implementation/EventStore.test.js +1 -1
- package/build/__tests__/implementation/EventStore.test.js.map +1 -1
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js +2 -2
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaStore.test.js +2 -2
- package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js +2 -2
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js.map +1 -1
- package/build/cli/Cli.js +2 -2
- package/build/cli/Cli.js.map +1 -1
- package/build/components/AbstractComponent.js +2 -2
- package/build/components/AbstractComponent.js.map +1 -1
- package/build/components/FormComponent.js +2 -2
- package/build/components/FormComponent.js.map +1 -1
- package/build/components/QuizComponent.js +2 -2
- package/build/components/QuizComponent.js.map +1 -1
- package/build/features/AbstractAction.js +2 -2
- package/build/features/AbstractAction.js.map +1 -1
- package/build/features/AbstractFeature.js +2 -2
- package/build/features/AbstractFeature.js.map +1 -1
- package/build/features/ActionExecuter.js +2 -2
- package/build/features/ActionExecuter.js.map +1 -1
- package/build/features/ActionFactory.js +2 -2
- package/build/features/ActionFactory.js.map +1 -1
- package/build/features/ActionQuestionAsker.js +2 -2
- package/build/features/ActionQuestionAsker.js.map +1 -1
- package/build/features/FeatureCommandAttacher.js +2 -2
- package/build/features/FeatureCommandAttacher.js.map +1 -1
- package/build/features/FeatureInstaller.js +14 -14
- package/build/features/FeatureInstaller.js.map +1 -1
- package/build/features/OverrideActionDecorator.js +4 -4
- package/build/features/OverrideActionDecorator.js.map +1 -1
- package/build/features/conversation/actions/TestAction.js +3 -3
- package/build/features/conversation/actions/TestAction.js.map +1 -1
- package/build/features/deploy/actions/HerokuAction.js +1 -1
- package/build/features/deploy/actions/HerokuAction.js.map +1 -1
- package/build/features/error/actions/CreateAction.js +2 -2
- package/build/features/error/actions/CreateAction.js.map +1 -1
- package/build/features/error/actions/SyncAction.js +2 -2
- package/build/features/error/actions/SyncAction.js.map +1 -1
- package/build/features/error/writers/ErrorWriter.js +2 -2
- package/build/features/error/writers/ErrorWriter.js.map +1 -1
- package/build/features/event/actions/CreateAction.js +2 -2
- package/build/features/event/actions/CreateAction.js.map +1 -1
- package/build/features/event/actions/ListenAction.js +2 -2
- package/build/features/event/actions/ListenAction.js.map +1 -1
- package/build/features/event/actions/SyncAction.js.map +1 -1
- package/build/features/event/builders/EventContractBuilder.js +2 -2
- package/build/features/event/builders/EventContractBuilder.js.map +1 -1
- package/build/features/event/builders/ListenerTemplateItemBuilder.js +2 -2
- package/build/features/event/builders/ListenerTemplateItemBuilder.js.map +1 -1
- package/build/features/event/stores/EventStore.js +5 -5
- package/build/features/event/stores/EventStore.js.map +1 -1
- package/build/features/event/stores/ListenerStore.js +2 -2
- package/build/features/event/stores/ListenerStore.js.map +1 -1
- package/build/features/event/writers/EventWriter.js +2 -2
- package/build/features/event/writers/EventWriter.js.map +1 -1
- package/build/features/eventContract/actions/PullAction.js +2 -2
- package/build/features/eventContract/actions/PullAction.js.map +1 -1
- package/build/features/features.types.js.map +1 -1
- package/build/features/node/NodeFeature.d.ts +2 -7
- package/build/features/node/NodeFeature.js +2 -2
- package/build/features/node/NodeFeature.js.map +1 -1
- package/build/features/node/actions/UpgradeAction.js +2 -2
- package/build/features/node/actions/UpgradeAction.js.map +1 -1
- package/build/features/node/writers/NodeWriter.js +2 -2
- package/build/features/node/writers/NodeWriter.js.map +1 -1
- package/build/features/onboard/ScriptPlayer.js.map +1 -1
- package/build/features/permission/actions/CreateAction.js +2 -2
- package/build/features/permission/actions/CreateAction.js.map +1 -1
- package/build/features/person/actions/LoginAction.js +2 -2
- package/build/features/person/actions/LoginAction.js.map +1 -1
- package/build/features/schema/actions/CreateAction.js +2 -2
- package/build/features/schema/actions/CreateAction.js.map +1 -1
- package/build/features/schema/stores/SchemaStore.js +5 -5
- package/build/features/schema/stores/SchemaStore.js.map +1 -1
- package/build/features/schema/utilities/schemaDisk.utility.js +2 -2
- package/build/features/schema/utilities/schemaDisk.utility.js.map +1 -1
- package/build/features/schema/writers/SchemaWriter.js +2 -2
- package/build/features/schema/writers/SchemaWriter.js.map +1 -1
- package/build/features/skill/SkillFeature.js +2 -2
- package/build/features/skill/SkillFeature.js.map +1 -1
- package/build/features/skill/actions/BootAction.js +2 -2
- package/build/features/skill/actions/BootAction.js.map +1 -1
- package/build/features/skill/actions/CreateAction.js +2 -2
- package/build/features/skill/actions/CreateAction.js.map +1 -1
- package/build/features/skill/actions/RebuildAction.js +1 -1
- package/build/features/skill/actions/RebuildAction.js.map +1 -1
- package/build/features/skill/stores/SkillStore.js +2 -2
- package/build/features/skill/stores/SkillStore.js.map +1 -1
- package/build/features/skill/writers/SkillWriter.js +2 -2
- package/build/features/skill/writers/SkillWriter.js.map +1 -1
- package/build/features/store/actions/CreateAction.js +2 -2
- package/build/features/store/actions/CreateAction.js.map +1 -1
- package/build/features/test/TestFeature.js +2 -2
- package/build/features/test/TestFeature.js.map +1 -1
- package/build/features/test/TestLogItemGenerator.js +2 -2
- package/build/features/test/TestLogItemGenerator.js.map +1 -1
- package/build/features/test/TestReporter.js +19 -19
- package/build/features/test/TestReporter.js.map +1 -1
- package/build/features/test/TestRunner.js +2 -2
- package/build/features/test/TestRunner.js.map +1 -1
- package/build/features/test/actions/CreateAction.js +2 -2
- package/build/features/test/actions/CreateAction.js.map +1 -1
- package/build/features/test/actions/TestAction.js +25 -25
- package/build/features/test/actions/TestAction.js.map +1 -1
- package/build/features/universalDevDependencies.d.ts +2 -7
- package/build/features/universalDevDependencies.js +0 -1
- package/build/features/universalDevDependencies.js.map +1 -1
- package/build/features/validateAndNormalize.utility.js +2 -2
- package/build/features/validateAndNormalize.utility.js.map +1 -1
- package/build/features/view/actions/CreateAction.js +2 -2
- package/build/features/view/actions/CreateAction.js.map +1 -1
- package/build/features/view/writers/ViewWriter.js +2 -2
- package/build/features/view/writers/ViewWriter.js.map +1 -1
- package/build/features/vscode/actions/SetupAction.js +1 -1
- package/build/features/vscode/actions/SetupAction.js.map +1 -1
- package/build/features/watch/WatchFeature.js.map +1 -1
- package/build/interfaces/SpyInterface.js +11 -11
- package/build/interfaces/SpyInterface.js.map +1 -1
- package/build/interfaces/TerminalInterface.js +3 -3
- package/build/interfaces/TerminalInterface.js.map +1 -1
- package/build/schemas/v2020_07_22/createConversationTopicOptions.builder.js +2 -2
- package/build/schemas/v2020_07_22/createConversationTopicOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createErrorOptions.builder.js +2 -2
- package/build/schemas/v2020_07_22/createErrorOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createOrganizationOptions.builder.js +2 -2
- package/build/schemas/v2020_07_22/createOrganizationOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createSchemaOptions.builder.js +2 -2
- package/build/schemas/v2020_07_22/createSchemaOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/listenEventOptions.builder.js +2 -2
- package/build/schemas/v2020_07_22/listenEventOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/syncErrorOptions.builder.js +2 -2
- package/build/schemas/v2020_07_22/syncErrorOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/syncSchemasOptions.builder.js +2 -2
- package/build/schemas/v2020_07_22/syncSchemasOptions.builder.js.map +1 -1
- package/build/services/CommandService.js +10 -10
- package/build/services/CommandService.js.map +1 -1
- package/build/services/GameService.js +2 -2
- package/build/services/GameService.js.map +1 -1
- package/build/stores/AbstractLocalStore.js +2 -2
- package/build/stores/AbstractLocalStore.js.map +1 -1
- package/build/stores/AbstractStore.js.map +1 -1
- package/build/stores/StoreFactory.js +2 -2
- package/build/stores/StoreFactory.js.map +1 -1
- package/build/templateItemBuilders/EventTemplateItemBuilder.js +2 -2
- package/build/templateItemBuilders/EventTemplateItemBuilder.js.map +1 -1
- package/build/templateItemBuilders/SchemaTemplateItemBuilder.js +4 -4
- package/build/templateItemBuilders/SchemaTemplateItemBuilder.js.map +1 -1
- package/build/tests/AbstractCliTest.js +2 -2
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/AbstractEventTest.js +2 -2
- package/build/tests/AbstractEventTest.js.map +1 -1
- package/build/tests/AbstractSchemaTest.js +2 -2
- package/build/tests/AbstractSchemaTest.js.map +1 -1
- package/build/tests/JestJsonParser.js +3 -3
- package/build/tests/JestJsonParser.js.map +1 -1
- package/build/tests/fixtures/FeatureFixture.js +2 -2
- package/build/tests/fixtures/FeatureFixture.js.map +1 -1
- package/build/tests/fixtures/OrganizationFixture.js +2 -2
- package/build/tests/fixtures/PersonFixture.js +2 -2
- package/build/tests/fixtures/PersonFixture.js.map +1 -1
- package/build/tests/fixtures/SkillFixture.js +2 -2
- package/build/tests/fixtures/SkillFixture.js.map +1 -1
- package/build/updaters/ScriptUpdater.js +2 -2
- package/build/updaters/ScriptUpdater.js.map +1 -1
- package/build/utilities/commander.utility.js +2 -2
- package/build/utilities/commander.utility.js.map +1 -1
- package/build/utilities/eventContractCleaner.utility.js +2 -2
- package/build/utilities/eventContractCleaner.utility.js.map +1 -1
- package/build/utilities/form.utility.js.map +1 -1
- package/build/widgets/WidgetFactory.js +2 -2
- package/build/widgets/WidgetFactory.js.map +1 -1
- package/build/widgets/keySelectChoices.js.map +1 -1
- package/build/widgets/terminalKit/TKButtonWidget.js +2 -2
- package/build/widgets/terminalKit/TKButtonWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkBaseWidget.js +4 -4
- package/build/widgets/terminalKit/TkBaseWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkInputWidget.js +2 -2
- package/build/widgets/terminalKit/TkInputWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkLayoutCellWidget.js +2 -2
- package/build/widgets/terminalKit/TkLayoutCellWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkLayoutWidget.js +2 -2
- package/build/widgets/terminalKit/TkLayoutWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkMenuBarWidget.js +2 -2
- package/build/widgets/terminalKit/TkMenuBarWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkPopupWidget.js +2 -2
- package/build/widgets/terminalKit/TkPopupWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkProgressBarWidget.js +2 -2
- package/build/widgets/terminalKit/TkProgressBarWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkTextWidget.js +2 -2
- package/build/widgets/terminalKit/TkTextWidget.js.map +1 -1
- package/build/widgets/terminalKit/termKit.utility.js +2 -2
- package/build/widgets/terminalKit/termKit.utility.js.map +1 -1
- package/build/writers/AbstractWriter.js +2 -2
- package/build/writers/AbstractWriter.js.map +1 -1
- package/build/writers/WriterFactory.js +2 -2
- package/build/writers/WriterFactory.js.map +1 -1
- package/package.json +32 -32
- package/src/__tests__/behavioral/CreatingAConversationTopic.test.ts +2 -3
- package/src/__tests__/behavioral/events/KeepingEventsInSync.test.ts +2 -3
- package/src/__tests__/behavioral/events/RegisteringGlobalEvents.test.ts +4 -6
- package/src/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.ts +2 -3
- package/src/__tests__/behavioral/tests/CreatingATest.test.ts +4 -6
- package/src/components/FormComponent.ts +3 -4
- package/src/features/AbstractFeature.ts +1 -1
- package/src/features/ActionQuestionAsker.ts +1 -1
- package/src/features/FeatureInstaller.ts +1 -2
- package/src/features/event/actions/SyncAction.ts +2 -3
- package/src/features/features.types.ts +1 -1
- package/src/features/node/NodeFeature.ts +1 -1
- package/src/features/onboard/ScriptPlayer.ts +3 -4
- package/src/features/skill/SkillFeature.ts +1 -1
- package/src/features/universalDevDependencies.ts +1 -1
- package/src/features/watch/WatchFeature.ts +6 -3
- package/src/stores/AbstractLocalStore.ts +1 -1
- package/src/stores/AbstractStore.ts +1 -1
- package/src/tests/AbstractCliTest.ts +2 -2
- package/src/utilities/form.utility.ts +4 -2
- package/src/widgets/keySelectChoices.ts +1 -1
- package/node_modules/@typescript-eslint/parser/LICENSE +0 -22
- package/node_modules/@typescript-eslint/parser/README.md +0 -10
- package/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts +0 -8
- package/node_modules/@typescript-eslint/parser/_ts3.4/dist/parser.d.ts +0 -22
- package/node_modules/@typescript-eslint/parser/dist/index.d.ts +0 -8
- package/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/parser/dist/index.js +0 -17
- package/node_modules/@typescript-eslint/parser/dist/index.js.map +0 -1
- package/node_modules/@typescript-eslint/parser/dist/parser.d.ts +0 -19
- package/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/parser/dist/parser.js +0 -131
- package/node_modules/@typescript-eslint/parser/dist/parser.js.map +0 -1
- package/node_modules/@typescript-eslint/parser/package.json +0 -75
- package/node_modules/@typescript-eslint/scope-manager/LICENSE +0 -21
- package/node_modules/@typescript-eslint/scope-manager/README.md +0 -8
- package/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts +0 -4
- package/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ID.js +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts +0 -73
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +0 -183
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts +0 -62
- package/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +0 -58
- package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/assert.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts +0 -39
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +0 -19
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +0 -18
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +0 -30
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts +0 -9
- package/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/index.js +0 -31
- package/node_modules/@typescript-eslint/scope-manager/dist/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +0 -16
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +0 -23
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +0 -21
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +0 -71
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +0 -1317
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +0 -21
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +0 -23
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +0 -19
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +0 -13
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +0 -18
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +0 -24
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +0 -21
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +0 -17
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +0 -24
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +0 -19
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +0 -24
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +0 -88
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +0 -179
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +0 -13
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +0 -24
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +0 -9
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +0 -30
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +0 -495
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +0 -29
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +0 -329
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +0 -84
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +0 -50
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +0 -29
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +0 -109
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts +0 -89
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +0 -107
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +0 -86
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +0 -547
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts +0 -33
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +0 -228
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts +0 -13
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +0 -41
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +0 -82
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts +0 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +0 -6
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +0 -17
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts +0 -13
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +0 -37
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts +0 -18
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +0 -39
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +0 -21
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +0 -107
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +0 -363
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +0 -25
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +0 -36
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts +0 -34
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts +0 -25
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +0 -19
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts +0 -18
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +0 -33
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts +0 -44
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +0 -39
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts +0 -4
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/package.json +0 -67
- package/node_modules/@typescript-eslint/types/LICENSE +0 -21
- package/node_modules/@typescript-eslint/types/README.md +0 -12
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +0 -1806
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/index.d.ts +0 -5
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts +0 -3
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +0 -40
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/ts-estree.d.ts +0 -9
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +0 -1803
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +0 -202
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/index.d.ts +0 -5
- package/node_modules/@typescript-eslint/types/dist/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/index.js +0 -24
- package/node_modules/@typescript-eslint/types/dist/index.js.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/lib.d.ts +0 -3
- package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/lib.js +0 -7
- package/node_modules/@typescript-eslint/types/dist/lib.js.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +0 -40
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.js +0 -3
- package/node_modules/@typescript-eslint/types/dist/parser-options.js.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts +0 -8
- package/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/ts-estree.js +0 -28
- package/node_modules/@typescript-eslint/types/dist/ts-estree.js.map +0 -1
- package/node_modules/@typescript-eslint/types/package.json +0 -84
- package/node_modules/@typescript-eslint/typescript-estree/LICENSE +0 -26
- package/node_modules/@typescript-eslint/typescript-estree/README.md +0 -10
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ast-converter.d.ts +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts +0 -10
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert-comments.d.ts +0 -11
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert.d.ts +0 -159
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/WatchCompilerHostOfConfigFile.d.ts +0 -13
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createDefaultProgram.d.ts +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createIsolatedProgram.d.ts +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createProjectProgram.d.ts +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createSourceFile.d.ts +0 -5
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts +0 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/getScriptKind.d.ts +0 -5
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/getWatchProgramsForProjects.d.ts +0 -15
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +0 -29
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/useProvidedPrograms.d.ts +0 -13
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/getModifiers.d.ts +0 -4
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +0 -12
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/jsx/xhtml-entities.d.ts +0 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/node-utils.d.ts +0 -231
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts +0 -17
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +0 -5
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts +0 -12
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +0 -107
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/inferSingleRun.d.ts +0 -15
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts +0 -19
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/warnAboutTSVersion.d.ts +0 -3
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +0 -181
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts +0 -25
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/semantic-or-syntactic-errors.d.ts +0 -13
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +0 -178
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/index.d.ts +0 -4
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +0 -20
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts +0 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +0 -60
- package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +0 -10
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +0 -24
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts +0 -11
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +0 -63
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts +0 -159
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +0 -2423
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts +0 -13
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js +0 -6
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +0 -65
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +0 -83
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +0 -102
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts +0 -5
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +0 -40
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts +0 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +0 -32
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts +0 -5
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +0 -72
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts +0 -15
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +0 -409
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +0 -29
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +0 -130
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts +0 -13
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +0 -93
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts +0 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +0 -68
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +0 -12
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +0 -38
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts +0 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js +0 -259
- package/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts +0 -228
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +0 -597
- package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +0 -17
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +0 -62
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +0 -5
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +0 -119
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +0 -12
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +0 -70
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +0 -107
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js +0 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts +0 -15
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +0 -53
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +0 -19
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +0 -103
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts +0 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +0 -68
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +0 -181
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js +0 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts +0 -25
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +0 -173
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts +0 -13
- package/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js +0 -93
- package/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +0 -54
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +0 -178
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js +0 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts +0 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js +0 -25
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +0 -20
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js +0 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +0 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +0 -55
- package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +0 -85
- package/node_modules/@typescript-eslint/visitor-keys/LICENSE +0 -21
- package/node_modules/@typescript-eslint/visitor-keys/README.md +0 -10
- package/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/get-keys.d.ts +0 -4
- package/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/index.d.ts +0 -3
- package/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/visitor-keys.d.ts +0 -6
- package/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts +0 -4
- package/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +0 -7
- package/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map +0 -1
- package/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts +0 -3
- package/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/visitor-keys/dist/index.js +0 -8
- package/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map +0 -1
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts +0 -6
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +0 -175
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +0 -1
- package/node_modules/@typescript-eslint/visitor-keys/package.json +0 -60
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaTemplateItemBuilder.js","names":["_schema","require","_spruceSkillUtils","_cloneDeep","_interopRequireDefault","_isEqual","_merge","_SpruceError","_schema2","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","arguments","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","SchemaTemplateItemBuilder","localNamespace","_classCallCheck2","_createClass2","buildTemplateItems","schemasByNamespace","_this","destinationDir","undefined","schemas","namespaces","_loop","namespace","_namespaces","_i","_toConsumableArray2","map","flattenSchemas","flattened","values","schemasByKey","sorted","sort","a","b","doesADependOnB","reverse","schemaTemplateItems","buildTemplateItem","dependencies","idWithVersion","normalizeSchemaToIdWithVersion","schema","find","dep","isEqual","_this2","def","flattenSchema","_this3","_this$schemasByKey$ke","_this$schemasByKey$ke2","isNested","localSchema","cloneDeep","namedFields","pluckFields","_ref","field","type","schemasOrIdsWithVersion","SchemaField","mapFieldDefinitionToSchemasOrIdsWithVersion","originalOptions","_extends2","_objectDestructuringEmpty2","options","schemaId","schemaIds","schemaOrId","_field$options$schema","related","version","moduleToImportFromWhenRemote","isIdWithVersion","relatedIdWithVersion","SpruceError","code","id","schemaNamespace","fieldName","fieldOptions","schemaUtil","generateCacheKey","merge","_localSchema$fields","fields","dynamicFieldSignature","dynamicField","_schema$namespace","_this4","importFrom","getImportFromForSchema","item","generateNamesForSchema","toLowerCase","importsWhenLocal","imports","importsWhenRemote","_iterator","_step","_field$options$schema2","match","_item$imports","CORE_NAMESPACE","exports"],"sources":["../../src/templateItemBuilders/SchemaTemplateItemBuilder.ts"],"sourcesContent":["import {\n\tSchema,\n\tSchemaTemplateItem,\n\tSchemaField,\n\tSchemaIdWithVersion,\n\tnormalizeSchemaToIdWithVersion,\n\tisIdWithVersion,\n} from '@sprucelabs/schema'\nimport { CORE_NAMESPACE } from '@sprucelabs/spruce-skill-utils'\nimport cloneDeep from 'lodash/cloneDeep'\nimport isEqual from 'lodash/isEqual'\nimport merge from 'lodash/merge'\nimport SpruceError from '../errors/SpruceError'\nimport { SchemasByNamespace } from '../features/schema/stores/SchemaStore'\nimport schemaUtil from '../features/schema/utilities/schema.utility'\n\ninterface SchemaWithDependencies {\n\tschema: Schema\n\tdependencies: SchemaIdWithVersion[]\n\tisNested: boolean\n}\n\nexport default class SchemaTemplateItemBuilder {\n\tprivate schemasByKey: Record<string, SchemaWithDependencies> = {}\n\tprivate localNamespace: string\n\n\tpublic constructor(localNamespace: string) {\n\t\tthis.localNamespace = localNamespace\n\t}\n\n\tpublic buildTemplateItems(\n\t\tschemasByNamespace: SchemasByNamespace,\n\t\tdestinationDir = '#spruce/schemas'\n\t) {\n\t\tconst schemas: Schema[] = []\n\t\tconst namespaces = Object.keys(schemasByNamespace)\n\n\t\tfor (const namespace of namespaces) {\n\t\t\tschemas.push(\n\t\t\t\t...schemasByNamespace[namespace].map((s) => ({ namespace, ...s }))\n\t\t\t)\n\t\t}\n\n\t\tthis.flattenSchemas(schemas)\n\n\t\tconst flattened = Object.values(this.schemasByKey)\n\t\tconst sorted = flattened\n\t\t\t.sort((a, b) => {\n\t\t\t\tif (this.doesADependOnB(a, b)) {\n\t\t\t\t\treturn -1\n\t\t\t\t} else if (this.doesADependOnB(b, a)) {\n\t\t\t\t\treturn 1\n\t\t\t\t}\n\t\t\t\treturn 0\n\t\t\t})\n\t\t\t.reverse()\n\n\t\tconst schemaTemplateItems = sorted.map((s) =>\n\t\t\tthis.buildTemplateItem({\n\t\t\t\t...s,\n\t\t\t\tdestinationDir,\n\t\t\t})\n\t\t)\n\n\t\treturn schemaTemplateItems\n\t}\n\n\tprivate doesADependOnB(a: SchemaWithDependencies, b: SchemaWithDependencies) {\n\t\tconst { dependencies } = a\n\t\tconst idWithVersion = normalizeSchemaToIdWithVersion(b.schema)\n\n\t\tif (dependencies.find((dep) => isEqual(dep, idWithVersion))) {\n\t\t\treturn true\n\t\t}\n\n\t\treturn false\n\t}\n\n\tprivate flattenSchemas(schemas: Schema[]) {\n\t\tschemas.forEach((def) => {\n\t\t\tthis.flattenSchema(def)\n\t\t})\n\t}\n\n\tprivate flattenSchema(schema: Schema, isNested = false) {\n\t\tconst localSchema = cloneDeep(schema)\n\n\t\tconst namedFields = this.pluckFields(localSchema)\n\t\tconst dependencies: SchemaIdWithVersion[] = []\n\n\t\tnamedFields.forEach(({ field, name }) => {\n\t\t\tif (field.type === 'schema') {\n\t\t\t\tconst schemasOrIdsWithVersion =\n\t\t\t\t\tSchemaField.mapFieldDefinitionToSchemasOrIdsWithVersion(field)\n\n\t\t\t\tconst { ...originalOptions } = field.options\n\t\t\t\tdelete field.options.schema\n\t\t\t\tdelete field.options.schemaId\n\t\t\t\tdelete field.options.schemaIds\n\t\t\t\tdelete field.options.schemas\n\t\t\t\tfield.options.schemaIds = []\n\n\t\t\t\tschemasOrIdsWithVersion.forEach((schemaOrId) => {\n\t\t\t\t\tconst related = { ...schemaOrId }\n\n\t\t\t\t\tif (localSchema.version && !related.version) {\n\t\t\t\t\t\trelated.version = localSchema.version\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!related.namespace) {\n\t\t\t\t\t\trelated.namespace = schema.namespace\n\t\t\t\t\t}\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tlocalSchema.moduleToImportFromWhenRemote &&\n\t\t\t\t\t\t//@ts-ignore\n\t\t\t\t\t\t!related.moduleToImportFromWhenRemote &&\n\t\t\t\t\t\t!isIdWithVersion(related)\n\t\t\t\t\t) {\n\t\t\t\t\t\t//@ts-ignore\n\t\t\t\t\t\trelated.moduleToImportFromWhenRemote =\n\t\t\t\t\t\t\tlocalSchema.moduleToImportFromWhenRemote\n\t\t\t\t\t}\n\n\t\t\t\t\tconst relatedIdWithVersion = normalizeSchemaToIdWithVersion(related)\n\n\t\t\t\t\tfield.options.schemaIds?.push(relatedIdWithVersion)\n\t\t\t\t\tdependencies.push(relatedIdWithVersion)\n\n\t\t\t\t\tthis.flattenSchema(related, true)\n\t\t\t\t})\n\n\t\t\t\tif (field.options.schemaIds.length === 0) {\n\t\t\t\t\tthrow new SpruceError({\n\t\t\t\t\t\tcode: 'SCHEMA_TEMPLATE_ITEM_BUILDING_FAILED',\n\t\t\t\t\t\tschemaId: schema.id,\n\t\t\t\t\t\tschemaNamespace: schema.namespace as string,\n\t\t\t\t\t\tfieldName: name,\n\t\t\t\t\t\tfieldOptions: originalOptions,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\n\t\tconst key = schemaUtil.generateCacheKey(localSchema)\n\t\tthis.schemasByKey[key] = merge(this.schemasByKey[key] ?? {}, {\n\t\t\tschema: localSchema,\n\t\t\tdependencies,\n\t\t\tisNested: this.schemasByKey[key]?.isNested === false ? false : isNested,\n\t\t})\n\t}\n\n\tprivate pluckFields(localSchema: Schema) {\n\t\tconst fields = localSchema.dynamicFieldSignature\n\t\t\t? { dynamicField: localSchema.dynamicFieldSignature }\n\t\t\t: localSchema.fields ?? {}\n\n\t\tconst namedFields = Object.keys(fields).map((name) => ({\n\t\t\tname,\n\t\t\tfield: fields[name],\n\t\t}))\n\t\treturn namedFields\n\t}\n\n\tprivate buildTemplateItem(options: {\n\t\tschema: Schema\n\t\tisNested: boolean\n\t\tdestinationDir: string\n\t}): SchemaTemplateItem {\n\t\tconst { schema, isNested, destinationDir } = options\n\t\tconst namespace = schema.namespace ?? this.localNamespace\n\n\t\tconst importFrom = this.getImportFromForSchema(schema)\n\t\tconst item: SchemaTemplateItem = {\n\t\t\tid: schema.id,\n\t\t\tnamespace,\n\t\t\tschema,\n\t\t\t...schemaUtil.generateNamesForSchema(schema),\n\t\t\tisNested,\n\t\t\tdestinationDir,\n\t\t}\n\n\t\tif (importFrom) {\n\t\t\titem.importFrom = importFrom\n\t\t}\n\n\t\tif (\n\t\t\tnamespace.toLowerCase() === this.localNamespace.toLowerCase() &&\n\t\t\tschema.importsWhenLocal\n\t\t) {\n\t\t\titem.imports = [...schema.importsWhenLocal]\n\t\t} else if (\n\t\t\tnamespace.toLowerCase() !== this.localNamespace.toLowerCase() &&\n\t\t\tschema.importsWhenRemote\n\t\t) {\n\t\t\titem.imports = [...schema.importsWhenRemote]\n\t\t}\n\n\t\tconst namedFields = this.pluckFields(schema)\n\n\t\tfor (const { field } of namedFields) {\n\t\t\tif (field.type === 'schema') {\n\t\t\t\tfield.options.schemaIds?.forEach((idWithVersion) => {\n\t\t\t\t\tconst key = schemaUtil.generateCacheKey(idWithVersion)\n\t\t\t\t\tconst match = this.schemasByKey[key]\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tmatch.schema.importsWhenRemote &&\n\t\t\t\t\t\tmatch.schema.namespace &&\n\t\t\t\t\t\tmatch.schema.namespace.toLowerCase() !==\n\t\t\t\t\t\t\tthis.localNamespace.toLowerCase()\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (!item.imports) {\n\t\t\t\t\t\t\titem.imports = []\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titem.imports.push(...match.schema.importsWhenRemote)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\n\t\treturn item\n\t}\n\n\tprivate getImportFromForSchema(schema: Schema): string | undefined {\n\t\tif (\n\t\t\tschema.moduleToImportFromWhenRemote &&\n\t\t\tschema.namespace !== this.localNamespace\n\t\t) {\n\t\t\treturn schema.moduleToImportFromWhenRemote\n\t\t}\n\t\tswitch (schema.namespace) {\n\t\t\tcase CORE_NAMESPACE:\n\t\t\t\tif (this.localNamespace !== CORE_NAMESPACE) {\n\t\t\t\t\treturn '@sprucelabs/spruce-core-schemas'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t}\n\n\t\treturn undefined\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAQA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,MAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,YAAA,GAAAH,sBAAA,CAAAH,OAAA;AAEA,IAAAO,QAAA,GAAAJ,sBAAA,CAAAH,OAAA;AAAoE,SA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EA,OAAOtF,SAAS;IACjB;EAAC;EAAA,OAAAR,yBAAA;AAAA;AAAA+F,OAAA,cAAA/F,yBAAA"}
|
|
1
|
+
{"version":3,"file":"SchemaTemplateItemBuilder.js","names":["_schema","require","_spruceSkillUtils","_cloneDeep","_interopRequireDefault","_isEqual","_merge","_SpruceError","_schema2","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","ownKeys","r","t","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","SchemaTemplateItemBuilder","localNamespace","_classCallCheck2","_createClass2","key","buildTemplateItems","schemasByNamespace","_this","destinationDir","undefined","schemas","namespaces","_loop","namespace","_namespaces","_i","_toConsumableArray2","map","flattenSchemas","flattened","values","schemasByKey","sorted","sort","a","b","doesADependOnB","reverse","schemaTemplateItems","buildTemplateItem","dependencies","idWithVersion","normalizeSchemaToIdWithVersion","schema","find","dep","isEqual","_this2","def","flattenSchema","_this3","_this$schemasByKey$ke","_this$schemasByKey$ke2","isNested","localSchema","cloneDeep","namedFields","pluckFields","_ref","field","type","schemasOrIdsWithVersion","SchemaField","mapFieldDefinitionToSchemasOrIdsWithVersion","originalOptions","_extends2","_objectDestructuringEmpty2","options","schemaId","schemaIds","schemaOrId","_field$options$schema","related","version","moduleToImportFromWhenRemote","isIdWithVersion","relatedIdWithVersion","SpruceError","code","id","schemaNamespace","fieldName","fieldOptions","schemaUtil","generateCacheKey","merge","_localSchema$fields","fields","dynamicFieldSignature","dynamicField","_schema$namespace","_this4","importFrom","getImportFromForSchema","item","generateNamesForSchema","toLowerCase","importsWhenLocal","imports","importsWhenRemote","_iterator","_step","_field$options$schema2","match","_item$imports","CORE_NAMESPACE","exports"],"sources":["../../src/templateItemBuilders/SchemaTemplateItemBuilder.ts"],"sourcesContent":["import {\n\tSchema,\n\tSchemaTemplateItem,\n\tSchemaField,\n\tSchemaIdWithVersion,\n\tnormalizeSchemaToIdWithVersion,\n\tisIdWithVersion,\n} from '@sprucelabs/schema'\nimport { CORE_NAMESPACE } from '@sprucelabs/spruce-skill-utils'\nimport cloneDeep from 'lodash/cloneDeep'\nimport isEqual from 'lodash/isEqual'\nimport merge from 'lodash/merge'\nimport SpruceError from '../errors/SpruceError'\nimport { SchemasByNamespace } from '../features/schema/stores/SchemaStore'\nimport schemaUtil from '../features/schema/utilities/schema.utility'\n\ninterface SchemaWithDependencies {\n\tschema: Schema\n\tdependencies: SchemaIdWithVersion[]\n\tisNested: boolean\n}\n\nexport default class SchemaTemplateItemBuilder {\n\tprivate schemasByKey: Record<string, SchemaWithDependencies> = {}\n\tprivate localNamespace: string\n\n\tpublic constructor(localNamespace: string) {\n\t\tthis.localNamespace = localNamespace\n\t}\n\n\tpublic buildTemplateItems(\n\t\tschemasByNamespace: SchemasByNamespace,\n\t\tdestinationDir = '#spruce/schemas'\n\t) {\n\t\tconst schemas: Schema[] = []\n\t\tconst namespaces = Object.keys(schemasByNamespace)\n\n\t\tfor (const namespace of namespaces) {\n\t\t\tschemas.push(\n\t\t\t\t...schemasByNamespace[namespace].map((s) => ({ namespace, ...s }))\n\t\t\t)\n\t\t}\n\n\t\tthis.flattenSchemas(schemas)\n\n\t\tconst flattened = Object.values(this.schemasByKey)\n\t\tconst sorted = flattened\n\t\t\t.sort((a, b) => {\n\t\t\t\tif (this.doesADependOnB(a, b)) {\n\t\t\t\t\treturn -1\n\t\t\t\t} else if (this.doesADependOnB(b, a)) {\n\t\t\t\t\treturn 1\n\t\t\t\t}\n\t\t\t\treturn 0\n\t\t\t})\n\t\t\t.reverse()\n\n\t\tconst schemaTemplateItems = sorted.map((s) =>\n\t\t\tthis.buildTemplateItem({\n\t\t\t\t...s,\n\t\t\t\tdestinationDir,\n\t\t\t})\n\t\t)\n\n\t\treturn schemaTemplateItems\n\t}\n\n\tprivate doesADependOnB(a: SchemaWithDependencies, b: SchemaWithDependencies) {\n\t\tconst { dependencies } = a\n\t\tconst idWithVersion = normalizeSchemaToIdWithVersion(b.schema)\n\n\t\tif (dependencies.find((dep) => isEqual(dep, idWithVersion))) {\n\t\t\treturn true\n\t\t}\n\n\t\treturn false\n\t}\n\n\tprivate flattenSchemas(schemas: Schema[]) {\n\t\tschemas.forEach((def) => {\n\t\t\tthis.flattenSchema(def)\n\t\t})\n\t}\n\n\tprivate flattenSchema(schema: Schema, isNested = false) {\n\t\tconst localSchema = cloneDeep(schema)\n\n\t\tconst namedFields = this.pluckFields(localSchema)\n\t\tconst dependencies: SchemaIdWithVersion[] = []\n\n\t\tnamedFields.forEach(({ field, name }) => {\n\t\t\tif (field.type === 'schema') {\n\t\t\t\tconst schemasOrIdsWithVersion =\n\t\t\t\t\tSchemaField.mapFieldDefinitionToSchemasOrIdsWithVersion(field)\n\n\t\t\t\tconst { ...originalOptions } = field.options\n\t\t\t\tdelete field.options.schema\n\t\t\t\tdelete field.options.schemaId\n\t\t\t\tdelete field.options.schemaIds\n\t\t\t\tdelete field.options.schemas\n\t\t\t\tfield.options.schemaIds = []\n\n\t\t\t\tschemasOrIdsWithVersion.forEach((schemaOrId) => {\n\t\t\t\t\tconst related = { ...schemaOrId }\n\n\t\t\t\t\tif (localSchema.version && !related.version) {\n\t\t\t\t\t\trelated.version = localSchema.version\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!related.namespace) {\n\t\t\t\t\t\trelated.namespace = schema.namespace\n\t\t\t\t\t}\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tlocalSchema.moduleToImportFromWhenRemote &&\n\t\t\t\t\t\t//@ts-ignore\n\t\t\t\t\t\t!related.moduleToImportFromWhenRemote &&\n\t\t\t\t\t\t!isIdWithVersion(related)\n\t\t\t\t\t) {\n\t\t\t\t\t\t//@ts-ignore\n\t\t\t\t\t\trelated.moduleToImportFromWhenRemote =\n\t\t\t\t\t\t\tlocalSchema.moduleToImportFromWhenRemote\n\t\t\t\t\t}\n\n\t\t\t\t\tconst relatedIdWithVersion = normalizeSchemaToIdWithVersion(related)\n\n\t\t\t\t\tfield.options.schemaIds?.push(relatedIdWithVersion)\n\t\t\t\t\tdependencies.push(relatedIdWithVersion)\n\n\t\t\t\t\tthis.flattenSchema(related, true)\n\t\t\t\t})\n\n\t\t\t\tif (field.options.schemaIds.length === 0) {\n\t\t\t\t\tthrow new SpruceError({\n\t\t\t\t\t\tcode: 'SCHEMA_TEMPLATE_ITEM_BUILDING_FAILED',\n\t\t\t\t\t\tschemaId: schema.id,\n\t\t\t\t\t\tschemaNamespace: schema.namespace as string,\n\t\t\t\t\t\tfieldName: name,\n\t\t\t\t\t\tfieldOptions: originalOptions,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\n\t\tconst key = schemaUtil.generateCacheKey(localSchema)\n\t\tthis.schemasByKey[key] = merge(this.schemasByKey[key] ?? {}, {\n\t\t\tschema: localSchema,\n\t\t\tdependencies,\n\t\t\tisNested: this.schemasByKey[key]?.isNested === false ? false : isNested,\n\t\t})\n\t}\n\n\tprivate pluckFields(localSchema: Schema) {\n\t\tconst fields = localSchema.dynamicFieldSignature\n\t\t\t? { dynamicField: localSchema.dynamicFieldSignature }\n\t\t\t: localSchema.fields ?? {}\n\n\t\tconst namedFields = Object.keys(fields).map((name) => ({\n\t\t\tname,\n\t\t\tfield: fields[name],\n\t\t}))\n\t\treturn namedFields\n\t}\n\n\tprivate buildTemplateItem(options: {\n\t\tschema: Schema\n\t\tisNested: boolean\n\t\tdestinationDir: string\n\t}): SchemaTemplateItem {\n\t\tconst { schema, isNested, destinationDir } = options\n\t\tconst namespace = schema.namespace ?? this.localNamespace\n\n\t\tconst importFrom = this.getImportFromForSchema(schema)\n\t\tconst item: SchemaTemplateItem = {\n\t\t\tid: schema.id,\n\t\t\tnamespace,\n\t\t\tschema,\n\t\t\t...schemaUtil.generateNamesForSchema(schema),\n\t\t\tisNested,\n\t\t\tdestinationDir,\n\t\t}\n\n\t\tif (importFrom) {\n\t\t\titem.importFrom = importFrom\n\t\t}\n\n\t\tif (\n\t\t\tnamespace.toLowerCase() === this.localNamespace.toLowerCase() &&\n\t\t\tschema.importsWhenLocal\n\t\t) {\n\t\t\titem.imports = [...schema.importsWhenLocal]\n\t\t} else if (\n\t\t\tnamespace.toLowerCase() !== this.localNamespace.toLowerCase() &&\n\t\t\tschema.importsWhenRemote\n\t\t) {\n\t\t\titem.imports = [...schema.importsWhenRemote]\n\t\t}\n\n\t\tconst namedFields = this.pluckFields(schema)\n\n\t\tfor (const { field } of namedFields) {\n\t\t\tif (field.type === 'schema') {\n\t\t\t\tfield.options.schemaIds?.forEach((idWithVersion) => {\n\t\t\t\t\tconst key = schemaUtil.generateCacheKey(idWithVersion)\n\t\t\t\t\tconst match = this.schemasByKey[key]\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tmatch.schema.importsWhenRemote &&\n\t\t\t\t\t\tmatch.schema.namespace &&\n\t\t\t\t\t\tmatch.schema.namespace.toLowerCase() !==\n\t\t\t\t\t\t\tthis.localNamespace.toLowerCase()\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (!item.imports) {\n\t\t\t\t\t\t\titem.imports = []\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titem.imports.push(...match.schema.importsWhenRemote)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\n\t\treturn item\n\t}\n\n\tprivate getImportFromForSchema(schema: Schema): string | undefined {\n\t\tif (\n\t\t\tschema.moduleToImportFromWhenRemote &&\n\t\t\tschema.namespace !== this.localNamespace\n\t\t) {\n\t\t\treturn schema.moduleToImportFromWhenRemote\n\t\t}\n\t\tswitch (schema.namespace) {\n\t\t\tcase CORE_NAMESPACE:\n\t\t\t\tif (this.localNamespace !== CORE_NAMESPACE) {\n\t\t\t\t\treturn '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;QAAA6H,SAAA,CAAAjI,CAAA;MAAA;MAED,OAAO2H,IAAI;IACZ;EAAC;IAAAhF,GAAA;IAAA9C,KAAA,EAED,SAAA6H,uBAA+BlD,MAAc,EAAsB;MAClE,IACCA,MAAM,CAAC+B,4BAA4B,IACnC/B,MAAM,CAACpB,SAAS,KAAK,IAAI,CAACZ,cAAc,EACvC;QACD,OAAOgC,MAAM,CAAC+B,4BAA4B;MAC3C;MACA,QAAQ/B,MAAM,CAACpB,SAAS;QACvB,KAAKkF,gCAAc;UAClB,IAAI,IAAI,CAAC9F,cAAc,KAAK8F,gCAAc,EAAE;YAC3C,OAAO,iCAAiC;UACzC;UACA;MACF;MAEA,OAAOtF,SAAS;IACjB;EAAC;EAAA,OAAAT,yBAAA;AAAA;AAAAgG,OAAA,cAAAhG,yBAAA"}
|
|
@@ -51,8 +51,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
51
51
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
52
52
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
53
53
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
54
|
-
function ownKeys(
|
|
55
|
-
function _objectSpread(
|
|
54
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
55
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
56
56
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
57
57
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
58
58
|
var AbstractCliTest = /*#__PURE__*/function (_AbstractSpruceTest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractCliTest.js","names":["_path","_interopRequireDefault","require","_globby","_mercuryClient","_schema","_spruceSkillUtils","_spruceTemplates","_testUtils","_interopRequireWildcard","_fsExtra","uuid","_ActionExecuter2","_ActionFactory","_EventStore","_FeatureInstallerFactory","_OnboardingStore","_SkillStore","_GlobalEmitter","_SpyInterface","_CommandService","_ImportService","_LintService","_ServiceFactory2","_StoreFactory2","_WriterFactory2","_CommandFaker","_FeatureFixture2","_MercuryFixture","_OrganizationFixture","_PersonFixture","_SkillFixture","_ViewFixture","_test","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","step","next","_e2","minLen","_arrayLikeToArray","toString","slice","constructor","name","from","test","arr","len","arr2","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","enumerable","push","apply","_objectSpread","target","arguments","source","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","AbstractCliTest","_AbstractSpruceTest","_inherits2","_super","_classCallCheck2","_createClass2","_beforeAll","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","_get2","cleanTestDirsAndFiles","LintService","disableLinting","ImportService","setCacheDir","diskUtil","createRandomTempDir","enableCaching","process","env","ENABLE_INSTALL_ENTERTAINMENT","originalEnv","stop","beforeAll","_beforeEach","_callee2","_callee2$","_context2","_writers","ActionFactory","clearActionOverrides","testUtil","startLogTimer","SchemaRegistry","getInstance","forgetAllSchemas","cwd","freshTmpDir","homeDir","AuthService","_emitter","undefined","_featureInstaller","OnboardingStore","overrideCwd","ui","reset","invocations","setCursorPosition","x","y","clearFixtures","clearCache","SkillStore","clearCurrentSkill","EventStore","CommandService","clearFakedResponses","MercuryClientFactory","setIsTestMode","commandFaker","CommandFaker","beforeEach","_afterEach","_callee3","_this$organizationFix","_this$mercuryFixture","_this$_ui","_callee3$","_context3","organizationFixture","clearAllOrgs","mercuryFixture","disconnectAll","_ui","isWaitingForInput","Error","doesDirExist","shouldClearCache","deleteDir","shouldCleanupAfterEach","FeatureFixture","deleteOldSkillDirs","afterEach","_afterAll","_callee4","_callee4$","_context4","shouldCleanupAfterAll","afterAll","_cleanTestDirsAndFiles","_callee5","pattern","matches","_iterator","_step","match","_callee5$","_context5","resolveTestPath","globby","sent","deleteFile","personFixture","skillFixture","viewFixture","tmpDirectory","resolveTestDir","v4","fs","ensureDirSync","SpyInterface","CliGlobalEmitter","Emitter","emitter","_len","pathAfterTestDirsAndFiles","_key","pathUtil","join","cliRoot","concat","_Cli","_callee6","options","_callee6$","_context6","abrupt","Cli","_x6","_linkLocalPackages","_callee7","fixture","_callee7$","_context7","linkLocalPackages","_Service","Service","_x","_x2","type","sf","ServiceFactory","serviceFactory","apiClientFactory","getMercuryFixture","getApiClientFactory","featureInstaller","MercuryFixture","PersonFixture","getViewFixture","viewWriter","writers","Writer","fileDescriptions","ViewFixture","Action","WriterFactory","templates","settings","_skipInstallSkillPrompts","_callee8","execute","promise","results","_callee8$","_context8","waitForInput","sendInput","skipInstallSkillPrompts","_x7","getOrganizationFixture","OrganizationFixture","people","StoreFactory","getSkillFixture","SkillFixture","resolveHashSprucePath","_len2","filePath","_key2","installer","FeatureInstaller","_options$emitter","storeFactory","actionExecuter","ActionExecuter","FeatureInstallerFactory","WithAllFeatures","Store","code","_waitForInput","_callee9","_callee9$","_context9","_assertIsFeatureInstalled","_callee10","isInstalled","_callee10$","_context10","assert","isTrue","assertIsFeatureInstalled","_x8","_assertValidActionResponseFiles","_callee11","_results$files","_iterator2","_step2","file","_callee11$","_context11","files","assertFilePassesTypeChecks","path","t0","finish","assertValidActionResponseFiles","_x9","_assertFilePassesTypeChecks","_callee12","checker","_callee12$","_context12","check","_x10","_connectToApi","_callee13","_callee13$","_context13","connectToApi","_x11","_openInVsCode","_callee14","_ref","_options$file","_options$timeout","_callee14$","_context14","all","dir","wait","timeout","openInVsCode","_x12","_openInFinder","_callee15","_ref2","_options$file2","_options$timeout2","_callee15$","_context15","openInFinder","_x13","log","_Action","_x3","_x4","_x5","featureCode","actionCode","executer","shouldThrowOnListenerError","_this","actionFactory","writerFactory","optionOverrides","shouldInstallMissingDependencies","featureInstallerFactory","shouldAutoHandleDependencies","selectOptionBasedOnLabel","label","last","getLastInvocation","doesInclude","choices","find","AbstractSpruceTest","exports","__dirname"],"sources":["../../src/tests/AbstractCliTest.ts"],"sourcesContent":["import pathUtil from 'path'\nimport globby from '@sprucelabs/globby'\nimport { MercuryClientFactory } from '@sprucelabs/mercury-client'\nimport { SchemaRegistry } from '@sprucelabs/schema'\nimport { AuthService, diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { templates } from '@sprucelabs/spruce-templates'\nimport AbstractSpruceTest, { assert } from '@sprucelabs/test-utils'\nimport fs from 'fs-extra'\nimport * as uuid from 'uuid'\nimport AbstractAction from '../features/AbstractAction'\nimport { FeatureOptions } from '../features/AbstractFeature'\nimport ActionExecuter, {\n\tActionExecuterOptions,\n} from '../features/ActionExecuter'\nimport ActionFactory from '../features/ActionFactory'\nimport EventStore from '../features/event/stores/EventStore'\nimport FeatureInstaller from '../features/FeatureInstaller'\nimport FeatureInstallerFactory from '../features/FeatureInstallerFactory'\nimport { FeatureActionResponse, FeatureCode } from '../features/features.types'\nimport OnboardingStore from '../features/onboard/stores/OnboardingStore'\nimport SkillStore from '../features/skill/stores/SkillStore'\nimport CliGlobalEmitter, { GlobalEmitter } from '../GlobalEmitter'\nimport SpyInterface from '../interfaces/SpyInterface'\nimport CommandService from '../services/CommandService'\nimport ImportService from '../services/ImportService'\nimport LintService from '../services/LintService'\nimport ServiceFactory, { Service, ServiceMap } from '../services/ServiceFactory'\nimport StoreFactory, {\n\tStoreCode,\n\tCreateStoreOptions,\n\tStoreFactoryOptions,\n\tStoreMap,\n} from '../stores/StoreFactory'\nimport { ApiClientFactoryOptions } from '../types/apiClient.types'\nimport { CliBootOptions, OptionOverrides } from '../types/cli.types'\nimport WriterFactory from '../writers/WriterFactory'\nimport CommandFaker from './CommandFaker'\nimport FeatureFixture, {\n\tFeatureFixtureOptions,\n} from './fixtures/FeatureFixture'\nimport MercuryFixture from './fixtures/MercuryFixture'\nimport OrganizationFixture from './fixtures/OrganizationFixture'\nimport PersonFixture from './fixtures/PersonFixture'\nimport SkillFixture from './fixtures/SkillFixture'\nimport ViewFixture from './fixtures/ViewFixture'\nimport testUtil from './utilities/test.utility'\n\nexport default abstract class AbstractCliTest extends AbstractSpruceTest {\n\tprotected static cliRoot = pathUtil.join(__dirname, '..')\n\tprotected static homeDir: string\n\tprotected static commandFaker: CommandFaker\n\n\tprivate static _ui: SpyInterface\n\tprivate static _emitter?: GlobalEmitter\n\tprivate static mercuryFixture?: MercuryFixture\n\tprivate static personFixture?: PersonFixture\n\tprivate static organizationFixture?: OrganizationFixture\n\tprivate static skillFixture?: SkillFixture\n\tprivate static _featureInstaller?: FeatureInstaller\n\tprivate static viewFixture?: ViewFixture\n\tprivate static originalEnv: { [x: string]: string | undefined }\n\tprivate static _writers?: WriterFactory\n\n\tprotected static async beforeAll() {\n\t\tawait super.beforeAll()\n\t\tawait this.cleanTestDirsAndFiles()\n\n\t\tLintService.disableLinting()\n\n\t\tImportService.setCacheDir(diskUtil.createRandomTempDir())\n\t\tImportService.enableCaching()\n\n\t\tprocess.env.ENABLE_INSTALL_ENTERTAINMENT = 'false'\n\n\t\tthis.originalEnv = { ...process.env }\n\t}\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\n\t\tdelete this._writers\n\n\t\tActionFactory.clearActionOverrides()\n\n\t\t//@ts-ignore\n\t\tprocess.env = { ...this.originalEnv }\n\n\t\ttestUtil.startLogTimer()\n\n\t\tSchemaRegistry.getInstance().forgetAllSchemas()\n\n\t\tthis.cwd = this.freshTmpDir()\n\t\tthis.homeDir = this.freshTmpDir()\n\n\t\tAuthService.homeDir = this.homeDir\n\n\t\tthis._emitter = undefined\n\t\tthis._featureInstaller = undefined\n\n\t\tOnboardingStore.overrideCwd(diskUtil.createRandomTempDir())\n\n\t\tthis.ui.reset()\n\t\tthis.ui.invocations = []\n\t\tthis.ui.setCursorPosition({ x: 0, y: 0 })\n\n\t\tthis.clearFixtures()\n\n\t\tImportService.clearCache()\n\t\tSkillStore.clearCurrentSkill()\n\t\tEventStore.clearCache()\n\t\tCommandService.clearFakedResponses()\n\t\tMercuryClientFactory.reset()\n\t\tMercuryClientFactory.setIsTestMode(false)\n\n\t\tthis.commandFaker = new CommandFaker()\n\t}\n\n\tprotected static async afterEach() {\n\t\tawait super.afterEach()\n\n\t\tawait this.organizationFixture?.clearAllOrgs()\n\t\tawait this.mercuryFixture?.disconnectAll()\n\n\t\tthis.clearFixtures()\n\n\t\tif (this._ui?.isWaitingForInput()) {\n\t\t\tthrow new Error(\n\t\t\t\t`Terminal interface is waiting for input. Make sure you are invoking this.term.sendInput() as many times as needed.`\n\t\t\t)\n\t\t}\n\n\t\tif (diskUtil.doesDirExist(this.cwd) && testUtil.shouldClearCache()) {\n\t\t\tdiskUtil.deleteDir(this.cwd)\n\t\t}\n\n\t\tif (diskUtil.doesDirExist(this.homeDir) && testUtil.shouldClearCache()) {\n\t\t\tdiskUtil.deleteDir(this.homeDir)\n\t\t}\n\n\t\tif (testUtil.shouldCleanupAfterEach()) {\n\t\t\tFeatureFixture.deleteOldSkillDirs()\n\t\t}\n\t}\n\n\tprotected static async afterAll() {\n\t\tawait super.afterAll()\n\t\tif (testUtil.shouldCleanupAfterAll()) {\n\t\t\tFeatureFixture.deleteOldSkillDirs()\n\t\t}\n\t}\n\n\tprivate static async cleanTestDirsAndFiles() {\n\t\tconst pattern = this.resolveTestPath('**/*.d.ts')\n\t\tconst matches = await globby(pattern)\n\n\t\tfor (const match of matches) {\n\t\t\tdiskUtil.deleteFile(match)\n\t\t}\n\t}\n\n\tprivate static clearFixtures() {\n\t\tthis._emitter = undefined\n\t\tthis.mercuryFixture = undefined\n\t\tthis.organizationFixture = undefined\n\t\tthis.personFixture = undefined\n\t\tthis.skillFixture = undefined\n\t\tthis.viewFixture = undefined\n\t}\n\n\tprotected static freshTmpDir() {\n\t\tconst tmpDirectory = testUtil.resolveTestDir(uuid.v4())\n\t\tfs.ensureDirSync(tmpDirectory)\n\t\treturn tmpDirectory\n\t}\n\n\tprotected static get ui() {\n\t\tif (!this._ui) {\n\t\t\tthis._ui = new SpyInterface()\n\t\t}\n\n\t\treturn this._ui\n\t}\n\n\tprotected static get emitter() {\n\t\tif (!this._emitter) {\n\t\t\tthis._emitter = CliGlobalEmitter.Emitter()\n\t\t}\n\t\treturn this._emitter\n\t}\n\n\tprotected static set emitter(emitter: GlobalEmitter) {\n\t\tthis._emitter = emitter\n\t}\n\n\tprotected static resolveTestPath(...pathAfterTestDirsAndFiles: string[]) {\n\t\treturn pathUtil.join(\n\t\t\tthis.cliRoot,\n\t\t\t'__tests__',\n\t\t\t'testDirsAndFiles',\n\t\t\t...pathAfterTestDirsAndFiles\n\t\t)\n\t}\n\n\tprotected static async Cli(options?: CliBootOptions) {\n\t\treturn this.FeatureFixture(options).Cli({\n\t\t\tcwd: this.cwd,\n\t\t\thomeDir: this.homeDir,\n\t\t\t...(options ?? {}),\n\t\t})\n\t}\n\n\tprotected static async linkLocalPackages() {\n\t\tconst fixture = this.FeatureFixture()\n\t\tawait fixture.linkLocalPackages()\n\t}\n\n\tprotected static Service<S extends Service>(\n\t\ttype: S,\n\t\tcwd?: string\n\t): ServiceMap[S] {\n\t\tconst sf = this.ServiceFactory()\n\t\treturn sf.Service(cwd ?? this.cwd, type)\n\t}\n\n\tprotected static ServiceFactory() {\n\t\treturn new ServiceFactory()\n\t}\n\n\tprotected static FeatureFixture(options?: Partial<FeatureFixtureOptions>) {\n\t\treturn new FeatureFixture({\n\t\t\tcwd: this.cwd,\n\t\t\tserviceFactory: this.ServiceFactory(),\n\t\t\tui: this.ui,\n\t\t\tapiClientFactory: this.getMercuryFixture().getApiClientFactory(),\n\t\t\tfeatureInstaller: this.featureInstaller,\n\t\t\temitter: this.emitter,\n\t\t\t...options,\n\t\t})\n\t}\n\n\tprotected static getMercuryFixture() {\n\t\tif (!this.mercuryFixture) {\n\t\t\tthis.mercuryFixture = new MercuryFixture(this.cwd, this.ServiceFactory())\n\t\t}\n\n\t\treturn this.mercuryFixture\n\t}\n\n\tprotected static get people() {\n\t\tif (!this.personFixture) {\n\t\t\tthis.personFixture = new PersonFixture(\n\t\t\t\tthis.getMercuryFixture().getApiClientFactory()\n\t\t\t)\n\t\t}\n\n\t\treturn this.personFixture\n\t}\n\n\tprotected static getViewFixture() {\n\t\tif (!this.viewFixture) {\n\t\t\tconst viewWriter = this.writers.Writer('view', { fileDescriptions: [] })\n\t\t\tthis.viewFixture = new ViewFixture(\n\t\t\t\tthis.cwd,\n\t\t\t\tviewWriter,\n\t\t\t\tthis.Action('view', 'sync')\n\t\t\t)\n\t\t}\n\n\t\treturn this.viewFixture\n\t}\n\n\tprotected static get writers() {\n\t\tif (!this._writers) {\n\t\t\tthis._writers = this.WriterFactory()\n\t\t}\n\n\t\treturn this._writers\n\t}\n\n\tprivate static WriterFactory() {\n\t\treturn new WriterFactory({\n\t\t\ttemplates,\n\t\t\tui: this.ui,\n\t\t\tsettings: this.Service('settings'),\n\t\t})\n\t}\n\n\tprotected static async skipInstallSkillPrompts<\n\t\tE extends () => Promise<FeatureActionResponse>\n\t>(\n\t\texecute?: E\n\t): Promise<E extends undefined ? undefined : FeatureActionResponse> {\n\t\tconst promise = execute?.()\n\n\t\tawait this.waitForInput()\n\t\tawait this.ui.sendInput('n')\n\n\t\tawait this.waitForInput()\n\t\tawait this.ui.sendInput('')\n\n\t\tconst results = await promise\n\n\t\treturn results as any\n\t}\n\n\tprotected static getOrganizationFixture() {\n\t\tif (!this.organizationFixture) {\n\t\t\tthis.organizationFixture = new OrganizationFixture(\n\t\t\t\tthis.people,\n\t\t\t\tthis.StoreFactory()\n\t\t\t)\n\t\t}\n\n\t\treturn this.organizationFixture\n\t}\n\n\tprotected static getSkillFixture() {\n\t\tif (!this.skillFixture) {\n\t\t\tthis.skillFixture = new SkillFixture(\n\t\t\t\tthis.people,\n\t\t\t\tthis.StoreFactory(),\n\t\t\t\tthis.getMercuryFixture().getApiClientFactory()\n\t\t\t)\n\t\t}\n\n\t\treturn this.skillFixture\n\t}\n\n\tprotected static resolveHashSprucePath(...filePath: string[]) {\n\t\treturn diskUtil.resolveHashSprucePath(this.cwd, ...filePath)\n\t}\n\n\tprotected static get featureInstaller() {\n\t\tif (!this._featureInstaller) {\n\t\t\tconst installer = this.FeatureInstaller()\n\t\t\tthis._featureInstaller = installer\n\t\t}\n\n\t\treturn this._featureInstaller\n\t}\n\n\tprotected static set featureInstaller(installer: FeatureInstaller) {\n\t\tthis._featureInstaller = installer\n\t}\n\n\tprotected static FeatureInstaller(options?: Partial<FeatureOptions>) {\n\t\tconst serviceFactory = this.ServiceFactory()\n\t\tconst storeFactory = this.StoreFactory(options)\n\t\tconst emitter = options?.emitter ?? this.emitter\n\t\tconst apiClientFactory = this.getMercuryFixture().getApiClientFactory()\n\n\t\tconst actionExecuter = this.ActionExecuter()\n\n\t\tconst installer = FeatureInstallerFactory.WithAllFeatures({\n\t\t\tcwd: this.cwd,\n\t\t\tserviceFactory,\n\t\t\tstoreFactory,\n\t\t\tui: this.ui,\n\t\t\temitter,\n\t\t\tapiClientFactory,\n\t\t\tactionExecuter,\n\t\t\t...options,\n\t\t})\n\t\treturn installer\n\t}\n\n\tprotected static StoreFactory(options?: Partial<StoreFactoryOptions>) {\n\t\tconst serviceFactory = this.ServiceFactory()\n\n\t\treturn new StoreFactory({\n\t\t\tcwd: this.cwd,\n\t\t\tserviceFactory,\n\t\t\thomeDir: this.homeDir,\n\t\t\tapiClientFactory: this.getMercuryFixture().getApiClientFactory(),\n\t\t\temitter: this.emitter,\n\t\t\t...options,\n\t\t})\n\t}\n\n\tprotected static Store<C extends StoreCode>(\n\t\tcode: C,\n\t\toptions?: CreateStoreOptions<C>\n\t): StoreMap[C] {\n\t\treturn this.StoreFactory().Store(code, {\n\t\t\tcwd: this.cwd,\n\t\t\t...(options as any),\n\t\t})\n\t}\n\n\tprotected static async waitForInput() {\n\t\treturn this.ui.waitForInput()\n\t}\n\n\tprotected static async assertIsFeatureInstalled(code: FeatureCode) {\n\t\tconst isInstalled = await this.featureInstaller.isInstalled(code)\n\t\tassert.isTrue(isInstalled)\n\t}\n\n\tprotected static async assertValidActionResponseFiles(\n\t\tresults: FeatureActionResponse\n\t) {\n\t\tfor (const file of results.files ?? []) {\n\t\t\tawait this.assertFilePassesTypeChecks(file.path)\n\t\t}\n\n\t\t// await Promise.all(\n\t\t// \t(results.files ?? []).map((file) => {\n\t\t// \t\tconst checker = this.Service('typeChecker')\n\t\t// \t\treturn checker.check(file.path)\n\t\t// \t})\n\t\t// )\n\t}\n\n\tprotected static async assertFilePassesTypeChecks(file: string) {\n\t\tconst checker = this.Service('typeChecker')\n\t\tawait checker.check(file)\n\t}\n\n\tprotected static async connectToApi(options?: ApiClientFactoryOptions) {\n\t\treturn this.getMercuryFixture().connectToApi(options)\n\t}\n\n\tprotected static async openInVsCode(options?: {\n\t\tfile?: string\n\t\tdir?: string\n\t\ttimeout?: number\n\t}) {\n\t\tawait this.Action('vscode', 'setup').execute({ all: true })\n\n\t\tawait this.Service('command').execute(\n\t\t\t`code ${options?.file ?? options?.dir ?? this.cwd}`\n\t\t)\n\t\tawait this.wait(options?.timeout ?? 99999999)\n\t}\n\n\tprotected static async openInFinder(options?: {\n\t\tfile?: string\n\t\tdir?: string\n\t\ttimeout?: number\n\t}) {\n\t\tawait this.Service('command').execute(\n\t\t\t`open ${options?.file ?? options?.dir ?? this.cwd}`\n\t\t)\n\t\tawait this.wait(options?.timeout ?? 99999999)\n\t}\n\n\tprotected static log(...args: any[]) {\n\t\ttestUtil.log(...args)\n\t}\n\n\tprotected static Action<\n\t\tAction extends AbstractAction = AbstractAction,\n\t\tF extends FeatureCode = FeatureCode\n\t>(featureCode: F, actionCode: string, options?: ExecuterOptions): Action {\n\t\tconst executer = this.ActionExecuter({\n\t\t\tshouldThrowOnListenerError: true,\n\t\t\t...options,\n\t\t}).Action(featureCode, actionCode)\n\n\t\treturn executer as any\n\t}\n\n\tprotected static ActionExecuter(options?: ExecuterOptions) {\n\t\tconst serviceFactory = this.ServiceFactory()\n\n\t\tconst actionFactory = new ActionFactory({\n\t\t\twriterFactory: this.writers,\n\t\t\tui: this.ui,\n\t\t\temitter: this.emitter,\n\t\t\tapiClientFactory: this.getMercuryFixture().getApiClientFactory(),\n\t\t\tcwd: this.cwd,\n\t\t\tserviceFactory,\n\t\t\tstoreFactory: this.StoreFactory(),\n\t\t\ttemplates,\n\t\t\toptionOverrides: {\n\t\t\t\t'sync.schemas': {\n\t\t\t\t\tshouldInstallMissingDependencies: true,\n\t\t\t\t},\n\t\t\t\t...options?.optionOverrides,\n\t\t\t},\n\t\t})\n\n\t\tconst executer = new ActionExecuter({\n\t\t\tui: this.ui,\n\t\t\temitter: this.emitter,\n\t\t\tactionFactory,\n\t\t\tfeatureInstallerFactory: () => {\n\t\t\t\treturn this.featureInstaller\n\t\t\t},\n\t\t\tshouldAutoHandleDependencies: false,\n\t\t\t...options,\n\t\t})\n\n\t\treturn executer\n\t}\n\n\tprotected static selectOptionBasedOnLabel(label: string) {\n\t\tconst last = this.ui.getLastInvocation()\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tlabel,\n\t\t})\n\n\t\tconst match = last.options.options.choices.find(\n\t\t\t(o: any) => o.label === label\n\t\t)\n\n\t\tvoid this.ui.sendInput(`${match.value}`)\n\t}\n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eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe"}
|
|
1
|
+
{"version":3,"file":"AbstractCliTest.js","names":["_path","_interopRequireDefault","require","_globby","_mercuryClient","_schema","_spruceSkillUtils","_spruceTemplates","_testUtils","_interopRequireWildcard","_fsExtra","uuid","_ActionExecuter2","_ActionFactory","_EventStore","_FeatureInstallerFactory","_OnboardingStore","_SkillStore","_GlobalEmitter","_SpyInterface","_CommandService","_ImportService","_LintService","_ServiceFactory2","_StoreFactory2","_WriterFactory2","_CommandFaker","_FeatureFixture2","_MercuryFixture","_OrganizationFixture","_PersonFixture","_SkillFixture","_ViewFixture","_test","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","step","next","_e2","minLen","_arrayLikeToArray","toString","slice","constructor","name","from","test","arr","len","arr2","ownKeys","r","t","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","AbstractCliTest","_AbstractSpruceTest","_inherits2","_super","_classCallCheck2","_createClass2","_beforeAll","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","_get2","cleanTestDirsAndFiles","LintService","disableLinting","ImportService","setCacheDir","diskUtil","createRandomTempDir","enableCaching","process","env","ENABLE_INSTALL_ENTERTAINMENT","originalEnv","stop","beforeAll","_beforeEach","_callee2","_callee2$","_context2","_writers","ActionFactory","clearActionOverrides","testUtil","startLogTimer","SchemaRegistry","getInstance","forgetAllSchemas","cwd","freshTmpDir","homeDir","AuthService","_emitter","undefined","_featureInstaller","OnboardingStore","overrideCwd","ui","reset","invocations","setCursorPosition","x","y","clearFixtures","clearCache","SkillStore","clearCurrentSkill","EventStore","CommandService","clearFakedResponses","MercuryClientFactory","setIsTestMode","commandFaker","CommandFaker","beforeEach","_afterEach","_callee3","_this$organizationFix","_this$mercuryFixture","_this$_ui","_callee3$","_context3","organizationFixture","clearAllOrgs","mercuryFixture","disconnectAll","_ui","isWaitingForInput","Error","doesDirExist","shouldClearCache","deleteDir","shouldCleanupAfterEach","FeatureFixture","deleteOldSkillDirs","afterEach","_afterAll","_callee4","_callee4$","_context4","shouldCleanupAfterAll","afterAll","_cleanTestDirsAndFiles","_callee5","pattern","matches","_iterator","_step","match","_callee5$","_context5","resolveTestPath","globby","sent","deleteFile","personFixture","skillFixture","viewFixture","tmpDirectory","resolveTestDir","v4","fs","ensureDirSync","SpyInterface","CliGlobalEmitter","Emitter","emitter","_len","pathAfterTestDirsAndFiles","_key","pathUtil","join","cliRoot","concat","_Cli","_callee6","options","_callee6$","_context6","abrupt","Cli","_x6","_linkLocalPackages","_callee7","fixture","_callee7$","_context7","linkLocalPackages","_Service","Service","_x","_x2","type","sf","ServiceFactory","serviceFactory","apiClientFactory","getMercuryFixture","getApiClientFactory","featureInstaller","MercuryFixture","PersonFixture","getViewFixture","viewWriter","writers","Writer","fileDescriptions","ViewFixture","Action","WriterFactory","templates","settings","_skipInstallSkillPrompts","_callee8","execute","promise","results","_callee8$","_context8","waitForInput","sendInput","skipInstallSkillPrompts","_x7","getOrganizationFixture","OrganizationFixture","people","StoreFactory","getSkillFixture","SkillFixture","resolveHashSprucePath","_len2","filePath","_key2","installer","FeatureInstaller","_options$emitter","storeFactory","actionExecuter","ActionExecuter","FeatureInstallerFactory","WithAllFeatures","Store","code","_waitForInput","_callee9","_callee9$","_context9","_assertIsFeatureInstalled","_callee10","isInstalled","_callee10$","_context10","assert","isTrue","assertIsFeatureInstalled","_x8","_assertValidActionResponseFiles","_callee11","_results$files","_iterator2","_step2","file","_callee11$","_context11","files","assertFilePassesTypeChecks","path","t0","finish","assertValidActionResponseFiles","_x9","_assertFilePassesTypeChecks","_callee12","checker","_callee12$","_context12","check","_x10","_connectToApi","_callee13","_callee13$","_context13","connectToApi","_x11","_openInVsCode","_callee14","_ref","_options$file","_options$timeout","_callee14$","_context14","all","dir","wait","timeout","openInVsCode","_x12","_openInFinder","_callee15","_ref2","_options$file2","_options$timeout2","_callee15$","_context15","openInFinder","_x13","log","_Action","_x3","_x4","_x5","featureCode","actionCode","executer","shouldThrowOnListenerError","_this","actionFactory","writerFactory","optionOverrides","shouldInstallMissingDependencies","featureInstallerFactory","shouldAutoHandleDependencies","selectOptionBasedOnLabel","label","last","getLastInvocation","doesInclude","choices","find","AbstractSpruceTest","exports","__dirname"],"sources":["../../src/tests/AbstractCliTest.ts"],"sourcesContent":["import pathUtil from 'path'\nimport globby from '@sprucelabs/globby'\nimport { MercuryClientFactory } from '@sprucelabs/mercury-client'\nimport { SchemaRegistry } from '@sprucelabs/schema'\nimport { AuthService, diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { templates } from '@sprucelabs/spruce-templates'\nimport AbstractSpruceTest, { assert } from '@sprucelabs/test-utils'\nimport fs from 'fs-extra'\nimport * as uuid from 'uuid'\nimport AbstractAction from '../features/AbstractAction'\nimport { FeatureOptions } from '../features/AbstractFeature'\nimport ActionExecuter, {\n\tActionExecuterOptions,\n} from '../features/ActionExecuter'\nimport ActionFactory from '../features/ActionFactory'\nimport EventStore from '../features/event/stores/EventStore'\nimport FeatureInstaller from '../features/FeatureInstaller'\nimport FeatureInstallerFactory from '../features/FeatureInstallerFactory'\nimport { FeatureActionResponse, FeatureCode } from '../features/features.types'\nimport OnboardingStore from '../features/onboard/stores/OnboardingStore'\nimport SkillStore from '../features/skill/stores/SkillStore'\nimport CliGlobalEmitter, { GlobalEmitter } from '../GlobalEmitter'\nimport SpyInterface from '../interfaces/SpyInterface'\nimport CommandService from '../services/CommandService'\nimport ImportService from '../services/ImportService'\nimport LintService from '../services/LintService'\nimport ServiceFactory, { Service, ServiceMap } from '../services/ServiceFactory'\nimport StoreFactory, {\n\tStoreCode,\n\tCreateStoreOptions,\n\tStoreFactoryOptions,\n\tStoreMap,\n} from '../stores/StoreFactory'\nimport { ApiClientFactoryOptions } from '../types/apiClient.types'\nimport { CliBootOptions, OptionOverrides } from '../types/cli.types'\nimport WriterFactory from '../writers/WriterFactory'\nimport CommandFaker from './CommandFaker'\nimport FeatureFixture, {\n\tFeatureFixtureOptions,\n} from './fixtures/FeatureFixture'\nimport MercuryFixture from './fixtures/MercuryFixture'\nimport OrganizationFixture from './fixtures/OrganizationFixture'\nimport PersonFixture from './fixtures/PersonFixture'\nimport SkillFixture from './fixtures/SkillFixture'\nimport ViewFixture from './fixtures/ViewFixture'\nimport testUtil from './utilities/test.utility'\n\nexport default abstract class AbstractCliTest extends AbstractSpruceTest {\n\tprotected static cliRoot = pathUtil.join(__dirname, '..')\n\tprotected static homeDir: string\n\tprotected static commandFaker: CommandFaker\n\n\tprivate static _ui: SpyInterface\n\tprivate static _emitter?: GlobalEmitter\n\tprivate static mercuryFixture?: MercuryFixture\n\tprivate static personFixture?: PersonFixture\n\tprivate static organizationFixture?: OrganizationFixture\n\tprivate static skillFixture?: SkillFixture\n\tprivate static _featureInstaller?: FeatureInstaller\n\tprivate static viewFixture?: ViewFixture\n\tprivate static originalEnv: { [x: string]: string | undefined }\n\tprivate static _writers?: WriterFactory\n\n\tprotected static async beforeAll() {\n\t\tawait super.beforeAll()\n\t\tawait this.cleanTestDirsAndFiles()\n\n\t\tLintService.disableLinting()\n\n\t\tImportService.setCacheDir(diskUtil.createRandomTempDir())\n\t\tImportService.enableCaching()\n\n\t\tprocess.env.ENABLE_INSTALL_ENTERTAINMENT = 'false'\n\n\t\tthis.originalEnv = { ...process.env }\n\t}\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\n\t\tdelete this._writers\n\n\t\tActionFactory.clearActionOverrides()\n\n\t\t//@ts-ignore\n\t\tprocess.env = { ...this.originalEnv }\n\n\t\ttestUtil.startLogTimer()\n\n\t\tSchemaRegistry.getInstance().forgetAllSchemas()\n\n\t\tthis.cwd = this.freshTmpDir()\n\t\tthis.homeDir = this.freshTmpDir()\n\n\t\tAuthService.homeDir = this.homeDir\n\n\t\tthis._emitter = undefined\n\t\tthis._featureInstaller = undefined\n\n\t\tOnboardingStore.overrideCwd(diskUtil.createRandomTempDir())\n\n\t\tthis.ui.reset()\n\t\tthis.ui.invocations = []\n\t\tthis.ui.setCursorPosition({ x: 0, y: 0 })\n\n\t\tthis.clearFixtures()\n\n\t\tImportService.clearCache()\n\t\tSkillStore.clearCurrentSkill()\n\t\tEventStore.clearCache()\n\t\tCommandService.clearFakedResponses()\n\t\tMercuryClientFactory.reset()\n\t\tMercuryClientFactory.setIsTestMode(false)\n\n\t\tthis.commandFaker = new CommandFaker()\n\t}\n\n\tprotected static async afterEach() {\n\t\tawait super.afterEach()\n\n\t\tawait this.organizationFixture?.clearAllOrgs()\n\t\tawait this.mercuryFixture?.disconnectAll()\n\n\t\tthis.clearFixtures()\n\n\t\tif (this._ui?.isWaitingForInput()) {\n\t\t\tthrow new Error(\n\t\t\t\t`Terminal interface is waiting for input. Make sure you are invoking this.term.sendInput() as many times as needed.`\n\t\t\t)\n\t\t}\n\n\t\tif (diskUtil.doesDirExist(this.cwd) && testUtil.shouldClearCache()) {\n\t\t\tdiskUtil.deleteDir(this.cwd)\n\t\t}\n\n\t\tif (diskUtil.doesDirExist(this.homeDir) && testUtil.shouldClearCache()) {\n\t\t\tdiskUtil.deleteDir(this.homeDir)\n\t\t}\n\n\t\tif (testUtil.shouldCleanupAfterEach()) {\n\t\t\tFeatureFixture.deleteOldSkillDirs()\n\t\t}\n\t}\n\n\tprotected static async afterAll() {\n\t\tawait super.afterAll()\n\t\tif (testUtil.shouldCleanupAfterAll()) {\n\t\t\tFeatureFixture.deleteOldSkillDirs()\n\t\t}\n\t}\n\n\tprivate static async cleanTestDirsAndFiles() {\n\t\tconst pattern = this.resolveTestPath('**/*.d.ts')\n\t\tconst matches = await globby(pattern)\n\n\t\tfor (const match of matches) {\n\t\t\tdiskUtil.deleteFile(match)\n\t\t}\n\t}\n\n\tprivate static clearFixtures() {\n\t\tthis._emitter = undefined\n\t\tthis.mercuryFixture = undefined\n\t\tthis.organizationFixture = undefined\n\t\tthis.personFixture = undefined\n\t\tthis.skillFixture = undefined\n\t\tthis.viewFixture = undefined\n\t}\n\n\tprotected static freshTmpDir() {\n\t\tconst tmpDirectory = testUtil.resolveTestDir(uuid.v4())\n\t\tfs.ensureDirSync(tmpDirectory)\n\t\treturn tmpDirectory\n\t}\n\n\tprotected static get ui() {\n\t\tif (!this._ui) {\n\t\t\tthis._ui = new SpyInterface()\n\t\t}\n\n\t\treturn this._ui\n\t}\n\n\tprotected static get emitter() {\n\t\tif (!this._emitter) {\n\t\t\tthis._emitter = CliGlobalEmitter.Emitter()\n\t\t}\n\t\treturn this._emitter\n\t}\n\n\tprotected static set emitter(emitter: GlobalEmitter) {\n\t\tthis._emitter = emitter\n\t}\n\n\tprotected static resolveTestPath(...pathAfterTestDirsAndFiles: string[]) {\n\t\treturn pathUtil.join(\n\t\t\tthis.cliRoot,\n\t\t\t'__tests__',\n\t\t\t'testDirsAndFiles',\n\t\t\t...pathAfterTestDirsAndFiles\n\t\t)\n\t}\n\n\tprotected static async Cli(options?: CliBootOptions) {\n\t\treturn this.FeatureFixture(options).Cli({\n\t\t\tcwd: this.cwd,\n\t\t\thomeDir: this.homeDir,\n\t\t\t...(options ?? {}),\n\t\t})\n\t}\n\n\tprotected static async linkLocalPackages() {\n\t\tconst fixture = this.FeatureFixture()\n\t\tawait fixture.linkLocalPackages()\n\t}\n\n\tprotected static Service<S extends Service>(\n\t\ttype: S,\n\t\tcwd?: string\n\t): ServiceMap[S] {\n\t\tconst sf = this.ServiceFactory()\n\t\treturn sf.Service(cwd ?? this.cwd, type)\n\t}\n\n\tprotected static ServiceFactory() {\n\t\treturn new ServiceFactory()\n\t}\n\n\tprotected static FeatureFixture(options?: Partial<FeatureFixtureOptions>) {\n\t\treturn new FeatureFixture({\n\t\t\tcwd: this.cwd,\n\t\t\tserviceFactory: this.ServiceFactory(),\n\t\t\tui: this.ui,\n\t\t\tapiClientFactory: this.getMercuryFixture().getApiClientFactory(),\n\t\t\tfeatureInstaller: this.featureInstaller,\n\t\t\temitter: this.emitter,\n\t\t\t...options,\n\t\t})\n\t}\n\n\tprotected static getMercuryFixture() {\n\t\tif (!this.mercuryFixture) {\n\t\t\tthis.mercuryFixture = new MercuryFixture(this.cwd, this.ServiceFactory())\n\t\t}\n\n\t\treturn this.mercuryFixture\n\t}\n\n\tprotected static get people() {\n\t\tif (!this.personFixture) {\n\t\t\tthis.personFixture = new PersonFixture(\n\t\t\t\tthis.getMercuryFixture().getApiClientFactory()\n\t\t\t)\n\t\t}\n\n\t\treturn this.personFixture\n\t}\n\n\tprotected static getViewFixture() {\n\t\tif (!this.viewFixture) {\n\t\t\tconst viewWriter = this.writers.Writer('view', { fileDescriptions: [] })\n\t\t\tthis.viewFixture = new ViewFixture(\n\t\t\t\tthis.cwd,\n\t\t\t\tviewWriter,\n\t\t\t\tthis.Action('view', 'sync')\n\t\t\t)\n\t\t}\n\n\t\treturn this.viewFixture\n\t}\n\n\tprotected static get writers() {\n\t\tif (!this._writers) {\n\t\t\tthis._writers = this.WriterFactory()\n\t\t}\n\n\t\treturn this._writers\n\t}\n\n\tprivate static WriterFactory() {\n\t\treturn new WriterFactory({\n\t\t\ttemplates,\n\t\t\tui: this.ui,\n\t\t\tsettings: this.Service('settings'),\n\t\t})\n\t}\n\n\tprotected static async skipInstallSkillPrompts<\n\t\tE extends () => Promise<FeatureActionResponse>,\n\t>(\n\t\texecute?: E\n\t): Promise<E extends undefined ? undefined : FeatureActionResponse> {\n\t\tconst promise = execute?.()\n\n\t\tawait this.waitForInput()\n\t\tawait this.ui.sendInput('n')\n\n\t\tawait this.waitForInput()\n\t\tawait this.ui.sendInput('')\n\n\t\tconst results = await promise\n\n\t\treturn results as any\n\t}\n\n\tprotected static getOrganizationFixture() {\n\t\tif (!this.organizationFixture) {\n\t\t\tthis.organizationFixture = new OrganizationFixture(\n\t\t\t\tthis.people,\n\t\t\t\tthis.StoreFactory()\n\t\t\t)\n\t\t}\n\n\t\treturn this.organizationFixture\n\t}\n\n\tprotected static getSkillFixture() {\n\t\tif (!this.skillFixture) {\n\t\t\tthis.skillFixture = new SkillFixture(\n\t\t\t\tthis.people,\n\t\t\t\tthis.StoreFactory(),\n\t\t\t\tthis.getMercuryFixture().getApiClientFactory()\n\t\t\t)\n\t\t}\n\n\t\treturn this.skillFixture\n\t}\n\n\tprotected static resolveHashSprucePath(...filePath: string[]) {\n\t\treturn diskUtil.resolveHashSprucePath(this.cwd, ...filePath)\n\t}\n\n\tprotected static get featureInstaller() {\n\t\tif (!this._featureInstaller) {\n\t\t\tconst installer = this.FeatureInstaller()\n\t\t\tthis._featureInstaller = installer\n\t\t}\n\n\t\treturn this._featureInstaller\n\t}\n\n\tprotected static set featureInstaller(installer: FeatureInstaller) {\n\t\tthis._featureInstaller = installer\n\t}\n\n\tprotected static FeatureInstaller(options?: Partial<FeatureOptions>) {\n\t\tconst serviceFactory = this.ServiceFactory()\n\t\tconst storeFactory = this.StoreFactory(options)\n\t\tconst emitter = options?.emitter ?? this.emitter\n\t\tconst apiClientFactory = this.getMercuryFixture().getApiClientFactory()\n\n\t\tconst actionExecuter = this.ActionExecuter()\n\n\t\tconst installer = FeatureInstallerFactory.WithAllFeatures({\n\t\t\tcwd: this.cwd,\n\t\t\tserviceFactory,\n\t\t\tstoreFactory,\n\t\t\tui: this.ui,\n\t\t\temitter,\n\t\t\tapiClientFactory,\n\t\t\tactionExecuter,\n\t\t\t...options,\n\t\t})\n\t\treturn installer\n\t}\n\n\tprotected static StoreFactory(options?: Partial<StoreFactoryOptions>) {\n\t\tconst serviceFactory = this.ServiceFactory()\n\n\t\treturn new StoreFactory({\n\t\t\tcwd: this.cwd,\n\t\t\tserviceFactory,\n\t\t\thomeDir: this.homeDir,\n\t\t\tapiClientFactory: this.getMercuryFixture().getApiClientFactory(),\n\t\t\temitter: this.emitter,\n\t\t\t...options,\n\t\t})\n\t}\n\n\tprotected static Store<C extends StoreCode>(\n\t\tcode: C,\n\t\toptions?: CreateStoreOptions<C>\n\t): StoreMap[C] {\n\t\treturn this.StoreFactory().Store(code, {\n\t\t\tcwd: this.cwd,\n\t\t\t...(options as any),\n\t\t})\n\t}\n\n\tprotected static async waitForInput() {\n\t\treturn this.ui.waitForInput()\n\t}\n\n\tprotected static async assertIsFeatureInstalled(code: FeatureCode) {\n\t\tconst isInstalled = await this.featureInstaller.isInstalled(code)\n\t\tassert.isTrue(isInstalled)\n\t}\n\n\tprotected static async assertValidActionResponseFiles(\n\t\tresults: FeatureActionResponse\n\t) {\n\t\tfor (const file of results.files ?? []) {\n\t\t\tawait this.assertFilePassesTypeChecks(file.path)\n\t\t}\n\n\t\t// await Promise.all(\n\t\t// \t(results.files ?? []).map((file) => {\n\t\t// \t\tconst checker = this.Service('typeChecker')\n\t\t// \t\treturn checker.check(file.path)\n\t\t// \t})\n\t\t// )\n\t}\n\n\tprotected static async assertFilePassesTypeChecks(file: string) {\n\t\tconst checker = this.Service('typeChecker')\n\t\tawait checker.check(file)\n\t}\n\n\tprotected static async connectToApi(options?: ApiClientFactoryOptions) {\n\t\treturn this.getMercuryFixture().connectToApi(options)\n\t}\n\n\tprotected static async openInVsCode(options?: {\n\t\tfile?: string\n\t\tdir?: string\n\t\ttimeout?: number\n\t}) {\n\t\tawait this.Action('vscode', 'setup').execute({ all: true })\n\n\t\tawait this.Service('command').execute(\n\t\t\t`code ${options?.file ?? options?.dir ?? this.cwd}`\n\t\t)\n\t\tawait this.wait(options?.timeout ?? 99999999)\n\t}\n\n\tprotected static async openInFinder(options?: {\n\t\tfile?: string\n\t\tdir?: string\n\t\ttimeout?: number\n\t}) {\n\t\tawait this.Service('command').execute(\n\t\t\t`open ${options?.file ?? options?.dir ?? this.cwd}`\n\t\t)\n\t\tawait this.wait(options?.timeout ?? 99999999)\n\t}\n\n\tprotected static log(...args: any[]) {\n\t\ttestUtil.log(...args)\n\t}\n\n\tprotected static Action<\n\t\tAction extends AbstractAction = AbstractAction,\n\t\tF extends FeatureCode = FeatureCode,\n\t>(featureCode: F, actionCode: string, options?: ExecuterOptions): Action {\n\t\tconst executer = this.ActionExecuter({\n\t\t\tshouldThrowOnListenerError: true,\n\t\t\t...options,\n\t\t}).Action(featureCode, actionCode)\n\n\t\treturn executer as any\n\t}\n\n\tprotected static ActionExecuter(options?: ExecuterOptions) {\n\t\tconst serviceFactory = this.ServiceFactory()\n\n\t\tconst actionFactory = new ActionFactory({\n\t\t\twriterFactory: this.writers,\n\t\t\tui: this.ui,\n\t\t\temitter: this.emitter,\n\t\t\tapiClientFactory: this.getMercuryFixture().getApiClientFactory(),\n\t\t\tcwd: this.cwd,\n\t\t\tserviceFactory,\n\t\t\tstoreFactory: this.StoreFactory(),\n\t\t\ttemplates,\n\t\t\toptionOverrides: {\n\t\t\t\t'sync.schemas': {\n\t\t\t\t\tshouldInstallMissingDependencies: true,\n\t\t\t\t},\n\t\t\t\t...options?.optionOverrides,\n\t\t\t},\n\t\t})\n\n\t\tconst executer = new ActionExecuter({\n\t\t\tui: this.ui,\n\t\t\temitter: this.emitter,\n\t\t\tactionFactory,\n\t\t\tfeatureInstallerFactory: () => {\n\t\t\t\treturn this.featureInstaller\n\t\t\t},\n\t\t\tshouldAutoHandleDependencies: false,\n\t\t\t...options,\n\t\t})\n\n\t\treturn executer\n\t}\n\n\tprotected static selectOptionBasedOnLabel(label: string) {\n\t\tconst last = this.ui.getLastInvocation()\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tlabel,\n\t\t})\n\n\t\tconst match = last.options.options.choices.find(\n\t\t\t(o: any) => o.label === label\n\t\t)\n\n\t\tvoid this.ui.sendInput(`${match.value}`)\n\t}\n}\n\ntype ExecuterOptions = Partial<ActionExecuterOptions> & {\n\toptionOverrides?: OptionOverrides\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAC,uBAAA,CAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,IAAA,GAAAF,uBAAA,CAAAP,OAAA;AAGA,IAAAU,gBAAA,GAAAX,sBAAA,CAAAC,OAAA;AAGA,IAAAW,cAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,WAAA,GAAAb,sBAAA,CAAAC,OAAA;AAEA,IAAAa,wBAAA,GAAAd,sBAAA,CAAAC,OAAA;AAEA,IAAAc,gBAAA,GAAAf,sBAAA,CAAAC,OAAA;AACA,IAAAe,WAAA,GAAAhB,sBAAA,CAAAC,OAAA;AACA,IAAAgB,cAAA,GAAAjB,sBAAA,CAAAC,OAAA;AACA,IAAAiB,aAAA,GAAAlB,sBAAA,CAAAC,OAAA;AACA,IAAAkB,eAAA,GAAAnB,sBAAA,CAAAC,OAAA;AACA,IAAAmB,cAAA,GAAApB,sBAAA,CAAAC,OAAA;AACA,IAAAoB,YAAA,GAAArB,sBAAA,CAAAC,OAAA;AACA,IAAAqB,gBAAA,GAAAtB,sBAAA,CAAAC,OAAA;AACA,IAA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nB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe;AAAA,IAAAnB,gBAAA,aAAfmB,eAAe"}
|
|
@@ -15,8 +15,8 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
15
15
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
16
16
|
var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
17
17
|
var _AbstractCliTest2 = _interopRequireDefault(require("./AbstractCliTest"));
|
|
18
|
-
function ownKeys(
|
|
19
|
-
function _objectSpread(
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
21
21
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
22
22
|
var AbstractEventTest = /*#__PURE__*/function (_AbstractCliTest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractEventTest.js","names":["_spruceSkillUtils","require","_AbstractCliTest2","_interopRequireDefault","ownKeys","
|
|
1
|
+
{"version":3,"file":"AbstractEventTest.js","names":["_spruceSkillUtils","require","_AbstractCliTest2","_interopRequireDefault","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","AbstractEventTest","_AbstractCliTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_installEventFeature","_asyncToGenerator2","_regenerator","mark","_callee","cacheKey","fixture","cli","wrap","_callee$","_context","prev","next","FeatureFixture","installFeatures","code","options","name","description","sent","abrupt","stop","installEventFeature","_x","_seedDummySkillRegisterCurrentSkillAndInstallToOrg","_callee2","results","skillFixture","orgFixture","org","skill2","_args2","_callee2$","_context2","undefined","registerCurrentSkillAndInstallToOrg","seedDemoSkill","installSkillAtOrganization","id","seedDummySkillRegisterCurrentSkillAndInstallToOrg","_registerCurrentSkillAndInstallToOrg","_callee3","cliPromise","skill","_args3","_callee3$","_context3","getSkillFixture","getOrganizationFixture","seedDemoOrg","registerCurrentSkill","currentSkill","_copyEventBuildersAndPermissions","_callee4","eventName","source","dest","version","_callee4$","_context4","resolveTestPath","resolvePath","versionUtil","latestVersionAtPath","dirValue","diskUtil","deleteDir","copyDir","copyEventBuildersAndPermissions","_x2","AbstractCliTest","exports"],"sources":["../../src/tests/AbstractEventTest.ts"],"sourcesContent":["import { diskUtil, versionUtil } from '@sprucelabs/spruce-skill-utils'\nimport AbstractCliTest from './AbstractCliTest'\n\nexport default abstract class AbstractEventTest extends AbstractCliTest {\n\tprotected static async installEventFeature(cacheKey?: string) {\n\t\tconst fixture = this.FeatureFixture()\n\t\tconst cli = await fixture.installFeatures(\n\t\t\t[\n\t\t\t\t{\n\t\t\t\t\tcode: 'skill',\n\t\t\t\t\toptions: {\n\t\t\t\t\t\tname: 'testing events',\n\t\t\t\t\t\tdescription: 'this too, is a great test!',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcode: 'event',\n\t\t\t\t},\n\t\t\t],\n\t\t\tcacheKey\n\t\t)\n\n\t\treturn cli\n\t}\n\n\tprotected static async seedDummySkillRegisterCurrentSkillAndInstallToOrg(\n\t\tcacheKey = 'events'\n\t) {\n\t\tconst results = await this.registerCurrentSkillAndInstallToOrg(cacheKey)\n\n\t\tconst { skillFixture, orgFixture, org } = results\n\n\t\tconst skill2 = await skillFixture.seedDemoSkill({\n\t\t\tname: 'my second skill',\n\t\t})\n\n\t\tawait orgFixture.installSkillAtOrganization(skill2.id, org.id)\n\n\t\treturn { ...results, skill2 }\n\t}\n\n\tprotected static async registerCurrentSkillAndInstallToOrg(\n\t\tcacheKey = 'events'\n\t) {\n\t\tconst cliPromise = this.installEventFeature(cacheKey)\n\t\tconst skillFixture = this.getSkillFixture()\n\t\tconst orgFixture = this.getOrganizationFixture()\n\n\t\tconst org = await orgFixture.seedDemoOrg({ name: 'my org' })\n\t\tconst cli = await cliPromise\n\n\t\tconst skill = await skillFixture.registerCurrentSkill({\n\t\t\tname: 'current skill',\n\t\t})\n\n\t\tawait orgFixture.installSkillAtOrganization(skill.id, org.id)\n\n\t\treturn { skillFixture, currentSkill: skill, cli, org, orgFixture }\n\t}\n\n\tprotected static async copyEventBuildersAndPermissions(eventName: string) {\n\t\tconst source = this.resolveTestPath('event_with_emit_and_response_payloads')\n\t\tlet dest = this.resolvePath('src', 'events', eventName)\n\t\tconst version = versionUtil.latestVersionAtPath(dest)\n\t\tdest = this.resolvePath(dest, version.dirValue)\n\t\tdiskUtil.deleteDir(dest)\n\n\t\tawait diskUtil.copyDir(source, dest)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA+C,SAAAG,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,QAAAe,gBAAA,aAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,G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,EAAAC,IAAA,EAAAC,OAAA;QAAA,OAAAvD,YAAA,YAAAM,IAAA,UAAAkD,UAAAC,SAAA;UAAA,kBAAAA,SAAA,CAAAhD,IAAA,GAAAgD,SAAA,CAAA/C,IAAA;YAAA;cACjE2C,MAAM,GAAG,IAAI,CAACK,eAAe,CAAC,uCAAuC,CAAC;cACxEJ,IAAI,GAAG,IAAI,CAACK,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAEP,SAAS,CAAC;cACjDG,OAAO,GAAGK,6BAAW,CAACC,mBAAmB,CAACP,IAAI,CAAC;cACrDA,IAAI,GAAG,IAAI,CAACK,WAAW,CAACL,IAAI,EAAEC,OAAO,CAACO,QAAQ,CAAC;cAC/CC,0BAAQ,CAACC,SAAS,CAACV,IAAI,CAAC;cAAAG,SAAA,CAAA/C,IAAA;cAAA,OAElBqD,0BAAQ,CAACE,OAAO,CAACZ,MAAM,EAAEC,IAAI,CAAC;YAAA;YAAA;cAAA,OAAAG,SAAA,CAAAtC,IAAA;UAAA;QAAA,GAAAgC,QAAA;MAAA,CACpC;MAAA,SAAAe,gCAAAC,GAAA;QAAA,OAAAjB,gCAAA,CAAAxF,KAAA,OAAAE,SAAA;MAAA;MAAA,OAAAsG,+BAAA;IAAA;EAAA;EAAA,OAAA5E,iBAAA;AAAA,EAjEsD8E,4BAAe;AAAAC,OAAA,cAAA/E,iBAAA"}
|
|
@@ -19,8 +19,8 @@ var _AbstractCliTest2 = _interopRequireDefault(require("./AbstractCliTest"));
|
|
|
19
19
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
20
20
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
21
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
22
|
-
function ownKeys(
|
|
23
|
-
function _objectSpread(
|
|
22
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
26
26
|
var AbstractSchemaTest = /*#__PURE__*/function (_AbstractCliTest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractSchemaTest.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","arguments","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","AbstractSchemaTest","_AbstractCliTest","_inherits2","_super","_classCallCheck2","_createClass2","get","resolveHashSprucePath","_syncSchemas","_asyncToGenerator2","_regenerator","mark","_callee","cacheKey","syncOptions","cli","_args","wrap","_callee$","_context","prev","undefined","installSchemaFeature","sent","Action","execute","abrupt","stop","syncSchemas","_x","generateExpectedHealthSchemas","schemas","expected","map","schema","_schema$version","id","version","CORE_SCHEMA_VERSION","constValue","namespace","description","expectedJSon","JSON","stringify","cleanedExpected","parse","sortSchemas","sort","a","b","_installSchemaFeature","_callee2","bootOptions","fixture","_callee2$","_context2","FeatureFixture","installFeatures","code","options","graphicsInterface","ui","_x2","_x3","_assertHealthySkillNamed","_callee3","_health$schema","expectedHealth","expectedInstalledSkills","health","packageContents","_iterator","_step","isInstalled","_args3","_callee3$","_context3","skill","status","Cli","linkLocalPackages","checkHealth","assert","isEqualDeep","diskUtil","readFile","resolvePath","doesInclude","featureInstaller","isTrue","t0","finish","assertHealthySkillNamed","_x4","AbstractCliTest","exports"],"sources":["../../src/tests/AbstractSchemaTest.ts"],"sourcesContent":["import { Schema } from '@sprucelabs/schema'\nimport {\n\tCORE_SCHEMA_VERSION,\n\tdiskUtil,\n\tHealthCheckResults,\n\tSchemaHealthCheckItem,\n} from '@sprucelabs/spruce-skill-utils'\nimport { assert } from '@sprucelabs/test-utils'\nimport { FeatureCode } from '../features/features.types'\nimport { CliBootOptions } from '../types/cli.types'\nimport AbstractCliTest from './AbstractCliTest'\n\nexport default abstract class AbstractSchemaTest extends AbstractCliTest {\n\tprotected static get schemaTypesFile() {\n\t\treturn this.resolveHashSprucePath('schemas', 'schemas.types.ts')\n\t}\n\n\tprotected static get coreSchemaTypesFile() {\n\t\treturn this.resolveHashSprucePath('schemas', 'core.schemas.types.ts')\n\t}\n\n\tprotected static async syncSchemas(cacheKey?: string, syncOptions = {}) {\n\t\tconst cli = await this.installSchemaFeature(cacheKey)\n\n\t\tawait this.Action('schema', 'sync').execute(syncOptions)\n\n\t\treturn cli\n\t}\n\n\tprotected static generateExpectedHealthSchemas(schemas: Schema[]) {\n\t\tconst expected = schemas.map((schema) => ({\n\t\t\t// @ts-ignore\n\t\t\tid: schema.id,\n\t\t\t// @ts-ignore\n\t\t\tname: schema.name,\n\t\t\tversion: schema.version ?? CORE_SCHEMA_VERSION.constValue,\n\t\t\tnamespace: schema.namespace,\n\t\t\t// @ts-ignore\n\t\t\tdescription: schema.description,\n\t\t}))\n\n\t\tconst expectedJSon = JSON.stringify(expected)\n\t\tconst cleanedExpected = JSON.parse(expectedJSon)\n\n\t\treturn this.sortSchemas(cleanedExpected) as SchemaHealthCheckItem['schemas']\n\t}\n\n\tprotected static sortSchemas(schemas: Schema[]) {\n\t\treturn schemas.sort((a, b) => (a.id > b.id ? -1 : 1))\n\t}\n\n\tprotected static async installSchemaFeature(\n\t\tcacheKey?: string,\n\t\tbootOptions?: CliBootOptions\n\t) {\n\t\tconst fixture = this.FeatureFixture()\n\n\t\tconst cli = await fixture.installFeatures(\n\t\t\t[\n\t\t\t\t{\n\t\t\t\t\tcode: 'skill',\n\t\t\t\t\toptions: {\n\t\t\t\t\t\tname: 'testing',\n\t\t\t\t\t\tdescription: 'this is a great test!',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcode: 'schema',\n\t\t\t\t},\n\t\t\t],\n\t\t\tcacheKey,\n\t\t\t{ ...(bootOptions || {}), graphicsInterface: this.ui }\n\t\t)\n\n\t\treturn cli\n\t}\n\n\tprotected static async assertHealthySkillNamed(\n\t\tname: string,\n\t\texpectedHealth: HealthCheckResults = { skill: { status: 'passed' } },\n\t\texpectedInstalledSkills: FeatureCode[] = ['skill']\n\t) {\n\t\tconst cli = await this.Cli()\n\t\tawait this.linkLocalPackages()\n\n\t\tconst health = await cli.checkHealth()\n\n\t\t// @ts-ignore\n\t\tif (health.schema?.schemas) {\n\t\t\t//@ts-ignore\n\t\t\thealth.schema.schemas = this.sortSchemas(health.schema.schemas)\n\t\t}\n\n\t\tassert.isEqualDeep(health, expectedHealth)\n\n\t\tconst packageContents = diskUtil.readFile(this.resolvePath('package.json'))\n\t\tassert.doesInclude(packageContents, name)\n\n\t\tfor (const code of expectedInstalledSkills) {\n\t\t\tconst isInstalled = await this.featureInstaller.isInstalled(code)\n\t\t\tassert.isTrue(isInstalled)\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,iBAAA,GAAAC,OAAA;AAMA,IAAAC,UAAA,GAAAD,OAAA;AAGA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAA+C,S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ACO,MAAM,CAAChB,WAAW,CAAC;YAAA;cAAAG,SAAA,CAAAlI,IAAA;cAAA;YAAA;cAAAkI,SAAA,CAAAlI,IAAA;cAAA;YAAA;cAAAkI,SAAA,CAAAzD,IAAA;cAAAyD,SAAA,CAAAc,EAAA,GAAAd,SAAA;cAAAL,SAAA,CAAAtI,CAAA,CAAA2I,SAAA,CAAAc,EAAA;YAAA;cAAAd,SAAA,CAAAzD,IAAA;cAAAoD,SAAA,CAAApI,CAAA;cAAA,OAAAyI,SAAA,CAAAe,MAAA;YAAA;YAAA;cAAA,OAAAf,SAAA,CAAAlD,IAAA;UAAA;QAAA,GAAAuC,QAAA;MAAA,CAE3B;MAAA,SAAA2B,wBAAAC,GAAA;QAAA,OAAA7B,wBAAA,CAAA5F,KAAA,OAAAG,SAAA;MAAA;MAAA,OAAAqH,uBAAA;IAAA;EAAA;EAAA,OAAA7F,kBAAA;AAAA,EA1FuD+F,4BAAe;AAAAC,OAAA,cAAAhG,kBAAA"}
|
|
1
|
+
{"version":3,"file":"AbstractSchemaTest.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","ownKeys","r","t","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","AbstractSchemaTest","_AbstractCliTest","_inherits2","_super","_classCallCheck2","_createClass2","key","get","resolveHashSprucePath","_syncSchemas","_asyncToGenerator2","_regenerator","mark","_callee","cacheKey","syncOptions","cli","_args","wrap","_callee$","_context","prev","undefined","installSchemaFeature","sent","Action","execute","abrupt","stop","syncSchemas","_x","generateExpectedHealthSchemas","schemas","expected","map","schema","_schema$version","id","version","CORE_SCHEMA_VERSION","constValue","namespace","description","expectedJSon","JSON","stringify","cleanedExpected","parse","sortSchemas","sort","a","b","_installSchemaFeature","_callee2","bootOptions","fixture","_callee2$","_context2","FeatureFixture","installFeatures","code","options","graphicsInterface","ui","_x2","_x3","_assertHealthySkillNamed","_callee3","_health$schema","expectedHealth","expectedInstalledSkills","health","packageContents","_iterator","_step","isInstalled","_args3","_callee3$","_context3","skill","status","Cli","linkLocalPackages","checkHealth","assert","isEqualDeep","diskUtil","readFile","resolvePath","doesInclude","featureInstaller","isTrue","t0","finish","assertHealthySkillNamed","_x4","AbstractCliTest","exports"],"sources":["../../src/tests/AbstractSchemaTest.ts"],"sourcesContent":["import { Schema } from '@sprucelabs/schema'\nimport {\n\tCORE_SCHEMA_VERSION,\n\tdiskUtil,\n\tHealthCheckResults,\n\tSchemaHealthCheckItem,\n} from '@sprucelabs/spruce-skill-utils'\nimport { assert } from '@sprucelabs/test-utils'\nimport { FeatureCode } from '../features/features.types'\nimport { CliBootOptions } from '../types/cli.types'\nimport AbstractCliTest from './AbstractCliTest'\n\nexport default abstract class AbstractSchemaTest extends AbstractCliTest {\n\tprotected static get schemaTypesFile() {\n\t\treturn this.resolveHashSprucePath('schemas', 'schemas.types.ts')\n\t}\n\n\tprotected static get coreSchemaTypesFile() {\n\t\treturn this.resolveHashSprucePath('schemas', 'core.schemas.types.ts')\n\t}\n\n\tprotected static async syncSchemas(cacheKey?: string, syncOptions = {}) {\n\t\tconst cli = await this.installSchemaFeature(cacheKey)\n\n\t\tawait this.Action('schema', 'sync').execute(syncOptions)\n\n\t\treturn cli\n\t}\n\n\tprotected static generateExpectedHealthSchemas(schemas: Schema[]) {\n\t\tconst expected = schemas.map((schema) => ({\n\t\t\t// @ts-ignore\n\t\t\tid: schema.id,\n\t\t\t// @ts-ignore\n\t\t\tname: schema.name,\n\t\t\tversion: schema.version ?? CORE_SCHEMA_VERSION.constValue,\n\t\t\tnamespace: schema.namespace,\n\t\t\t// @ts-ignore\n\t\t\tdescription: schema.description,\n\t\t}))\n\n\t\tconst expectedJSon = JSON.stringify(expected)\n\t\tconst cleanedExpected = JSON.parse(expectedJSon)\n\n\t\treturn this.sortSchemas(cleanedExpected) as SchemaHealthCheckItem['schemas']\n\t}\n\n\tprotected static sortSchemas(schemas: Schema[]) {\n\t\treturn schemas.sort((a, b) => (a.id > b.id ? -1 : 1))\n\t}\n\n\tprotected static async installSchemaFeature(\n\t\tcacheKey?: string,\n\t\tbootOptions?: CliBootOptions\n\t) {\n\t\tconst fixture = this.FeatureFixture()\n\n\t\tconst cli = await fixture.installFeatures(\n\t\t\t[\n\t\t\t\t{\n\t\t\t\t\tcode: 'skill',\n\t\t\t\t\toptions: {\n\t\t\t\t\t\tname: 'testing',\n\t\t\t\t\t\tdescription: 'this is a great test!',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcode: 'schema',\n\t\t\t\t},\n\t\t\t],\n\t\t\tcacheKey,\n\t\t\t{ ...(bootOptions || {}), graphicsInterface: this.ui }\n\t\t)\n\n\t\treturn cli\n\t}\n\n\tprotected static async assertHealthySkillNamed(\n\t\tname: string,\n\t\texpectedHealth: HealthCheckResults = { skill: { status: 'passed' } },\n\t\texpectedInstalledSkills: FeatureCode[] = ['skill']\n\t) {\n\t\tconst cli = await this.Cli()\n\t\tawait this.linkLocalPackages()\n\n\t\tconst health = await cli.checkHealth()\n\n\t\t// @ts-ignore\n\t\tif (health.schema?.schemas) {\n\t\t\t//@ts-ignore\n\t\t\thealth.schema.schemas = this.sortSchemas(health.schema.schemas)\n\t\t}\n\n\t\tassert.isEqualDeep(health, expectedHealth)\n\n\t\tconst packageContents = diskUtil.readFile(this.resolvePath('package.json'))\n\t\tassert.doesInclude(packageCont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,CAAA,IAAAC,IAAA;gBAAAyI,SAAA,CAAA9H,IAAA;gBAAA;cAAA;cAA/B4G,IAAI,GAAAc,KAAA,CAAApI,KAAA;cAAAwI,SAAA,CAAA9H,IAAA;cAAA,OACY,IAAI,CAAC0I,gBAAgB,CAACf,WAAW,CAACf,IAAI,CAAC;YAAA;cAA3De,WAAW,GAAAG,SAAA,CAAAtD,IAAA;cACjB4D,iBAAM,CAACO,MAAM,CAAChB,WAAW,CAAC;YAAA;cAAAG,SAAA,CAAA9H,IAAA;cAAA;YAAA;cAAA8H,SAAA,CAAA9H,IAAA;cAAA;YAAA;cAAA8H,SAAA,CAAAzD,IAAA;cAAAyD,SAAA,CAAAc,EAAA,GAAAd,SAAA;cAAAL,SAAA,CAAAlI,CAAA,CAAAuI,SAAA,CAAAc,EAAA;YAAA;cAAAd,SAAA,CAAAzD,IAAA;cAAAoD,SAAA,CAAAhI,CAAA;cAAA,OAAAqI,SAAA,CAAAe,MAAA;YAAA;YAAA;cAAA,OAAAf,SAAA,CAAAlD,IAAA;UAAA;QAAA,GAAAuC,QAAA;MAAA,CAE3B;MAAA,SAAA2B,wBAAAC,GAAA;QAAA,OAAA7B,wBAAA,CAAA1F,KAAA,OAAAE,SAAA;MAAA;MAAA,OAAAoH,uBAAA;IAAA;EAAA;EAAA,OAAA9F,kBAAA;AAAA,EA1FuDgG,4BAAe;AAAAC,OAAA,cAAAjG,kBAAA"}
|
|
@@ -10,8 +10,8 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _jestJsonReporter = require("@sprucelabs/jest-json-reporter");
|
|
12
12
|
var _escapeRegExp = _interopRequireDefault(require("lodash/escapeRegExp"));
|
|
13
|
-
function ownKeys(
|
|
14
|
-
function _objectSpread(
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
15
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
16
16
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
17
17
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
@@ -68,7 +68,7 @@ var JestJsonParser = /*#__PURE__*/function () {
|
|
|
68
68
|
if (!testFiles[idx].tests) {
|
|
69
69
|
testFiles[idx].tests = [];
|
|
70
70
|
}
|
|
71
|
-
(_testFiles$idx$tests = testFiles[idx].tests) === null || _testFiles$idx$tests === void 0
|
|
71
|
+
(_testFiles$idx$tests = testFiles[idx].tests) === null || _testFiles$idx$tests === void 0 || _testFiles$idx$tests.push(test);
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
case 'onTestFileStart':
|