@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,126 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-cnvp47g4.js";
4
-
5
- // ../../../../node_modules/@smithy/types/dist-cjs/index.js
6
- var require_dist_cjs = __commonJS((exports, module) => {
7
- var __defProp = Object.defineProperty;
8
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
- var __getOwnPropNames = Object.getOwnPropertyNames;
10
- var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
- var __export = (target, all) => {
13
- for (var name in all)
14
- __defProp(target, name, { get: all[name], enumerable: true });
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") {
18
- for (let key of __getOwnPropNames(from))
19
- if (!__hasOwnProp.call(to, key) && key !== except)
20
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
- }
22
- return to;
23
- };
24
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
- var src_exports = {};
26
- __export(src_exports, {
27
- AlgorithmId: () => AlgorithmId,
28
- EndpointURLScheme: () => EndpointURLScheme,
29
- FieldPosition: () => FieldPosition,
30
- HttpApiKeyAuthLocation: () => HttpApiKeyAuthLocation,
31
- HttpAuthLocation: () => HttpAuthLocation,
32
- IniSectionType: () => IniSectionType,
33
- RequestHandlerProtocol: () => RequestHandlerProtocol,
34
- SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY,
35
- getDefaultClientConfiguration: () => getDefaultClientConfiguration,
36
- resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig
37
- });
38
- module.exports = __toCommonJS(src_exports);
39
- var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => {
40
- HttpAuthLocation2["HEADER"] = "header";
41
- HttpAuthLocation2["QUERY"] = "query";
42
- return HttpAuthLocation2;
43
- })(HttpAuthLocation || {});
44
- var HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => {
45
- HttpApiKeyAuthLocation2["HEADER"] = "header";
46
- HttpApiKeyAuthLocation2["QUERY"] = "query";
47
- return HttpApiKeyAuthLocation2;
48
- })(HttpApiKeyAuthLocation || {});
49
- var EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => {
50
- EndpointURLScheme2["HTTP"] = "http";
51
- EndpointURLScheme2["HTTPS"] = "https";
52
- return EndpointURLScheme2;
53
- })(EndpointURLScheme || {});
54
- var AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => {
55
- AlgorithmId2["MD5"] = "md5";
56
- AlgorithmId2["CRC32"] = "crc32";
57
- AlgorithmId2["CRC32C"] = "crc32c";
58
- AlgorithmId2["SHA1"] = "sha1";
59
- AlgorithmId2["SHA256"] = "sha256";
60
- return AlgorithmId2;
61
- })(AlgorithmId || {});
62
- var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
63
- const checksumAlgorithms = [];
64
- if (runtimeConfig.sha256 !== undefined) {
65
- checksumAlgorithms.push({
66
- algorithmId: () => "sha256",
67
- checksumConstructor: () => runtimeConfig.sha256
68
- });
69
- }
70
- if (runtimeConfig.md5 != null) {
71
- checksumAlgorithms.push({
72
- algorithmId: () => "md5",
73
- checksumConstructor: () => runtimeConfig.md5
74
- });
75
- }
76
- return {
77
- _checksumAlgorithms: checksumAlgorithms,
78
- addChecksumAlgorithm(algo) {
79
- this._checksumAlgorithms.push(algo);
80
- },
81
- checksumAlgorithms() {
82
- return this._checksumAlgorithms;
83
- }
84
- };
85
- }, "getChecksumConfiguration");
86
- var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
87
- const runtimeConfig = {};
88
- clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
89
- runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
90
- });
91
- return runtimeConfig;
92
- }, "resolveChecksumRuntimeConfig");
93
- var getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
94
- return {
95
- ...getChecksumConfiguration(runtimeConfig)
96
- };
97
- }, "getDefaultClientConfiguration");
98
- var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {
99
- return {
100
- ...resolveChecksumRuntimeConfig(config)
101
- };
102
- }, "resolveDefaultRuntimeConfig");
103
- var FieldPosition = /* @__PURE__ */ ((FieldPosition2) => {
104
- FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
105
- FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
106
- return FieldPosition2;
107
- })(FieldPosition || {});
108
- var SMITHY_CONTEXT_KEY = "__smithy_context";
109
- var IniSectionType = /* @__PURE__ */ ((IniSectionType2) => {
110
- IniSectionType2["PROFILE"] = "profile";
111
- IniSectionType2["SSO_SESSION"] = "sso-session";
112
- IniSectionType2["SERVICES"] = "services";
113
- return IniSectionType2;
114
- })(IniSectionType || {});
115
- var RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => {
116
- RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
117
- RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
118
- RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
119
- return RequestHandlerProtocol2;
120
- })(RequestHandlerProtocol || {});
121
- });
122
-
123
- export { require_dist_cjs };
124
-
125
- //# debugId=71044ED42B1EC92C64756E2164756E21
126
- //# sourceMappingURL=chunk-6pac0yn5.js.map
@@ -1,85 +0,0 @@
1
- // @bun
2
- import"./chunk-cnvp47g4.js";
3
- import"./chunk-6pac0yn5.js";
4
- import {
5
- CredentialsProviderError
6
- } from "./chunk-zzerxbrm.js";
7
- import {
8
- getProfileName,
9
- parseKnownFiles
10
- } from "./chunk-sc3etgb7.js";
11
-
12
- // ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
13
- import {exec} from "child_process";
14
- import {promisify} from "util";
15
-
16
- // ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
17
- var getValidatedProcessCredentials = (profileName, data, profiles) => {
18
- if (data.Version !== 1) {
19
- throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
20
- }
21
- if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) {
22
- throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
23
- }
24
- if (data.Expiration) {
25
- const currentTime = new Date;
26
- const expireTime = new Date(data.Expiration);
27
- if (expireTime < currentTime) {
28
- throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
29
- }
30
- }
31
- let accountId = data.AccountId;
32
- if (!accountId && profiles?.[profileName]?.aws_account_id) {
33
- accountId = profiles[profileName].aws_account_id;
34
- }
35
- return {
36
- accessKeyId: data.AccessKeyId,
37
- secretAccessKey: data.SecretAccessKey,
38
- ...data.SessionToken && { sessionToken: data.SessionToken },
39
- ...data.Expiration && { expiration: new Date(data.Expiration) },
40
- ...data.CredentialScope && { credentialScope: data.CredentialScope },
41
- ...accountId && { accountId }
42
- };
43
- };
44
-
45
- // ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
46
- var resolveProcessCredentials = async (profileName, profiles, logger) => {
47
- const profile = profiles[profileName];
48
- if (profiles[profileName]) {
49
- const credentialProcess = profile["credential_process"];
50
- if (credentialProcess !== undefined) {
51
- const execPromise = promisify(exec);
52
- try {
53
- const { stdout } = await execPromise(credentialProcess);
54
- let data;
55
- try {
56
- data = JSON.parse(stdout.trim());
57
- } catch {
58
- throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
59
- }
60
- return getValidatedProcessCredentials(profileName, data, profiles);
61
- } catch (error) {
62
- throw new CredentialsProviderError(error.message, { logger });
63
- }
64
- } else {
65
- throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
66
- }
67
- } else {
68
- throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
69
- logger
70
- });
71
- }
72
- };
73
-
74
- // ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
75
- var fromProcess = (init = {}) => async () => {
76
- init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
77
- const profiles = await parseKnownFiles(init);
78
- return resolveProcessCredentials(getProfileName(init), profiles, init.logger);
79
- };
80
- export {
81
- fromProcess
82
- };
83
-
84
- //# debugId=BF4757530CA64C1264756E2164756E21
85
- //# sourceMappingURL=chunk-7jmyxm7k.js.map
@@ -1,108 +0,0 @@
1
- import {
2
- CredentialsProviderError,
3
- chain,
4
- fromStatic,
5
- memoize
6
- } from "./chunk-zzerxbrm.js";
7
- import {
8
- getProfileName,
9
- loadSharedConfigFiles
10
- } from "./chunk-sc3etgb7.js";
11
-
12
- // ../../../../node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
13
- function getSelectorName(functionString) {
14
- try {
15
- const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
16
- constants.delete("CONFIG");
17
- constants.delete("CONFIG_PREFIX_SEPARATOR");
18
- constants.delete("ENV");
19
- return [...constants].join(", ");
20
- } catch (e) {
21
- return functionString;
22
- }
23
- }
24
-
25
- // ../../../../node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
26
- var fromEnv = (envVarSelector, logger) => async () => {
27
- try {
28
- const config = envVarSelector(process.env);
29
- if (config === undefined) {
30
- throw new Error;
31
- }
32
- return config;
33
- } catch (e) {
34
- throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
35
- }
36
- };
37
-
38
- // ../../../../node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
39
- var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
40
- const profile = getProfileName(init);
41
- const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
42
- const profileFromCredentials = credentialsFile[profile] || {};
43
- const profileFromConfig = configFile[profile] || {};
44
- const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };
45
- try {
46
- const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
47
- const configValue = configSelector(mergedProfile, cfgFile);
48
- if (configValue === undefined) {
49
- throw new Error;
50
- }
51
- return configValue;
52
- } catch (e) {
53
- throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
54
- }
55
- };
56
-
57
- // ../../../../node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
58
- var isFunction = (func) => typeof func === "function";
59
- var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
60
-
61
- // ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
62
- var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize(chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
63
- // ../../../../node_modules/@smithy/querystring-parser/dist-es/index.js
64
- function parseQueryString(querystring) {
65
- const query = {};
66
- querystring = querystring.replace(/^\?/, "");
67
- if (querystring) {
68
- for (const pair of querystring.split("&")) {
69
- let [key, value = null] = pair.split("=");
70
- key = decodeURIComponent(key);
71
- if (value) {
72
- value = decodeURIComponent(value);
73
- }
74
- if (!(key in query)) {
75
- query[key] = value;
76
- } else if (Array.isArray(query[key])) {
77
- query[key].push(value);
78
- } else {
79
- query[key] = [query[key], value];
80
- }
81
- }
82
- }
83
- return query;
84
- }
85
-
86
- // ../../../../node_modules/@smithy/url-parser/dist-es/index.js
87
- var parseUrl = (url) => {
88
- if (typeof url === "string") {
89
- return parseUrl(new URL(url));
90
- }
91
- const { hostname, pathname, port, protocol, search } = url;
92
- let query;
93
- if (search) {
94
- query = parseQueryString(search);
95
- }
96
- return {
97
- hostname,
98
- port: port ? parseInt(port) : undefined,
99
- protocol,
100
- path: pathname,
101
- query
102
- };
103
- };
104
-
105
- export { loadConfig, parseUrl };
106
-
107
- //# debugId=16F4A2324128450E64756E2164756E21
108
- //# sourceMappingURL=chunk-8217wvpy.js.map