gemi 0.4.85 → 0.4.87
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/app/App.d.ts +1 -1
- package/dist/app/App.d.ts.map +1 -1
- package/dist/app/index.js +1 -141
- package/dist/app/prismaExtension.d.ts +1 -5
- package/dist/app/prismaExtension.d.ts.map +1 -1
- package/dist/bin/index.js +124 -69
- package/dist/chunk-28694e5e949df0ff.js +2 -0
- package/dist/chunk-332553172e3ab961.js +2 -0
- package/dist/chunk-43b1a27bc037bc09.js +2 -0
- package/dist/chunk-519593bc19f7cb9f.js +18 -0
- package/dist/chunk-5806220e55ac164c.js +1 -0
- package/dist/chunk-5f01223b8fbe1ed8.js +2 -0
- package/dist/chunk-6434d2c5758f4125.js +2 -0
- package/dist/chunk-69b5648fcd0f0a18.js +3 -0
- package/dist/{chunk-b99af11a56fdd395.js → chunk-6b18189b2aabf6b7.js} +1 -1
- package/dist/chunk-8e55cff6329b67a9.js +2 -0
- package/dist/chunk-8ee09f1f74206a04.js +1 -1
- package/dist/chunk-8f2c54f2cd43402a.js +2 -0
- package/dist/chunk-9383d727762ecba1.js +2 -0
- package/dist/chunk-b38c0c4618d0dd89.js +2 -0
- package/dist/chunk-b3eca9338a13f510.js +2 -0
- package/dist/chunk-b4cbb4706a35f5d5.js +2 -0
- package/dist/chunk-c160211e5cc4c447.js +2 -0
- package/dist/chunk-c4b0f134a6b82c51.js +2 -0
- package/dist/chunk-cc7158438e52b9ab.js +9 -0
- package/dist/chunk-d0b9873261cd82b7.js +6 -0
- package/dist/{chunk-63e9bc71922dbe80.js → chunk-fa61561237819f16.js} +1 -1
- package/dist/client/index.js +10 -10
- package/dist/facades/index.js +1 -1
- package/dist/kernel/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/services/index.js +1 -10
- package/dist/vite/{index-BDp-rm3S.mjs → index-CePL3kqT.mjs} +15 -11
- package/dist/vite/index.mjs +1 -1
- package/dist/vite/{typescript-x31i_8Ji.mjs → typescript-CaGEH4-o.mjs} +45 -23
- package/package.json +7 -1
- package/dist/app/createFlatApiRoutes.d.ts +0 -12
- package/dist/app/createFlatApiRoutes.d.ts.map +0 -1
- package/dist/chunk-0ddb821fe8124f54.js +0 -9
- package/dist/chunk-2335866508ec8b1b.js +0 -2
- package/dist/chunk-25ee58bc6072bd58.js +0 -2
- package/dist/chunk-2786cd9024d0d164.js +0 -2
- package/dist/chunk-3043d333fa68d342.js +0 -2
- package/dist/chunk-309e27a19cd3a645.js +0 -18
- package/dist/chunk-38315b1e3dd78ca7.js +0 -2
- package/dist/chunk-63c98893e07b1644.js +0 -2
- package/dist/chunk-8b950df276d04054.js +0 -2
- package/dist/chunk-9007899b37535873.js +0 -2
- package/dist/chunk-958e406572d457ca.js +0 -2
- package/dist/chunk-c27a654eada9167e.js +0 -2
- package/dist/chunk-c6ab6f8e07a028ac.js +0 -6
- package/dist/chunk-d16ef78d852a6856.js +0 -1
- package/dist/chunk-da07ce723d8218db.js +0 -3
- package/dist/chunk-f6a80fc55311e0c8.js +0 -2
- package/dist/chunk-f9f264ce0c8e9699.js +0 -2
- package/dist/chunk-ff8cd8fd047cfee5.js +0 -2
|
@@ -153,8 +153,8 @@ function __generator(thisArg, body) {
|
|
|
153
153
|
var _ = { label: 0, sent: function() {
|
|
154
154
|
if (t[0] & 1) throw t[1];
|
|
155
155
|
return t[1];
|
|
156
|
-
}, trys: [], ops: [] }, f, y, t, g;
|
|
157
|
-
return g =
|
|
156
|
+
}, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
157
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
158
158
|
return this;
|
|
159
159
|
}), g;
|
|
160
160
|
function verb(n) {
|
|
@@ -289,7 +289,7 @@ function __await(v) {
|
|
|
289
289
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
290
290
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
291
291
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
292
|
-
return i =
|
|
292
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
|
|
293
293
|
return this;
|
|
294
294
|
}, i;
|
|
295
295
|
function awaitReturn(f) {
|
|
@@ -435,19 +435,23 @@ function __disposeResources(env) {
|
|
|
435
435
|
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
436
436
|
env.hasError = true;
|
|
437
437
|
}
|
|
438
|
+
var r, s = 0;
|
|
438
439
|
function next() {
|
|
439
|
-
while (env.stack.
|
|
440
|
-
var rec = env.stack.pop();
|
|
440
|
+
while (r = env.stack.pop()) {
|
|
441
441
|
try {
|
|
442
|
-
|
|
443
|
-
if (
|
|
444
|
-
|
|
445
|
-
return next()
|
|
446
|
-
|
|
442
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
443
|
+
if (r.dispose) {
|
|
444
|
+
var result = r.dispose.call(r.value);
|
|
445
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {
|
|
446
|
+
fail(e);
|
|
447
|
+
return next();
|
|
448
|
+
});
|
|
449
|
+
} else s |= 1;
|
|
447
450
|
} catch (e) {
|
|
448
451
|
fail(e);
|
|
449
452
|
}
|
|
450
453
|
}
|
|
454
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
451
455
|
if (env.hasError) throw env.error;
|
|
452
456
|
}
|
|
453
457
|
return next();
|
|
@@ -19949,7 +19953,7 @@ async function customRequestParser(original) {
|
|
|
19949
19953
|
}
|
|
19950
19954
|
}
|
|
19951
19955
|
const orgFile = await main$2.parse(original, {
|
|
19952
|
-
parser: await import("./typescript-
|
|
19956
|
+
parser: await import("./typescript-CaGEH4-o.mjs").then((n) => n.t)
|
|
19953
19957
|
});
|
|
19954
19958
|
for (const body of orgFile.program.body) {
|
|
19955
19959
|
if (!body || (body == null ? void 0 : body.type) === "ImportDeclaration") {
|
package/dist/vite/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as requireUtil, a as require$$0 } from "./index-
|
|
1
|
+
import { r as requireUtil, a as require$$0 } from "./index-CePL3kqT.mjs";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -431,6 +431,19 @@ function requireLib() {
|
|
|
431
431
|
syntaxPlugin
|
|
432
432
|
}) {
|
|
433
433
|
const hasMissingPlugin = reasonCode === "MissingPlugin" || reasonCode === "MissingOneOfPlugins";
|
|
434
|
+
{
|
|
435
|
+
const oldReasonCodes = {
|
|
436
|
+
AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter",
|
|
437
|
+
AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters",
|
|
438
|
+
ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",
|
|
439
|
+
SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter",
|
|
440
|
+
SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter",
|
|
441
|
+
SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType"
|
|
442
|
+
};
|
|
443
|
+
if (oldReasonCodes[reasonCode]) {
|
|
444
|
+
reasonCode = oldReasonCodes[reasonCode];
|
|
445
|
+
}
|
|
446
|
+
}
|
|
434
447
|
return function constructor(loc, details) {
|
|
435
448
|
const error = new SyntaxError();
|
|
436
449
|
error.code = code2;
|
|
@@ -7453,12 +7466,12 @@ function requireLib() {
|
|
|
7453
7466
|
AbstractPropertyHasInitializer: ({
|
|
7454
7467
|
propertyName
|
|
7455
7468
|
}) => `Property '${propertyName}' cannot have an initializer because it is marked abstract.`,
|
|
7456
|
-
AccesorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.",
|
|
7457
|
-
AccesorCannotHaveTypeParameters: "An accessor cannot have type parameters.",
|
|
7458
7469
|
AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.",
|
|
7470
|
+
AccessorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.",
|
|
7471
|
+
AccessorCannotHaveTypeParameters: "An accessor cannot have type parameters.",
|
|
7459
7472
|
ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.",
|
|
7460
7473
|
ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.",
|
|
7461
|
-
|
|
7474
|
+
ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",
|
|
7462
7475
|
ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.",
|
|
7463
7476
|
DeclareAccessor: ({
|
|
7464
7477
|
kind
|
|
@@ -7517,9 +7530,9 @@ function requireLib() {
|
|
|
7517
7530
|
ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.",
|
|
7518
7531
|
ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",
|
|
7519
7532
|
ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7533
|
+
SetAccessorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.",
|
|
7534
|
+
SetAccessorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.",
|
|
7535
|
+
SetAccessorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.",
|
|
7523
7536
|
SingleTypeParameterWithoutTrailingComma: ({
|
|
7524
7537
|
typeParameterName
|
|
7525
7538
|
}) => `Single type parameter ${typeParameterName} should have a trailing comma. Example usage: <${typeParameterName},>.`,
|
|
@@ -7597,12 +7610,22 @@ function requireLib() {
|
|
|
7597
7610
|
return tokenIsIdentifier(this.state.type);
|
|
7598
7611
|
}
|
|
7599
7612
|
tsTokenCanFollowModifier() {
|
|
7600
|
-
return
|
|
7613
|
+
return this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(138) || this.isLiteralPropertyName();
|
|
7601
7614
|
}
|
|
7602
|
-
|
|
7615
|
+
tsNextTokenOnSameLineAndCanFollowModifier() {
|
|
7603
7616
|
this.next();
|
|
7617
|
+
if (this.hasPrecedingLineBreak()) {
|
|
7618
|
+
return false;
|
|
7619
|
+
}
|
|
7604
7620
|
return this.tsTokenCanFollowModifier();
|
|
7605
7621
|
}
|
|
7622
|
+
tsNextTokenCanFollowModifier() {
|
|
7623
|
+
if (this.match(106)) {
|
|
7624
|
+
this.next();
|
|
7625
|
+
return this.tsTokenCanFollowModifier();
|
|
7626
|
+
}
|
|
7627
|
+
return this.tsNextTokenOnSameLineAndCanFollowModifier();
|
|
7628
|
+
}
|
|
7606
7629
|
tsParseModifier(allowedModifiers, stopOnStartOfClassStaticBlock) {
|
|
7607
7630
|
if (!tokenIsIdentifier(this.state.type) && this.state.type !== 58 && this.state.type !== 75) {
|
|
7608
7631
|
return void 0;
|
|
@@ -7926,7 +7949,7 @@ function requireLib() {
|
|
|
7926
7949
|
}
|
|
7927
7950
|
const method = nodeAny;
|
|
7928
7951
|
if (method.kind && this.match(47)) {
|
|
7929
|
-
this.raise(TSErrors.
|
|
7952
|
+
this.raise(TSErrors.AccessorCannotHaveTypeParameters, this.state.curPosition());
|
|
7930
7953
|
}
|
|
7931
7954
|
this.tsFillSignature(14, method);
|
|
7932
7955
|
this.tsParseTypeMemberSemicolon();
|
|
@@ -7936,7 +7959,7 @@ function requireLib() {
|
|
|
7936
7959
|
if (method[paramsKey].length > 0) {
|
|
7937
7960
|
this.raise(Errors.BadGetterArity, this.state.curPosition());
|
|
7938
7961
|
if (this.isThisParam(method[paramsKey][0])) {
|
|
7939
|
-
this.raise(TSErrors.
|
|
7962
|
+
this.raise(TSErrors.AccessorCannotDeclareThisParameter, this.state.curPosition());
|
|
7940
7963
|
}
|
|
7941
7964
|
}
|
|
7942
7965
|
} else if (method.kind === "set") {
|
|
@@ -7945,17 +7968,17 @@ function requireLib() {
|
|
|
7945
7968
|
} else {
|
|
7946
7969
|
const firstParameter = method[paramsKey][0];
|
|
7947
7970
|
if (this.isThisParam(firstParameter)) {
|
|
7948
|
-
this.raise(TSErrors.
|
|
7971
|
+
this.raise(TSErrors.AccessorCannotDeclareThisParameter, this.state.curPosition());
|
|
7949
7972
|
}
|
|
7950
7973
|
if (firstParameter.type === "Identifier" && firstParameter.optional) {
|
|
7951
|
-
this.raise(TSErrors.
|
|
7974
|
+
this.raise(TSErrors.SetAccessorCannotHaveOptionalParameter, this.state.curPosition());
|
|
7952
7975
|
}
|
|
7953
7976
|
if (firstParameter.type === "RestElement") {
|
|
7954
|
-
this.raise(TSErrors.
|
|
7977
|
+
this.raise(TSErrors.SetAccessorCannotHaveRestParameter, this.state.curPosition());
|
|
7955
7978
|
}
|
|
7956
7979
|
}
|
|
7957
7980
|
if (method[returnTypeKey]) {
|
|
7958
|
-
this.raise(TSErrors.
|
|
7981
|
+
this.raise(TSErrors.SetAccessorCannotHaveReturnType, method[returnTypeKey]);
|
|
7959
7982
|
}
|
|
7960
7983
|
} else {
|
|
7961
7984
|
method.kind = "method";
|
|
@@ -8029,12 +8052,6 @@ function requireLib() {
|
|
|
8029
8052
|
this.next();
|
|
8030
8053
|
return this.match(58);
|
|
8031
8054
|
}
|
|
8032
|
-
tsParseMappedTypeParameter() {
|
|
8033
|
-
const node = this.startNode();
|
|
8034
|
-
node.name = this.tsParseTypeParameterName();
|
|
8035
|
-
node.constraint = this.tsExpectThenParseType(58);
|
|
8036
|
-
return this.finishNode(node, "TSTypeParameter");
|
|
8037
|
-
}
|
|
8038
8055
|
tsParseMappedType() {
|
|
8039
8056
|
const node = this.startNode();
|
|
8040
8057
|
this.expect(5);
|
|
@@ -8046,7 +8063,12 @@ function requireLib() {
|
|
|
8046
8063
|
node.readonly = true;
|
|
8047
8064
|
}
|
|
8048
8065
|
this.expect(0);
|
|
8049
|
-
|
|
8066
|
+
{
|
|
8067
|
+
const typeParameter = this.startNode();
|
|
8068
|
+
typeParameter.name = this.tsParseTypeParameterName();
|
|
8069
|
+
typeParameter.constraint = this.tsExpectThenParseType(58);
|
|
8070
|
+
node.typeParameter = this.finishNode(typeParameter, "TSTypeParameter");
|
|
8071
|
+
}
|
|
8050
8072
|
node.nameType = this.eatContextual(93) ? this.tsParseType() : null;
|
|
8051
8073
|
this.expect(3);
|
|
8052
8074
|
if (this.match(53)) {
|
|
@@ -9182,7 +9204,7 @@ function requireLib() {
|
|
|
9182
9204
|
if (kind !== "const" || !!id.typeAnnotation) {
|
|
9183
9205
|
this.raise(TSErrors.InitializerNotAllowedInAmbientContext, init);
|
|
9184
9206
|
} else if (!isValidAmbientConstInitializer(init, this.hasPlugin("estree"))) {
|
|
9185
|
-
this.raise(TSErrors.
|
|
9207
|
+
this.raise(TSErrors.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, init);
|
|
9186
9208
|
}
|
|
9187
9209
|
}
|
|
9188
9210
|
return declaration;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gemi",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.87",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@babel/parser": "^7.25.4",
|
|
6
6
|
"@repo/eslint-config": "*",
|
|
@@ -62,5 +62,11 @@
|
|
|
62
62
|
"temporal-polyfill": "^0.2.5",
|
|
63
63
|
"urlpattern-polyfill": "^10.0.0",
|
|
64
64
|
"uuid": "^9.0.1"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"@types/react": "*",
|
|
68
|
+
"@types/react-dom": "*",
|
|
69
|
+
"react": "^19.0.0-rc",
|
|
70
|
+
"react-dom": "^19.0.0-rc"
|
|
65
71
|
}
|
|
66
72
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Middleware } from "../http";
|
|
2
|
-
import { ApiRoutes } from "../http/ApiRouter";
|
|
3
|
-
import { RouterMiddleware } from "../http/Router";
|
|
4
|
-
type ApiRouteExec = any;
|
|
5
|
-
export declare function createFlatApiRoutes(routes: ApiRoutes): {
|
|
6
|
-
[k: string]: Record<string, {
|
|
7
|
-
exec: ApiRouteExec;
|
|
8
|
-
middleware: (string | (new () => Middleware) | RouterMiddleware)[];
|
|
9
|
-
}>;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=createFlatApiRoutes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createFlatApiRoutes.d.ts","sourceRoot":"","sources":["../../app/createFlatApiRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,SAAS,EAIV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,KAAK,YAAY,GAAG,GAAG,CAAC;AAQxB,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS;;cAMvC,YAAY;oBACN,CAAC,MAAM,GAAG,CAAC,UAAU,UAAU,CAAC,GAAG,gBAAgB,CAAC,EAAE;;EA+DzE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{u as $,v as w,w as z} from"./chunk-25ee58bc6072bd58.js";import{Ab as Y,wb as q,yb as G} from"./chunk-d16ef78d852a6856.js";import{Cb as Z} from"./chunk-63e9bc71922dbe80.js";var H="AWS_EC2_METADATA_DISABLED",Q=async(b)=>{const{ENV_CMDS_FULL_URI:j,ENV_CMDS_RELATIVE_URI:x,fromContainerMetadata:y,fromInstanceMetadata:J}=await import("./chunk-958e406572d457ca.js");if(process.env[x]||process.env[j]){b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:K}=await import("./chunk-c6ab6f8e07a028ac.js");return G(K(b),y(b))}if(process.env[H])return async()=>{throw new q("EC2 Instance Metadata Service access disabled",{logger:b.logger})};return b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),J(b)};var X=!1,W=(b={})=>Y(G(async()=>{if(b.profile??process.env[Z]){if(process.env[$]&&process.env[w]){if(!X)(b.logger?.warn&&b.logger?.constructor?.name!=="NoOpLogger"?b.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
2
|
-
Multiple credential sources detected:
|
|
3
|
-
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
4
|
-
This SDK will proceed with the AWS_PROFILE value.
|
|
5
|
-
|
|
6
|
-
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
7
|
-
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
8
|
-
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
9
|
-
`),X=!0}throw new q("AWS_PROFILE is set, skipping fromEnv provider.",{logger:b.logger,tryNextLink:!0})}return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),z(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:j,ssoAccountId:x,ssoRegion:y,ssoRoleName:J,ssoSession:K}=b;if(!j&&!x&&!y&&!J&&!K)throw new q("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:b.logger});const{fromSSO:B}=await import("./chunk-63c98893e07b1644.js");return B(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:j}=await import("./chunk-c27a654eada9167e.js");return j(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:j}=await import("./chunk-f6a80fc55311e0c8.js");return j(b)()},async()=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:j}=await import("./chunk-2335866508ec8b1b.js");return j(b)()},async()=>{return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await Q(b))()},async()=>{throw new q("Could not load credentials from any providers",{tryNextLink:!1,logger:b.logger})}),v,k),k=(b)=>b?.expiration!==void 0,v=(b)=>b?.expiration!==void 0&&b.expiration.getTime()-Date.now()<300000;export{W as Bb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-24a86f8f5ddc0cbd.js";import{wb as E} from"./chunk-d16ef78d852a6856.js";import{readFileSync as l} from"fs";var t=(e)=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:c,policyArns:i,policy:_,durationSeconds:N}=e;let{roleAssumerWithWebIdentity:s}=e;if(!s){const{getDefaultRoleAssumerWithWebIdentity:d}=await import("./chunk-8b950df276d04054.js");s=d({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:e.parentClientConfig},e.clientPlugins)}return s({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:c,PolicyArns:i,Policy:_,DurationSeconds:N})};var m="AWS_WEB_IDENTITY_TOKEN_FILE",S="AWS_ROLE_ARN",p="AWS_ROLE_SESSION_NAME",A=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const o=e?.webIdentityTokenFile??process.env[m],r=e?.roleArn??process.env[S],n=e?.roleSessionName??process.env[p];if(!o||!r)throw new E("Web identity configuration not specified",{logger:e.logger});return t({...e,webIdentityToken:l(o,{encoding:"ascii"}),roleArn:r,roleSessionName:n})()};export{t as fromWebToken,A as fromTokenFile};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-24a86f8f5ddc0cbd.js";import{wb as E} from"./chunk-d16ef78d852a6856.js";var _="AWS_ACCESS_KEY_ID",S="AWS_SECRET_ACCESS_KEY",p="AWS_SESSION_TOKEN",A="AWS_CREDENTIAL_EXPIRATION",C="AWS_CREDENTIAL_SCOPE",N="AWS_ACCOUNT_ID",a=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const o=process.env[_],r=process.env[S],n=process.env[p],s=process.env[A],t=process.env[C],c=process.env[N];if(o&&r)return{accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...c&&{accountId:c}};throw new E("Unable to find environment variable credentials.",{logger:e?.logger})};export{a as fromEnv,p as ENV_SESSION,S as ENV_SECRET,_ as ENV_KEY,A as ENV_EXPIRATION,C as ENV_CREDENTIAL_SCOPE,N as ENV_ACCOUNT_ID};export{_ as u,S as v,a as w};
|