gitframes 1.2.35
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/LICENCE +202 -0
- package/README.md +77 -0
- package/dist/audio/index.d.mts +2 -0
- package/dist/audio/index.mjs +6 -0
- package/dist/audio-C0YslYEG.d.mts +32 -0
- package/dist/audio-C0YslYEG.d.mts.map +1 -0
- package/dist/audio-C4kiPbrV.mjs +1866 -0
- package/dist/audio-C4kiPbrV.mjs.map +1 -0
- package/dist/audio-CiXUMGyk.mjs +578 -0
- package/dist/audio-CiXUMGyk.mjs.map +1 -0
- package/dist/chunk-GMkBE123.mjs +47 -0
- package/dist/client-Dyypr8tt.mjs +66 -0
- package/dist/client-Dyypr8tt.mjs.map +1 -0
- package/dist/dist-C37594c6.mjs +27195 -0
- package/dist/dist-C37594c6.mjs.map +1 -0
- package/dist/dist-CMF9eNLB.mjs +4062 -0
- package/dist/dist-CMF9eNLB.mjs.map +1 -0
- package/dist/dist-cjs--KIl7Gqy.mjs +6 -0
- package/dist/dist-cjs-B-_4TVjP.mjs +66 -0
- package/dist/dist-cjs-B-_4TVjP.mjs.map +1 -0
- package/dist/dist-cjs-B3TIyZ3K.mjs +437 -0
- package/dist/dist-cjs-B3TIyZ3K.mjs.map +1 -0
- package/dist/dist-cjs-Bsz2eGzl.mjs +9069 -0
- package/dist/dist-cjs-Bsz2eGzl.mjs.map +1 -0
- package/dist/dist-cjs-BuJ2FXob.mjs +181 -0
- package/dist/dist-cjs-BuJ2FXob.mjs.map +1 -0
- package/dist/dist-cjs-C-FMsqmo.mjs +1091 -0
- package/dist/dist-cjs-C-FMsqmo.mjs.map +1 -0
- package/dist/dist-cjs-C4b9TCXd.mjs +48 -0
- package/dist/dist-cjs-C4b9TCXd.mjs.map +1 -0
- package/dist/dist-cjs-C817PNLc.mjs +51 -0
- package/dist/dist-cjs-C817PNLc.mjs.map +1 -0
- package/dist/dist-cjs-CBnnS4k8.mjs +43 -0
- package/dist/dist-cjs-CBnnS4k8.mjs.map +1 -0
- package/dist/dist-cjs-CWbeD0Mu.mjs +64 -0
- package/dist/dist-cjs-CWbeD0Mu.mjs.map +1 -0
- package/dist/dist-cjs-ChXEJ1ro.mjs +85 -0
- package/dist/dist-cjs-ChXEJ1ro.mjs.map +1 -0
- package/dist/dist-cjs-CslF8Dju.mjs +153 -0
- package/dist/dist-cjs-CslF8Dju.mjs.map +1 -0
- package/dist/dist-cjs-D52jYyEm.mjs +98 -0
- package/dist/dist-cjs-D52jYyEm.mjs.map +1 -0
- package/dist/dist-cjs-DhWYgNfa.mjs +209 -0
- package/dist/dist-cjs-DhWYgNfa.mjs.map +1 -0
- package/dist/dist-cjs-DssYqayv.mjs +5015 -0
- package/dist/dist-cjs-DssYqayv.mjs.map +1 -0
- package/dist/dist-cjs-Du6DnSjo.mjs +137 -0
- package/dist/dist-cjs-Du6DnSjo.mjs.map +1 -0
- package/dist/dist-cjs-b-oBQaxe.mjs +323 -0
- package/dist/dist-cjs-b-oBQaxe.mjs.map +1 -0
- package/dist/effects/index.d.mts +2 -0
- package/dist/effects/index.mjs +4 -0
- package/dist/effects-4t4qk-BR.mjs +21130 -0
- package/dist/effects-4t4qk-BR.mjs.map +1 -0
- package/dist/event-streams-B0YUBtyM.mjs +204 -0
- package/dist/event-streams-B0YUBtyM.mjs.map +1 -0
- package/dist/fonts/index.d.mts +2 -0
- package/dist/fonts/index.mjs +3 -0
- package/dist/fonts-Dn18r_ST.mjs +188 -0
- package/dist/fonts-Dn18r_ST.mjs.map +1 -0
- package/dist/index-B1557AUi.d.mts +928 -0
- package/dist/index-B1557AUi.d.mts.map +1 -0
- package/dist/index-DSaMXGoA.d.mts +65 -0
- package/dist/index-DSaMXGoA.d.mts.map +1 -0
- package/dist/index-FICUHo4P.d.mts +69 -0
- package/dist/index-FICUHo4P.d.mts.map +1 -0
- package/dist/index-YZsTjqut.d.mts +147 -0
- package/dist/index-YZsTjqut.d.mts.map +1 -0
- package/dist/index.d.mts +736 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +7135 -0
- package/dist/index.mjs.map +1 -0
- package/dist/package-5RsA21g-.mjs +6 -0
- package/dist/package-5RsA21g-.mjs.map +1 -0
- package/dist/react/index.d.mts +3 -0
- package/dist/react/index.mjs +4 -0
- package/dist/renderer/index.d.mts +2 -0
- package/dist/renderer/index.mjs +6 -0
- package/dist/renderer-DVi31fSv.mjs +23274 -0
- package/dist/renderer-DVi31fSv.mjs.map +1 -0
- package/dist/renderers-CLJQRPVU-CMZnHNK0.mjs +49 -0
- package/dist/renderers-CLJQRPVU-CMZnHNK0.mjs.map +1 -0
- package/dist/signals/index.d.mts +9 -0
- package/dist/signals/index.mjs +8 -0
- package/dist/signals-BB_kdndF.mjs +227 -0
- package/dist/signals-BB_kdndF.mjs.map +1 -0
- package/dist/signin-CVUAIuED.mjs +865 -0
- package/dist/signin-CVUAIuED.mjs.map +1 -0
- package/dist/sso-oidc-D1GnNQYW.mjs +1051 -0
- package/dist/sso-oidc-D1GnNQYW.mjs.map +1 -0
- package/dist/sts-Bz-e3kNW.mjs +6 -0
- package/dist/sts-I4KhuCBs.mjs +1395 -0
- package/dist/sts-I4KhuCBs.mjs.map +1 -0
- package/package.json +174 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { t as __commonJSMin } from "./chunk-GMkBE123.mjs";
|
|
2
|
+
import { t as require_dist_cjs$1 } from "./dist-cjs-ChXEJ1ro.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@smithy+protocol-http@5.3.12/node_modules/@smithy/protocol-http/dist-cjs/index.js
|
|
5
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
var types = require_dist_cjs$1();
|
|
7
|
+
const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
|
8
|
+
return {
|
|
9
|
+
setHttpHandler(handler) {
|
|
10
|
+
runtimeConfig.httpHandler = handler;
|
|
11
|
+
},
|
|
12
|
+
httpHandler() {
|
|
13
|
+
return runtimeConfig.httpHandler;
|
|
14
|
+
},
|
|
15
|
+
updateHttpClientConfig(key, value) {
|
|
16
|
+
runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
|
|
17
|
+
},
|
|
18
|
+
httpHandlerConfigs() {
|
|
19
|
+
return runtimeConfig.httpHandler.httpHandlerConfigs();
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
|
24
|
+
return { httpHandler: httpHandlerExtensionConfiguration.httpHandler() };
|
|
25
|
+
};
|
|
26
|
+
var Field = class {
|
|
27
|
+
name;
|
|
28
|
+
kind;
|
|
29
|
+
values;
|
|
30
|
+
constructor({ name, kind = types.FieldPosition.HEADER, values = [] }) {
|
|
31
|
+
this.name = name;
|
|
32
|
+
this.kind = kind;
|
|
33
|
+
this.values = values;
|
|
34
|
+
}
|
|
35
|
+
add(value) {
|
|
36
|
+
this.values.push(value);
|
|
37
|
+
}
|
|
38
|
+
set(values) {
|
|
39
|
+
this.values = values;
|
|
40
|
+
}
|
|
41
|
+
remove(value) {
|
|
42
|
+
this.values = this.values.filter((v) => v !== value);
|
|
43
|
+
}
|
|
44
|
+
toString() {
|
|
45
|
+
return this.values.map((v) => v.includes(",") || v.includes(" ") ? `"${v}"` : v).join(", ");
|
|
46
|
+
}
|
|
47
|
+
get() {
|
|
48
|
+
return this.values;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var Fields = class {
|
|
52
|
+
entries = {};
|
|
53
|
+
encoding;
|
|
54
|
+
constructor({ fields = [], encoding = "utf-8" }) {
|
|
55
|
+
fields.forEach(this.setField.bind(this));
|
|
56
|
+
this.encoding = encoding;
|
|
57
|
+
}
|
|
58
|
+
setField(field) {
|
|
59
|
+
this.entries[field.name.toLowerCase()] = field;
|
|
60
|
+
}
|
|
61
|
+
getField(name) {
|
|
62
|
+
return this.entries[name.toLowerCase()];
|
|
63
|
+
}
|
|
64
|
+
removeField(name) {
|
|
65
|
+
delete this.entries[name.toLowerCase()];
|
|
66
|
+
}
|
|
67
|
+
getByType(kind) {
|
|
68
|
+
return Object.values(this.entries).filter((field) => field.kind === kind);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
var HttpRequest = class HttpRequest {
|
|
72
|
+
method;
|
|
73
|
+
protocol;
|
|
74
|
+
hostname;
|
|
75
|
+
port;
|
|
76
|
+
path;
|
|
77
|
+
query;
|
|
78
|
+
headers;
|
|
79
|
+
username;
|
|
80
|
+
password;
|
|
81
|
+
fragment;
|
|
82
|
+
body;
|
|
83
|
+
constructor(options) {
|
|
84
|
+
this.method = options.method || "GET";
|
|
85
|
+
this.hostname = options.hostname || "localhost";
|
|
86
|
+
this.port = options.port;
|
|
87
|
+
this.query = options.query || {};
|
|
88
|
+
this.headers = options.headers || {};
|
|
89
|
+
this.body = options.body;
|
|
90
|
+
this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
|
|
91
|
+
this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
|
|
92
|
+
this.username = options.username;
|
|
93
|
+
this.password = options.password;
|
|
94
|
+
this.fragment = options.fragment;
|
|
95
|
+
}
|
|
96
|
+
static clone(request) {
|
|
97
|
+
const cloned = new HttpRequest({
|
|
98
|
+
...request,
|
|
99
|
+
headers: { ...request.headers }
|
|
100
|
+
});
|
|
101
|
+
if (cloned.query) cloned.query = cloneQuery(cloned.query);
|
|
102
|
+
return cloned;
|
|
103
|
+
}
|
|
104
|
+
static isInstance(request) {
|
|
105
|
+
if (!request) return false;
|
|
106
|
+
const req = request;
|
|
107
|
+
return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
|
|
108
|
+
}
|
|
109
|
+
clone() {
|
|
110
|
+
return HttpRequest.clone(this);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
function cloneQuery(query) {
|
|
114
|
+
return Object.keys(query).reduce((carry, paramName) => {
|
|
115
|
+
const param = query[paramName];
|
|
116
|
+
return {
|
|
117
|
+
...carry,
|
|
118
|
+
[paramName]: Array.isArray(param) ? [...param] : param
|
|
119
|
+
};
|
|
120
|
+
}, {});
|
|
121
|
+
}
|
|
122
|
+
var HttpResponse = class {
|
|
123
|
+
statusCode;
|
|
124
|
+
reason;
|
|
125
|
+
headers;
|
|
126
|
+
body;
|
|
127
|
+
constructor(options) {
|
|
128
|
+
this.statusCode = options.statusCode;
|
|
129
|
+
this.reason = options.reason;
|
|
130
|
+
this.headers = options.headers || {};
|
|
131
|
+
this.body = options.body;
|
|
132
|
+
}
|
|
133
|
+
static isInstance(response) {
|
|
134
|
+
if (!response) return false;
|
|
135
|
+
const resp = response;
|
|
136
|
+
return typeof resp.statusCode === "number" && typeof resp.headers === "object";
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
function isValidHostname(hostname) {
|
|
140
|
+
return /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(hostname);
|
|
141
|
+
}
|
|
142
|
+
exports.Field = Field;
|
|
143
|
+
exports.Fields = Fields;
|
|
144
|
+
exports.HttpRequest = HttpRequest;
|
|
145
|
+
exports.HttpResponse = HttpResponse;
|
|
146
|
+
exports.getHttpHandlerExtensionConfiguration = getHttpHandlerExtensionConfiguration;
|
|
147
|
+
exports.isValidHostname = isValidHostname;
|
|
148
|
+
exports.resolveHttpHandlerRuntimeConfig = resolveHttpHandlerRuntimeConfig;
|
|
149
|
+
}));
|
|
150
|
+
|
|
151
|
+
//#endregion
|
|
152
|
+
export { require_dist_cjs as t };
|
|
153
|
+
//# sourceMappingURL=dist-cjs-CslF8Dju.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-cjs-CslF8Dju.mjs","names":[],"sources":["../../../node_modules/.pnpm/@smithy+protocol-http@5.3.12/node_modules/@smithy/protocol-http/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nvar types = require('@smithy/types');\n\nconst getHttpHandlerExtensionConfiguration = (runtimeConfig) => {\n return {\n setHttpHandler(handler) {\n runtimeConfig.httpHandler = handler;\n },\n httpHandler() {\n return runtimeConfig.httpHandler;\n },\n updateHttpClientConfig(key, value) {\n runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);\n },\n httpHandlerConfigs() {\n return runtimeConfig.httpHandler.httpHandlerConfigs();\n },\n };\n};\nconst resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {\n return {\n httpHandler: httpHandlerExtensionConfiguration.httpHandler(),\n };\n};\n\nclass Field {\n name;\n kind;\n values;\n constructor({ name, kind = types.FieldPosition.HEADER, values = [] }) {\n this.name = name;\n this.kind = kind;\n this.values = values;\n }\n add(value) {\n this.values.push(value);\n }\n set(values) {\n this.values = values;\n }\n remove(value) {\n this.values = this.values.filter((v) => v !== value);\n }\n toString() {\n return this.values.map((v) => (v.includes(\",\") || v.includes(\" \") ? `\"${v}\"` : v)).join(\", \");\n }\n get() {\n return this.values;\n }\n}\n\nclass Fields {\n entries = {};\n encoding;\n constructor({ fields = [], encoding = \"utf-8\" }) {\n fields.forEach(this.setField.bind(this));\n this.encoding = encoding;\n }\n setField(field) {\n this.entries[field.name.toLowerCase()] = field;\n }\n getField(name) {\n return this.entries[name.toLowerCase()];\n }\n removeField(name) {\n delete this.entries[name.toLowerCase()];\n }\n getByType(kind) {\n return Object.values(this.entries).filter((field) => field.kind === kind);\n }\n}\n\nclass HttpRequest {\n method;\n protocol;\n hostname;\n port;\n path;\n query;\n headers;\n username;\n password;\n fragment;\n body;\n constructor(options) {\n this.method = options.method || \"GET\";\n this.hostname = options.hostname || \"localhost\";\n this.port = options.port;\n this.query = options.query || {};\n this.headers = options.headers || {};\n this.body = options.body;\n this.protocol = options.protocol\n ? options.protocol.slice(-1) !== \":\"\n ? `${options.protocol}:`\n : options.protocol\n : \"https:\";\n this.path = options.path ? (options.path.charAt(0) !== \"/\" ? `/${options.path}` : options.path) : \"/\";\n this.username = options.username;\n this.password = options.password;\n this.fragment = options.fragment;\n }\n static clone(request) {\n const cloned = new HttpRequest({\n ...request,\n headers: { ...request.headers },\n });\n if (cloned.query) {\n cloned.query = cloneQuery(cloned.query);\n }\n return cloned;\n }\n static isInstance(request) {\n if (!request) {\n return false;\n }\n const req = request;\n return (\"method\" in req &&\n \"protocol\" in req &&\n \"hostname\" in req &&\n \"path\" in req &&\n typeof req[\"query\"] === \"object\" &&\n typeof req[\"headers\"] === \"object\");\n }\n clone() {\n return HttpRequest.clone(this);\n }\n}\nfunction cloneQuery(query) {\n return Object.keys(query).reduce((carry, paramName) => {\n const param = query[paramName];\n return {\n ...carry,\n [paramName]: Array.isArray(param) ? [...param] : param,\n };\n }, {});\n}\n\nclass HttpResponse {\n statusCode;\n reason;\n headers;\n body;\n constructor(options) {\n this.statusCode = options.statusCode;\n this.reason = options.reason;\n this.headers = options.headers || {};\n this.body = options.body;\n }\n static isInstance(response) {\n if (!response)\n return false;\n const resp = response;\n return typeof resp.statusCode === \"number\" && typeof resp.headers === \"object\";\n }\n}\n\nfunction isValidHostname(hostname) {\n const hostPattern = /^[a-z0-9][a-z0-9\\.\\-]*[a-z0-9]$/;\n return hostPattern.test(hostname);\n}\n\nexports.Field = Field;\nexports.Fields = Fields;\nexports.HttpRequest = HttpRequest;\nexports.HttpResponse = HttpResponse;\nexports.getHttpHandlerExtensionConfiguration = getHttpHandlerExtensionConfiguration;\nexports.isValidHostname = isValidHostname;\nexports.resolveHttpHandlerRuntimeConfig = resolveHttpHandlerRuntimeConfig;\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAEA,IAAI;CAEJ,MAAM,wCAAwC,kBAAkB;AAC5D,SAAO;GACH,eAAe,SAAS;AACpB,kBAAc,cAAc;;GAEhC,cAAc;AACV,WAAO,cAAc;;GAEzB,uBAAuB,KAAK,OAAO;AAC/B,kBAAc,aAAa,uBAAuB,KAAK,MAAM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OAAI,CAAC,SACD,QAAO;GACX,MAAM,OAAO;AACb,UAAO,OAAO,KAAK,eAAe,YAAY,OAAO,KAAK,YAAY;;;CAI9E,SAAS,gBAAgB,UAAU;AAE/B,SADoB,kCACD,KAAK,SAAS;;AAGrC,SAAQ,QAAQ;AAChB,SAAQ,SAAS;AACjB,SAAQ,cAAc;AACtB,SAAQ,eAAe;AACvB,SAAQ,uCAAuC;AAC/C,SAAQ,kBAAkB;AAC1B,SAAQ,kCAAkC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { t as __commonJSMin } from "./chunk-GMkBE123.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@smithy+property-provider@4.2.12/node_modules/@smithy/property-provider/dist-cjs/index.js
|
|
4
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
var ProviderError = class ProviderError extends Error {
|
|
6
|
+
name = "ProviderError";
|
|
7
|
+
tryNextLink;
|
|
8
|
+
constructor(message, options = true) {
|
|
9
|
+
let logger;
|
|
10
|
+
let tryNextLink = true;
|
|
11
|
+
if (typeof options === "boolean") {
|
|
12
|
+
logger = void 0;
|
|
13
|
+
tryNextLink = options;
|
|
14
|
+
} else if (options != null && typeof options === "object") {
|
|
15
|
+
logger = options.logger;
|
|
16
|
+
tryNextLink = options.tryNextLink ?? true;
|
|
17
|
+
}
|
|
18
|
+
super(message);
|
|
19
|
+
this.tryNextLink = tryNextLink;
|
|
20
|
+
Object.setPrototypeOf(this, ProviderError.prototype);
|
|
21
|
+
logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
|
|
22
|
+
}
|
|
23
|
+
static from(error, options = true) {
|
|
24
|
+
return Object.assign(new this(error.message, options), error);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var CredentialsProviderError = class CredentialsProviderError extends ProviderError {
|
|
28
|
+
name = "CredentialsProviderError";
|
|
29
|
+
constructor(message, options = true) {
|
|
30
|
+
super(message, options);
|
|
31
|
+
Object.setPrototypeOf(this, CredentialsProviderError.prototype);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var TokenProviderError = class TokenProviderError extends ProviderError {
|
|
35
|
+
name = "TokenProviderError";
|
|
36
|
+
constructor(message, options = true) {
|
|
37
|
+
super(message, options);
|
|
38
|
+
Object.setPrototypeOf(this, TokenProviderError.prototype);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const chain = (...providers) => async () => {
|
|
42
|
+
if (providers.length === 0) throw new ProviderError("No providers in chain");
|
|
43
|
+
let lastProviderError;
|
|
44
|
+
for (const provider of providers) try {
|
|
45
|
+
return await provider();
|
|
46
|
+
} catch (err) {
|
|
47
|
+
lastProviderError = err;
|
|
48
|
+
if (err?.tryNextLink) continue;
|
|
49
|
+
throw err;
|
|
50
|
+
}
|
|
51
|
+
throw lastProviderError;
|
|
52
|
+
};
|
|
53
|
+
const fromStatic = (staticValue) => () => Promise.resolve(staticValue);
|
|
54
|
+
const memoize = (provider, isExpired, requiresRefresh) => {
|
|
55
|
+
let resolved;
|
|
56
|
+
let pending;
|
|
57
|
+
let hasResult;
|
|
58
|
+
let isConstant = false;
|
|
59
|
+
const coalesceProvider = async () => {
|
|
60
|
+
if (!pending) pending = provider();
|
|
61
|
+
try {
|
|
62
|
+
resolved = await pending;
|
|
63
|
+
hasResult = true;
|
|
64
|
+
isConstant = false;
|
|
65
|
+
} finally {
|
|
66
|
+
pending = void 0;
|
|
67
|
+
}
|
|
68
|
+
return resolved;
|
|
69
|
+
};
|
|
70
|
+
if (isExpired === void 0) return async (options) => {
|
|
71
|
+
if (!hasResult || options?.forceRefresh) resolved = await coalesceProvider();
|
|
72
|
+
return resolved;
|
|
73
|
+
};
|
|
74
|
+
return async (options) => {
|
|
75
|
+
if (!hasResult || options?.forceRefresh) resolved = await coalesceProvider();
|
|
76
|
+
if (isConstant) return resolved;
|
|
77
|
+
if (requiresRefresh && !requiresRefresh(resolved)) {
|
|
78
|
+
isConstant = true;
|
|
79
|
+
return resolved;
|
|
80
|
+
}
|
|
81
|
+
if (isExpired(resolved)) {
|
|
82
|
+
await coalesceProvider();
|
|
83
|
+
return resolved;
|
|
84
|
+
}
|
|
85
|
+
return resolved;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
exports.CredentialsProviderError = CredentialsProviderError;
|
|
89
|
+
exports.ProviderError = ProviderError;
|
|
90
|
+
exports.TokenProviderError = TokenProviderError;
|
|
91
|
+
exports.chain = chain;
|
|
92
|
+
exports.fromStatic = fromStatic;
|
|
93
|
+
exports.memoize = memoize;
|
|
94
|
+
}));
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
export { require_dist_cjs as t };
|
|
98
|
+
//# sourceMappingURL=dist-cjs-D52jYyEm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-cjs-D52jYyEm.mjs","names":[],"sources":["../../../node_modules/.pnpm/@smithy+property-provider@4.2.12/node_modules/@smithy/property-provider/dist-cjs/index.js"],"sourcesContent":["'use strict';\n\nclass ProviderError extends Error {\n name = \"ProviderError\";\n tryNextLink;\n constructor(message, options = true) {\n let logger;\n let tryNextLink = true;\n if (typeof options === \"boolean\") {\n logger = undefined;\n tryNextLink = options;\n }\n else if (options != null && typeof options === \"object\") {\n logger = options.logger;\n tryNextLink = options.tryNextLink ?? true;\n }\n super(message);\n this.tryNextLink = tryNextLink;\n Object.setPrototypeOf(this, ProviderError.prototype);\n logger?.debug?.(`@smithy/property-provider ${tryNextLink ? \"->\" : \"(!)\"} ${message}`);\n }\n static from(error, options = true) {\n return Object.assign(new this(error.message, options), error);\n }\n}\n\nclass CredentialsProviderError extends ProviderError {\n name = \"CredentialsProviderError\";\n constructor(message, options = true) {\n super(message, options);\n Object.setPrototypeOf(this, CredentialsProviderError.prototype);\n }\n}\n\nclass TokenProviderError extends ProviderError {\n name = \"TokenProviderError\";\n constructor(message, options = true) {\n super(message, options);\n Object.setPrototypeOf(this, TokenProviderError.prototype);\n }\n}\n\nconst chain = (...providers) => async () => {\n if (providers.length === 0) {\n throw new ProviderError(\"No providers in chain\");\n }\n let lastProviderError;\n for (const provider of providers) {\n try {\n const credentials = await provider();\n return credentials;\n }\n catch (err) {\n lastProviderError = err;\n if (err?.tryNextLink) {\n continue;\n }\n throw err;\n }\n }\n throw lastProviderError;\n};\n\nconst fromStatic = (staticValue) => () => Promise.resolve(staticValue);\n\nconst memoize = (provider, isExpired, requiresRefresh) => {\n let resolved;\n let pending;\n let hasResult;\n let isConstant = false;\n const coalesceProvider = async () => {\n if (!pending) {\n pending = provider();\n }\n try {\n resolved = await pending;\n hasResult = true;\n isConstant = false;\n }\n finally {\n pending = undefined;\n }\n return resolved;\n };\n if (isExpired === undefined) {\n return async (options) => {\n if (!hasResult || options?.forceRefresh) {\n resolved = await coalesceProvider();\n }\n return resolved;\n };\n }\n return async (options) => {\n if (!hasResult || options?.forceRefresh) {\n resolved = await coalesceProvider();\n }\n if (isConstant) {\n return resolved;\n }\n if (requiresRefresh && !requiresRefresh(resolved)) {\n isConstant = true;\n return resolved;\n }\n if (isExpired(resolved)) {\n await coalesceProvider();\n return resolved;\n }\n return resolved;\n };\n};\n\nexports.CredentialsProviderError = CredentialsProviderError;\nexports.ProviderError = ProviderError;\nexports.TokenProviderError = TokenProviderError;\nexports.chain = chain;\nexports.fromStatic = fromStatic;\nexports.memoize = memoize;\n"],"x_google_ignoreList":[0],"mappings":";;;;CAEA,IAAM,gBAAN,MAAM,sBAAsB,MAAM;EAC9B,OAAO;EACP;EACA,YAAY,SAAS,UAAU,MAAM;GACjC,IAAI;GACJ,IAAI,cAAc;AAClB,OAAI,OAAO,YAAY,WAAW;AAC9B,aAAS;AACT,kBAAc;cAET,WAAW,QAAQ,OAAO,YAAY,UAAU;AACrD,aAAS,QAAQ;AACjB,kBAAc,QAAQ,eAAe;;AAEzC,SAAM,QAAQ;AACd,QAAK,cAAc;AACnB,UAAO,eAAe,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;AAEX,OAAI,mBAAmB,CAAC,gBAAgB,SAAS,EAAE;AAC/C,iBAAa;AACb,WAAO;;AAEX,OAAI,UAAU,SAAS,EAAE;AACrB,UAAM,kBAAkB;AACxB,WAAO;;AAEX,UAAO;;;AAIf,SAAQ,2BAA2B;AACnC,SAAQ,gBAAgB;AACxB,SAAQ,qBAAqB;AAC7B,SAAQ,QAAQ;AAChB,SAAQ,aAAa;AACrB,SAAQ,UAAU"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { i as __require, t as __commonJSMin } from "./chunk-GMkBE123.mjs";
|
|
2
|
+
import { t as require_dist_cjs$1 } from "./dist-cjs-ChXEJ1ro.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js
|
|
5
|
+
var require_getHomeDir = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getHomeDir = void 0;
|
|
8
|
+
const os_1 = __require("os");
|
|
9
|
+
const path_1$1 = __require("path");
|
|
10
|
+
const homeDirCache = {};
|
|
11
|
+
const getHomeDirCacheKey = () => {
|
|
12
|
+
if (process && process.geteuid) return `${process.geteuid()}`;
|
|
13
|
+
return "DEFAULT";
|
|
14
|
+
};
|
|
15
|
+
const getHomeDir = () => {
|
|
16
|
+
const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1$1.sep}` } = process.env;
|
|
17
|
+
if (HOME) return HOME;
|
|
18
|
+
if (USERPROFILE) return USERPROFILE;
|
|
19
|
+
if (HOMEPATH) return `${HOMEDRIVE}${HOMEPATH}`;
|
|
20
|
+
const homeDirCacheKey = getHomeDirCacheKey();
|
|
21
|
+
if (!homeDirCache[homeDirCacheKey]) homeDirCache[homeDirCacheKey] = (0, os_1.homedir)();
|
|
22
|
+
return homeDirCache[homeDirCacheKey];
|
|
23
|
+
};
|
|
24
|
+
exports.getHomeDir = getHomeDir;
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js
|
|
29
|
+
var require_getSSOTokenFilepath = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.getSSOTokenFilepath = void 0;
|
|
32
|
+
const crypto_1 = __require("crypto");
|
|
33
|
+
const path_1 = __require("path");
|
|
34
|
+
const getHomeDir_1 = require_getHomeDir();
|
|
35
|
+
const getSSOTokenFilepath = (id) => {
|
|
36
|
+
const cacheName = (0, crypto_1.createHash)("sha1").update(id).digest("hex");
|
|
37
|
+
return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
38
|
+
};
|
|
39
|
+
exports.getSSOTokenFilepath = getSSOTokenFilepath;
|
|
40
|
+
}));
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js
|
|
44
|
+
var require_getSSOTokenFromFile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.getSSOTokenFromFile = exports.tokenIntercept = void 0;
|
|
47
|
+
const promises_1$1 = __require("fs/promises");
|
|
48
|
+
const getSSOTokenFilepath_1 = require_getSSOTokenFilepath();
|
|
49
|
+
exports.tokenIntercept = {};
|
|
50
|
+
const getSSOTokenFromFile = async (id) => {
|
|
51
|
+
if (exports.tokenIntercept[id]) return exports.tokenIntercept[id];
|
|
52
|
+
const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);
|
|
53
|
+
const ssoTokenText = await (0, promises_1$1.readFile)(ssoTokenFilepath, "utf8");
|
|
54
|
+
return JSON.parse(ssoTokenText);
|
|
55
|
+
};
|
|
56
|
+
exports.getSSOTokenFromFile = getSSOTokenFromFile;
|
|
57
|
+
}));
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js
|
|
61
|
+
var require_readFile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
62
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
|
+
exports.readFile = exports.fileIntercept = exports.filePromises = void 0;
|
|
64
|
+
const promises_1 = __require("node:fs/promises");
|
|
65
|
+
exports.filePromises = {};
|
|
66
|
+
exports.fileIntercept = {};
|
|
67
|
+
const readFile = (path$1, options) => {
|
|
68
|
+
if (exports.fileIntercept[path$1] !== void 0) return exports.fileIntercept[path$1];
|
|
69
|
+
if (!exports.filePromises[path$1] || options?.ignoreCache) exports.filePromises[path$1] = (0, promises_1.readFile)(path$1, "utf8");
|
|
70
|
+
return exports.filePromises[path$1];
|
|
71
|
+
};
|
|
72
|
+
exports.readFile = readFile;
|
|
73
|
+
}));
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region ../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js
|
|
77
|
+
var require_dist_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
78
|
+
var getHomeDir = require_getHomeDir();
|
|
79
|
+
var getSSOTokenFilepath = require_getSSOTokenFilepath();
|
|
80
|
+
var getSSOTokenFromFile = require_getSSOTokenFromFile();
|
|
81
|
+
var path = __require("path");
|
|
82
|
+
var types = require_dist_cjs$1();
|
|
83
|
+
var readFile = require_readFile();
|
|
84
|
+
const ENV_PROFILE = "AWS_PROFILE";
|
|
85
|
+
const DEFAULT_PROFILE = "default";
|
|
86
|
+
const getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
|
|
87
|
+
const CONFIG_PREFIX_SEPARATOR = ".";
|
|
88
|
+
const getConfigData = (data) => Object.entries(data).filter(([key]) => {
|
|
89
|
+
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
90
|
+
if (indexOfSeparator === -1) return false;
|
|
91
|
+
return Object.values(types.IniSectionType).includes(key.substring(0, indexOfSeparator));
|
|
92
|
+
}).reduce((acc, [key, value]) => {
|
|
93
|
+
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
94
|
+
const updatedKey = key.substring(0, indexOfSeparator) === types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
|
|
95
|
+
acc[updatedKey] = value;
|
|
96
|
+
return acc;
|
|
97
|
+
}, { ...data.default && { default: data.default } });
|
|
98
|
+
const ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
99
|
+
const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path.join(getHomeDir.getHomeDir(), ".aws", "config");
|
|
100
|
+
const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
101
|
+
const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path.join(getHomeDir.getHomeDir(), ".aws", "credentials");
|
|
102
|
+
const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
103
|
+
const profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
104
|
+
const parseIni = (iniData) => {
|
|
105
|
+
const map = {};
|
|
106
|
+
let currentSection;
|
|
107
|
+
let currentSubSection;
|
|
108
|
+
for (const iniLine of iniData.split(/\r?\n/)) {
|
|
109
|
+
const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
|
|
110
|
+
if (trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]") {
|
|
111
|
+
currentSection = void 0;
|
|
112
|
+
currentSubSection = void 0;
|
|
113
|
+
const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
|
|
114
|
+
const matches = prefixKeyRegex.exec(sectionName);
|
|
115
|
+
if (matches) {
|
|
116
|
+
const [, prefix, , name] = matches;
|
|
117
|
+
if (Object.values(types.IniSectionType).includes(prefix)) currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
|
|
118
|
+
} else currentSection = sectionName;
|
|
119
|
+
if (profileNameBlockList.includes(sectionName)) throw new Error(`Found invalid profile name "${sectionName}"`);
|
|
120
|
+
} else if (currentSection) {
|
|
121
|
+
const indexOfEqualsSign = trimmedLine.indexOf("=");
|
|
122
|
+
if (![0, -1].includes(indexOfEqualsSign)) {
|
|
123
|
+
const [name, value] = [trimmedLine.substring(0, indexOfEqualsSign).trim(), trimmedLine.substring(indexOfEqualsSign + 1).trim()];
|
|
124
|
+
if (value === "") currentSubSection = name;
|
|
125
|
+
else {
|
|
126
|
+
if (currentSubSection && iniLine.trimStart() === iniLine) currentSubSection = void 0;
|
|
127
|
+
map[currentSection] = map[currentSection] || {};
|
|
128
|
+
const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
|
|
129
|
+
map[currentSection][key] = value;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return map;
|
|
135
|
+
};
|
|
136
|
+
const swallowError$1 = () => ({});
|
|
137
|
+
const loadSharedConfigFiles = async (init = {}) => {
|
|
138
|
+
const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
|
|
139
|
+
const homeDir = getHomeDir.getHomeDir();
|
|
140
|
+
const relativeHomeDirPrefix = "~/";
|
|
141
|
+
let resolvedFilepath = filepath;
|
|
142
|
+
if (filepath.startsWith(relativeHomeDirPrefix)) resolvedFilepath = path.join(homeDir, filepath.slice(2));
|
|
143
|
+
let resolvedConfigFilepath = configFilepath;
|
|
144
|
+
if (configFilepath.startsWith(relativeHomeDirPrefix)) resolvedConfigFilepath = path.join(homeDir, configFilepath.slice(2));
|
|
145
|
+
const parsedFiles = await Promise.all([readFile.readFile(resolvedConfigFilepath, { ignoreCache: init.ignoreCache }).then(parseIni).then(getConfigData).catch(swallowError$1), readFile.readFile(resolvedFilepath, { ignoreCache: init.ignoreCache }).then(parseIni).catch(swallowError$1)]);
|
|
146
|
+
return {
|
|
147
|
+
configFile: parsedFiles[0],
|
|
148
|
+
credentialsFile: parsedFiles[1]
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
const getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({
|
|
152
|
+
...acc,
|
|
153
|
+
[key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value
|
|
154
|
+
}), {});
|
|
155
|
+
const swallowError = () => ({});
|
|
156
|
+
const loadSsoSessionData = async (init = {}) => readFile.readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);
|
|
157
|
+
const mergeConfigFiles = (...files) => {
|
|
158
|
+
const merged = {};
|
|
159
|
+
for (const file of files) for (const [key, values] of Object.entries(file)) if (merged[key] !== void 0) Object.assign(merged[key], values);
|
|
160
|
+
else merged[key] = values;
|
|
161
|
+
return merged;
|
|
162
|
+
};
|
|
163
|
+
const parseKnownFiles = async (init) => {
|
|
164
|
+
const parsedFiles = await loadSharedConfigFiles(init);
|
|
165
|
+
return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
|
|
166
|
+
};
|
|
167
|
+
const externalDataInterceptor = {
|
|
168
|
+
getFileRecord() {
|
|
169
|
+
return readFile.fileIntercept;
|
|
170
|
+
},
|
|
171
|
+
interceptFile(path$1, contents) {
|
|
172
|
+
readFile.fileIntercept[path$1] = Promise.resolve(contents);
|
|
173
|
+
},
|
|
174
|
+
getTokenRecord() {
|
|
175
|
+
return getSSOTokenFromFile.tokenIntercept;
|
|
176
|
+
},
|
|
177
|
+
interceptToken(id, contents) {
|
|
178
|
+
getSSOTokenFromFile.tokenIntercept[id] = contents;
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
exports.getSSOTokenFromFile = getSSOTokenFromFile.getSSOTokenFromFile;
|
|
182
|
+
exports.readFile = readFile.readFile;
|
|
183
|
+
exports.CONFIG_PREFIX_SEPARATOR = CONFIG_PREFIX_SEPARATOR;
|
|
184
|
+
exports.DEFAULT_PROFILE = DEFAULT_PROFILE;
|
|
185
|
+
exports.ENV_PROFILE = ENV_PROFILE;
|
|
186
|
+
exports.externalDataInterceptor = externalDataInterceptor;
|
|
187
|
+
exports.getProfileName = getProfileName;
|
|
188
|
+
exports.loadSharedConfigFiles = loadSharedConfigFiles;
|
|
189
|
+
exports.loadSsoSessionData = loadSsoSessionData;
|
|
190
|
+
exports.parseKnownFiles = parseKnownFiles;
|
|
191
|
+
Object.prototype.hasOwnProperty.call(getHomeDir, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
value: getHomeDir["__proto__"]
|
|
194
|
+
});
|
|
195
|
+
Object.keys(getHomeDir).forEach(function(k) {
|
|
196
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getHomeDir[k];
|
|
197
|
+
});
|
|
198
|
+
Object.prototype.hasOwnProperty.call(getSSOTokenFilepath, "__proto__") && !Object.prototype.hasOwnProperty.call(exports, "__proto__") && Object.defineProperty(exports, "__proto__", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
value: getSSOTokenFilepath["__proto__"]
|
|
201
|
+
});
|
|
202
|
+
Object.keys(getSSOTokenFilepath).forEach(function(k) {
|
|
203
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getSSOTokenFilepath[k];
|
|
204
|
+
});
|
|
205
|
+
}));
|
|
206
|
+
|
|
207
|
+
//#endregion
|
|
208
|
+
export { require_dist_cjs as t };
|
|
209
|
+
//# sourceMappingURL=dist-cjs-DhWYgNfa.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-cjs-DhWYgNfa.mjs","names":["path_1","promises_1","path","path"],"sources":["../../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js","../../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js","../../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js","../../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js","../../../node_modules/.pnpm/@smithy+shared-ini-file-loader@4.4.7/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getHomeDir = void 0;\nconst os_1 = require(\"os\");\nconst path_1 = require(\"path\");\nconst homeDirCache = {};\nconst getHomeDirCacheKey = () => {\n if (process && process.geteuid) {\n return `${process.geteuid()}`;\n }\n return \"DEFAULT\";\n};\nconst getHomeDir = () => {\n const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env;\n if (HOME)\n return HOME;\n if (USERPROFILE)\n return USERPROFILE;\n if (HOMEPATH)\n return `${HOMEDRIVE}${HOMEPATH}`;\n const homeDirCacheKey = getHomeDirCacheKey();\n if (!homeDirCache[homeDirCacheKey])\n homeDirCache[homeDirCacheKey] = (0, os_1.homedir)();\n return homeDirCache[homeDirCacheKey];\n};\nexports.getHomeDir = getHomeDir;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSSOTokenFilepath = void 0;\nconst crypto_1 = require(\"crypto\");\nconst path_1 = require(\"path\");\nconst getHomeDir_1 = require(\"./getHomeDir\");\nconst getSSOTokenFilepath = (id) => {\n const hasher = (0, crypto_1.createHash)(\"sha1\");\n const cacheName = hasher.update(id).digest(\"hex\");\n return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \".aws\", \"sso\", \"cache\", `${cacheName}.json`);\n};\nexports.getSSOTokenFilepath = getSSOTokenFilepath;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSSOTokenFromFile = exports.tokenIntercept = void 0;\nconst promises_1 = require(\"fs/promises\");\nconst getSSOTokenFilepath_1 = require(\"./getSSOTokenFilepath\");\nexports.tokenIntercept = {};\nconst getSSOTokenFromFile = async (id) => {\n if (exports.tokenIntercept[id]) {\n return exports.tokenIntercept[id];\n }\n const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);\n const ssoTokenText = await (0, promises_1.readFile)(ssoTokenFilepath, \"utf8\");\n return JSON.parse(ssoTokenText);\n};\nexports.getSSOTokenFromFile = getSSOTokenFromFile;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.readFile = exports.fileIntercept = exports.filePromises = void 0;\nconst promises_1 = require(\"node:fs/promises\");\nexports.filePromises = {};\nexports.fileIntercept = {};\nconst readFile = (path, options) => {\n if (exports.fileIntercept[path] !== undefined) {\n return exports.fileIntercept[path];\n }\n if (!exports.filePromises[path] || options?.ignoreCache) {\n exports.filePromises[path] = (0, promises_1.readFile)(path, \"utf8\");\n }\n return exports.filePromises[path];\n};\nexports.readFile = readFile;\n","'use strict';\n\nvar getHomeDir = require('./getHomeDir');\nvar getSSOTokenFilepath = require('./getSSOTokenFilepath');\nvar getSSOTokenFromFile = require('./getSSOTokenFromFile');\nvar path = require('path');\nvar types = require('@smithy/types');\nvar readFile = require('./readFile');\n\nconst ENV_PROFILE = \"AWS_PROFILE\";\nconst DEFAULT_PROFILE = \"default\";\nconst getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;\n\nconst CONFIG_PREFIX_SEPARATOR = \".\";\n\nconst getConfigData = (data) => Object.entries(data)\n .filter(([key]) => {\n const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);\n if (indexOfSeparator === -1) {\n return false;\n }\n return Object.values(types.IniSectionType).includes(key.substring(0, indexOfSeparator));\n})\n .reduce((acc, [key, value]) => {\n const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);\n const updatedKey = key.substring(0, indexOfSeparator) === types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;\n acc[updatedKey] = value;\n return acc;\n}, {\n ...(data.default && { default: data.default }),\n});\n\nconst ENV_CONFIG_PATH = \"AWS_CONFIG_FILE\";\nconst getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path.join(getHomeDir.getHomeDir(), \".aws\", \"config\");\n\nconst ENV_CREDENTIALS_PATH = \"AWS_SHARED_CREDENTIALS_FILE\";\nconst getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path.join(getHomeDir.getHomeDir(), \".aws\", \"credentials\");\n\nconst prefixKeyRegex = /^([\\w-]+)\\s([\"'])?([\\w-@\\+\\.%:/]+)\\2$/;\nconst profileNameBlockList = [\"__proto__\", \"profile __proto__\"];\nconst parseIni = (iniData) => {\n const map = {};\n let currentSection;\n let currentSubSection;\n for (const iniLine of iniData.split(/\\r?\\n/)) {\n const trimmedLine = iniLine.split(/(^|\\s)[;#]/)[0].trim();\n const isSection = trimmedLine[0] === \"[\" && trimmedLine[trimmedLine.length - 1] === \"]\";\n if (isSection) {\n currentSection = undefined;\n currentSubSection = undefined;\n const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);\n const matches = prefixKeyRegex.exec(sectionName);\n if (matches) {\n const [, prefix, , name] = matches;\n if (Object.values(types.IniSectionType).includes(prefix)) {\n currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);\n }\n }\n else {\n currentSection = sectionName;\n }\n if (profileNameBlockList.includes(sectionName)) {\n throw new Error(`Found invalid profile name \"${sectionName}\"`);\n }\n }\n else if (currentSection) {\n const indexOfEqualsSign = trimmedLine.indexOf(\"=\");\n if (![0, -1].includes(indexOfEqualsSign)) {\n const [name, value] = [\n trimmedLine.substring(0, indexOfEqualsSign).trim(),\n trimmedLine.substring(indexOfEqualsSign + 1).trim(),\n ];\n if (value === \"\") {\n currentSubSection = name;\n }\n else {\n if (currentSubSection && iniLine.trimStart() === iniLine) {\n currentSubSection = undefined;\n }\n map[currentSection] = map[currentSection] || {};\n const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;\n map[currentSection][key] = value;\n }\n }\n }\n }\n return map;\n};\n\nconst swallowError$1 = () => ({});\nconst loadSharedConfigFiles = async (init = {}) => {\n const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;\n const homeDir = getHomeDir.getHomeDir();\n const relativeHomeDirPrefix = \"~/\";\n let resolvedFilepath = filepath;\n if (filepath.startsWith(relativeHomeDirPrefix)) {\n resolvedFilepath = path.join(homeDir, filepath.slice(2));\n }\n let resolvedConfigFilepath = configFilepath;\n if (configFilepath.startsWith(relativeHomeDirPrefix)) {\n resolvedConfigFilepath = path.join(homeDir, configFilepath.slice(2));\n }\n const parsedFiles = await Promise.all([\n readFile.readFile(resolvedConfigFilepath, {\n ignoreCache: init.ignoreCache,\n })\n .then(parseIni)\n .then(getConfigData)\n .catch(swallowError$1),\n readFile.readFile(resolvedFilepath, {\n ignoreCache: init.ignoreCache,\n })\n .then(parseIni)\n .catch(swallowError$1),\n ]);\n return {\n configFile: parsedFiles[0],\n credentialsFile: parsedFiles[1],\n };\n};\n\nconst getSsoSessionData = (data) => Object.entries(data)\n .filter(([key]) => key.startsWith(types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR))\n .reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});\n\nconst swallowError = () => ({});\nconst loadSsoSessionData = async (init = {}) => readFile.readFile(init.configFilepath ?? getConfigFilepath())\n .then(parseIni)\n .then(getSsoSessionData)\n .catch(swallowError);\n\nconst mergeConfigFiles = (...files) => {\n const merged = {};\n for (const file of files) {\n for (const [key, values] of Object.entries(file)) {\n if (merged[key] !== undefined) {\n Object.assign(merged[key], values);\n }\n else {\n merged[key] = values;\n }\n }\n }\n return merged;\n};\n\nconst parseKnownFiles = async (init) => {\n const parsedFiles = await loadSharedConfigFiles(init);\n return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);\n};\n\nconst externalDataInterceptor = {\n getFileRecord() {\n return readFile.fileIntercept;\n },\n interceptFile(path, contents) {\n readFile.fileIntercept[path] = Promise.resolve(contents);\n },\n getTokenRecord() {\n return getSSOTokenFromFile.tokenIntercept;\n },\n interceptToken(id, contents) {\n getSSOTokenFromFile.tokenIntercept[id] = contents;\n },\n};\n\nexports.getSSOTokenFromFile = getSSOTokenFromFile.getSSOTokenFromFile;\nexports.readFile = readFile.readFile;\nexports.CONFIG_PREFIX_SEPARATOR = CONFIG_PREFIX_SEPARATOR;\nexports.DEFAULT_PROFILE = DEFAULT_PROFILE;\nexports.ENV_PROFILE = ENV_PROFILE;\nexports.externalDataInterceptor = externalDataInterceptor;\nexports.getProfileName = getProfileName;\nexports.loadSharedConfigFiles = loadSharedConfigFiles;\nexports.loadSsoSessionData = loadSsoSessionData;\nexports.parseKnownFiles = parseKnownFiles;\nObject.prototype.hasOwnProperty.call(getHomeDir, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: getHomeDir['__proto__']\n });\n\nObject.keys(getHomeDir).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getHomeDir[k];\n});\nObject.prototype.hasOwnProperty.call(getSSOTokenFilepath, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: getSSOTokenFilepath['__proto__']\n });\n\nObject.keys(getSSOTokenFilepath).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getSSOTokenFilepath[k];\n});\n"],"x_google_ignoreList":[0,1,2,3,4],"mappings":";;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,aAAa,KAAK;CAC1B,MAAM,iBAAe,KAAK;CAC1B,MAAMA,qBAAiB,OAAO;CAC9B,MAAM,eAAe,EAAE;CACvB,MAAM,2BAA2B;AAC7B,MAAI,WAAW,QAAQ,QACnB,QAAO,GAAG,QAAQ,SAAS;AAE/B,SAAO;;CAEX,MAAM,mBAAmB;EACrB,MAAM,EAAE,MAAM,aAAa,UAAU,YAAY,KAAKA,SAAO,UAAU,QAAQ;AAC/E,MAAI,KACA,QAAO;AACX,MAAI,YACA,QAAO;AACX,MAAI,SACA,QAAO,GAAG,YAAY;EAC1B,MAAM,kBAAkB,oBAAoB;AAC5C,MAAI,CAAC,aAAa,iBACd,cAAa,oBAAoB,GAAG,KAAK,UAAU;AACvD,SAAO,aAAa;;AAExB,SAAQ,aAAa;;;;;;ACxBrB,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,sBAAsB,KAAK;CACnC,MAAM,qBAAmB,SAAS;CAClC,MAAM,mBAAiB,OAAO;CAC9B,MAAM;CACN,MAAM,uBAAuB,OAAO;EAEhC,MAAM,aADU,GAAG,SAAS,YAAY,OAAO,CACtB,OAAO,GAAG,CAAC,OAAO,MAAM;AACjD,UAAQ,GAAG,OAAO,OAAO,GAAG,aAAa,aAAa,EAAE,QAAQ,OAAO,SAAS,GAAG,UAAU,OAAO;;AAExG,SAAQ,sBAAsB;;;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