@stacksjs/buddy 0.62.0 → 0.63.0
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/dist/chunk-03ckp0m6.js +1222 -0
- package/dist/chunk-03ckp0m6.js.map +26 -0
- package/dist/{chunk-d489210ea37079cc.js → chunk-1f1xhs02.js} +114 -114
- package/dist/chunk-1f1xhs02.js.map +46 -0
- package/dist/chunk-582dnm6a.js +664 -0
- package/dist/chunk-582dnm6a.js.map +22 -0
- package/dist/chunk-6pac0yn5.js +126 -0
- package/dist/chunk-6pac0yn5.js.map +10 -0
- package/dist/chunk-7jmyxm7k.js +85 -0
- package/dist/chunk-7jmyxm7k.js.map +12 -0
- package/dist/chunk-8217wvpy.js +108 -0
- package/dist/chunk-8217wvpy.js.map +16 -0
- package/dist/chunk-8420n19j.js +7417 -0
- package/dist/chunk-8420n19j.js.map +59 -0
- package/dist/chunk-afhgv4v9.js +164 -0
- package/dist/chunk-afhgv4v9.js.map +13 -0
- package/dist/chunk-as72s87r.js +61 -0
- package/dist/chunk-as72s87r.js.map +11 -0
- package/dist/{chunk-970e033f764e29fc.js → chunk-cnvp47g4.js} +4 -1
- package/dist/chunk-cnvp47g4.js.map +9 -0
- package/dist/chunk-mmbfc5ft.js +287 -0
- package/dist/chunk-mmbfc5ft.js.map +20 -0
- package/dist/chunk-nr24kzd1.js +178 -0
- package/dist/chunk-nr24kzd1.js.map +17 -0
- package/dist/chunk-q2vnqdcs.js +1696 -0
- package/dist/chunk-q2vnqdcs.js.map +56 -0
- package/dist/chunk-qx96ff3m.js +95 -0
- package/dist/chunk-qx96ff3m.js.map +11 -0
- package/dist/chunk-rt463pw6.js +46 -0
- package/dist/chunk-rt463pw6.js.map +10 -0
- package/dist/chunk-sc3etgb7.js +208 -0
- package/dist/chunk-sc3etgb7.js.map +23 -0
- package/dist/chunk-tegm7yex.js +10767 -0
- package/dist/chunk-tegm7yex.js.map +171 -0
- package/dist/chunk-xhsvfzz8.js +381 -0
- package/dist/chunk-xhsvfzz8.js.map +23 -0
- package/dist/chunk-yrsms9d2.js +1746 -0
- package/dist/chunk-yrsms9d2.js.map +32 -0
- package/dist/chunk-zzerxbrm.js +110 -0
- package/dist/chunk-zzerxbrm.js.map +15 -0
- package/dist/cli.js +13 -2
- package/dist/cli.js.map +10 -0
- package/dist/index.js +13 -2
- package/dist/index.js.map +9 -0
- package/dist/stacks +0 -0
- package/package.json +8 -1
- package/src/commands/cloud.ts +164 -10
- package/src/commands/configure.ts +2 -1
- package/src/commands/deploy.ts +55 -4
- package/src/commands/dev.ts +2 -2
- package/src/commands/make.ts +1 -2
- package/src/commands/migrate.ts +1 -1
- package/dist/chunk-df5ec841ab2a0086.js +0 -2271
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthExtensionConfiguration.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js", "../../../../../node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import { getHostHeaderPlugin, resolveHostHeaderConfig, } from \"@aws-sdk/middleware-host-header\";\nimport { getLoggerPlugin } from \"@aws-sdk/middleware-logger\";\nimport { getRecursionDetectionPlugin } from \"@aws-sdk/middleware-recursion-detection\";\nimport { getUserAgentPlugin, resolveUserAgentConfig, } from \"@aws-sdk/middleware-user-agent\";\nimport { resolveRegionConfig } from \"@smithy/config-resolver\";\nimport { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from \"@smithy/core\";\nimport { getContentLengthPlugin } from \"@smithy/middleware-content-length\";\nimport { resolveEndpointConfig } from \"@smithy/middleware-endpoint\";\nimport { getRetryPlugin, resolveRetryConfig } from \"@smithy/middleware-retry\";\nimport { Client as __Client, } from \"@smithy/smithy-client\";\nimport { defaultSSOHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from \"./auth/httpAuthSchemeProvider\";\nimport { resolveClientEndpointParameters, } from \"./endpoint/EndpointParameters\";\nimport { getRuntimeConfig as __getRuntimeConfig } from \"./runtimeConfig\";\nimport { resolveRuntimeExtensions } from \"./runtimeExtensions\";\nexport { __Client };\nexport class SSOClient extends __Client {\n constructor(...[configuration]) {\n const _config_0 = __getRuntimeConfig(configuration || {});\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = resolveUserAgentConfig(_config_1);\n const _config_3 = resolveRetryConfig(_config_2);\n const _config_4 = resolveRegionConfig(_config_3);\n const _config_5 = resolveHostHeaderConfig(_config_4);\n const _config_6 = resolveEndpointConfig(_config_5);\n const _config_7 = resolveHttpAuthSchemeConfig(_config_6);\n const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);\n super(_config_8);\n this.config = _config_8;\n this.middlewareStack.use(getUserAgentPlugin(this.config));\n this.middlewareStack.use(getRetryPlugin(this.config));\n this.middlewareStack.use(getContentLengthPlugin(this.config));\n this.middlewareStack.use(getHostHeaderPlugin(this.config));\n this.middlewareStack.use(getLoggerPlugin(this.config));\n this.middlewareStack.use(getRecursionDetectionPlugin(this.config));\n this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use(getHttpSigningPlugin(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\n",
|
|
6
|
+
"import { resolveAwsSdkSigV4Config, } from \"@aws-sdk/core\";\nimport { getSmithyContext, normalizeProvider } from \"@smithy/util-middleware\";\nexport const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: getSmithyContext(context).operation,\n region: (await normalizeProvider(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"awsssoportal\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nexport const defaultSSOHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"GetRoleCredentials\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n case \"ListAccountRoles\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n case \"ListAccounts\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n case \"Logout\": {\n options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nexport const resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = resolveAwsSdkSigV4Config(config);\n return {\n ...config_0,\n };\n};\n",
|
|
7
|
+
"export const resolveClientEndpointParameters = (options) => {\n return {\n ...options,\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"awsssoportal\",\n };\n};\nexport const commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n",
|
|
8
|
+
"import packageInfo from \"../package.json\";\nimport { emitWarningIfUnsupportedVersion as awsCheckVersion } from \"@aws-sdk/core\";\nimport { defaultUserAgent } from \"@aws-sdk/util-user-agent-node\";\nimport { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from \"@smithy/config-resolver\";\nimport { Hash } from \"@smithy/hash-node\";\nimport { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from \"@smithy/middleware-retry\";\nimport { loadConfig as loadNodeConfig } from \"@smithy/node-config-provider\";\nimport { NodeHttpHandler as RequestHandler, streamCollector } from \"@smithy/node-http-handler\";\nimport { calculateBodyLength } from \"@smithy/util-body-length-node\";\nimport { DEFAULT_RETRY_MODE } from \"@smithy/util-retry\";\nimport { getRuntimeConfig as getSharedRuntimeConfig } from \"./runtimeConfig.shared\";\nimport { loadConfigsForDefaultMode } from \"@smithy/smithy-client\";\nimport { resolveDefaultsModeConfig } from \"@smithy/util-defaults-mode-node\";\nimport { emitWarningIfUnsupportedVersion } from \"@smithy/smithy-client\";\nexport const getRuntimeConfig = (config) => {\n emitWarningIfUnsupportedVersion(process.version);\n const defaultsMode = resolveDefaultsModeConfig(config);\n const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);\n const clientSharedValues = getSharedRuntimeConfig(config);\n awsCheckVersion(process.version);\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"node\",\n defaultsMode,\n bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,\n defaultUserAgentProvider: config?.defaultUserAgentProvider ??\n defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),\n maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),\n region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),\n requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),\n retryMode: config?.retryMode ??\n loadNodeConfig({\n ...NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,\n }),\n sha256: config?.sha256 ?? Hash.bind(null, \"sha256\"),\n streamCollector: config?.streamCollector ?? streamCollector,\n useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),\n useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),\n };\n};\n",
|
|
9
|
+
"import { AwsSdkSigV4Signer } from \"@aws-sdk/core\";\nimport { NoAuthSigner } from \"@smithy/core\";\nimport { NoOpLogger } from \"@smithy/smithy-client\";\nimport { parseUrl } from \"@smithy/url-parser\";\nimport { fromBase64, toBase64 } from \"@smithy/util-base64\";\nimport { fromUtf8, toUtf8 } from \"@smithy/util-utf8\";\nimport { defaultSSOHttpAuthSchemeProvider } from \"./auth/httpAuthSchemeProvider\";\nimport { defaultEndpointResolver } from \"./endpoint/endpointResolver\";\nexport const getRuntimeConfig = (config) => {\n return {\n apiVersion: \"2019-06-10\",\n base64Decoder: config?.base64Decoder ?? fromBase64,\n base64Encoder: config?.base64Encoder ?? toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new NoOpLogger(),\n serviceId: config?.serviceId ?? \"SSO\",\n urlParser: config?.urlParser ?? parseUrl,\n utf8Decoder: config?.utf8Decoder ?? fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? toUtf8,\n };\n};\n",
|
|
10
|
+
"const u = \"required\", v = \"fn\", w = \"argv\", x = \"ref\";\nconst a = true, b = \"isSet\", c = \"booleanEquals\", d = \"error\", e = \"endpoint\", f = \"tree\", g = \"PartitionResult\", h = \"getAttr\", i = { [u]: false, \"type\": \"String\" }, j = { [u]: true, \"default\": false, \"type\": \"Boolean\" }, k = { [x]: \"Endpoint\" }, l = { [v]: c, [w]: [{ [x]: \"UseFIPS\" }, true] }, m = { [v]: c, [w]: [{ [x]: \"UseDualStack\" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, \"supportsFIPS\"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, \"supportsDualStack\"] }] }, r = [l], s = [m], t = [{ [x]: \"Region\" }];\nconst _data = { version: \"1.0\", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: \"Invalid Configuration: FIPS and custom endpoint are not supported\", type: d }, { conditions: s, error: \"Invalid Configuration: Dualstack and custom endpoint are not supported\", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: \"aws.partition\", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: \"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"FIPS and DualStack are enabled, but this partition does not support one or both\", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: \"stringEquals\", [w]: [{ [v]: h, [w]: [p, \"name\"] }, \"aws-us-gov\"] }], endpoint: { url: \"https://portal.sso.{Region}.amazonaws.com\", properties: n, headers: n }, type: e }, { endpoint: { url: \"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"FIPS is enabled but this partition does not support FIPS\", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: \"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}\", properties: n, headers: n }, type: e }], type: f }, { error: \"DualStack is enabled but this partition does not support DualStack\", type: d }], type: f }, { endpoint: { url: \"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}\", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: \"Invalid Configuration: Missing Region\", type: d }] };\nexport const ruleSet = _data;\n",
|
|
11
|
+
"import { awsEndpointFunctions } from \"@aws-sdk/util-endpoints\";\nimport { customEndpointFunctions, resolveEndpoint } from \"@smithy/util-endpoints\";\nimport { ruleSet } from \"./ruleset\";\nexport const defaultEndpointResolver = (endpointParams, context = {}) => {\n return resolveEndpoint(ruleSet, {\n endpointParams: endpointParams,\n logger: context.logger,\n });\n};\ncustomEndpointFunctions.aws = awsEndpointFunctions;\n",
|
|
12
|
+
"export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nexport const resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\n",
|
|
13
|
+
"import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from \"@aws-sdk/region-config-resolver\";\nimport { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from \"@smithy/protocol-http\";\nimport { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from \"@smithy/smithy-client\";\nimport { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from \"./auth/httpAuthExtensionConfiguration\";\nconst asPartial = (t) => t;\nexport const resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = {\n ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),\n ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),\n ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),\n ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),\n };\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return {\n ...runtimeConfig,\n ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),\n ...resolveDefaultRuntimeConfig(extensionConfiguration),\n ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),\n ...resolveHttpAuthRuntimeConfig(extensionConfiguration),\n };\n};\n",
|
|
14
|
+
"import { ServiceException as __ServiceException, } from \"@smithy/smithy-client\";\nexport { __ServiceException };\nexport class SSOServiceException extends __ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, SSOServiceException.prototype);\n }\n}\n",
|
|
15
|
+
"import { SENSITIVE_STRING } from \"@smithy/smithy-client\";\nimport { SSOServiceException as __BaseException } from \"./SSOServiceException\";\nexport class InvalidRequestException extends __BaseException {\n constructor(opts) {\n super({\n name: \"InvalidRequestException\",\n $fault: \"client\",\n ...opts,\n });\n this.name = \"InvalidRequestException\";\n this.$fault = \"client\";\n Object.setPrototypeOf(this, InvalidRequestException.prototype);\n }\n}\nexport class ResourceNotFoundException extends __BaseException {\n constructor(opts) {\n super({\n name: \"ResourceNotFoundException\",\n $fault: \"client\",\n ...opts,\n });\n this.name = \"ResourceNotFoundException\";\n this.$fault = \"client\";\n Object.setPrototypeOf(this, ResourceNotFoundException.prototype);\n }\n}\nexport class TooManyRequestsException extends __BaseException {\n constructor(opts) {\n super({\n name: \"TooManyRequestsException\",\n $fault: \"client\",\n ...opts,\n });\n this.name = \"TooManyRequestsException\";\n this.$fault = \"client\";\n Object.setPrototypeOf(this, TooManyRequestsException.prototype);\n }\n}\nexport class UnauthorizedException extends __BaseException {\n constructor(opts) {\n super({\n name: \"UnauthorizedException\",\n $fault: \"client\",\n ...opts,\n });\n this.name = \"UnauthorizedException\";\n this.$fault = \"client\";\n Object.setPrototypeOf(this, UnauthorizedException.prototype);\n }\n}\nexport const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({\n ...obj,\n ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),\n});\nexport const RoleCredentialsFilterSensitiveLog = (obj) => ({\n ...obj,\n ...(obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING }),\n ...(obj.sessionToken && { sessionToken: SENSITIVE_STRING }),\n});\nexport const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({\n ...obj,\n ...(obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }),\n});\nexport const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({\n ...obj,\n ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),\n});\nexport const ListAccountsRequestFilterSensitiveLog = (obj) => ({\n ...obj,\n ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),\n});\nexport const LogoutRequestFilterSensitiveLog = (obj) => ({\n ...obj,\n ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),\n});\n",
|
|
16
|
+
"import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from \"@aws-sdk/core\";\nimport { requestBuilder as rb } from \"@smithy/core\";\nimport { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from \"@smithy/smithy-client\";\nimport { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from \"../models/models_0\";\nimport { SSOServiceException as __BaseException } from \"../models/SSOServiceException\";\nexport const se_GetRoleCredentialsCommand = async (input, context) => {\n const b = rb(input, context);\n const headers = map({}, isSerializableHeaderValue, {\n [_xasbt]: input[_aT],\n });\n b.bp(\"/federation/credentials\");\n const query = map({\n [_rn]: [, __expectNonNull(input[_rN], `roleName`)],\n [_ai]: [, __expectNonNull(input[_aI], `accountId`)],\n });\n let body;\n b.m(\"GET\").h(headers).q(query).b(body);\n return b.build();\n};\nexport const se_ListAccountRolesCommand = async (input, context) => {\n const b = rb(input, context);\n const headers = map({}, isSerializableHeaderValue, {\n [_xasbt]: input[_aT],\n });\n b.bp(\"/assignment/roles\");\n const query = map({\n [_nt]: [, input[_nT]],\n [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],\n [_ai]: [, __expectNonNull(input[_aI], `accountId`)],\n });\n let body;\n b.m(\"GET\").h(headers).q(query).b(body);\n return b.build();\n};\nexport const se_ListAccountsCommand = async (input, context) => {\n const b = rb(input, context);\n const headers = map({}, isSerializableHeaderValue, {\n [_xasbt]: input[_aT],\n });\n b.bp(\"/assignment/accounts\");\n const query = map({\n [_nt]: [, input[_nT]],\n [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],\n });\n let body;\n b.m(\"GET\").h(headers).q(query).b(body);\n return b.build();\n};\nexport const se_LogoutCommand = async (input, context) => {\n const b = rb(input, context);\n const headers = map({}, isSerializableHeaderValue, {\n [_xasbt]: input[_aT],\n });\n b.bp(\"/logout\");\n let body;\n b.m(\"POST\").h(headers).b(body);\n return b.build();\n};\nexport const de_GetRoleCredentialsCommand = async (output, context) => {\n if (output.statusCode !== 200 && output.statusCode >= 300) {\n return de_CommandError(output, context);\n }\n const contents = map({\n $metadata: deserializeMetadata(output),\n });\n const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), \"body\");\n const doc = take(data, {\n roleCredentials: _json,\n });\n Object.assign(contents, doc);\n return contents;\n};\nexport const de_ListAccountRolesCommand = async (output, context) => {\n if (output.statusCode !== 200 && output.statusCode >= 300) {\n return de_CommandError(output, context);\n }\n const contents = map({\n $metadata: deserializeMetadata(output),\n });\n const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), \"body\");\n const doc = take(data, {\n nextToken: __expectString,\n roleList: _json,\n });\n Object.assign(contents, doc);\n return contents;\n};\nexport const de_ListAccountsCommand = async (output, context) => {\n if (output.statusCode !== 200 && output.statusCode >= 300) {\n return de_CommandError(output, context);\n }\n const contents = map({\n $metadata: deserializeMetadata(output),\n });\n const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), \"body\");\n const doc = take(data, {\n accountList: _json,\n nextToken: __expectString,\n });\n Object.assign(contents, doc);\n return contents;\n};\nexport const de_LogoutCommand = async (output, context) => {\n if (output.statusCode !== 200 && output.statusCode >= 300) {\n return de_CommandError(output, context);\n }\n const contents = map({\n $metadata: deserializeMetadata(output),\n });\n await collectBody(output.body, context);\n return contents;\n};\nconst de_CommandError = async (output, context) => {\n const parsedOutput = {\n ...output,\n body: await parseErrorBody(output.body, context),\n };\n const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);\n switch (errorCode) {\n case \"InvalidRequestException\":\n case \"com.amazonaws.sso#InvalidRequestException\":\n throw await de_InvalidRequestExceptionRes(parsedOutput, context);\n case \"ResourceNotFoundException\":\n case \"com.amazonaws.sso#ResourceNotFoundException\":\n throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);\n case \"TooManyRequestsException\":\n case \"com.amazonaws.sso#TooManyRequestsException\":\n throw await de_TooManyRequestsExceptionRes(parsedOutput, context);\n case \"UnauthorizedException\":\n case \"com.amazonaws.sso#UnauthorizedException\":\n throw await de_UnauthorizedExceptionRes(parsedOutput, context);\n default:\n const parsedBody = parsedOutput.body;\n return throwDefaultError({\n output,\n parsedBody,\n errorCode,\n });\n }\n};\nconst throwDefaultError = withBaseException(__BaseException);\nconst de_InvalidRequestExceptionRes = async (parsedOutput, context) => {\n const contents = map({});\n const data = parsedOutput.body;\n const doc = take(data, {\n message: __expectString,\n });\n Object.assign(contents, doc);\n const exception = new InvalidRequestException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents,\n });\n return __decorateServiceException(exception, parsedOutput.body);\n};\nconst de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {\n const contents = map({});\n const data = parsedOutput.body;\n const doc = take(data, {\n message: __expectString,\n });\n Object.assign(contents, doc);\n const exception = new ResourceNotFoundException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents,\n });\n return __decorateServiceException(exception, parsedOutput.body);\n};\nconst de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {\n const contents = map({});\n const data = parsedOutput.body;\n const doc = take(data, {\n message: __expectString,\n });\n Object.assign(contents, doc);\n const exception = new TooManyRequestsException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents,\n });\n return __decorateServiceException(exception, parsedOutput.body);\n};\nconst de_UnauthorizedExceptionRes = async (parsedOutput, context) => {\n const contents = map({});\n const data = parsedOutput.body;\n const doc = take(data, {\n message: __expectString,\n });\n Object.assign(contents, doc);\n const exception = new UnauthorizedException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents,\n });\n return __decorateServiceException(exception, parsedOutput.body);\n};\nconst deserializeMetadata = (output) => ({\n httpStatusCode: output.statusCode,\n requestId: output.headers[\"x-amzn-requestid\"] ?? output.headers[\"x-amzn-request-id\"] ?? output.headers[\"x-amz-request-id\"],\n extendedRequestId: output.headers[\"x-amz-id-2\"],\n cfId: output.headers[\"x-amz-cf-id\"],\n});\nconst collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));\nconst isSerializableHeaderValue = (value) => value !== undefined &&\n value !== null &&\n value !== \"\" &&\n (!Object.getOwnPropertyNames(value).includes(\"length\") || value.length != 0) &&\n (!Object.getOwnPropertyNames(value).includes(\"size\") || value.size != 0);\nconst _aI = \"accountId\";\nconst _aT = \"accessToken\";\nconst _ai = \"account_id\";\nconst _mR = \"maxResults\";\nconst _mr = \"max_result\";\nconst _nT = \"nextToken\";\nconst _nt = \"next_token\";\nconst _rN = \"roleName\";\nconst _rn = \"role_name\";\nconst _xasbt = \"x-amz-sso_bearer_token\";\n",
|
|
17
|
+
"import { getEndpointPlugin } from \"@smithy/middleware-endpoint\";\nimport { getSerdePlugin } from \"@smithy/middleware-serde\";\nimport { Command as $Command } from \"@smithy/smithy-client\";\nimport { commonParams } from \"../endpoint/EndpointParameters\";\nimport { GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog, } from \"../models/models_0\";\nimport { de_GetRoleCredentialsCommand, se_GetRoleCredentialsCommand } from \"../protocols/Aws_restJson1\";\nexport { $Command };\nexport class GetRoleCredentialsCommand extends $Command\n .classBuilder()\n .ep({\n ...commonParams,\n})\n .m(function (Command, cs, config, o) {\n return [\n getSerdePlugin(config, this.serialize, this.deserialize),\n getEndpointPlugin(config, Command.getEndpointParameterInstructions()),\n ];\n})\n .s(\"SWBPortalService\", \"GetRoleCredentials\", {})\n .n(\"SSOClient\", \"GetRoleCredentialsCommand\")\n .f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog)\n .ser(se_GetRoleCredentialsCommand)\n .de(de_GetRoleCredentialsCommand)\n .build() {\n}\n"
|
|
18
|
+
],
|
|
19
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;;;ACLA;AAWA,SAAS,gCAAgC,CAAC,gBAAgB;AACtD,SAAO;AAAA,IACH,UAAU;AAAA,IACV,mBAAmB;AAAA,MACf,MAAM;AAAA,MACN,QAAQ,eAAe;AAAA,IAC3B;AAAA,IACA,qBAAqB,CAAC,QAAQ,aAAa;AAAA,MACvC,mBAAmB;AAAA,QACf;AAAA,QACA;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ;AAAA;AAEJ,SAAS,mCAAmC,CAAC,gBAAgB;AACzD,SAAO;AAAA,IACH,UAAU;AAAA,EACd;AAAA;AA3BG,IAAM,6CAA6C,OAAO,QAAQ,SAAS,UAAU;AACxF,SAAO;AAAA,IACH,WAAW,iBAAiB,OAAO,EAAE;AAAA,IACrC,QAAS,MAAM,kBAAkB,OAAO,MAAM,EAAE,MAC3C,MAAM;AACH,YAAM,IAAI,MAAM,yDAAyD;AAAA,OAC1E;AAAA,EACX;AAAA;AAsBG,IAAM,mCAAmC,CAAC,mBAAmB;AAChE,QAAM,UAAU,CAAC;AACjB,UAAQ,eAAe;AAAA,SACd,sBAAsB;AACvB,cAAQ,KAAK,oCAAoC,cAAc,CAAC;AAChE;AAAA,IACJ;AAAA,SACK,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,MAAM,UAAU,QACxE,OAAO,oBAAoB,KAAK,EAAE,SAAS,MAAM,KAAK,MAAM,QAAQ;AAC1E,IAAM,MAAM;AACZ,IAAM,MAAM;AACZ,IAAM,MAAM;AAKZ,IAAM,MAAM;AACZ,IAAM,MAAM;AACZ,IAAM,SAAS;;;AC/MR,MAAM,kCAAkC,QAC1C,aAAa,EACb,GAAG;AAAA,KACD;AACP,CAAC,EACI,UAAW,CAAC,UAAS,IAAI,QAAQ,IAAG;AACrC,SAAO;AAAA,IACH,eAAe,QAAQ,KAAK,WAAW,KAAK,WAAW;AAAA,IACvD,kBAAkB,QAAQ,SAAQ,iCAAiC,CAAC;AAAA,EACxE;AAAA,CACH,EACI,EAAE,oBAAoB,sBAAsB,CAAC,CAAC,EAC9C,EAAE,aAAa,2BAA2B,EAC1C,EAAE,6CAA6C,4CAA4C,EAC3F,IAAI,4BAA4B,EAChC,GAAG,4BAA4B,EAC/B,MAAM,EAAE;AACb;",
|
|
20
|
+
"debugId": "4881B29170DC130A64756E2164756E21",
|
|
21
|
+
"names": []
|
|
22
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS
|
|
3
|
+
} from "./chunk-cnvp47g4.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/@smithy/types/dist-cjs/index.js
|
|
6
|
+
var require_dist_cjs = __commonJS((exports, module) => {
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name in all)
|
|
14
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
var src_exports = {};
|
|
26
|
+
__export(src_exports, {
|
|
27
|
+
AlgorithmId: () => AlgorithmId,
|
|
28
|
+
EndpointURLScheme: () => EndpointURLScheme,
|
|
29
|
+
FieldPosition: () => FieldPosition,
|
|
30
|
+
HttpApiKeyAuthLocation: () => HttpApiKeyAuthLocation,
|
|
31
|
+
HttpAuthLocation: () => HttpAuthLocation,
|
|
32
|
+
IniSectionType: () => IniSectionType,
|
|
33
|
+
RequestHandlerProtocol: () => RequestHandlerProtocol,
|
|
34
|
+
SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY,
|
|
35
|
+
getDefaultClientConfiguration: () => getDefaultClientConfiguration,
|
|
36
|
+
resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(src_exports);
|
|
39
|
+
var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => {
|
|
40
|
+
HttpAuthLocation2["HEADER"] = "header";
|
|
41
|
+
HttpAuthLocation2["QUERY"] = "query";
|
|
42
|
+
return HttpAuthLocation2;
|
|
43
|
+
})(HttpAuthLocation || {});
|
|
44
|
+
var HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => {
|
|
45
|
+
HttpApiKeyAuthLocation2["HEADER"] = "header";
|
|
46
|
+
HttpApiKeyAuthLocation2["QUERY"] = "query";
|
|
47
|
+
return HttpApiKeyAuthLocation2;
|
|
48
|
+
})(HttpApiKeyAuthLocation || {});
|
|
49
|
+
var EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => {
|
|
50
|
+
EndpointURLScheme2["HTTP"] = "http";
|
|
51
|
+
EndpointURLScheme2["HTTPS"] = "https";
|
|
52
|
+
return EndpointURLScheme2;
|
|
53
|
+
})(EndpointURLScheme || {});
|
|
54
|
+
var AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => {
|
|
55
|
+
AlgorithmId2["MD5"] = "md5";
|
|
56
|
+
AlgorithmId2["CRC32"] = "crc32";
|
|
57
|
+
AlgorithmId2["CRC32C"] = "crc32c";
|
|
58
|
+
AlgorithmId2["SHA1"] = "sha1";
|
|
59
|
+
AlgorithmId2["SHA256"] = "sha256";
|
|
60
|
+
return AlgorithmId2;
|
|
61
|
+
})(AlgorithmId || {});
|
|
62
|
+
var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
63
|
+
const checksumAlgorithms = [];
|
|
64
|
+
if (runtimeConfig.sha256 !== undefined) {
|
|
65
|
+
checksumAlgorithms.push({
|
|
66
|
+
algorithmId: () => "sha256",
|
|
67
|
+
checksumConstructor: () => runtimeConfig.sha256
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
if (runtimeConfig.md5 != null) {
|
|
71
|
+
checksumAlgorithms.push({
|
|
72
|
+
algorithmId: () => "md5",
|
|
73
|
+
checksumConstructor: () => runtimeConfig.md5
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
_checksumAlgorithms: checksumAlgorithms,
|
|
78
|
+
addChecksumAlgorithm(algo) {
|
|
79
|
+
this._checksumAlgorithms.push(algo);
|
|
80
|
+
},
|
|
81
|
+
checksumAlgorithms() {
|
|
82
|
+
return this._checksumAlgorithms;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}, "getChecksumConfiguration");
|
|
86
|
+
var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
|
|
87
|
+
const runtimeConfig = {};
|
|
88
|
+
clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
|
|
89
|
+
runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
|
|
90
|
+
});
|
|
91
|
+
return runtimeConfig;
|
|
92
|
+
}, "resolveChecksumRuntimeConfig");
|
|
93
|
+
var getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
94
|
+
return {
|
|
95
|
+
...getChecksumConfiguration(runtimeConfig)
|
|
96
|
+
};
|
|
97
|
+
}, "getDefaultClientConfiguration");
|
|
98
|
+
var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
99
|
+
return {
|
|
100
|
+
...resolveChecksumRuntimeConfig(config)
|
|
101
|
+
};
|
|
102
|
+
}, "resolveDefaultRuntimeConfig");
|
|
103
|
+
var FieldPosition = /* @__PURE__ */ ((FieldPosition2) => {
|
|
104
|
+
FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
|
|
105
|
+
FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
|
|
106
|
+
return FieldPosition2;
|
|
107
|
+
})(FieldPosition || {});
|
|
108
|
+
var SMITHY_CONTEXT_KEY = "__smithy_context";
|
|
109
|
+
var IniSectionType = /* @__PURE__ */ ((IniSectionType2) => {
|
|
110
|
+
IniSectionType2["PROFILE"] = "profile";
|
|
111
|
+
IniSectionType2["SSO_SESSION"] = "sso-session";
|
|
112
|
+
IniSectionType2["SERVICES"] = "services";
|
|
113
|
+
return IniSectionType2;
|
|
114
|
+
})(IniSectionType || {});
|
|
115
|
+
var RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => {
|
|
116
|
+
RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
|
|
117
|
+
RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
|
|
118
|
+
RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
|
|
119
|
+
return RequestHandlerProtocol2;
|
|
120
|
+
})(RequestHandlerProtocol || {});
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
export { require_dist_cjs };
|
|
124
|
+
|
|
125
|
+
//# debugId=71044ED42B1EC92C64756E2164756E21
|
|
126
|
+
//# sourceMappingURL=chunk-6pac0yn5.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../node_modules/@smithy/types/dist-cjs/index.js"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n AlgorithmId: () => AlgorithmId,\n EndpointURLScheme: () => EndpointURLScheme,\n FieldPosition: () => FieldPosition,\n HttpApiKeyAuthLocation: () => HttpApiKeyAuthLocation,\n HttpAuthLocation: () => HttpAuthLocation,\n IniSectionType: () => IniSectionType,\n RequestHandlerProtocol: () => RequestHandlerProtocol,\n SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY,\n getDefaultClientConfiguration: () => getDefaultClientConfiguration,\n resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/auth/auth.ts\nvar HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => {\n HttpAuthLocation2[\"HEADER\"] = \"header\";\n HttpAuthLocation2[\"QUERY\"] = \"query\";\n return HttpAuthLocation2;\n})(HttpAuthLocation || {});\n\n// src/auth/HttpApiKeyAuth.ts\nvar HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => {\n HttpApiKeyAuthLocation2[\"HEADER\"] = \"header\";\n HttpApiKeyAuthLocation2[\"QUERY\"] = \"query\";\n return HttpApiKeyAuthLocation2;\n})(HttpApiKeyAuthLocation || {});\n\n// src/endpoint.ts\nvar EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => {\n EndpointURLScheme2[\"HTTP\"] = \"http\";\n EndpointURLScheme2[\"HTTPS\"] = \"https\";\n return EndpointURLScheme2;\n})(EndpointURLScheme || {});\n\n// src/extensions/checksum.ts\nvar AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => {\n AlgorithmId2[\"MD5\"] = \"md5\";\n AlgorithmId2[\"CRC32\"] = \"crc32\";\n AlgorithmId2[\"CRC32C\"] = \"crc32c\";\n AlgorithmId2[\"SHA1\"] = \"sha1\";\n AlgorithmId2[\"SHA256\"] = \"sha256\";\n return AlgorithmId2;\n})(AlgorithmId || {});\nvar getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {\n const checksumAlgorithms = [];\n if (runtimeConfig.sha256 !== void 0) {\n checksumAlgorithms.push({\n algorithmId: () => \"sha256\" /* SHA256 */,\n checksumConstructor: () => runtimeConfig.sha256\n });\n }\n if (runtimeConfig.md5 != void 0) {\n checksumAlgorithms.push({\n algorithmId: () => \"md5\" /* MD5 */,\n checksumConstructor: () => runtimeConfig.md5\n });\n }\n return {\n _checksumAlgorithms: checksumAlgorithms,\n addChecksumAlgorithm(algo) {\n this._checksumAlgorithms.push(algo);\n },\n checksumAlgorithms() {\n return this._checksumAlgorithms;\n }\n };\n}, \"getChecksumConfiguration\");\nvar resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {\n const runtimeConfig = {};\n clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {\n runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();\n });\n return runtimeConfig;\n}, \"resolveChecksumRuntimeConfig\");\n\n// src/extensions/defaultClientConfiguration.ts\nvar getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {\n return {\n ...getChecksumConfiguration(runtimeConfig)\n };\n}, \"getDefaultClientConfiguration\");\nvar resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {\n return {\n ...resolveChecksumRuntimeConfig(config)\n };\n}, \"resolveDefaultRuntimeConfig\");\n\n// src/http.ts\nvar FieldPosition = /* @__PURE__ */ ((FieldPosition2) => {\n FieldPosition2[FieldPosition2[\"HEADER\"] = 0] = \"HEADER\";\n FieldPosition2[FieldPosition2[\"TRAILER\"] = 1] = \"TRAILER\";\n return FieldPosition2;\n})(FieldPosition || {});\n\n// src/middleware.ts\nvar SMITHY_CONTEXT_KEY = \"__smithy_context\";\n\n// src/profile.ts\nvar IniSectionType = /* @__PURE__ */ ((IniSectionType2) => {\n IniSectionType2[\"PROFILE\"] = \"profile\";\n IniSectionType2[\"SSO_SESSION\"] = \"sso-session\";\n IniSectionType2[\"SERVICES\"] = \"services\";\n return IniSectionType2;\n})(IniSectionType || {});\n\n// src/transfer.ts\nvar RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => {\n RequestHandlerProtocol2[\"HTTP_0_9\"] = \"http/0.9\";\n RequestHandlerProtocol2[\"HTTP_1_0\"] = \"http/1.0\";\n RequestHandlerProtocol2[\"TDS_8_0\"] = \"tds/8.0\";\n return RequestHandlerProtocol2;\n})(RequestHandlerProtocol || {});\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n HttpAuthLocation,\n HttpApiKeyAuthLocation,\n EndpointURLScheme,\n AlgorithmId,\n getDefaultClientConf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AAkB,oBAAoB;AAAA,KACxF;AACD,WAAO;AAAA,KACN,8BAA8B;AAGjC,MAAI,gDAAgD,OAAO,CAAC,kBAAkB;AAC5E,WAAO;AAAA,SACF,yBAAyB,aAAa;AAAA,IAC3C;AAAA,KACC,+BAA+B;AAClC,MAAI,8CAA8C,OAAO,CAAC,WAAW;AACnE,WAAO;AAAA,SACF,6BAA6B,MAAM;AAAA,IACxC;AAAA,KACC,6BAA6B;AAGhC,MAAI,iCAAiC,CAAC,mBAAmB;AACvD,mBAAe,eAAe,YAAY,KAAK;AAC/C,mBAAe,eAAe,aAAa,KAAK;AAChD,WAAO;AAAA,KACN,iBAAiB,CAAC,CAAC;AAGtB,MAAI,qBAAqB;AAGzB,MAAI,kCAAkC,CAAC,oBAAoB;AACzD,oBAAgB,aAAa;AAC7B,oBAAgB,iBAAiB;AACjC,oBAAgB,cAAc;AAC9B,WAAO;AAAA,KACN,kBAAkB,CAAC,CAAC;AAGvB,MAAI,0CAA0C,CAAC,4BAA4B;AACzE,4BAAwB,cAAc;AACtC,4BAAwB,cAAc;AACtC,4BAAwB,aAAa;AACrC,WAAO;AAAA,KACN,0BAA0B,CAAC,CAAC;AAAA;",
|
|
8
|
+
"debugId": "71044ED42B1EC92C64756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"./chunk-cnvp47g4.js";
|
|
3
|
+
import"./chunk-6pac0yn5.js";
|
|
4
|
+
import {
|
|
5
|
+
CredentialsProviderError
|
|
6
|
+
} from "./chunk-zzerxbrm.js";
|
|
7
|
+
import {
|
|
8
|
+
getProfileName,
|
|
9
|
+
parseKnownFiles
|
|
10
|
+
} from "./chunk-sc3etgb7.js";
|
|
11
|
+
|
|
12
|
+
// ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
13
|
+
import {exec} from "child_process";
|
|
14
|
+
import {promisify} from "util";
|
|
15
|
+
|
|
16
|
+
// ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
17
|
+
var getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
18
|
+
if (data.Version !== 1) {
|
|
19
|
+
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
20
|
+
}
|
|
21
|
+
if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) {
|
|
22
|
+
throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
|
|
23
|
+
}
|
|
24
|
+
if (data.Expiration) {
|
|
25
|
+
const currentTime = new Date;
|
|
26
|
+
const expireTime = new Date(data.Expiration);
|
|
27
|
+
if (expireTime < currentTime) {
|
|
28
|
+
throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
let accountId = data.AccountId;
|
|
32
|
+
if (!accountId && profiles?.[profileName]?.aws_account_id) {
|
|
33
|
+
accountId = profiles[profileName].aws_account_id;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
accessKeyId: data.AccessKeyId,
|
|
37
|
+
secretAccessKey: data.SecretAccessKey,
|
|
38
|
+
...data.SessionToken && { sessionToken: data.SessionToken },
|
|
39
|
+
...data.Expiration && { expiration: new Date(data.Expiration) },
|
|
40
|
+
...data.CredentialScope && { credentialScope: data.CredentialScope },
|
|
41
|
+
...accountId && { accountId }
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
46
|
+
var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
47
|
+
const profile = profiles[profileName];
|
|
48
|
+
if (profiles[profileName]) {
|
|
49
|
+
const credentialProcess = profile["credential_process"];
|
|
50
|
+
if (credentialProcess !== undefined) {
|
|
51
|
+
const execPromise = promisify(exec);
|
|
52
|
+
try {
|
|
53
|
+
const { stdout } = await execPromise(credentialProcess);
|
|
54
|
+
let data;
|
|
55
|
+
try {
|
|
56
|
+
data = JSON.parse(stdout.trim());
|
|
57
|
+
} catch {
|
|
58
|
+
throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
|
|
59
|
+
}
|
|
60
|
+
return getValidatedProcessCredentials(profileName, data, profiles);
|
|
61
|
+
} catch (error) {
|
|
62
|
+
throw new CredentialsProviderError(error.message, { logger });
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
|
|
66
|
+
}
|
|
67
|
+
} else {
|
|
68
|
+
throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
69
|
+
logger
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
|
|
75
|
+
var fromProcess = (init = {}) => async () => {
|
|
76
|
+
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
77
|
+
const profiles = await parseKnownFiles(init);
|
|
78
|
+
return resolveProcessCredentials(getProfileName(init), profiles, init.logger);
|
|
79
|
+
};
|
|
80
|
+
export {
|
|
81
|
+
fromProcess
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
//# debugId=BF4757530CA64C1264756E2164756E21
|
|
85
|
+
//# sourceMappingURL=chunk-7jmyxm7k.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js", "../../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js", "../../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { exec } from \"child_process\";\nimport { promisify } from \"util\";\nimport { getValidatedProcessCredentials } from \"./getValidatedProcessCredentials\";\nexport const resolveProcessCredentials = async (profileName, profiles, logger) => {\n const profile = profiles[profileName];\n if (profiles[profileName]) {\n const credentialProcess = profile[\"credential_process\"];\n if (credentialProcess !== undefined) {\n const execPromise = promisify(exec);\n try {\n const { stdout } = await execPromise(credentialProcess);\n let data;\n try {\n data = JSON.parse(stdout.trim());\n }\n catch {\n throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);\n }\n return getValidatedProcessCredentials(profileName, data, profiles);\n }\n catch (error) {\n throw new CredentialsProviderError(error.message, { logger });\n }\n }\n else {\n throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });\n }\n }\n else {\n throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {\n logger,\n });\n }\n};\n",
|
|
6
|
+
"export const getValidatedProcessCredentials = (profileName, data, profiles) => {\n if (data.Version !== 1) {\n throw Error(`Profile ${profileName} credential_process did not return Version 1.`);\n }\n if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) {\n throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);\n }\n if (data.Expiration) {\n const currentTime = new Date();\n const expireTime = new Date(data.Expiration);\n if (expireTime < currentTime) {\n throw Error(`Profile ${profileName} credential_process returned expired credentials.`);\n }\n }\n let accountId = data.AccountId;\n if (!accountId && profiles?.[profileName]?.aws_account_id) {\n accountId = profiles[profileName].aws_account_id;\n }\n return {\n accessKeyId: data.AccessKeyId,\n secretAccessKey: data.SecretAccessKey,\n ...(data.SessionToken && { sessionToken: data.SessionToken }),\n ...(data.Expiration && { expiration: new Date(data.Expiration) }),\n ...(data.CredentialScope && { credentialScope: data.CredentialScope }),\n ...(accountId && { accountId }),\n };\n};\n",
|
|
7
|
+
"import { getProfileName, parseKnownFiles } from \"@smithy/shared-ini-file-loader\";\nimport { resolveProcessCredentials } from \"./resolveProcessCredentials\";\nexport const fromProcess = (init = {}) => async () => {\n init.logger?.debug(\"@aws-sdk/credential-provider-process - fromProcess\");\n const profiles = await parseKnownFiles(init);\n return resolveProcessCredentials(getProfileName(init), profiles, init.logger);\n};\n"
|
|
8
|
+
],
|
|
9
|
+
"mappings": ";;;;;;;;;;;;AACA;AACA;;;ACFO,IAAM,iCAAiC,CAAC,aAAa,MAAM,aAAa;AAC3E,MAAI,KAAK,YAAY,GAAG;AACpB,UAAM,MAAM,WAAW,0DAA0D;AAAA,EACrF;AACA,MAAI,KAAK,gBAAgB,aAAa,KAAK,oBAAoB,WAAW;AACtE,UAAM,MAAM,WAAW,8DAA8D;AAAA,EACzF;AACA,MAAI,KAAK,YAAY;AACjB,UAAM,cAAc,IAAI;AACxB,UAAM,aAAa,IAAI,KAAK,KAAK,UAAU;AAC3C,QAAI,aAAa,aAAa;AAC1B,YAAM,MAAM,WAAW,8DAA8D;AAAA,IACzF;AAAA,EACJ;AACA,MAAI,YAAY,KAAK;AACrB,OAAK,aAAa,WAAW,cAAc,gBAAgB;AACvD,gBAAY,SAAS,aAAa;AAAA,EACtC;AACA,SAAO;AAAA,IACH,aAAa,KAAK;AAAA,IAClB,iBAAiB,KAAK;AAAA,OAClB,KAAK,gBAAgB,EAAE,cAAc,KAAK,aAAa;AAAA,OACvD,KAAK,cAAc,EAAE,YAAY,IAAI,KAAK,KAAK,UAAU,EAAE;AAAA,OAC3D,KAAK,mBAAmB,EAAE,iBAAiB,KAAK,gBAAgB;AAAA,OAChE,aAAa,EAAE,UAAU;AAAA,EACjC;AAAA;;;ADrBG,IAAM,4BAA4B,OAAO,aAAa,UAAU,WAAW;AAC9E,QAAM,UAAU,SAAS;AACzB,MAAI,SAAS,cAAc;AACvB,UAAM,oBAAoB,QAAQ;AAClC,QAAI,sBAAsB,WAAW;AACjC,YAAM,cAAc,UAAU,IAAI;AAClC,UAAI;AACA,gBAAQ,WAAW,MAAM,YAAY,iBAAiB;AACtD,YAAI;AACJ,YAAI;AACA,iBAAO,KAAK,MAAM,OAAO,KAAK,CAAC;AAAA,gBAEnC;AACI,gBAAM,MAAM,WAAW,uDAAuD;AAAA;AAElF,eAAO,+BAA+B,aAAa,MAAM,QAAQ;AAAA,eAE9D,OAAP;AACI,cAAM,IAAI,yBAAyB,MAAM,SAAS,EAAE,OAAO,CAAC;AAAA;AAAA,IAEpE,OACK;AACD,YAAM,IAAI,yBAAyB,WAAW,mDAAmD,EAAE,OAAO,CAAC;AAAA;AAAA,EAEnH,OACK;AACD,UAAM,IAAI,yBAAyB,WAAW,8DAA8D;AAAA,MACxG;AAAA,IACJ,CAAC;AAAA;AAAA;;;AE9BF,IAAM,cAAc,CAAC,OAAO,CAAC,MAAM,YAAY;AAClD,OAAK,QAAQ,MAAM,oDAAoD;AACvE,QAAM,WAAW,MAAM,gBAAgB,IAAI;AAC3C,SAAO,0BAA0B,eAAe,IAAI,GAAG,UAAU,KAAK,MAAM;AAAA;",
|
|
10
|
+
"debugId": "BF4757530CA64C1264756E2164756E21",
|
|
11
|
+
"names": []
|
|
12
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CredentialsProviderError,
|
|
3
|
+
chain,
|
|
4
|
+
fromStatic,
|
|
5
|
+
memoize
|
|
6
|
+
} from "./chunk-zzerxbrm.js";
|
|
7
|
+
import {
|
|
8
|
+
getProfileName,
|
|
9
|
+
loadSharedConfigFiles
|
|
10
|
+
} from "./chunk-sc3etgb7.js";
|
|
11
|
+
|
|
12
|
+
// ../../../../node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
|
|
13
|
+
function getSelectorName(functionString) {
|
|
14
|
+
try {
|
|
15
|
+
const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
16
|
+
constants.delete("CONFIG");
|
|
17
|
+
constants.delete("CONFIG_PREFIX_SEPARATOR");
|
|
18
|
+
constants.delete("ENV");
|
|
19
|
+
return [...constants].join(", ");
|
|
20
|
+
} catch (e) {
|
|
21
|
+
return functionString;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
|
|
26
|
+
var fromEnv = (envVarSelector, logger) => async () => {
|
|
27
|
+
try {
|
|
28
|
+
const config = envVarSelector(process.env);
|
|
29
|
+
if (config === undefined) {
|
|
30
|
+
throw new Error;
|
|
31
|
+
}
|
|
32
|
+
return config;
|
|
33
|
+
} catch (e) {
|
|
34
|
+
throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
|
|
39
|
+
var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
|
|
40
|
+
const profile = getProfileName(init);
|
|
41
|
+
const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
|
|
42
|
+
const profileFromCredentials = credentialsFile[profile] || {};
|
|
43
|
+
const profileFromConfig = configFile[profile] || {};
|
|
44
|
+
const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };
|
|
45
|
+
try {
|
|
46
|
+
const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
|
|
47
|
+
const configValue = configSelector(mergedProfile, cfgFile);
|
|
48
|
+
if (configValue === undefined) {
|
|
49
|
+
throw new Error;
|
|
50
|
+
}
|
|
51
|
+
return configValue;
|
|
52
|
+
} catch (e) {
|
|
53
|
+
throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
|
|
58
|
+
var isFunction = (func) => typeof func === "function";
|
|
59
|
+
var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
|
|
60
|
+
|
|
61
|
+
// ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
|
|
62
|
+
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize(chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
|
|
63
|
+
// ../../../../node_modules/@smithy/querystring-parser/dist-es/index.js
|
|
64
|
+
function parseQueryString(querystring) {
|
|
65
|
+
const query = {};
|
|
66
|
+
querystring = querystring.replace(/^\?/, "");
|
|
67
|
+
if (querystring) {
|
|
68
|
+
for (const pair of querystring.split("&")) {
|
|
69
|
+
let [key, value = null] = pair.split("=");
|
|
70
|
+
key = decodeURIComponent(key);
|
|
71
|
+
if (value) {
|
|
72
|
+
value = decodeURIComponent(value);
|
|
73
|
+
}
|
|
74
|
+
if (!(key in query)) {
|
|
75
|
+
query[key] = value;
|
|
76
|
+
} else if (Array.isArray(query[key])) {
|
|
77
|
+
query[key].push(value);
|
|
78
|
+
} else {
|
|
79
|
+
query[key] = [query[key], value];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return query;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// ../../../../node_modules/@smithy/url-parser/dist-es/index.js
|
|
87
|
+
var parseUrl = (url) => {
|
|
88
|
+
if (typeof url === "string") {
|
|
89
|
+
return parseUrl(new URL(url));
|
|
90
|
+
}
|
|
91
|
+
const { hostname, pathname, port, protocol, search } = url;
|
|
92
|
+
let query;
|
|
93
|
+
if (search) {
|
|
94
|
+
query = parseQueryString(search);
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
hostname,
|
|
98
|
+
port: port ? parseInt(port) : undefined,
|
|
99
|
+
protocol,
|
|
100
|
+
path: pathname,
|
|
101
|
+
query
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export { loadConfig, parseUrl };
|
|
106
|
+
|
|
107
|
+
//# debugId=16F4A2324128450E64756E2164756E21
|
|
108
|
+
//# sourceMappingURL=chunk-8217wvpy.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js", "../../../../../node_modules/@smithy/node-config-provider/dist-es/fromEnv.js", "../../../../../node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js", "../../../../../node_modules/@smithy/node-config-provider/dist-es/fromStatic.js", "../../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js", "../../../../../node_modules/@smithy/querystring-parser/dist-es/index.js", "../../../../../node_modules/@smithy/url-parser/dist-es/index.js"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"export function getSelectorName(functionString) {\n try {\n const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));\n constants.delete(\"CONFIG\");\n constants.delete(\"CONFIG_PREFIX_SEPARATOR\");\n constants.delete(\"ENV\");\n return [...constants].join(\", \");\n }\n catch (e) {\n return functionString;\n }\n}\n",
|
|
6
|
+
"import { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { getSelectorName } from \"./getSelectorName\";\nexport const fromEnv = (envVarSelector, logger) => async () => {\n try {\n const config = envVarSelector(process.env);\n if (config === undefined) {\n throw new Error();\n }\n return config;\n }\n catch (e) {\n throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });\n }\n};\n",
|
|
7
|
+
"import { CredentialsProviderError } from \"@smithy/property-provider\";\nimport { getProfileName, loadSharedConfigFiles } from \"@smithy/shared-ini-file-loader\";\nimport { getSelectorName } from \"./getSelectorName\";\nexport const fromSharedConfigFiles = (configSelector, { preferredFile = \"config\", ...init } = {}) => async () => {\n const profile = getProfileName(init);\n const { configFile, credentialsFile } = await loadSharedConfigFiles(init);\n const profileFromCredentials = credentialsFile[profile] || {};\n const profileFromConfig = configFile[profile] || {};\n const mergedProfile = preferredFile === \"config\"\n ? { ...profileFromCredentials, ...profileFromConfig }\n : { ...profileFromConfig, ...profileFromCredentials };\n try {\n const cfgFile = preferredFile === \"config\" ? configFile : credentialsFile;\n const configValue = configSelector(mergedProfile, cfgFile);\n if (configValue === undefined) {\n throw new Error();\n }\n return configValue;\n }\n catch (e) {\n throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });\n }\n};\n",
|
|
8
|
+
"import { fromStatic as convertToProvider } from \"@smithy/property-provider\";\nconst isFunction = (func) => typeof func === \"function\";\nexport const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : convertToProvider(defaultValue);\n",
|
|
9
|
+
"import { chain, memoize } from \"@smithy/property-provider\";\nimport { fromEnv } from \"./fromEnv\";\nimport { fromSharedConfigFiles } from \"./fromSharedConfigFiles\";\nimport { fromStatic } from \"./fromStatic\";\nexport const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize(chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));\n",
|
|
10
|
+
"export function parseQueryString(querystring) {\n const query = {};\n querystring = querystring.replace(/^\\?/, \"\");\n if (querystring) {\n for (const pair of querystring.split(\"&\")) {\n let [key, value = null] = pair.split(\"=\");\n key = decodeURIComponent(key);\n if (value) {\n value = decodeURIComponent(value);\n }\n if (!(key in query)) {\n query[key] = value;\n }\n else if (Array.isArray(query[key])) {\n query[key].push(value);\n }\n else {\n query[key] = [query[key], value];\n }\n }\n }\n return query;\n}\n",
|
|
11
|
+
"import { parseQueryString } from \"@smithy/querystring-parser\";\nexport const parseUrl = (url) => {\n if (typeof url === \"string\") {\n return parseUrl(new URL(url));\n }\n const { hostname, pathname, port, protocol, search } = url;\n let query;\n if (search) {\n query = parseQueryString(search);\n }\n return {\n hostname,\n port: port ? parseInt(port) : undefined,\n protocol,\n path: pathname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