@stacksjs/buddy 0.63.0 → 0.63.1
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-2748xrng.js +9 -0
- package/dist/{chunk-afhgv4v9.js.map → chunk-2748xrng.js.map} +2 -2
- package/dist/chunk-3wdxw25z.js +5 -0
- package/dist/{chunk-582dnm6a.js.map → chunk-3wdxw25z.js.map} +2 -2
- package/dist/chunk-9ttt4yty.js +4 -0
- package/dist/{chunk-zzerxbrm.js.map → chunk-9ttt4yty.js.map} +2 -2
- package/dist/chunk-dz31tp6c.js +5 -0
- package/dist/{chunk-1f1xhs02.js.map → chunk-dz31tp6c.js.map} +2 -2
- package/dist/chunk-fwrsbrgr.js +6 -0
- package/dist/{chunk-q2vnqdcs.js.map → chunk-fwrsbrgr.js.map} +5 -5
- package/dist/chunk-g0xhj6ac.js +5 -0
- package/dist/{chunk-mmbfc5ft.js.map → chunk-g0xhj6ac.js.map} +2 -2
- package/dist/chunk-g8thtxy5.js +5 -0
- package/dist/{chunk-yrsms9d2.js.map → chunk-g8thtxy5.js.map} +2 -2
- package/dist/chunk-hk94zddp.js +5 -0
- package/dist/{chunk-8217wvpy.js.map → chunk-hk94zddp.js.map} +2 -2
- package/dist/chunk-hmytd9bw.js +7 -0
- package/dist/{chunk-8420n19j.js.map → chunk-hmytd9bw.js.map} +2 -2
- package/dist/chunk-macwp29m.js +5 -0
- package/dist/{chunk-as72s87r.js.map → chunk-macwp29m.js.map} +2 -2
- package/dist/chunk-qvwfj0bg.js +5 -0
- package/dist/{chunk-03ckp0m6.js.map → chunk-qvwfj0bg.js.map} +2 -2
- package/dist/chunk-sn67bbgd.js +5 -0
- package/dist/{chunk-nr24kzd1.js.map → chunk-sn67bbgd.js.map} +2 -2
- package/dist/chunk-t53j9hjg.js +5 -0
- package/dist/{chunk-xhsvfzz8.js.map → chunk-t53j9hjg.js.map} +2 -2
- package/dist/chunk-thgep359.js +21 -0
- package/dist/{chunk-tegm7yex.js.map → chunk-thgep359.js.map} +4 -5
- package/dist/chunk-vff2axxn.js +5 -0
- package/dist/{chunk-7jmyxm7k.js.map → chunk-vff2axxn.js.map} +2 -2
- package/dist/chunk-wmwqxvdd.js +5 -0
- package/dist/{chunk-cnvp47g4.js.map → chunk-wmwqxvdd.js.map} +1 -1
- package/dist/chunk-yevqw8gq.js +12 -0
- package/dist/{chunk-qx96ff3m.js.map → chunk-yevqw8gq.js.map} +2 -2
- package/dist/chunk-ypq6q9tr.js +4 -0
- package/dist/{chunk-sc3etgb7.js.map → chunk-ypq6q9tr.js.map} +2 -2
- package/dist/chunk-z9166d8b.js +5 -0
- package/dist/{chunk-6pac0yn5.js.map → chunk-z9166d8b.js.map} +2 -2
- package/dist/chunk-zkm6377r.js +5 -0
- package/dist/{chunk-rt463pw6.js.map → chunk-zkm6377r.js.map} +2 -2
- package/dist/cli.js +2 -126
- package/dist/cli.js.map +2 -2
- package/dist/index.js +2 -84
- package/dist/index.js.map +1 -1
- package/dist/stacks +0 -0
- package/package.json +1 -46
- package/dist/chunk-03ckp0m6.js +0 -1222
- package/dist/chunk-1f1xhs02.js +0 -2223
- package/dist/chunk-582dnm6a.js +0 -664
- package/dist/chunk-6pac0yn5.js +0 -126
- package/dist/chunk-7jmyxm7k.js +0 -85
- package/dist/chunk-8217wvpy.js +0 -108
- package/dist/chunk-8420n19j.js +0 -7417
- package/dist/chunk-afhgv4v9.js +0 -164
- package/dist/chunk-as72s87r.js +0 -61
- package/dist/chunk-cnvp47g4.js +0 -22
- package/dist/chunk-mmbfc5ft.js +0 -287
- package/dist/chunk-nr24kzd1.js +0 -178
- package/dist/chunk-q2vnqdcs.js +0 -1696
- package/dist/chunk-qx96ff3m.js +0 -95
- package/dist/chunk-rt463pw6.js +0 -46
- package/dist/chunk-sc3etgb7.js +0 -208
- package/dist/chunk-tegm7yex.js +0 -10767
- package/dist/chunk-xhsvfzz8.js +0 -381
- package/dist/chunk-yrsms9d2.js +0 -1746
- package/dist/chunk-zzerxbrm.js +0 -110
package/dist/chunk-nr24kzd1.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-cnvp47g4.js";
|
|
3
|
-
import"./chunk-6pac0yn5.js";
|
|
4
|
-
import {
|
|
5
|
-
CredentialsProviderError,
|
|
6
|
-
chain
|
|
7
|
-
} from "./chunk-zzerxbrm.js";
|
|
8
|
-
import {
|
|
9
|
-
getProfileName,
|
|
10
|
-
parseKnownFiles
|
|
11
|
-
} from "./chunk-sc3etgb7.js";
|
|
12
|
-
|
|
13
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
14
|
-
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
15
|
-
const sourceProvidersMap = {
|
|
16
|
-
EcsContainer: async (options) => {
|
|
17
|
-
const { fromHttp } = await import("./chunk-afhgv4v9.js");
|
|
18
|
-
const { fromContainerMetadata } = await import("./chunk-xhsvfzz8.js");
|
|
19
|
-
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
20
|
-
return chain(fromHttp(options ?? {}), fromContainerMetadata(options));
|
|
21
|
-
},
|
|
22
|
-
Ec2InstanceMetadata: async (options) => {
|
|
23
|
-
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
24
|
-
const { fromInstanceMetadata } = await import("./chunk-xhsvfzz8.js");
|
|
25
|
-
return fromInstanceMetadata(options);
|
|
26
|
-
},
|
|
27
|
-
Environment: async (options) => {
|
|
28
|
-
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
29
|
-
const { fromEnv } = await import("./chunk-rt463pw6.js");
|
|
30
|
-
return fromEnv(options);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
if (credentialSource in sourceProvidersMap) {
|
|
34
|
-
return sourceProvidersMap[credentialSource];
|
|
35
|
-
} else {
|
|
36
|
-
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
41
|
-
var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
42
|
-
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
|
|
43
|
-
};
|
|
44
|
-
var isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
|
|
45
|
-
const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
|
|
46
|
-
if (withSourceProfile) {
|
|
47
|
-
logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
|
|
48
|
-
}
|
|
49
|
-
return withSourceProfile;
|
|
50
|
-
};
|
|
51
|
-
var isCredentialSourceProfile = (arg, { profile, logger }) => {
|
|
52
|
-
const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
|
|
53
|
-
if (withProviderProfile) {
|
|
54
|
-
logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
|
|
55
|
-
}
|
|
56
|
-
return withProviderProfile;
|
|
57
|
-
};
|
|
58
|
-
var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
|
|
59
|
-
options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
|
|
60
|
-
const data = profiles[profileName];
|
|
61
|
-
if (!options.roleAssumer) {
|
|
62
|
-
const { getDefaultRoleAssumer } = await import("./chunk-yrsms9d2.js");
|
|
63
|
-
options.roleAssumer = getDefaultRoleAssumer({
|
|
64
|
-
...options.clientConfig,
|
|
65
|
-
credentialProviderLogger: options.logger,
|
|
66
|
-
parentClientConfig: options?.parentClientConfig
|
|
67
|
-
}, options.clientPlugins);
|
|
68
|
-
}
|
|
69
|
-
const { source_profile } = data;
|
|
70
|
-
if (source_profile && source_profile in visitedProfiles) {
|
|
71
|
-
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
|
|
72
|
-
}
|
|
73
|
-
options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
74
|
-
const sourceCredsProvider = source_profile ? resolveProfileData2(source_profile, {
|
|
75
|
-
...profiles,
|
|
76
|
-
[source_profile]: {
|
|
77
|
-
...profiles[source_profile],
|
|
78
|
-
role_arn: data.role_arn ?? profiles[source_profile].role_arn
|
|
79
|
-
}
|
|
80
|
-
}, options, {
|
|
81
|
-
...visitedProfiles,
|
|
82
|
-
[source_profile]: true
|
|
83
|
-
}) : (await resolveCredentialSource(data.credential_source, profileName, options.logger)(options))();
|
|
84
|
-
const params = {
|
|
85
|
-
RoleArn: data.role_arn,
|
|
86
|
-
RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
|
|
87
|
-
ExternalId: data.external_id,
|
|
88
|
-
DurationSeconds: parseInt(data.duration_seconds || "3600", 10)
|
|
89
|
-
};
|
|
90
|
-
const { mfa_serial } = data;
|
|
91
|
-
if (mfa_serial) {
|
|
92
|
-
if (!options.mfaCodeProvider) {
|
|
93
|
-
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
|
|
94
|
-
}
|
|
95
|
-
params.SerialNumber = mfa_serial;
|
|
96
|
-
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
|
97
|
-
}
|
|
98
|
-
const sourceCreds = await sourceCredsProvider;
|
|
99
|
-
return options.roleAssumer(sourceCreds, params);
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
103
|
-
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
104
|
-
var resolveProcessCredentials = async (options, profile) => import("./chunk-7jmyxm7k.js").then(({ fromProcess }) => fromProcess({
|
|
105
|
-
...options,
|
|
106
|
-
profile
|
|
107
|
-
})());
|
|
108
|
-
|
|
109
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
110
|
-
var resolveSsoCredentials = async (profile, options = {}) => {
|
|
111
|
-
const { fromSSO } = await import("./chunk-mmbfc5ft.js");
|
|
112
|
-
return fromSSO({
|
|
113
|
-
profile,
|
|
114
|
-
logger: options.logger
|
|
115
|
-
})();
|
|
116
|
-
};
|
|
117
|
-
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
118
|
-
|
|
119
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
120
|
-
var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1;
|
|
121
|
-
var resolveStaticCredentials = (profile, options) => {
|
|
122
|
-
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
123
|
-
return Promise.resolve({
|
|
124
|
-
accessKeyId: profile.aws_access_key_id,
|
|
125
|
-
secretAccessKey: profile.aws_secret_access_key,
|
|
126
|
-
sessionToken: profile.aws_session_token,
|
|
127
|
-
...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
|
|
128
|
-
...profile.aws_account_id && { accountId: profile.aws_account_id }
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
133
|
-
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
134
|
-
var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-as72s87r.js").then(({ fromTokenFile }) => fromTokenFile({
|
|
135
|
-
webIdentityTokenFile: profile.web_identity_token_file,
|
|
136
|
-
roleArn: profile.role_arn,
|
|
137
|
-
roleSessionName: profile.role_session_name,
|
|
138
|
-
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
|
139
|
-
logger: options.logger,
|
|
140
|
-
parentClientConfig: options.parentClientConfig
|
|
141
|
-
})());
|
|
142
|
-
|
|
143
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
144
|
-
var resolveProfileData2 = async (profileName, profiles, options, visitedProfiles = {}) => {
|
|
145
|
-
const data = profiles[profileName];
|
|
146
|
-
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
147
|
-
return resolveStaticCredentials(data, options);
|
|
148
|
-
}
|
|
149
|
-
if (isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {
|
|
150
|
-
return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
|
|
151
|
-
}
|
|
152
|
-
if (isStaticCredsProfile(data)) {
|
|
153
|
-
return resolveStaticCredentials(data, options);
|
|
154
|
-
}
|
|
155
|
-
if (isWebIdentityProfile(data)) {
|
|
156
|
-
return resolveWebIdentityCredentials(data, options);
|
|
157
|
-
}
|
|
158
|
-
if (isProcessProfile(data)) {
|
|
159
|
-
return resolveProcessCredentials(options, profileName);
|
|
160
|
-
}
|
|
161
|
-
if (isSsoProfile(data)) {
|
|
162
|
-
return await resolveSsoCredentials(profileName, options);
|
|
163
|
-
}
|
|
164
|
-
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
168
|
-
var fromIni = (init = {}) => async () => {
|
|
169
|
-
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
170
|
-
const profiles = await parseKnownFiles(init);
|
|
171
|
-
return resolveProfileData2(getProfileName(init), profiles, init);
|
|
172
|
-
};
|
|
173
|
-
export {
|
|
174
|
-
fromIni
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
//# debugId=E78AF9A2A266CA6964756E2164756E21
|
|
178
|
-
//# sourceMappingURL=chunk-nr24kzd1.js.map
|