@karmaniverous/get-dotenv 7.0.1 → 7.0.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-DeiE3wkO.mjs → AwsRestJsonProtocol-Bh3OvjNM.mjs} +158 -81
- package/dist/chunks/{createCli-B9-MIwWj.mjs → createCli-wmAcTdWR.mjs} +4 -4
- package/dist/chunks/{externalDataInterceptor-gi2RH4ez.mjs → externalDataInterceptor-BBvsYwZE.mjs} +2 -2
- package/dist/chunks/{getSSOTokenFromFile-BfAhZf_d.mjs → getSSOTokenFromFile-BSeYpbLi.mjs} +4 -4
- package/dist/chunks/{index-98yxYe1W.mjs → index-BZrYAvLs.mjs} +281 -205
- package/dist/chunks/{index-CAtxK29A.mjs → index-BhMXFr37.mjs} +12 -9
- package/dist/chunks/{index-DY7wYcXW.mjs → index-C-9h7h7x.mjs} +14 -17
- package/dist/chunks/{index-AssUn9IY.mjs → index-CGG9e0xu.mjs} +11157 -8059
- package/dist/chunks/{index-CMSCF_uw.mjs → index-CQoEnkSc.mjs} +493 -254
- package/dist/chunks/{index-xRi3oKvY.mjs → index-CnnI9zSQ.mjs} +10 -12
- package/dist/chunks/{index-D8S1lJ24.mjs → index-DLciMnJ6.mjs} +271 -181
- package/dist/chunks/{index-B6r8O7PJ.mjs → index-DmynYewb.mjs} +14 -17
- package/dist/chunks/{index-C21RHLO4.mjs → index-DyRIwYWf.mjs} +33 -18
- package/dist/chunks/{index-mPj0Vhpw.mjs → index-GcL_Hrrr.mjs} +13 -15
- package/dist/chunks/{index-DfvhftMN.mjs → index-aUz_8rS_.mjs} +29 -28
- package/dist/chunks/index-cIL2r09o.mjs +31 -0
- package/dist/chunks/{index-Ccay5Db0.mjs → index-tlD9zcww.mjs} +16 -19
- package/dist/chunks/{loadSso-C-y9gQEz.mjs → loadSso-9hx2nl0k.mjs} +242 -180
- package/dist/chunks/{package-DiDNabNr.mjs → package-DbbYaehr.mjs} +1 -1
- package/dist/chunks/{parseKnownFiles-KczcjlE0.mjs → parseKnownFiles-CewXrtbo.mjs} +1 -1
- package/dist/chunks/{readDotenvCascade-HLU7FsEQ.mjs → readDotenvCascade-Dgx4SC1p.mjs} +3 -7
- package/dist/chunks/{readMergedOptions-D6niy_Ep.mjs → readMergedOptions-atT1xkoe.mjs} +5 -3
- package/dist/chunks/{resolveCliOptions-PWF1aEM9.mjs → resolveCliOptions-BLSqCGm7.mjs} +1 -1
- package/dist/chunks/{sdk-stream-mixin-blFikF4G.mjs → sdk-stream-mixin-CMdQ7nO8.mjs} +145 -5
- package/dist/chunks/{spawnEnv-5kdIVv0x.mjs → spawnEnv-CKgnHGpr.mjs} +5 -5
- package/dist/chunks/{types-Bp3u5-IH.mjs → types-BdKCfPRW.mjs} +1 -1
- package/dist/cli.mjs +12 -14
- package/dist/cliHost.mjs +5 -5
- package/dist/env-overlay.mjs +2 -2
- package/dist/getdotenv.cli.mjs +12 -14
- package/dist/index.mjs +16 -18
- package/dist/plugins-aws.mjs +3 -3
- package/dist/plugins-batch.mjs +3 -3
- package/dist/plugins-cmd.mjs +5 -5
- package/dist/plugins-init.mjs +4 -4
- package/dist/plugins.mjs +11 -13
- package/package.json +1 -1
- package/dist/chunks/index-DtdHVcXz.mjs +0 -27
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
1
|
+
import { J as ProviderError, I as IniSectionType, C as CONFIG_PREFIX_SEPARATOR, aB as readFile, ab as getConfigFilepath, aw as parseIni, al as getProfileName, e as CredentialsProviderError, aO as setCredentialFeature } from './index-CGG9e0xu.mjs';
|
|
2
|
+
import { promises } from 'node:fs';
|
|
3
|
+
import { g as getSSOTokenFilepath, a as getSSOTokenFromFile } from './getSSOTokenFromFile-BSeYpbLi.mjs';
|
|
4
|
+
import { p as parseKnownFiles } from './parseKnownFiles-CewXrtbo.mjs';
|
|
5
|
+
import './readMergedOptions-atT1xkoe.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@commander-js/extra-typings';
|
|
8
|
-
import './readDotenvCascade-
|
|
8
|
+
import './readDotenvCascade-Dgx4SC1p.mjs';
|
|
9
9
|
import 'fs-extra';
|
|
10
10
|
import 'radash';
|
|
11
11
|
import 'node:buffer';
|
|
@@ -20,15 +20,12 @@ import './loader-CE4HSRN4.mjs';
|
|
|
20
20
|
import 'package-directory';
|
|
21
21
|
import 'yaml';
|
|
22
22
|
import 'execa';
|
|
23
|
-
import '
|
|
24
|
-
import 'os';
|
|
23
|
+
import 'node:os';
|
|
25
24
|
import 'node:fs/promises';
|
|
26
|
-
import '
|
|
27
|
-
import '
|
|
28
|
-
import '
|
|
29
|
-
import 'process';
|
|
30
|
-
import 'node:fs';
|
|
31
|
-
import 'fs/promises';
|
|
25
|
+
import 'node:stream';
|
|
26
|
+
import 'node:crypto';
|
|
27
|
+
import 'node:https';
|
|
28
|
+
import 'node:process';
|
|
32
29
|
|
|
33
30
|
class TokenProviderError extends ProviderError {
|
|
34
31
|
name = "TokenProviderError";
|
|
@@ -59,7 +56,7 @@ const EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
|
59
56
|
const REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
60
57
|
|
|
61
58
|
const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
62
|
-
const { SSOOIDCClient } = await import('./index-
|
|
59
|
+
const { SSOOIDCClient } = await import('./index-BZrYAvLs.mjs');
|
|
63
60
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
64
61
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
65
62
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
@@ -70,7 +67,7 @@ const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
|
70
67
|
};
|
|
71
68
|
|
|
72
69
|
const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
73
|
-
const { CreateTokenCommand } = await import('./index-
|
|
70
|
+
const { CreateTokenCommand } = await import('./index-BZrYAvLs.mjs');
|
|
74
71
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
75
72
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
76
73
|
clientId: ssoToken.clientId,
|
|
@@ -216,7 +213,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
216
213
|
});
|
|
217
214
|
}
|
|
218
215
|
const { accessToken } = token;
|
|
219
|
-
const { SSOClient, GetRoleCredentialsCommand } = await import('./loadSso-
|
|
216
|
+
const { SSOClient, GetRoleCredentialsCommand } = await import('./loadSso-9hx2nl0k.mjs');
|
|
220
217
|
const sso = ssoClient ||
|
|
221
218
|
new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
222
219
|
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
|