@cdklabs/cdk-construct-connect-datalake 0.0.14 → 0.0.16
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/.jsii +9 -9
- package/lib/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +449 -469
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/errors.js +59 -91
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/schemas/schemas_0.js +814 -533
- package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
- package/node_modules/@aws-sdk/client-connect/README.md +14 -0
- package/node_modules/@aws-sdk/client-connect/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-connect/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-connect/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +1289 -1256
- package/node_modules/@aws-sdk/client-connect/dist-cjs/models/ConnectServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-connect/dist-cjs/models/errors.js +57 -88
- package/node_modules/@aws-sdk/client-connect/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-connect/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-connect/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-connect/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-connect/dist-cjs/schemas/schemas_0.js +3630 -2290
- package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +4 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/GetEvaluationFormValidationCommand.js +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/StartEvaluationFormValidationCommand.js +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +2 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +20 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/models/models_4.js +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +183 -48
- package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +14 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateEvaluationFormCommand.d.ts +65 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateViewCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateViewVersionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateVocabularyCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactEvaluationCommand.d.ts +72 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeEvaluationFormCommand.d.ts +68 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetEvaluationFormValidationCommand.d.ts +112 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetMetricDataV2Command.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListContactEvaluationsCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactEvaluationsCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchEvaluationFormsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchHoursOfOperationOverridesCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchHoursOfOperationsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchNotificationsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchPredefinedAttributesCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/StartEvaluationFormValidationCommand.d.ts +102 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateContactRoutingDataCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateEvaluationFormCommand.d.ts +67 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +60 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +127 -103
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +217 -1947
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +2078 -384
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +1479 -1769
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_4.d.ts +707 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +34 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +12 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateViewCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateViewVersionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/CreateVocabularyCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeContactCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeContactEvaluationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DescribeEvaluationFormCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetEvaluationFormValidationCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetMetricDataV2Command.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchContactsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchEvaluationFormsCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchHoursOfOperationOverridesCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchHoursOfOperationsCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchNotificationsCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchPredefinedAttributesCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/StartEvaluationFormValidationCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateContactRoutingDataCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/UpdateEvaluationFormCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +30 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +30 -23
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +50 -45
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +75 -81
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +96 -175
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_4.d.ts +197 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
- package/node_modules/@aws-sdk/client-connect/package.json +8 -8
- package/node_modules/@aws-sdk/client-glue/README.md +196 -0
- package/node_modules/@aws-sdk/client-glue/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-glue/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-glue/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +1317 -907
- package/node_modules/@aws-sdk/client-glue/dist-cjs/models/GlueServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-glue/dist-cjs/models/errors.js +131 -183
- package/node_modules/@aws-sdk/client-glue/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-glue/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-glue/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-glue/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-glue/dist-cjs/schemas/schemas_0.js +3528 -1827
- package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +68 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/AssociateGlossaryTermsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/BatchGetIterableFormsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/CreateGlossaryCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/CreateGlossaryTermCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteAssetCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteAssetTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteAttachmentCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteFormTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteGlossaryCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DeleteGlossaryTermCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/DisassociateGlossaryTermsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetAssetCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetAssetTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetFormTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetGlossaryCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/GetGlossaryTermCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListAssetTypesCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListFormTypesCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListGlossariesCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListGlossaryTermsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/ListIterableFormsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/PutAssetCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/PutAssetTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/PutAttachmentCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/PutFormTypeCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/SearchAssetsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/UpdateGlossaryCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/UpdateGlossaryTermCommand.js +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +28 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +12 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/models/errors.js +38 -38
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/ListAssetTypesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/ListFormTypesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/ListGlossariesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/ListGlossaryTermsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/ListIterableFormsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/SearchAssetsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/pagination/index.js +6 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +672 -31
- package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +242 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +30 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/AssociateGlossaryTermsCommand.d.ts +101 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetIterableFormsCommand.d.ts +122 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCrawlerCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCustomEntityTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateDatabaseCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateGlossaryCommand.d.ts +98 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateGlossaryTermCommand.d.ts +105 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteAssetCommand.d.ts +89 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteAssetTypeCommand.d.ts +89 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteAttachmentCommand.d.ts +97 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteFormTypeCommand.d.ts +92 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteGlossaryCommand.d.ts +92 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DeleteGlossaryTermCommand.d.ts +89 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/DisassociateGlossaryTermsCommand.d.ts +101 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetAssetCommand.d.ts +116 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetAssetTypeCommand.d.ts +97 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetEvaluationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDevEndpointCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDevEndpointsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetEntityRecordsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetFormTypeCommand.d.ts +93 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetGlossaryCommand.d.ts +90 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetGlossaryTermCommand.d.ts +92 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetGlueIdentityCenterConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetIntegrationResourcePropertyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetIntegrationTablePropertiesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetJobBookmarkCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetJobCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetJobRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetJobRunsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetJobsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetMappingCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListAssetTypesCommand.d.ts +95 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListFormTypesCommand.d.ts +95 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListGlossariesCommand.d.ts +96 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListGlossaryTermsCommand.d.ts +97 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListIterableFormsCommand.d.ts +104 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutAssetCommand.d.ts +113 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutAssetTypeCommand.d.ts +103 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutAttachmentCommand.d.ts +104 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/PutFormTypeCommand.d.ts +95 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchAssetsCommand.d.ts +149 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartCrawlerScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRulesetEvaluationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartExportLabelsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartImportLabelsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartJobRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartMLEvaluationTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartMLLabelingSetGenerationTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartTriggerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartWorkflowRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopColumnStatisticsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopCrawlerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopCrawlerScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopSessionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopTriggerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/StopWorkflowRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/TestConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateBlueprintCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCatalogCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateClassifierCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateColumnStatisticsForPartitionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateColumnStatisticsForTableCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCrawlerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCrawlerScheduleCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateGlossaryCommand.d.ts +102 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateGlossaryTermCommand.d.ts +105 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +28 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +28 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/models/errors.d.ts +48 -48
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +165 -174
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +565 -755
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +2302 -2039
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +1413 -4
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/ListAssetTypesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/ListFormTypesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/ListGlossariesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/ListGlossaryTermsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/ListIterableFormsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/SearchAssetsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/pagination/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +101 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +522 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +168 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/AssociateGlossaryTermsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/BatchGetIterableFormsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateCrawlerCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateCustomEntityTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateGlossaryCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateGlossaryTermCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteAssetCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteAssetTypeCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteAttachmentCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteFormTypeCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteGlossaryCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DeleteGlossaryTermCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/DisassociateGlossaryTermsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetAssetCommand.d.ts +45 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetAssetTypeCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRulesetEvaluationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDevEndpointCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDevEndpointsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetEntityRecordsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetFormTypeCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetGlossaryCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetGlossaryTermCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetGlueIdentityCenterConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetIntegrationResourcePropertyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetIntegrationTablePropertiesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetJobBookmarkCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetJobCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetJobRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetJobRunsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetJobsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetMappingCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListAssetTypesCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListFormTypesCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListGlossariesCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListGlossaryTermsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/ListIterableFormsCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/PutAssetCommand.d.ts +45 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/PutAssetTypeCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/PutAttachmentCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/PutFormTypeCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchAssetsCommand.d.ts +50 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartCrawlerScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartDataQualityRulesetEvaluationRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartExportLabelsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartImportLabelsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartJobRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartMLEvaluationTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartMLLabelingSetGenerationTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartTriggerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartWorkflowRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopColumnStatisticsTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopCrawlerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopCrawlerScheduleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopMaterializedViewRefreshTaskRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopSessionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopTriggerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StopWorkflowRunCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/TestConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateBlueprintCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateCatalogCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateClassifierCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateColumnStatisticsForPartitionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateColumnStatisticsForTableCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateCrawlerCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateCrawlerScheduleCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateGlossaryCommand.d.ts +52 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateGlossaryTermCommand.d.ts +53 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +28 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/errors.d.ts +26 -26
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +41 -40
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +130 -181
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +396 -293
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +373 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/ListAssetTypesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/ListFormTypesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/ListGlossariesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/ListGlossaryTermsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/ListIterableFormsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/SearchAssetsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +101 -0
- package/node_modules/@aws-sdk/client-glue/package.json +8 -8
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +236 -256
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/models/LakeFormationServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/models/errors.js +39 -61
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/runtimeConfig.shared.js +21 -25
- package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/schemas/schemas_0.js +544 -356
- package/node_modules/@aws-sdk/client-lakeformation/package.json +8 -8
- package/node_modules/@aws-sdk/client-ram/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/node_modules/@aws-sdk/client-ram/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-ram/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +159 -179
- package/node_modules/@aws-sdk/client-ram/dist-cjs/models/RAMServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-ram/dist-cjs/models/errors.js +57 -88
- package/node_modules/@aws-sdk/client-ram/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-ram/dist-cjs/runtimeConfig.js +30 -34
- package/node_modules/@aws-sdk/client-ram/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-ram/dist-cjs/runtimeConfig.shared.js +20 -24
- package/node_modules/@aws-sdk/client-ram/dist-cjs/schemas/schemas_0.js +318 -210
- package/node_modules/@aws-sdk/client-ram/package.json +8 -8
- package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +15 -19
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/bdd.js +2 -5
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +77 -97
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +4 -8
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/errors.js +25 -40
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +22 -26
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +36 -40
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.native.js +4 -7
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +25 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/schemas/schemas_0.js +122 -85
- package/node_modules/@aws-sdk/client-sts/package.json +15 -15
- package/node_modules/@aws-sdk/core/account-id-endpoint.d.ts +1 -3
- package/node_modules/@aws-sdk/core/client.d.ts +1 -3
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -50
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +2 -4
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +327 -52
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -21
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +107 -109
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js +276 -1
- package/node_modules/@aws-sdk/core/httpAuthSchemes.d.ts +1 -3
- package/node_modules/@aws-sdk/core/package.json +13 -19
- package/node_modules/@aws-sdk/core/protocols.d.ts +1 -3
- package/node_modules/@aws-sdk/core/util.d.ts +1 -3
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +169 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -13
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +47 -41
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +14 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +16 -16
- package/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +31 -33
- package/node_modules/@aws-sdk/credential-provider-login/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +16 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +11 -13
- package/node_modules/@aws-sdk/credential-provider-process/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +22 -24
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +55 -24
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +10 -11
- package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +82 -84
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +158 -119
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +80 -82
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +99 -101
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +70 -35
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +7 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +13 -12
- package/node_modules/@aws-sdk/nested-clients/signin.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sso-oidc.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sso.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sts.d.ts +1 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +4 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +7 -7
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +26 -28
- package/node_modules/@aws-sdk/token-providers/package.json +9 -9
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +7 -8
- package/node_modules/@aws-sdk/types/package.json +5 -5
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +236 -5
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +233 -43
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -1
- package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +2 -1
- package/node_modules/@aws-sdk/xml-builder/package.json +9 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +518 -371
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +355 -145
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +456 -142
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +355 -145
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +15 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +30 -36
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +54 -110
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +30 -36
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +326 -269
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +192 -103
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Js.js +27 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Node.js +21 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.browser.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.native.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Js.js +92 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Node.js +29 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Js.js +179 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Node.js +59 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256WebCrypto.js +71 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +14 -3
- package/node_modules/@smithy/core/dist-es/submodules/serde/concatBytes.js +15 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js +4 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/headStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js +12 -38
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js +18 -33
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.browser.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.js +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-encode.d.ts +8 -4
- package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Js.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Node.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.browser.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.native.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Js.d.ts +19 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Node.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Js.d.ts +28 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Node.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256WebCrypto.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/concatBytes.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/checksum/ChecksumStream.d.ts +9 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.browser.d.ts +8 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.d.ts +4 -1
- package/node_modules/@smithy/core/package.json +4 -3
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -55
- package/node_modules/@smithy/fetch-http-handler/dist-es/index.js +2 -2
- package/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -51
- package/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/README.md +3 -0
- package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/dist/js-yaml.js +7 -1
- package/node_modules/aws-lambda/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
- package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/loader.js +6 -0
- package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/package.json +4 -1
- package/package.json +11 -11
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +0 -595
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +0 -588
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +0 -46
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +0 -31
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +0 -76
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +0 -53
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +0 -17
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +0 -5
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +0 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +0 -33
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +0 -29
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +0 -336
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +0 -60
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +0 -47
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-external/nodable_entities.js +0 -332
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-external/nodable_entities.d.ts +0 -66
- package/node_modules/@aws-sdk/xml-builder/dist-types/xml-external/nodable_entities.d.ts +0 -65
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +0 -827
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/LICENSE +0 -21
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/README.md +0 -202
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +0 -770
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +0 -93
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/cli.js +0 -97
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/man.js +0 -17
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/read.js +0 -43
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +0 -739
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +0 -14
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/ignoreAttributes.js +0 -18
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +0 -61
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/CharsSymbol.js +0 -16
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +0 -106
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +0 -61
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +0 -69
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +0 -103
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -100
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +0 -154
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +0 -94
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/Report.js +0 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/TagPath.js +0 -81
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/TagPathMatcher.js +0 -13
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +0 -83
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/Xml2JsParser.js +0 -235
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XmlPartReader.js +0 -210
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XmlSpecialTagsReader.js +0 -111
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/inputSource/BufferSource.js +0 -116
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/inputSource/StringSource.js +0 -121
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +0 -105
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParser.js +0 -22
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParserExt.js +0 -19
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/currency.js +0 -38
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/join.js +0 -13
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/number.js +0 -14
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/trim.js +0 -6
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +0 -425
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +0 -6
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +0 -407
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +0 -163
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +0 -840
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +0 -71
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +0 -177
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +0 -40
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/CHANGELOG.md +0 -51
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/LICENSE +0 -21
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/README.md +0 -113
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/package.json +0 -35
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/strnum.js +0 -171
- package/node_modules/@nodable/entities/README.md +0 -41
- package/node_modules/@nodable/entities/package.json +0 -57
- package/node_modules/@nodable/entities/src/EntityDecoder.js +0 -644
- package/node_modules/@nodable/entities/src/EntityEncoder.js +0 -194
- package/node_modules/@nodable/entities/src/entities.js +0 -1159
- package/node_modules/@nodable/entities/src/entityTries.js +0 -49
- package/node_modules/@nodable/entities/src/index.d.ts +0 -341
- package/node_modules/@nodable/entities/src/index.js +0 -29
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/constants.js +0 -3
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/md5.js +0 -168
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/constants.d.ts +0 -12
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/md5.d.ts +0 -16
- package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +0 -53
- package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -5
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +0 -7
- package/node_modules/anynum/LICENSE +0 -21
- package/node_modules/anynum/README.md +0 -142
- package/node_modules/anynum/anynum.js +0 -135
- package/node_modules/anynum/digitTable.js +0 -116
- package/node_modules/anynum/package.json +0 -42
- package/node_modules/fast-xml-builder/CHANGELOG.md +0 -40
- package/node_modules/fast-xml-builder/LICENSE +0 -21
- package/node_modules/fast-xml-builder/README.md +0 -74
- package/node_modules/fast-xml-builder/lib/fxb.cjs +0 -1
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +0 -270
- package/node_modules/fast-xml-builder/lib/fxb.min.js +0 -2
- package/node_modules/fast-xml-builder/lib/fxb.min.js.map +0 -1
- package/node_modules/fast-xml-builder/package.json +0 -81
- package/node_modules/fast-xml-builder/src/fxb.d.ts +0 -270
- package/node_modules/fast-xml-builder/src/fxb.js +0 -599
- package/node_modules/fast-xml-builder/src/ignoreAttributes.js +0 -18
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +0 -359
- package/node_modules/fast-xml-builder/src/prettifyJs2Xml.js +0 -0
- package/node_modules/fast-xml-builder/src/util.js +0 -16
- package/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
- package/node_modules/path-expression-matcher/LICENSE +0 -21
- package/node_modules/path-expression-matcher/README.md +0 -872
- package/node_modules/path-expression-matcher/lib/pem.cjs +0 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +0 -634
- package/node_modules/path-expression-matcher/lib/pem.min.js +0 -2
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +0 -1
- package/node_modules/path-expression-matcher/package.json +0 -78
- package/node_modules/path-expression-matcher/src/Expression.js +0 -232
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +0 -209
- package/node_modules/path-expression-matcher/src/Matcher.js +0 -570
- package/node_modules/path-expression-matcher/src/index.d.ts +0 -523
- package/node_modules/path-expression-matcher/src/index.js +0 -29
- package/node_modules/xml-naming/README.md +0 -189
- package/node_modules/xml-naming/package.json +0 -54
- package/node_modules/xml-naming/src/index.d.ts +0 -74
- package/node_modules/xml-naming/src/index.js +0 -270
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/LICENSE +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/bin/js-yaml.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/index.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/common.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/dumper.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/exception.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/mark.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/core.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_full.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_safe.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/failsafe.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/json.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/binary.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/bool.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/float.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/int.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/function.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/regexp.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/undefined.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/map.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/merge.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/null.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/omap.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/pairs.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/seq.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/set.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/str.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/timestamp.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type.js +0 -0
- /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml.js +0 -0
|
@@ -1,872 +0,0 @@
|
|
|
1
|
-
# path-expression-matcher
|
|
2
|
-
|
|
3
|
-
Efficient path tracking and pattern matching for XML, JSON, YAML or any other parsers.
|
|
4
|
-
|
|
5
|
-
## 🎯 Purpose
|
|
6
|
-
|
|
7
|
-
`path-expression-matcher` provides three core classes for tracking and matching paths:
|
|
8
|
-
|
|
9
|
-
- **`Expression`**: Parses and stores pattern expressions (e.g., `"root.users.user[id]"`)
|
|
10
|
-
- **`Matcher`**: Tracks current path during parsing and matches against expressions
|
|
11
|
-
- **`MatcherView`**: A lightweight read-only view of a `Matcher`, safe to pass to callbacks
|
|
12
|
-
|
|
13
|
-
Compatible with [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) and similar tools.
|
|
14
|
-
|
|
15
|
-
## 📦 Installation
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install path-expression-matcher
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## 🚀 Quick Start
|
|
22
|
-
|
|
23
|
-
```javascript
|
|
24
|
-
import { Expression, Matcher } from 'path-expression-matcher';
|
|
25
|
-
|
|
26
|
-
// Create expression (parse once, reuse many times)
|
|
27
|
-
const expr = new Expression("root.users.user");
|
|
28
|
-
|
|
29
|
-
// Create matcher (tracks current path)
|
|
30
|
-
const matcher = new Matcher();
|
|
31
|
-
|
|
32
|
-
matcher.push("root");
|
|
33
|
-
matcher.push("users");
|
|
34
|
-
matcher.push("user", { id: "123" });
|
|
35
|
-
|
|
36
|
-
// Match current path against expression
|
|
37
|
-
if (matcher.matches(expr)) {
|
|
38
|
-
console.log("Match found!");
|
|
39
|
-
console.log("Current path:", matcher.toString()); // "root.users.user"
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// Namespace support
|
|
43
|
-
const nsExpr = new Expression("soap::Envelope.soap::Body..ns::UserId");
|
|
44
|
-
matcher.push("Envelope", null, "soap");
|
|
45
|
-
matcher.push("Body", null, "soap");
|
|
46
|
-
matcher.push("UserId", null, "ns");
|
|
47
|
-
console.log(matcher.toString()); // "soap:Envelope.soap:Body.ns:UserId"
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## 📖 Pattern Syntax
|
|
51
|
-
|
|
52
|
-
### Basic Paths
|
|
53
|
-
|
|
54
|
-
```javascript
|
|
55
|
-
"root.users.user" // Exact path match
|
|
56
|
-
"*.users.user" // Wildcard: any parent
|
|
57
|
-
"root.*.user" // Wildcard: any middle
|
|
58
|
-
"root.users.*" // Wildcard: any child
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Deep Wildcard
|
|
62
|
-
|
|
63
|
-
```javascript
|
|
64
|
-
"..user" // user anywhere in tree
|
|
65
|
-
"root..user" // user anywhere under root
|
|
66
|
-
"..users..user" // users somewhere, then user below it
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Attribute Matching
|
|
70
|
-
|
|
71
|
-
```javascript
|
|
72
|
-
"user[id]" // user with "id" attribute
|
|
73
|
-
"user[type=admin]" // user with type="admin" (current node only)
|
|
74
|
-
"root[lang]..user" // user under root that has "lang" attribute
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### Position Selectors
|
|
78
|
-
|
|
79
|
-
```javascript
|
|
80
|
-
"user:first" // First user (counter=0)
|
|
81
|
-
"user:nth(2)" // Third user (counter=2, zero-based)
|
|
82
|
-
"user:odd" // Odd-numbered users (counter=1,3,5...)
|
|
83
|
-
"user:even" // Even-numbered users (counter=0,2,4...)
|
|
84
|
-
"root.users.user:first" // First user under users
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
**Note:** Position selectors use the **counter** (occurrence count of the tag name), not the position (child index). For example, in `<root><a/><b/><a/></root>`, the second `<a/>` has position=2 but counter=1.
|
|
88
|
-
|
|
89
|
-
### Namespaces
|
|
90
|
-
|
|
91
|
-
```javascript
|
|
92
|
-
"ns::user" // user with namespace "ns"
|
|
93
|
-
"soap::Envelope" // Envelope with namespace "soap"
|
|
94
|
-
"ns::user[id]" // user with namespace "ns" and "id" attribute
|
|
95
|
-
"ns::user:first" // First user with namespace "ns"
|
|
96
|
-
"*::user" // user with any namespace
|
|
97
|
-
"..ns::item" // item with namespace "ns" anywhere in tree
|
|
98
|
-
"soap::Envelope.soap::Body" // Nested namespaced elements
|
|
99
|
-
"ns::first" // Tag named "first" with namespace "ns" (NO ambiguity!)
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**Namespace syntax:**
|
|
103
|
-
- Use **double colon (::)** for namespace: `ns::tag`
|
|
104
|
-
- Use **single colon (:)** for position: `tag:first`
|
|
105
|
-
- Combined: `ns::tag:first` (namespace + tag + position)
|
|
106
|
-
|
|
107
|
-
**Namespace matching rules:**
|
|
108
|
-
- Pattern `ns::user` matches only nodes with namespace "ns" and tag "user"
|
|
109
|
-
- Pattern `user` (no namespace) matches nodes with tag "user" regardless of namespace
|
|
110
|
-
- Pattern `*::user` matches tag "user" with any namespace (wildcard namespace)
|
|
111
|
-
- Namespaces are tracked separately for counter/position (e.g., `ns1::item` and `ns2::item` have independent counters)
|
|
112
|
-
|
|
113
|
-
### Wildcard Differences
|
|
114
|
-
|
|
115
|
-
**Single wildcard (`*`)** - Matches exactly ONE level:
|
|
116
|
-
- `"*.fix1"` matches `root.fix1` (2 levels) ✅
|
|
117
|
-
- `"*.fix1"` does NOT match `root.another.fix1` (3 levels) ❌
|
|
118
|
-
- Path depth MUST equal pattern depth
|
|
119
|
-
|
|
120
|
-
**Deep wildcard (`..`)** - Matches ZERO or MORE levels:
|
|
121
|
-
- `"..fix1"` matches `root.fix1` ✅
|
|
122
|
-
- `"..fix1"` matches `root.another.fix1` ✅
|
|
123
|
-
- `"..fix1"` matches `a.b.c.d.fix1` ✅
|
|
124
|
-
- Works at any depth
|
|
125
|
-
|
|
126
|
-
### Combined Patterns
|
|
127
|
-
|
|
128
|
-
```javascript
|
|
129
|
-
"..user[id]:first" // First user with id, anywhere
|
|
130
|
-
"root..user[type=admin]" // Admin user under root
|
|
131
|
-
"ns::user[id]:first" // First namespaced user with id
|
|
132
|
-
"soap::Envelope..ns::UserId" // UserId with namespace ns under SOAP envelope
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
## 🔧 API Reference
|
|
136
|
-
|
|
137
|
-
### Expression
|
|
138
|
-
|
|
139
|
-
#### Constructor
|
|
140
|
-
|
|
141
|
-
```javascript
|
|
142
|
-
new Expression(pattern, options = {}, data)
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
**Parameters:**
|
|
146
|
-
- `pattern` (string): Pattern to parse
|
|
147
|
-
- `options.separator` (string): Path separator (default: `'.'`)
|
|
148
|
-
|
|
149
|
-
**Example:**
|
|
150
|
-
```javascript
|
|
151
|
-
const expr1 = new Expression("root.users.user");
|
|
152
|
-
const expr2 = new Expression("root/users/user", { separator: '/' });
|
|
153
|
-
const expr3 = new Expression("root/users/user", { separator: '/' }, { extra: "data"});
|
|
154
|
-
console.log(expr3.data) // { extra: "data" }
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
#### Methods
|
|
158
|
-
|
|
159
|
-
- `hasDeepWildcard()` → boolean
|
|
160
|
-
- `hasAttributeCondition()` → boolean
|
|
161
|
-
- `hasPositionSelector()` → boolean
|
|
162
|
-
- `toString()` → string
|
|
163
|
-
|
|
164
|
-
### Matcher
|
|
165
|
-
|
|
166
|
-
#### Constructor
|
|
167
|
-
|
|
168
|
-
```javascript
|
|
169
|
-
new Matcher(options)
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
**Parameters:**
|
|
173
|
-
- `options.separator` (string): Default path separator (default: `'.'`)
|
|
174
|
-
|
|
175
|
-
#### Path Tracking Methods
|
|
176
|
-
|
|
177
|
-
##### `push(tagName, attrValues, namespace)`
|
|
178
|
-
|
|
179
|
-
Add a tag to the current path. Position and counter are automatically calculated.
|
|
180
|
-
|
|
181
|
-
**Parameters:**
|
|
182
|
-
- `tagName` (string): Tag name
|
|
183
|
-
- `attrValues` (object, optional): Attribute key-value pairs (current node only)
|
|
184
|
-
- `namespace` (string, optional): Namespace for the tag
|
|
185
|
-
|
|
186
|
-
**Example:**
|
|
187
|
-
```javascript
|
|
188
|
-
matcher.push("user", { id: "123", type: "admin" });
|
|
189
|
-
matcher.push("item"); // No attributes
|
|
190
|
-
matcher.push("Envelope", null, "soap"); // With namespace
|
|
191
|
-
matcher.push("Body", { version: "1.1" }, "soap"); // With both
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
**Position vs Counter:**
|
|
195
|
-
- **Position**: The child index in the parent (0, 1, 2, 3...)
|
|
196
|
-
- **Counter**: How many times this tag name appeared at this level (0, 1, 2...)
|
|
197
|
-
|
|
198
|
-
Example:
|
|
199
|
-
```xml
|
|
200
|
-
<root>
|
|
201
|
-
<a/> <!-- position=0, counter=0 -->
|
|
202
|
-
<b/> <!-- position=1, counter=0 -->
|
|
203
|
-
<a/> <!-- position=2, counter=1 -->
|
|
204
|
-
</root>
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
##### `pop()`
|
|
208
|
-
|
|
209
|
-
Remove the last tag from the path.
|
|
210
|
-
|
|
211
|
-
```javascript
|
|
212
|
-
matcher.pop();
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
##### `updateCurrent(attrValues)`
|
|
216
|
-
|
|
217
|
-
Update current node's attributes (useful when attributes are parsed after push).
|
|
218
|
-
|
|
219
|
-
```javascript
|
|
220
|
-
matcher.push("user"); // Don't know values yet
|
|
221
|
-
// ... parse attributes ...
|
|
222
|
-
matcher.updateCurrent({ id: "123" });
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
##### `reset()`
|
|
226
|
-
|
|
227
|
-
Clear the entire path.
|
|
228
|
-
|
|
229
|
-
```javascript
|
|
230
|
-
matcher.reset();
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
#### Query Methods
|
|
234
|
-
|
|
235
|
-
##### `matches(expression)`
|
|
236
|
-
|
|
237
|
-
Check if current path matches an Expression.
|
|
238
|
-
|
|
239
|
-
```javascript
|
|
240
|
-
const expr = new Expression("root.users.user");
|
|
241
|
-
if (matcher.matches(expr)) {
|
|
242
|
-
// Current path matches
|
|
243
|
-
}
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
#### `matchesAny(exprSet)` → `boolean`
|
|
247
|
-
|
|
248
|
-
Please check `ExpressionSet` class for more details.
|
|
249
|
-
|
|
250
|
-
```javascript
|
|
251
|
-
const matcher = new Matcher();
|
|
252
|
-
const exprSet = new ExpressionSet();
|
|
253
|
-
exprSet.add(new Expression("root.users.user"));
|
|
254
|
-
exprSet.add(new Expression("root.config.*"));
|
|
255
|
-
exprSet.seal();
|
|
256
|
-
|
|
257
|
-
if (matcher.matchesAny(exprSet)) {
|
|
258
|
-
// Current path matches any expression in the set
|
|
259
|
-
}
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
##### `getCurrentTag()`
|
|
263
|
-
|
|
264
|
-
Get current tag name.
|
|
265
|
-
|
|
266
|
-
```javascript
|
|
267
|
-
const tag = matcher.getCurrentTag(); // "user"
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
##### `getCurrentNamespace()`
|
|
271
|
-
|
|
272
|
-
Get current namespace.
|
|
273
|
-
|
|
274
|
-
```javascript
|
|
275
|
-
const ns = matcher.getCurrentNamespace(); // "soap" or undefined
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
##### `getAttrValue(attrName)`
|
|
279
|
-
|
|
280
|
-
Get attribute value of current node.
|
|
281
|
-
|
|
282
|
-
```javascript
|
|
283
|
-
const id = matcher.getAttrValue("id"); // "123"
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
##### `hasAttr(attrName)`
|
|
287
|
-
|
|
288
|
-
Check if current node has an attribute.
|
|
289
|
-
|
|
290
|
-
```javascript
|
|
291
|
-
if (matcher.hasAttr("id")) {
|
|
292
|
-
// Current node has "id" attribute
|
|
293
|
-
}
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
##### `getPosition()`
|
|
297
|
-
|
|
298
|
-
Get sibling position of current node (child index in parent).
|
|
299
|
-
|
|
300
|
-
```javascript
|
|
301
|
-
const position = matcher.getPosition(); // 0, 1, 2, ...
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
##### `getCounter()`
|
|
305
|
-
|
|
306
|
-
Get repeat counter of current node (occurrence count of this tag name).
|
|
307
|
-
|
|
308
|
-
```javascript
|
|
309
|
-
const counter = matcher.getCounter(); // 0, 1, 2, ...
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
##### `getIndex()` (deprecated)
|
|
313
|
-
|
|
314
|
-
Alias for `getPosition()`. Use `getPosition()` or `getCounter()` instead for clarity.
|
|
315
|
-
|
|
316
|
-
```javascript
|
|
317
|
-
const index = matcher.getIndex(); // Same as getPosition()
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
##### `getDepth()`
|
|
321
|
-
|
|
322
|
-
Get current path depth.
|
|
323
|
-
|
|
324
|
-
```javascript
|
|
325
|
-
const depth = matcher.getDepth(); // 3 for "root.users.user"
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
##### `toString(separator?, includeNamespace?)`
|
|
329
|
-
|
|
330
|
-
Get path as string.
|
|
331
|
-
|
|
332
|
-
**Parameters:**
|
|
333
|
-
- `separator` (string, optional): Path separator (uses default if not provided)
|
|
334
|
-
- `includeNamespace` (boolean, optional): Whether to include namespaces (default: true)
|
|
335
|
-
|
|
336
|
-
```javascript
|
|
337
|
-
const path = matcher.toString(); // "root.ns:user.item"
|
|
338
|
-
const path2 = matcher.toString('/'); // "root/ns:user/item"
|
|
339
|
-
const path3 = matcher.toString('.', false); // "root.user.item" (no namespaces)
|
|
340
|
-
```
|
|
341
|
-
|
|
342
|
-
##### `toArray()`
|
|
343
|
-
|
|
344
|
-
Get path as array.
|
|
345
|
-
|
|
346
|
-
```javascript
|
|
347
|
-
const arr = matcher.toArray(); // ["root", "users", "user"]
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
#### State Management
|
|
351
|
-
|
|
352
|
-
##### `snapshot()`
|
|
353
|
-
|
|
354
|
-
Create a snapshot of current state.
|
|
355
|
-
|
|
356
|
-
```javascript
|
|
357
|
-
const snapshot = matcher.snapshot();
|
|
358
|
-
```
|
|
359
|
-
|
|
360
|
-
##### `restore(snapshot)`
|
|
361
|
-
|
|
362
|
-
Restore from a snapshot.
|
|
363
|
-
|
|
364
|
-
```javascript
|
|
365
|
-
matcher.restore(snapshot);
|
|
366
|
-
```
|
|
367
|
-
|
|
368
|
-
#### Read-Only Access
|
|
369
|
-
|
|
370
|
-
##### `readOnly()`
|
|
371
|
-
|
|
372
|
-
Returns a **`MatcherView`** — a lightweight, live read-only view of the matcher. All query and inspection methods work normally and always reflect the current state of the underlying matcher. Mutation methods (`push`, `pop`, `reset`, `updateCurrent`, `restore`) simply don't exist on `MatcherView`, so misuse is caught at **compile time** by TypeScript rather than at runtime.
|
|
373
|
-
|
|
374
|
-
The **same instance** is returned on every call — no allocation occurs per invocation. This is the recommended way to share the matcher with callbacks, plugins, or any external code that only needs to inspect the current path.
|
|
375
|
-
|
|
376
|
-
```javascript
|
|
377
|
-
const view = matcher.readOnly();
|
|
378
|
-
// Same reference every time — safe to cache
|
|
379
|
-
view === matcher.readOnly(); // true
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
**What works on the view:**
|
|
383
|
-
|
|
384
|
-
```javascript
|
|
385
|
-
view.matches(expr) // ✓ pattern matching
|
|
386
|
-
view.getCurrentTag() // ✓ current tag name
|
|
387
|
-
view.getCurrentNamespace() // ✓ current namespace
|
|
388
|
-
view.getAttrValue("id") // ✓ attribute value
|
|
389
|
-
view.hasAttr("id") // ✓ attribute presence check
|
|
390
|
-
view.getPosition() // ✓ sibling position
|
|
391
|
-
view.getCounter() // ✓ occurrence counter
|
|
392
|
-
view.getDepth() // ✓ path depth
|
|
393
|
-
view.toString() // ✓ path as string
|
|
394
|
-
view.toArray() // ✓ path as array
|
|
395
|
-
```
|
|
396
|
-
|
|
397
|
-
**What doesn't exist (compile-time error in TypeScript):**
|
|
398
|
-
|
|
399
|
-
```javascript
|
|
400
|
-
view.push("child", {}) // ✗ Property 'push' does not exist on type 'MatcherView'
|
|
401
|
-
view.pop() // ✗ Property 'pop' does not exist on type 'MatcherView'
|
|
402
|
-
view.reset() // ✗ Property 'reset' does not exist on type 'MatcherView'
|
|
403
|
-
view.updateCurrent({}) // ✗ Property 'updateCurrent' does not exist on type 'MatcherView'
|
|
404
|
-
view.restore(snapshot) // ✗ Property 'restore' does not exist on type 'MatcherView'
|
|
405
|
-
```
|
|
406
|
-
|
|
407
|
-
**The view is live** — it always reflects the current state of the underlying matcher.
|
|
408
|
-
|
|
409
|
-
```javascript
|
|
410
|
-
const matcher = new Matcher();
|
|
411
|
-
const view = matcher.readOnly();
|
|
412
|
-
|
|
413
|
-
matcher.push("root");
|
|
414
|
-
view.getDepth(); // 1 — immediately reflects the push
|
|
415
|
-
matcher.push("users");
|
|
416
|
-
view.getDepth(); // 2 — still live
|
|
417
|
-
```
|
|
418
|
-
|
|
419
|
-
## 💡 Usage Examples
|
|
420
|
-
|
|
421
|
-
### Example 1: XML Parser with stopNodes
|
|
422
|
-
|
|
423
|
-
```javascript
|
|
424
|
-
import { XMLParser } from 'fast-xml-parser';
|
|
425
|
-
import { Expression, Matcher } from 'path-expression-matcher';
|
|
426
|
-
|
|
427
|
-
class MyParser {
|
|
428
|
-
constructor() {
|
|
429
|
-
this.matcher = new Matcher();
|
|
430
|
-
|
|
431
|
-
// Pre-compile stop node patterns
|
|
432
|
-
this.stopNodeExpressions = [
|
|
433
|
-
new Expression("html.body.script"),
|
|
434
|
-
new Expression("html.body.style"),
|
|
435
|
-
new Expression("..svg"),
|
|
436
|
-
];
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
parseTag(tagName, attrs) {
|
|
440
|
-
this.matcher.push(tagName, attrs);
|
|
441
|
-
|
|
442
|
-
// Check if this is a stop node
|
|
443
|
-
for (const expr of this.stopNodeExpressions) {
|
|
444
|
-
if (this.matcher.matches(expr)) {
|
|
445
|
-
// Don't parse children, read as raw text
|
|
446
|
-
return this.readRawContent();
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
// Continue normal parsing
|
|
451
|
-
this.parseChildren();
|
|
452
|
-
|
|
453
|
-
this.matcher.pop();
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
### Example 2: Conditional Processing
|
|
459
|
-
|
|
460
|
-
```javascript
|
|
461
|
-
const matcher = new Matcher();
|
|
462
|
-
const userExpr = new Expression("..user[type=admin]");
|
|
463
|
-
const firstItemExpr = new Expression("..item:first");
|
|
464
|
-
|
|
465
|
-
function processTag(tagName, value, attrs) {
|
|
466
|
-
matcher.push(tagName, attrs);
|
|
467
|
-
|
|
468
|
-
if (matcher.matches(userExpr)) {
|
|
469
|
-
value = enhanceAdminUser(value);
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
if (matcher.matches(firstItemExpr)) {
|
|
473
|
-
value = markAsFirst(value);
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
matcher.pop();
|
|
477
|
-
return value;
|
|
478
|
-
}
|
|
479
|
-
```
|
|
480
|
-
|
|
481
|
-
### Example 3: Path-based Filtering
|
|
482
|
-
|
|
483
|
-
```javascript
|
|
484
|
-
const patterns = [
|
|
485
|
-
new Expression("data.users.user"),
|
|
486
|
-
new Expression("data.posts.post"),
|
|
487
|
-
new Expression("..comment[approved=true]"),
|
|
488
|
-
];
|
|
489
|
-
|
|
490
|
-
function shouldInclude(matcher) {
|
|
491
|
-
return patterns.some(expr => matcher.matches(expr));
|
|
492
|
-
}
|
|
493
|
-
```
|
|
494
|
-
|
|
495
|
-
### Example 4: Custom Separator
|
|
496
|
-
|
|
497
|
-
```javascript
|
|
498
|
-
const matcher = new Matcher({ separator: '/' });
|
|
499
|
-
const expr = new Expression("root/config/database", { separator: '/' });
|
|
500
|
-
|
|
501
|
-
matcher.push("root");
|
|
502
|
-
matcher.push("config");
|
|
503
|
-
matcher.push("database");
|
|
504
|
-
|
|
505
|
-
console.log(matcher.toString()); // "root/config/database"
|
|
506
|
-
console.log(matcher.matches(expr)); // true
|
|
507
|
-
```
|
|
508
|
-
|
|
509
|
-
### Example 5: Attribute Checking
|
|
510
|
-
|
|
511
|
-
```javascript
|
|
512
|
-
const matcher = new Matcher();
|
|
513
|
-
matcher.push("root");
|
|
514
|
-
matcher.push("user", { id: "123", type: "admin", status: "active" });
|
|
515
|
-
|
|
516
|
-
// Check attribute existence (current node only)
|
|
517
|
-
console.log(matcher.hasAttr("id")); // true
|
|
518
|
-
console.log(matcher.hasAttr("email")); // false
|
|
519
|
-
|
|
520
|
-
// Get attribute value (current node only)
|
|
521
|
-
console.log(matcher.getAttrValue("type")); // "admin"
|
|
522
|
-
|
|
523
|
-
// Match by attribute
|
|
524
|
-
const expr1 = new Expression("user[id]");
|
|
525
|
-
console.log(matcher.matches(expr1)); // true
|
|
526
|
-
|
|
527
|
-
const expr2 = new Expression("user[type=admin]");
|
|
528
|
-
console.log(matcher.matches(expr2)); // true
|
|
529
|
-
```
|
|
530
|
-
|
|
531
|
-
### Example 6: Position vs Counter
|
|
532
|
-
|
|
533
|
-
```javascript
|
|
534
|
-
const matcher = new Matcher();
|
|
535
|
-
matcher.push("root");
|
|
536
|
-
|
|
537
|
-
// Mixed tags at same level
|
|
538
|
-
matcher.push("item"); // position=0, counter=0 (first item)
|
|
539
|
-
matcher.pop();
|
|
540
|
-
|
|
541
|
-
matcher.push("div"); // position=1, counter=0 (first div)
|
|
542
|
-
matcher.pop();
|
|
543
|
-
|
|
544
|
-
matcher.push("item"); // position=2, counter=1 (second item)
|
|
545
|
-
|
|
546
|
-
console.log(matcher.getPosition()); // 2 (third child overall)
|
|
547
|
-
console.log(matcher.getCounter()); // 1 (second "item" specifically)
|
|
548
|
-
|
|
549
|
-
// :first uses counter, not position
|
|
550
|
-
const expr = new Expression("root.item:first");
|
|
551
|
-
console.log(matcher.matches(expr)); // false (counter=1, not 0)
|
|
552
|
-
```
|
|
553
|
-
|
|
554
|
-
### Example 8: Passing a Read-Only View to External Consumers
|
|
555
|
-
|
|
556
|
-
When passing the matcher into callbacks, plugins, or other code you don't control, use `readOnly()` to get a `MatcherView` — it can inspect but never mutate parser state.
|
|
557
|
-
|
|
558
|
-
```javascript
|
|
559
|
-
import { Expression, Matcher } from 'path-expression-matcher';
|
|
560
|
-
|
|
561
|
-
const matcher = new Matcher();
|
|
562
|
-
|
|
563
|
-
const adminExpr = new Expression("..user[type=admin]");
|
|
564
|
-
|
|
565
|
-
function parseTag(tagName, attrs, onTag) {
|
|
566
|
-
matcher.push(tagName, attrs);
|
|
567
|
-
|
|
568
|
-
// Pass MatcherView — consumer can inspect but not mutate
|
|
569
|
-
onTag(matcher.readOnly());
|
|
570
|
-
|
|
571
|
-
matcher.pop();
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
// Safe consumer — can only read
|
|
575
|
-
function myPlugin(view) {
|
|
576
|
-
if (view.matches(adminExpr)) {
|
|
577
|
-
console.log("Admin at path:", view.toString());
|
|
578
|
-
console.log("Depth:", view.getDepth());
|
|
579
|
-
console.log("ID:", view.getAttrValue("id"));
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
// view.push(...) or view.reset() don't exist on MatcherView —
|
|
584
|
-
// TypeScript catches misuse at compile time.
|
|
585
|
-
parseTag("user", { id: "1", type: "admin" }, myPlugin);
|
|
586
|
-
```
|
|
587
|
-
|
|
588
|
-
```javascript
|
|
589
|
-
const matcher = new Matcher();
|
|
590
|
-
const soapExpr = new Expression("soap::Envelope.soap::Body..ns::UserId");
|
|
591
|
-
|
|
592
|
-
// Parse SOAP document
|
|
593
|
-
matcher.push("Envelope", { xmlns: "..." }, "soap");
|
|
594
|
-
matcher.push("Body", null, "soap");
|
|
595
|
-
matcher.push("GetUserRequest", null, "ns");
|
|
596
|
-
matcher.push("UserId", null, "ns");
|
|
597
|
-
|
|
598
|
-
// Match namespaced pattern
|
|
599
|
-
if (matcher.matches(soapExpr)) {
|
|
600
|
-
console.log("Found UserId in SOAP body");
|
|
601
|
-
console.log(matcher.toString()); // "soap:Envelope.soap:Body.ns:GetUserRequest.ns:UserId"
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
// Namespace-specific counters
|
|
605
|
-
matcher.reset();
|
|
606
|
-
matcher.push("root");
|
|
607
|
-
matcher.push("item", null, "ns1"); // ns1::item counter=0
|
|
608
|
-
matcher.pop();
|
|
609
|
-
matcher.push("item", null, "ns2"); // ns2::item counter=0 (different namespace)
|
|
610
|
-
matcher.pop();
|
|
611
|
-
matcher.push("item", null, "ns1"); // ns1::item counter=1
|
|
612
|
-
|
|
613
|
-
const firstNs1Item = new Expression("root.ns1::item:first");
|
|
614
|
-
console.log(matcher.matches(firstNs1Item)); // false (counter=1)
|
|
615
|
-
|
|
616
|
-
const secondNs1Item = new Expression("root.ns1::item:nth(1)");
|
|
617
|
-
console.log(matcher.matches(secondNs1Item)); // true
|
|
618
|
-
|
|
619
|
-
// NO AMBIGUITY: Tags named after position keywords
|
|
620
|
-
matcher.reset();
|
|
621
|
-
matcher.push("root");
|
|
622
|
-
matcher.push("first", null, "ns"); // Tag named "first" with namespace
|
|
623
|
-
|
|
624
|
-
const expr = new Expression("root.ns::first");
|
|
625
|
-
console.log(matcher.matches(expr)); // true - matches namespace "ns", tag "first"
|
|
626
|
-
```
|
|
627
|
-
|
|
628
|
-
## 🏗️ Architecture
|
|
629
|
-
|
|
630
|
-
### Data Storage Strategy
|
|
631
|
-
|
|
632
|
-
**Ancestor nodes:** Store only tag name, position, and counter (minimal memory)
|
|
633
|
-
**Current node:** Store tag name, position, counter, and attribute values
|
|
634
|
-
|
|
635
|
-
This design minimizes memory usage:
|
|
636
|
-
- No attribute names stored (derived from values object when needed)
|
|
637
|
-
- Attribute values only for current node, not ancestors
|
|
638
|
-
- Attribute checking for ancestors is not supported (acceptable trade-off)
|
|
639
|
-
- For 1M nodes with 3 attributes each, saves ~50MB vs storing attribute names
|
|
640
|
-
|
|
641
|
-
### Matching Strategy
|
|
642
|
-
|
|
643
|
-
Matching is performed **bottom-to-top** (from current node toward root):
|
|
644
|
-
1. Start at current node
|
|
645
|
-
2. Match segments from pattern end to start
|
|
646
|
-
3. Attribute checking only works for current node (ancestors have no attribute data)
|
|
647
|
-
4. Position selectors use **counter** (occurrence count), not position (child index)
|
|
648
|
-
|
|
649
|
-
### Performance
|
|
650
|
-
|
|
651
|
-
- **Expression parsing:** One-time cost when Expression is created
|
|
652
|
-
- **Expression analysis:** Cached (hasDeepWildcard, hasAttributeCondition, hasPositionSelector)
|
|
653
|
-
- **Path tracking:** O(1) for push/pop operations
|
|
654
|
-
- **Pattern matching:** O(n*m) where n = path depth, m = pattern segments
|
|
655
|
-
- **Memory per ancestor node:** ~40-60 bytes (tag, position, counter only)
|
|
656
|
-
- **Memory per current node:** ~80-120 bytes (adds attribute values)
|
|
657
|
-
|
|
658
|
-
## 🎓 Design Patterns
|
|
659
|
-
|
|
660
|
-
### Pre-compile Patterns (Recommended)
|
|
661
|
-
|
|
662
|
-
```javascript
|
|
663
|
-
// ✅ GOOD: Parse once, reuse many times
|
|
664
|
-
const expr = new Expression("..user[id]");
|
|
665
|
-
|
|
666
|
-
for (let i = 0; i < 1000; i++) {
|
|
667
|
-
if (matcher.matches(expr)) {
|
|
668
|
-
// ...
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
```
|
|
672
|
-
|
|
673
|
-
```javascript
|
|
674
|
-
// ❌ BAD: Parse on every iteration
|
|
675
|
-
for (let i = 0; i < 1000; i++) {
|
|
676
|
-
if (matcher.matches(new Expression("..user[id]"))) {
|
|
677
|
-
// ...
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
```
|
|
681
|
-
|
|
682
|
-
### Batch Pattern Checking with ExpressionSet (Recommended)
|
|
683
|
-
|
|
684
|
-
For checking multiple patterns on every tag, use `ExpressionSet` instead of a manual loop.
|
|
685
|
-
It pre-indexes expressions at build time so each call to `matchesAny()` does an O(1) bucket
|
|
686
|
-
lookup rather than a full O(N) scan:
|
|
687
|
-
|
|
688
|
-
```javascript
|
|
689
|
-
import { Expression, ExpressionSet, Matcher } from 'path-expression-matcher';
|
|
690
|
-
|
|
691
|
-
// Build once at config/startup time
|
|
692
|
-
const stopNodes = new ExpressionSet();
|
|
693
|
-
stopNodes
|
|
694
|
-
.add(new Expression('root.users.user'))
|
|
695
|
-
.add(new Expression('root.config.*'))
|
|
696
|
-
.add(new Expression('..script'))
|
|
697
|
-
.seal(); // prevent accidental mutation during parsing
|
|
698
|
-
|
|
699
|
-
// Per-tag — hot path
|
|
700
|
-
if (stopNodes.matchesAny(matcher)) {
|
|
701
|
-
// handle stop node
|
|
702
|
-
}
|
|
703
|
-
```
|
|
704
|
-
|
|
705
|
-
This replaces the manual loop pattern:
|
|
706
|
-
|
|
707
|
-
```javascript
|
|
708
|
-
// ❌ Before — O(N) per tag
|
|
709
|
-
function isStopNode(expressions, matcher) {
|
|
710
|
-
for (let i = 0; i < expressions.length; i++) {
|
|
711
|
-
if (matcher.matches(expressions[i])) return true;
|
|
712
|
-
}
|
|
713
|
-
return false;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
// ✅ After — O(1) lookup per tag
|
|
717
|
-
const stopNodes = new ExpressionSet();
|
|
718
|
-
stopNodes.addAll(expressions);
|
|
719
|
-
stopNodes.matchesAny(matcher);
|
|
720
|
-
//or matcher.matchesAny(stopNodes)
|
|
721
|
-
```
|
|
722
|
-
|
|
723
|
-
---
|
|
724
|
-
|
|
725
|
-
## 📦 ExpressionSet API
|
|
726
|
-
|
|
727
|
-
`ExpressionSet` is an indexed collection of `Expression` objects designed for efficient
|
|
728
|
-
bulk matching. Build it once from your config, then call `matchesAny()` on every tag.
|
|
729
|
-
|
|
730
|
-
### Constructor
|
|
731
|
-
|
|
732
|
-
```javascript
|
|
733
|
-
const set = new ExpressionSet();
|
|
734
|
-
```
|
|
735
|
-
|
|
736
|
-
### `add(expression)` → `this`
|
|
737
|
-
|
|
738
|
-
Add a single `Expression`. Duplicate patterns (same pattern string) are silently ignored.
|
|
739
|
-
Returns `this` for chaining. Throws `TypeError` if the set is sealed.
|
|
740
|
-
|
|
741
|
-
```javascript
|
|
742
|
-
set.add(new Expression('root.users.user'));
|
|
743
|
-
set.add(new Expression('..script'));
|
|
744
|
-
```
|
|
745
|
-
|
|
746
|
-
### `addAll(expressions)` → `this`
|
|
747
|
-
|
|
748
|
-
Add an array of `Expression` objects at once. Returns `this` for chaining.
|
|
749
|
-
|
|
750
|
-
```javascript
|
|
751
|
-
set.addAll(config.stopNodes.map(p => new Expression(p)));
|
|
752
|
-
```
|
|
753
|
-
|
|
754
|
-
### `has(expression)` → `boolean`
|
|
755
|
-
|
|
756
|
-
Check whether an expression with the same pattern is already present.
|
|
757
|
-
|
|
758
|
-
```javascript
|
|
759
|
-
set.has(new Expression('root.users.user')); // true / false
|
|
760
|
-
```
|
|
761
|
-
|
|
762
|
-
### `seal()` → `this`
|
|
763
|
-
|
|
764
|
-
Prevent further additions. Any subsequent call to `add()` or `addAll()` throws a `TypeError`.
|
|
765
|
-
Useful to guard against accidental mutation once parsing has started.
|
|
766
|
-
|
|
767
|
-
```javascript
|
|
768
|
-
const stopNodes = new ExpressionSet();
|
|
769
|
-
stopNodes.addAll(patterns).seal();
|
|
770
|
-
|
|
771
|
-
stopNodes.add(new Expression('root.extra')); // ❌ TypeError: ExpressionSet is sealed
|
|
772
|
-
```
|
|
773
|
-
|
|
774
|
-
### `size` → `number`
|
|
775
|
-
|
|
776
|
-
Number of distinct expressions in the set.
|
|
777
|
-
|
|
778
|
-
```javascript
|
|
779
|
-
set.size; // 3
|
|
780
|
-
```
|
|
781
|
-
|
|
782
|
-
### `isSealed` → `boolean`
|
|
783
|
-
|
|
784
|
-
Whether `seal()` has been called.
|
|
785
|
-
|
|
786
|
-
### `matchesAny(matcher)` → `boolean`
|
|
787
|
-
|
|
788
|
-
Returns `true` if the matcher's current path matches **any** expression in the set.
|
|
789
|
-
Accepts both a `Matcher` instance and a `MatcherView`.
|
|
790
|
-
|
|
791
|
-
```javascript
|
|
792
|
-
if (stopNodes.matchesAny(matcher)) { /* ... */ }
|
|
793
|
-
if (stopNodes.matchesAny(matcher.readOnly())) { /* ... */ } // also works
|
|
794
|
-
```
|
|
795
|
-
|
|
796
|
-
**How indexing works:** expressions are bucketed at `add()` time, not at match time.
|
|
797
|
-
|
|
798
|
-
| Expression type | Bucket | Lookup cost |
|
|
799
|
-
|---|---|---|
|
|
800
|
-
| Fixed path, concrete tag (`root.users.user`) | `depth:tag` map | O(1) |
|
|
801
|
-
| Fixed path, wildcard tag (`root.config.*`) | `depth` map | O(1) |
|
|
802
|
-
| Deep wildcard (`..script`) | flat list | O(D) — always scanned |
|
|
803
|
-
|
|
804
|
-
In practice, deep-wildcard expressions are rare in configs, so the list stays small.
|
|
805
|
-
|
|
806
|
-
### `findMatch(matcher)` → `Expression`
|
|
807
|
-
|
|
808
|
-
Returns the Expression instance that matched the current path. Accepts both a `Matcher` instance and a `MatcherView`.
|
|
809
|
-
|
|
810
|
-
```javascript
|
|
811
|
-
const node = stopNodes.findMatch(matcher);
|
|
812
|
-
```
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
### Example 7: ExpressionSet in a real parser loop
|
|
816
|
-
|
|
817
|
-
```javascript
|
|
818
|
-
import { XMLParser } from 'fast-xml-parser';
|
|
819
|
-
import { Expression, ExpressionSet, Matcher } from 'path-expression-matcher';
|
|
820
|
-
|
|
821
|
-
// Config-time setup
|
|
822
|
-
const stopNodes = new ExpressionSet();
|
|
823
|
-
stopNodes
|
|
824
|
-
.addAll(['script', 'style'].map(t => new Expression(`..${t}`)))
|
|
825
|
-
.seal();
|
|
826
|
-
|
|
827
|
-
const matcher = new Matcher();
|
|
828
|
-
|
|
829
|
-
const parser = new XMLParser({
|
|
830
|
-
onOpenTag(tagName, attrs) {
|
|
831
|
-
matcher.push(tagName, attrs);
|
|
832
|
-
if (stopNodes.matchesAny(matcher)) {
|
|
833
|
-
// treat as stop node
|
|
834
|
-
}
|
|
835
|
-
},
|
|
836
|
-
onCloseTag() {
|
|
837
|
-
matcher.pop();
|
|
838
|
-
},
|
|
839
|
-
});
|
|
840
|
-
```
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
## 🔗 Integration with fast-xml-parser
|
|
845
|
-
|
|
846
|
-
**Basic integration:**
|
|
847
|
-
|
|
848
|
-
```javascript
|
|
849
|
-
import { XMLParser } from 'fast-xml-parser';
|
|
850
|
-
import { Expression, Matcher } from 'path-expression-matcher';
|
|
851
|
-
|
|
852
|
-
const parser = new XMLParser({
|
|
853
|
-
// Custom options using path-expression-matcher
|
|
854
|
-
stopNodes: ["script", "style"].map(tag => new Expression(`..${tag}`)),
|
|
855
|
-
|
|
856
|
-
tagValueProcessor: (tagName, value, jPath, hasAttrs, isLeaf, matcher) => {
|
|
857
|
-
// matcher is available in callbacks
|
|
858
|
-
if (matcher.matches(new Expression("..user[type=admin]"))) {
|
|
859
|
-
return enhanceValue(value);
|
|
860
|
-
}
|
|
861
|
-
return value;
|
|
862
|
-
}
|
|
863
|
-
});
|
|
864
|
-
```
|
|
865
|
-
|
|
866
|
-
## 📄 License
|
|
867
|
-
|
|
868
|
-
MIT
|
|
869
|
-
|
|
870
|
-
## 🤝 Contributing
|
|
871
|
-
|
|
872
|
-
Issues and PRs welcome! This package is designed to be used by XML/JSON parsers like fast-xml-parser. But can be used with any formar parser.
|