@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
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ENV_KEY,
|
|
3
3
|
ENV_SECRET,
|
|
4
4
|
fromEnv
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-qkm8e752.js";
|
|
6
6
|
import {
|
|
7
7
|
h,
|
|
8
8
|
x
|
|
@@ -41,11 +41,11 @@ import {
|
|
|
41
41
|
resolveRegionConfig,
|
|
42
42
|
resolveRetryConfig,
|
|
43
43
|
resolveUserAgentConfig
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6r2cfyvs.js";
|
|
45
45
|
import {
|
|
46
46
|
loadConfig,
|
|
47
47
|
parseUrl
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-7s5qcjkt.js";
|
|
49
49
|
import {
|
|
50
50
|
ENV_PROFILE
|
|
51
51
|
} from "./chunk-bf8bq8pc.js";
|
|
@@ -71,19 +71,21 @@ import {
|
|
|
71
71
|
streamCollector,
|
|
72
72
|
take,
|
|
73
73
|
withBaseException
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-xt9exr2c.js";
|
|
75
|
+
import {
|
|
76
|
+
CredentialsProviderError,
|
|
77
|
+
chain,
|
|
78
|
+
memoize
|
|
79
|
+
} from "./chunk-zzerxbrm.js";
|
|
75
80
|
import {
|
|
76
81
|
require_dist_cjs,
|
|
77
82
|
require_dist_cjs2 as require_dist_cjs4,
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
83
|
+
require_dist_cjs5
|
|
84
|
+
} from "./chunk-veja9rez.js";
|
|
80
85
|
import {
|
|
81
86
|
require_dist_cjs3 as require_dist_cjs2,
|
|
82
87
|
require_dist_cjs4 as require_dist_cjs3
|
|
83
88
|
} from "./chunk-a7k3cdby.js";
|
|
84
|
-
import {
|
|
85
|
-
require_dist_cjs as require_dist_cjs5
|
|
86
|
-
} from "./chunk-2m04vhea.js";
|
|
87
89
|
import {
|
|
88
90
|
isString,
|
|
89
91
|
make
|
|
@@ -5926,7 +5928,7 @@ var require_utils = __commonJS((exports) => {
|
|
|
5926
5928
|
exports.assertOptionalChainStart = assertOptionalChainStart;
|
|
5927
5929
|
exports.assertShape = assertShape;
|
|
5928
5930
|
exports.assertValueType = assertValueType;
|
|
5929
|
-
exports.chain =
|
|
5931
|
+
exports.chain = chain2;
|
|
5930
5932
|
exports.default = defineType;
|
|
5931
5933
|
exports.defineAliasedType = defineAliasedType;
|
|
5932
5934
|
exports.validate = validate;
|
|
@@ -5973,7 +5975,7 @@ var require_utils = __commonJS((exports) => {
|
|
|
5973
5975
|
};
|
|
5974
5976
|
}
|
|
5975
5977
|
function arrayOf(elementType) {
|
|
5976
|
-
return
|
|
5978
|
+
return chain2(assertValueType("array"), assertEach(elementType));
|
|
5977
5979
|
}
|
|
5978
5980
|
function arrayOfType(...typeNames) {
|
|
5979
5981
|
return arrayOf(assertNodeType(...typeNames));
|
|
@@ -6090,7 +6092,7 @@ ${errors.join(`
|
|
|
6090
6092
|
}
|
|
6091
6093
|
return validate2;
|
|
6092
6094
|
}
|
|
6093
|
-
function
|
|
6095
|
+
function chain2(...fns) {
|
|
6094
6096
|
function validate2(...args) {
|
|
6095
6097
|
for (const fn of fns) {
|
|
6096
6098
|
fn(...args);
|
|
@@ -74677,16 +74679,16 @@ var require_parse4 = __commonJS((exports, module) => {
|
|
|
74677
74679
|
}
|
|
74678
74680
|
return obj;
|
|
74679
74681
|
};
|
|
74680
|
-
var parseObject = function(
|
|
74682
|
+
var parseObject = function(chain3, val2, options, valuesParsed) {
|
|
74681
74683
|
var currentArrayLength = 0;
|
|
74682
|
-
if (
|
|
74683
|
-
var parentKey =
|
|
74684
|
+
if (chain3.length > 0 && chain3[chain3.length - 1] === "[]") {
|
|
74685
|
+
var parentKey = chain3.slice(0, -1).join("");
|
|
74684
74686
|
currentArrayLength = Array.isArray(val2) && val2[parentKey] ? val2[parentKey].length : 0;
|
|
74685
74687
|
}
|
|
74686
74688
|
var leaf = valuesParsed ? val2 : parseArrayValue(val2, options, currentArrayLength);
|
|
74687
|
-
for (var i4 =
|
|
74689
|
+
for (var i4 = chain3.length - 1;i4 >= 0; --i4) {
|
|
74688
74690
|
var obj;
|
|
74689
|
-
var root =
|
|
74691
|
+
var root = chain3[i4];
|
|
74690
74692
|
if (root === "[]" && options.parseArrays) {
|
|
74691
74693
|
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils3.combine([], leaf);
|
|
74692
74694
|
} else {
|
|
@@ -94807,7 +94809,7 @@ var resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) =
|
|
|
94807
94809
|
var import_core6 = __toESM(require_dist_cjs4(), 1);
|
|
94808
94810
|
|
|
94809
94811
|
// ../../../../node_modules/@aws-sdk/client-dynamodb/dist-es/auth/httpAuthSchemeProvider.js
|
|
94810
|
-
var import_core2 = __toESM(
|
|
94812
|
+
var import_core2 = __toESM(require_dist_cjs5(), 1);
|
|
94811
94813
|
var defaultDynamoDBHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
94812
94814
|
return {
|
|
94813
94815
|
operation: getSmithyContext(context).operation,
|
|
@@ -94863,7 +94865,7 @@ var commonParams = {
|
|
|
94863
94865
|
};
|
|
94864
94866
|
|
|
94865
94867
|
// ../../../../node_modules/@aws-sdk/client-dynamodb/dist-es/protocols/Aws_json1_0.js
|
|
94866
|
-
var import_core3 = __toESM(
|
|
94868
|
+
var import_core3 = __toESM(require_dist_cjs5(), 1);
|
|
94867
94869
|
|
|
94868
94870
|
// ../../../../node_modules/@aws-sdk/client-dynamodb/dist-es/models/DynamoDBServiceException.js
|
|
94869
94871
|
class DynamoDBServiceException extends ServiceException {
|
|
@@ -96484,25 +96486,21 @@ var package_default = {
|
|
|
96484
96486
|
};
|
|
96485
96487
|
|
|
96486
96488
|
// ../../../../node_modules/@aws-sdk/client-dynamodb/dist-es/runtimeConfig.js
|
|
96487
|
-
var import_core5 = __toESM(
|
|
96489
|
+
var import_core5 = __toESM(require_dist_cjs5(), 1);
|
|
96488
96490
|
var import_account_id_endpoint = __toESM(require_account_id_endpoint(), 1);
|
|
96489
96491
|
|
|
96490
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
96491
|
-
var import_property_provider2 = __toESM(require_dist_cjs5(), 1);
|
|
96492
|
-
|
|
96493
96492
|
// ../../../../node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
|
|
96494
|
-
var import_property_provider = __toESM(require_dist_cjs5(), 1);
|
|
96495
96493
|
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
96496
96494
|
var remoteProvider = async (init2) => {
|
|
96497
|
-
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import("./chunk-
|
|
96495
|
+
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import("./chunk-t5em30ak.js");
|
|
96498
96496
|
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
|
96499
96497
|
init2.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
|
|
96500
|
-
const { fromHttp } = await import("./chunk-
|
|
96501
|
-
return
|
|
96498
|
+
const { fromHttp } = await import("./chunk-e7mp4xy5.js");
|
|
96499
|
+
return chain(fromHttp(init2), fromContainerMetadata(init2));
|
|
96502
96500
|
}
|
|
96503
96501
|
if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
|
|
96504
96502
|
return async () => {
|
|
96505
|
-
throw new
|
|
96503
|
+
throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init2.logger });
|
|
96506
96504
|
};
|
|
96507
96505
|
}
|
|
96508
96506
|
init2.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");
|
|
@@ -96511,7 +96509,7 @@ var remoteProvider = async (init2) => {
|
|
|
96511
96509
|
|
|
96512
96510
|
// ../../../../node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
96513
96511
|
var multipleCredentialSourceWarningEmitted = false;
|
|
96514
|
-
var defaultProvider = (init2 = {}) =>
|
|
96512
|
+
var defaultProvider = (init2 = {}) => memoize(chain(async () => {
|
|
96515
96513
|
const profile = init2.profile ?? process.env[ENV_PROFILE];
|
|
96516
96514
|
if (profile) {
|
|
96517
96515
|
const envStaticCredentialsAreSet = process.env[ENV_KEY] && process.env[ENV_SECRET];
|
|
@@ -96530,7 +96528,7 @@ var defaultProvider = (init2 = {}) => import_property_provider2.memoize(import_p
|
|
|
96530
96528
|
multipleCredentialSourceWarningEmitted = true;
|
|
96531
96529
|
}
|
|
96532
96530
|
}
|
|
96533
|
-
throw new
|
|
96531
|
+
throw new CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", {
|
|
96534
96532
|
logger: init2.logger,
|
|
96535
96533
|
tryNextLink: true
|
|
96536
96534
|
});
|
|
@@ -96541,27 +96539,27 @@ var defaultProvider = (init2 = {}) => import_property_provider2.memoize(import_p
|
|
|
96541
96539
|
init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");
|
|
96542
96540
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init2;
|
|
96543
96541
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
96544
|
-
throw new
|
|
96542
|
+
throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init2.logger });
|
|
96545
96543
|
}
|
|
96546
|
-
const { fromSSO } = await import("./chunk-
|
|
96544
|
+
const { fromSSO } = await import("./chunk-env90z3g.js");
|
|
96547
96545
|
return fromSSO(init2)();
|
|
96548
96546
|
}, async () => {
|
|
96549
96547
|
init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
|
|
96550
|
-
const { fromIni } = await import("./chunk-
|
|
96548
|
+
const { fromIni } = await import("./chunk-b7b7x0pa.js");
|
|
96551
96549
|
return fromIni(init2)();
|
|
96552
96550
|
}, async () => {
|
|
96553
96551
|
init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
|
|
96554
|
-
const { fromProcess } = await import("./chunk-
|
|
96552
|
+
const { fromProcess } = await import("./chunk-76zhb40c.js");
|
|
96555
96553
|
return fromProcess(init2)();
|
|
96556
96554
|
}, async () => {
|
|
96557
96555
|
init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
|
|
96558
|
-
const { fromTokenFile } = await import("./chunk-
|
|
96556
|
+
const { fromTokenFile } = await import("./chunk-zsm2c35w.js");
|
|
96559
96557
|
return fromTokenFile(init2)();
|
|
96560
96558
|
}, async () => {
|
|
96561
96559
|
init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");
|
|
96562
96560
|
return (await remoteProvider(init2))();
|
|
96563
96561
|
}, async () => {
|
|
96564
|
-
throw new
|
|
96562
|
+
throw new CredentialsProviderError("Could not load credentials from any providers", {
|
|
96565
96563
|
tryNextLink: false,
|
|
96566
96564
|
logger: init2.logger
|
|
96567
96565
|
});
|
|
@@ -96569,7 +96567,7 @@ var defaultProvider = (init2 = {}) => import_property_provider2.memoize(import_p
|
|
|
96569
96567
|
var credentialsWillNeedRefresh = (credentials) => credentials?.expiration !== undefined;
|
|
96570
96568
|
var credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
|
|
96571
96569
|
// ../../../../node_modules/@aws-sdk/client-dynamodb/dist-es/runtimeConfig.shared.js
|
|
96572
|
-
var import_core4 = __toESM(
|
|
96570
|
+
var import_core4 = __toESM(require_dist_cjs5(), 1);
|
|
96573
96571
|
var import_util_base64 = __toESM(require_dist_cjs3(), 1);
|
|
96574
96572
|
var import_util_utf8 = __toESM(require_dist_cjs2(), 1);
|
|
96575
96573
|
|
|
@@ -105613,8 +105611,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
105613
105611
|
}, data;
|
|
105614
105612
|
}
|
|
105615
105613
|
Object.defineProperty(exports2, "__esModule", { value: true }), exports2.buildPresetChain = function* (arg, context) {
|
|
105616
|
-
const
|
|
105617
|
-
return
|
|
105614
|
+
const chain2 = yield* buildPresetChainWalker(arg, context);
|
|
105615
|
+
return chain2 ? { plugins: dedupDescriptors(chain2.plugins), presets: dedupDescriptors(chain2.presets), options: chain2.options.map((o3) => normalizeOptions(o3)), files: new Set } : null;
|
|
105618
105616
|
}, exports2.buildPresetChainWalker = undefined, exports2.buildRootChain = function* (opts, context) {
|
|
105619
105617
|
let configReport, babelRcReport;
|
|
105620
105618
|
const programmaticLogger = new _printer.ConfigPrinter, programmaticChain = yield* loadProgrammaticChain({ options: opts, dirname: context.cwd }, context, undefined, programmaticLogger);
|
|
@@ -105659,8 +105657,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
105659
105657
|
|
|
105660
105658
|
`) + `
|
|
105661
105659
|
-----End Babel configs-----`);
|
|
105662
|
-
const
|
|
105663
|
-
return { plugins: isIgnored ? [] : dedupDescriptors(
|
|
105660
|
+
const chain2 = mergeChain(mergeChain(mergeChain(emptyChain(), configFileChain), fileChain), programmaticChain);
|
|
105661
|
+
return { plugins: isIgnored ? [] : dedupDescriptors(chain2.plugins), presets: isIgnored ? [] : dedupDescriptors(chain2.presets), options: isIgnored ? [] : chain2.options.map((o3) => normalizeOptions(o3)), fileHandling: isIgnored ? "ignored" : "transpile", ignore: ignoreFile || undefined, babelrc: babelrcFile || undefined, config: configFile || undefined, files: chain2.files };
|
|
105664
105662
|
};
|
|
105665
105663
|
var _options = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/validation/options.js"), _patternToRegex = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/pattern-to-regex.js"), _printer = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/printer.js"), _rewriteStackTrace = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"), _configError = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/errors/config-error.js"), _index = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/files/index.js"), _caching = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/caching.js"), _configDescriptors = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/config/config-descriptors.js");
|
|
105666
105664
|
const debug = _debug()("babel:config:config-chain");
|
|
@@ -105676,8 +105674,8 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
105676
105674
|
return baseLogger2.configure(context2.showConfig, _printer.ChainFormatter.Config, { filepath });
|
|
105677
105675
|
}(file.filepath, context, baseLogger) });
|
|
105678
105676
|
function* loadFileChain(input, context, files, baseLogger) {
|
|
105679
|
-
const
|
|
105680
|
-
return
|
|
105677
|
+
const chain2 = yield* loadFileChainWalker(input, context, files, baseLogger);
|
|
105678
|
+
return chain2 == null || chain2.files.add(input.filepath), chain2;
|
|
105681
105679
|
}
|
|
105682
105680
|
const loadFileDescriptors = (0, _caching.makeWeakCacheSync)((file) => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors)), loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((envName) => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName))), loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((index) => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index))), loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)((file) => (0, _caching.makeStrongCacheSync)((index) => (0, _caching.makeStrongCacheSync)((envName) => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName))));
|
|
105683
105681
|
function buildRootDescriptors({ dirname: dirname22, options }, alias, descriptors) {
|
|
@@ -105720,16 +105718,16 @@ Did you specify these with the most recent transformation maps first?`);
|
|
|
105720
105718
|
}
|
|
105721
105719
|
if (flattenedConfigs.some(({ config: { options: { ignore, only } } }) => shouldIgnore(context, ignore, only, dirname22)))
|
|
105722
105720
|
return null;
|
|
105723
|
-
const
|
|
105721
|
+
const chain2 = emptyChain(), logger = createLogger(input, context, baseLogger);
|
|
105724
105722
|
for (const { config: config3, index, envName } of flattenedConfigs) {
|
|
105725
|
-
if (!(yield* mergeExtendsChain(
|
|
105723
|
+
if (!(yield* mergeExtendsChain(chain2, config3.options, dirname22, context, files, baseLogger)))
|
|
105726
105724
|
return null;
|
|
105727
|
-
logger(config3, index, envName), yield* mergeChainOpts(
|
|
105725
|
+
logger(config3, index, envName), yield* mergeChainOpts(chain2, config3);
|
|
105728
105726
|
}
|
|
105729
|
-
return
|
|
105727
|
+
return chain2;
|
|
105730
105728
|
};
|
|
105731
105729
|
}
|
|
105732
|
-
function* mergeExtendsChain(
|
|
105730
|
+
function* mergeExtendsChain(chain2, opts, dirname22, context, files, baseLogger) {
|
|
105733
105731
|
if (opts.extends === undefined)
|
|
105734
105732
|
return true;
|
|
105735
105733
|
const file = yield* (0, _index.loadConfig)(opts.extends, dirname22, context.envName, context.caller);
|
|
@@ -105740,7 +105738,7 @@ File already loaded following the config chain:
|
|
|
105740
105738
|
`));
|
|
105741
105739
|
files.add(file);
|
|
105742
105740
|
const fileChain = yield* loadFileChain(validateExtendFile(file), context, files, baseLogger);
|
|
105743
|
-
return files.delete(file), !!fileChain && (mergeChain(
|
|
105741
|
+
return files.delete(file), !!fileChain && (mergeChain(chain2, fileChain), true);
|
|
105744
105742
|
}
|
|
105745
105743
|
function mergeChain(target, source) {
|
|
105746
105744
|
target.options.push(...source.options), target.plugins.push(...source.plugins), target.presets.push(...source.presets);
|
|
@@ -106568,7 +106566,7 @@ to your top-level package.json.
|
|
|
106568
106566
|
const pluginObj = (0, _plugins.validatePluginObject)(value2), plugin = Object.assign({}, pluginObj);
|
|
106569
106567
|
if (plugin.visitor && (plugin.visitor = _traverse().default.explode(Object.assign({}, plugin.visitor))), plugin.inherits) {
|
|
106570
106568
|
const inheritsDescriptor = { name: undefined, alias: `${alias}$inherits`, value: plugin.inherits, options, dirname: dirname22 }, inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, (run) => cache3.invalidate((data) => run(inheritsDescriptor, data)));
|
|
106571
|
-
plugin.pre =
|
|
106569
|
+
plugin.pre = chain2(inherits.pre, plugin.pre), plugin.post = chain2(inherits.post, plugin.post), plugin.manipulateOptions = chain2(inherits.manipulateOptions, plugin.manipulateOptions), plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]), inherits.externalDependencies.length > 0 && (externalDependencies = externalDependencies.length === 0 ? inherits.externalDependencies : (0, _deepArray.finalize)([externalDependencies, inherits.externalDependencies]));
|
|
106572
106570
|
}
|
|
106573
106571
|
return new _plugin.default(plugin, options, alias, externalDependencies);
|
|
106574
106572
|
});
|
|
@@ -106597,7 +106595,7 @@ to your top-level package.json.
|
|
|
106597
106595
|
const preset = instantiatePreset(yield* presetDescriptorLoader(descriptor, context2));
|
|
106598
106596
|
return validatePreset(preset, context2, descriptor), { chain: yield* (0, _configChain.buildPresetChain)(preset, context2), externalDependencies: preset.externalDependencies };
|
|
106599
106597
|
}
|
|
106600
|
-
function
|
|
106598
|
+
function chain2(a3, b3) {
|
|
106601
106599
|
const fns = [a3, b3].filter(Boolean);
|
|
106602
106600
|
return fns.length <= 1 ? fns[0] : function(...args) {
|
|
106603
106601
|
for (const fn of fns)
|
|
@@ -115986,8 +115984,8 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
|
|
|
115986
115984
|
const node = super.parseSubscript(base, startLoc, noCalls, state);
|
|
115987
115985
|
if (state.optionalChainMember) {
|
|
115988
115986
|
if (node.type !== "OptionalMemberExpression" && node.type !== "OptionalCallExpression" || (node.type = node.type.substring(8)), state.stop) {
|
|
115989
|
-
const
|
|
115990
|
-
return
|
|
115987
|
+
const chain2 = this.startNodeAtNode(node);
|
|
115988
|
+
return chain2.expression = node, this.finishNode(chain2, "ChainExpression");
|
|
115991
115989
|
}
|
|
115992
115990
|
} else
|
|
115993
115991
|
node.type !== "MemberExpression" && node.type !== "CallExpression" || (node.optional = false);
|
|
@@ -121171,19 +121169,19 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
|
|
|
121171
121169
|
const checks = [];
|
|
121172
121170
|
let tmpVar;
|
|
121173
121171
|
for (let i3 = optionals.length - 1;i3 >= 0; i3--) {
|
|
121174
|
-
const node = optionals[i3], isCall = core.types.isCallExpression(node), chainWithTypes = isCall ? node.callee : node.object,
|
|
121172
|
+
const node = optionals[i3], isCall = core.types.isCallExpression(node), chainWithTypes = isCall ? node.callee : node.object, chain2 = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(chainWithTypes);
|
|
121175
121173
|
let ref, check2;
|
|
121176
|
-
if (isCall && core.types.isIdentifier(
|
|
121177
|
-
if (pureGetters && isSimpleMemberExpression(
|
|
121174
|
+
if (isCall && core.types.isIdentifier(chain2, { name: "eval" }) ? (check2 = ref = chain2, node.callee = core.types.sequenceExpression([core.types.numericLiteral(0), ref])) : pureGetters && isCall && isSimpleMemberExpression(chain2) ? check2 = ref = node.callee : scope.isStatic(chain2) ? check2 = ref = chainWithTypes : (tmpVar && !isCall || (tmpVar = scope.generateUidIdentifierBasedOnNode(chain2), scope.push({ id: core.types.cloneNode(tmpVar) })), ref = tmpVar, check2 = core.types.assignmentExpression("=", core.types.cloneNode(tmpVar), chainWithTypes), isCall ? node.callee = ref : node.object = ref), isCall && core.types.isMemberExpression(chain2))
|
|
121175
|
+
if (pureGetters && isSimpleMemberExpression(chain2))
|
|
121178
121176
|
node.callee = chainWithTypes;
|
|
121179
121177
|
else {
|
|
121180
|
-
const { object } =
|
|
121178
|
+
const { object } = chain2;
|
|
121181
121179
|
let context;
|
|
121182
121180
|
if (core.types.isSuper(object))
|
|
121183
121181
|
context = core.types.thisExpression();
|
|
121184
121182
|
else {
|
|
121185
121183
|
const memoized = scope.maybeGenerateMemoised(object);
|
|
121186
|
-
memoized ? (context = memoized,
|
|
121184
|
+
memoized ? (context = memoized, chain2.object = core.types.assignmentExpression("=", memoized, object)) : context = object;
|
|
121187
121185
|
}
|
|
121188
121186
|
node.arguments.unshift(core.types.cloneNode(context)), node.callee = core.types.memberExpression(node.callee, core.types.identifier("call"));
|
|
121189
121187
|
}
|
|
@@ -127333,7 +127331,7 @@ ${errors3.join(`
|
|
|
127333
127331
|
`)}`);
|
|
127334
127332
|
}
|
|
127335
127333
|
return validate2.shapeOf = shape, validate2;
|
|
127336
|
-
}, exports2.assertValueType = assertValueType, exports2.chain =
|
|
127334
|
+
}, exports2.assertValueType = assertValueType, exports2.chain = chain2, exports2.default = defineType, exports2.defineAliasedType = function(...aliases) {
|
|
127337
127335
|
return (type, opts = {}) => {
|
|
127338
127336
|
let defined = opts.aliases;
|
|
127339
127337
|
var _store$opts$inherits$;
|
|
@@ -127362,7 +127360,7 @@ ${errors3.join(`
|
|
|
127362
127360
|
return typeof typeName == "string" ? assertNodeType(typeName) : assertNodeType(...typeName);
|
|
127363
127361
|
}
|
|
127364
127362
|
function arrayOf(elementType) {
|
|
127365
|
-
return
|
|
127363
|
+
return chain2(assertValueType("array"), assertEach(elementType));
|
|
127366
127364
|
}
|
|
127367
127365
|
function arrayOfType(typeName) {
|
|
127368
127366
|
return arrayOf(typeIs(typeName));
|
|
@@ -127393,7 +127391,7 @@ ${errors3.join(`
|
|
|
127393
127391
|
}
|
|
127394
127392
|
return validate2.type = type, validate2;
|
|
127395
127393
|
}
|
|
127396
|
-
function
|
|
127394
|
+
function chain2(...fns) {
|
|
127397
127395
|
function validate2(...args) {
|
|
127398
127396
|
for (const fn of fns)
|
|
127399
127397
|
fn(...args);
|
|
@@ -155883,22 +155881,22 @@ var init_ProviderError = __esm2(() => {
|
|
|
155883
155881
|
}
|
|
155884
155882
|
};
|
|
155885
155883
|
});
|
|
155886
|
-
var
|
|
155884
|
+
var CredentialsProviderError2;
|
|
155887
155885
|
var init_CredentialsProviderError = __esm2(() => {
|
|
155888
155886
|
init_ProviderError();
|
|
155889
|
-
|
|
155887
|
+
CredentialsProviderError2 = class CredentialsProviderError3 extends ProviderError {
|
|
155890
155888
|
constructor(message, tryNextLink = true) {
|
|
155891
155889
|
super(message, tryNextLink);
|
|
155892
155890
|
this.tryNextLink = tryNextLink;
|
|
155893
155891
|
this.name = "CredentialsProviderError";
|
|
155894
|
-
Object.setPrototypeOf(this,
|
|
155892
|
+
Object.setPrototypeOf(this, CredentialsProviderError3.prototype);
|
|
155895
155893
|
}
|
|
155896
155894
|
};
|
|
155897
155895
|
});
|
|
155898
155896
|
var init_TokenProviderError = __esm2(() => {
|
|
155899
155897
|
init_ProviderError();
|
|
155900
155898
|
});
|
|
155901
|
-
var
|
|
155899
|
+
var chain2 = (...providers2) => async () => {
|
|
155902
155900
|
if (providers2.length === 0) {
|
|
155903
155901
|
throw new ProviderError("No providers in chain");
|
|
155904
155902
|
}
|
|
@@ -155979,7 +155977,7 @@ var fromEnv2 = (envVarSelector) => async () => {
|
|
|
155979
155977
|
}
|
|
155980
155978
|
return config3;
|
|
155981
155979
|
} catch (e22) {
|
|
155982
|
-
throw new
|
|
155980
|
+
throw new CredentialsProviderError2(e22.message || `Cannot load config from environment variables with getter: ${envVarSelector}`);
|
|
155983
155981
|
}
|
|
155984
155982
|
};
|
|
155985
155983
|
var init_fromEnv = __esm2(() => {
|
|
@@ -156171,7 +156169,7 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
|
|
|
156171
156169
|
}
|
|
156172
156170
|
return configValue;
|
|
156173
156171
|
} catch (e22) {
|
|
156174
|
-
throw new
|
|
156172
|
+
throw new CredentialsProviderError2(e22.message || `Cannot load config for profile ${profile2} in SDK configuration files with getter: ${configSelector}`);
|
|
156175
156173
|
}
|
|
156176
156174
|
};
|
|
156177
156175
|
var init_fromSharedConfigFiles = __esm2(() => {
|
|
@@ -156183,7 +156181,7 @@ var fromStatic3 = (defaultValue) => isFunction22(defaultValue) ? async () => awa
|
|
|
156183
156181
|
var init_fromStatic = __esm2(() => {
|
|
156184
156182
|
init_dist_es4();
|
|
156185
156183
|
});
|
|
156186
|
-
var loadConfig2 = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize2(
|
|
156184
|
+
var loadConfig2 = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize2(chain2(fromEnv2(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic3(defaultValue)));
|
|
156187
156185
|
var init_configLoader = __esm2(() => {
|
|
156188
156186
|
init_dist_es4();
|
|
156189
156187
|
init_fromEnv();
|
|
@@ -179230,6 +179228,8 @@ var invoices = (() => {
|
|
|
179230
179228
|
})();
|
|
179231
179229
|
// ../../orm/src/models/WaitlistProduct.ts
|
|
179232
179230
|
import { HttpError as HttpError43 } from "@stacksjs/error-handling";
|
|
179231
|
+
// ../../orm/src/models/WaitlistRestaurant.ts
|
|
179232
|
+
import { HttpError as HttpError44 } from "@stacksjs/error-handling";
|
|
179233
179233
|
// ../orm/src/db.ts
|
|
179234
179234
|
class DB {
|
|
179235
179235
|
static dbInstance = null;
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
resolveRegionConfig,
|
|
34
34
|
resolveRetryConfig,
|
|
35
35
|
resolveUserAgentConfig
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6r2cfyvs.js";
|
|
37
37
|
import {
|
|
38
38
|
loadConfig,
|
|
39
39
|
parseUrl
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-7s5qcjkt.js";
|
|
41
41
|
import"./chunk-bf8bq8pc.js";
|
|
42
42
|
import {
|
|
43
43
|
Client,
|
|
@@ -62,18 +62,18 @@ import {
|
|
|
62
62
|
streamCollector,
|
|
63
63
|
take,
|
|
64
64
|
withBaseException
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-xt9exr2c.js";
|
|
66
|
+
import"./chunk-zzerxbrm.js";
|
|
66
67
|
import {
|
|
67
68
|
require_dist_cjs2 as require_dist_cjs3,
|
|
68
|
-
require_dist_cjs4
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
require_dist_cjs5 as require_dist_cjs4
|
|
70
|
+
} from "./chunk-veja9rez.js";
|
|
70
71
|
import {
|
|
71
72
|
require_dist_cjs3 as require_dist_cjs,
|
|
72
73
|
require_dist_cjs4 as require_dist_cjs2
|
|
73
74
|
} from "./chunk-a7k3cdby.js";
|
|
74
75
|
import"./chunk-frw3va9v.js";
|
|
75
76
|
import"./chunk-saqpg5nd.js";
|
|
76
|
-
import"./chunk-2m04vhea.js";
|
|
77
77
|
import {
|
|
78
78
|
__toESM
|
|
79
79
|
} from "./chunk-9v6qtbez.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";
|
|
@@ -74,6 +74,11 @@ route.post("license-keys", "LicenseKeyStoreOrmAction");
|
|
|
74
74
|
route.get("license-keys/{id}", "LicenseKeyShowOrmAction");
|
|
75
75
|
route.patch("license-keys/{id}", "LicenseKeyUpdateOrmAction");
|
|
76
76
|
route.delete("license-keys/{id}", "LicenseKeyDestroyOrmAction");
|
|
77
|
+
route.get("waitlist-restaurants", "WaitlistRestaurantIndexOrmAction");
|
|
78
|
+
route.post("waitlist-restaurants", "WaitlistRestaurantStoreOrmAction");
|
|
79
|
+
route.get("waitlist-restaurants/{id}", "WaitlistRestaurantShowOrmAction");
|
|
80
|
+
route.patch("waitlist-restaurants/{id}", "WaitlistRestaurantUpdateOrmAction");
|
|
81
|
+
route.delete("waitlist-restaurants/{id}", "WaitlistRestaurantDestroyOrmAction");
|
|
77
82
|
route.get("product-reviews", "ReviewIndexOrmAction");
|
|
78
83
|
route.post("product-reviews", "ReviewStoreOrmAction");
|
|
79
84
|
route.get("product-reviews/{id}", "ReviewShowOrmAction");
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CredentialsProviderError
|
|
4
|
+
} from "./chunk-zzerxbrm.js";
|
|
2
5
|
import {
|
|
3
6
|
require_client
|
|
4
7
|
} from "./chunk-frw3va9v.js";
|
|
5
|
-
import {
|
|
6
|
-
require_dist_cjs
|
|
7
|
-
} from "./chunk-2m04vhea.js";
|
|
8
8
|
import {
|
|
9
9
|
__toESM
|
|
10
10
|
} from "./chunk-9v6qtbez.js";
|
|
11
11
|
|
|
12
12
|
// ../../../../node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
13
13
|
var import_client = __toESM(require_client(), 1);
|
|
14
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
15
14
|
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
|
16
15
|
var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
|
17
16
|
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
|
@@ -38,7 +37,7 @@ var fromEnv = (init) => async () => {
|
|
|
38
37
|
import_client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
|
|
39
38
|
return credentials;
|
|
40
39
|
}
|
|
41
|
-
throw new
|
|
40
|
+
throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
|
42
41
|
};
|
|
43
42
|
export {
|
|
44
43
|
fromEnv,
|
|
@@ -2,22 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
loadConfig,
|
|
4
4
|
parseUrl
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7s5qcjkt.js";
|
|
6
6
|
import"./chunk-bf8bq8pc.js";
|
|
7
|
-
import"./chunk-saqpg5nd.js";
|
|
8
|
-
import {
|
|
9
|
-
require_dist_cjs
|
|
10
|
-
} from "./chunk-2m04vhea.js";
|
|
11
7
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
CredentialsProviderError,
|
|
9
|
+
ProviderError
|
|
10
|
+
} from "./chunk-zzerxbrm.js";
|
|
11
|
+
import"./chunk-saqpg5nd.js";
|
|
12
|
+
import"./chunk-9v6qtbez.js";
|
|
14
13
|
|
|
15
14
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js
|
|
16
|
-
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
17
15
|
import { parse } from "node:url";
|
|
18
16
|
|
|
19
17
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js
|
|
20
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
21
18
|
import { Buffer } from "node:buffer";
|
|
22
19
|
import { request } from "node:http";
|
|
23
20
|
function httpRequest(options) {
|
|
@@ -28,17 +25,17 @@ function httpRequest(options) {
|
|
|
28
25
|
hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
|
|
29
26
|
});
|
|
30
27
|
req.on("error", (err) => {
|
|
31
|
-
reject(Object.assign(new
|
|
28
|
+
reject(Object.assign(new ProviderError("Unable to connect to instance metadata service"), err));
|
|
32
29
|
req.destroy();
|
|
33
30
|
});
|
|
34
31
|
req.on("timeout", () => {
|
|
35
|
-
reject(new
|
|
32
|
+
reject(new ProviderError("TimeoutError from instance metadata service"));
|
|
36
33
|
req.destroy();
|
|
37
34
|
});
|
|
38
35
|
req.on("response", (res) => {
|
|
39
36
|
const { statusCode = 400 } = res;
|
|
40
37
|
if (statusCode < 200 || 300 <= statusCode) {
|
|
41
|
-
reject(Object.assign(new
|
|
38
|
+
reject(Object.assign(new ProviderError("Error response received from instance metadata service"), { statusCode }));
|
|
42
39
|
req.destroy();
|
|
43
40
|
}
|
|
44
41
|
const chunks = [];
|
|
@@ -88,7 +85,7 @@ var fromContainerMetadata = (init = {}) => {
|
|
|
88
85
|
const requestOptions = await getCmdsUri({ logger: init.logger });
|
|
89
86
|
const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
|
|
90
87
|
if (!isImdsCredentials(credsResponse)) {
|
|
91
|
-
throw new
|
|
88
|
+
throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
92
89
|
logger: init.logger
|
|
93
90
|
});
|
|
94
91
|
}
|
|
@@ -127,13 +124,13 @@ var getCmdsUri = async ({ logger }) => {
|
|
|
127
124
|
if (process.env[ENV_CMDS_FULL_URI]) {
|
|
128
125
|
const parsed = parse(process.env[ENV_CMDS_FULL_URI]);
|
|
129
126
|
if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
|
|
130
|
-
throw new
|
|
127
|
+
throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
|
|
131
128
|
tryNextLink: false,
|
|
132
129
|
logger
|
|
133
130
|
});
|
|
134
131
|
}
|
|
135
132
|
if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
|
|
136
|
-
throw new
|
|
133
|
+
throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
|
|
137
134
|
tryNextLink: false,
|
|
138
135
|
logger
|
|
139
136
|
});
|
|
@@ -143,18 +140,13 @@ var getCmdsUri = async ({ logger }) => {
|
|
|
143
140
|
port: parsed.port ? parseInt(parsed.port, 10) : undefined
|
|
144
141
|
};
|
|
145
142
|
}
|
|
146
|
-
throw new
|
|
143
|
+
throw new CredentialsProviderError("The container metadata credential provider cannot be used unless" + ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` + " variable is set", {
|
|
147
144
|
tryNextLink: false,
|
|
148
145
|
logger
|
|
149
146
|
});
|
|
150
147
|
};
|
|
151
|
-
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js
|
|
152
|
-
var import_property_provider4 = __toESM(require_dist_cjs(), 1);
|
|
153
|
-
|
|
154
148
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
class InstanceMetadataV1FallbackError extends import_property_provider3.CredentialsProviderError {
|
|
149
|
+
class InstanceMetadataV1FallbackError extends CredentialsProviderError {
|
|
158
150
|
constructor(message, tryNextLink = true) {
|
|
159
151
|
super(message, tryNextLink);
|
|
160
152
|
this.tryNextLink = tryNextLink;
|
|
@@ -272,7 +264,7 @@ var getInstanceMetadataProvider = (init = {}) => {
|
|
|
272
264
|
const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
|
|
273
265
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
274
266
|
if (envValue === undefined) {
|
|
275
|
-
throw new
|
|
267
|
+
throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
|
|
276
268
|
}
|
|
277
269
|
return fallbackBlockedFromProcessEnv;
|
|
278
270
|
},
|
|
@@ -366,7 +358,7 @@ var getCredentialsFromProfile = async (profile, options, init) => {
|
|
|
366
358
|
path: IMDS_PATH + profile
|
|
367
359
|
})).toString());
|
|
368
360
|
if (!isImdsCredentials(credentialsResponse)) {
|
|
369
|
-
throw new
|
|
361
|
+
throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
370
362
|
logger: init.logger
|
|
371
363
|
});
|
|
372
364
|
}
|