@mavogel/awscdk-rootmail 0.0.333 → 0.0.334
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/.claude/settings.local.json +2 -1
- package/.jsii +3 -3
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +3 -3
- package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +3 -3
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +4 -5
- package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +37 -37
- package/node_modules/@aws-sdk/client-route-53/package.json +36 -36
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLocationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +5 -0
- package/node_modules/@aws-sdk/client-s3/package.json +50 -50
- package/node_modules/@aws-sdk/client-ses/package.json +35 -35
- package/node_modules/@aws-sdk/client-ssm/package.json +34 -34
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +17 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +17 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/longPollMiddleware.js +15 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/longPollMiddleware.d.ts +14 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +15 -0
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/crc64-nvme/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +10 -10
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-route53/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
- package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +10 -38
- package/node_modules/@aws-sdk/util-locate-window/package.json +12 -11
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/config-resolver/README.md +10 -3
- package/node_modules/@smithy/config-resolver/package.json +10 -11
- package/node_modules/@smithy/credential-provider-imds/README.md +12 -3
- package/node_modules/@smithy/credential-provider-imds/package.json +9 -10
- package/node_modules/@smithy/eventstream-codec/README.md +13 -0
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +13 -0
- package/node_modules/@smithy/eventstream-codec/package.json +6 -7
- package/node_modules/@smithy/eventstream-serde-browser/README.md +10 -3
- package/node_modules/@smithy/eventstream-serde-browser/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-config-resolver/README.md +10 -3
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-node/README.md +10 -3
- package/node_modules/@smithy/eventstream-serde-node/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-universal/README.md +10 -3
- package/node_modules/@smithy/eventstream-serde-universal/package.json +9 -10
- package/node_modules/@smithy/hash-blob-browser/README.md +10 -3
- package/node_modules/@smithy/hash-blob-browser/package.json +6 -7
- package/node_modules/@smithy/hash-node/README.md +10 -3
- package/node_modules/@smithy/hash-node/package.json +6 -7
- package/node_modules/@smithy/hash-stream-node/README.md +9 -4
- package/node_modules/@smithy/hash-stream-node/package.json +6 -7
- package/node_modules/@smithy/invalid-dependency/README.md +10 -3
- package/node_modules/@smithy/invalid-dependency/package.json +6 -7
- package/node_modules/@smithy/md5-js/README.md +10 -3
- package/node_modules/@smithy/md5-js/package.json +6 -7
- package/node_modules/@smithy/middleware-content-length/README.md +13 -0
- package/node_modules/@smithy/middleware-content-length/package.json +7 -8
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/property-provider/README.md +10 -3
- package/node_modules/@smithy/property-provider/package.json +6 -7
- package/node_modules/@smithy/shared-ini-file-loader/package.json +7 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +13 -0
- package/node_modules/@smithy/signature-v4/package.json +9 -10
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -9
- package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -12
- package/node_modules/@smithy/util-endpoints/README.md +10 -3
- package/node_modules/@smithy/util-endpoints/package.json +9 -10
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +6 -0
- package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +3 -0
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +3 -0
- package/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +5 -0
- package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +5 -0
- package/node_modules/@smithy/util-retry/package.json +1 -1
- package/node_modules/@smithy/util-waiter/package.json +7 -8
- package/node_modules/@zone-eu/mailsplit/node_modules/libmime/CHANGELOG.md +172 -0
- package/node_modules/@zone-eu/mailsplit/node_modules/libmime/LICENSE +19 -0
- package/node_modules/@zone-eu/mailsplit/node_modules/libmime/README.md +207 -0
- package/node_modules/@zone-eu/mailsplit/node_modules/libmime/lib/charset.js +118 -0
- package/node_modules/@zone-eu/mailsplit/node_modules/libmime/lib/charsets.js +212 -0
- package/node_modules/@zone-eu/mailsplit/node_modules/libmime/lib/get-charset-name.js +227 -0
- package/node_modules/@zone-eu/mailsplit/node_modules/libmime/lib/libmime.js +924 -0
- package/node_modules/@zone-eu/mailsplit/node_modules/libmime/lib/mimetypes.js +2049 -0
- package/node_modules/@zone-eu/mailsplit/node_modules/libmime/package.json +42 -0
- package/node_modules/axios/CHANGELOG.md +1 -1
- package/node_modules/axios/README.md +90 -17
- package/node_modules/axios/dist/axios.js +47 -7
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +56 -8
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +56 -8
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +123 -9
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/lib/adapters/http.js +4 -2
- package/node_modules/axios/lib/core/Axios.js +19 -3
- package/node_modules/axios/lib/core/AxiosHeaders.js +35 -3
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +106 -0
- package/node_modules/axios/package.json +4 -1
- package/node_modules/bowser/README.md +74 -7
- package/node_modules/bowser/bundled.js +1 -1
- package/node_modules/bowser/es5.js +1 -1
- package/node_modules/bowser/index.d.ts +115 -12
- package/node_modules/bowser/package.json +17 -7
- package/node_modules/bowser/src/bowser.js +24 -8
- package/node_modules/bowser/src/constants.js +79 -18
- package/node_modules/bowser/src/parser-browsers.js +483 -0
- package/node_modules/bowser/src/parser-os.js +12 -0
- package/node_modules/bowser/src/parser-platforms.js +301 -1
- package/node_modules/bowser/src/parser.js +106 -10
- package/node_modules/bowser/src/utils.js +33 -15
- package/node_modules/call-bind-apply-helpers/.eslintrc +1 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +7 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +38 -20
- package/node_modules/call-bind-apply-helpers/index.js +1 -1
- package/node_modules/call-bind-apply-helpers/package.json +8 -8
- package/node_modules/call-bind-apply-helpers/test/index.js +4 -4
- package/node_modules/get-intrinsic/.eslintrc +4 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
- package/node_modules/get-intrinsic/index.js +1 -0
- package/node_modules/get-intrinsic/package.json +8 -8
- package/node_modules/htmlparser2/node_modules/entities/LICENSE +11 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/decode.d.ts +211 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/decode.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/decode.js +536 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/decode.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/encode.d.ts +22 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/encode.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/encode.js +77 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/encode.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/escape.d.ts +43 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/escape.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/escape.js +122 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/escape.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/decode.js +496 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/encode.js +69 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/escape.js +116 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/index.js +99 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/index.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/esm/package.json +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/encode-html.js +12 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/index.d.ts +96 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/index.js +126 -0
- package/node_modules/htmlparser2/node_modules/entities/lib/index.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/package.json +90 -0
- package/node_modules/htmlparser2/node_modules/entities/readme.md +122 -0
- package/node_modules/libmime/CHANGELOG.md +8 -0
- package/node_modules/libmime/README.md +1 -1
- package/node_modules/libmime/lib/charset.js +5 -5
- package/node_modules/libmime/lib/libmime.js +14 -9
- package/node_modules/libmime/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/libmime/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/node_modules/libmime/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/libmime/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/libmime/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/libmime/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/node_modules/libmime/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/libmime/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/libmime/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/libmime/node_modules/iconv-lite/types/encodings.d.ts +423 -0
- package/node_modules/libmime/package.json +4 -4
- package/node_modules/mailparser/.release-please-manifest.json +1 -1
- package/node_modules/mailparser/CHANGELOG.md +14 -0
- package/node_modules/mailparser/package.json +4 -4
- package/node_modules/nodemailer/CHANGELOG.md +8 -0
- package/node_modules/nodemailer/CLAUDE.md +55 -0
- package/node_modules/nodemailer/lib/smtp-connection/index.js +26 -4
- package/node_modules/nodemailer/package.json +4 -4
- package/node_modules/path-expression-matcher/README.md +214 -62
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +111 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -1
- package/node_modules/path-expression-matcher/package.json +1 -1
- package/node_modules/path-expression-matcher/src/Expression.js +2 -2
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +209 -0
- package/node_modules/path-expression-matcher/src/Matcher.js +247 -175
- package/node_modules/path-expression-matcher/src/index.d.ts +199 -194
- package/node_modules/path-expression-matcher/src/index.js +3 -2
- package/node_modules/strnum/package.json +1 -1
- package/package.json +27 -21
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +0 -23
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +0 -23
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/index.d.ts +0 -16
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +0 -37
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +0 -57
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/utils/getEndpointFromRegion.d.ts +0 -11
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/index.d.ts +0 -12
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/checkRegion.d.ts +0 -9
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/config.d.ts +0 -17
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts +0 -4
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/index.d.ts +0 -8
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts +0 -4
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts +0 -34
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts +0 -11
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts +0 -10
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts +0 -15
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/RegionHash.d.ts +0 -13
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getHostnameFromVariants.d.ts +0 -14
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts +0 -19
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts +0 -13
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts +0 -13
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts +0 -14
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/index.d.ts +0 -12
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/Endpoint.d.ts +0 -7
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointConfigOptions.d.ts +0 -13
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointMode.d.ts +0 -7
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointModeConfigOptions.d.ts +0 -13
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts +0 -12
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromContainerMetadata.d.ts +0 -21
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromInstanceMetadata.d.ts +0 -10
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +0 -28
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts +0 -19
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts +0 -40
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +0 -6
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/index.d.ts +0 -8
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/retry.d.ts +0 -10
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/types.d.ts +0 -7
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getExtendedInstanceMetadataCredentials.d.ts +0 -6
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getInstanceMetadataEndpoint.d.ts +0 -21
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts +0 -16
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/EventStreamCodec.d.ts +0 -31
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/HeaderMarshaller.d.ts +0 -12
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Int64.d.ts +0 -20
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Message.d.ts +0 -26
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageDecoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts +0 -18
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageDecoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageEncoderStream.d.ts +0 -17
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/TestVectors.fixture.d.ts +0 -2
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/index.d.ts +0 -8
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/splitMessage.d.ts +0 -11
- package/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/vectorTypes.fixture.d.ts +0 -12
- package/node_modules/@smithy/eventstream-serde-browser/dist-types/ts3.4/EventStreamMarshaller.d.ts +0 -47
- package/node_modules/@smithy/eventstream-serde-browser/dist-types/ts3.4/index.d.ts +0 -12
- package/node_modules/@smithy/eventstream-serde-browser/dist-types/ts3.4/provider.d.ts +0 -3
- package/node_modules/@smithy/eventstream-serde-browser/dist-types/ts3.4/utils.d.ts +0 -13
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/ts3.4/EventStreamSerdeConfig.d.ts +0 -27
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/ts3.4/index.d.ts +0 -4
- package/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/EventStreamMarshaller.d.ts +0 -23
- package/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/index.d.ts +0 -8
- package/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/provider.d.ts +0 -3
- package/node_modules/@smithy/eventstream-serde-node/dist-types/ts3.4/utils.d.ts +0 -12
- package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/EventStreamMarshaller.d.ts +0 -23
- package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/getChunkedStream.d.ts +0 -4
- package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/getUnmarshalledStream.d.ts +0 -18
- package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/index.d.ts +0 -8
- package/node_modules/@smithy/eventstream-serde-universal/dist-types/ts3.4/provider.d.ts +0 -3
- package/node_modules/@smithy/hash-blob-browser/dist-types/ts3.4/index.d.ts +0 -5
- package/node_modules/@smithy/hash-node/dist-types/ts3.4/index.d.ts +0 -13
- package/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/HashCalculator.d.ts +0 -11
- package/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/fileStreamHasher.d.ts +0 -6
- package/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/index.d.ts +0 -8
- package/node_modules/@smithy/hash-stream-node/dist-types/ts3.4/readableStreamHasher.d.ts +0 -6
- package/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/index.d.ts +0 -8
- package/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/invalidFunction.d.ts +0 -4
- package/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/invalidProvider.d.ts +0 -5
- package/node_modules/@smithy/md5-js/dist-types/ts3.4/constants.d.ts +0 -12
- package/node_modules/@smithy/md5-js/dist-types/ts3.4/index.d.ts +0 -16
- package/node_modules/@smithy/middleware-content-length/dist-types/ts3.4/index.d.ts +0 -6
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/LICENSE +0 -201
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/README.md +0 -105
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +0 -26
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +0 -12
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +0 -15
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +0 -196
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +0 -16
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +0 -16
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +0 -18
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +0 -4
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +0 -4
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +0 -22
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +0 -3
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +0 -8
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +0 -11
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +0 -5
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +0 -10
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +0 -39
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +0 -9
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +0 -14
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +0 -52
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +0 -6
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js +0 -12
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +0 -1
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +0 -4
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +0 -9
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +0 -8
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +0 -2
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +0 -2
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +0 -6
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +0 -15
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +0 -5
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +0 -52
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +0 -6
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +0 -10
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +0 -33
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +0 -17
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +0 -7
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +0 -2
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +0 -18
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/readFile.d.ts +0 -21
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +0 -16
- package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/package.json +0 -72
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/LICENSE +0 -201
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/README.md +0 -17
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/index.js +0 -117
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +0 -8
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/ProviderError.js +0 -23
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +0 -8
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/chain.js +0 -21
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/fromStatic.js +0 -1
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/index.js +0 -6
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/memoize.js +0 -45
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +0 -31
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +0 -39
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +0 -31
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/chain.d.ts +0 -13
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +0 -5
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/index.d.ts +0 -24
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +0 -40
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/package.json +0 -60
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/LICENSE +0 -201
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/README.md +0 -105
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +0 -26
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +0 -12
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +0 -15
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +0 -196
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +0 -16
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +0 -1
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +0 -16
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +0 -18
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +0 -4
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +0 -4
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +0 -22
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +0 -3
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +0 -8
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +0 -11
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +0 -5
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +0 -10
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +0 -39
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +0 -9
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +0 -14
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +0 -52
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +0 -6
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js +0 -12
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +0 -1
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +0 -4
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +0 -9
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +0 -8
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +0 -2
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +0 -2
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +0 -6
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +0 -15
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +0 -5
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +0 -52
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +0 -6
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +0 -10
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +0 -33
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +0 -17
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +0 -7
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +0 -2
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +0 -18
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/readFile.d.ts +0 -21
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +0 -16
- package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/package.json +0 -72
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +0 -31
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +0 -39
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +0 -31
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +0 -13
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +0 -5
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +0 -24
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +0 -40
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/constants.d.ts +0 -4
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +0 -9
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +0 -8
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +0 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +0 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +0 -6
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +0 -15
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +0 -5
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +0 -52
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +0 -6
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +0 -10
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +0 -33
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +0 -17
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +0 -7
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +0 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +0 -18
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/readFile.d.ts +0 -21
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +0 -16
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/HeaderFormatter.d.ts +0 -24
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +0 -21
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4Base.d.ts +0 -69
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/constants.d.ts +0 -43
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/credentialDerivation.d.ts +0 -30
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalHeaders.d.ts +0 -5
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalQuery.d.ts +0 -5
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getPayloadHash.d.ts +0 -5
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/headerUtil.d.ts +0 -4
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/index.d.ts +0 -11
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts +0 -10
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts +0 -5
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/signature-v4a-container.d.ts +0 -24
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/suite.fixture.d.ts +0 -14
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/utilDate.d.ts +0 -2
- package/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/constants.d.ts +0 -12
- package/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/index.d.ts +0 -4
- package/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/resolveDefaultsModeConfig.d.ts +0 -17
- package/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/resolveDefaultsModeConfig.native.d.ts +0 -16
- package/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/constants.d.ts +0 -24
- package/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/defaultsModeConfig.d.ts +0 -6
- package/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/index.d.ts +0 -4
- package/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/resolveDefaultsModeConfig.d.ts +0 -17
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/cache/EndpointCache.d.ts +0 -34
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/debugId.d.ts +0 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/index.d.ts +0 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/toDebugString.d.ts +0 -9
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/getEndpointUrlConfig.d.ts +0 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/index.d.ts +0 -6
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts +0 -5
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts +0 -7
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts +0 -4
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/index.d.ts +0 -9
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -4
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +0 -5
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts +0 -7
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/not.d.ts +0 -5
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts +0 -5
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts +0 -5
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/substring.d.ts +0 -7
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts +0 -4
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +0 -6
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +0 -3
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointFunctions.d.ts +0 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -5
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -4
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -3
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/index.d.ts +0 -7
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/shared.d.ts +0 -25
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +0 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/customEndpointFunctions.d.ts +0 -4
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/endpointFunctions.d.ts +0 -11
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts +0 -8
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts +0 -8
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts +0 -3
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts +0 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +0 -7
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +0 -8
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts +0 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +0 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts +0 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +0 -8
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +0 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts +0 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts +0 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/index.d.ts +0 -2
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/circularReplacer.d.ts +0 -6
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/createWaiter.d.ts +0 -11
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/index.d.ts +0 -2
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/poller.d.ts +0 -10
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/index.d.ts +0 -8
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/sleep.d.ts +0 -4
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/validate.d.ts +0 -8
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/waiter.d.ts +0 -49
- package/node_modules/bowser/CHANGELOG.md +0 -218
- package/node_modules/strnum/.github/SECURITY.md +0 -5
- package/node_modules/strnum/.vscode/launch.json +0 -25
- package/node_modules/strnum/algo.stflow +0 -84
- package/node_modules/strnum/tests/infinity_test.js +0 -18
- package/node_modules/strnum/tests/strnum_test.js +0 -175
- package/node_modules/strnum/tests/temp.js +0 -8
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/LICENSE +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/decode.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/decode.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/decode.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/decode.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/decode_codepoint.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/decode_codepoint.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/decode_codepoint.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/decode_codepoint.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/encode.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/encode.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/encode.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/encode.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/escape.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/escape.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/escape.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/escape.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/decode.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/decode.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/decode.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/decode.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/decode_codepoint.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/decode_codepoint.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/decode_codepoint.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/decode_codepoint.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/encode.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/encode.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/encode.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/encode.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/escape.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/escape.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/escape.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/escape.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/decode-data-html.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/decode-data-html.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/decode-data-html.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/decode-data-html.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/decode-data-xml.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/decode-data-xml.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/decode-data-xml.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/decode-data-xml.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/encode-html.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/encode-html.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/encode-html.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/generated/encode-html.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/index.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/index.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/index.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/index.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/esm/package.json +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/decode-data-html.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/decode-data-html.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/decode-data-html.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/decode-data-html.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/decode-data-xml.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/decode-data-xml.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/decode-data-xml.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/decode-data-xml.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/encode-html.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/encode-html.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/encode-html.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/generated/encode-html.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/index.d.ts +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/index.d.ts.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/index.js +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/lib/index.js.map +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/package.json +0 -0
- /package/node_modules/{entities → dom-serializer/node_modules/entities}/readme.md +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/CHANGELOG.md +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/LICENSE +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/README.md +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxbuilder.min.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxbuilder.min.js.map +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxp.cjs +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxp.d.cts +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxp.min.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxp.min.js.map +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxparser.min.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxparser.min.js.map +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxvalidator.min.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxvalidator.min.js.map +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/pem.d.cts +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/package.json +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/cli.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/man.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/read.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/fxp.d.ts +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/fxp.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/ignoreAttributes.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/pem.d.ts +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/util.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/CharsSymbol.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/EntitiesParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OptionsBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/BaseOutputBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsArrBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsObjBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/ParserOptionsBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/Report.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/TagPath.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/TagPathMatcher.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XMLParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/Xml2JsParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XmlPartReader.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XmlSpecialTagsReader.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/inputSource/BufferSource.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/inputSource/StringSource.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/EntitiesParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/booleanParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/booleanParserExt.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/currency.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/join.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/number.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/trim.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/validator.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlbuilder/json2xml.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/DocTypeReader.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/OptionsBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/OrderedObjParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/XMLParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/node2json.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/xmlNode.js +0 -0
|
@@ -0,0 +1,924 @@
|
|
|
1
|
+
/* eslint no-control-regex: 0, no-div-regex: 0, quotes: 0 */
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const { Buffer } = require('node:buffer');
|
|
5
|
+
const libcharset = require('./charset');
|
|
6
|
+
const libbase64 = require('libbase64');
|
|
7
|
+
const libqp = require('libqp');
|
|
8
|
+
const mimetypes = require('./mimetypes');
|
|
9
|
+
|
|
10
|
+
const STAGE_KEY = 0x1001;
|
|
11
|
+
const STAGE_VALUE = 0x1002;
|
|
12
|
+
|
|
13
|
+
class Libmime {
|
|
14
|
+
constructor(config) {
|
|
15
|
+
this.config = config || {};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Checks if a value is plaintext string (uses only printable 7bit chars)
|
|
20
|
+
*
|
|
21
|
+
* @param {String} value String to be tested
|
|
22
|
+
* @returns {Boolean} true if it is a plaintext string
|
|
23
|
+
*/
|
|
24
|
+
isPlainText(value) {
|
|
25
|
+
if (typeof value !== 'string' || /[\x00-\x08\x0b\x0c\x0e-\x1f\u0080-\uFFFF]/.test(value)) {
|
|
26
|
+
return false;
|
|
27
|
+
} else {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Checks if a multi line string containes lines longer than the selected value.
|
|
34
|
+
*
|
|
35
|
+
* Useful when detecting if a mail message needs any processing at all –
|
|
36
|
+
* if only plaintext characters are used and lines are short, then there is
|
|
37
|
+
* no need to encode the values in any way. If the value is plaintext but has
|
|
38
|
+
* longer lines then allowed, then use format=flowed
|
|
39
|
+
*
|
|
40
|
+
* @param {Number} lineLength Max line length to check for
|
|
41
|
+
* @returns {Boolean} Returns true if there is at least one line longer than lineLength chars
|
|
42
|
+
*/
|
|
43
|
+
hasLongerLines(str, lineLength) {
|
|
44
|
+
return new RegExp('^.{' + (lineLength + 1) + ',}', 'm').test(str);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Decodes a string from a format=flowed soft wrapping.
|
|
49
|
+
*
|
|
50
|
+
* @param {String} str Plaintext string with format=flowed to decode
|
|
51
|
+
* @param {Boolean} [delSp] If true, delete leading spaces (delsp=yes)
|
|
52
|
+
* @return {String} Mime decoded string
|
|
53
|
+
*/
|
|
54
|
+
decodeFlowed(str, delSp) {
|
|
55
|
+
str = (str || '').toString();
|
|
56
|
+
|
|
57
|
+
let lines = str.split(/\r?\n/);
|
|
58
|
+
|
|
59
|
+
let result = [],
|
|
60
|
+
buffer = null;
|
|
61
|
+
|
|
62
|
+
// remove soft linebreaks
|
|
63
|
+
// soft linebreaks are added after space symbols
|
|
64
|
+
for (let i = 0; i < lines.length; i++) {
|
|
65
|
+
let line = lines[i];
|
|
66
|
+
|
|
67
|
+
let isSoftBreak = buffer !== null && / $/.test(buffer) && !/(^|\n)-- $/.test(buffer);
|
|
68
|
+
|
|
69
|
+
if (isSoftBreak) {
|
|
70
|
+
if (delSp) {
|
|
71
|
+
// delsp adds space to text to be able to fold it
|
|
72
|
+
// these spaces can be removed once the text is unfolded
|
|
73
|
+
buffer = buffer.slice(0, -1) + line;
|
|
74
|
+
} else {
|
|
75
|
+
buffer += line;
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
if (buffer !== null) {
|
|
79
|
+
result.push(buffer);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
buffer = line;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (buffer) {
|
|
87
|
+
result.push(buffer);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// remove whitespace stuffing
|
|
91
|
+
// http://tools.ietf.org/html/rfc3676#section-4.4
|
|
92
|
+
return result.join('\n').replace(/^ /gm, '');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Adds soft line breaks to content marked with format=flowed to
|
|
97
|
+
* ensure that no line in the message is never longer than lineLength
|
|
98
|
+
*
|
|
99
|
+
* @param {String} str Plaintext string that requires wrapping
|
|
100
|
+
* @param {Number} [lineLength=76] Maximum length of a line
|
|
101
|
+
* @return {String} String with forced line breaks
|
|
102
|
+
*/
|
|
103
|
+
encodeFlowed(str, lineLength) {
|
|
104
|
+
lineLength = lineLength || 76;
|
|
105
|
+
|
|
106
|
+
let flowed = [];
|
|
107
|
+
str.split(/\r?\n/).forEach(line => {
|
|
108
|
+
flowed.push(
|
|
109
|
+
this.foldLines(
|
|
110
|
+
line
|
|
111
|
+
// space stuffing http://tools.ietf.org/html/rfc3676#section-4.2
|
|
112
|
+
.replace(/^( |From|>)/gim, ' $1'),
|
|
113
|
+
lineLength,
|
|
114
|
+
true
|
|
115
|
+
)
|
|
116
|
+
);
|
|
117
|
+
});
|
|
118
|
+
return flowed.join('\r\n');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Encodes a string or an Buffer to an UTF-8 MIME Word (rfc2047)
|
|
123
|
+
*
|
|
124
|
+
* @param {String|Buffer} data String to be encoded
|
|
125
|
+
* @param {String} mimeWordEncoding='Q' Encoding for the mime word, either Q or B
|
|
126
|
+
* @param {Number} [maxLength=0] If set, split mime words into several chunks if needed
|
|
127
|
+
* @return {String} Single or several mime words joined together
|
|
128
|
+
*/
|
|
129
|
+
encodeWord(data, mimeWordEncoding, maxLength) {
|
|
130
|
+
mimeWordEncoding = (mimeWordEncoding || 'Q').toString().toUpperCase().trim().charAt(0);
|
|
131
|
+
maxLength = maxLength || 0;
|
|
132
|
+
|
|
133
|
+
let encodedStr;
|
|
134
|
+
let toCharset = 'UTF-8';
|
|
135
|
+
|
|
136
|
+
if (maxLength && maxLength > 7 + toCharset.length) {
|
|
137
|
+
maxLength -= 7 + toCharset.length;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (mimeWordEncoding === 'Q') {
|
|
141
|
+
// https://tools.ietf.org/html/rfc2047#section-5 rule (3)
|
|
142
|
+
encodedStr = libqp.encode(data).replace(/[^a-z0-9!*+\-/=]/gi, chr => {
|
|
143
|
+
let ord = chr.charCodeAt(0).toString(16).toUpperCase();
|
|
144
|
+
if (chr === ' ') {
|
|
145
|
+
return '_';
|
|
146
|
+
} else {
|
|
147
|
+
return '=' + (ord.length === 1 ? '0' + ord : ord);
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
} else if (mimeWordEncoding === 'B') {
|
|
151
|
+
encodedStr = typeof data === 'string' ? data : libbase64.encode(data);
|
|
152
|
+
maxLength = maxLength ? Math.max(3, ((maxLength - (maxLength % 4)) / 4) * 3) : 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (maxLength && (mimeWordEncoding !== 'B' ? encodedStr : libbase64.encode(data)).length > maxLength) {
|
|
156
|
+
if (mimeWordEncoding === 'Q') {
|
|
157
|
+
encodedStr = this.splitMimeEncodedString(encodedStr, maxLength).join('?= =?' + toCharset + '?' + mimeWordEncoding + '?');
|
|
158
|
+
} else {
|
|
159
|
+
// RFC2047 6.3 (2) states that encoded-word must include an integral number of characters, so no chopping unicode sequences
|
|
160
|
+
let parts = [];
|
|
161
|
+
let lpart = '';
|
|
162
|
+
for (let i = 0, len = encodedStr.length; i < len; i++) {
|
|
163
|
+
let chr = encodedStr.charAt(i);
|
|
164
|
+
// check if we can add this character to the existing string
|
|
165
|
+
// without breaking byte length limit
|
|
166
|
+
|
|
167
|
+
if (/[\ud83c\ud83d\ud83e]/.test(chr) && i < len - 1) {
|
|
168
|
+
// composite emoji byte, so add the next byte as well
|
|
169
|
+
chr += encodedStr.charAt(++i);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (Buffer.byteLength(lpart + chr) <= maxLength || i === 0) {
|
|
173
|
+
lpart += chr;
|
|
174
|
+
} else {
|
|
175
|
+
// we hit the length limit, so push the existing string and start over
|
|
176
|
+
parts.push(libbase64.encode(lpart));
|
|
177
|
+
lpart = chr;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
if (lpart) {
|
|
181
|
+
parts.push(libbase64.encode(lpart));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (parts.length > 1) {
|
|
185
|
+
encodedStr = parts.join('?= =?' + toCharset + '?' + mimeWordEncoding + '?');
|
|
186
|
+
} else {
|
|
187
|
+
encodedStr = parts.join('');
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
} else if (mimeWordEncoding === 'B') {
|
|
191
|
+
encodedStr = libbase64.encode(data);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return '=?' + toCharset + '?' + mimeWordEncoding + '?' + encodedStr + (encodedStr.substr(-2) === '?=' ? '' : '?=');
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Decode a complete mime word encoded string
|
|
199
|
+
*
|
|
200
|
+
* @param {String} str Mime word encoded string
|
|
201
|
+
* @return {String} Decoded unicode string
|
|
202
|
+
*/
|
|
203
|
+
decodeWord(charset, encoding, str) {
|
|
204
|
+
// RFC2231 added language tag to the encoding
|
|
205
|
+
// see: https://tools.ietf.org/html/rfc2231#section-5
|
|
206
|
+
// this implementation silently ignores this tag
|
|
207
|
+
let splitPos = charset.indexOf('*');
|
|
208
|
+
if (splitPos >= 0) {
|
|
209
|
+
charset = charset.substr(0, splitPos);
|
|
210
|
+
}
|
|
211
|
+
charset = libcharset.normalizeCharset(charset);
|
|
212
|
+
|
|
213
|
+
encoding = encoding.toUpperCase();
|
|
214
|
+
|
|
215
|
+
if (encoding === 'Q') {
|
|
216
|
+
str = str
|
|
217
|
+
// remove spaces between = and hex char, this might indicate invalidly applied line splitting
|
|
218
|
+
.replace(/=\s+([0-9a-fA-F])/g, '=$1')
|
|
219
|
+
// convert all underscores to spaces
|
|
220
|
+
.replace(/[_\s]/g, ' ');
|
|
221
|
+
|
|
222
|
+
let buf = Buffer.from(str);
|
|
223
|
+
let bytes = [];
|
|
224
|
+
for (let i = 0, len = buf.length; i < len; i++) {
|
|
225
|
+
let c = buf[i];
|
|
226
|
+
if (i <= len - 2 && c === 0x3d /* = */) {
|
|
227
|
+
let c1 = this.getHex(buf[i + 1]);
|
|
228
|
+
let c2 = this.getHex(buf[i + 2]);
|
|
229
|
+
if (c1 && c2) {
|
|
230
|
+
let c = parseInt(c1 + c2, 16);
|
|
231
|
+
bytes.push(c);
|
|
232
|
+
i += 2;
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
bytes.push(c);
|
|
237
|
+
}
|
|
238
|
+
str = Buffer.from(bytes);
|
|
239
|
+
} else if (encoding === 'B') {
|
|
240
|
+
str = Buffer.concat(
|
|
241
|
+
str
|
|
242
|
+
.split('=')
|
|
243
|
+
.filter(s => s !== '') // filter empty string
|
|
244
|
+
.map(str => Buffer.from(str, 'base64'))
|
|
245
|
+
);
|
|
246
|
+
} else {
|
|
247
|
+
// keep as is, convert Buffer to unicode string, assume utf8
|
|
248
|
+
str = Buffer.from(str);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
return libcharset.decode(str, charset);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Finds word sequences with non ascii text and converts these to mime words
|
|
256
|
+
*
|
|
257
|
+
* @param {String|Buffer} data String to be encoded
|
|
258
|
+
* @param {String} mimeWordEncoding='Q' Encoding for the mime word, either Q or B
|
|
259
|
+
* @param {Number} [maxLength=0] If set, split mime words into several chunks if needed
|
|
260
|
+
* @param {String} [fromCharset='UTF-8'] Source sharacter set
|
|
261
|
+
* @return {String} String with possible mime words
|
|
262
|
+
*/
|
|
263
|
+
encodeWords(data, mimeWordEncoding, maxLength, fromCharset) {
|
|
264
|
+
if (!fromCharset && typeof maxLength === 'string' && !maxLength.match(/^[0-9]+$/)) {
|
|
265
|
+
fromCharset = maxLength;
|
|
266
|
+
maxLength = undefined;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
maxLength = maxLength || 0;
|
|
270
|
+
|
|
271
|
+
let decodedValue = libcharset.decode(libcharset.convert(data || '', fromCharset));
|
|
272
|
+
let encodedValue;
|
|
273
|
+
|
|
274
|
+
let firstMatch = decodedValue.match(/(?:^|\s)([^\s]*[\u0080-\uFFFF])/);
|
|
275
|
+
if (!firstMatch) {
|
|
276
|
+
return decodedValue;
|
|
277
|
+
}
|
|
278
|
+
let lastMatch = decodedValue.match(/([\u0080-\uFFFF][^\s]*)[^\u0080-\uFFFF]*$/);
|
|
279
|
+
if (!lastMatch) {
|
|
280
|
+
// should not happen
|
|
281
|
+
return decodedValue;
|
|
282
|
+
}
|
|
283
|
+
let startIndex =
|
|
284
|
+
firstMatch.index +
|
|
285
|
+
(
|
|
286
|
+
firstMatch[0].match(/[^\s]/) || {
|
|
287
|
+
index: 0
|
|
288
|
+
}
|
|
289
|
+
).index;
|
|
290
|
+
let endIndex = lastMatch.index + (lastMatch[1] || '').length;
|
|
291
|
+
|
|
292
|
+
encodedValue =
|
|
293
|
+
(startIndex ? decodedValue.substr(0, startIndex) : '') +
|
|
294
|
+
this.encodeWord(decodedValue.substring(startIndex, endIndex), mimeWordEncoding || 'Q', maxLength) +
|
|
295
|
+
(endIndex < decodedValue.length ? decodedValue.substr(endIndex) : '');
|
|
296
|
+
|
|
297
|
+
return encodedValue;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Decode a string that might include one or several mime words
|
|
302
|
+
*
|
|
303
|
+
* @param {String} str String including some mime words that will be encoded
|
|
304
|
+
* @return {String} Decoded unicode string
|
|
305
|
+
*/
|
|
306
|
+
decodeWords(str) {
|
|
307
|
+
return (
|
|
308
|
+
(str || '')
|
|
309
|
+
.toString()
|
|
310
|
+
// find base64 words that can be joined
|
|
311
|
+
.replace(/(=\?([^?]+)\?[Bb]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Bb]\?[^?]*\?=)/g, (match, left, chLeft, chRight) => {
|
|
312
|
+
// only mark b64 chunks to be joined if charsets match
|
|
313
|
+
if (libcharset.normalizeCharset(chLeft || '') === libcharset.normalizeCharset(chRight || '')) {
|
|
314
|
+
// set a joiner marker
|
|
315
|
+
return left + '__\x00JOIN\x00__';
|
|
316
|
+
}
|
|
317
|
+
return match;
|
|
318
|
+
})
|
|
319
|
+
// find QP words that can be joined
|
|
320
|
+
.replace(/(=\?([^?]+)\?[Qq]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Qq]\?[^?]*\?=)/g, (match, left, chLeft, chRight) => {
|
|
321
|
+
// only mark QP chunks to be joined if charsets match
|
|
322
|
+
if (libcharset.normalizeCharset(chLeft || '') === libcharset.normalizeCharset(chRight || '')) {
|
|
323
|
+
// set a joiner marker
|
|
324
|
+
return left + '__\x00JOIN\x00__';
|
|
325
|
+
}
|
|
326
|
+
return match;
|
|
327
|
+
})
|
|
328
|
+
// join base64 encoded words
|
|
329
|
+
.replace(/(\?=)?__\x00JOIN\x00__(=\?([^?]+)\?[QqBb]\?)?/g, '')
|
|
330
|
+
// remove spaces between mime encoded words
|
|
331
|
+
.replace(/(=\?[^?]+\?[QqBb]\?[^?]*\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]*\?=)/g, '$1')
|
|
332
|
+
// decode words
|
|
333
|
+
.replace(/=\?([\w_\-*]+)\?([QqBb])\?([^?]*)\?=/g, (m, charset, encoding, text) => this.decodeWord(charset, encoding, text))
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
getHex(c) {
|
|
338
|
+
if ((c >= 0x30 /* 0 */ && c <= 0x39) /* 9 */ || (c >= 0x61 /* a */ && c <= 0x66) /* f */ || (c >= 0x41 /* A */ && c <= 0x46) /* F */) {
|
|
339
|
+
return String.fromCharCode(c);
|
|
340
|
+
}
|
|
341
|
+
return false;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Splits a string by :
|
|
346
|
+
* The result is not mime word decoded, you need to do your own decoding based
|
|
347
|
+
* on the rules for the specific header key
|
|
348
|
+
*
|
|
349
|
+
* @param {String} headerLine Single header line, might include linebreaks as well if folded
|
|
350
|
+
* @return {Object} And object of {key, value}
|
|
351
|
+
*/
|
|
352
|
+
decodeHeader(headerLine) {
|
|
353
|
+
let line = (headerLine || '')
|
|
354
|
+
.toString()
|
|
355
|
+
.replace(/(?:\r?\n|\r)[ \t]*/g, ' ')
|
|
356
|
+
.trim(),
|
|
357
|
+
match = line.match(/^\s*([^:]+):(.*)$/),
|
|
358
|
+
key = ((match && match[1]) || '').trim().toLowerCase(),
|
|
359
|
+
value = ((match && match[2]) || '').trim();
|
|
360
|
+
|
|
361
|
+
return {
|
|
362
|
+
key,
|
|
363
|
+
value
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Parses a block of header lines. Does not decode mime words as every
|
|
369
|
+
* header might have its own rules (eg. formatted email addresses and such)
|
|
370
|
+
*
|
|
371
|
+
* @param {String} headers Headers string
|
|
372
|
+
* @return {Object} An object of headers, where header keys are object keys. NB! Several values with the same key make up an Array
|
|
373
|
+
*/
|
|
374
|
+
decodeHeaders(headers) {
|
|
375
|
+
let lines = headers.split(/\r?\n|\r/),
|
|
376
|
+
headersObj = {},
|
|
377
|
+
header,
|
|
378
|
+
i,
|
|
379
|
+
len;
|
|
380
|
+
|
|
381
|
+
for (i = lines.length - 1; i >= 0; i--) {
|
|
382
|
+
if (i && lines[i].match(/^\s/)) {
|
|
383
|
+
lines[i - 1] += '\r\n' + lines[i];
|
|
384
|
+
lines.splice(i, 1);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
for (i = 0, len = lines.length; i < len; i++) {
|
|
389
|
+
header = this.decodeHeader(lines[i]);
|
|
390
|
+
if (!headersObj[header.key]) {
|
|
391
|
+
headersObj[header.key] = [header.value];
|
|
392
|
+
} else {
|
|
393
|
+
headersObj[header.key].push(header.value);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
return headersObj;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Joins parsed header value together as 'value; param1=value1; param2=value2'
|
|
402
|
+
* PS: We are following RFC 822 for the list of special characters that we need to keep in quotes.
|
|
403
|
+
* Refer: https://www.w3.org/Protocols/rfc1341/4_Content-Type.html
|
|
404
|
+
* @param {Object} structured Parsed header value
|
|
405
|
+
* @return {String} joined header value
|
|
406
|
+
*/
|
|
407
|
+
buildHeaderValue(structured) {
|
|
408
|
+
let paramsArray = [];
|
|
409
|
+
|
|
410
|
+
Object.keys(structured.params || {}).forEach(param => {
|
|
411
|
+
// filename might include unicode characters so it is a special case
|
|
412
|
+
let value = structured.params[param];
|
|
413
|
+
if (!this.isPlainText(value) || value.length >= 75) {
|
|
414
|
+
this.buildHeaderParam(param, value, 50).forEach(encodedParam => {
|
|
415
|
+
if (!/[\s"\\;:/=(),<>@[\]?]|^[-']|'$/.test(encodedParam.value) || encodedParam.key.substr(-1) === '*') {
|
|
416
|
+
paramsArray.push(encodedParam.key + '=' + encodedParam.value);
|
|
417
|
+
} else {
|
|
418
|
+
paramsArray.push(encodedParam.key + '=' + JSON.stringify(encodedParam.value));
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
} else if (/[\s'"\\;:/=(),<>@[\]?]|^-/.test(value)) {
|
|
422
|
+
paramsArray.push(param + '=' + JSON.stringify(value));
|
|
423
|
+
} else {
|
|
424
|
+
paramsArray.push(param + '=' + value);
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
return structured.value + (paramsArray.length ? '; ' + paramsArray.join('; ') : '');
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Parses a header value with key=value arguments into a structured
|
|
433
|
+
* object.
|
|
434
|
+
*
|
|
435
|
+
* parseHeaderValue('content-type: text/plain; CHARSET='UTF-8'') ->
|
|
436
|
+
* {
|
|
437
|
+
* 'value': 'text/plain',
|
|
438
|
+
* 'params': {
|
|
439
|
+
* 'charset': 'UTF-8'
|
|
440
|
+
* }
|
|
441
|
+
* }
|
|
442
|
+
*
|
|
443
|
+
* @param {String} str Header value
|
|
444
|
+
* @return {Object} Header value as a parsed structure
|
|
445
|
+
*/
|
|
446
|
+
parseHeaderValue(str) {
|
|
447
|
+
let response = {
|
|
448
|
+
value: false,
|
|
449
|
+
params: {}
|
|
450
|
+
};
|
|
451
|
+
let key = false;
|
|
452
|
+
let value = '';
|
|
453
|
+
let stage = STAGE_VALUE;
|
|
454
|
+
|
|
455
|
+
let quote = false;
|
|
456
|
+
let escaped = false;
|
|
457
|
+
let chr;
|
|
458
|
+
|
|
459
|
+
for (let i = 0, len = str.length; i < len; i++) {
|
|
460
|
+
chr = str.charAt(i);
|
|
461
|
+
switch (stage) {
|
|
462
|
+
case STAGE_KEY:
|
|
463
|
+
if (chr === '=') {
|
|
464
|
+
key = value.trim().toLowerCase();
|
|
465
|
+
stage = STAGE_VALUE;
|
|
466
|
+
value = '';
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
value += chr;
|
|
470
|
+
break;
|
|
471
|
+
case STAGE_VALUE:
|
|
472
|
+
if (escaped) {
|
|
473
|
+
value += chr;
|
|
474
|
+
} else if (chr === '\\') {
|
|
475
|
+
escaped = true;
|
|
476
|
+
continue;
|
|
477
|
+
} else if (quote && chr === quote) {
|
|
478
|
+
quote = false;
|
|
479
|
+
} else if (!quote && chr === '"') {
|
|
480
|
+
quote = chr;
|
|
481
|
+
} else if (!quote && chr === ';') {
|
|
482
|
+
if (key === false) {
|
|
483
|
+
response.value = value.trim();
|
|
484
|
+
} else {
|
|
485
|
+
response.params[key] = value.trim();
|
|
486
|
+
}
|
|
487
|
+
stage = STAGE_KEY;
|
|
488
|
+
value = '';
|
|
489
|
+
} else {
|
|
490
|
+
value += chr;
|
|
491
|
+
}
|
|
492
|
+
escaped = false;
|
|
493
|
+
break;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
// finalize remainder
|
|
498
|
+
value = value.trim();
|
|
499
|
+
if (stage === STAGE_VALUE) {
|
|
500
|
+
if (key === false) {
|
|
501
|
+
// default value
|
|
502
|
+
response.value = value;
|
|
503
|
+
} else {
|
|
504
|
+
// subkey value
|
|
505
|
+
response.params[key] = value;
|
|
506
|
+
}
|
|
507
|
+
} else if (value) {
|
|
508
|
+
// treat as key without value, see emptykey:
|
|
509
|
+
// Header-Key: somevalue; key=value; emptykey
|
|
510
|
+
response.params[value.toLowerCase()] = '';
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
// handle parameter value continuations
|
|
514
|
+
// https://tools.ietf.org/html/rfc2231#section-3
|
|
515
|
+
|
|
516
|
+
// preprocess values
|
|
517
|
+
Object.keys(response.params).forEach(key => {
|
|
518
|
+
let actualKey;
|
|
519
|
+
let nr;
|
|
520
|
+
let value;
|
|
521
|
+
|
|
522
|
+
let match = key.match(/\*((\d+)\*?)?$/);
|
|
523
|
+
|
|
524
|
+
if (!match) {
|
|
525
|
+
// nothing to do here, does not seem like a continuation param
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
actualKey = key.substr(0, match.index).toLowerCase();
|
|
530
|
+
nr = Number(match[2]) || 0;
|
|
531
|
+
|
|
532
|
+
if (!response.params[actualKey] || typeof response.params[actualKey] !== 'object') {
|
|
533
|
+
response.params[actualKey] = {
|
|
534
|
+
charset: false,
|
|
535
|
+
values: []
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
value = response.params[key];
|
|
540
|
+
|
|
541
|
+
if (nr === 0 && match[0].charAt(match[0].length - 1) === '*' && (match = value.match(/^([^']*)'[^']*'(.*)$/))) {
|
|
542
|
+
response.params[actualKey].charset = match[1] || 'utf-8';
|
|
543
|
+
value = match[2];
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
response.params[actualKey].values.push({ nr, value });
|
|
547
|
+
|
|
548
|
+
// remove the old reference
|
|
549
|
+
delete response.params[key];
|
|
550
|
+
});
|
|
551
|
+
|
|
552
|
+
// concatenate split rfc2231 strings and convert encoded strings to mime encoded words
|
|
553
|
+
Object.keys(response.params).forEach(key => {
|
|
554
|
+
let value;
|
|
555
|
+
if (response.params[key] && Array.isArray(response.params[key].values)) {
|
|
556
|
+
value = response.params[key].values
|
|
557
|
+
.sort((a, b) => a.nr - b.nr)
|
|
558
|
+
.map(val => (val && val.value) || '')
|
|
559
|
+
.join('');
|
|
560
|
+
|
|
561
|
+
if (response.params[key].charset) {
|
|
562
|
+
// convert "%AB" to "=?charset?Q?=AB?=" and then to unicode
|
|
563
|
+
response.params[key] = this.decodeWords(
|
|
564
|
+
'=?' +
|
|
565
|
+
response.params[key].charset +
|
|
566
|
+
'?Q?' +
|
|
567
|
+
value
|
|
568
|
+
// fix invalidly encoded chars
|
|
569
|
+
.replace(/[=?_\s]/g, s => {
|
|
570
|
+
let c = s.charCodeAt(0).toString(16);
|
|
571
|
+
if (s === ' ') {
|
|
572
|
+
return '_';
|
|
573
|
+
} else {
|
|
574
|
+
return '%' + (c.length < 2 ? '0' : '') + c;
|
|
575
|
+
}
|
|
576
|
+
})
|
|
577
|
+
// change from urlencoding to percent encoding
|
|
578
|
+
.replace(/%/g, '=') +
|
|
579
|
+
'?='
|
|
580
|
+
);
|
|
581
|
+
} else {
|
|
582
|
+
response.params[key] = this.decodeWords(value);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
|
|
587
|
+
return response;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Encodes a string or an Buffer to an UTF-8 Parameter Value Continuation encoding (rfc2231)
|
|
592
|
+
* Useful for splitting long parameter values.
|
|
593
|
+
*
|
|
594
|
+
* For example
|
|
595
|
+
* title="unicode string"
|
|
596
|
+
* becomes
|
|
597
|
+
* title*0*=utf-8''unicode
|
|
598
|
+
* title*1*=%20string
|
|
599
|
+
*
|
|
600
|
+
* @param {String|Buffer} data String to be encoded
|
|
601
|
+
* @param {Number} [maxLength=50] Max length for generated chunks
|
|
602
|
+
* @param {String} [fromCharset='UTF-8'] Source sharacter set
|
|
603
|
+
* @return {Array} A list of encoded keys and headers
|
|
604
|
+
*/
|
|
605
|
+
buildHeaderParam(key, data, maxLength, fromCharset) {
|
|
606
|
+
let list = [];
|
|
607
|
+
let encodedStr = typeof data === 'string' ? data : this.decode(data, fromCharset);
|
|
608
|
+
let encodedStrArr;
|
|
609
|
+
let chr, ord;
|
|
610
|
+
let line;
|
|
611
|
+
let startPos = 0;
|
|
612
|
+
let isEncoded = false;
|
|
613
|
+
let i, len;
|
|
614
|
+
|
|
615
|
+
maxLength = maxLength || 50;
|
|
616
|
+
|
|
617
|
+
// process ascii only text
|
|
618
|
+
if (this.isPlainText(data)) {
|
|
619
|
+
// check if conversion is even needed
|
|
620
|
+
if (encodedStr.length <= maxLength) {
|
|
621
|
+
return [
|
|
622
|
+
{
|
|
623
|
+
key,
|
|
624
|
+
value: encodedStr
|
|
625
|
+
}
|
|
626
|
+
];
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
encodedStr = encodedStr.replace(new RegExp('.{' + maxLength + '}', 'g'), str => {
|
|
630
|
+
list.push({
|
|
631
|
+
line: str
|
|
632
|
+
});
|
|
633
|
+
return '';
|
|
634
|
+
});
|
|
635
|
+
|
|
636
|
+
if (encodedStr) {
|
|
637
|
+
list.push({
|
|
638
|
+
line: encodedStr
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
} else {
|
|
642
|
+
if (/[\uD800-\uDBFF]/.test(encodedStr)) {
|
|
643
|
+
// string containts surrogate pairs, so normalize it to an array of bytes
|
|
644
|
+
encodedStrArr = [];
|
|
645
|
+
for (i = 0, len = encodedStr.length; i < len; i++) {
|
|
646
|
+
chr = encodedStr.charAt(i);
|
|
647
|
+
ord = chr.charCodeAt(0);
|
|
648
|
+
if (ord >= 0xd800 && ord <= 0xdbff && i < len - 1) {
|
|
649
|
+
chr += encodedStr.charAt(i + 1);
|
|
650
|
+
encodedStrArr.push(chr);
|
|
651
|
+
i++;
|
|
652
|
+
} else {
|
|
653
|
+
encodedStrArr.push(chr);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
encodedStr = encodedStrArr;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
// first line includes the charset and language info and needs to be encoded
|
|
660
|
+
// even if it does not contain any unicode characters
|
|
661
|
+
line = "utf-8''";
|
|
662
|
+
isEncoded = true;
|
|
663
|
+
startPos = 0;
|
|
664
|
+
|
|
665
|
+
// process text with unicode or special chars
|
|
666
|
+
for (i = 0, len = encodedStr.length; i < len; i++) {
|
|
667
|
+
chr = encodedStr[i];
|
|
668
|
+
|
|
669
|
+
if (isEncoded) {
|
|
670
|
+
chr = this.safeEncodeURIComponent(chr);
|
|
671
|
+
} else {
|
|
672
|
+
// try to urlencode current char
|
|
673
|
+
chr = chr === ' ' ? chr : this.safeEncodeURIComponent(chr);
|
|
674
|
+
// By default it is not required to encode a line, the need
|
|
675
|
+
// only appears when the string contains unicode or special chars
|
|
676
|
+
// in this case we start processing the line over and encode all chars
|
|
677
|
+
if (chr !== encodedStr[i]) {
|
|
678
|
+
// Check if it is even possible to add the encoded char to the line
|
|
679
|
+
// If not, there is no reason to use this line, just push it to the list
|
|
680
|
+
// and start a new line with the char that needs encoding
|
|
681
|
+
if ((this.safeEncodeURIComponent(line) + chr).length >= maxLength) {
|
|
682
|
+
list.push({
|
|
683
|
+
line,
|
|
684
|
+
encoded: isEncoded
|
|
685
|
+
});
|
|
686
|
+
line = '';
|
|
687
|
+
startPos = i - 1;
|
|
688
|
+
} else {
|
|
689
|
+
isEncoded = true;
|
|
690
|
+
i = startPos;
|
|
691
|
+
line = '';
|
|
692
|
+
continue;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
// if the line is already too long, push it to the list and start a new one
|
|
698
|
+
if ((line + chr).length >= maxLength) {
|
|
699
|
+
list.push({
|
|
700
|
+
line,
|
|
701
|
+
encoded: isEncoded
|
|
702
|
+
});
|
|
703
|
+
line = chr = encodedStr[i] === ' ' ? ' ' : this.safeEncodeURIComponent(encodedStr[i]);
|
|
704
|
+
if (chr === encodedStr[i]) {
|
|
705
|
+
isEncoded = false;
|
|
706
|
+
startPos = i - 1;
|
|
707
|
+
} else {
|
|
708
|
+
isEncoded = true;
|
|
709
|
+
}
|
|
710
|
+
} else {
|
|
711
|
+
line += chr;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
if (line) {
|
|
716
|
+
list.push({
|
|
717
|
+
line,
|
|
718
|
+
encoded: isEncoded
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
return list.map((item, i) => ({
|
|
724
|
+
// encoded lines: {name}*{part}*
|
|
725
|
+
// unencoded lines: {name}*{part}
|
|
726
|
+
// if any line needs to be encoded then the first line (part==0) is always encoded
|
|
727
|
+
key: key + '*' + i + (item.encoded ? '*' : ''),
|
|
728
|
+
value: item.line
|
|
729
|
+
}));
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Returns file extension for a content type string. If no suitable extensions
|
|
734
|
+
* are found, 'bin' is used as the default extension
|
|
735
|
+
*
|
|
736
|
+
* @param {String} mimeType Content type to be checked for
|
|
737
|
+
* @return {String} File extension
|
|
738
|
+
*/
|
|
739
|
+
detectExtension(mimeType) {
|
|
740
|
+
mimeType = (mimeType || '').toString().toLowerCase().replace(/\s/g, '');
|
|
741
|
+
if (!(mimeType in mimetypes.list)) {
|
|
742
|
+
return 'bin';
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
if (typeof mimetypes.list[mimeType] === 'string') {
|
|
746
|
+
return mimetypes.list[mimeType];
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
let mimeParts = mimeType.split('/');
|
|
750
|
+
|
|
751
|
+
// search for name match
|
|
752
|
+
for (let i = 0, len = mimetypes.list[mimeType].length; i < len; i++) {
|
|
753
|
+
if (mimeParts[1] === mimetypes.list[mimeType][i]) {
|
|
754
|
+
return mimetypes.list[mimeType][i];
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
// use the first one
|
|
759
|
+
return mimetypes.list[mimeType][0] !== '*' ? mimetypes.list[mimeType][0] : 'bin';
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Returns content type for a file extension. If no suitable content types
|
|
764
|
+
* are found, 'application/octet-stream' is used as the default content type
|
|
765
|
+
*
|
|
766
|
+
* @param {String} extension Extension to be checked for
|
|
767
|
+
* @return {String} File extension
|
|
768
|
+
*/
|
|
769
|
+
detectMimeType(extension) {
|
|
770
|
+
extension = (extension || '').toString().toLowerCase().replace(/\s/g, '').replace(/^\./g, '').split('.').pop();
|
|
771
|
+
|
|
772
|
+
if (!(extension in mimetypes.extensions)) {
|
|
773
|
+
return 'application/octet-stream';
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
if (typeof mimetypes.extensions[extension] === 'string') {
|
|
777
|
+
return mimetypes.extensions[extension];
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
let mimeParts;
|
|
781
|
+
|
|
782
|
+
// search for name match
|
|
783
|
+
for (let i = 0, len = mimetypes.extensions[extension].length; i < len; i++) {
|
|
784
|
+
mimeParts = mimetypes.extensions[extension][i].split('/');
|
|
785
|
+
if (mimeParts[1] === extension) {
|
|
786
|
+
return mimetypes.extensions[extension][i];
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
// use the first one
|
|
791
|
+
return mimetypes.extensions[extension][0];
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Folds long lines, useful for folding header lines (afterSpace=false) and
|
|
796
|
+
* flowed text (afterSpace=true)
|
|
797
|
+
*
|
|
798
|
+
* @param {String} str String to be folded
|
|
799
|
+
* @param {Number} [lineLength=76] Maximum length of a line
|
|
800
|
+
* @param {Boolean} afterSpace If true, leave a space in th end of a line
|
|
801
|
+
* @return {String} String with folded lines
|
|
802
|
+
*/
|
|
803
|
+
foldLines(str, lineLength, afterSpace) {
|
|
804
|
+
str = (str || '').toString();
|
|
805
|
+
lineLength = lineLength || 76;
|
|
806
|
+
|
|
807
|
+
let pos = 0,
|
|
808
|
+
len = str.length,
|
|
809
|
+
result = '',
|
|
810
|
+
line,
|
|
811
|
+
match;
|
|
812
|
+
|
|
813
|
+
while (pos < len) {
|
|
814
|
+
line = str.substr(pos, lineLength);
|
|
815
|
+
if (line.length < lineLength) {
|
|
816
|
+
result += line;
|
|
817
|
+
break;
|
|
818
|
+
}
|
|
819
|
+
if ((match = line.match(/^[^\n\r]*(\r?\n|\r)/))) {
|
|
820
|
+
line = match[0];
|
|
821
|
+
result += line;
|
|
822
|
+
pos += line.length;
|
|
823
|
+
continue;
|
|
824
|
+
} else if ((match = line.match(/(\s+)[^\s]*$/)) && match[0].length - (afterSpace ? (match[1] || '').length : 0) < line.length) {
|
|
825
|
+
line = line.substr(0, line.length - (match[0].length - (afterSpace ? (match[1] || '').length : 0)));
|
|
826
|
+
} else if ((match = str.substr(pos + line.length).match(/^[^\s]+(\s*)/))) {
|
|
827
|
+
line = line + match[0].substr(0, match[0].length - (!afterSpace ? (match[1] || '').length : 0));
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
result += line;
|
|
831
|
+
pos += line.length;
|
|
832
|
+
if (pos < len) {
|
|
833
|
+
result += '\r\n';
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
return result;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* Splits a mime encoded string. Needed for dividing mime words into smaller chunks
|
|
842
|
+
*
|
|
843
|
+
* @param {String} str Mime encoded string to be split up
|
|
844
|
+
* @param {Number} maxlen Maximum length of characters for one part (minimum 12)
|
|
845
|
+
* @return {Array} Split string
|
|
846
|
+
*/
|
|
847
|
+
splitMimeEncodedString(str, maxlen) {
|
|
848
|
+
let curLine,
|
|
849
|
+
match,
|
|
850
|
+
chr,
|
|
851
|
+
done,
|
|
852
|
+
lines = [];
|
|
853
|
+
|
|
854
|
+
// require at least 12 symbols to fit possible 4 octet UTF-8 sequences
|
|
855
|
+
maxlen = Math.max(maxlen || 0, 12);
|
|
856
|
+
|
|
857
|
+
while (str.length) {
|
|
858
|
+
curLine = str.substr(0, maxlen);
|
|
859
|
+
|
|
860
|
+
// move incomplete escaped char back to main
|
|
861
|
+
if ((match = curLine.match(/[=][0-9A-F]?$/i))) {
|
|
862
|
+
curLine = curLine.substr(0, match.index);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
done = false;
|
|
866
|
+
while (!done) {
|
|
867
|
+
done = true;
|
|
868
|
+
// check if not middle of a unicode char sequence
|
|
869
|
+
if ((match = str.substr(curLine.length).match(/^[=]([0-9A-F]{2})/i))) {
|
|
870
|
+
chr = parseInt(match[1], 16);
|
|
871
|
+
// invalid sequence, move one char back anc recheck
|
|
872
|
+
if (chr < 0xc2 && chr > 0x7f) {
|
|
873
|
+
curLine = curLine.substr(0, curLine.length - 3);
|
|
874
|
+
done = false;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
if (curLine.length) {
|
|
880
|
+
lines.push(curLine);
|
|
881
|
+
}
|
|
882
|
+
str = str.substr(curLine.length);
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
return lines;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
encodeURICharComponent(chr) {
|
|
889
|
+
let res = '';
|
|
890
|
+
let ord = chr.charCodeAt(0).toString(16).toUpperCase();
|
|
891
|
+
|
|
892
|
+
if (ord.length % 2) {
|
|
893
|
+
ord = '0' + ord;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
if (ord.length > 2) {
|
|
897
|
+
for (let i = 0, len = ord.length / 2; i < len; i++) {
|
|
898
|
+
res += '%' + ord.substr(i, 2);
|
|
899
|
+
}
|
|
900
|
+
} else {
|
|
901
|
+
res += '%' + ord;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
return res;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
safeEncodeURIComponent(str) {
|
|
908
|
+
str = (str || '').toString();
|
|
909
|
+
|
|
910
|
+
try {
|
|
911
|
+
// might throw if we try to encode invalid sequences, eg. partial emoji
|
|
912
|
+
str = encodeURIComponent(str);
|
|
913
|
+
} catch (E) {
|
|
914
|
+
// should never run
|
|
915
|
+
return str.replace(/[^\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]+/g, '');
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
// ensure chars that are not handled by encodeURICompent are converted as well
|
|
919
|
+
return str.replace(/[\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]/g, chr => this.encodeURICharComponent(chr));
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
module.exports = new Libmime();
|
|
924
|
+
module.exports.Libmime = Libmime;
|