@stacksjs/actions 0.70.16 → 0.70.17
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/build.js +8 -8
- package/dist/{chunk-hd6fdt5s.js → chunk-38cnnp2b.js} +4 -6
- package/dist/{chunk-jdqxwpvc.js → chunk-6r2cfyvs.js} +17 -21
- package/dist/{chunk-6xeh1279.js → chunk-76zhb40c.js} +6 -7
- package/dist/{chunk-bh25aaf7.js → chunk-7s5qcjkt.js} +9 -17
- package/dist/{chunk-cv02w7e2.js → chunk-8qbv8f54.js} +3 -3
- package/dist/{chunk-gdzs9jf4.js → chunk-9exgwfkw.js} +4 -5
- package/dist/{chunk-6xbhnbwy.js → chunk-b7b7x0pa.js} +17 -21
- package/dist/{chunk-hfkdpbh8.js → chunk-dzyhk6dv.js} +8 -8
- package/dist/{chunk-wvzpmd54.js → chunk-e7mp4xy5.js} +10 -13
- package/dist/{chunk-wn25qps4.js → chunk-env90z3g.js} +25 -34
- package/dist/{chunk-ad9b7jvj.js → chunk-f6a9g4qa.js} +4 -5
- package/dist/{chunk-kz10a3s9.js → chunk-kz2maxj4.js} +68 -68
- package/dist/{chunk-y73a5ex0.js → chunk-m3bwb2j7.js} +6 -6
- package/dist/{chunk-whqcyjvm.js → chunk-p90c4ksp.js} +13 -8
- package/dist/{chunk-8dsect0a.js → chunk-qkm8e752.js} +4 -5
- package/dist/{chunk-9menqd9a.js → chunk-t5em30ak.js} +16 -24
- package/dist/{chunk-0crtxf8d.js → chunk-veja9rez.js} +156 -19
- package/dist/{chunk-b5g5w1hh.js → chunk-xt9exr2c.js} +5 -6
- package/dist/{chunk-f1cxwjkf.js → chunk-zsm2c35w.js} +5 -6
- package/dist/chunk-zzerxbrm.js +107 -0
- package/dist/database/seed.js +7 -7
- package/dist/generate/index.js +8 -8
- package/dist/index.js +8 -8
- package/dist/release.js +8 -8
- package/dist/upgrade.js +1 -1
- package/package.json +17 -17
- package/dist/chunk-2m04vhea.js +0 -145
package/dist/build.js
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
import {
|
|
3
3
|
generateTypes
|
|
4
4
|
} from "./generate/index.js";
|
|
5
|
-
import"./chunk-
|
|
5
|
+
import"./chunk-8qbv8f54.js";
|
|
6
6
|
import"./helpers/vscode-custom-data.js";
|
|
7
7
|
import"./chunk-494jp8d5.js";
|
|
8
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-kz2maxj4.js";
|
|
9
9
|
import"./chunk-mdj7x1vs.js";
|
|
10
10
|
import"./chunk-p0c688mg.js";
|
|
11
|
-
import"./chunk-
|
|
11
|
+
import"./chunk-qkm8e752.js";
|
|
12
12
|
import"./chunk-a13x0e43.js";
|
|
13
13
|
import"./chunk-mdqphqep.js";
|
|
14
14
|
import"./chunk-qhh0v93n.js";
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
import"./chunk-6r2cfyvs.js";
|
|
16
|
+
import"./chunk-7s5qcjkt.js";
|
|
17
17
|
import"./chunk-bf8bq8pc.js";
|
|
18
|
-
import"./chunk-
|
|
19
|
-
import"./chunk-
|
|
18
|
+
import"./chunk-xt9exr2c.js";
|
|
19
|
+
import"./chunk-zzerxbrm.js";
|
|
20
|
+
import"./chunk-veja9rez.js";
|
|
20
21
|
import"./chunk-a7k3cdby.js";
|
|
21
22
|
import"./chunk-frw3va9v.js";
|
|
22
23
|
import"./chunk-saqpg5nd.js";
|
|
23
|
-
import"./chunk-2m04vhea.js";
|
|
24
24
|
import"./chunk-2dvnt46s.js";
|
|
25
25
|
import"./chunk-w6fdq4hk.js";
|
|
26
26
|
import"./chunk-wkwtsvym.js";
|
|
@@ -3,9 +3,10 @@ import {
|
|
|
3
3
|
require_dist_cjs as require_dist_cjs2,
|
|
4
4
|
require_dist_cjs1 as require_dist_cjs3,
|
|
5
5
|
require_dist_cjs2 as require_dist_cjs7,
|
|
6
|
-
require_dist_cjs3 as
|
|
7
|
-
require_dist_cjs4 as
|
|
8
|
-
|
|
6
|
+
require_dist_cjs3 as require_dist_cjs8,
|
|
7
|
+
require_dist_cjs4 as require_dist_cjs9,
|
|
8
|
+
require_dist_cjs5 as require_dist_cjs10
|
|
9
|
+
} from "./chunk-veja9rez.js";
|
|
9
10
|
import {
|
|
10
11
|
require_dist_cjs as require_dist_cjs4,
|
|
11
12
|
require_dist_cjs2 as require_dist_cjs5,
|
|
@@ -14,9 +15,6 @@ import {
|
|
|
14
15
|
import {
|
|
15
16
|
require_dist_cjs
|
|
16
17
|
} from "./chunk-saqpg5nd.js";
|
|
17
|
-
import {
|
|
18
|
-
require_dist_cjs as require_dist_cjs8
|
|
19
|
-
} from "./chunk-2m04vhea.js";
|
|
20
18
|
import {
|
|
21
19
|
__commonJS,
|
|
22
20
|
__require
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadConfig,
|
|
3
3
|
parseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7s5qcjkt.js";
|
|
5
5
|
import {
|
|
6
6
|
CONFIG_PREFIX_SEPARATOR
|
|
7
7
|
} from "./chunk-bf8bq8pc.js";
|
|
@@ -9,21 +9,22 @@ import {
|
|
|
9
9
|
HttpRequest,
|
|
10
10
|
HttpResponse,
|
|
11
11
|
NoOpLogger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-xt9exr2c.js";
|
|
13
|
+
import {
|
|
14
|
+
memoize
|
|
15
|
+
} from "./chunk-zzerxbrm.js";
|
|
13
16
|
import {
|
|
14
17
|
require_dist,
|
|
15
|
-
require_dist_cjs2 as
|
|
16
|
-
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
require_dist_cjs2 as require_dist_cjs4,
|
|
19
|
+
require_dist_cjs5
|
|
20
|
+
} from "./chunk-veja9rez.js";
|
|
18
21
|
import {
|
|
19
|
-
|
|
22
|
+
require_dist_cjs1 as require_dist_cjs2,
|
|
23
|
+
require_dist_cjs3
|
|
20
24
|
} from "./chunk-a7k3cdby.js";
|
|
21
25
|
import {
|
|
22
26
|
require_dist_cjs
|
|
23
27
|
} from "./chunk-saqpg5nd.js";
|
|
24
|
-
import {
|
|
25
|
-
require_dist_cjs as require_dist_cjs4
|
|
26
|
-
} from "./chunk-2m04vhea.js";
|
|
27
28
|
import {
|
|
28
29
|
__require,
|
|
29
30
|
__toESM
|
|
@@ -142,7 +143,7 @@ var getRecursionDetectionPlugin = (options) => ({
|
|
|
142
143
|
});
|
|
143
144
|
|
|
144
145
|
// ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
|
|
145
|
-
var import_core = __toESM(
|
|
146
|
+
var import_core = __toESM(require_dist_cjs4(), 1);
|
|
146
147
|
var DEFAULT_UA_APP_ID = undefined;
|
|
147
148
|
function isValidUserAgentAppId(appId) {
|
|
148
149
|
if (appId === undefined) {
|
|
@@ -1282,7 +1283,7 @@ function getSerdePlugin(config2, serializer, deserializer) {
|
|
|
1282
1283
|
};
|
|
1283
1284
|
}
|
|
1284
1285
|
// ../../../../node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
|
|
1285
|
-
var import_core3 = __toESM(
|
|
1286
|
+
var import_core3 = __toESM(require_dist_cjs4(), 1);
|
|
1286
1287
|
|
|
1287
1288
|
// ../../../../node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
|
|
1288
1289
|
var resolveParamsForS3 = async (endpointParams) => {
|
|
@@ -2023,13 +2024,11 @@ var NODE_APP_ID_CONFIG_OPTIONS = {
|
|
|
2023
2024
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
|
|
2024
2025
|
default: DEFAULT_UA_APP_ID
|
|
2025
2026
|
};
|
|
2026
|
-
// ../../../../node_modules/@smithy/is-array-buffer/dist-es/index.js
|
|
2027
|
-
var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
|
|
2028
|
-
|
|
2029
2027
|
// ../../../../node_modules/@smithy/util-buffer-from/dist-es/index.js
|
|
2028
|
+
var import_is_array_buffer = __toESM(require_dist_cjs2(), 1);
|
|
2030
2029
|
import { Buffer as Buffer2 } from "node:buffer";
|
|
2031
2030
|
var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
|
|
2032
|
-
if (!isArrayBuffer(input)) {
|
|
2031
|
+
if (!import_is_array_buffer.isArrayBuffer(input)) {
|
|
2033
2032
|
throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
|
|
2034
2033
|
}
|
|
2035
2034
|
return Buffer2.from(input, offset, length);
|
|
@@ -2042,7 +2041,7 @@ var fromString = (input, encoding) => {
|
|
|
2042
2041
|
};
|
|
2043
2042
|
|
|
2044
2043
|
// ../../../../node_modules/@smithy/hash-node/dist-es/index.js
|
|
2045
|
-
var import_util_utf8 = __toESM(
|
|
2044
|
+
var import_util_utf8 = __toESM(require_dist_cjs3(), 1);
|
|
2046
2045
|
import { Buffer as Buffer3 } from "node:buffer";
|
|
2047
2046
|
import { createHash, createHmac } from "node:crypto";
|
|
2048
2047
|
|
|
@@ -2096,9 +2095,6 @@ var calculateBodyLength = (body) => {
|
|
|
2096
2095
|
}
|
|
2097
2096
|
throw new Error(`Body Length computation failed for ${body}`);
|
|
2098
2097
|
};
|
|
2099
|
-
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
2100
|
-
var import_property_provider = __toESM(require_dist_cjs4(), 1);
|
|
2101
|
-
|
|
2102
2098
|
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
|
|
2103
2099
|
var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
|
|
2104
2100
|
var AWS_REGION_ENV = "AWS_REGION";
|
|
@@ -2121,7 +2117,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
|
2121
2117
|
};
|
|
2122
2118
|
|
|
2123
2119
|
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
2124
|
-
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) =>
|
|
2120
|
+
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
|
|
2125
2121
|
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
2126
2122
|
switch (mode?.toLowerCase()) {
|
|
2127
2123
|
case "auto":
|
|
@@ -2159,7 +2155,7 @@ var inferPhysicalRegion = async () => {
|
|
|
2159
2155
|
}
|
|
2160
2156
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
2161
2157
|
try {
|
|
2162
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-
|
|
2158
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-t5em30ak.js");
|
|
2163
2159
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
2164
2160
|
return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
|
|
2165
2161
|
} catch (e) {}
|
|
@@ -3,19 +3,18 @@ import {
|
|
|
3
3
|
getProfileName,
|
|
4
4
|
parseKnownFiles
|
|
5
5
|
} from "./chunk-bf8bq8pc.js";
|
|
6
|
+
import {
|
|
7
|
+
CredentialsProviderError
|
|
8
|
+
} from "./chunk-zzerxbrm.js";
|
|
6
9
|
import {
|
|
7
10
|
require_client
|
|
8
11
|
} from "./chunk-frw3va9v.js";
|
|
9
12
|
import"./chunk-saqpg5nd.js";
|
|
10
|
-
import {
|
|
11
|
-
require_dist_cjs
|
|
12
|
-
} from "./chunk-2m04vhea.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM
|
|
15
15
|
} from "./chunk-9v6qtbez.js";
|
|
16
16
|
|
|
17
17
|
// ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
18
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
19
18
|
import { exec } from "node:child_process";
|
|
20
19
|
import { promisify } from "node:util";
|
|
21
20
|
|
|
@@ -68,13 +67,13 @@ var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
68
67
|
}
|
|
69
68
|
return getValidatedProcessCredentials(profileName, data, profiles);
|
|
70
69
|
} catch (error) {
|
|
71
|
-
throw new
|
|
70
|
+
throw new CredentialsProviderError(error.message, { logger });
|
|
72
71
|
}
|
|
73
72
|
} else {
|
|
74
|
-
throw new
|
|
73
|
+
throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
|
|
75
74
|
}
|
|
76
75
|
} else {
|
|
77
|
-
throw new
|
|
76
|
+
throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
78
77
|
logger
|
|
79
78
|
});
|
|
80
79
|
}
|
|
@@ -3,17 +3,11 @@ import {
|
|
|
3
3
|
loadSharedConfigFiles
|
|
4
4
|
} from "./chunk-bf8bq8pc.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
|
|
12
|
-
// ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
|
|
13
|
-
var import_property_provider4 = __toESM(require_dist_cjs(), 1);
|
|
14
|
-
|
|
15
|
-
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
|
|
16
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
6
|
+
CredentialsProviderError,
|
|
7
|
+
chain,
|
|
8
|
+
fromStatic,
|
|
9
|
+
memoize
|
|
10
|
+
} from "./chunk-zzerxbrm.js";
|
|
17
11
|
|
|
18
12
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
|
|
19
13
|
function getSelectorName(functionString) {
|
|
@@ -37,12 +31,11 @@ var fromEnv = (envVarSelector, logger) => async () => {
|
|
|
37
31
|
}
|
|
38
32
|
return config;
|
|
39
33
|
} catch (e) {
|
|
40
|
-
throw new
|
|
34
|
+
throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
|
|
41
35
|
}
|
|
42
36
|
};
|
|
43
37
|
|
|
44
38
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
|
|
45
|
-
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
46
39
|
var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
|
|
47
40
|
const profile = getProfileName(init);
|
|
48
41
|
const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
|
|
@@ -57,17 +50,16 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
|
|
|
57
50
|
}
|
|
58
51
|
return configValue;
|
|
59
52
|
} catch (e) {
|
|
60
|
-
throw new
|
|
53
|
+
throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
61
54
|
}
|
|
62
55
|
};
|
|
63
56
|
|
|
64
57
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
|
|
65
|
-
var import_property_provider3 = __toESM(require_dist_cjs(), 1);
|
|
66
58
|
var isFunction = (func) => typeof func === "function";
|
|
67
|
-
var
|
|
59
|
+
var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
|
|
68
60
|
|
|
69
61
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
|
|
70
|
-
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) =>
|
|
62
|
+
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize(chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
|
|
71
63
|
// ../../../../node_modules/@smithy/querystring-parser/dist-es/index.js
|
|
72
64
|
function parseQueryString(querystring) {
|
|
73
65
|
const query = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
db
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-kz2maxj4.js";
|
|
4
4
|
import {
|
|
5
5
|
customValidate,
|
|
6
6
|
isObjectNotEmpty,
|
|
@@ -319,8 +319,8 @@ class Router {
|
|
|
319
319
|
return this.routes;
|
|
320
320
|
}
|
|
321
321
|
async importRoutes() {
|
|
322
|
-
await import("./chunk-
|
|
323
|
-
await import("./chunk-
|
|
322
|
+
await import("./chunk-dzyhk6dv.js");
|
|
323
|
+
await import("./chunk-p90c4ksp.js");
|
|
324
324
|
}
|
|
325
325
|
async resolveCallback(callback) {
|
|
326
326
|
if (callback instanceof Promise) {
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
require_dist_cjs8 as require_dist_cjs18,
|
|
20
20
|
require_dist_cjs9 as require_dist_cjs19,
|
|
21
21
|
require_package
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-38cnnp2b.js";
|
|
23
23
|
import {
|
|
24
24
|
require_dist_cjs,
|
|
25
25
|
require_dist_cjs1 as require_dist_cjs2,
|
|
26
26
|
require_dist_cjs2 as require_dist_cjs7,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
require_dist_cjs4 as require_dist_cjs8,
|
|
28
|
+
require_dist_cjs5 as require_dist_cjs9,
|
|
29
29
|
require_tslib
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-veja9rez.js";
|
|
31
31
|
import {
|
|
32
32
|
require_dist_cjs as require_dist_cjs3,
|
|
33
33
|
require_dist_cjs3 as require_dist_cjs4,
|
|
@@ -38,7 +38,6 @@ import {
|
|
|
38
38
|
require_client
|
|
39
39
|
} from "./chunk-frw3va9v.js";
|
|
40
40
|
import"./chunk-saqpg5nd.js";
|
|
41
|
-
import"./chunk-2m04vhea.js";
|
|
42
41
|
import {
|
|
43
42
|
__commonJS
|
|
44
43
|
} from "./chunk-9v6qtbez.js";
|
|
@@ -3,51 +3,47 @@ import {
|
|
|
3
3
|
getProfileName,
|
|
4
4
|
parseKnownFiles
|
|
5
5
|
} from "./chunk-bf8bq8pc.js";
|
|
6
|
+
import {
|
|
7
|
+
CredentialsProviderError,
|
|
8
|
+
chain
|
|
9
|
+
} from "./chunk-zzerxbrm.js";
|
|
6
10
|
import {
|
|
7
11
|
require_client
|
|
8
12
|
} from "./chunk-frw3va9v.js";
|
|
9
13
|
import"./chunk-saqpg5nd.js";
|
|
10
|
-
import {
|
|
11
|
-
require_dist_cjs
|
|
12
|
-
} from "./chunk-2m04vhea.js";
|
|
13
14
|
import {
|
|
14
15
|
__require,
|
|
15
16
|
__toESM
|
|
16
17
|
} from "./chunk-9v6qtbez.js";
|
|
17
18
|
|
|
18
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
19
|
-
var import_property_provider3 = __toESM(require_dist_cjs(), 1);
|
|
20
|
-
|
|
21
19
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
22
20
|
var import_client2 = __toESM(require_client(), 1);
|
|
23
|
-
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
24
21
|
|
|
25
22
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
26
23
|
var import_client = __toESM(require_client(), 1);
|
|
27
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
28
24
|
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
29
25
|
const sourceProvidersMap = {
|
|
30
26
|
EcsContainer: async (options) => {
|
|
31
|
-
const { fromHttp } = await import("./chunk-
|
|
32
|
-
const { fromContainerMetadata } = await import("./chunk-
|
|
27
|
+
const { fromHttp } = await import("./chunk-e7mp4xy5.js");
|
|
28
|
+
const { fromContainerMetadata } = await import("./chunk-t5em30ak.js");
|
|
33
29
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
34
|
-
return async () =>
|
|
30
|
+
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
35
31
|
},
|
|
36
32
|
Ec2InstanceMetadata: async (options) => {
|
|
37
33
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
38
|
-
const { fromInstanceMetadata } = await import("./chunk-
|
|
34
|
+
const { fromInstanceMetadata } = await import("./chunk-t5em30ak.js");
|
|
39
35
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
40
36
|
},
|
|
41
37
|
Environment: async (options) => {
|
|
42
38
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
43
|
-
const { fromEnv } = await import("./chunk-
|
|
39
|
+
const { fromEnv } = await import("./chunk-qkm8e752.js");
|
|
44
40
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
45
41
|
}
|
|
46
42
|
};
|
|
47
43
|
if (credentialSource in sourceProvidersMap) {
|
|
48
44
|
return sourceProvidersMap[credentialSource];
|
|
49
45
|
} else {
|
|
50
|
-
throw new
|
|
46
|
+
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
|
|
51
47
|
}
|
|
52
48
|
};
|
|
53
49
|
var setNamedProvider = (creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
@@ -75,7 +71,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
|
|
|
75
71
|
const profileData = profiles[profileName];
|
|
76
72
|
const { source_profile, region } = profileData;
|
|
77
73
|
if (!options.roleAssumer) {
|
|
78
|
-
const { getDefaultRoleAssumer } = await import("./chunk-
|
|
74
|
+
const { getDefaultRoleAssumer } = await import("./chunk-9exgwfkw.js");
|
|
79
75
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
80
76
|
...options.clientConfig,
|
|
81
77
|
credentialProviderLogger: options.logger,
|
|
@@ -86,7 +82,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
|
|
|
86
82
|
}, options.clientPlugins);
|
|
87
83
|
}
|
|
88
84
|
if (source_profile && source_profile in visitedProfiles) {
|
|
89
|
-
throw new
|
|
85
|
+
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
|
|
90
86
|
}
|
|
91
87
|
options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
92
88
|
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
|
|
@@ -105,7 +101,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
|
|
|
105
101
|
const { mfa_serial } = profileData;
|
|
106
102
|
if (mfa_serial) {
|
|
107
103
|
if (!options.mfaCodeProvider) {
|
|
108
|
-
throw new
|
|
104
|
+
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
|
|
109
105
|
}
|
|
110
106
|
params.SerialNumber = mfa_serial;
|
|
111
107
|
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
|
@@ -121,7 +117,7 @@ var isCredentialSourceWithoutRoleArn = (section) => {
|
|
|
121
117
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
122
118
|
var import_client3 = __toESM(require_client(), 1);
|
|
123
119
|
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
124
|
-
var resolveProcessCredentials = async (options, profile) => import("./chunk-
|
|
120
|
+
var resolveProcessCredentials = async (options, profile) => import("./chunk-76zhb40c.js").then(({ fromProcess }) => fromProcess({
|
|
125
121
|
...options,
|
|
126
122
|
profile
|
|
127
123
|
})().then((creds) => import_client3.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
@@ -129,7 +125,7 @@ var resolveProcessCredentials = async (options, profile) => import("./chunk-6xeh
|
|
|
129
125
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
130
126
|
var import_client4 = __toESM(require_client(), 1);
|
|
131
127
|
var resolveSsoCredentials = async (profile, profileData, options = {}) => {
|
|
132
|
-
const { fromSSO } = await import("./chunk-
|
|
128
|
+
const { fromSSO } = await import("./chunk-env90z3g.js");
|
|
133
129
|
return fromSSO({
|
|
134
130
|
profile,
|
|
135
131
|
logger: options.logger,
|
|
@@ -163,7 +159,7 @@ var resolveStaticCredentials = async (profile, options) => {
|
|
|
163
159
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
164
160
|
var import_client6 = __toESM(require_client(), 1);
|
|
165
161
|
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;
|
|
166
|
-
var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-
|
|
162
|
+
var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-zsm2c35w.js").then(({ fromTokenFile }) => fromTokenFile({
|
|
167
163
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
168
164
|
roleArn: profile.role_arn,
|
|
169
165
|
roleSessionName: profile.role_session_name,
|
|
@@ -193,7 +189,7 @@ var resolveProfileData = async (profileName, profiles, options, visitedProfiles
|
|
|
193
189
|
if (isSsoProfile(data)) {
|
|
194
190
|
return await resolveSsoCredentials(profileName, data, options);
|
|
195
191
|
}
|
|
196
|
-
throw new
|
|
192
|
+
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
197
193
|
};
|
|
198
194
|
|
|
199
195
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
route
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import"./chunk-
|
|
4
|
+
} from "./chunk-8qbv8f54.js";
|
|
5
|
+
import"./chunk-kz2maxj4.js";
|
|
6
6
|
import"./chunk-mdj7x1vs.js";
|
|
7
7
|
import"./chunk-p0c688mg.js";
|
|
8
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-qkm8e752.js";
|
|
9
9
|
import"./chunk-a13x0e43.js";
|
|
10
10
|
import"./chunk-mdqphqep.js";
|
|
11
11
|
import"./chunk-qhh0v93n.js";
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
12
|
+
import"./chunk-6r2cfyvs.js";
|
|
13
|
+
import"./chunk-7s5qcjkt.js";
|
|
14
14
|
import"./chunk-bf8bq8pc.js";
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
import"./chunk-xt9exr2c.js";
|
|
16
|
+
import"./chunk-zzerxbrm.js";
|
|
17
|
+
import"./chunk-veja9rez.js";
|
|
17
18
|
import"./chunk-a7k3cdby.js";
|
|
18
19
|
import"./chunk-frw3va9v.js";
|
|
19
20
|
import"./chunk-saqpg5nd.js";
|
|
20
|
-
import"./chunk-2m04vhea.js";
|
|
21
21
|
import"./chunk-2dvnt46s.js";
|
|
22
22
|
import"./chunk-w6fdq4hk.js";
|
|
23
23
|
import"./chunk-wkwtsvym.js";
|
|
@@ -3,7 +3,10 @@ import {
|
|
|
3
3
|
HttpRequest,
|
|
4
4
|
NodeHttpHandler,
|
|
5
5
|
parseRfc3339DateTime
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-xt9exr2c.js";
|
|
7
|
+
import {
|
|
8
|
+
CredentialsProviderError
|
|
9
|
+
} from "./chunk-zzerxbrm.js";
|
|
7
10
|
import {
|
|
8
11
|
require_dist_cjs8 as require_dist_cjs
|
|
9
12
|
} from "./chunk-a7k3cdby.js";
|
|
@@ -11,20 +14,15 @@ import {
|
|
|
11
14
|
require_client
|
|
12
15
|
} from "./chunk-frw3va9v.js";
|
|
13
16
|
import"./chunk-saqpg5nd.js";
|
|
14
|
-
import {
|
|
15
|
-
require_dist_cjs as require_dist_cjs2
|
|
16
|
-
} from "./chunk-2m04vhea.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM
|
|
19
19
|
} from "./chunk-9v6qtbez.js";
|
|
20
20
|
|
|
21
21
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
22
22
|
var import_client = __toESM(require_client(), 1);
|
|
23
|
-
var import_property_provider3 = __toESM(require_dist_cjs2(), 1);
|
|
24
23
|
import fs from "node:fs/promises";
|
|
25
24
|
|
|
26
25
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
27
|
-
var import_property_provider = __toESM(require_dist_cjs2(), 1);
|
|
28
26
|
var ECS_CONTAINER_HOST = "169.254.170.2";
|
|
29
27
|
var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
|
30
28
|
var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
|
@@ -52,14 +50,13 @@ var checkUrl = (url, logger) => {
|
|
|
52
50
|
return;
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
|
-
throw new
|
|
53
|
+
throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
56
54
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
57
55
|
- ECS container host 169.254.170.2
|
|
58
56
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
|
|
59
57
|
};
|
|
60
58
|
|
|
61
59
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
62
|
-
var import_property_provider2 = __toESM(require_dist_cjs2(), 1);
|
|
63
60
|
var import_util_stream = __toESM(require_dist_cjs(), 1);
|
|
64
61
|
function createGetRequest(url) {
|
|
65
62
|
return new HttpRequest({
|
|
@@ -80,7 +77,7 @@ async function getCredentials(response, logger) {
|
|
|
80
77
|
if (response.statusCode === 200) {
|
|
81
78
|
const parsed = JSON.parse(str);
|
|
82
79
|
if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
|
|
83
|
-
throw new
|
|
80
|
+
throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
|
|
84
81
|
}
|
|
85
82
|
return {
|
|
86
83
|
accessKeyId: parsed.AccessKeyId,
|
|
@@ -94,12 +91,12 @@ async function getCredentials(response, logger) {
|
|
|
94
91
|
try {
|
|
95
92
|
parsedBody = JSON.parse(str);
|
|
96
93
|
} catch (e) {}
|
|
97
|
-
throw Object.assign(new
|
|
94
|
+
throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
|
|
98
95
|
Code: parsedBody.Code,
|
|
99
96
|
Message: parsedBody.Message
|
|
100
97
|
});
|
|
101
98
|
}
|
|
102
|
-
throw new
|
|
99
|
+
throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
103
100
|
}
|
|
104
101
|
|
|
105
102
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
@@ -143,7 +140,7 @@ var fromHttp = (options = {}) => {
|
|
|
143
140
|
} else if (relative) {
|
|
144
141
|
host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
|
|
145
142
|
} else {
|
|
146
|
-
throw new
|
|
143
|
+
throw new CredentialsProviderError(`No HTTP credential provider host provided.
|
|
147
144
|
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
|
|
148
145
|
}
|
|
149
146
|
const url = new URL(host);
|
|
@@ -163,7 +160,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
163
160
|
const result = await requestHandler.handle(request);
|
|
164
161
|
return getCredentials(result.response).then((creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
|
|
165
162
|
} catch (e) {
|
|
166
|
-
throw new
|
|
163
|
+
throw new CredentialsProviderError(String(e), { logger: options.logger });
|
|
167
164
|
}
|
|
168
165
|
}, options.maxRetries ?? 3, options.timeout ?? 1000);
|
|
169
166
|
};
|