- Extract 4756 source files from cli.js.map (57MB) - Set up Bun build system with bun:bundle feature flag shim - Configure 90+ compile-time feature flags matching production defaults - Inject MACRO constants (VERSION, BUILD_TIME, etc.) - Create stubs for private packages (color-diff-napi, modifiers-napi, etc.) - Install all public dependencies via pnpm - Patch commander v14 to allow multi-char short flags (-d2e) - Build output: dist/cli.js (22MB), verified working
36 lines
1.6 KiB
JavaScript
36 lines
1.6 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getEndpointUrlConfig = void 0;
|
|
const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader");
|
|
const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
|
|
const CONFIG_ENDPOINT_URL = "endpoint_url";
|
|
const getEndpointUrlConfig = (serviceId) => ({
|
|
environmentVariableSelector: (env) => {
|
|
const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase());
|
|
const serviceEndpointUrl = env[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")];
|
|
if (serviceEndpointUrl)
|
|
return serviceEndpointUrl;
|
|
const endpointUrl = env[ENV_ENDPOINT_URL];
|
|
if (endpointUrl)
|
|
return endpointUrl;
|
|
return undefined;
|
|
},
|
|
configFileSelector: (profile, config) => {
|
|
if (config && profile.services) {
|
|
const servicesSection = config[["services", profile.services].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];
|
|
if (servicesSection) {
|
|
const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase());
|
|
const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];
|
|
if (endpointUrl)
|
|
return endpointUrl;
|
|
}
|
|
}
|
|
const endpointUrl = profile[CONFIG_ENDPOINT_URL];
|
|
if (endpointUrl)
|
|
return endpointUrl;
|
|
return undefined;
|
|
},
|
|
default: undefined,
|
|
});
|
|
exports.getEndpointUrlConfig = getEndpointUrlConfig;
|