bot / node_modules /@aws-sdk /config-resolver /dist-es /endpointsConfig /resolveCustomEndpointsConfig.js
Download node_modules/@aws-sdk/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js
-
curl -L -o resolveCustomEndpointsConfig.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js
453 Bytes
| import { normalizeProvider } from "@aws-sdk/util-middleware"; | |
| export const resolveCustomEndpointsConfig = (input) => { | |
| const { endpoint, urlParser } = input; | |
| return { | |
| ...input, | |
| tls: input.tls ?? true, | |
| endpoint: normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), | |
| isCustomEndpoint: true, | |
| useDualstackEndpoint: normalizeProvider(input.useDualstackEndpoint ?? false), | |
| }; | |
| }; | |