@cdklabs/cdk-construct-connect-datalake 0.0.0 → 0.0.2
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 +10 -10
- package/.jsii.tabl.json +1 -1
- package/lib/index.js +1 -1
- package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +2 -2
- package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +2 -2
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +1 -1
- package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/README.md +26 -46
- package/node_modules/@aws-sdk/client-cloudformation/package.json +39 -39
- package/node_modules/@aws-sdk/client-connect/README.md +47 -46
- package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +43 -0
- package/node_modules/@aws-sdk/client-connect/dist-cjs/schemas/schemas_0.js +109 -41
- package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +6 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/AssociateQueueEmailAddressesCommand.js +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/DisassociateQueueEmailAddressesCommand.js +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListQueueEmailAddressesCommand.js +16 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +78 -10
- package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +21 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +5 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/AssociateQueueEmailAddressesCommand.d.ts +120 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateQueueCommand.d.ts +5 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTestCaseCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactEvaluationCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeTestCaseCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DisassociateQueueEmailAddressesCommand.d.ts +109 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetTestCaseExecutionSummaryCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetTrafficDistributionCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListQueueEmailAddressesCommand.d.ts +121 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactEvaluationsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchRoutingProfilesCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchSecurityProfilesCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchTestCasesCommand.d.ts +5 -3
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateTestCaseCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +62 -88
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +137 -81
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +147 -148
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +150 -3
- package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +10 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +51 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/AssociateQueueEmailAddressesCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DisassociateQueueEmailAddressesCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetTestCaseExecutionSummaryCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetTrafficDistributionCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListQueueEmailAddressesCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchRoutingProfilesCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchSecurityProfilesCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchTestCasesCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +14 -20
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +30 -24
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +35 -35
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +34 -3
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -0
- package/node_modules/@aws-sdk/client-connect/package.json +38 -38
- package/node_modules/@aws-sdk/client-glue/README.md +26 -46
- package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/client-glue/dist-cjs/schemas/schemas_0.js +5 -4
- package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +4 -0
- package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +5 -4
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetPartitionCommand.d.ts +16 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCatalogCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateDataQualityRulesetCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCatalogCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +12 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +50 -43
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +41 -21
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +23 -33
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateDataQualityRulesetCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +13 -9
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +9 -5
- package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +6 -8
- package/node_modules/@aws-sdk/client-glue/package.json +38 -38
- package/node_modules/@aws-sdk/client-lakeformation/README.md +26 -46
- package/node_modules/@aws-sdk/client-lakeformation/package.json +39 -39
- package/node_modules/@aws-sdk/client-ram/README.md +26 -46
- package/node_modules/@aws-sdk/client-ram/dist-cjs/schemas/schemas_0.js +14 -6
- package/node_modules/@aws-sdk/client-ram/dist-es/schemas/schemas_0.js +12 -4
- package/node_modules/@aws-sdk/client-ram/dist-types/commands/CreateResourceShareCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-ram/dist-types/commands/GetResourceSharesCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ram/dist-types/commands/UpdateResourceShareCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ram/dist-types/models/models_0.d.ts +21 -0
- package/node_modules/@aws-sdk/client-ram/dist-types/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/models/models_0.d.ts +5 -0
- package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ram/package.json +38 -38
- package/node_modules/@aws-sdk/client-sts/README.md +26 -46
- package/node_modules/@aws-sdk/client-sts/package.json +43 -39
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +11 -15
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +11 -15
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +3 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -7
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -0
- package/node_modules/@aws-sdk/core/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
- package/node_modules/@aws-sdk/credential-provider-login/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +9 -9
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +9 -9
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +4 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +39 -37
- package/node_modules/@aws-sdk/region-config-resolver/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/package.json +8 -8
- package/node_modules/@aws-sdk/types/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
- package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +87 -14
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js +15 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js +14 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +59 -8
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getNodeModulesParentDirs.d.ts +10 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedDevTypeScriptVersion.d.ts +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getNodeModulesParentDirs.d.ts +1 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedDevTypeScriptVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +7 -6
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +21 -11
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +5 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/escape-attribute.js +8 -1
- package/node_modules/@aws-sdk/xml-builder/dist-es/escape-element.js +13 -10
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +5 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +59 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/README.md +8 -7
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +97 -21
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/pem.d.cts +148 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +5 -3
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +91 -19
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/pem.d.ts +135 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +18 -25
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +87 -87
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +10 -10
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +17 -17
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +22 -22
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +85 -85
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +34 -34
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -284
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +37 -18
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +78 -5
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +317 -113
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +23 -23
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +96 -42
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +10 -10
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/CHANGELOG.md +9 -2
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/README.md +1 -0
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/package.json +3 -3
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/strnum.js +161 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/tests/infinity_test.js +18 -0
- package/node_modules/{strnum/strnum.test.js → @aws-sdk/xml-builder/node_modules/strnum/tests/strnum_test.js} +70 -68
- package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/tests/temp.js +8 -0
- package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
- package/node_modules/@smithy/abort-controller/package.json +3 -3
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +12 -0
- package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +5 -0
- package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +5 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/package.json +7 -7
- package/node_modules/@smithy/core/dist-cjs/index.js +1 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +9 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +11 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +42 -5
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +31 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +6 -0
- package/node_modules/@smithy/core/endpoints.d.ts +7 -0
- package/node_modules/@smithy/core/endpoints.js +6 -0
- package/node_modules/@smithy/core/package.json +21 -12
- package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +21 -4
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +21 -4
- package/node_modules/@smithy/fetch-http-handler/package.json +7 -7
- package/node_modules/@smithy/hash-node/package.json +5 -5
- package/node_modules/@smithy/invalid-dependency/package.json +3 -3
- package/node_modules/@smithy/is-array-buffer/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +17 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +9 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +8 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +2 -2
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +9 -9
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +9 -12
- package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +9 -12
- package/node_modules/@smithy/middleware-retry/package.json +10 -10
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +3 -2
- package/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +3 -2
- package/node_modules/@smithy/middleware-serde/package.json +5 -4
- package/node_modules/@smithy/middleware-stack/package.json +3 -3
- package/node_modules/@smithy/node-config-provider/package.json +5 -5
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +68 -45
- package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +41 -35
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -5
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +6 -6
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
- package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +6 -6
- package/node_modules/@smithy/property-provider/package.json +3 -3
- package/node_modules/@smithy/protocol-http/package.json +3 -3
- package/node_modules/@smithy/querystring-builder/package.json +4 -4
- package/node_modules/@smithy/querystring-parser/package.json +3 -3
- package/node_modules/@smithy/service-error-classification/package.json +3 -3
- package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
- package/node_modules/@smithy/signature-v4/package.json +9 -9
- package/node_modules/@smithy/smithy-client/package.json +8 -8
- package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +4 -4
- package/node_modules/@smithy/util-base64/package.json +4 -4
- package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
- package/node_modules/@smithy/util-body-length-node/package.json +2 -2
- package/node_modules/@smithy/util-buffer-from/package.json +3 -3
- package/node_modules/@smithy/util-config-provider/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
- package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
- package/node_modules/@smithy/util-endpoints/package.json +4 -4
- package/node_modules/@smithy/util-hex-encoding/package.json +2 -2
- package/node_modules/@smithy/util-middleware/package.json +3 -3
- package/node_modules/@smithy/util-retry/package.json +4 -4
- package/node_modules/@smithy/util-stream/package.json +9 -9
- package/node_modules/@smithy/util-uri-escape/package.json +2 -2
- package/node_modules/@smithy/util-utf8/package.json +3 -3
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/util-waiter/dist-es/poller.js +1 -1
- package/node_modules/@smithy/util-waiter/package.json +4 -4
- package/node_modules/@smithy/uuid/package.json +2 -2
- package/node_modules/fast-xml-builder/CHANGELOG.md +16 -0
- package/node_modules/fast-xml-builder/LICENSE +21 -0
- package/node_modules/fast-xml-builder/README.md +23 -0
- package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -0
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +180 -0
- package/node_modules/fast-xml-builder/lib/fxb.min.js +2 -0
- package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -0
- package/node_modules/fast-xml-builder/package.json +80 -0
- package/node_modules/fast-xml-builder/src/fxb.d.ts +180 -0
- package/node_modules/fast-xml-builder/src/fxb.js +529 -0
- package/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +292 -0
- package/node_modules/path-expression-matcher/LICENSE +21 -0
- package/node_modules/path-expression-matcher/README.md +720 -0
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -0
- package/node_modules/path-expression-matcher/lib/pem.d.cts +523 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +2 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -0
- package/node_modules/path-expression-matcher/package.json +78 -0
- package/node_modules/path-expression-matcher/src/Expression.js +232 -0
- package/node_modules/path-expression-matcher/src/Matcher.js +498 -0
- package/node_modules/path-expression-matcher/src/index.d.ts +518 -0
- package/node_modules/path-expression-matcher/src/index.js +28 -0
- package/node_modules/xml2js/node_modules/sax/lib/sax.js +151 -7
- package/node_modules/xml2js/node_modules/sax/package.json +5 -2
- package/package.json +10 -10
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +0 -14
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +0 -9
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +0 -134
- package/node_modules/strnum/strnum.js +0 -129
- package/node_modules/strnum/test.js +0 -9
- /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/.github/SECURITY.md +0 -0
- /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/.vscode/launch.json +0 -0
- /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/LICENSE +0 -0
- /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/algo.stflow +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/prettifyJs2Xml.js +0 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { Expression, Matcher } from 'path-expression-matcher';
|
|
2
|
+
|
|
3
|
+
const EOL = "\n";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param {array} jArray
|
|
8
|
+
* @param {any} options
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export default function toXml(jArray, options) {
|
|
12
|
+
let indentation = "";
|
|
13
|
+
if (options.format && options.indentBy.length > 0) {
|
|
14
|
+
indentation = EOL;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Pre-compile stopNode expressions for pattern matching
|
|
18
|
+
const stopNodeExpressions = [];
|
|
19
|
+
if (options.stopNodes && Array.isArray(options.stopNodes)) {
|
|
20
|
+
for (let i = 0; i < options.stopNodes.length; i++) {
|
|
21
|
+
const node = options.stopNodes[i];
|
|
22
|
+
if (typeof node === 'string') {
|
|
23
|
+
stopNodeExpressions.push(new Expression(node));
|
|
24
|
+
} else if (node instanceof Expression) {
|
|
25
|
+
stopNodeExpressions.push(node);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Initialize matcher for path tracking
|
|
31
|
+
const matcher = new Matcher();
|
|
32
|
+
|
|
33
|
+
return arrToStr(jArray, options, indentation, matcher, stopNodeExpressions);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function arrToStr(arr, options, indentation, matcher, stopNodeExpressions) {
|
|
37
|
+
let xmlStr = "";
|
|
38
|
+
let isPreviousElementTag = false;
|
|
39
|
+
|
|
40
|
+
if (options.maxNestedTags && matcher.getDepth() > options.maxNestedTags) {
|
|
41
|
+
throw new Error("Maximum nested tags exceeded");
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (!Array.isArray(arr)) {
|
|
45
|
+
// Non-array values (e.g. string tag values) should be treated as text content
|
|
46
|
+
if (arr !== undefined && arr !== null) {
|
|
47
|
+
let text = arr.toString();
|
|
48
|
+
text = replaceEntitiesValue(text, options);
|
|
49
|
+
return text;
|
|
50
|
+
}
|
|
51
|
+
return "";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
for (let i = 0; i < arr.length; i++) {
|
|
55
|
+
const tagObj = arr[i];
|
|
56
|
+
const tagName = propName(tagObj);
|
|
57
|
+
if (tagName === undefined) continue;
|
|
58
|
+
|
|
59
|
+
// Extract attributes from ":@" property
|
|
60
|
+
const attrValues = extractAttributeValues(tagObj[":@"], options);
|
|
61
|
+
|
|
62
|
+
// Push tag to matcher WITH attributes
|
|
63
|
+
matcher.push(tagName, attrValues);
|
|
64
|
+
|
|
65
|
+
// Check if this is a stop node using Expression matching
|
|
66
|
+
const isStopNode = checkStopNode(matcher, stopNodeExpressions);
|
|
67
|
+
|
|
68
|
+
if (tagName === options.textNodeName) {
|
|
69
|
+
let tagText = tagObj[tagName];
|
|
70
|
+
if (!isStopNode) {
|
|
71
|
+
tagText = options.tagValueProcessor(tagName, tagText);
|
|
72
|
+
tagText = replaceEntitiesValue(tagText, options);
|
|
73
|
+
}
|
|
74
|
+
if (isPreviousElementTag) {
|
|
75
|
+
xmlStr += indentation;
|
|
76
|
+
}
|
|
77
|
+
xmlStr += tagText;
|
|
78
|
+
isPreviousElementTag = false;
|
|
79
|
+
matcher.pop();
|
|
80
|
+
continue;
|
|
81
|
+
} else if (tagName === options.cdataPropName) {
|
|
82
|
+
if (isPreviousElementTag) {
|
|
83
|
+
xmlStr += indentation;
|
|
84
|
+
}
|
|
85
|
+
xmlStr += `<![CDATA[${tagObj[tagName][0][options.textNodeName]}]]>`;
|
|
86
|
+
isPreviousElementTag = false;
|
|
87
|
+
matcher.pop();
|
|
88
|
+
continue;
|
|
89
|
+
} else if (tagName === options.commentPropName) {
|
|
90
|
+
xmlStr += indentation + `<!--${tagObj[tagName][0][options.textNodeName]}-->`;
|
|
91
|
+
isPreviousElementTag = true;
|
|
92
|
+
matcher.pop();
|
|
93
|
+
continue;
|
|
94
|
+
} else if (tagName[0] === "?") {
|
|
95
|
+
const attStr = attr_to_str(tagObj[":@"], options, isStopNode);
|
|
96
|
+
const tempInd = tagName === "?xml" ? "" : indentation;
|
|
97
|
+
let piTextNodeName = tagObj[tagName][0][options.textNodeName];
|
|
98
|
+
piTextNodeName = piTextNodeName.length !== 0 ? " " + piTextNodeName : ""; //remove extra spacing
|
|
99
|
+
xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr}?>`;
|
|
100
|
+
isPreviousElementTag = true;
|
|
101
|
+
matcher.pop();
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
let newIdentation = indentation;
|
|
106
|
+
if (newIdentation !== "") {
|
|
107
|
+
newIdentation += options.indentBy;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Pass isStopNode to attr_to_str so attributes are also not processed for stopNodes
|
|
111
|
+
const attStr = attr_to_str(tagObj[":@"], options, isStopNode);
|
|
112
|
+
const tagStart = indentation + `<${tagName}${attStr}`;
|
|
113
|
+
|
|
114
|
+
// If this is a stopNode, get raw content without processing
|
|
115
|
+
let tagValue;
|
|
116
|
+
if (isStopNode) {
|
|
117
|
+
tagValue = getRawContent(tagObj[tagName], options);
|
|
118
|
+
} else {
|
|
119
|
+
|
|
120
|
+
tagValue = arrToStr(tagObj[tagName], options, newIdentation, matcher, stopNodeExpressions);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (options.unpairedTags.indexOf(tagName) !== -1) {
|
|
124
|
+
if (options.suppressUnpairedNode) xmlStr += tagStart + ">";
|
|
125
|
+
else xmlStr += tagStart + "/>";
|
|
126
|
+
} else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) {
|
|
127
|
+
xmlStr += tagStart + "/>";
|
|
128
|
+
} else if (tagValue && tagValue.endsWith(">")) {
|
|
129
|
+
xmlStr += tagStart + `>${tagValue}${indentation}</${tagName}>`;
|
|
130
|
+
} else {
|
|
131
|
+
xmlStr += tagStart + ">";
|
|
132
|
+
if (tagValue && indentation !== "" && (tagValue.includes("/>") || tagValue.includes("</"))) {
|
|
133
|
+
xmlStr += indentation + options.indentBy + tagValue + indentation;
|
|
134
|
+
} else {
|
|
135
|
+
xmlStr += tagValue;
|
|
136
|
+
}
|
|
137
|
+
xmlStr += `</${tagName}>`;
|
|
138
|
+
}
|
|
139
|
+
isPreviousElementTag = true;
|
|
140
|
+
|
|
141
|
+
// Pop tag from matcher
|
|
142
|
+
matcher.pop();
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return xmlStr;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Extract attribute values from the ":@" object and return as plain object
|
|
150
|
+
* for passing to matcher.push()
|
|
151
|
+
*/
|
|
152
|
+
function extractAttributeValues(attrMap, options) {
|
|
153
|
+
if (!attrMap || options.ignoreAttributes) return null;
|
|
154
|
+
|
|
155
|
+
const attrValues = {};
|
|
156
|
+
let hasAttrs = false;
|
|
157
|
+
|
|
158
|
+
for (let attr in attrMap) {
|
|
159
|
+
if (!Object.prototype.hasOwnProperty.call(attrMap, attr)) continue;
|
|
160
|
+
// Remove the attribute prefix to get clean attribute name
|
|
161
|
+
const cleanAttrName = attr.startsWith(options.attributeNamePrefix)
|
|
162
|
+
? attr.substr(options.attributeNamePrefix.length)
|
|
163
|
+
: attr;
|
|
164
|
+
attrValues[cleanAttrName] = attrMap[attr];
|
|
165
|
+
hasAttrs = true;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return hasAttrs ? attrValues : null;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Extract raw content from a stopNode without any processing
|
|
173
|
+
* This preserves the content exactly as-is, including special characters
|
|
174
|
+
*/
|
|
175
|
+
function getRawContent(arr, options) {
|
|
176
|
+
if (!Array.isArray(arr)) {
|
|
177
|
+
// Non-array values return as-is
|
|
178
|
+
if (arr !== undefined && arr !== null) {
|
|
179
|
+
return arr.toString();
|
|
180
|
+
}
|
|
181
|
+
return "";
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
let content = "";
|
|
185
|
+
for (let i = 0; i < arr.length; i++) {
|
|
186
|
+
const item = arr[i];
|
|
187
|
+
const tagName = propName(item);
|
|
188
|
+
|
|
189
|
+
if (tagName === options.textNodeName) {
|
|
190
|
+
// Raw text content - NO processing, NO entity replacement
|
|
191
|
+
content += item[tagName];
|
|
192
|
+
} else if (tagName === options.cdataPropName) {
|
|
193
|
+
// CDATA content
|
|
194
|
+
content += item[tagName][0][options.textNodeName];
|
|
195
|
+
} else if (tagName === options.commentPropName) {
|
|
196
|
+
// Comment content
|
|
197
|
+
content += item[tagName][0][options.textNodeName];
|
|
198
|
+
} else if (tagName && tagName[0] === "?") {
|
|
199
|
+
// Processing instruction - skip for stopNodes
|
|
200
|
+
continue;
|
|
201
|
+
} else if (tagName) {
|
|
202
|
+
// Nested tags within stopNode
|
|
203
|
+
// Recursively get raw content and reconstruct the tag
|
|
204
|
+
// For stopNodes, we don't process attributes either
|
|
205
|
+
const attStr = attr_to_str_raw(item[":@"], options);
|
|
206
|
+
const nestedContent = getRawContent(item[tagName], options);
|
|
207
|
+
|
|
208
|
+
if (!nestedContent || nestedContent.length === 0) {
|
|
209
|
+
content += `<${tagName}${attStr}/>`;
|
|
210
|
+
} else {
|
|
211
|
+
content += `<${tagName}${attStr}>${nestedContent}</${tagName}>`;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return content;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Build attribute string for stopNodes - NO entity replacement
|
|
220
|
+
*/
|
|
221
|
+
function attr_to_str_raw(attrMap, options) {
|
|
222
|
+
let attrStr = "";
|
|
223
|
+
if (attrMap && !options.ignoreAttributes) {
|
|
224
|
+
for (let attr in attrMap) {
|
|
225
|
+
if (!Object.prototype.hasOwnProperty.call(attrMap, attr)) continue;
|
|
226
|
+
// For stopNodes, use raw value without processing
|
|
227
|
+
let attrVal = attrMap[attr];
|
|
228
|
+
if (attrVal === true && options.suppressBooleanAttributes) {
|
|
229
|
+
attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;
|
|
230
|
+
} else {
|
|
231
|
+
attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}="${attrVal}"`;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return attrStr;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function propName(obj) {
|
|
239
|
+
const keys = Object.keys(obj);
|
|
240
|
+
for (let i = 0; i < keys.length; i++) {
|
|
241
|
+
const key = keys[i];
|
|
242
|
+
if (!Object.prototype.hasOwnProperty.call(obj, key)) continue;
|
|
243
|
+
if (key !== ":@") return key;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function attr_to_str(attrMap, options, isStopNode) {
|
|
248
|
+
let attrStr = "";
|
|
249
|
+
if (attrMap && !options.ignoreAttributes) {
|
|
250
|
+
for (let attr in attrMap) {
|
|
251
|
+
if (!Object.prototype.hasOwnProperty.call(attrMap, attr)) continue;
|
|
252
|
+
let attrVal;
|
|
253
|
+
|
|
254
|
+
if (isStopNode) {
|
|
255
|
+
// For stopNodes, use raw value without any processing
|
|
256
|
+
attrVal = attrMap[attr];
|
|
257
|
+
} else {
|
|
258
|
+
// Normal processing: apply attributeValueProcessor and entity replacement
|
|
259
|
+
attrVal = options.attributeValueProcessor(attr, attrMap[attr]);
|
|
260
|
+
attrVal = replaceEntitiesValue(attrVal, options);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (attrVal === true && options.suppressBooleanAttributes) {
|
|
264
|
+
attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;
|
|
265
|
+
} else {
|
|
266
|
+
attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}="${attrVal}"`;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return attrStr;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
function checkStopNode(matcher, stopNodeExpressions) {
|
|
274
|
+
if (!stopNodeExpressions || stopNodeExpressions.length === 0) return false;
|
|
275
|
+
|
|
276
|
+
for (let i = 0; i < stopNodeExpressions.length; i++) {
|
|
277
|
+
if (matcher.matches(stopNodeExpressions[i])) {
|
|
278
|
+
return true;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return false;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function replaceEntitiesValue(textValue, options) {
|
|
285
|
+
if (textValue && textValue.length > 0 && options.processEntities) {
|
|
286
|
+
for (let i = 0; i < options.entities.length; i++) {
|
|
287
|
+
const entity = options.entities[i];
|
|
288
|
+
textValue = textValue.replace(entity.regex, entity.val);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
return textValue;
|
|
292
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|