@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":"ScriptPlayer.js","names":["ScriptPlayer","options","_classCallCheck2","_defineProperty2","ui","onboardingStore","commandExecuter","_createClass2","key","value","_playScriptWithKey","_asyncToGenerator2","_regenerator","mark","_callee","script","wrap","_callee$","_context","prev","next","scriptsByKey","Error","concat","playScript","stop","playScriptWithKey","_x","apply","arguments","loadScript","_playScript","_callee2","_iterator","_step","item","possibleRedirect","r","_callee2$","_context2","_createForOfIteratorHelper","s","n","done","t0","_typeof2","isRedirect","renderLine","abrupt","buildCallbackOptions","sent","redirectAndPlay","t1","e","f","finish","_x2","redirect","executeCommand","_redirectAndPlay","_callee3","destination","_callee3$","_context3","extractDestination","_x3","split","pop","substr","toScriptKey","exports"],"sources":["../../../src/features/onboard/ScriptPlayer.ts"],"sourcesContent":["import { GraphicsInterface } from '../../types/cli.types'\nimport OnboardingStore from './stores/OnboardingStore'\n\nexport type Script = ScriptItem[]\ntype ScriptItem = string | ScriptItemCallback\ntype ScriptRedirect = string\ninterface ScriptItemCallback {\n\t(
|
|
1
|
+
{"version":3,"file":"ScriptPlayer.js","names":["ScriptPlayer","options","_classCallCheck2","_defineProperty2","ui","onboardingStore","commandExecuter","_createClass2","key","value","_playScriptWithKey","_asyncToGenerator2","_regenerator","mark","_callee","script","wrap","_callee$","_context","prev","next","scriptsByKey","Error","concat","playScript","stop","playScriptWithKey","_x","apply","arguments","loadScript","_playScript","_callee2","_iterator","_step","item","possibleRedirect","r","_callee2$","_context2","_createForOfIteratorHelper","s","n","done","t0","_typeof2","isRedirect","renderLine","abrupt","buildCallbackOptions","sent","redirectAndPlay","t1","e","f","finish","_x2","redirect","executeCommand","_redirectAndPlay","_callee3","destination","_callee3$","_context3","extractDestination","_x3","split","pop","substr","toScriptKey","exports"],"sources":["../../../src/features/onboard/ScriptPlayer.ts"],"sourcesContent":["import { GraphicsInterface } from '../../types/cli.types'\nimport OnboardingStore from './stores/OnboardingStore'\n\nexport type Script = ScriptItem[]\ntype ScriptItem = string | ScriptItemCallback\ntype ScriptRedirect = string\ninterface ScriptItemCallback {\n\t(\n\t\tplayer: CallbackPlayer\n\t): Promise<void | ScriptRedirect> | void | ScriptRedirect\n}\n\nexport interface CallbackPlayer {\n\tui: GraphicsInterface\n\tredirect(toScriptKey: string): ScriptRedirect\n\tonboardingStore: OnboardingStore\n\texecuteCommand: CommandExecuter\n}\n\nexport type CommandExecuter = (command: string) => Promise<void>\n\nexport default class ScriptPlayer {\n\tprivate ui: GraphicsInterface\n\tprivate scriptsByKey: Record<string, Script> = {}\n\tprivate onboardingStore: OnboardingStore\n\n\tprivate commandExecuter: CommandExecuter\n\n\tpublic constructor(options: {\n\t\tui: GraphicsInterface\n\t\tonboardingStore: OnboardingStore\n\t\tcommandExecuter: CommandExecuter\n\t}) {\n\t\tthis.ui = options.ui\n\t\tthis.onboardingStore = options.onboardingStore\n\t\tthis.commandExecuter = options.commandExecuter\n\t}\n\n\tpublic async playScriptWithKey(key: string) {\n\t\tconst script = this.scriptsByKey[key]\n\n\t\tif (!script) {\n\t\t\tthrow new Error(`Onboarding script '${key}' not found.`)\n\t\t}\n\n\t\tawait this.playScript(script)\n\t}\n\n\tpublic loadScript(key: string, script: Script) {\n\t\tthis.scriptsByKey[key] = script\n\t}\n\n\tpublic async playScript(script: Script) {\n\t\tfor (let item of script) {\n\t\t\tlet possibleRedirect: ScriptRedirect | undefined\n\t\t\tswitch (typeof item) {\n\t\t\t\tcase 'string':\n\t\t\t\t\tif (this.isRedirect(item)) {\n\t\t\t\t\t\tpossibleRedirect = item\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.ui.renderLine(item)\n\t\t\t\t\t\tthis.ui.renderLine('')\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tcase 'function': {\n\t\t\t\t\tconst r = await item(this.buildCallbackOptions())\n\t\t\t\t\tif (r) {\n\t\t\t\t\t\tpossibleRedirect = r\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\tpossibleRedirect = item\n\t\t\t}\n\n\t\t\tif (this.isRedirect(possibleRedirect)) {\n\t\t\t\tawait this.redirectAndPlay(possibleRedirect)\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate buildCallbackOptions(): CallbackPlayer {\n\t\treturn {\n\t\t\tui: this.ui,\n\t\t\tredirect: ScriptPlayer.redirect,\n\t\t\tonboardingStore: this.onboardingStore,\n\t\t\texecuteCommand: this.commandExecuter,\n\t\t}\n\t}\n\n\tprivate async redirectAndPlay(possibleRedirect: string) {\n\t\tconst destination = this.extractDestination(possibleRedirect)\n\t\tif (destination) {\n\t\t\tawait this.playScriptWithKey(destination)\n\t\t}\n\t}\n\n\tpublic static redirect(toScriptKey: string) {\n\t\treturn `redirect->${toScriptKey}`\n\t}\n\n\tprivate extractDestination(possibleRedirect: string) {\n\t\treturn possibleRedirect.split('->').pop()\n\t}\n\n\tprivate isRedirect(item: string | undefined): item is string {\n\t\treturn !!(item && item.substr(0, 10) === 'redirect->')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;IAqBqBA,YAAY;EAOhC,SAAAA,aAAmBC,OAIlB,EAAE;IAAA,IAAAC,gBAAA,mBAAAF,YAAA;IAAA,IAAAG,gBAAA;IAAA,IAAAA,gBAAA,mCAT4C,CAAC,CAAC;IAAA,IAAAA,gBAAA;IAAA,IAAAA,gBAAA;IAUhD,IAAI,CAACC,EAAE,GAAGH,OAAO,CAACG,EAAE;IACpB,IAAI,CAACC,eAAe,GAAGJ,OAAO,CAACI,eAAe;IAC9C,IAAI,CAACC,eAAe,GAAGL,OAAO,CAACK,eAAe;EAC/C;EAAC,IAAAC,aAAA,aAAAP,YAAA;IAAAQ,GAAA;IAAAC,KAAA;MAAA,IAAAC,kBAAA,OAAAC,kBAAA,2BAAAC,YAAA,YAAAC,IAAA,CAED,SAAAC,QAA+BN,GAAW;QAAA,IAAAO,MAAA;QAAA,OAAAH,YAAA,YAAAI,IAAA,UAAAC,SAAAC,QAAA;UAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;YAAA;cACnCL,MAAM,GAAG,IAAI,CAACM,YAAY,CAACb,GAAG,CAAC;cAAA,IAEhCO,MAAM;gBAAAG,QAAA,CAAAE,IAAA;gBAAA;cAAA;cAAA,MACJ,IAAIE,KAAK,uBAAAC,MAAA,CAAuBf,GAAG,iBAAc,CAAC;YAAA;cAAAU,QAAA,CAAAE,IAAA;cAAA,OAGnD,IAAI,CAACI,UAAU,CAACT,MAAM,CAAC;YAAA;YAAA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;AAAAsE,OAAA,cAAAtE,YAAA"}
|
|
@@ -18,8 +18,8 @@ var _schema = require("@sprucelabs/schema");
|
|
|
18
18
|
var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
19
19
|
var _namedTemplateItem = _interopRequireDefault(require("../../../.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema"));
|
|
20
20
|
var _AbstractAction2 = _interopRequireDefault(require("../../AbstractAction"));
|
|
21
|
-
function ownKeys(
|
|
22
|
-
function _objectSpread(
|
|
21
|
+
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; }
|
|
22
|
+
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; }
|
|
23
23
|
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); }; }
|
|
24
24
|
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; } }
|
|
25
25
|
var CreateAction = /*#__PURE__*/function (_AbstractAction) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAction.js","names":["_schema","require","_spruceSkillUtils","_namedTemplateItem","_interopRequireDefault","_AbstractAction2","ownKeys","
|
|
1
|
+
{"version":3,"file":"CreateAction.js","names":["_schema","require","_spruceSkillUtils","_namedTemplateItem","_interopRequireDefault","_AbstractAction2","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","CreateAction","_AbstractAction","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","schema","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee","options","_this$validateAndNorm","nameKebab","nameReadable","nameCamel","description","destination","writer","files","wrap","_callee$","_context","prev","next","validateAndNormalizeOptions","diskUtil","resolvePath","cwd","Writer","writeContract","namesUtil","toKebab","sent","Action","execute","abrupt","stop","_x","AbstractAction","exports","buildSchema","id","fields","namedTemplateItemSchema","label","hint","pickFields"],"sources":["../../../../src/features/permission/actions/CreateAction.ts"],"sourcesContent":["import { buildSchema, pickFields, SchemaValues } from '@sprucelabs/schema'\nimport { diskUtil, namesUtil } from '@sprucelabs/spruce-skill-utils'\nimport namedTemplateItemSchema from '#spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema'\nimport AbstractAction from '../../AbstractAction'\nimport { FeatureActionResponse } from '../../features.types'\n\nexport default class CreateAction extends AbstractAction<OptionsSchema> {\n\tpublic optionsSchema = schema\n\tpublic invocationMessage = 'Creating a permission contract... 🛡'\n\tpublic readonly commandAliases: string[] = [\n\t\t'create.permissions',\n\t\t'create.permission',\n\t]\n\n\tpublic async execute(options: Options): Promise<FeatureActionResponse> {\n\t\tconst { nameKebab, nameReadable, nameCamel, description } =\n\t\t\tthis.validateAndNormalizeOptions(options)\n\n\t\tconst destination = diskUtil.resolvePath(this.cwd, 'src', 'permissions')\n\n\t\tconst writer = this.Writer('permission')\n\t\tconst files = await writer.writeContract(destination, {\n\t\t\tnameKebab: nameKebab ?? namesUtil.toKebab(nameReadable),\n\t\t\tnameReadable,\n\t\t\tnameCamel,\n\t\t\tdescription,\n\t\t})\n\n\t\tawait this.Action('permission', 'sync').execute({})\n\n\t\treturn {\n\t\t\tfiles,\n\t\t}\n\t}\n}\n\nconst schema = buildSchema({\n\tid: 'createPermission',\n\tfields: {\n\t\tnameReadable: {\n\t\t\t...namedTemplateItemSchema.fields.nameReadable,\n\t\t\tlabel: `Name your permission contract`,\n\t\t\thint: `A contract contains many permissions grouped by a responsibility`,\n\t\t},\n\t\t...pickFields(namedTemplateItemSchema.fields, ['nameCamel', 'nameKebab']),\n\t\tdescription: {\n\t\t\t...namedTemplateItemSchema.fields.description,\n\t\t\tlabel: `Describe this contract`,\n\t\t},\n\t},\n})\n\ntype OptionsSchema = typeof schema\ntype Options = SchemaValues<OptionsSchema>\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAiD,SAAAK,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,C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AAAA,aAAA,KACRiF,6BAAuB,CAACD,MAAM,CAAC7B,YAAY;MAC9C+B,KAAK,iCAAiC;MACtCC,IAAI;IAAoE;EACxE,GACE,IAAAC,kBAAU,EAACH,6BAAuB,CAACD,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IACzE3B,WAAW,EAAArD,aAAA,CAAAA,aAAA,KACPiF,6BAAuB,CAACD,MAAM,CAAC3B,WAAW;MAC7C6B,KAAK;IAA0B;EAC/B;AAEH,CAAC,CAAC"}
|
|
@@ -17,8 +17,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
var _schema = require("@sprucelabs/schema");
|
|
18
18
|
var _spruceEventUtils = require("@sprucelabs/spruce-event-utils");
|
|
19
19
|
var _AbstractAction2 = _interopRequireDefault(require("../../AbstractAction"));
|
|
20
|
-
function ownKeys(
|
|
21
|
-
function _objectSpread(
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
22
|
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); }; }
|
|
23
23
|
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; } }
|
|
24
24
|
var optionsSchema = (0, _schema.buildSchema)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginAction.js","names":["_schema","require","_spruceEventUtils","_AbstractAction2","_interopRequireDefault","ownKeys","
|
|
1
|
+
{"version":3,"file":"LoginAction.js","names":["_schema","require","_spruceEventUtils","_AbstractAction2","_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","optionsSchema","buildSchema","id","description","fields","phone","type","label","isRequired","pin","LoginAction","_AbstractAction","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee","options","_this$validateAndNorm","suppliedPin","loggedIn","client","requestPinResults","_eventResponseUtil$ge","challenge","response","confirmPinResults","_eventResponseUtil$ge2","person","token","loggedInPerson","wrap","_callee$","_context","prev","next","validateAndNormalizeOptions","connectToApi","shouldAuthAsLoggedInPerson","sent","emit","payload","eventResponseUtil","getFirstResponseOrThrow","t0","ui","prompt","Service","setLoggedInPerson","meta","summaryLines","casualName","err","renderWarning","abrupt","stop","execute","_x","AbstractAction","exports"],"sources":["../../../../src/features/person/actions/LoginAction.ts"],"sourcesContent":["import { buildSchema, SchemaValues } from '@sprucelabs/schema'\nimport { eventResponseUtil } from '@sprucelabs/spruce-event-utils'\nimport AbstractAction from '../../AbstractAction'\nimport { FeatureActionResponse } from '../../features.types'\n\nconst optionsSchema = buildSchema({\n\tid: 'loginAction',\n\tdescription:\n\t\t'Authenticate as a person. From here, you can begin creating skill, organizations, conversation topics, etc.',\n\tfields: {\n\t\tphone: {\n\t\t\ttype: 'phone',\n\t\t\tlabel: 'Phone number',\n\t\t\tisRequired: true,\n\t\t},\n\t\tpin: {\n\t\t\ttype: 'text',\n\t\t\tlabel: 'Pin',\n\t\t},\n\t},\n})\ntype OptionsSchema = typeof optionsSchema\ntype Options = SchemaValues<OptionsSchema>\n\nexport default class LoginAction extends AbstractAction<OptionsSchema> {\n\tpublic optionsSchema: OptionsSchema = optionsSchema\n\tpublic commandAliases = ['login']\n\tpublic invocationMessage = 'Logging in... 🤝'\n\n\tpublic async execute(options: Options): Promise<FeatureActionResponse> {\n\t\tconst { phone, pin: suppliedPin } =\n\t\t\tthis.validateAndNormalizeOptions(options)\n\t\tlet loggedIn = false\n\n\t\tconst client = await this.connectToApi({\n\t\t\tshouldAuthAsLoggedInPerson: false,\n\t\t})\n\n\t\tconst requestPinResults = await client.emit('request-pin::v2020_12_25', {\n\t\t\tpayload: { phone },\n\t\t})\n\n\t\tconst { challenge } =\n\t\t\teventResponseUtil.getFirstResponseOrThrow(requestPinResults)\n\n\t\tconst response: FeatureActionResponse = {}\n\n\t\tdo {\n\t\t\tconst pin =\n\t\t\t\tsuppliedPin ??\n\t\t\t\t(await this.ui.prompt({\n\t\t\t\t\ttype: 'text',\n\t\t\t\t\tlabel: 'Pin',\n\t\t\t\t\tisRequired: true,\n\t\t\t\t}))\n\n\t\t\tconst confirmPinResults = await client.emit('confirm-pin::v2020_12_25', {\n\t\t\t\tpayload: { challenge, pin },\n\t\t\t})\n\n\t\t\ttry {\n\t\t\t\tconst { person, token } =\n\t\t\t\t\teventResponseUtil.getFirstResponseOrThrow(confirmPinResults)\n\n\t\t\t\tconst loggedInPerson = { ...person, token }\n\n\t\t\t\tthis.Service('auth').setLoggedInPerson(loggedInPerson)\n\n\t\t\t\tloggedIn = true\n\n\t\t\t\tresponse.meta = { loggedInPerson }\n\t\t\t\tresponse.summaryLines = [`Logged in as ${loggedInPerson.casualName}`]\n\t\t\t} catch (err) {\n\t\t\t\tthis.ui.renderWarning('Oops, bad pin. Try again please! 🙏')\n\t\t\t}\n\t\t} while (!loggedIn)\n\n\t\treturn response\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAiD,SAAAI,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,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,CAAA,EAAAG,MAAA,CAAAc,yBAAA,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jB,iBAAiB,CAAC,EADrDE,MAAM,GAAAD,sBAAA,CAANC,MAAM,EAAEC,KAAK,GAAAF,sBAAA,CAALE,KAAK;gBAGfC,cAAc,GAAAtE,aAAA,CAAAA,aAAA,KAAQoE,MAAM;kBAAEC,KAAK,EAALA;gBAAK;gBAEzC,IAAI,CAACkB,OAAO,CAAC,MAAM,CAAC,CAACC,iBAAiB,CAAClB,cAAc,CAAC;gBAEtDV,QAAQ,GAAG,IAAI;gBAEfK,QAAQ,CAACwB,IAAI,GAAG;kBAAEnB,cAAc,EAAdA;gBAAe,CAAC;gBAClCL,QAAQ,CAACyB,YAAY,GAAG,iBAAA3C,MAAA,CAAiBuB,cAAc,CAACqB,UAAU,EAAG;cACtE,CAAC,CAAC,OAAOC,GAAG,EAAE;gBACb,IAAI,CAACP,EAAE,CAACQ,aAAa,CAAC,qCAAqC,CAAC;cAC7D;YAAC;cAAA,IACO,CAACjC,QAAQ;gBAAAa,QAAA,CAAAE,IAAA;gBAAA;cAAA;YAAA;cAAA,OAAAF,QAAA,CAAAqB,MAAA,WAEX7B,QAAQ;YAAA;YAAA;cAAA,OAAAQ,QAAA,CAAAsB,IAAA;UAAA;QAAA,GAAAvC,OAAA;MAAA,CACf;MAAA,SAAAwC,QAAAC,EAAA;QAAA,OAAA7C,QAAA,CAAArD,KAAA,OAAAE,SAAA;MAAA;MAAA,OAAA+F,OAAA;IAAA;EAAA;EAAA,OAAA3D,WAAA;AAAA,EAtDuC6D,2BAAc;AAAAC,OAAA,cAAA9D,WAAA"}
|
|
@@ -22,8 +22,8 @@ var _createSchemaOptions = _interopRequireDefault(require("../../../.spruce/sche
|
|
|
22
22
|
var _syncSchemasOptions = _interopRequireDefault(require("../../../.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema"));
|
|
23
23
|
var _AbstractAction2 = _interopRequireDefault(require("../../AbstractAction"));
|
|
24
24
|
var _excluded = ["schemaBuilderDestinationDir", "nameCamel", "namePascal", "nameReadable", "syncAfterCreate", "shouldEnableVersioning", "version"];
|
|
25
|
-
function ownKeys(
|
|
26
|
-
function _objectSpread(
|
|
25
|
+
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; }
|
|
26
|
+
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; }
|
|
27
27
|
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); }; }
|
|
28
28
|
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; } }
|
|
29
29
|
var CreateAction = /*#__PURE__*/function (_AbstractAction) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAction.js","names":["_schema","require","_spruceSkillUtils","_createSchemaOptions","_interopRequireDefault","_syncSchemasOptions","_AbstractAction2","_excluded","ownKeys","
|
|
1
|
+
{"version":3,"file":"CreateAction.js","names":["_schema","require","_spruceSkillUtils","_createSchemaOptions","_interopRequireDefault","_syncSchemasOptions","_AbstractAction2","_excluded","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","CreateAction","_AbstractAction","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","createSchemaActionSchema","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee","options","normalizedOptions","schemaBuilderDestinationDir","nameCamel","namePascal","nameReadable","syncAfterCreate","shouldEnableVersioning","version","rest","resolvedDestination","resolvedVersion","generator","results","errors","_syncResults$files","syncOptions","syncResults","wrap","_callee$","_context","prev","next","validateAndNormalizeOptions","_objectWithoutProperties2","diskUtil","resolvePath","cwd","resolveVersion","sent","Writer","writeBuilder","undefined","namesUtil","toPascal","normalizeSchemaValues","syncSchemasActionSchema","shouldIncludePrivateFields","Action","execute","_toConsumableArray2","files","abrupt","stop","_x","AbstractAction","exports"],"sources":["../../../../src/features/schema/actions/CreateAction.ts"],"sourcesContent":["import AbstractSpruceError from '@sprucelabs/error'\nimport { normalizeSchemaValues } from '@sprucelabs/schema'\nimport { namesUtil } from '@sprucelabs/spruce-skill-utils'\nimport { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { SpruceSchemas } from '#spruce/schemas/schemas.types'\nimport createSchemaActionSchema from '#spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema'\nimport syncSchemasActionSchema from '#spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema'\nimport AbstractAction from '../../AbstractAction'\n\ntype OptionsSchema =\n\tSpruceSchemas.SpruceCli.v2020_07_22.CreateSchemaOptionsSchema\ntype Options = SpruceSchemas.SpruceCli.v2020_07_22.CreateSchemaOptions\nexport default class CreateAction extends AbstractAction<OptionsSchema> {\n\tpublic optionsSchema = createSchemaActionSchema\n\tpublic invocationMessage = 'Creating your schema builder... 📃'\n\n\tpublic async execute(options: Options) {\n\t\tconst normalizedOptions = this.validateAndNormalizeOptions(options)\n\n\t\tconst {\n\t\t\tschemaBuilderDestinationDir,\n\t\t\tnameCamel,\n\t\t\tnamePascal,\n\t\t\tnameReadable,\n\t\t\tsyncAfterCreate,\n\t\t\tshouldEnableVersioning,\n\t\t\tversion,\n\t\t\t...rest\n\t\t} = normalizedOptions\n\n\t\tconst resolvedDestination = diskUtil.resolvePath(\n\t\t\tthis.cwd,\n\t\t\tschemaBuilderDestinationDir\n\t\t)\n\n\t\tlet resolvedVersion: string | undefined\n\n\t\tif (shouldEnableVersioning) {\n\t\t\tresolvedVersion = await this.resolveVersion(version, resolvedDestination)\n\t\t}\n\n\t\tconst generator = this.Writer('schema')\n\n\t\tconst results = await generator.writeBuilder(resolvedDestination, {\n\t\t\t...rest,\n\t\t\tnameCamel,\n\t\t\tshouldEnableVersioning: shouldEnableVersioning ?? undefined,\n\t\t\tversion: resolvedVersion,\n\t\t\tnameReadable: nameReadable ?? nameCamel,\n\t\t\tnamePascal: namePascal ?? namesUtil.toPascal(nameCamel),\n\t\t})\n\n\t\tlet errors: AbstractSpruceError<any>[] | undefined\n\n\t\tif (syncAfterCreate) {\n\t\t\tconst syncOptions = normalizeSchemaValues(syncSchemasActionSchema, rest, {\n\t\t\t\tshouldIncludePrivateFields: true,\n\t\t\t})\n\t\t\tconst syncResults = await this.Action('schema', 'sync').execute(\n\t\t\t\tsyncOptions\n\t\t\t)\n\n\t\t\tresults.push(...(syncResults.files ?? []))\n\t\t\tif (syncResults.errors) {\n\t\t\t\terrors = syncResults.errors\n\t\t\t}\n\t\t}\n\n\t\treturn { files: results, errors }\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAGA,IAAAE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,GAAA5C,OAAA;MAAA,CACjC;MAAA,SAAAwC,QAAAK,EAAA;QAAA,OAAAjD,QAAA,CAAA5C,KAAA,OAAAE,SAAA;MAAA;MAAA,OAAAsF,OAAA;IAAA;EAAA;EAAA,OAAA5D,YAAA;AAAA,EAzDwCkE,2BAAc;AAAAC,OAAA,cAAAnE,YAAA"}
|
|
@@ -24,8 +24,8 @@ var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
|
24
24
|
var _lodash = require("lodash");
|
|
25
25
|
var _SpruceError = _interopRequireDefault(require("../../../errors/SpruceError"));
|
|
26
26
|
var _AbstractStore2 = _interopRequireDefault(require("../../../stores/AbstractStore"));
|
|
27
|
-
function ownKeys(
|
|
28
|
-
function _objectSpread(
|
|
27
|
+
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; }
|
|
28
|
+
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; }
|
|
29
29
|
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); }; }
|
|
30
30
|
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; } }
|
|
31
31
|
var coreSchemas = {
|
|
@@ -139,7 +139,7 @@ var SchemaStore = /*#__PURE__*/function (_AbstractStore) {
|
|
|
139
139
|
} else {
|
|
140
140
|
payloads.forEach(function (payload) {
|
|
141
141
|
var _payload$schemas;
|
|
142
|
-
payload === null || payload === void 0 || (_payload$schemas = payload.schemas) === null || _payload$schemas === void 0
|
|
142
|
+
payload === null || payload === void 0 || (_payload$schemas = payload.schemas) === null || _payload$schemas === void 0 || _payload$schemas.forEach(function (schema) {
|
|
143
143
|
_this2.mixinSchemaOrThrowIfExists(schema, localNamespace, results);
|
|
144
144
|
});
|
|
145
145
|
});
|
|
@@ -209,7 +209,7 @@ var SchemaStore = /*#__PURE__*/function (_AbstractStore) {
|
|
|
209
209
|
localMatches = _context4.sent;
|
|
210
210
|
errors = [];
|
|
211
211
|
schemas = [];
|
|
212
|
-
didUpdateHandler === null || didUpdateHandler === void 0
|
|
212
|
+
didUpdateHandler === null || didUpdateHandler === void 0 || didUpdateHandler("Starting import of ".concat(localMatches.length, " schema builders..."));
|
|
213
213
|
_context4.prev = 6;
|
|
214
214
|
importer = this.Service('import');
|
|
215
215
|
_context4.next = 10;
|
|
@@ -316,7 +316,7 @@ var SchemaStore = /*#__PURE__*/function (_AbstractStore) {
|
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
schema.version = version;
|
|
319
|
-
didUpdateHandler === null || didUpdateHandler === void 0
|
|
319
|
+
didUpdateHandler === null || didUpdateHandler === void 0 || didUpdateHandler("Imported ".concat(schema.id, " builder."));
|
|
320
320
|
return schema;
|
|
321
321
|
}
|
|
322
322
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaStore.js","names":["_path","_interopRequireDefault","require","_globby","_schema","_spruceCoreSchemas","_spruceEventUtils","_spruceSkillUtils","_lodash","_SpruceError","_AbstractStore2","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","coreSchemas","personSchema","skillSchema","skillCreatorSchema","locationSchema","organizationSchema","personOrganizationSchema","personLocationSchema","roleSchema","messageSchema","messageSourceSchema","messageTargetSchema","sendMessageSchema","choiceSchema","linkSchema","exports","DEFAULT_LOCAL_SCHEMA_DIR","SchemaStore","_AbstractStore","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","_createClass2","value","_fetchSchemas","_asyncToGenerator2","_regenerator","mark","_callee","options","_ref","_ref$localSchemaLooku","localSchemaDir","_ref$shouldFetchLocal","shouldFetchLocalSchemas","_ref$shouldFetchRemot","shouldFetchRemoteSchemas","_ref$shouldEnableVers","shouldEnableVersioning","localNamespace","_ref$shouldFetchCoreS","shouldFetchCoreSchemas","didUpdateHandler","moduleToImportFromWhenRemote","results","_results$errors","locals","wrap","_callee$","_context","prev","next","localSchemaLookupDir","errors","schemasByNamespace","CORE_NAMESPACE","values","map","schema","namespace","loadLocalSchemas","sent","schemas","local","_toConsumableArray2","emitDidFetchSchemasAndMixinResults","abrupt","stop","fetchSchemas","_x","_emitDidFetchSchemasAndMixinResults","_callee2","_this2","_namespace","remoteResults","_eventResponseUtil$ge","payloads","_results$errors2","_callee2$","_context2","emitter","emit","eventResponseUtil","getAllResponsePayloadsAndErrors","SpruceError","payload","_payload$schemas","mixinSchemaOrThrowIfExists","_x2","_x3","_schema$namespace","idWithVersion","normalizeSchemaToIdWithVersion","match","find","s","isEqual","_hasLocalSchemas","_callee3","matches","_callee3$","_context3","globbyLocalBuilders","hasLocalSchemas","_loadLocalSchemas","_callee4","localLookupDir","localMatches","importer","imported","c","version","_err$options$file","_err$options","_err$originalError","_err$options$file2","_err$options2","_err$originalError2","_callee4$","_context4","Service","bulkImport","resolveLocalVersion","prepareLocalSchema","err","code","file","originalError","t0","_x4","_x5","_x6","_x7","_globbyLocalBuilders","_callee5","_callee5$","_context5","globby","diskUtil","resolvePath","cwd","_x8","undefined","versionUtil","extractVersion","constValue","friendlyMessage","generateVersion","dirValue","SchemaError","schemaId","id","_fetchFields","_callee7","_this3","_ref2","localAddonsDir","coreAddons","localErrors","localAddons","allFields","_callee7$","_context7","fieldRegistrations","registration","isLocal","t1","Promise","pathUtil","join","t2","_ref3","_callee6","importService","_callee6$","_context6","importDefault","path","_x10","all","uniqBy","addon","fields","fetchFields","_x9","AbstractStore"],"sources":["../../../../src/features/schema/stores/SchemaStore.ts"],"sourcesContent":["import pathUtil from 'path'\nimport globby from '@sprucelabs/globby'\nimport {\n\tSchema,\n\tFieldRegistration,\n\tfieldRegistrations,\n\tnormalizeSchemaToIdWithVersion,\n\tSchemaError,\n} from '@sprucelabs/schema'\nimport {\n\tpersonSchema,\n\tskillSchema,\n\tskillCreatorSchema,\n\tlocationSchema,\n\torganizationSchema,\n\tpersonOrganizationSchema,\n\tpersonLocationSchema,\n\troleSchema,\n\tmessageSchema,\n\tmessageSourceSchema,\n\tmessageTargetSchema,\n\tsendMessageSchema,\n\tchoiceSchema,\n\tlinkSchema,\n} from '@sprucelabs/spruce-core-schemas'\nimport { eventResponseUtil } from '@sprucelabs/spruce-event-utils'\nimport { versionUtil } from '@sprucelabs/spruce-skill-utils'\nimport { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { CORE_NAMESPACE } from '@sprucelabs/spruce-skill-utils'\nimport { isEqual, uniqBy } from 'lodash'\nimport SpruceError from '../../../errors/SpruceError'\nimport AbstractStore from '../../../stores/AbstractStore'\nimport { InternalUpdateHandler } from '../../../types/cli.types'\n\nexport const coreSchemas = {\n\tpersonSchema,\n\tskillSchema,\n\tskillCreatorSchema,\n\tlocationSchema,\n\torganizationSchema,\n\tpersonOrganizationSchema,\n\tpersonLocationSchema,\n\troleSchema,\n\tmessageSchema,\n\tmessageSourceSchema,\n\tmessageTargetSchema,\n\tsendMessageSchema,\n\tchoiceSchema,\n\tlinkSchema,\n}\n\ninterface AddonItem {\n\tpath: string\n\tregistration: FieldRegistration\n\tisLocal: boolean\n}\n\nexport interface SchemasByNamespace {\n\t[namespace: string]: Schema[]\n}\n\ninterface FetchSchemasResults {\n\tschemasByNamespace: SchemasByNamespace\n\terrors: SpruceError[]\n}\nexport interface FetchedField {\n\tpath?: string\n\tregistration: FieldRegistration\n\tisLocal: boolean\n}\n\ninterface FetchFieldsResults {\n\terrors: SpruceError[]\n\tfields: FetchedField[]\n}\n\nconst DEFAULT_LOCAL_SCHEMA_DIR = 'src/schemas'\n\nexport default class SchemaStore extends AbstractStore {\n\tpublic readonly name = 'schema'\n\n\tpublic async fetchSchemas(options: {\n\t\tlocalSchemaLookupDir?: string\n\t\tshouldFetchRemoteSchemas?: boolean\n\t\tshouldEnableVersioning?: boolean\n\t\tlocalNamespace: string\n\t\tshouldFetchCoreSchemas?: boolean\n\t\tmoduleToImportFromWhenRemote?: string\n\t\tshouldFetchLocalSchemas?: boolean\n\t\tdidUpdateHandler?: InternalUpdateHandler\n\t}): Promise<FetchSchemasResults> {\n\t\tconst {\n\t\t\tlocalSchemaLookupDir: localSchemaDir = DEFAULT_LOCAL_SCHEMA_DIR,\n\t\t\tshouldFetchLocalSchemas = true,\n\t\t\tshouldFetchRemoteSchemas = true,\n\t\t\tshouldEnableVersioning = true,\n\t\t\tlocalNamespace,\n\t\t\tshouldFetchCoreSchemas = true,\n\t\t\tdidUpdateHandler,\n\t\t\tmoduleToImportFromWhenRemote,\n\t\t} = options || {}\n\n\t\tconst results: FetchSchemasResults = {\n\t\t\terrors: [],\n\t\t\tschemasByNamespace: {},\n\t\t}\n\n\t\tif (shouldFetchCoreSchemas) {\n\t\t\tresults.schemasByNamespace[CORE_NAMESPACE] = Object.values(\n\t\t\t\tcoreSchemas\n\t\t\t).map((schema) => ({\n\t\t\t\t...schema,\n\t\t\t\tnamespace: CORE_NAMESPACE,\n\t\t\t}))\n\t\t}\n\n\t\tif (shouldFetchLocalSchemas) {\n\t\t\tconst locals = await this.loadLocalSchemas(\n\t\t\t\tlocalSchemaDir,\n\t\t\t\tlocalNamespace,\n\t\t\t\tshouldEnableVersioning,\n\t\t\t\tdidUpdateHandler\n\t\t\t)\n\n\t\t\tif (moduleToImportFromWhenRemote) {\n\t\t\t\tlocals.schemas.forEach((local) => {\n\t\t\t\t\tlocal.moduleToImportFromWhenRemote = moduleToImportFromWhenRemote\n\t\t\t\t})\n\t\t\t}\n\n\t\t\tresults.schemasByNamespace[localNamespace] = locals.schemas\n\t\t\tresults.errors.push(...locals.errors)\n\t\t}\n\n\t\tif (shouldFetchRemoteSchemas) {\n\t\t\tawait this.emitDidFetchSchemasAndMixinResults(localNamespace, results)\n\t\t}\n\n\t\treturn results\n\t}\n\n\tprivate async emitDidFetchSchemasAndMixinResults(\n\t\tlocalNamespace: string,\n\t\tresults: FetchSchemasResults\n\t) {\n\t\tconst schemas: Schema[] = []\n\t\tfor (const namespace in results.schemasByNamespace) {\n\t\t\tschemas.push(...results.schemasByNamespace[namespace])\n\t\t}\n\n\t\tconst remoteResults = await this.emitter.emit('schema.did-fetch-schemas', {\n\t\t\tschemas,\n\t\t})\n\n\t\tconst { payloads, errors } =\n\t\t\teventResponseUtil.getAllResponsePayloadsAndErrors(\n\t\t\t\tremoteResults,\n\t\t\t\tSpruceError\n\t\t\t)\n\n\t\tif (errors && errors.length > 0) {\n\t\t\tresults.errors.push(...errors)\n\t\t} else {\n\t\t\tpayloads.forEach((payload) => {\n\t\t\t\tpayload?.schemas?.forEach((schema: Schema) => {\n\t\t\t\t\tthis.mixinSchemaOrThrowIfExists(schema, localNamespace, results)\n\t\t\t\t})\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate mixinSchemaOrThrowIfExists(\n\t\tschema: Schema,\n\t\tlocalNamespace: string,\n\t\tresults: FetchSchemasResults\n\t) {\n\t\tconst namespace = schema.namespace ?? localNamespace\n\n\t\tif (!results.schemasByNamespace[namespace]) {\n\t\t\tresults.schemasByNamespace[namespace] = []\n\t\t}\n\n\t\tconst idWithVersion = normalizeSchemaToIdWithVersion(schema)\n\t\tconst match = results.schemasByNamespace[namespace].find((s) =>\n\t\t\tisEqual(normalizeSchemaToIdWithVersion(s), idWithVersion)\n\t\t)\n\n\t\tif (!match) {\n\t\t\tresults.schemasByNamespace[namespace].push(schema)\n\t\t}\n\t}\n\n\tpublic async hasLocalSchemas() {\n\t\tconst matches = await this.globbyLocalBuilders(DEFAULT_LOCAL_SCHEMA_DIR)\n\t\treturn matches.length > 0\n\t}\n\n\tprivate async loadLocalSchemas(\n\t\tlocalLookupDir: string,\n\t\tlocalNamespace: string,\n\t\tshouldEnableVersioning?: boolean,\n\t\tdidUpdateHandler?: InternalUpdateHandler\n\t) {\n\t\tconst localMatches = await this.globbyLocalBuilders(localLookupDir)\n\n\t\tconst errors: SpruceError[] = []\n\t\tconst schemas: Schema[] = []\n\n\t\tdidUpdateHandler?.(\n\t\t\t`Starting import of ${localMatches.length} schema builders...`\n\t\t)\n\n\t\ttry {\n\t\t\tconst importer = this.Service('import')\n\t\t\tconst imported = await importer.bulkImport(localMatches)\n\n\t\t\tfor (let c = 0; c < localMatches.length; c++) {\n\t\t\t\ttry {\n\t\t\t\t\tconst local = localMatches[c]\n\t\t\t\t\tlet schema = imported[c]\n\n\t\t\t\t\tlet version: undefined | string = this.resolveLocalVersion(\n\t\t\t\t\t\tshouldEnableVersioning,\n\t\t\t\t\t\tlocal,\n\t\t\t\t\t\terrors\n\t\t\t\t\t)\n\t\t\t\t\tif (version || shouldEnableVersioning === false) {\n\t\t\t\t\t\tschema = this.prepareLocalSchema(\n\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\tlocalNamespace,\n\t\t\t\t\t\t\tversion,\n\t\t\t\t\t\t\tdidUpdateHandler\n\t\t\t\t\t\t)\n\t\t\t\t\t\tschemas.push(schema)\n\t\t\t\t\t}\n\t\t\t\t} catch (err: any) {\n\t\t\t\t\terrors.push(\n\t\t\t\t\t\tnew SpruceError({\n\t\t\t\t\t\t\tcode: 'SCHEMA_FAILED_TO_IMPORT',\n\t\t\t\t\t\t\tfile: err?.options?.file ?? '**UNKNOWN**',\n\t\t\t\t\t\t\toriginalError: err?.originalError ?? err,\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (err: any) {\n\t\t\tthrow new SpruceError({\n\t\t\t\tcode: 'SCHEMA_FAILED_TO_IMPORT',\n\t\t\t\tfile: err?.options?.file ?? '**UNKNOWN**',\n\t\t\t\toriginalError: err?.originalError ?? err,\n\t\t\t})\n\t\t}\n\n\t\treturn {\n\t\t\tschemas,\n\t\t\terrors,\n\t\t}\n\t}\n\n\tprivate async globbyLocalBuilders(localLookupDir: string) {\n\t\treturn await globby(\n\t\t\tdiskUtil.resolvePath(this.cwd, localLookupDir, '**/*.builder.[t|j]s')\n\t\t)\n\t}\n\n\tprivate resolveLocalVersion(\n\t\tshouldEnableVersioning: boolean | undefined,\n\t\tlocal: string,\n\t\terrors: SpruceError[]\n\t) {\n\t\tlet version: undefined | string\n\n\t\ttry {\n\t\t\tversion =\n\t\t\t\tshouldEnableVersioning === false\n\t\t\t\t\t? undefined\n\t\t\t\t\t: versionUtil.extractVersion(this.cwd, local).constValue\n\t\t} catch (err) {\n\t\t\terrors.push(\n\t\t\t\tnew SpruceError({\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tcode: 'VERSION_MISSING',\n\t\t\t\t\tfriendlyMessage: `It looks like your schema's are not versioned. Make sure schemas are in a directory like src/schemas/${\n\t\t\t\t\t\tversionUtil.generateVersion().dirValue\n\t\t\t\t\t}/*.ts`,\n\t\t\t\t})\n\t\t\t)\n\t\t}\n\t\treturn version\n\t}\n\n\tprivate prepareLocalSchema(\n\t\tschema: Schema,\n\t\tlocalNamespace: string,\n\t\tversion: string | undefined,\n\t\tdidUpdateHandler: InternalUpdateHandler | undefined\n\t) {\n\t\tlet errors: string[] = []\n\n\t\tif (schema.version) {\n\t\t\terrors.push('version_should_not_be_set')\n\t\t}\n\n\t\tif (schema.namespace) {\n\t\t\terrors.push('namespace_should_not_be_set')\n\t\t}\n\n\t\tschema.namespace = localNamespace\n\n\t\tif (errors.length > 0) {\n\t\t\tthrow new SchemaError({\n\t\t\t\tcode: 'INVALID_SCHEMA',\n\t\t\t\tschemaId: schema.id,\n\t\t\t\terrors,\n\t\t\t\tfriendlyMessage:\n\t\t\t\t\t'You should not set a namespace nor version in your schema builder.',\n\t\t\t})\n\t\t}\n\n\t\tschema.version = version\n\n\t\tdidUpdateHandler?.(`Imported ${schema.id} builder.`)\n\n\t\treturn schema\n\t}\n\n\tpublic async fetchFields(options?: {\n\t\tlocalAddonsDir?: string\n\t}): Promise<FetchFieldsResults> {\n\t\tconst { localAddonsDir } = options || {}\n\n\t\tconst coreAddons = fieldRegistrations.map((registration) => {\n\t\t\treturn {\n\t\t\t\tregistration,\n\t\t\t\tisLocal: false,\n\t\t\t}\n\t\t})\n\n\t\tconst localErrors: SpruceError[] = []\n\n\t\tconst localAddons = !localAddonsDir\n\t\t\t? []\n\t\t\t: await Promise.all(\n\t\t\t\t\t(\n\t\t\t\t\t\tawait globby([\n\t\t\t\t\t\t\tpathUtil.join(localAddonsDir, '/*Field.addon.[t|j]s'),\n\t\t\t\t\t\t])\n\t\t\t\t\t).map(async (file: string) => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconst importService = this.Service('import')\n\t\t\t\t\t\t\tconst registration =\n\t\t\t\t\t\t\t\tawait importService.importDefault<FieldRegistration>(file)\n\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tpath: file,\n\t\t\t\t\t\t\t\tregistration,\n\t\t\t\t\t\t\t\tisLocal: true,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (err: any) {\n\t\t\t\t\t\t\tlocalErrors.push(\n\t\t\t\t\t\t\t\tnew SpruceError({\n\t\t\t\t\t\t\t\t\tcode: 'FAILED_TO_IMPORT',\n\t\t\t\t\t\t\t\t\tfile,\n\t\t\t\t\t\t\t\t\toriginalError: err,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\treturn false\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t )\n\n\t\tconst allFields = uniqBy(\n\t\t\t[\n\t\t\t\t...coreAddons,\n\t\t\t\t...(localAddons.filter((addon) => !!addon) as AddonItem[]),\n\t\t\t],\n\t\t\t'registration.type'\n\t\t)\n\n\t\treturn {\n\t\t\tfields: allFields,\n\t\t\terrors: localErrors,\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAOA,IAAAG,kBAAA,GAAAH,OAAA;AAgBA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AAGA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,eAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAyD,SAAAS,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAA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tils","_spruceSkillUtils","_lodash","_SpruceError","_AbstractStore2","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","coreSchemas","personSchema","skillSchema","skillCreatorSchema","locationSchema","organizationSchema","personOrganizationSchema","personLocationSchema","roleSchema","messageSchema","messageSourceSchema","messageTargetSchema","sendMessageSchema","choiceSchema","linkSchema","exports","DEFAULT_LOCAL_SCHEMA_DIR","SchemaStore","_AbstractStore","_inherits2","_super","_this","_classCallCheck2","_len","args","Array","_key","concat","_assertThisInitialized2","_createClass2","key","value","_fetchSchemas","_asyncToGenerator2","_regenerator","mark","_callee","options","_ref","_ref$localSchemaLooku","localSchemaDir","_ref$shouldFetchLocal","shouldFetchLocalSchemas","_ref$shouldFetchRemot","shouldFetchRemoteSchemas","_ref$shouldEnableVers","shouldEnableVersioning","localNamespace","_ref$shouldFetchCoreS","shouldFetchCoreSchemas","didUpdateHandler","moduleToImportFromWhenRemote","results","_results$errors","locals","wrap","_callee$","_context","prev","next","localSchemaLookupDir","errors","schemasByNamespace","CORE_NAMESPACE","values","map","schema","namespace","loadLocalSchemas","sent","schemas","local","_toConsumableArray2","emitDidFetchSchemasAndMixinResults","abrupt","stop","fetchSchemas","_x","_emitDidFetchSchemasAndMixinResults","_callee2","_this2","_namespace","remoteResults","_eventResponseUtil$ge","payloads","_results$errors2","_callee2$","_context2","emitter","emit","eventResponseUtil","getAllResponsePayloadsAndErrors","SpruceError","payload","_payload$schemas","mixinSchemaOrThrowIfExists","_x2","_x3","_schema$namespace","idWithVersion","normalizeSchemaToIdWithVersion","match","find","s","isEqual","_hasLocalSchemas","_callee3","matches","_callee3$","_context3","globbyLocalBuilders","hasLocalSchemas","_loadLocalSchemas","_callee4","localLookupDir","localMatches","importer","imported","c","version","_err$options$file","_err$options","_err$originalError","_err$options$file2","_err$options2","_err$originalError2","_callee4$","_context4","Service","bulkImport","resolveLocalVersion","prepareLocalSchema","err","code","file","originalError","t0","_x4","_x5","_x6","_x7","_globbyLocalBuilders","_callee5","_callee5$","_context5","globby","diskUtil","resolvePath","cwd","_x8","undefined","versionUtil","extractVersion","constValue","friendlyMessage","generateVersion","dirValue","SchemaError","schemaId","id","_fetchFields","_callee7","_this3","_ref2","localAddonsDir","coreAddons","localErrors","localAddons","allFields","_callee7$","_context7","fieldRegistrations","registration","isLocal","t1","Promise","pathUtil","join","t2","_ref3","_callee6","importService","_callee6$","_context6","importDefault","path","_x10","all","uniqBy","addon","fields","fetchFields","_x9","AbstractStore"],"sources":["../../../../src/features/schema/stores/SchemaStore.ts"],"sourcesContent":["import pathUtil from 'path'\nimport globby from '@sprucelabs/globby'\nimport {\n\tSchema,\n\tFieldRegistration,\n\tfieldRegistrations,\n\tnormalizeSchemaToIdWithVersion,\n\tSchemaError,\n} from '@sprucelabs/schema'\nimport {\n\tpersonSchema,\n\tskillSchema,\n\tskillCreatorSchema,\n\tlocationSchema,\n\torganizationSchema,\n\tpersonOrganizationSchema,\n\tpersonLocationSchema,\n\troleSchema,\n\tmessageSchema,\n\tmessageSourceSchema,\n\tmessageTargetSchema,\n\tsendMessageSchema,\n\tchoiceSchema,\n\tlinkSchema,\n} from '@sprucelabs/spruce-core-schemas'\nimport { eventResponseUtil } from '@sprucelabs/spruce-event-utils'\nimport { versionUtil } from '@sprucelabs/spruce-skill-utils'\nimport { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { CORE_NAMESPACE } from '@sprucelabs/spruce-skill-utils'\nimport { isEqual, uniqBy } from 'lodash'\nimport SpruceError from '../../../errors/SpruceError'\nimport AbstractStore from '../../../stores/AbstractStore'\nimport { InternalUpdateHandler } from '../../../types/cli.types'\n\nexport const coreSchemas = {\n\tpersonSchema,\n\tskillSchema,\n\tskillCreatorSchema,\n\tlocationSchema,\n\torganizationSchema,\n\tpersonOrganizationSchema,\n\tpersonLocationSchema,\n\troleSchema,\n\tmessageSchema,\n\tmessageSourceSchema,\n\tmessageTargetSchema,\n\tsendMessageSchema,\n\tchoiceSchema,\n\tlinkSchema,\n}\n\ninterface AddonItem {\n\tpath: string\n\tregistration: FieldRegistration\n\tisLocal: boolean\n}\n\nexport interface SchemasByNamespace {\n\t[namespace: string]: Schema[]\n}\n\ninterface FetchSchemasResults {\n\tschemasByNamespace: SchemasByNamespace\n\terrors: SpruceError[]\n}\nexport interface FetchedField {\n\tpath?: string\n\tregistration: FieldRegistration\n\tisLocal: boolean\n}\n\ninterface FetchFieldsResults {\n\terrors: SpruceError[]\n\tfields: FetchedField[]\n}\n\nconst DEFAULT_LOCAL_SCHEMA_DIR = 'src/schemas'\n\nexport default class SchemaStore extends AbstractStore {\n\tpublic readonly name = 'schema'\n\n\tpublic async fetchSchemas(options: {\n\t\tlocalSchemaLookupDir?: string\n\t\tshouldFetchRemoteSchemas?: boolean\n\t\tshouldEnableVersioning?: boolean\n\t\tlocalNamespace: string\n\t\tshouldFetchCoreSchemas?: boolean\n\t\tmoduleToImportFromWhenRemote?: string\n\t\tshouldFetchLocalSchemas?: boolean\n\t\tdidUpdateHandler?: InternalUpdateHandler\n\t}): Promise<FetchSchemasResults> {\n\t\tconst {\n\t\t\tlocalSchemaLookupDir: localSchemaDir = DEFAULT_LOCAL_SCHEMA_DIR,\n\t\t\tshouldFetchLocalSchemas = true,\n\t\t\tshouldFetchRemoteSchemas = true,\n\t\t\tshouldEnableVersioning = true,\n\t\t\tlocalNamespace,\n\t\t\tshouldFetchCoreSchemas = true,\n\t\t\tdidUpdateHandler,\n\t\t\tmoduleToImportFromWhenRemote,\n\t\t} = options || {}\n\n\t\tconst results: FetchSchemasResults = {\n\t\t\terrors: [],\n\t\t\tschemasByNamespace: {},\n\t\t}\n\n\t\tif (shouldFetchCoreSchemas) {\n\t\t\tresults.schemasByNamespace[CORE_NAMESPACE] = Object.values(\n\t\t\t\tcoreSchemas\n\t\t\t).map((schema) => ({\n\t\t\t\t...schema,\n\t\t\t\tnamespace: CORE_NAMESPACE,\n\t\t\t}))\n\t\t}\n\n\t\tif (shouldFetchLocalSchemas) {\n\t\t\tconst locals = await this.loadLocalSchemas(\n\t\t\t\tlocalSchemaDir,\n\t\t\t\tlocalNamespace,\n\t\t\t\tshouldEnableVersioning,\n\t\t\t\tdidUpdateHandler\n\t\t\t)\n\n\t\t\tif (moduleToImportFromWhenRemote) {\n\t\t\t\tlocals.schemas.forEach((local) => {\n\t\t\t\t\tlocal.moduleToImportFromWhenRemote = moduleToImportFromWhenRemote\n\t\t\t\t})\n\t\t\t}\n\n\t\t\tresults.schemasByNamespace[localNamespace] = locals.schemas\n\t\t\tresults.errors.push(...locals.errors)\n\t\t}\n\n\t\tif (shouldFetchRemoteSchemas) {\n\t\t\tawait this.emitDidFetchSchemasAndMixinResults(localNamespace, results)\n\t\t}\n\n\t\treturn results\n\t}\n\n\tprivate async emitDidFetchSchemasAndMixinResults(\n\t\tlocalNamespace: string,\n\t\tresults: FetchSchemasResults\n\t) {\n\t\tconst schemas: Schema[] = []\n\t\tfor (const namespace in results.schemasByNamespace) {\n\t\t\tschemas.push(...results.schemasByNamespace[namespace])\n\t\t}\n\n\t\tconst remoteResults = await this.emitter.emit('schema.did-fetch-schemas', {\n\t\t\tschemas,\n\t\t})\n\n\t\tconst { payloads, errors } =\n\t\t\teventResponseUtil.getAllResponsePayloadsAndErrors(\n\t\t\t\tremoteResults,\n\t\t\t\tSpruceError\n\t\t\t)\n\n\t\tif (errors && errors.length > 0) {\n\t\t\tresults.errors.push(...errors)\n\t\t} else {\n\t\t\tpayloads.forEach((payload) => {\n\t\t\t\tpayload?.schemas?.forEach((schema: Schema) => {\n\t\t\t\t\tthis.mixinSchemaOrThrowIfExists(schema, localNamespace, results)\n\t\t\t\t})\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate mixinSchemaOrThrowIfExists(\n\t\tschema: Schema,\n\t\tlocalNamespace: string,\n\t\tresults: FetchSchemasResults\n\t) {\n\t\tconst namespace = schema.namespace ?? localNamespace\n\n\t\tif (!results.schemasByNamespace[namespace]) {\n\t\t\tresults.schemasByNamespace[namespace] = []\n\t\t}\n\n\t\tconst idWithVersion = normalizeSchemaToIdWithVersion(schema)\n\t\tconst match = results.schemasByNamespace[namespace].find((s) =>\n\t\t\tisEqual(normalizeSchemaToIdWithVersion(s), idWithVersion)\n\t\t)\n\n\t\tif (!match) {\n\t\t\tresults.schemasByNamespace[namespace].push(schema)\n\t\t}\n\t}\n\n\tpublic async hasLocalSchemas() {\n\t\tconst matches = await this.globbyLocalBuilders(DEFAULT_LOCAL_SCHEMA_DIR)\n\t\treturn matches.length > 0\n\t}\n\n\tprivate async loadLocalSchemas(\n\t\tlocalLookupDir: string,\n\t\tlocalNamespace: string,\n\t\tshouldEnableVersioning?: boolean,\n\t\tdidUpdateHandler?: InternalUpdateHandler\n\t) {\n\t\tconst localMatches = await this.globbyLocalBuilders(localLookupDir)\n\n\t\tconst errors: SpruceError[] = []\n\t\tconst schemas: Schema[] = []\n\n\t\tdidUpdateHandler?.(\n\t\t\t`Starting import of ${localMatches.length} schema builders...`\n\t\t)\n\n\t\ttry {\n\t\t\tconst importer = this.Service('import')\n\t\t\tconst imported = await importer.bulkImport(localMatches)\n\n\t\t\tfor (let c = 0; c < localMatches.length; c++) {\n\t\t\t\ttry {\n\t\t\t\t\tconst local = localMatches[c]\n\t\t\t\t\tlet schema = imported[c]\n\n\t\t\t\t\tlet version: undefined | string = this.resolveLocalVersion(\n\t\t\t\t\t\tshouldEnableVersioning,\n\t\t\t\t\t\tlocal,\n\t\t\t\t\t\terrors\n\t\t\t\t\t)\n\t\t\t\t\tif (version || shouldEnableVersioning === false) {\n\t\t\t\t\t\tschema = this.prepareLocalSchema(\n\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\tlocalNamespace,\n\t\t\t\t\t\t\tversion,\n\t\t\t\t\t\t\tdidUpdateHandler\n\t\t\t\t\t\t)\n\t\t\t\t\t\tschemas.push(schema)\n\t\t\t\t\t}\n\t\t\t\t} catch (err: any) {\n\t\t\t\t\terrors.push(\n\t\t\t\t\t\tnew SpruceError({\n\t\t\t\t\t\t\tcode: 'SCHEMA_FAILED_TO_IMPORT',\n\t\t\t\t\t\t\tfile: err?.options?.file ?? '**UNKNOWN**',\n\t\t\t\t\t\t\toriginalError: err?.originalError ?? err,\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (err: any) {\n\t\t\tthrow new SpruceError({\n\t\t\t\tcode: 'SCHEMA_FAILED_TO_IMPORT',\n\t\t\t\tfile: err?.options?.file ?? '**UNKNOWN**',\n\t\t\t\toriginalError: err?.originalError ?? err,\n\t\t\t})\n\t\t}\n\n\t\treturn {\n\t\t\tschemas,\n\t\t\terrors,\n\t\t}\n\t}\n\n\tprivate async globbyLocalBuilders(localLookupDir: string) {\n\t\treturn await globby(\n\t\t\tdiskUtil.resolvePath(this.cwd, localLookupDir, '**/*.builder.[t|j]s')\n\t\t)\n\t}\n\n\tprivate resolveLocalVersion(\n\t\tshouldEnableVersioning: boolean | undefined,\n\t\tlocal: string,\n\t\terrors: SpruceError[]\n\t) {\n\t\tlet version: undefined | string\n\n\t\ttry {\n\t\t\tversion =\n\t\t\t\tshouldEnableVersioning === false\n\t\t\t\t\t? undefined\n\t\t\t\t\t: versionUtil.extractVersion(this.cwd, local).constValue\n\t\t} catch (err) {\n\t\t\terrors.push(\n\t\t\t\tnew SpruceError({\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tcode: 'VERSION_MISSING',\n\t\t\t\t\tfriendlyMessage: `It looks like your schema's are not versioned. Make sure schemas are in a directory like src/schemas/${\n\t\t\t\t\t\tversionUtil.generateVersion().dirValue\n\t\t\t\t\t}/*.ts`,\n\t\t\t\t})\n\t\t\t)\n\t\t}\n\t\treturn version\n\t}\n\n\tprivate prepareLocalSchema(\n\t\tschema: Schema,\n\t\tlocalNamespace: string,\n\t\tversion: string | undefined,\n\t\tdidUpdateHandler: InternalUpdateHandler | undefined\n\t) {\n\t\tlet errors: string[] = []\n\n\t\tif (schema.version) {\n\t\t\terrors.push('version_should_not_be_set')\n\t\t}\n\n\t\tif (schema.namespace) {\n\t\t\terrors.push('namespace_should_not_be_set')\n\t\t}\n\n\t\tschema.namespace = localNamespace\n\n\t\tif (errors.length > 0) {\n\t\t\tthrow new SchemaError({\n\t\t\t\tcode: 'INVALID_SCHEMA',\n\t\t\t\tschemaId: schema.id,\n\t\t\t\terrors,\n\t\t\t\tfriendlyMessage:\n\t\t\t\t\t'You should not set a namespace nor version in your schema builder.',\n\t\t\t})\n\t\t}\n\n\t\tschema.version = version\n\n\t\tdidUpdateHandler?.(`Imported ${schema.id} builder.`)\n\n\t\treturn schema\n\t}\n\n\tpublic async fetchFields(options?: {\n\t\tlocalAddonsDir?: string\n\t}): Promise<FetchFieldsResults> {\n\t\tconst { localAddonsDir } = options || {}\n\n\t\tconst coreAddons = fieldRegistrations.map((registration) => {\n\t\t\treturn {\n\t\t\t\tregistration,\n\t\t\t\tisLocal: false,\n\t\t\t}\n\t\t})\n\n\t\tconst localErrors: SpruceError[] = []\n\n\t\tconst localAddons = !localAddonsDir\n\t\t\t? []\n\t\t\t: await Promise.all(\n\t\t\t\t\t(\n\t\t\t\t\t\tawait globby([\n\t\t\t\t\t\t\tpathUtil.join(localAddonsDir, '/*Field.addon.[t|j]s'),\n\t\t\t\t\t\t])\n\t\t\t\t\t).map(async (file: string) => {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconst importService = this.Service('import')\n\t\t\t\t\t\t\tconst registration =\n\t\t\t\t\t\t\t\tawait importService.importDefault<FieldRegistration>(file)\n\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tpath: file,\n\t\t\t\t\t\t\t\tregistration,\n\t\t\t\t\t\t\t\tisLocal: true,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (err: any) {\n\t\t\t\t\t\t\tlocalErrors.push(\n\t\t\t\t\t\t\t\tnew SpruceError({\n\t\t\t\t\t\t\t\t\tcode: 'FAILED_TO_IMPORT',\n\t\t\t\t\t\t\t\t\tfile,\n\t\t\t\t\t\t\t\t\toriginalError: err,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\treturn false\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t )\n\n\t\tconst allFields = uniqBy(\n\t\t\t[\n\t\t\t\t...coreAddons,\n\t\t\t\t...(localAddons.filter((addon) => !!addon) as AddonItem[]),\n\t\t\t],\n\t\t\t'registration.type'\n\t\t)\n\n\t\treturn {\n\t\t\tfields: allFields,\n\t\t\terrors: localErrors,\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAOA,IAAAG,kBAAA,GAAAH,OAAA;AAgBA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AAGA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,eAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAyD,SAAAS,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,CA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|
var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
14
14
|
var _schemaGenerator = _interopRequireDefault(require("./schemaGenerator.utility"));
|
|
15
|
-
function ownKeys(
|
|
16
|
-
function _objectSpread(
|
|
15
|
+
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; }
|
|
16
|
+
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; }
|
|
17
17
|
var schemaDiskUtil = {
|
|
18
18
|
resolvePath: function resolvePath(options) {
|
|
19
19
|
var _schema$version;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaDisk.utility.js","names":["_path","_interopRequireDefault","require","_schema","_spruceSkillUtils","_schemaGenerator","ownKeys","
|
|
1
|
+
{"version":3,"file":"schemaDisk.utility.js","names":["_path","_interopRequireDefault","require","_schema","_spruceSkillUtils","_schemaGenerator","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","schemaDiskUtil","resolvePath","options","_schema$version","destination","schema","includeFileExtension","shouldIncludeFileExtension","namespace","SchemaError","code","parameters","pathUtil","join","namesUtil","toCamel","version","concat","id","resolveTypeFilePaths","cwd","generateStandaloneTypesFile","schemaTypesDestinationDirOrFile","fieldTypesDestinationDir","resolvedSchemaTypesDestination","diskUtil","isDirPath","resolvedSchemaTypesDestinationDirOrFile","dirname","resolvedFieldTypesDestination","deleteOrphanedSchemas","resolvedDestination","schemaTemplateItems","_asyncToGenerator2","_regenerator","mark","_callee","definitionsToDelete","wrap","_callee$","_context","prev","next","schemaGeneratorUtil","filterSchemaFilesBySchemaIds","map","item","sent","def","deleteFile","stop","_default","exports"],"sources":["../../../../src/features/schema/utilities/schemaDisk.utility.ts"],"sourcesContent":["import pathUtil from 'path'\nimport { Schema, SchemaError, SchemaTemplateItem } from '@sprucelabs/schema'\nimport { diskUtil, namesUtil } from '@sprucelabs/spruce-skill-utils'\nimport schemaGeneratorUtil from './schemaGenerator.utility'\n\nconst schemaDiskUtil = {\n\tresolvePath(options: {\n\t\tdestination: string\n\t\tschema: Schema\n\t\tshouldIncludeFileExtension?: boolean\n\t}) {\n\t\tconst {\n\t\t\tdestination,\n\t\t\tschema,\n\t\t\tshouldIncludeFileExtension: includeFileExtension,\n\t\t} = options\n\n\t\tif (!schema.namespace) {\n\t\t\tthrow new SchemaError({\n\t\t\t\tcode: 'MISSING_PARAMETERS',\n\t\t\t\tparameters: ['namespace'],\n\t\t\t})\n\t\t}\n\n\t\treturn pathUtil.join(\n\t\t\tdestination,\n\t\t\tnamesUtil.toCamel(schema.namespace),\n\t\t\tschema.version ?? '',\n\t\t\t`${schema.id}.schema${includeFileExtension === false ? '' : '.ts'}`\n\t\t)\n\t},\n\n\tresolveTypeFilePaths(options: {\n\t\tcwd: string\n\t\tgenerateStandaloneTypesFile: boolean\n\t\tschemaTypesDestinationDirOrFile: string\n\t\tfieldTypesDestinationDir: string\n\t}) {\n\t\tconst {\n\t\t\tcwd,\n\t\t\tgenerateStandaloneTypesFile,\n\t\t\tschemaTypesDestinationDirOrFile,\n\t\t\tfieldTypesDestinationDir,\n\t\t} = options\n\n\t\tconst resolvedSchemaTypesDestination = diskUtil.resolvePath(\n\t\t\tcwd,\n\t\t\tgenerateStandaloneTypesFile &&\n\t\t\t\tdiskUtil.isDirPath(schemaTypesDestinationDirOrFile)\n\t\t\t\t? diskUtil.resolvePath(\n\t\t\t\t\t\tcwd,\n\t\t\t\t\t\tschemaTypesDestinationDirOrFile,\n\t\t\t\t\t\t'core.schemas.types.ts'\n\t\t\t\t )\n\t\t\t\t: schemaTypesDestinationDirOrFile\n\t\t)\n\n\t\tconst resolvedSchemaTypesDestinationDirOrFile = diskUtil.isDirPath(\n\t\t\tresolvedSchemaTypesDestination\n\t\t)\n\t\t\t? resolvedSchemaTypesDestination\n\t\t\t: pathUtil.dirname(resolvedSchemaTypesDestination)\n\n\t\tconst resolvedFieldTypesDestination = diskUtil.resolvePath(\n\t\t\tcwd,\n\t\t\tfieldTypesDestinationDir ?? resolvedSchemaTypesDestinationDirOrFile\n\t\t)\n\n\t\treturn {\n\t\t\tresolvedFieldTypesDestination,\n\t\t\tresolvedSchemaTypesDestinationDirOrFile,\n\t\t\tresolvedSchemaTypesDestination,\n\t\t}\n\t},\n\n\tasync deleteOrphanedSchemas(\n\t\tresolvedDestination: string,\n\t\tschemaTemplateItems: SchemaTemplateItem[]\n\t) {\n\t\tconst definitionsToDelete =\n\t\t\tawait schemaGeneratorUtil.filterSchemaFilesBySchemaIds(\n\t\t\t\tresolvedDestination,\n\t\t\t\tschemaTemplateItems.map((item) => ({\n\t\t\t\t\t...item,\n\t\t\t\t\tversion: item.schema.version,\n\t\t\t\t}))\n\t\t\t)\n\n\t\tdefinitionsToDelete.forEach((def) => diskUtil.deleteFile(def))\n\t},\n}\n\nexport default schemaDiskUtil\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAA2D,SAAAI,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,C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,EACxC;IAAA,WAAAC,kBAAA,2BAAAC,YAAA,YAAAC,IAAA,UAAAC,QAAA;MAAA,IAAAC,mBAAA;MAAA,OAAAH,YAAA,YAAAI,IAAA,UAAAC,SAAAC,QAAA;QAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;UAAA;YAAAF,QAAA,CAAAE,IAAA;YAAA,OAEMC,2BAAmB,CAACC,4BAA4B,CACrDb,mBAAmB,EACnBC,mBAAmB,CAACa,GAAG,CAAC,UAACC,IAAI;cAAA,OAAAtD,aAAA,CAAAA,aAAA,KACzBsD,IAAI;gBACP9B,OAAO,EAAE8B,IAAI,CAACzC,MAAM,CAACW;cAAO;YAAA,CAC3B,CACH,CAAC;UAAA;YAPIqB,mBAAmB,GAAAG,QAAA,CAAAO,IAAA;YASzBV,mBAAmB,CAAC1C,OAAO,CAAC,UAACqD,GAAG;cAAA,OAAKvB,0BAAQ,CAACwB,UAAU,CAACD,GAAG,CAAC;YAAA,EAAC;UAAA;UAAA;YAAA,OAAAR,QAAA,CAAAU,IAAA;QAAA;MAAA,GAAAd,OAAA;IAAA;EAC/D;AACD,CAAC;AAAA,IAAAe,QAAA,GAEcnD,cAAc;AAAAoD,OAAA,cAAAD,QAAA"}
|
|
@@ -22,8 +22,8 @@ var _SpruceError = _interopRequireDefault(require("../../../errors/SpruceError")
|
|
|
22
22
|
var _AbstractWriter2 = _interopRequireDefault(require("../../../writers/AbstractWriter"));
|
|
23
23
|
var _schemaDisk = _interopRequireDefault(require("../utilities/schemaDisk.utility"));
|
|
24
24
|
var _excluded = ["schemaTemplateItems", "fieldTemplateItems", "valueTypes", "registerBuiltSchemas"];
|
|
25
|
-
function ownKeys(
|
|
26
|
-
function _objectSpread(
|
|
25
|
+
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; }
|
|
26
|
+
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; }
|
|
27
27
|
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; } } }; }
|
|
28
28
|
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); }
|
|
29
29
|
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; }
|