@karmaniverous/get-dotenv 6.5.0 → 6.5.2
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/chunks/{AwsRestJsonProtocol-D_GDWyaH.mjs → AwsRestJsonProtocol-7Uww6gmd.mjs} +2 -2
- package/dist/chunks/{createCli-Ct22WCEC.mjs → createCli-pZgHlwKX.mjs} +4 -4
- package/dist/chunks/{externalDataInterceptor-BRIxrVUl.mjs → externalDataInterceptor-CnjiiRdu.mjs} +2 -2
- package/dist/chunks/{getSSOTokenFromFile-TYPZln9_.mjs → getSSOTokenFromFile-Bct4fw5A.mjs} +1 -1
- package/dist/chunks/{index-G-U0Dimh.mjs → index-37ce0nLC.mjs} +5 -5
- package/dist/chunks/{index-Be7QY_7N.mjs → index-BHKFx7ea.mjs} +6 -6
- package/dist/chunks/{index-5NxTUVel.mjs → index-BJWV46OF.mjs} +5 -5
- package/dist/chunks/{index-BNWgREzT.mjs → index-BfVeLAui.mjs} +4 -4
- package/dist/chunks/{index-BMb3Lxzl.mjs → index-BjE-7W3n.mjs} +6 -6
- package/dist/chunks/{index-jLjEQoIi.mjs → index-Bmw8WxM1.mjs} +3 -3
- package/dist/chunks/{index-BCVlyd0W.mjs → index-CDPFly99.mjs} +9 -9
- package/dist/chunks/{index-BzOeGJbq.mjs → index-Cg50N4ys.mjs} +3 -3
- package/dist/chunks/{index-Dz-kRqKN.mjs → index-Cy9EnHMK.mjs} +3 -3
- package/dist/chunks/{index-BSO6unyj.mjs → index-CzwvgH1X.mjs} +13 -13
- package/dist/chunks/{index-5AyAFomx.mjs → index-DeXLfLd1.mjs} +8 -8
- package/dist/chunks/{index-CR4cJOVz.mjs → index-Do8RFiEa.mjs} +3 -3
- package/dist/chunks/{index-LKToAIhZ.mjs → index-udC0OkWn.mjs} +3 -3
- package/dist/chunks/{loadSso-BnjVSVhE.mjs → loadSso-DJONWtFw.mjs} +5 -5
- package/dist/chunks/{parseKnownFiles-CejYPe7q.mjs → parseKnownFiles-DsgpkpKC.mjs} +1 -1
- package/dist/chunks/{readDotenvCascade-Bymjvyit.mjs → readDotenvCascade-HLU7FsEQ.mjs} +1 -1
- package/dist/chunks/{readMergedOptions-DLRFU2qO.mjs → readMergedOptions-uWSetyes.mjs} +1 -1
- package/dist/chunks/{resolveCliOptions-C6oeNl9S.mjs → resolveCliOptions-7MwNdHqz.mjs} +1 -1
- package/dist/chunks/{sdk-stream-mixin-BDitDomf.mjs → sdk-stream-mixin-uGZKBKMz.mjs} +1 -1
- package/dist/chunks/{types-BC96rfQj.mjs → types-BSMtAo8_.mjs} +1 -1
- package/dist/cli.mjs +6 -6
- package/dist/cliHost.mjs +4 -4
- package/dist/env-overlay.mjs +2 -2
- package/dist/getdotenv.cli.mjs +6 -6
- package/dist/index.d.ts +122 -2
- package/dist/index.mjs +109 -19
- package/dist/plugins-aws.mjs +2 -2
- package/dist/plugins-batch.mjs +2 -2
- package/dist/plugins-cmd.mjs +4 -4
- package/dist/plugins-init.mjs +2 -2
- package/dist/plugins.mjs +5 -5
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { av as HttpProtocol, aw as NormalizedSchema, H as HttpRequest, ax as translateTraits, ay as extendedEncodeURIComponent, az as collectBody, aA as splitHeader, aB as SerdeContext, aC as FromStringShapeDeserializer, t as toUtf8, i as fromUtf8, aD as v4, aE as LazyJsonString, n as toBase64, aF as determineTimestampFormat, aG as dateToUtcString, aH as NumericValue, aI as SerdeContextConfig, aJ as deserializingStructIterator, m as fromBase64, aK as parseEpochTimestamp, aL as parseRfc7231DateTime, aM as parseRfc3339DateTimeWithOffset, aN as serializingStructIterator, aO as ProtocolLib, an as TypeRegistry } from './index-
|
|
2
|
-
import { s as sdkStreamMixin } from './sdk-stream-mixin-
|
|
1
|
+
import { av as HttpProtocol, aw as NormalizedSchema, H as HttpRequest, ax as translateTraits, ay as extendedEncodeURIComponent, az as collectBody, aA as splitHeader, aB as SerdeContext, aC as FromStringShapeDeserializer, t as toUtf8, i as fromUtf8, aD as v4, aE as LazyJsonString, n as toBase64, aF as determineTimestampFormat, aG as dateToUtcString, aH as NumericValue, aI as SerdeContextConfig, aJ as deserializingStructIterator, m as fromBase64, aK as parseEpochTimestamp, aL as parseRfc7231DateTime, aM as parseRfc3339DateTimeWithOffset, aN as serializingStructIterator, aO as ProtocolLib, an as TypeRegistry } from './index-CDPFly99.mjs';
|
|
2
|
+
import { s as sdkStreamMixin } from './sdk-stream-mixin-uGZKBKMz.mjs';
|
|
3
3
|
|
|
4
4
|
function quoteHeader(part) {
|
|
5
5
|
if (part.includes(",") || part.includes('"')) {
|
|
@@ -6,19 +6,19 @@ import 'fs-extra';
|
|
|
6
6
|
import 'node:path';
|
|
7
7
|
import 'radash';
|
|
8
8
|
import 'node:buffer';
|
|
9
|
-
import { a as defaultsDeep, g as getDotenvCliOptions2Options, b as baseRootOptionDefaults, G as GetDotenvCli, c as attachRootOptions } from './readMergedOptions-
|
|
9
|
+
import { a as defaultsDeep, g as getDotenvCliOptions2Options, b as baseRootOptionDefaults, G as GetDotenvCli, c as attachRootOptions } from './readMergedOptions-uWSetyes.mjs';
|
|
10
10
|
import 'crypto';
|
|
11
11
|
import 'url';
|
|
12
12
|
import '@commander-js/extra-typings';
|
|
13
13
|
import 'dotenv';
|
|
14
14
|
import 'execa';
|
|
15
15
|
import { t as toHelpConfig } from './helpConfig-CGejgwWW.mjs';
|
|
16
|
-
import { r as resolveCliOptions } from './resolveCliOptions-
|
|
16
|
+
import { r as resolveCliOptions } from './resolveCliOptions-7MwNdHqz.mjs';
|
|
17
17
|
import { v as validateEnvAgainstSources } from './validate-CDl0rE6k.mjs';
|
|
18
18
|
import { awsPlugin } from '../plugins-aws.mjs';
|
|
19
|
-
import { a as awsWhoamiPlugin } from './index-
|
|
19
|
+
import { a as awsWhoamiPlugin } from './index-CDPFly99.mjs';
|
|
20
20
|
import { batchPlugin } from '../plugins-batch.mjs';
|
|
21
|
-
import { c as cmdPlugin } from './index-
|
|
21
|
+
import { c as cmdPlugin } from './index-Cg50N4ys.mjs';
|
|
22
22
|
import { initPlugin } from '../plugins-init.mjs';
|
|
23
23
|
|
|
24
24
|
const dbg = (...args) => {
|
package/dist/chunks/{externalDataInterceptor-BRIxrVUl.mjs → externalDataInterceptor-CnjiiRdu.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as tokenIntercept } from './getSSOTokenFromFile-
|
|
2
|
-
import { h as fileIntercept } from './index-
|
|
1
|
+
import { t as tokenIntercept } from './getSSOTokenFromFile-Bct4fw5A.mjs';
|
|
2
|
+
import { h as fileIntercept } from './index-CDPFly99.mjs';
|
|
3
3
|
|
|
4
4
|
const externalDataInterceptor = {
|
|
5
5
|
getFileRecord() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFile } from 'fs/promises';
|
|
2
2
|
import { createHash } from 'crypto';
|
|
3
3
|
import { join } from 'path';
|
|
4
|
-
import { j as getHomeDir } from './index-
|
|
4
|
+
import { j as getHomeDir } from './index-CDPFly99.mjs';
|
|
5
5
|
|
|
6
6
|
const getSSOTokenFilepath = (id) => {
|
|
7
7
|
const hasher = createHash("sha1");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-
|
|
1
|
+
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-CDPFly99.mjs';
|
|
2
2
|
import { p as packageInfo } from './package-boo9EyYs.mjs';
|
|
3
|
-
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-
|
|
4
|
-
import './readMergedOptions-
|
|
3
|
+
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-7Uww6gmd.mjs';
|
|
4
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@commander-js/extra-typings';
|
|
7
|
-
import './readDotenvCascade-
|
|
7
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
8
8
|
import 'fs-extra';
|
|
9
9
|
import 'radash';
|
|
10
10
|
import 'node:buffer';
|
|
@@ -27,7 +27,7 @@ import 'https';
|
|
|
27
27
|
import 'stream';
|
|
28
28
|
import 'process';
|
|
29
29
|
import 'node:fs';
|
|
30
|
-
import './sdk-stream-mixin-
|
|
30
|
+
import './sdk-stream-mixin-uGZKBKMz.mjs';
|
|
31
31
|
|
|
32
32
|
const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
33
33
|
return {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { readFileSync } from 'fs';
|
|
2
|
-
import { e as externalDataInterceptor } from './externalDataInterceptor-
|
|
3
|
-
import { C as CredentialsProviderError, s as setCredentialFeature } from './index-
|
|
4
|
-
import './getSSOTokenFromFile-
|
|
2
|
+
import { e as externalDataInterceptor } from './externalDataInterceptor-CnjiiRdu.mjs';
|
|
3
|
+
import { C as CredentialsProviderError, s as setCredentialFeature } from './index-CDPFly99.mjs';
|
|
4
|
+
import './getSSOTokenFromFile-Bct4fw5A.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'path';
|
|
8
|
-
import './readMergedOptions-
|
|
8
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@commander-js/extra-typings';
|
|
11
|
-
import './readDotenvCascade-
|
|
11
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
12
12
|
import 'fs-extra';
|
|
13
13
|
import 'radash';
|
|
14
14
|
import 'node:buffer';
|
|
@@ -35,7 +35,7 @@ const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
35
35
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
36
36
|
let { roleAssumerWithWebIdentity } = init;
|
|
37
37
|
if (!roleAssumerWithWebIdentity) {
|
|
38
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await import('./index-
|
|
38
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await import('./index-Cy9EnHMK.mjs');
|
|
39
39
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
40
40
|
...init.clientConfig,
|
|
41
41
|
credentialProviderLogger: init.logger,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-
|
|
1
|
+
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-CDPFly99.mjs';
|
|
2
2
|
import { p as packageInfo } from './package-boo9EyYs.mjs';
|
|
3
|
-
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-
|
|
4
|
-
import './readMergedOptions-
|
|
3
|
+
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-7Uww6gmd.mjs';
|
|
4
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@commander-js/extra-typings';
|
|
7
|
-
import './readDotenvCascade-
|
|
7
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
8
8
|
import 'fs-extra';
|
|
9
9
|
import 'radash';
|
|
10
10
|
import 'node:buffer';
|
|
@@ -27,7 +27,7 @@ import 'https';
|
|
|
27
27
|
import 'stream';
|
|
28
28
|
import 'process';
|
|
29
29
|
import 'node:fs';
|
|
30
|
-
import './sdk-stream-mixin-
|
|
30
|
+
import './sdk-stream-mixin-uGZKBKMz.mjs';
|
|
31
31
|
|
|
32
32
|
const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
33
33
|
return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import fs from 'fs/promises';
|
|
2
|
-
import { C as CredentialsProviderError, H as HttpRequest, p as parseRfc3339DateTime, N as NodeHttpHandler, s as setCredentialFeature } from './index-
|
|
3
|
-
import { s as sdkStreamMixin } from './sdk-stream-mixin-
|
|
4
|
-
import './readMergedOptions-
|
|
2
|
+
import { C as CredentialsProviderError, H as HttpRequest, p as parseRfc3339DateTime, N as NodeHttpHandler, s as setCredentialFeature } from './index-CDPFly99.mjs';
|
|
3
|
+
import { s as sdkStreamMixin } from './sdk-stream-mixin-uGZKBKMz.mjs';
|
|
4
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@commander-js/extra-typings';
|
|
7
|
-
import './readDotenvCascade-
|
|
7
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
8
8
|
import 'fs-extra';
|
|
9
9
|
import 'radash';
|
|
10
10
|
import 'node:buffer';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { exec } from 'child_process';
|
|
2
2
|
import { promisify } from 'util';
|
|
3
|
-
import { s as setCredentialFeature, C as CredentialsProviderError, k as getProfileName } from './index-
|
|
4
|
-
import { e as externalDataInterceptor } from './externalDataInterceptor-
|
|
5
|
-
import { p as parseKnownFiles } from './parseKnownFiles-
|
|
6
|
-
import './readMergedOptions-
|
|
3
|
+
import { s as setCredentialFeature, C as CredentialsProviderError, k as getProfileName } from './index-CDPFly99.mjs';
|
|
4
|
+
import { e as externalDataInterceptor } from './externalDataInterceptor-CnjiiRdu.mjs';
|
|
5
|
+
import { p as parseKnownFiles } from './parseKnownFiles-DsgpkpKC.mjs';
|
|
6
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '@commander-js/extra-typings';
|
|
9
|
-
import './readDotenvCascade-
|
|
9
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
10
10
|
import 'fs-extra';
|
|
11
11
|
import 'radash';
|
|
12
12
|
import 'node:buffer';
|
|
@@ -29,7 +29,7 @@ import 'https';
|
|
|
29
29
|
import 'stream';
|
|
30
30
|
import 'process';
|
|
31
31
|
import 'node:fs';
|
|
32
|
-
import './getSSOTokenFromFile-
|
|
32
|
+
import './getSSOTokenFromFile-Bct4fw5A.mjs';
|
|
33
33
|
import 'fs/promises';
|
|
34
34
|
|
|
35
35
|
const getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { parse } from 'url';
|
|
2
2
|
import { Buffer } from 'buffer';
|
|
3
3
|
import { request } from 'http';
|
|
4
|
-
import { aq as ProviderError, C as CredentialsProviderError, F as parseUrl, O as loadConfig } from './index-
|
|
5
|
-
import './readMergedOptions-
|
|
4
|
+
import { aq as ProviderError, C as CredentialsProviderError, F as parseUrl, O as loadConfig } from './index-CDPFly99.mjs';
|
|
5
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@commander-js/extra-typings';
|
|
8
|
-
import './readDotenvCascade-
|
|
8
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
9
9
|
import 'fs-extra';
|
|
10
10
|
import 'radash';
|
|
11
11
|
import 'node:buffer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as definePlugin } from './readMergedOptions-
|
|
1
|
+
import { d as definePlugin } from './readMergedOptions-uWSetyes.mjs';
|
|
2
2
|
import 'execa';
|
|
3
3
|
import 'radash';
|
|
4
4
|
import 'node:buffer';
|
|
@@ -2184,7 +2184,7 @@ class HttpProtocol extends SerdeContext {
|
|
|
2184
2184
|
});
|
|
2185
2185
|
}
|
|
2186
2186
|
async loadEventStreamCapability() {
|
|
2187
|
-
const { EventStreamSerde } = await import('./index-
|
|
2187
|
+
const { EventStreamSerde } = await import('./index-Do8RFiEa.mjs');
|
|
2188
2188
|
return new EventStreamSerde({
|
|
2189
2189
|
marshaller: this.getEventStreamMarshaller(),
|
|
2190
2190
|
serializer: this.serializer,
|
|
@@ -8485,10 +8485,10 @@ const fromEnv = (init) => async () => {
|
|
|
8485
8485
|
|
|
8486
8486
|
const ENV_IMDS_DISABLED$1 = "AWS_EC2_METADATA_DISABLED";
|
|
8487
8487
|
const remoteProvider = async (init) => {
|
|
8488
|
-
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import('./index-
|
|
8488
|
+
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import('./index-Bmw8WxM1.mjs');
|
|
8489
8489
|
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
|
8490
8490
|
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
|
|
8491
|
-
const { fromHttp } = await import('./index-
|
|
8491
|
+
const { fromHttp } = await import('./index-BfVeLAui.mjs');
|
|
8492
8492
|
return chain(fromHttp(init), fromContainerMetadata(init));
|
|
8493
8493
|
}
|
|
8494
8494
|
if (process.env[ENV_IMDS_DISABLED$1] && process.env[ENV_IMDS_DISABLED$1] !== "false") {
|
|
@@ -8592,22 +8592,22 @@ const defaultProvider = (init = {}) => memoizeChain([
|
|
|
8592
8592
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
8593
8593
|
throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
|
|
8594
8594
|
}
|
|
8595
|
-
const { fromSSO } = await import('./index-
|
|
8595
|
+
const { fromSSO } = await import('./index-DeXLfLd1.mjs');
|
|
8596
8596
|
return fromSSO(init)(awsIdentityProperties);
|
|
8597
8597
|
},
|
|
8598
8598
|
async (awsIdentityProperties) => {
|
|
8599
8599
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
|
|
8600
|
-
const { fromIni } = await import('./index-
|
|
8600
|
+
const { fromIni } = await import('./index-CzwvgH1X.mjs');
|
|
8601
8601
|
return fromIni(init)(awsIdentityProperties);
|
|
8602
8602
|
},
|
|
8603
8603
|
async (awsIdentityProperties) => {
|
|
8604
8604
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
|
|
8605
|
-
const { fromProcess } = await import('./index-
|
|
8605
|
+
const { fromProcess } = await import('./index-BjE-7W3n.mjs');
|
|
8606
8606
|
return fromProcess(init)(awsIdentityProperties);
|
|
8607
8607
|
},
|
|
8608
8608
|
async (awsIdentityProperties) => {
|
|
8609
8609
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
|
|
8610
|
-
const { fromTokenFile } = await import('./index-
|
|
8610
|
+
const { fromTokenFile } = await import('./index-BHKFx7ea.mjs');
|
|
8611
8611
|
return fromTokenFile(init)(awsIdentityProperties);
|
|
8612
8612
|
},
|
|
8613
8613
|
async () => {
|
|
@@ -8780,7 +8780,7 @@ const inferPhysicalRegion = async () => {
|
|
|
8780
8780
|
}
|
|
8781
8781
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
8782
8782
|
try {
|
|
8783
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await import('./index-
|
|
8783
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await import('./index-Bmw8WxM1.mjs');
|
|
8784
8784
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
8785
8785
|
return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
|
|
8786
8786
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { camel } from 'radash';
|
|
2
|
-
import { r as readMergedOptions, g as getDotenvCliOptions2Options, d as definePlugin } from './readMergedOptions-
|
|
2
|
+
import { r as readMergedOptions, g as getDotenvCliOptions2Options, d as definePlugin } from './readMergedOptions-uWSetyes.mjs';
|
|
3
3
|
import 'execa';
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
import 'fs-extra';
|
|
@@ -16,8 +16,8 @@ import 'yaml';
|
|
|
16
16
|
import { z } from 'zod';
|
|
17
17
|
import { b as resolveCommand, c as resolveShell, t as tokenize, s as shouldCapture, r as runCommand, d as buildSpawnEnv } from './spawnEnv-5kdIVv0x.mjs';
|
|
18
18
|
import { m as maybePreserveNodeEvalArgv, c as composeNestedEnv, s as stripOne } from './invoke-DuRPU1oC.mjs';
|
|
19
|
-
import {
|
|
20
|
-
import { r as resolveCliOptions, b as baseGetDotenvCliOptions } from './resolveCliOptions-
|
|
19
|
+
import { f as dotenvExpandFromProcessEnv } from './readDotenvCascade-HLU7FsEQ.mjs';
|
|
20
|
+
import { r as resolveCliOptions, b as baseGetDotenvCliOptions } from './resolveCliOptions-7MwNdHqz.mjs';
|
|
21
21
|
|
|
22
22
|
/** src/diagnostics/entropy.ts
|
|
23
23
|
* Entropy diagnostics (presentation-only).
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { O as loadConfig, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, aP as AwsQueryProtocol, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin, s as setCredentialFeature } from './index-
|
|
1
|
+
import { O as loadConfig, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, aP as AwsQueryProtocol, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin, s as setCredentialFeature } from './index-CDPFly99.mjs';
|
|
2
2
|
import { p as packageInfo } from './package-boo9EyYs.mjs';
|
|
3
|
-
import './readMergedOptions-
|
|
3
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@commander-js/extra-typings';
|
|
6
|
-
import './readDotenvCascade-
|
|
6
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
7
7
|
import 'fs-extra';
|
|
8
8
|
import 'radash';
|
|
9
9
|
import 'node:buffer';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as CredentialsProviderError, s as setCredentialFeature, u as chain, k as getProfileName, v as readFile, H as HttpRequest } from './index-
|
|
1
|
+
import { C as CredentialsProviderError, s as setCredentialFeature, u as chain, k as getProfileName, v as readFile, H as HttpRequest } from './index-CDPFly99.mjs';
|
|
2
2
|
import { createHash, createPrivateKey, createPublicKey, sign } from 'node:crypto';
|
|
3
3
|
import { promises } from 'node:fs';
|
|
4
4
|
import { homedir } from 'node:os';
|
|
5
5
|
import { dirname, join } from 'node:path';
|
|
6
|
-
import { p as parseKnownFiles } from './parseKnownFiles-
|
|
7
|
-
import './readMergedOptions-
|
|
6
|
+
import { p as parseKnownFiles } from './parseKnownFiles-DsgpkpKC.mjs';
|
|
7
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import '@commander-js/extra-typings';
|
|
10
|
-
import './readDotenvCascade-
|
|
10
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
11
11
|
import 'fs-extra';
|
|
12
12
|
import 'radash';
|
|
13
13
|
import 'node:buffer';
|
|
@@ -32,19 +32,19 @@ import 'process';
|
|
|
32
32
|
const resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
33
33
|
const sourceProvidersMap = {
|
|
34
34
|
EcsContainer: async (options) => {
|
|
35
|
-
const { fromHttp } = await import('./index-
|
|
36
|
-
const { fromContainerMetadata } = await import('./index-
|
|
35
|
+
const { fromHttp } = await import('./index-BfVeLAui.mjs');
|
|
36
|
+
const { fromContainerMetadata } = await import('./index-Bmw8WxM1.mjs');
|
|
37
37
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
38
38
|
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
39
39
|
},
|
|
40
40
|
Ec2InstanceMetadata: async (options) => {
|
|
41
41
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
42
|
-
const { fromInstanceMetadata } = await import('./index-
|
|
42
|
+
const { fromInstanceMetadata } = await import('./index-Bmw8WxM1.mjs');
|
|
43
43
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
44
44
|
},
|
|
45
45
|
Environment: async (options) => {
|
|
46
46
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
47
|
-
const { fromEnv } = await import('./index-
|
|
47
|
+
const { fromEnv } = await import('./index-udC0OkWn.mjs');
|
|
48
48
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
49
49
|
},
|
|
50
50
|
};
|
|
@@ -86,7 +86,7 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, visi
|
|
|
86
86
|
const profileData = profiles[profileName];
|
|
87
87
|
const { source_profile, region } = profileData;
|
|
88
88
|
if (!options.roleAssumer) {
|
|
89
|
-
const { getDefaultRoleAssumer } = await import('./index-
|
|
89
|
+
const { getDefaultRoleAssumer } = await import('./index-Cy9EnHMK.mjs');
|
|
90
90
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
91
91
|
...options.clientConfig,
|
|
92
92
|
credentialProviderLogger: options.logger,
|
|
@@ -171,7 +171,7 @@ class LoginCredentialsFetcher {
|
|
|
171
171
|
return this.profileData.login_session;
|
|
172
172
|
}
|
|
173
173
|
async refresh(token) {
|
|
174
|
-
const { SigninClient, CreateOAuth2TokenCommand } = await import('./index-
|
|
174
|
+
const { SigninClient, CreateOAuth2TokenCommand } = await import('./index-37ce0nLC.mjs');
|
|
175
175
|
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
|
|
176
176
|
const isH2 = (requestHandler) => {
|
|
177
177
|
return requestHandler?.metadata?.handlerProtocol === "h2";
|
|
@@ -420,13 +420,13 @@ const resolveLoginCredentials = async (profileName, options) => {
|
|
|
420
420
|
};
|
|
421
421
|
|
|
422
422
|
const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
423
|
-
const resolveProcessCredentials = async (options, profile) => import('./index-
|
|
423
|
+
const resolveProcessCredentials = async (options, profile) => import('./index-BjE-7W3n.mjs').then(({ fromProcess }) => fromProcess({
|
|
424
424
|
...options,
|
|
425
425
|
profile,
|
|
426
426
|
})().then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
427
427
|
|
|
428
428
|
const resolveSsoCredentials = async (profile, profileData, options = {}) => {
|
|
429
|
-
const { fromSSO } = await import('./index-
|
|
429
|
+
const { fromSSO } = await import('./index-DeXLfLd1.mjs');
|
|
430
430
|
return fromSSO({
|
|
431
431
|
profile,
|
|
432
432
|
logger: options.logger,
|
|
@@ -471,7 +471,7 @@ const isWebIdentityProfile = (arg) => Boolean(arg) &&
|
|
|
471
471
|
typeof arg.web_identity_token_file === "string" &&
|
|
472
472
|
typeof arg.role_arn === "string" &&
|
|
473
473
|
["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
474
|
-
const resolveWebIdentityCredentials = async (profile, options) => import('./index-
|
|
474
|
+
const resolveWebIdentityCredentials = async (profile, options) => import('./index-BHKFx7ea.mjs').then(({ fromTokenFile }) => fromTokenFile({
|
|
475
475
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
476
476
|
roleArn: profile.role_arn,
|
|
477
477
|
roleSessionName: profile.role_session_name,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { aq as ProviderError, ar as IniSectionType, as as CONFIG_PREFIX_SEPARATOR, v as readFile, at as getConfigFilepath, au as parseIni, k as getProfileName, C as CredentialsProviderError, s as setCredentialFeature } from './index-
|
|
1
|
+
import { aq as ProviderError, ar as IniSectionType, as as CONFIG_PREFIX_SEPARATOR, v as readFile, at as getConfigFilepath, au as parseIni, k as getProfileName, C as CredentialsProviderError, s as setCredentialFeature } from './index-CDPFly99.mjs';
|
|
2
2
|
import { promises } from 'fs';
|
|
3
|
-
import { g as getSSOTokenFilepath, a as getSSOTokenFromFile } from './getSSOTokenFromFile-
|
|
4
|
-
import { p as parseKnownFiles } from './parseKnownFiles-
|
|
5
|
-
import './readMergedOptions-
|
|
3
|
+
import { g as getSSOTokenFilepath, a as getSSOTokenFromFile } from './getSSOTokenFromFile-Bct4fw5A.mjs';
|
|
4
|
+
import { p as parseKnownFiles } from './parseKnownFiles-DsgpkpKC.mjs';
|
|
5
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@commander-js/extra-typings';
|
|
8
|
-
import './readDotenvCascade-
|
|
8
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
9
9
|
import 'fs-extra';
|
|
10
10
|
import 'radash';
|
|
11
11
|
import 'node:buffer';
|
|
@@ -59,7 +59,7 @@ const EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
|
59
59
|
const REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
60
60
|
|
|
61
61
|
const getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
62
|
-
const { SSOOIDCClient } = await import('./index-
|
|
62
|
+
const { SSOOIDCClient } = await import('./index-BJWV46OF.mjs');
|
|
63
63
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop];
|
|
64
64
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
65
65
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
@@ -70,7 +70,7 @@ const getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
|
|
73
|
-
const { CreateTokenCommand } = await import('./index-
|
|
73
|
+
const { CreateTokenCommand } = await import('./index-BJWV46OF.mjs');
|
|
74
74
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init);
|
|
75
75
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
76
76
|
clientId: ssoToken.clientId,
|
|
@@ -223,7 +223,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
const { accessToken } = token;
|
|
226
|
-
const { SSOClient, GetRoleCredentialsCommand } = await import('./loadSso-
|
|
226
|
+
const { SSOClient, GetRoleCredentialsCommand } = await import('./loadSso-DJONWtFw.mjs');
|
|
227
227
|
const sso = ssoClient ||
|
|
228
228
|
new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
229
229
|
logger: clientConfig?.logger ?? parentClientConfig?.logger,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as toUtf8, i as fromUtf8 } from './index-
|
|
2
|
-
import './readMergedOptions-
|
|
1
|
+
import { t as toUtf8, i as fromUtf8 } from './index-CDPFly99.mjs';
|
|
2
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@commander-js/extra-typings';
|
|
5
|
-
import './readDotenvCascade-
|
|
5
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
6
6
|
import 'fs-extra';
|
|
7
7
|
import 'radash';
|
|
8
8
|
import 'node:buffer';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { f as ENV_ACCOUNT_ID, e as ENV_CREDENTIAL_SCOPE, d as ENV_EXPIRATION, E as ENV_KEY, b as ENV_SECRET, c as ENV_SESSION, g as fromEnv } from './index-
|
|
2
|
-
import './readMergedOptions-
|
|
1
|
+
export { f as ENV_ACCOUNT_ID, e as ENV_CREDENTIAL_SCOPE, d as ENV_EXPIRATION, E as ENV_KEY, b as ENV_SECRET, c as ENV_SESSION, g as fromEnv } from './index-CDPFly99.mjs';
|
|
2
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@commander-js/extra-typings';
|
|
5
|
-
import './readDotenvCascade-
|
|
5
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
6
6
|
import 'fs-extra';
|
|
7
7
|
import 'radash';
|
|
8
8
|
import 'node:buffer';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-
|
|
2
|
-
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-
|
|
3
|
-
import './readMergedOptions-
|
|
1
|
+
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-CDPFly99.mjs';
|
|
2
|
+
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-7Uww6gmd.mjs';
|
|
3
|
+
import './readMergedOptions-uWSetyes.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@commander-js/extra-typings';
|
|
6
|
-
import './readDotenvCascade-
|
|
6
|
+
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
7
7
|
import 'fs-extra';
|
|
8
8
|
import 'radash';
|
|
9
9
|
import 'node:buffer';
|
|
@@ -26,7 +26,7 @@ import 'https';
|
|
|
26
26
|
import 'stream';
|
|
27
27
|
import 'process';
|
|
28
28
|
import 'node:fs';
|
|
29
|
-
import './sdk-stream-mixin-
|
|
29
|
+
import './sdk-stream-mixin-uGZKBKMz.mjs';
|
|
30
30
|
|
|
31
31
|
const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
32
32
|
return {
|
|
@@ -546,4 +546,4 @@ async function readDotenvCascadeWithProvenance(args) {
|
|
|
546
546
|
return { dotenv: expanded, provenance: prov };
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
export { applyDynamicMap as a, applyDynamicMapWithProvenance as b, loadAndApplyDynamic as c, dotenvExpandAll as d, createDotenvProvenance as e,
|
|
549
|
+
export { applyDynamicMap as a, applyDynamicMapWithProvenance as b, loadAndApplyDynamic as c, dotenvExpandAll as d, createDotenvProvenance as e, dotenvExpandFromProcessEnv as f, readDotenv as g, dotenvExpand as h, loadDynamicModuleDefault as l, overlayEnvWithProvenance as o, pushDotenvProvenance as p, readDotenvCascadeWithProvenance as r };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Option, Command } from '@commander-js/extra-typings';
|
|
3
|
-
import {
|
|
3
|
+
import { h as dotenvExpand, r as readDotenvCascadeWithProvenance, o as overlayEnvWithProvenance, b as applyDynamicMapWithProvenance, l as loadDynamicModuleDefault, f as dotenvExpandFromProcessEnv } from './readDotenvCascade-HLU7FsEQ.mjs';
|
|
4
4
|
import fs from 'fs-extra';
|
|
5
5
|
import 'node:path';
|
|
6
6
|
import 'nanoid';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as fromBase64, n as toBase64, o as toHex, t as toUtf8, q as fromArrayBuffer, r as streamCollector$1 } from './index-
|
|
1
|
+
import { m as fromBase64, n as toBase64, o as toHex, t as toUtf8, q as fromArrayBuffer, r as streamCollector$1 } from './index-CDPFly99.mjs';
|
|
2
2
|
import { Readable } from 'stream';
|
|
3
3
|
|
|
4
4
|
const isReadableStream = (stream) => typeof ReadableStream === "function" &&
|
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as createCli } from './chunks/createCli-
|
|
1
|
+
export { c as createCli } from './chunks/createCli-pZgHlwKX.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'path';
|
|
4
4
|
import './chunks/loader-CE4HSRN4.mjs';
|
|
@@ -13,16 +13,16 @@ import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
|
13
13
|
import 'crypto';
|
|
14
14
|
import '@commander-js/extra-typings';
|
|
15
15
|
import 'nanoid';
|
|
16
|
-
import './chunks/readMergedOptions-
|
|
17
|
-
import './chunks/readDotenvCascade-
|
|
16
|
+
import './chunks/readMergedOptions-uWSetyes.mjs';
|
|
17
|
+
import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
18
18
|
import 'dotenv';
|
|
19
19
|
import 'execa';
|
|
20
20
|
import './chunks/helpConfig-CGejgwWW.mjs';
|
|
21
|
-
import './chunks/resolveCliOptions-
|
|
21
|
+
import './chunks/resolveCliOptions-7MwNdHqz.mjs';
|
|
22
22
|
import './chunks/validate-CDl0rE6k.mjs';
|
|
23
23
|
import './plugins-aws.mjs';
|
|
24
24
|
import './chunks/spawnEnv-5kdIVv0x.mjs';
|
|
25
|
-
import './chunks/index-
|
|
25
|
+
import './chunks/index-CDPFly99.mjs';
|
|
26
26
|
import 'buffer';
|
|
27
27
|
import 'os';
|
|
28
28
|
import 'node:fs/promises';
|
|
@@ -34,7 +34,7 @@ import 'node:fs';
|
|
|
34
34
|
import './plugins-batch.mjs';
|
|
35
35
|
import './chunks/invoke-DuRPU1oC.mjs';
|
|
36
36
|
import 'globby';
|
|
37
|
-
import './chunks/index-
|
|
37
|
+
import './chunks/index-Cg50N4ys.mjs';
|
|
38
38
|
import './plugins-init.mjs';
|
|
39
39
|
import 'node:process';
|
|
40
40
|
import 'readline/promises';
|
package/dist/cliHost.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { G as GetDotenvCli, d as definePlugin, r as readMergedOptions } from './chunks/readMergedOptions-
|
|
1
|
+
export { G as GetDotenvCli, d as definePlugin, r as readMergedOptions } from './chunks/readMergedOptions-uWSetyes.mjs';
|
|
2
2
|
export { d as buildSpawnEnv, b as resolveCommand, c as resolveShell, r as runCommand, a as runCommandResult, s as shouldCapture } from './chunks/spawnEnv-5kdIVv0x.mjs';
|
|
3
|
-
export { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './chunks/resolveCliOptions-
|
|
4
|
-
export { d as defineScripts, g as groupPlugins } from './chunks/types-
|
|
3
|
+
export { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './chunks/resolveCliOptions-7MwNdHqz.mjs';
|
|
4
|
+
export { d as defineScripts, g as groupPlugins } from './chunks/types-BSMtAo8_.mjs';
|
|
5
5
|
export { t as toHelpConfig } from './chunks/helpConfig-CGejgwWW.mjs';
|
|
6
6
|
export { c as composeNestedEnv, m as maybePreserveNodeEvalArgv, s as stripOne } from './chunks/invoke-DuRPU1oC.mjs';
|
|
7
7
|
export { z } from 'zod';
|
|
8
8
|
import '@commander-js/extra-typings';
|
|
9
|
-
import './chunks/readDotenvCascade-
|
|
9
|
+
import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
10
10
|
import 'fs-extra';
|
|
11
11
|
import 'radash';
|
|
12
12
|
import 'node:buffer';
|
package/dist/env-overlay.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as dotenvExpandAll } from './chunks/readDotenvCascade-
|
|
2
|
-
export { a as applyDynamicMap, b as applyDynamicMapWithProvenance, e as createDotenvProvenance, c as loadAndApplyDynamic, l as loadDynamicModuleDefault, o as overlayEnvWithProvenance, p as pushDotenvProvenance, r as readDotenvCascadeWithProvenance } from './chunks/readDotenvCascade-
|
|
1
|
+
import { d as dotenvExpandAll } from './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
2
|
+
export { a as applyDynamicMap, b as applyDynamicMapWithProvenance, e as createDotenvProvenance, c as loadAndApplyDynamic, l as loadDynamicModuleDefault, o as overlayEnvWithProvenance, p as pushDotenvProvenance, r as readDotenvCascadeWithProvenance } from './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
3
3
|
import 'fs-extra';
|
|
4
4
|
import 'node:path';
|
|
5
5
|
import 'radash';
|
package/dist/getdotenv.cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as createCli } from './chunks/createCli-
|
|
2
|
+
import { c as createCli } from './chunks/createCli-pZgHlwKX.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'path';
|
|
5
5
|
import './chunks/loader-CE4HSRN4.mjs';
|
|
@@ -14,16 +14,16 @@ import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
|
14
14
|
import 'crypto';
|
|
15
15
|
import '@commander-js/extra-typings';
|
|
16
16
|
import 'nanoid';
|
|
17
|
-
import './chunks/readMergedOptions-
|
|
18
|
-
import './chunks/readDotenvCascade-
|
|
17
|
+
import './chunks/readMergedOptions-uWSetyes.mjs';
|
|
18
|
+
import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
19
19
|
import 'dotenv';
|
|
20
20
|
import 'execa';
|
|
21
21
|
import './chunks/helpConfig-CGejgwWW.mjs';
|
|
22
|
-
import './chunks/resolveCliOptions-
|
|
22
|
+
import './chunks/resolveCliOptions-7MwNdHqz.mjs';
|
|
23
23
|
import './chunks/validate-CDl0rE6k.mjs';
|
|
24
24
|
import './plugins-aws.mjs';
|
|
25
25
|
import './chunks/spawnEnv-5kdIVv0x.mjs';
|
|
26
|
-
import './chunks/index-
|
|
26
|
+
import './chunks/index-CDPFly99.mjs';
|
|
27
27
|
import 'buffer';
|
|
28
28
|
import 'os';
|
|
29
29
|
import 'node:fs/promises';
|
|
@@ -35,7 +35,7 @@ import 'node:fs';
|
|
|
35
35
|
import './plugins-batch.mjs';
|
|
36
36
|
import './chunks/invoke-DuRPU1oC.mjs';
|
|
37
37
|
import 'globby';
|
|
38
|
-
import './chunks/index-
|
|
38
|
+
import './chunks/index-Cg50N4ys.mjs';
|
|
39
39
|
import './plugins-init.mjs';
|
|
40
40
|
import 'node:process';
|
|
41
41
|
import 'readline/promises';
|
package/dist/index.d.ts
CHANGED
|
@@ -1792,6 +1792,52 @@ declare const applyIncludeExclude: (env: ProcessEnv, { include, exclude, }: {
|
|
|
1792
1792
|
exclude?: string[];
|
|
1793
1793
|
}) => ProcessEnv;
|
|
1794
1794
|
|
|
1795
|
+
/**
|
|
1796
|
+
* Assert that a value is a non-empty string.
|
|
1797
|
+
*
|
|
1798
|
+
* @param v - Value to check.
|
|
1799
|
+
* @param msg - Error message to throw if check fails.
|
|
1800
|
+
*/
|
|
1801
|
+
declare const requireString: (v: unknown, msg: string) => string;
|
|
1802
|
+
/**
|
|
1803
|
+
* Assert that the byte length of a value (stringified) does not exceed a limit.
|
|
1804
|
+
*
|
|
1805
|
+
* @param value - Value to measure (strings used as-is; others JSON-stringified).
|
|
1806
|
+
* @param limit - Maximum allowed byte length.
|
|
1807
|
+
* @param errorMsg - Error message string or generator function.
|
|
1808
|
+
*/
|
|
1809
|
+
declare const assertByteLimit: (value: unknown, limit: number, errorMsg: string | ((v: unknown, l: number) => string)) => void;
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* Perform a deep defaults‑style merge across plain objects.
|
|
1813
|
+
* - Only merges plain objects (prototype === Object.prototype).
|
|
1814
|
+
* - Arrays and non‑objects are replaced, not merged.
|
|
1815
|
+
* - `undefined` values are ignored and do not overwrite prior values.
|
|
1816
|
+
*
|
|
1817
|
+
* @typeParam T - Resulting shape after merging all layers.
|
|
1818
|
+
* @returns The merged object typed as T.
|
|
1819
|
+
*
|
|
1820
|
+
* @example
|
|
1821
|
+
* defaultsDeep(\{ a: 1, nested: \{ b: 2 \} \}, \{ nested: \{ b: 3, c: 4 \} \})
|
|
1822
|
+
* =\> \{ a: 1, nested: \{ b: 3, c: 4 \} \}
|
|
1823
|
+
*/
|
|
1824
|
+
declare function defaultsDeep<A extends object>(a?: Partial<A>): A;
|
|
1825
|
+
declare function defaultsDeep<A extends object, B extends object>(a?: Partial<A>, b?: Partial<B>): A & B;
|
|
1826
|
+
declare function defaultsDeep<A extends object, B extends object, C extends object>(a?: Partial<A>, b?: Partial<B>, c?: Partial<C>): A & B & C;
|
|
1827
|
+
declare function defaultsDeep<A extends object, B extends object, C extends object, D extends object>(a?: Partial<A>, b?: Partial<B>, c?: Partial<C>, d?: Partial<D>): A & B & C & D;
|
|
1828
|
+
declare function defaultsDeep<A extends object, B extends object, C extends object, D extends object, E extends object>(a?: Partial<A>, b?: Partial<B>, c?: Partial<C>, d?: Partial<D>, e?: Partial<E>): A & B & C & D & E;
|
|
1829
|
+
declare function defaultsDeep<T extends object>(...layers: Array<Partial<T> | undefined>): T;
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Serialize a dotenv record to a file with minimal quoting (multiline values are quoted).
|
|
1833
|
+
* Future-proofs for ordering/sorting changes (currently insertion order).
|
|
1834
|
+
*
|
|
1835
|
+
* @param filename - Destination dotenv file path.
|
|
1836
|
+
* @param data - Env-like map of values to write (values may be `undefined`).
|
|
1837
|
+
* @returns A `Promise\<void\>` which resolves when the file has been written.
|
|
1838
|
+
*/
|
|
1839
|
+
declare function writeDotenvFile(filename: string, data: ProcessEnv): Promise<void>;
|
|
1840
|
+
|
|
1795
1841
|
/**
|
|
1796
1842
|
* Deeply interpolate string leaves against envRef.
|
|
1797
1843
|
* Arrays are not recursed into; they are returned unchanged.
|
|
@@ -1803,5 +1849,79 @@ declare const applyIncludeExclude: (env: ProcessEnv, { include, exclude, }: {
|
|
|
1803
1849
|
*/
|
|
1804
1850
|
declare const interpolateDeep: <T>(value: T, envRef: ProcessEnv) => T;
|
|
1805
1851
|
|
|
1806
|
-
|
|
1807
|
-
|
|
1852
|
+
/**
|
|
1853
|
+
* Load a module default export from a JS/TS file with robust fallbacks.
|
|
1854
|
+
*
|
|
1855
|
+
* Behavior by extension:
|
|
1856
|
+
*
|
|
1857
|
+
* - `.js`/`.mjs`/`.cjs`: direct dynamic import.
|
|
1858
|
+
* - `.ts`/`.mts`/`.cts`/`.tsx`:
|
|
1859
|
+
* - try direct dynamic import (when a TS loader is active),
|
|
1860
|
+
* - else compile via `esbuild` to a cached `.mjs` file and import,
|
|
1861
|
+
* - else fallback to `typescript.transpileModule` for simple modules.
|
|
1862
|
+
*
|
|
1863
|
+
* @typeParam T - Type of the expected default export.
|
|
1864
|
+
* @param absPath - Absolute path to the source file.
|
|
1865
|
+
* @param cacheDirName - Cache subfolder under `.tsbuild/`.
|
|
1866
|
+
* @returns A `Promise\<T | undefined\>` resolving to the default export (if any).
|
|
1867
|
+
*/
|
|
1868
|
+
declare const loadModuleDefault: <T>(absPath: string, cacheDirName: string) => Promise<T | undefined>;
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* A silent logger that implements the Logger interface but performs no operations.
|
|
1872
|
+
*/
|
|
1873
|
+
declare const silentLogger: Logger;
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* Parse a value into a number or undefined.
|
|
1877
|
+
*
|
|
1878
|
+
* @param v - Value to parse.
|
|
1879
|
+
* @returns The parsed number, or undefined if the input was undefined or empty string.
|
|
1880
|
+
*/
|
|
1881
|
+
declare const toNumber: (v: unknown) => number | undefined;
|
|
1882
|
+
/**
|
|
1883
|
+
* Build a Commander option parser that coerces a raw string to a finite number.
|
|
1884
|
+
*
|
|
1885
|
+
* @param label - Label used in error messages (e.g. `"port"`).
|
|
1886
|
+
* @returns Parser suitable for Commander `.option(..., parser)`.
|
|
1887
|
+
*/
|
|
1888
|
+
declare const parseFiniteNumber: (label: string) => (raw: string) => number;
|
|
1889
|
+
/**
|
|
1890
|
+
* Build a Commander option parser that coerces a raw string to a positive integer.
|
|
1891
|
+
*
|
|
1892
|
+
* @param label - Label used in error messages (e.g. `"maxSeconds"`).
|
|
1893
|
+
* @returns Parser suitable for Commander `.option(..., parser)`.
|
|
1894
|
+
*/
|
|
1895
|
+
declare const parsePositiveInt: (label: string) => (raw: string) => number;
|
|
1896
|
+
/**
|
|
1897
|
+
* Build a Commander option parser that coerces a raw string to a non-negative integer.
|
|
1898
|
+
*
|
|
1899
|
+
* @param label - Label used in error messages (e.g. `"limit"`).
|
|
1900
|
+
* @returns Parser suitable for Commander `.option(..., parser)`.
|
|
1901
|
+
*/
|
|
1902
|
+
declare const parseNonNegativeInt: (label: string) => (raw: string) => number;
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
* Options for the tokenizer used by shell-off command handling.
|
|
1906
|
+
*
|
|
1907
|
+
* @public
|
|
1908
|
+
*/
|
|
1909
|
+
interface TokenizeOptions {
|
|
1910
|
+
/**
|
|
1911
|
+
* When true, keep doubled quotes inside a quoted segment (e.g., `""` stays `""`),
|
|
1912
|
+
* which is useful for preserving Node -e payload quoting patterns.
|
|
1913
|
+
* When false (default), doubled quotes collapse to a single literal quote.
|
|
1914
|
+
*/
|
|
1915
|
+
preserveDoubledQuotes?: boolean;
|
|
1916
|
+
}
|
|
1917
|
+
/**
|
|
1918
|
+
* Minimal tokenizer for shell-off execution.
|
|
1919
|
+
* Splits by whitespace while preserving quoted segments (single or double quotes).
|
|
1920
|
+
*
|
|
1921
|
+
* @param command - The command string to tokenize.
|
|
1922
|
+
* @param opts - Tokenization options (e.g. quote handling).
|
|
1923
|
+
*/
|
|
1924
|
+
declare const tokenize: (command: string, opts?: TokenizeOptions) => string[];
|
|
1925
|
+
|
|
1926
|
+
export { GetDotenvCli, applyDotenvEdits, applyIncludeExclude, assertByteLimit, baseRootOptionDefaults, buildSpawnEnv, createCli, defaultsDeep, defineDynamic, defineGetDotenvConfig, definePlugin, defineScripts, dotenvExpand, dotenvExpandAll, dotenvExpandFromProcessEnv, editDotenvFile, editDotenvText, getDotenv, getDotenvCliOptions2Options, groupPlugins, interpolateDeep, loadModuleDefault, maybeWarnEntropy, parseDotenvDocument, parseFiniteNumber, parseNonNegativeInt, parsePositiveInt, readMergedOptions, redactDisplay, redactObject, renderDotenvDocument, requireString, shouldCapture, silentLogger, toNumber, tokenize, traceChildEnv, writeDotenvFile };
|
|
1927
|
+
export type { CreateCliOptions, DotenvAssignmentSegment, DotenvBareKeySegment, DotenvConfigProvenanceEntry, DotenvDocument, DotenvDuplicateKeyStrategy, DotenvDynamicProvenanceEntry, DotenvDynamicSource, DotenvEditMode, DotenvEditOptions, DotenvEolMode, DotenvFileProvenanceEntry, DotenvFs, DotenvPathSearchOrder, DotenvProvenance, DotenvProvenanceEntry, DotenvProvenanceEntryBase, DotenvProvenanceKind, DotenvProvenanceOp, DotenvSegment, DotenvTargetPrivacy, DotenvTargetScope, DotenvUpdateMap, DotenvUpdateValue, DotenvVarsProvenanceEntry, DynamicFn, DynamicMap, EditDotenvFileOptions, EditDotenvFileResult, EntropyOptions, GetDotenvCliOptions, GetDotenvCliPlugin, GetDotenvCliPublic, GetDotenvConfig, GetDotenvDynamic, GetDotenvOptions, InferGetDotenvVarsFromConfig, InferPluginConfig, PluginWithInstanceHelpers, ProcessEnv, RedactOptions, ScriptsTable, TokenizeOptions, TraceChildEnvOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export { c as createCli } from './chunks/createCli-
|
|
2
|
-
import { e as resolveGetDotenvOptions, w as writeDotenvFile } from './chunks/readMergedOptions-
|
|
3
|
-
export { G as GetDotenvCli, b as baseRootOptionDefaults, f as defineDynamic, h as defineGetDotenvConfig, d as definePlugin, g as getDotenvCliOptions2Options, i as interpolateDeep, r as readMergedOptions } from './chunks/readMergedOptions-
|
|
4
|
-
export { d as buildSpawnEnv, s as shouldCapture } from './chunks/spawnEnv-5kdIVv0x.mjs';
|
|
5
|
-
export { d as defineScripts, g as groupPlugins } from './chunks/types-
|
|
1
|
+
export { c as createCli } from './chunks/createCli-pZgHlwKX.mjs';
|
|
2
|
+
import { e as resolveGetDotenvOptions, w as writeDotenvFile } from './chunks/readMergedOptions-uWSetyes.mjs';
|
|
3
|
+
export { G as GetDotenvCli, b as baseRootOptionDefaults, a as defaultsDeep, f as defineDynamic, h as defineGetDotenvConfig, d as definePlugin, g as getDotenvCliOptions2Options, i as interpolateDeep, r as readMergedOptions } from './chunks/readMergedOptions-uWSetyes.mjs';
|
|
4
|
+
export { d as buildSpawnEnv, s as shouldCapture, t as tokenize } from './chunks/spawnEnv-5kdIVv0x.mjs';
|
|
5
|
+
export { d as defineScripts, g as groupPlugins } from './chunks/types-BSMtAo8_.mjs';
|
|
6
6
|
import { omit, pick } from 'radash';
|
|
7
|
-
import 'node:buffer';
|
|
8
|
-
|
|
9
|
-
import '
|
|
10
|
-
import path$1 from 'path';
|
|
11
|
-
import 'url';
|
|
12
|
-
import '@commander-js/extra-typings';
|
|
7
|
+
import { Buffer } from 'node:buffer';
|
|
8
|
+
export { l as loadModuleDefault } from './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
9
|
+
import { InvalidArgumentError } from '@commander-js/extra-typings';
|
|
13
10
|
export { z } from 'zod';
|
|
14
11
|
import { nanoid } from 'nanoid';
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
import path$1 from 'path';
|
|
13
|
+
import { r as redactObject, m as maybeWarnEntropy } from './chunks/index-Cg50N4ys.mjs';
|
|
14
|
+
export { a as redactDisplay, t as traceChildEnv } from './chunks/index-Cg50N4ys.mjs';
|
|
15
|
+
import { g as readDotenv, d as dotenvExpandAll, a as applyDynamicMap, c as loadAndApplyDynamic } from './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
16
|
+
export { h as dotenvExpand, f as dotenvExpandFromProcessEnv } from './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
17
|
+
import fs from 'fs-extra';
|
|
19
18
|
import path from 'node:path';
|
|
19
|
+
import 'crypto';
|
|
20
|
+
import 'url';
|
|
20
21
|
import 'dotenv';
|
|
21
22
|
import './chunks/loader-CE4HSRN4.mjs';
|
|
22
23
|
import 'package-directory';
|
|
23
24
|
import 'yaml';
|
|
24
|
-
import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
25
25
|
import 'execa';
|
|
26
26
|
import './chunks/helpConfig-CGejgwWW.mjs';
|
|
27
|
-
import './chunks/resolveCliOptions-
|
|
27
|
+
import './chunks/resolveCliOptions-7MwNdHqz.mjs';
|
|
28
28
|
import './chunks/validate-CDl0rE6k.mjs';
|
|
29
29
|
import './plugins-aws.mjs';
|
|
30
|
-
import './chunks/index-
|
|
30
|
+
import './chunks/index-CDPFly99.mjs';
|
|
31
31
|
import 'buffer';
|
|
32
32
|
import 'os';
|
|
33
33
|
import 'node:fs/promises';
|
|
@@ -63,6 +63,33 @@ const applyIncludeExclude = (env, { include, exclude, }) => {
|
|
|
63
63
|
return out;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Assert that a value is a non-empty string.
|
|
68
|
+
*
|
|
69
|
+
* @param v - Value to check.
|
|
70
|
+
* @param msg - Error message to throw if check fails.
|
|
71
|
+
*/
|
|
72
|
+
const requireString = (v, msg) => {
|
|
73
|
+
if (typeof v !== 'string' || !v)
|
|
74
|
+
throw new Error(msg);
|
|
75
|
+
return v;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Assert that the byte length of a value (stringified) does not exceed a limit.
|
|
79
|
+
*
|
|
80
|
+
* @param value - Value to measure (strings used as-is; others JSON-stringified).
|
|
81
|
+
* @param limit - Maximum allowed byte length.
|
|
82
|
+
* @param errorMsg - Error message string or generator function.
|
|
83
|
+
*/
|
|
84
|
+
const assertByteLimit = (value, limit, errorMsg) => {
|
|
85
|
+
const s = typeof value === 'string' ? value : JSON.stringify(value);
|
|
86
|
+
const bytes = Buffer.byteLength(s, 'utf8');
|
|
87
|
+
if (bytes > limit) {
|
|
88
|
+
const msg = typeof errorMsg === 'function' ? errorMsg(value, limit) : errorMsg;
|
|
89
|
+
throw new Error(msg);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
66
93
|
/**
|
|
67
94
|
* Dotenv editor types (format-preserving).
|
|
68
95
|
*
|
|
@@ -799,6 +826,69 @@ async function editDotenvFile(updates, options) {
|
|
|
799
826
|
return { path: resolved.targetPath, createdFromTemplate, changed };
|
|
800
827
|
}
|
|
801
828
|
|
|
829
|
+
/**
|
|
830
|
+
* A silent logger that implements the Logger interface but performs no operations.
|
|
831
|
+
*/
|
|
832
|
+
const silentLogger = {
|
|
833
|
+
debug: () => { },
|
|
834
|
+
info: () => { },
|
|
835
|
+
warn: () => { },
|
|
836
|
+
error: () => { },
|
|
837
|
+
log: () => { },
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* Parse a value into a number or undefined.
|
|
842
|
+
*
|
|
843
|
+
* @param v - Value to parse.
|
|
844
|
+
* @returns The parsed number, or undefined if the input was undefined or empty string.
|
|
845
|
+
*/
|
|
846
|
+
const toNumber = (v) => {
|
|
847
|
+
if (typeof v === 'undefined')
|
|
848
|
+
return;
|
|
849
|
+
if (typeof v === 'number')
|
|
850
|
+
return v;
|
|
851
|
+
if (typeof v === 'string' && v.trim())
|
|
852
|
+
return Number(v);
|
|
853
|
+
return;
|
|
854
|
+
};
|
|
855
|
+
/**
|
|
856
|
+
* Build a Commander option parser that coerces a raw string to a finite number.
|
|
857
|
+
*
|
|
858
|
+
* @param label - Label used in error messages (e.g. `"port"`).
|
|
859
|
+
* @returns Parser suitable for Commander `.option(..., parser)`.
|
|
860
|
+
*/
|
|
861
|
+
const parseFiniteNumber = (label) => (raw) => {
|
|
862
|
+
const n = Number(raw);
|
|
863
|
+
if (!Number.isFinite(n))
|
|
864
|
+
throw new InvalidArgumentError(`${label} must be a number`);
|
|
865
|
+
return n;
|
|
866
|
+
};
|
|
867
|
+
/**
|
|
868
|
+
* Build a Commander option parser that coerces a raw string to a positive integer.
|
|
869
|
+
*
|
|
870
|
+
* @param label - Label used in error messages (e.g. `"maxSeconds"`).
|
|
871
|
+
* @returns Parser suitable for Commander `.option(..., parser)`.
|
|
872
|
+
*/
|
|
873
|
+
const parsePositiveInt = (label) => (raw) => {
|
|
874
|
+
const n = parseFiniteNumber(label)(raw);
|
|
875
|
+
if (!Number.isInteger(n) || n <= 0)
|
|
876
|
+
throw new InvalidArgumentError(`${label} must be a positive integer`);
|
|
877
|
+
return n;
|
|
878
|
+
};
|
|
879
|
+
/**
|
|
880
|
+
* Build a Commander option parser that coerces a raw string to a non-negative integer.
|
|
881
|
+
*
|
|
882
|
+
* @param label - Label used in error messages (e.g. `"limit"`).
|
|
883
|
+
* @returns Parser suitable for Commander `.option(..., parser)`.
|
|
884
|
+
*/
|
|
885
|
+
const parseNonNegativeInt = (label) => (raw) => {
|
|
886
|
+
const n = parseFiniteNumber(label)(raw);
|
|
887
|
+
if (!Number.isInteger(n) || n < 0)
|
|
888
|
+
throw new InvalidArgumentError(`${label} must be a non-negative integer`);
|
|
889
|
+
return n;
|
|
890
|
+
};
|
|
891
|
+
|
|
802
892
|
async function getDotenv(options = {}) {
|
|
803
893
|
// Apply defaults.
|
|
804
894
|
const { defaultEnv, dotenvToken = '.env', dynamicPath, env, excludeDynamic = false, excludeEnv = false, excludeGlobal = false, excludePrivate = false, excludePublic = false, loadProcess = false, log = false, logger = console, outputPath, paths = [], privateToken = 'local', vars = {}, } = await resolveGetDotenvOptions(options);
|
|
@@ -907,4 +997,4 @@ async function getDotenv(options = {}) {
|
|
|
907
997
|
return resultDotenv;
|
|
908
998
|
}
|
|
909
999
|
|
|
910
|
-
export { applyDotenvEdits, applyIncludeExclude, dotenvExpandAll, editDotenvFile, editDotenvText, getDotenv, maybeWarnEntropy, parseDotenvDocument, redactObject, renderDotenvDocument };
|
|
1000
|
+
export { applyDotenvEdits, applyIncludeExclude, assertByteLimit, dotenvExpandAll, editDotenvFile, editDotenvText, getDotenv, maybeWarnEntropy, parseDotenvDocument, parseFiniteNumber, parseNonNegativeInt, parsePositiveInt, redactObject, renderDotenvDocument, requireString, silentLogger, toNumber, writeDotenvFile };
|
package/dist/plugins-aws.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as readMergedOptions, d as definePlugin } from './chunks/readMergedOptions-
|
|
1
|
+
import { r as readMergedOptions, d as definePlugin } from './chunks/readMergedOptions-uWSetyes.mjs';
|
|
2
2
|
import 'execa';
|
|
3
3
|
import { isObject } from 'radash';
|
|
4
4
|
import 'node:buffer';
|
|
@@ -15,7 +15,7 @@ import 'package-directory';
|
|
|
15
15
|
import 'yaml';
|
|
16
16
|
import { z } from 'zod';
|
|
17
17
|
import { r as runCommand, a as runCommandResult, s as shouldCapture, c as resolveShell, d as buildSpawnEnv } from './chunks/spawnEnv-5kdIVv0x.mjs';
|
|
18
|
-
import './chunks/readDotenvCascade-
|
|
18
|
+
import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
19
19
|
import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
20
20
|
|
|
21
21
|
/**
|
package/dist/plugins-batch.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as readMergedOptions, d as definePlugin } from './chunks/readMergedOptions-
|
|
1
|
+
import { r as readMergedOptions, d as definePlugin } from './chunks/readMergedOptions-uWSetyes.mjs';
|
|
2
2
|
import 'execa';
|
|
3
3
|
import 'radash';
|
|
4
4
|
import 'node:buffer';
|
|
@@ -17,7 +17,7 @@ import { z } from 'zod';
|
|
|
17
17
|
import { c as composeNestedEnv, m as maybePreserveNodeEvalArgv } from './chunks/invoke-DuRPU1oC.mjs';
|
|
18
18
|
import { r as runCommand, d as buildSpawnEnv, c as resolveShell, b as resolveCommand } from './chunks/spawnEnv-5kdIVv0x.mjs';
|
|
19
19
|
import { globby } from 'globby';
|
|
20
|
-
import './chunks/readDotenvCascade-
|
|
20
|
+
import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
21
21
|
import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
22
22
|
|
|
23
23
|
const globPaths = async ({ globs, logger, pkgCwd, rootPath, }) => {
|
package/dist/plugins-cmd.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'radash';
|
|
2
|
-
import './chunks/readMergedOptions-
|
|
2
|
+
import './chunks/readMergedOptions-uWSetyes.mjs';
|
|
3
3
|
import 'execa';
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
import 'fs-extra';
|
|
@@ -14,9 +14,9 @@ import './chunks/loader-CE4HSRN4.mjs';
|
|
|
14
14
|
import 'package-directory';
|
|
15
15
|
import 'yaml';
|
|
16
16
|
import 'zod';
|
|
17
|
-
export { c as cmdPlugin } from './chunks/index-
|
|
18
|
-
import './chunks/readDotenvCascade-
|
|
17
|
+
export { c as cmdPlugin } from './chunks/index-Cg50N4ys.mjs';
|
|
18
|
+
import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
19
19
|
import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
20
20
|
import './chunks/spawnEnv-5kdIVv0x.mjs';
|
|
21
21
|
import './chunks/invoke-DuRPU1oC.mjs';
|
|
22
|
-
import './chunks/resolveCliOptions-
|
|
22
|
+
import './chunks/resolveCliOptions-7MwNdHqz.mjs';
|
package/dist/plugins-init.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as readMergedOptions, d as definePlugin } from './chunks/readMergedOptions-
|
|
1
|
+
import { r as readMergedOptions, d as definePlugin } from './chunks/readMergedOptions-uWSetyes.mjs';
|
|
2
2
|
import 'execa';
|
|
3
3
|
import 'radash';
|
|
4
4
|
import 'node:buffer';
|
|
@@ -17,7 +17,7 @@ import 'zod';
|
|
|
17
17
|
import { stdin, stdout } from 'node:process';
|
|
18
18
|
import { createInterface } from 'readline/promises';
|
|
19
19
|
import { fileURLToPath } from 'node:url';
|
|
20
|
-
import './chunks/readDotenvCascade-
|
|
20
|
+
import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
21
21
|
import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
22
22
|
|
|
23
23
|
/**
|
package/dist/plugins.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { awsPlugin, getAwsRegion } from './plugins-aws.mjs';
|
|
2
|
-
export { a as awsWhoamiPlugin } from './chunks/index-
|
|
2
|
+
export { a as awsWhoamiPlugin } from './chunks/index-CDPFly99.mjs';
|
|
3
3
|
export { batchPlugin } from './plugins-batch.mjs';
|
|
4
|
-
export { c as cmdPlugin } from './chunks/index-
|
|
4
|
+
export { c as cmdPlugin } from './chunks/index-Cg50N4ys.mjs';
|
|
5
5
|
export { initPlugin } from './plugins-init.mjs';
|
|
6
|
-
import './chunks/readMergedOptions-
|
|
6
|
+
import './chunks/readMergedOptions-uWSetyes.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '@commander-js/extra-typings';
|
|
9
|
-
import './chunks/readDotenvCascade-
|
|
9
|
+
import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
|
|
10
10
|
import 'fs-extra';
|
|
11
11
|
import 'radash';
|
|
12
12
|
import 'node:buffer';
|
|
@@ -32,7 +32,7 @@ import 'process';
|
|
|
32
32
|
import 'node:fs';
|
|
33
33
|
import './chunks/invoke-DuRPU1oC.mjs';
|
|
34
34
|
import 'globby';
|
|
35
|
-
import './chunks/resolveCliOptions-
|
|
35
|
+
import './chunks/resolveCliOptions-7MwNdHqz.mjs';
|
|
36
36
|
import 'node:process';
|
|
37
37
|
import 'readline/promises';
|
|
38
38
|
import 'node:url';
|
package/package.json
CHANGED