agentv 3.11.1 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/README.md +16 -12
  2. package/dist/{agentv-provider-MIDKLYIH-6LIYKQRP.js → agentv-provider-NFFLXG5M-TJAWCWCX.js} +1 -2
  3. package/dist/{chunk-V2S5CZU3.js → chunk-2ELQ6F3C.js} +916 -523
  4. package/dist/chunk-2ELQ6F3C.js.map +1 -0
  5. package/dist/{chunk-JK6V4KVD.js → chunk-NR7QVL75.js} +32 -24
  6. package/dist/chunk-NR7QVL75.js.map +1 -0
  7. package/dist/{chunk-OYD2NB55.js → chunk-UYBLUYHN.js} +104 -15
  8. package/dist/chunk-UYBLUYHN.js.map +1 -0
  9. package/dist/{chunk-CKMAM2GD.js → chunk-VLOFRXH4.js} +461 -196
  10. package/dist/chunk-VLOFRXH4.js.map +1 -0
  11. package/dist/{chunk-BAUNAXHT.js → chunk-XOSNETAV.js} +1 -1
  12. package/dist/cli.js +5 -6
  13. package/dist/cli.js.map +1 -1
  14. package/dist/{dist-VUPMLHIV.js → dist-L6R5HJ72.js} +4 -5
  15. package/dist/{esm-OJ2BXJK4-YKEI3Z7E.js → esm-5Q4BZALM-5REQWAUV.js} +2 -3
  16. package/dist/{esm-OJ2BXJK4-YKEI3Z7E.js.map → esm-5Q4BZALM-5REQWAUV.js.map} +1 -1
  17. package/dist/{esm-UYZ3HJBU.js → esm-CZAWIY6F.js} +2 -2
  18. package/dist/index.js +5 -6
  19. package/dist/{interactive-FZJANO4A.js → interactive-5X62YEEX.js} +5 -6
  20. package/dist/{interactive-FZJANO4A.js.map → interactive-5X62YEEX.js.map} +1 -1
  21. package/dist/{otlp-json-file-exporter-VN67MK3S-RQIM6EHY.js → otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js} +1 -2
  22. package/dist/{simple-trace-file-exporter-XWZTIZR2-4JKATE5G.js → simple-trace-file-exporter-CRIO5HDZ-QYYT2QQT.js} +2 -3
  23. package/dist/{src-PXDA7QIS.js → src-ML4D2MC2.js} +2 -2
  24. package/dist/templates/.agentv/.env.example +23 -0
  25. package/dist/templates/.agentv/config.yaml +13 -4
  26. package/dist/templates/.agentv/targets.yaml +16 -0
  27. package/package.json +1 -1
  28. package/dist/chunk-2QFWRIYL.js +0 -186
  29. package/dist/chunk-2QFWRIYL.js.map +0 -1
  30. package/dist/chunk-2RMPO6LY.js +0 -747
  31. package/dist/chunk-2RMPO6LY.js.map +0 -1
  32. package/dist/chunk-3Q7WIXT4.js +0 -4846
  33. package/dist/chunk-3Q7WIXT4.js.map +0 -1
  34. package/dist/chunk-73O2DCJP.js +0 -1274
  35. package/dist/chunk-73O2DCJP.js.map +0 -1
  36. package/dist/chunk-AUKF3Y3W.js +0 -212
  37. package/dist/chunk-AUKF3Y3W.js.map +0 -1
  38. package/dist/chunk-BRH7SIDP.js +0 -133
  39. package/dist/chunk-BRH7SIDP.js.map +0 -1
  40. package/dist/chunk-BXM4I3BM.js +0 -526
  41. package/dist/chunk-BXM4I3BM.js.map +0 -1
  42. package/dist/chunk-CKMAM2GD.js.map +0 -1
  43. package/dist/chunk-FHTURHTY.js +0 -546
  44. package/dist/chunk-FHTURHTY.js.map +0 -1
  45. package/dist/chunk-GJFXQQWG.js +0 -21
  46. package/dist/chunk-GJFXQQWG.js.map +0 -1
  47. package/dist/chunk-HKMLG4KF.js +0 -38
  48. package/dist/chunk-HKMLG4KF.js.map +0 -1
  49. package/dist/chunk-JGU3PVA4.js +0 -133
  50. package/dist/chunk-JGU3PVA4.js.map +0 -1
  51. package/dist/chunk-JK6V4KVD.js.map +0 -1
  52. package/dist/chunk-LHU5FGVZ.js +0 -4804
  53. package/dist/chunk-LHU5FGVZ.js.map +0 -1
  54. package/dist/chunk-OL2WGI6E.js +0 -149
  55. package/dist/chunk-OL2WGI6E.js.map +0 -1
  56. package/dist/chunk-ONETZL6N.js +0 -15
  57. package/dist/chunk-ONETZL6N.js.map +0 -1
  58. package/dist/chunk-OYD2NB55.js.map +0 -1
  59. package/dist/chunk-QV4UGEN6.js +0 -320
  60. package/dist/chunk-QV4UGEN6.js.map +0 -1
  61. package/dist/chunk-QXLDKGF3.js +0 -46
  62. package/dist/chunk-QXLDKGF3.js.map +0 -1
  63. package/dist/chunk-U6VEM66A.js +0 -63
  64. package/dist/chunk-U6VEM66A.js.map +0 -1
  65. package/dist/chunk-UALXHIMX.js +0 -48
  66. package/dist/chunk-UALXHIMX.js.map +0 -1
  67. package/dist/chunk-UGXG73VF.js +0 -55
  68. package/dist/chunk-UGXG73VF.js.map +0 -1
  69. package/dist/chunk-UHP5KEDL.js +0 -38
  70. package/dist/chunk-UHP5KEDL.js.map +0 -1
  71. package/dist/chunk-V2S5CZU3.js.map +0 -1
  72. package/dist/chunk-WVSXFZWP.js +0 -204
  73. package/dist/chunk-WVSXFZWP.js.map +0 -1
  74. package/dist/chunk-XSUMCWKO.js +0 -30
  75. package/dist/chunk-XSUMCWKO.js.map +0 -1
  76. package/dist/chunk-XUO7ZEHU.js +0 -181
  77. package/dist/chunk-XUO7ZEHU.js.map +0 -1
  78. package/dist/chunk-YSGUX5JT.js +0 -1002
  79. package/dist/chunk-YSGUX5JT.js.map +0 -1
  80. package/dist/dist-3PCP5TNF-RYMVLILE.js +0 -25785
  81. package/dist/dist-3PCP5TNF-RYMVLILE.js.map +0 -1
  82. package/dist/dist-BOIN5LC5-T5UWUK43.js +0 -76113
  83. package/dist/dist-BOIN5LC5-T5UWUK43.js.map +0 -1
  84. package/dist/dist-LXPDQOBI-4V5J2WDS.js +0 -13
  85. package/dist/dist-LXPDQOBI-4V5J2WDS.js.map +0 -1
  86. package/dist/dist-es-4WSJUIYR-XKIX65IH.js +0 -69
  87. package/dist/dist-es-4WSJUIYR-XKIX65IH.js.map +0 -1
  88. package/dist/dist-es-7K7MKRME-CCMAZOQC.js +0 -355
  89. package/dist/dist-es-7K7MKRME-CCMAZOQC.js.map +0 -1
  90. package/dist/dist-es-B2RTOKRI-VWZHK5RE.js +0 -191
  91. package/dist/dist-es-B2RTOKRI-VWZHK5RE.js.map +0 -1
  92. package/dist/dist-es-HHZ4FAXA-CRERHWKB.js +0 -164
  93. package/dist/dist-es-HHZ4FAXA-CRERHWKB.js.map +0 -1
  94. package/dist/dist-es-HVS3RPMX-AYJ3DW4L.js +0 -355
  95. package/dist/dist-es-HVS3RPMX-AYJ3DW4L.js.map +0 -1
  96. package/dist/dist-es-L6R4FPI5-IKIRYN45.js +0 -472
  97. package/dist/dist-es-L6R4FPI5-IKIRYN45.js.map +0 -1
  98. package/dist/dist-es-SRVEB5QV-Q4CTC2HX.js +0 -24
  99. package/dist/dist-es-TRIVUKV4-2J47CDXR.js +0 -85
  100. package/dist/dist-es-TRIVUKV4-2J47CDXR.js.map +0 -1
  101. package/dist/dist-es-UEEUAV34-IZQDTAMW.js +0 -16
  102. package/dist/event-streams-NZADSH5J-6MOSNEV3.js +0 -247
  103. package/dist/event-streams-NZADSH5J-6MOSNEV3.js.map +0 -1
  104. package/dist/loadSso-IQZ5NB6C-DZJTORO3.js +0 -738
  105. package/dist/loadSso-IQZ5NB6C-DZJTORO3.js.map +0 -1
  106. package/dist/multipart-parser-IPYBIGNL-LFMNMM6D.js +0 -387
  107. package/dist/multipart-parser-IPYBIGNL-LFMNMM6D.js.map +0 -1
  108. package/dist/otlp-json-file-exporter-VN67MK3S-RQIM6EHY.js.map +0 -1
  109. package/dist/signin-2ANR4DVS-K5VGBEJF.js +0 -556
  110. package/dist/signin-2ANR4DVS-K5VGBEJF.js.map +0 -1
  111. package/dist/simple-trace-file-exporter-XWZTIZR2-4JKATE5G.js.map +0 -1
  112. package/dist/src-SLOMUG7K-CV5JG263.js +0 -1408
  113. package/dist/src-SLOMUG7K-CV5JG263.js.map +0 -1
  114. package/dist/sso-oidc-HVCDATR2-CYP3BM5O.js +0 -708
  115. package/dist/sso-oidc-HVCDATR2-CYP3BM5O.js.map +0 -1
  116. package/dist/sts-X7JGSP4H-PDAAYDDH.js +0 -2917
  117. package/dist/sts-X7JGSP4H-PDAAYDDH.js.map +0 -1
  118. package/dist/undici-VAR2VUJI-6PAOUXZC.js +0 -23388
  119. package/dist/undici-VAR2VUJI-6PAOUXZC.js.map +0 -1
  120. /package/dist/{agentv-provider-MIDKLYIH-6LIYKQRP.js.map → agentv-provider-NFFLXG5M-TJAWCWCX.js.map} +0 -0
  121. /package/dist/{chunk-BAUNAXHT.js.map → chunk-XOSNETAV.js.map} +0 -0
  122. /package/dist/{dist-VUPMLHIV.js.map → dist-L6R5HJ72.js.map} +0 -0
  123. /package/dist/{dist-es-SRVEB5QV-Q4CTC2HX.js.map → esm-CZAWIY6F.js.map} +0 -0
  124. /package/dist/{dist-es-UEEUAV34-IZQDTAMW.js.map → otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js.map} +0 -0
  125. /package/dist/{esm-UYZ3HJBU.js.map → simple-trace-file-exporter-CRIO5HDZ-QYYT2QQT.js.map} +0 -0
  126. /package/dist/{src-PXDA7QIS.js.map → src-ML4D2MC2.js.map} +0 -0
