@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.
Files changed (66) hide show
  1. package/dist/chunk-2748xrng.js +9 -0
  2. package/dist/{chunk-afhgv4v9.js.map → chunk-2748xrng.js.map} +2 -2
  3. package/dist/chunk-3wdxw25z.js +5 -0
  4. package/dist/{chunk-582dnm6a.js.map → chunk-3wdxw25z.js.map} +2 -2
  5. package/dist/chunk-9ttt4yty.js +4 -0
  6. package/dist/{chunk-zzerxbrm.js.map → chunk-9ttt4yty.js.map} +2 -2
  7. package/dist/chunk-dz31tp6c.js +5 -0
  8. package/dist/{chunk-1f1xhs02.js.map → chunk-dz31tp6c.js.map} +2 -2
  9. package/dist/chunk-fwrsbrgr.js +6 -0
  10. package/dist/{chunk-q2vnqdcs.js.map → chunk-fwrsbrgr.js.map} +5 -5
  11. package/dist/chunk-g0xhj6ac.js +5 -0
  12. package/dist/{chunk-mmbfc5ft.js.map → chunk-g0xhj6ac.js.map} +2 -2
  13. package/dist/chunk-g8thtxy5.js +5 -0
  14. package/dist/{chunk-yrsms9d2.js.map → chunk-g8thtxy5.js.map} +2 -2
  15. package/dist/chunk-hk94zddp.js +5 -0
  16. package/dist/{chunk-8217wvpy.js.map → chunk-hk94zddp.js.map} +2 -2
  17. package/dist/chunk-hmytd9bw.js +7 -0
  18. package/dist/{chunk-8420n19j.js.map → chunk-hmytd9bw.js.map} +2 -2
  19. package/dist/chunk-macwp29m.js +5 -0
  20. package/dist/{chunk-as72s87r.js.map → chunk-macwp29m.js.map} +2 -2
  21. package/dist/chunk-qvwfj0bg.js +5 -0
  22. package/dist/{chunk-03ckp0m6.js.map → chunk-qvwfj0bg.js.map} +2 -2
  23. package/dist/chunk-sn67bbgd.js +5 -0
  24. package/dist/{chunk-nr24kzd1.js.map → chunk-sn67bbgd.js.map} +2 -2
  25. package/dist/chunk-t53j9hjg.js +5 -0
  26. package/dist/{chunk-xhsvfzz8.js.map → chunk-t53j9hjg.js.map} +2 -2
  27. package/dist/chunk-thgep359.js +21 -0
  28. package/dist/{chunk-tegm7yex.js.map → chunk-thgep359.js.map} +4 -5
  29. package/dist/chunk-vff2axxn.js +5 -0
  30. package/dist/{chunk-7jmyxm7k.js.map → chunk-vff2axxn.js.map} +2 -2
  31. package/dist/chunk-wmwqxvdd.js +5 -0
  32. package/dist/{chunk-cnvp47g4.js.map → chunk-wmwqxvdd.js.map} +1 -1
  33. package/dist/chunk-yevqw8gq.js +12 -0
  34. package/dist/{chunk-qx96ff3m.js.map → chunk-yevqw8gq.js.map} +2 -2
  35. package/dist/chunk-ypq6q9tr.js +4 -0
  36. package/dist/{chunk-sc3etgb7.js.map → chunk-ypq6q9tr.js.map} +2 -2
  37. package/dist/chunk-z9166d8b.js +5 -0
  38. package/dist/{chunk-6pac0yn5.js.map → chunk-z9166d8b.js.map} +2 -2
  39. package/dist/chunk-zkm6377r.js +5 -0
  40. package/dist/{chunk-rt463pw6.js.map → chunk-zkm6377r.js.map} +2 -2
  41. package/dist/cli.js +2 -126
  42. package/dist/cli.js.map +2 -2
  43. package/dist/index.js +2 -84
  44. package/dist/index.js.map +1 -1
  45. package/dist/stacks +0 -0
  46. package/package.json +1 -46
  47. package/dist/chunk-03ckp0m6.js +0 -1222
  48. package/dist/chunk-1f1xhs02.js +0 -2223
  49. package/dist/chunk-582dnm6a.js +0 -664
  50. package/dist/chunk-6pac0yn5.js +0 -126
  51. package/dist/chunk-7jmyxm7k.js +0 -85
  52. package/dist/chunk-8217wvpy.js +0 -108
  53. package/dist/chunk-8420n19j.js +0 -7417
  54. package/dist/chunk-afhgv4v9.js +0 -164
  55. package/dist/chunk-as72s87r.js +0 -61
  56. package/dist/chunk-cnvp47g4.js +0 -22
  57. package/dist/chunk-mmbfc5ft.js +0 -287
  58. package/dist/chunk-nr24kzd1.js +0 -178
  59. package/dist/chunk-q2vnqdcs.js +0 -1696
  60. package/dist/chunk-qx96ff3m.js +0 -95
  61. package/dist/chunk-rt463pw6.js +0 -46
  62. package/dist/chunk-sc3etgb7.js +0 -208
  63. package/dist/chunk-tegm7yex.js +0 -10767
  64. package/dist/chunk-xhsvfzz8.js +0 -381
  65. package/dist/chunk-yrsms9d2.js +0 -1746
  66. package/dist/chunk-zzerxbrm.js +0 -110
