bot / node_modules /@aws-sdk /config-resolver /dist-cjs /endpointsConfig /resolveCustomEndpointsConfig.js
Download node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 776 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js
-
curl -L -o resolveCustomEndpointsConfig.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js
776 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.resolveCustomEndpointsConfig = void 0; | |
| const util_middleware_1 = require("@aws-sdk/util-middleware"); | |
| const resolveCustomEndpointsConfig = (input) => { | |
| var _a, _b; | |
| const { endpoint, urlParser } = input; | |
| return { | |
| ...input, | |
| tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, | |
| endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), | |
| isCustomEndpoint: true, | |
| useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)((_b = input.useDualstackEndpoint) !== null && _b !== void 0 ? _b : false), | |
| }; | |
| }; | |
| exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; | |