@@ -1,204 +0,0 @@
1
- import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
-
3
- // ../../packages/core/dist/chunk-H66Q7GZX.js
4
- import { join } from "path";
5
- import { homedir } from "os";
6
- import { sep } from "path";
7
- import { join as join3 } from "path";
8
- import { join as join2 } from "path";
9
- import { readFile as fsReadFile } from "node:fs/promises";
10
- import { readFile as readFile2 } from "fs/promises";
11
- import { createHash } from "crypto";
12
- import { join as join4 } from "path";
13
- var ENV_PROFILE = "AWS_PROFILE";
14
- var DEFAULT_PROFILE = "default";
15
- var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
16
- var homeDirCache = {};
17
- var getHomeDirCacheKey = () => {
18
- if (process && process.geteuid) {
19
- return `${process.geteuid()}`;
20
- }
21
- return "DEFAULT";
22
- };
23
- var getHomeDir = () => {
24
- const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
25
- if (HOME)
26
- return HOME;
27
- if (USERPROFILE)
28
- return USERPROFILE;
29
- if (HOMEPATH)
30
- return `${HOMEDRIVE}${HOMEPATH}`;
31
- const homeDirCacheKey = getHomeDirCacheKey();
32
- if (!homeDirCache[homeDirCacheKey])
33
- homeDirCache[homeDirCacheKey] = homedir();
34
- return homeDirCache[homeDirCacheKey];
35
- };
36
- var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
37
- var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
38
- var IniSectionType;
39
- (function(IniSectionType2) {
40
- IniSectionType2["PROFILE"] = "profile";
41
- IniSectionType2["SSO_SESSION"] = "sso-session";
42
- IniSectionType2["SERVICES"] = "services";
43
- })(IniSectionType || (IniSectionType = {}));
44
- var CONFIG_PREFIX_SEPARATOR = ".";
45
- var getConfigData = (data) => Object.entries(data).filter(([key]) => {
46
- const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
47
- if (indexOfSeparator === -1) {
48
- return false;
49
- }
50
- return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator));
51
- }).reduce((acc, [key, value]) => {
52
- const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
53
- const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
54
- acc[updatedKey] = value;
55
- return acc;
56
- }, {
57
- ...data.default && { default: data.default }
58
- });
59
- var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
60
- var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
61
- var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
62
- var profileNameBlockList = ["__proto__", "profile __proto__"];
63
- var parseIni = (iniData) => {
64
- const map = {};
65
- let currentSection;
66
- let currentSubSection;
67
- for (const iniLine of iniData.split(/\r?\n/)) {
68
- const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
69
- const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
70
- if (isSection) {
71
- currentSection = void 0;
72
- currentSubSection = void 0;
73
- const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
74
- const matches = prefixKeyRegex.exec(sectionName);
75
- if (matches) {
76
- const [, prefix, , name] = matches;
77
- if (Object.values(IniSectionType).includes(prefix)) {
78
- currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
79
- }
80
- } else {
81
- currentSection = sectionName;
82
- }
83
- if (profileNameBlockList.includes(sectionName)) {
84
- throw new Error(`Found invalid profile name "${sectionName}"`);
85
- }
86
- } else if (currentSection) {
87
- const indexOfEqualsSign = trimmedLine.indexOf("=");
88
- if (![0, -1].includes(indexOfEqualsSign)) {
89
- const [name, value] = [
90
- trimmedLine.substring(0, indexOfEqualsSign).trim(),
91
- trimmedLine.substring(indexOfEqualsSign + 1).trim()
92
- ];
93
- if (value === "") {
94
- currentSubSection = name;
95
- } else {
96
- if (currentSubSection && iniLine.trimStart() === iniLine) {
97
- currentSubSection = void 0;
98
- }
99
- map[currentSection] = map[currentSection] || {};
100
- const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
101
- map[currentSection][key] = value;
102
- }
103
- }
104
- }
105
- }
106
- return map;
107
- };
108
- var filePromises = {};
109
- var fileIntercept = {};
110
- var readFile = (path, options) => {
111
- if (fileIntercept[path] !== void 0) {
112
- return fileIntercept[path];
113
- }
114
- if (!filePromises[path] || options?.ignoreCache) {
115
- filePromises[path] = fsReadFile(path, "utf8");
116
- }
117
- return filePromises[path];
118
- };
119
- var swallowError = () => ({});
120
- var loadSharedConfigFiles = async (init = {}) => {
121
- const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
122
- const homeDir = getHomeDir();
123
- const relativeHomeDirPrefix = "~/";
124
- let resolvedFilepath = filepath;
125
- if (filepath.startsWith(relativeHomeDirPrefix)) {
126
- resolvedFilepath = join3(homeDir, filepath.slice(2));
127
- }
128
- let resolvedConfigFilepath = configFilepath;
129
- if (configFilepath.startsWith(relativeHomeDirPrefix)) {
130
- resolvedConfigFilepath = join3(homeDir, configFilepath.slice(2));
131
- }
132
- const parsedFiles = await Promise.all([
133
- readFile(resolvedConfigFilepath, {
134
- ignoreCache: init.ignoreCache
135
- }).then(parseIni).then(getConfigData).catch(swallowError),
136
- readFile(resolvedFilepath, {
137
- ignoreCache: init.ignoreCache
138
- }).then(parseIni).catch(swallowError)
139
- ]);
140
- return {
141
- configFile: parsedFiles[0],
142
- credentialsFile: parsedFiles[1]
143
- };
144
- };
145
- var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
146
- var swallowError2 = () => ({});
147
- var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
148
- var mergeConfigFiles = (...files) => {
149
- const merged = {};
150
- for (const file of files) {
151
- for (const [key, values] of Object.entries(file)) {
152
- if (merged[key] !== void 0) {
153
- Object.assign(merged[key], values);
154
- } else {
155
- merged[key] = values;
156
- }
157
- }
158
- }
159
- return merged;
160
- };
161
- var parseKnownFiles = async (init) => {
162
- const parsedFiles = await loadSharedConfigFiles(init);
163
- return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
164
- };
165
- var getSSOTokenFilepath = (id) => {
166
- const hasher = createHash("sha1");
167
- const cacheName = hasher.update(id).digest("hex");
168
- return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
169
- };
170
- var tokenIntercept = {};
171
- var getSSOTokenFromFile = async (id) => {
172
- if (tokenIntercept[id]) {
173
- return tokenIntercept[id];
174
- }
175
- const ssoTokenFilepath = getSSOTokenFilepath(id);
176
- const ssoTokenText = await readFile2(ssoTokenFilepath, "utf8");
177
- return JSON.parse(ssoTokenText);
178
- };
179
- var externalDataInterceptor = {
180
- getFileRecord() {
181
- return fileIntercept;
182
- },
183
- interceptFile(path, contents) {
184
- fileIntercept[path] = Promise.resolve(contents);
185
- },
186
- getTokenRecord() {
187
- return tokenIntercept;
188
- },
189
- interceptToken(id, contents) {
190
- tokenIntercept[id] = contents;
191
- }
192
- };
193
-
194
- export {
195
- getProfileName,
196
- CONFIG_PREFIX_SEPARATOR,
197
- readFile,
198
- loadSharedConfigFiles,
199
- loadSsoSessionData,
200
- parseKnownFiles,
201
- getSSOTokenFromFile,
202
- externalDataInterceptor
203
- };
204
- //# sourceMappingURL=chunk-WVSXFZWP.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js","../../../node_modules/.bun/@smithy+types@4.12.1/node_modules/@smithy/types/dist-es/profile.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js","../../../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.4/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js"],"sourcesContent":["export const ENV_PROFILE = \"AWS_PROFILE\";\nexport const DEFAULT_PROFILE = \"default\";\nexport const getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;\n","import { join } from \"path\";\nimport { getHomeDir } from \"./getHomeDir\";\nexport const ENV_CONFIG_PATH = \"AWS_CONFIG_FILE\";\nexport const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), \".aws\", \"config\");\n","import { homedir } from \"os\";\nimport { sep } from \"path\";\nconst homeDirCache = {};\nconst getHomeDirCacheKey = () => {\n if (process && process.geteuid) {\n return `${process.geteuid()}`;\n }\n return \"DEFAULT\";\n};\nexport const getHomeDir = () => {\n const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${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] = homedir();\n return homeDirCache[homeDirCacheKey];\n};\n","export var IniSectionType;\n(function (IniSectionType) {\n IniSectionType[\"PROFILE\"] = \"profile\";\n IniSectionType[\"SSO_SESSION\"] = \"sso-session\";\n IniSectionType[\"SERVICES\"] = \"services\";\n})(IniSectionType || (IniSectionType = {}));\n","import { join } from \"path\";\nimport { getConfigData } from \"./getConfigData\";\nimport { getConfigFilepath } from \"./getConfigFilepath\";\nimport { getCredentialsFilepath } from \"./getCredentialsFilepath\";\nimport { getHomeDir } from \"./getHomeDir\";\nimport { parseIni } from \"./parseIni\";\nimport { readFile } from \"./readFile\";\nconst swallowError = () => ({});\nexport { CONFIG_PREFIX_SEPARATOR } from \"./constants\";\nexport const loadSharedConfigFiles = async (init = {}) => {\n const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;\n const homeDir = getHomeDir();\n const relativeHomeDirPrefix = \"~/\";\n let resolvedFilepath = filepath;\n if (filepath.startsWith(relativeHomeDirPrefix)) {\n resolvedFilepath = join(homeDir, filepath.slice(2));\n }\n let resolvedConfigFilepath = configFilepath;\n if (configFilepath.startsWith(relativeHomeDirPrefix)) {\n resolvedConfigFilepath = join(homeDir, configFilepath.slice(2));\n }\n const parsedFiles = await Promise.all([\n readFile(resolvedConfigFilepath, {\n ignoreCache: init.ignoreCache,\n })\n .then(parseIni)\n .then(getConfigData)\n .catch(swallowError),\n readFile(resolvedFilepath, {\n ignoreCache: init.ignoreCache,\n })\n .then(parseIni)\n .catch(swallowError),\n ]);\n return {\n configFile: parsedFiles[0],\n credentialsFile: parsedFiles[1],\n };\n};\n","export const CONFIG_PREFIX_SEPARATOR = \".\";\n","import { IniSectionType } from \"@smithy/types\";\nimport { CONFIG_PREFIX_SEPARATOR } from \"./constants\";\nexport const 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(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) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;\n acc[updatedKey] = value;\n return acc;\n}, {\n ...(data.default && { default: data.default }),\n});\n","import { join } from \"path\";\nimport { getHomeDir } from \"./getHomeDir\";\nexport const ENV_CREDENTIALS_PATH = \"AWS_SHARED_CREDENTIALS_FILE\";\nexport const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join(getHomeDir(), \".aws\", \"credentials\");\n","import { IniSectionType } from \"@smithy/types\";\nimport { CONFIG_PREFIX_SEPARATOR } from \"./constants\";\nconst prefixKeyRegex = /^([\\w-]+)\\s([\"'])?([\\w-@\\+\\.%:/]+)\\2$/;\nconst profileNameBlockList = [\"__proto__\", \"profile __proto__\"];\nexport const 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(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","import { readFile as fsReadFile } from \"node:fs/promises\";\nexport const filePromises = {};\nexport const fileIntercept = {};\nexport const readFile = (path, options) => {\n if (fileIntercept[path] !== undefined) {\n return fileIntercept[path];\n }\n if (!filePromises[path] || options?.ignoreCache) {\n filePromises[path] = fsReadFile(path, \"utf8\");\n }\n return filePromises[path];\n};\n","import { IniSectionType } from \"@smithy/types\";\nimport { CONFIG_PREFIX_SEPARATOR } from \"./loadSharedConfigFiles\";\nexport const getSsoSessionData = (data) => Object.entries(data)\n .filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR))\n .reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});\n","import { getConfigFilepath } from \"./getConfigFilepath\";\nimport { getSsoSessionData } from \"./getSsoSessionData\";\nimport { parseIni } from \"./parseIni\";\nimport { readFile } from \"./readFile\";\nconst swallowError = () => ({});\nexport const loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath())\n .then(parseIni)\n .then(getSsoSessionData)\n .catch(swallowError);\n","export const 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","import { loadSharedConfigFiles } from \"./loadSharedConfigFiles\";\nimport { mergeConfigFiles } from \"./mergeConfigFiles\";\nexport const parseKnownFiles = async (init) => {\n const parsedFiles = await loadSharedConfigFiles(init);\n return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);\n};\n","import { readFile } from \"fs/promises\";\nimport { getSSOTokenFilepath } from \"./getSSOTokenFilepath\";\nexport const tokenIntercept = {};\nexport const getSSOTokenFromFile = async (id) => {\n if (tokenIntercept[id]) {\n return tokenIntercept[id];\n }\n const ssoTokenFilepath = getSSOTokenFilepath(id);\n const ssoTokenText = await readFile(ssoTokenFilepath, \"utf8\");\n return JSON.parse(ssoTokenText);\n};\n","import { createHash } from \"crypto\";\nimport { join } from \"path\";\nimport { getHomeDir } from \"./getHomeDir\";\nexport const getSSOTokenFilepath = (id) => {\n const hasher = createHash(\"sha1\");\n const cacheName = hasher.update(id).digest(\"hex\");\n return join(getHomeDir(), \".aws\", \"sso\", \"cache\", `${cacheName}.json`);\n};\n","import { tokenIntercept } from \"./getSSOTokenFromFile\";\nimport { fileIntercept } from \"./readFile\";\nexport const externalDataInterceptor = {\n getFileRecord() {\n return fileIntercept;\n },\n interceptFile(path, contents) {\n fileIntercept[path] = Promise.resolve(contents);\n },\n getTokenRecord() {\n return tokenIntercept;\n },\n interceptToken(id, contents) {\n tokenIntercept[id] = contents;\n },\n};\n"],"mappings":";;;ACAA,SAAS,YAAY;ACArB,SAAS,eAAe;AACxB,SAAS,WAAW;AEDpB,SAAS,QAAAA,aAAY;AGArB,SAAS,QAAAA,aAAY;AEArB,SAAS,YAAY,kBAAkB;AKAvC,SAAS,YAAAC,iBAAgB;ACAzB,SAAS,kBAAkB;AAC3B,SAAS,QAAAD,aAAY;AfDd,IAAM,cAAc;AACpB,IAAM,kBAAkB;AACxB,IAAM,iBAAiB,CAAC,SAAS,KAAK,WAAW,QAAQ,IAAI,WAAW,KAAK;AEApF,IAAM,eAAe,CAAC;AACtB,IAAM,qBAAqB,MAAM;AAC7B,MAAI,WAAW,QAAQ,SAAS;AAC5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O,KAAK,MAAM,YAAY;AAClC;AERO,IAAM,0BAA0B;EACnC,gBAAgB;AACZ,WAAO;EACX;EACA,cAAc,MAAM,UAAU;AAC1B,kBAAc,IAAI,IAAI,QAAQ,QAAQ,QAAQ;EAClD;EACA,iBAAiB;AACb,WAAO;EACX;EACA,eAAe,IAAI,UAAU;AACzB,mBAAe,EAAE,IAAI;EACzB;AACJ;","names":["join","readFile","IniSectionType","swallowError"]}
@@ -1,30 +0,0 @@
1
- import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
- import {
3
- ProviderError
4
- } from "./chunk-UHP5KEDL.js";
5
-
6
- // ../../packages/core/dist/chunk-LLUUM7EM.js
7
- var chain = (...providers) => async () => {
8
- if (providers.length === 0) {
9
- throw new ProviderError("No providers in chain");
10
- }
11
- let lastProviderError;
12
- for (const provider of providers) {
13
- try {
14
- const credentials = await provider();
15
- return credentials;
16
- } catch (err) {
17
- lastProviderError = err;
18
- if (err?.tryNextLink) {
19
- continue;
20
- }
21
- throw err;
22
- }
23
- }
24
- throw lastProviderError;
25
- };
26
-
27
- export {
28
- chain
29
- };
30
- //# sourceMappingURL=chunk-XSUMCWKO.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/.bun/@smithy+property-provider@4.2.9/node_modules/@smithy/property-provider/dist-es/chain.js"],"sourcesContent":["import { ProviderError } from \"./ProviderError\";\nexport const 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"],"mappings":";;;;;;AACO,IAAM,QAAQ,IAAI,cAAc,YAAY;AAC/C,MAAI,UAAU,WAAW,GAAG;AACxB,UAAM,IAAI,cAAc,uBAAuB;EACnD;AACA,MAAI;AACJ,aAAW,YAAY,WAAW;AAC9B,QAAI;AACA,YAAM,cAAc,MAAM,SAAS;AACnC,aAAO;IACX,SACO,KAAK;AACR,0BAAoB;AACpB,UAAI,KAAK,aAAa;AAClB;MACJ;AACA,YAAM;IACV;EACJ;AACA,QAAM;AACV;","names":[]}
@@ -1,181 +0,0 @@
1
- import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
-
3
- // ../../packages/core/dist/chunk-GOAAG23P.js
4
- var createAggregatedClient = (commands, Client, options) => {
5
- for (const [command, CommandCtor] of Object.entries(commands)) {
6
- const methodImpl = async function(args, optionsOrCb, cb) {
7
- const command2 = new CommandCtor(args);
8
- if (typeof optionsOrCb === "function") {
9
- this.send(command2, optionsOrCb);
10
- } else if (typeof cb === "function") {
11
- if (typeof optionsOrCb !== "object")
12
- throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
13
- this.send(command2, optionsOrCb || {}, cb);
14
- } else {
15
- return this.send(command2, optionsOrCb);
16
- }
17
- };
18
- const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
19
- Client.prototype[methodName] = methodImpl;
20
- }
21
- const { paginators = {}, waiters = {} } = options ?? {};
22
- for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
23
- if (Client.prototype[paginatorName] === void 0) {
24
- Client.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
25
- return paginatorFn({
26
- ...paginationConfiguration,
27
- client: this
28
- }, commandInput, ...rest);
29
- };
30
- }
31
- }
32
- for (const [waiterName, waiterFn] of Object.entries(waiters)) {
33
- if (Client.prototype[waiterName] === void 0) {
34
- Client.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
35
- let config = waiterConfiguration;
36
- if (typeof waiterConfiguration === "number") {
37
- config = {
38
- maxWaitTime: waiterConfiguration
39
- };
40
- }
41
- return waiterFn({
42
- ...config,
43
- client: this
44
- }, commandInput, ...rest);
45
- };
46
- }
47
- }
48
- };
49
- var package_default = {
50
- name: "@aws-sdk/nested-clients",
51
- version: "3.996.0",
52
- description: "Nested clients for AWS SDK packages.",
53
- main: "./dist-cjs/index.js",
54
- module: "./dist-es/index.js",
55
- types: "./dist-types/index.d.ts",
56
- scripts: {
57
- build: "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
58
- "build:cjs": "node ../../scripts/compilation/inline nested-clients",
59
- "build:es": "tsc -p tsconfig.es.json",
60
- "build:include:deps": 'yarn g:turbo run build -F="$npm_package_name"',
61
- "build:types": "tsc -p tsconfig.types.json",
62
- "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
63
- clean: "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
64
- lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients",
65
- test: "yarn g:vitest run",
66
- "test:watch": "yarn g:vitest watch"
67
- },
68
- engines: {
69
- node: ">=20.0.0"
70
- },
71
- sideEffects: false,
72
- author: {
73
- name: "AWS SDK for JavaScript Team",
74
- url: "https://aws.amazon.com/javascript/"
75
- },
76
- license: "Apache-2.0",
77
- dependencies: {
78
- "@aws-crypto/sha256-browser": "5.2.0",
79
- "@aws-crypto/sha256-js": "5.2.0",
80
- "@aws-sdk/core": "^3.973.12",
81
- "@aws-sdk/middleware-host-header": "^3.972.3",
82
- "@aws-sdk/middleware-logger": "^3.972.3",
83
- "@aws-sdk/middleware-recursion-detection": "^3.972.3",
84
- "@aws-sdk/middleware-user-agent": "^3.972.12",
85
- "@aws-sdk/region-config-resolver": "^3.972.3",
86
- "@aws-sdk/types": "^3.973.1",
87
- "@aws-sdk/util-endpoints": "3.996.0",
88
- "@aws-sdk/util-user-agent-browser": "^3.972.3",
89
- "@aws-sdk/util-user-agent-node": "^3.972.11",
90
- "@smithy/config-resolver": "^4.4.6",
91
- "@smithy/core": "^3.23.2",
92
- "@smithy/fetch-http-handler": "^5.3.9",
93
- "@smithy/hash-node": "^4.2.8",
94
- "@smithy/invalid-dependency": "^4.2.8",
95
- "@smithy/middleware-content-length": "^4.2.8",
96
- "@smithy/middleware-endpoint": "^4.4.16",
97
- "@smithy/middleware-retry": "^4.4.33",
98
- "@smithy/middleware-serde": "^4.2.9",
99
- "@smithy/middleware-stack": "^4.2.8",
100
- "@smithy/node-config-provider": "^4.3.8",
101
- "@smithy/node-http-handler": "^4.4.10",
102
- "@smithy/protocol-http": "^5.3.8",
103
- "@smithy/smithy-client": "^4.11.5",
104
- "@smithy/types": "^4.12.0",
105
- "@smithy/url-parser": "^4.2.8",
106
- "@smithy/util-base64": "^4.3.0",
107
- "@smithy/util-body-length-browser": "^4.2.0",
108
- "@smithy/util-body-length-node": "^4.2.1",
109
- "@smithy/util-defaults-mode-browser": "^4.3.32",
110
- "@smithy/util-defaults-mode-node": "^4.2.35",
111
- "@smithy/util-endpoints": "^3.2.8",
112
- "@smithy/util-middleware": "^4.2.8",
113
- "@smithy/util-retry": "^4.2.8",
114
- "@smithy/util-utf8": "^4.2.0",
115
- tslib: "^2.6.2"
116
- },
117
- devDependencies: {
118
- concurrently: "7.0.0",
119
- "downlevel-dts": "0.10.1",
120
- premove: "4.0.0",
121
- typescript: "~5.8.3"
122
- },
123
- typesVersions: {
124
- "<4.0": {
125
- "dist-types/*": [
126
- "dist-types/ts3.4/*"
127
- ]
128
- }
129
- },
130
- files: [
131
- "./signin.d.ts",
132
- "./signin.js",
133
- "./sso-oidc.d.ts",
134
- "./sso-oidc.js",
135
- "./sts.d.ts",
136
- "./sts.js",
137
- "dist-*/**"
138
- ],
139
- browser: {
140
- "./dist-es/submodules/signin/runtimeConfig": "./dist-es/submodules/signin/runtimeConfig.browser",
141
- "./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
142
- "./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
143
- },
144
- "react-native": {},
145
- homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
146
- repository: {
147
- type: "git",
148
- url: "https://github.com/aws/aws-sdk-js-v3.git",
149
- directory: "packages/nested-clients"
150
- },
151
- exports: {
152
- "./package.json": "./package.json",
153
- "./sso-oidc": {
154
- types: "./dist-types/submodules/sso-oidc/index.d.ts",
155
- module: "./dist-es/submodules/sso-oidc/index.js",
156
- node: "./dist-cjs/submodules/sso-oidc/index.js",
157
- import: "./dist-es/submodules/sso-oidc/index.js",
158
- require: "./dist-cjs/submodules/sso-oidc/index.js"
159
- },
160
- "./sts": {
161
- types: "./dist-types/submodules/sts/index.d.ts",
162
- module: "./dist-es/submodules/sts/index.js",
163
- node: "./dist-cjs/submodules/sts/index.js",
164
- import: "./dist-es/submodules/sts/index.js",
165
- require: "./dist-cjs/submodules/sts/index.js"
166
- },
167
- "./signin": {
168
- types: "./dist-types/submodules/signin/index.d.ts",
169
- module: "./dist-es/submodules/signin/index.js",
170
- node: "./dist-cjs/submodules/signin/index.js",
171
- import: "./dist-es/submodules/signin/index.js",
172
- require: "./dist-cjs/submodules/signin/index.js"
173
- }
174
- }
175
- };
176
-
177
- export {
178
- createAggregatedClient,
179
- package_default
180
- };
181
- //# sourceMappingURL=chunk-XUO7ZEHU.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/.bun/@smithy+smithy-client@4.11.7/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js","../../../node_modules/.bun/@aws-sdk+nested-clients@3.996.0/node_modules/@aws-sdk/nested-clients/package.json"],"sourcesContent":["export const createAggregatedClient = (commands, Client, options) => {\n for (const [command, CommandCtor] of Object.entries(commands)) {\n const methodImpl = async function (args, optionsOrCb, cb) {\n const command = new CommandCtor(args);\n if (typeof optionsOrCb === \"function\") {\n this.send(command, optionsOrCb);\n }\n else if (typeof cb === \"function\") {\n if (typeof optionsOrCb !== \"object\")\n throw new Error(`Expected http options but got ${typeof optionsOrCb}`);\n this.send(command, optionsOrCb || {}, cb);\n }\n else {\n return this.send(command, optionsOrCb);\n }\n };\n const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, \"\");\n Client.prototype[methodName] = methodImpl;\n }\n const { paginators = {}, waiters = {} } = options ?? {};\n for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {\n if (Client.prototype[paginatorName] === void 0) {\n Client.prototype[paginatorName] = function (commandInput = {}, paginationConfiguration, ...rest) {\n return paginatorFn({\n ...paginationConfiguration,\n client: this,\n }, commandInput, ...rest);\n };\n }\n }\n for (const [waiterName, waiterFn] of Object.entries(waiters)) {\n if (Client.prototype[waiterName] === void 0) {\n Client.prototype[waiterName] = async function (commandInput = {}, waiterConfiguration, ...rest) {\n let config = waiterConfiguration;\n if (typeof waiterConfiguration === \"number\") {\n config = {\n maxWaitTime: waiterConfiguration,\n };\n }\n return waiterFn({\n ...config,\n client: this,\n }, commandInput, ...rest);\n };\n }\n }\n};\n","{\n \"name\": \"@aws-sdk/nested-clients\",\n \"version\": \"3.996.0\",\n \"description\": \"Nested clients for AWS SDK packages.\",\n \"main\": \"./dist-cjs/index.js\",\n \"module\": \"./dist-es/index.js\",\n \"types\": \"./dist-types/index.d.ts\",\n \"scripts\": {\n \"build\": \"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs\",\n \"build:cjs\": \"node ../../scripts/compilation/inline nested-clients\",\n \"build:es\": \"tsc -p tsconfig.es.json\",\n \"build:include:deps\": \"yarn g:turbo run build -F=\\\"$npm_package_name\\\"\",\n \"build:types\": \"tsc -p tsconfig.types.json\",\n \"build:types:downlevel\": \"downlevel-dts dist-types dist-types/ts3.4\",\n \"clean\": \"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo\",\n \"lint\": \"node ../../scripts/validation/submodules-linter.js --pkg nested-clients\",\n \"test\": \"yarn g:vitest run\",\n \"test:watch\": \"yarn g:vitest watch\"\n },\n \"engines\": {\n \"node\": \">=20.0.0\"\n },\n \"sideEffects\": false,\n \"author\": {\n \"name\": \"AWS SDK for JavaScript Team\",\n \"url\": \"https://aws.amazon.com/javascript/\"\n },\n \"license\": \"Apache-2.0\",\n \"dependencies\": {\n \"@aws-crypto/sha256-browser\": \"5.2.0\",\n \"@aws-crypto/sha256-js\": \"5.2.0\",\n \"@aws-sdk/core\": \"^3.973.12\",\n \"@aws-sdk/middleware-host-header\": \"^3.972.3\",\n \"@aws-sdk/middleware-logger\": \"^3.972.3\",\n \"@aws-sdk/middleware-recursion-detection\": \"^3.972.3\",\n \"@aws-sdk/middleware-user-agent\": \"^3.972.12\",\n \"@aws-sdk/region-config-resolver\": \"^3.972.3\",\n \"@aws-sdk/types\": \"^3.973.1\",\n \"@aws-sdk/util-endpoints\": \"3.996.0\",\n \"@aws-sdk/util-user-agent-browser\": \"^3.972.3\",\n \"@aws-sdk/util-user-agent-node\": \"^3.972.11\",\n \"@smithy/config-resolver\": \"^4.4.6\",\n \"@smithy/core\": \"^3.23.2\",\n \"@smithy/fetch-http-handler\": \"^5.3.9\",\n \"@smithy/hash-node\": \"^4.2.8\",\n \"@smithy/invalid-dependency\": \"^4.2.8\",\n \"@smithy/middleware-content-length\": \"^4.2.8\",\n \"@smithy/middleware-endpoint\": \"^4.4.16\",\n \"@smithy/middleware-retry\": \"^4.4.33\",\n \"@smithy/middleware-serde\": \"^4.2.9\",\n \"@smithy/middleware-stack\": \"^4.2.8\",\n \"@smithy/node-config-provider\": \"^4.3.8\",\n \"@smithy/node-http-handler\": \"^4.4.10\",\n \"@smithy/protocol-http\": \"^5.3.8\",\n \"@smithy/smithy-client\": \"^4.11.5\",\n \"@smithy/types\": \"^4.12.0\",\n \"@smithy/url-parser\": \"^4.2.8\",\n \"@smithy/util-base64\": \"^4.3.0\",\n \"@smithy/util-body-length-browser\": \"^4.2.0\",\n \"@smithy/util-body-length-node\": \"^4.2.1\",\n \"@smithy/util-defaults-mode-browser\": \"^4.3.32\",\n \"@smithy/util-defaults-mode-node\": \"^4.2.35\",\n \"@smithy/util-endpoints\": \"^3.2.8\",\n \"@smithy/util-middleware\": \"^4.2.8\",\n \"@smithy/util-retry\": \"^4.2.8\",\n \"@smithy/util-utf8\": \"^4.2.0\",\n \"tslib\": \"^2.6.2\"\n },\n \"devDependencies\": {\n \"concurrently\": \"7.0.0\",\n \"downlevel-dts\": \"0.10.1\",\n \"premove\": \"4.0.0\",\n \"typescript\": \"~5.8.3\"\n },\n \"typesVersions\": {\n \"<4.0\": {\n \"dist-types/*\": [\n \"dist-types/ts3.4/*\"\n ]\n }\n },\n \"files\": [\n \"./signin.d.ts\",\n \"./signin.js\",\n \"./sso-oidc.d.ts\",\n \"./sso-oidc.js\",\n \"./sts.d.ts\",\n \"./sts.js\",\n \"dist-*/**\"\n ],\n \"browser\": {\n \"./dist-es/submodules/signin/runtimeConfig\": \"./dist-es/submodules/signin/runtimeConfig.browser\",\n \"./dist-es/submodules/sso-oidc/runtimeConfig\": \"./dist-es/submodules/sso-oidc/runtimeConfig.browser\",\n \"./dist-es/submodules/sts/runtimeConfig\": \"./dist-es/submodules/sts/runtimeConfig.browser\"\n },\n \"react-native\": {},\n \"homepage\": \"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/aws/aws-sdk-js-v3.git\",\n \"directory\": \"packages/nested-clients\"\n },\n \"exports\": {\n \"./package.json\": \"./package.json\",\n \"./sso-oidc\": {\n \"types\": \"./dist-types/submodules/sso-oidc/index.d.ts\",\n \"module\": \"./dist-es/submodules/sso-oidc/index.js\",\n \"node\": \"./dist-cjs/submodules/sso-oidc/index.js\",\n \"import\": \"./dist-es/submodules/sso-oidc/index.js\",\n \"require\": \"./dist-cjs/submodules/sso-oidc/index.js\"\n },\n \"./sts\": {\n \"types\": \"./dist-types/submodules/sts/index.d.ts\",\n \"module\": \"./dist-es/submodules/sts/index.js\",\n \"node\": \"./dist-cjs/submodules/sts/index.js\",\n \"import\": \"./dist-es/submodules/sts/index.js\",\n \"require\": \"./dist-cjs/submodules/sts/index.js\"\n },\n \"./signin\": {\n \"types\": \"./dist-types/submodules/signin/index.d.ts\",\n \"module\": \"./dist-es/submodules/signin/index.js\",\n \"node\": \"./dist-cjs/submodules/signin/index.js\",\n \"import\": \"./dist-es/submodules/signin/index.js\",\n \"require\": \"./dist-cjs/submodules/signin/index.js\"\n }\n }\n}\n"],"mappings":";;;AAAO,IAAM,yBAAyB,CAAC,UAAU,QAAQ,YAAY;AACjE,aAAW,CAAC,SAAS,WAAW,KAAK,OAAO,QAAQ,QAAQ,GAAG;AAC3D,UAAM,aAAa,eAAgB,MAAM,aAAa,IAAI;AACtD,YAAMA,WAAU,IAAI,YAAY,IAAI;AACpC,UAAI,OAAO,gBAAgB,YAAY;AACnC,aAAK,KAAKA,UAAS,WAAW;MAClC,WACS,OAAO,OAAO,YAAY;AAC/B,YAAI,OAAO,gBAAgB;AACvB,gBAAM,IAAI,MAAM,iCAAiC,OAAO,WAAW,EAAE;AACzE,aAAK,KAAKA,UAAS,eAAe,CAAC,GAAG,EAAE;MAC5C,OACK;AACD,eAAO,KAAK,KAAKA,UAAS,WAAW;MACzC;IACJ;AACA,UAAM,cAAc,QAAQ,CAAC,EAAE,YAAY,IAAI,QAAQ,MAAM,CAAC,GAAG,QAAQ,YAAY,EAAE;AACvF,WAAO,UAAU,UAAU,IAAI;EACnC;AACA,QAAM,EAAE,aAAa,CAAC,GAAG,UAAU,CAAC,EAAE,IAAI,WAAW,CAAC;AACtD,aAAW,CAAC,eAAe,WAAW,KAAK,OAAO,QAAQ,UAAU,GAAG;AACnE,QAAI,OAAO,UAAU,aAAa,MAAM,QAAQ;AAC5C,aAAO,UAAU,aAAa,IAAI,SAAU,eAAe,CAAC,GAAG,4BAA4B,MAAM;AAC7F,eAAO,YAAY;UACf,GAAG;UACH,QAAQ;QACZ,GAAG,cAAc,GAAG,IAAI;MAC5B;IACJ;EACJ;AACA,aAAW,CAAC,YAAY,QAAQ,KAAK,OAAO,QAAQ,OAAO,GAAG;AAC1D,QAA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