@@ -1,95 +0,0 @@
1
- import {
2
- ENV_KEY,
3
- ENV_SECRET,
4
- fromEnv
5
- } from "./chunk-rt463pw6.js";
6
- import {
7
- CredentialsProviderError,
8
- chain,
9
- memoize
10
- } from "./chunk-zzerxbrm.js";
11
- import {
12
- ENV_PROFILE
13
- } from "./chunk-sc3etgb7.js";
14
-
15
- // ../../../../node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
16
- var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
17
- var remoteProvider = async (init) => {
18
- const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import("./chunk-xhsvfzz8.js");
19
- if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
20
- init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
21
- const { fromHttp } = await import("./chunk-afhgv4v9.js");
22
- return chain(fromHttp(init), fromContainerMetadata(init));
23
- }
24
- if (process.env[ENV_IMDS_DISABLED]) {
25
- return async () => {
26
- throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger });
27
- };
28
- }
29
- init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");
30
- return fromInstanceMetadata(init);
31
- };
32
-
33
- // ../../../../node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
34
- var multipleCredentialSourceWarningEmitted = false;
35
- var defaultProvider = (init = {}) => memoize(chain(async () => {
36
- const profile = init.profile ?? process.env[ENV_PROFILE];
37
- if (profile) {
38
- const envStaticCredentialsAreSet = process.env[ENV_KEY] && process.env[ENV_SECRET];
39
- if (envStaticCredentialsAreSet) {
40
- if (!multipleCredentialSourceWarningEmitted) {
41
- const warnFn = init.logger?.warn && init.logger?.constructor?.name !== "NoOpLogger" ? init.logger.warn : console.warn;
42
- warnFn(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
43
- Multiple credential sources detected:
44
- Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
45
- This SDK will proceed with the AWS_PROFILE value.
46
-
47
- However, a future version may change this behavior to prefer the ENV static credentials.
48
- Please ensure that your environment only sets either the AWS_PROFILE or the
49
- AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
50
- `);
51
- multipleCredentialSourceWarningEmitted = true;
52
- }
53
- }
54
- throw new CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
55
- logger: init.logger,
56
- tryNextLink: true
57
- });
58
- }
59
- init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");
60
- return fromEnv(init)();
61
- }, async () => {
62
- init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");
63
- const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
64
- if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
65
- throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
66
- }
67
- const { fromSSO } = await import("./chunk-mmbfc5ft.js");
68
- return fromSSO(init)();
69
- }, async () => {
70
- init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
71
- const { fromIni } = await import("./chunk-nr24kzd1.js");
72
- return fromIni(init)();
73
- }, async () => {
74
- init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
75
- const { fromProcess } = await import("./chunk-7jmyxm7k.js");
76
- return fromProcess(init)();
77
- }, async () => {
78
- init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
79
- const { fromTokenFile } = await import("./chunk-as72s87r.js");
80
- return fromTokenFile(init)();
81
- }, async () => {
82
- init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");
83
- return (await remoteProvider(init))();
84
- }, async () => {
85
- throw new CredentialsProviderError("Could not load credentials from any providers", {
86
- tryNextLink: false,
87
- logger: init.logger
88
- });
89
- }), credentialsTreatedAsExpired, credentialsWillNeedRefresh);
90
- var credentialsWillNeedRefresh = (credentials) => credentials?.expiration !== undefined;
91
- var credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
92
- export { defaultProvider };
93
-
94
- //# debugId=6C9DF0EF90F77F1964756E2164756E21
95
- //# sourceMappingURL=chunk-qx96ff3m.js.map
@@ -1,46 +0,0 @@
1
- // @bun
2
- import"./chunk-cnvp47g4.js";
3
- import {
4
- CredentialsProviderError
5
- } from "./chunk-zzerxbrm.js";
6
-
7
- // ../../../../node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
8
- var ENV_KEY = "AWS_ACCESS_KEY_ID";
9
- var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
10
- var ENV_SESSION = "AWS_SESSION_TOKEN";
11
- var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
12
- var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
13
- var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
14
- var fromEnv = (init) => async () => {
15
- init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
16
- const accessKeyId = process.env[ENV_KEY];
17
- const secretAccessKey = process.env[ENV_SECRET];
18
- const sessionToken = process.env[ENV_SESSION];
19
- const expiry = process.env[ENV_EXPIRATION];
20
- const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
21
- const accountId = process.env[ENV_ACCOUNT_ID];
22
- if (accessKeyId && secretAccessKey) {
23
- return {
24
- accessKeyId,
25
- secretAccessKey,
26
- ...sessionToken && { sessionToken },
27
- ...expiry && { expiration: new Date(expiry) },
28
- ...credentialScope && { credentialScope },
29
- ...accountId && { accountId }
30
- };
31
- }
32
- throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
33
- };
34
- export {
35
- fromEnv,
36
- ENV_SESSION,
37
- ENV_SECRET,
38
- ENV_KEY,
39
- ENV_EXPIRATION,
40
- ENV_CREDENTIAL_SCOPE,
41
- ENV_ACCOUNT_ID
42
- };
43
- export { ENV_KEY, ENV_SECRET, fromEnv };
44
-
45
- //# debugId=485F3DF1668F46AF64756E2164756E21
46
- //# sourceMappingURL=chunk-rt463pw6.js.map
@@ -1,208 +0,0 @@
1
- import {
2
- __toESM
3
- } from "./chunk-cnvp47g4.js";
4
- import {
5
- require_dist_cjs
6
- } from "./chunk-6pac0yn5.js";
7
-
8
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js
9
- var ENV_PROFILE = "AWS_PROFILE";
10
- var DEFAULT_PROFILE = "default";
11
- var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
12
-
13
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js
14
- import {join} from "path";
15
-
16
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js
17
- import {homedir} from "os";
18
- import {sep} from "path";
19
- var homeDirCache = {};
20
- var getHomeDirCacheKey = () => {
21
- if (process && process.geteuid) {
22
- return `${process.geteuid()}`;
23
- }
24
- return "DEFAULT";
25
- };
26
- var getHomeDir = () => {
27
- const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
28
- if (HOME)
29
- return HOME;
30
- if (USERPROFILE)
31
- return USERPROFILE;
32
- if (HOMEPATH)
33
- return `${HOMEDRIVE}${HOMEPATH}`;
34
- const homeDirCacheKey = getHomeDirCacheKey();
35
- if (!homeDirCache[homeDirCacheKey])
36
- homeDirCache[homeDirCacheKey] = homedir();
37
- return homeDirCache[homeDirCacheKey];
38
- };
39
-
40
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js
41
- var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
42
- var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
43
-
44
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js
45
- var types3 = __toESM(require_dist_cjs(), 1);
46
-
47
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
48
- import {join as join3} from "path";
49
-
50
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js
51
- var types = __toESM(require_dist_cjs(), 1);
52
- var getConfigData = (data) => Object.entries(data).filter(([key]) => {
53
- const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
54
- if (indexOfSeparator === -1) {
55
- return false;
56
- }
57
- return Object.values(types.IniSectionType).includes(key.substring(0, indexOfSeparator));
58
- }).reduce((acc, [key, value]) => {
59
- const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
60
- const updatedKey = key.substring(0, indexOfSeparator) === types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
61
- acc[updatedKey] = value;
62
- return acc;
63
- }, {
64
- ...data.default && { default: data.default }
65
- });
66
-
67
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js
68
- import {join as join2} from "path";
69
- var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
70
- var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
71
-
72
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js
73
- var types2 = __toESM(require_dist_cjs(), 1);
74
- var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
75
- var profileNameBlockList = ["__proto__", "profile __proto__"];
76
- var parseIni = (iniData) => {
77
- const map = {};
78
- let currentSection;
79
- let currentSubSection;
80
- for (const iniLine of iniData.split(/\r?\n/)) {
81
- const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
82
- const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
83
- if (isSection) {
84
- currentSection = undefined;
85
- currentSubSection = undefined;
86
- const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
87
- const matches = prefixKeyRegex.exec(sectionName);
88
- if (matches) {
89
- const [, prefix, , name] = matches;
90
- if (Object.values(types2.IniSectionType).includes(prefix)) {
91
- currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
92
- }
93
- } else {
94
- currentSection = sectionName;
95
- }
96
- if (profileNameBlockList.includes(sectionName)) {
97
- throw new Error(`Found invalid profile name "${sectionName}"`);
98
- }
99
- } else if (currentSection) {
100
- const indexOfEqualsSign = trimmedLine.indexOf("=");
101
- if (![0, -1].includes(indexOfEqualsSign)) {
102
- const [name, value] = [
103
- trimmedLine.substring(0, indexOfEqualsSign).trim(),
104
- trimmedLine.substring(indexOfEqualsSign + 1).trim()
105
- ];
106
- if (value === "") {
107
- currentSubSection = name;
108
- } else {
109
- if (currentSubSection && iniLine.trimStart() === iniLine) {
110
- currentSubSection = undefined;
111
- }
112
- map[currentSection] = map[currentSection] || {};
113
- const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
114
- map[currentSection][key] = value;
115
- }
116
- }
117
- }
118
- }
119
- return map;
120
- };
121
-
122
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js
123
- import {promises as fsPromises} from "fs";
124
- var { readFile } = fsPromises;
125
- var filePromisesHash = {};
126
- var slurpFile = (path, options) => {
127
- if (!filePromisesHash[path] || options?.ignoreCache) {
128
- filePromisesHash[path] = readFile(path, "utf8");
129
- }
130
- return filePromisesHash[path];
131
- };
132
-
133
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
134
- var swallowError = () => ({});
135
- var CONFIG_PREFIX_SEPARATOR = ".";
136
- var loadSharedConfigFiles3 = async (init = {}) => {
137
- const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
138
- const homeDir = getHomeDir();
139
- const relativeHomeDirPrefix = "~/";
140
- let resolvedFilepath = filepath;
141
- if (filepath.startsWith(relativeHomeDirPrefix)) {
142
- resolvedFilepath = join3(homeDir, filepath.slice(2));
143
- }
144
- let resolvedConfigFilepath = configFilepath;
145
- if (configFilepath.startsWith(relativeHomeDirPrefix)) {
146
- resolvedConfigFilepath = join3(homeDir, configFilepath.slice(2));
147
- }
148
- const parsedFiles = await Promise.all([
149
- slurpFile(resolvedConfigFilepath, {
150
- ignoreCache: init.ignoreCache
151
- }).then(parseIni).then(getConfigData).catch(swallowError),
152
- slurpFile(resolvedFilepath, {
153
- ignoreCache: init.ignoreCache
154
- }).then(parseIni).catch(swallowError)
155
- ]);
156
- return {
157
- configFile: parsedFiles[0],
158
- credentialsFile: parsedFiles[1]
159
- };
160
- };
161
-
162
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js
163
- var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(types3.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
164
-
165
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js
166
- var swallowError2 = () => ({});
167
- var loadSsoSessionData = async (init = {}) => slurpFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
168
-
169
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js
170
- var mergeConfigFiles = (...files) => {
171
- const merged = {};
172
- for (const file of files) {
173
- for (const [key, values] of Object.entries(file)) {
174
- if (merged[key] !== undefined) {
175
- Object.assign(merged[key], values);
176
- } else {
177
- merged[key] = values;
178
- }
179
- }
180
- }
181
- return merged;
182
- };
183
-
184
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js
185
- var parseKnownFiles = async (init) => {
186
- const parsedFiles = await loadSharedConfigFiles3(init);
187
- return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
188
- };
189
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
190
- import {createHash} from "crypto";
191
- import {join as join4} from "path";
192
- var getSSOTokenFilepath = (id) => {
193
- const hasher = createHash("sha1");
194
- const cacheName = hasher.update(id).digest("hex");
195
- return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
196
- };
197
- // ../../../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js
198
- import {promises as fsPromises2} from "fs";
199
- var { readFile: readFile2 } = fsPromises2;
200
- var getSSOTokenFromFile = async (id) => {
201
- const ssoTokenFilepath = getSSOTokenFilepath(id);
202
- const ssoTokenText = await readFile2(ssoTokenFilepath, "utf8");
203
- return JSON.parse(ssoTokenText);
204
- };
205
- export { ENV_PROFILE, getProfileName, getSSOTokenFilepath, getSSOTokenFromFile, CONFIG_PREFIX_SEPARATOR, loadSharedConfigFiles3 as loadSharedConfigFiles, loadSsoSessionData, parseKnownFiles };
206
-
207
- //# debugId=12990401520DF78D64756E2164756E21
208
- //# sourceMappingURL=chunk-sc3etgb7.js.map