@granite-js/pulumi-aws 0.1.34 → 1.0.2
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/CHANGELOG.md +6 -112
- package/dist/chunk-23MVQUOJ.js +1630 -0
- package/dist/chunk-24XYHOWM.js +171 -0
- package/dist/chunk-3AVBP57V.js +1598 -0
- package/dist/chunk-3JKQPIJ2.js +460 -0
- package/dist/{chunk-ITI6QA2Q.js → chunk-3OYGHA4S.js} +1 -1
- package/dist/{chunk-IEZY5C3G.js → chunk-46DIC54Q.js} +49 -37
- package/dist/chunk-57WYIP4I.js +808 -0
- package/dist/{chunk-WCHHWTND.js → chunk-63Q3RLAK.js} +93 -59
- package/dist/chunk-6KRYZP6R.js +28 -0
- package/dist/{chunk-QAE2S7MG.js → chunk-7NN7DVGK.js} +2050 -552
- package/dist/{chunk-5W7B34BN.js → chunk-ASGFIK4A.js} +2231 -464
- package/dist/chunk-BTBQTDRJ.js +174 -0
- package/dist/chunk-DDZTWBHZ.js +154 -0
- package/dist/chunk-G3FWLTNJ.js +10 -0
- package/dist/{chunk-TJ744C2T.js → chunk-GJFKL6XM.js} +43 -38
- package/dist/chunk-H4QJ5O4E.js +36 -0
- package/dist/{chunk-X6XO7USX.js → chunk-LCO5F3JB.js} +109 -56
- package/dist/chunk-NDDYFDCU.js +60 -0
- package/dist/chunk-OCHPLE5N.js +28 -0
- package/dist/chunk-OSJA4YYQ.js +846 -0
- package/dist/chunk-PIT3K3NC.js +464 -0
- package/dist/chunk-QCKAO4UT.js +476 -0
- package/dist/{chunk-64IS37V6.js → chunk-RYIGWCGK.js} +1 -6
- package/dist/chunk-S4LJWEXU.js +37 -0
- package/dist/chunk-SJ26Y3GW.js +472 -0
- package/dist/chunk-TDZTH7TL.js +60 -0
- package/dist/chunk-THUA35UY.js +35 -0
- package/dist/{chunk-IUKLHJNE.js → chunk-V7TRGEV6.js} +4 -7
- package/dist/{chunk-KGNTV362.js → chunk-WDFKVCPC.js} +66 -34
- package/dist/{chunk-B7OAPHPY.js → chunk-YWWEFWFD.js} +3 -3
- package/dist/chunk-Z4UYYQ4J.js +42 -0
- package/dist/chunk-ZBT5SDIQ.js +16528 -0
- package/dist/chunk-ZIHRRTTA.js +24 -0
- package/dist/{dist-es-CDFIYJVE.js → dist-es-3VZ2IGGJ.js} +18 -15
- package/dist/{dist-es-SUPEA6VE-3B5JSW5C.js → dist-es-BQW4ETQH-C7ZSD5EG.js} +8 -25
- package/dist/{dist-es-GHYMLBON.js → dist-es-HSWXMGNC.js} +21 -21
- package/dist/{dist-es-OCQVKISC-TNAJ62WG.js → dist-es-IDBNBAO5-H3TO63FG.js} +15 -18
- package/dist/{dist-es-S75EKWRJ.js → dist-es-KPJNIAPT.js} +9 -10
- package/dist/{dist-es-PRWCVZGQ-HTTVI42T.js → dist-es-LZDRG6RP-SP2FWWEO.js} +3 -4
- package/dist/{dist-es-OZGLUDWT.js → dist-es-PIWY5TOR.js} +49 -26
- package/dist/{dist-es-ADTONJUN-RVFWNZHO.js → dist-es-R4LD2OHZ-B5MB6BR2.js} +11 -13
- package/dist/dist-es-S2KJK4L2-5GDBXJIO.js +470 -0
- package/dist/{dist-es-XQME5F6W.js → dist-es-THYWPEKB.js} +12 -10
- package/dist/{dist-es-HJVOMDYC-PIAMWMAL.js → dist-es-TIYLKN6W-BAHZRZH5.js} +7 -13
- package/dist/{dist-es-IDBDK36G-Y6TQMRO5.js → dist-es-VORPMM2F-WOMP2FYQ.js} +37 -30
- package/dist/{dist-es-WQHDOVD7.js → dist-es-WESJCADT.js} +3 -4
- package/dist/dist-es-XMOG24OT.js +490 -0
- package/dist/event-streams-L7RH32OW-AFMBEYJJ.js +237 -0
- package/dist/event-streams-NGUY2RWE.js +237 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/lambda/auto-cache-removal.cjs +28894 -16488
- package/dist/lambda/auto-cache-removal.js +11574 -2713
- package/dist/lambda/origin-request.cjs +22351 -17619
- package/dist/lambda/origin-request.js +21 -17
- package/dist/lambda/origin-response.cjs +22219 -17387
- package/dist/lambda/origin-response.js +17 -13
- package/dist/{loadSso-CZSSLFH6-SA5HOQAX.js → loadSso-F4PTCHDN-YR3RRUYW.js} +330 -227
- package/dist/{loadSso-T7GJVVO2.js → loadSso-LG7MFP7N.js} +344 -223
- package/dist/signin-P7DNG43W.js +658 -0
- package/dist/signin-XWTOVLF3-4ENWNEF7.js +630 -0
- package/dist/{sso-oidc-PKO5GYK5-LC65L46O.js → sso-oidc-FQQGUOJL.js} +293 -332
- package/dist/{sso-oidc-55SJ27II.js → sso-oidc-RRDYLOJY-FK3AUTOI.js} +263 -337
- package/dist/{sts-OPF4H3GL.js → sts-7FBOVTCN.js} +674 -601
- package/dist/{sts-P7Q3MYTS-BKGWHQE4.js → sts-TBWJ374A-DHXXCVJJ.js} +651 -608
- package/package.json +5 -5
- package/dist/chunk-AEOST5WF.js +0 -63
- package/dist/chunk-FO7L563E.js +0 -13695
- package/dist/chunk-FRWSD3YQ.js +0 -1722
- package/dist/chunk-JBVMOFGH.js +0 -152
- package/dist/chunk-JSBRDJBE.js +0 -30
- package/dist/chunk-KRJS4RAS.js +0 -1732
- package/dist/chunk-M5GUUX64.js +0 -63
- package/dist/chunk-SX6SVQKS.js +0 -67
- package/dist/chunk-UNXXS5FM.js +0 -120
- package/dist/chunk-UT2RMOJS.js +0 -2447
- package/dist/chunk-VOTRVWIB.js +0 -1965
- package/dist/chunk-W3VXP3A3.js +0 -119
- package/dist/chunk-XLUI7RQ4.js +0 -115
- package/dist/dist-es-2M7RLZ5O.js +0 -200
- package/dist/dist-es-Y7VN37H5-WQ3GYROF.js +0 -196
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fromBase64,
|
|
3
|
+
streamCollector,
|
|
4
|
+
toBase64,
|
|
5
|
+
toHex
|
|
6
|
+
} from "./chunk-OSJA4YYQ.js";
|
|
7
|
+
import {
|
|
8
|
+
fromArrayBuffer,
|
|
9
|
+
toUtf8
|
|
10
|
+
} from "./chunk-Z4UYYQ4J.js";
|
|
11
|
+
|
|
12
|
+
// ../../.yarn/cache/@smithy-util-stream-npm-4.5.6-2962292a4c-42bb6f834b.zip/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js
|
|
13
|
+
import { Readable } from "stream";
|
|
14
|
+
|
|
15
|
+
// ../../.yarn/cache/@smithy-fetch-http-handler-npm-5.3.6-3aa269d8ab-8ae0401c69.zip/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js
|
|
16
|
+
var streamCollector2 = async (stream) => {
|
|
17
|
+
if (typeof Blob === "function" && stream instanceof Blob || stream.constructor?.name === "Blob") {
|
|
18
|
+
if (Blob.prototype.arrayBuffer !== void 0) {
|
|
19
|
+
return new Uint8Array(await stream.arrayBuffer());
|
|
20
|
+
}
|
|
21
|
+
return collectBlob(stream);
|
|
22
|
+
}
|
|
23
|
+
return collectStream(stream);
|
|
24
|
+
};
|
|
25
|
+
async function collectBlob(blob) {
|
|
26
|
+
const base64 = await readToBase64(blob);
|
|
27
|
+
const arrayBuffer = fromBase64(base64);
|
|
28
|
+
return new Uint8Array(arrayBuffer);
|
|
29
|
+
}
|
|
30
|
+
async function collectStream(stream) {
|
|
31
|
+
const chunks = [];
|
|
32
|
+
const reader = stream.getReader();
|
|
33
|
+
let isDone = false;
|
|
34
|
+
let length = 0;
|
|
35
|
+
while (!isDone) {
|
|
36
|
+
const { done, value } = await reader.read();
|
|
37
|
+
if (value) {
|
|
38
|
+
chunks.push(value);
|
|
39
|
+
length += value.length;
|
|
40
|
+
}
|
|
41
|
+
isDone = done;
|
|
42
|
+
}
|
|
43
|
+
const collected = new Uint8Array(length);
|
|
44
|
+
let offset = 0;
|
|
45
|
+
for (const chunk of chunks) {
|
|
46
|
+
collected.set(chunk, offset);
|
|
47
|
+
offset += chunk.length;
|
|
48
|
+
}
|
|
49
|
+
return collected;
|
|
50
|
+
}
|
|
51
|
+
function readToBase64(blob) {
|
|
52
|
+
return new Promise((resolve, reject) => {
|
|
53
|
+
const reader = new FileReader();
|
|
54
|
+
reader.onloadend = () => {
|
|
55
|
+
if (reader.readyState !== 2) {
|
|
56
|
+
return reject(new Error("Reader aborted too early"));
|
|
57
|
+
}
|
|
58
|
+
const result = reader.result ?? "";
|
|
59
|
+
const commaIndex = result.indexOf(",");
|
|
60
|
+
const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
|
|
61
|
+
resolve(result.substring(dataOffset));
|
|
62
|
+
};
|
|
63
|
+
reader.onabort = () => reject(new Error("Read aborted"));
|
|
64
|
+
reader.onerror = () => reject(reader.error);
|
|
65
|
+
reader.readAsDataURL(blob);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// ../../.yarn/cache/@smithy-util-stream-npm-4.5.6-2962292a4c-42bb6f834b.zip/node_modules/@smithy/util-stream/dist-es/stream-type-check.js
|
|
70
|
+
var isReadableStream = (stream) => typeof ReadableStream === "function" && (stream?.constructor?.name === ReadableStream.name || stream instanceof ReadableStream);
|
|
71
|
+
|
|
72
|
+
// ../../.yarn/cache/@smithy-util-stream-npm-4.5.6-2962292a4c-42bb6f834b.zip/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.browser.js
|
|
73
|
+
var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
|
|
74
|
+
var sdkStreamMixin = (stream) => {
|
|
75
|
+
if (!isBlobInstance(stream) && !isReadableStream(stream)) {
|
|
76
|
+
const name = stream?.__proto__?.constructor?.name || stream;
|
|
77
|
+
throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${name}`);
|
|
78
|
+
}
|
|
79
|
+
let transformed = false;
|
|
80
|
+
const transformToByteArray = async () => {
|
|
81
|
+
if (transformed) {
|
|
82
|
+
throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
|
|
83
|
+
}
|
|
84
|
+
transformed = true;
|
|
85
|
+
return await streamCollector2(stream);
|
|
86
|
+
};
|
|
87
|
+
const blobToWebStream = (blob) => {
|
|
88
|
+
if (typeof blob.stream !== "function") {
|
|
89
|
+
throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");
|
|
90
|
+
}
|
|
91
|
+
return blob.stream();
|
|
92
|
+
};
|
|
93
|
+
return Object.assign(stream, {
|
|
94
|
+
transformToByteArray,
|
|
95
|
+
transformToString: async (encoding) => {
|
|
96
|
+
const buf = await transformToByteArray();
|
|
97
|
+
if (encoding === "base64") {
|
|
98
|
+
return toBase64(buf);
|
|
99
|
+
} else if (encoding === "hex") {
|
|
100
|
+
return toHex(buf);
|
|
101
|
+
} else if (encoding === void 0 || encoding === "utf8" || encoding === "utf-8") {
|
|
102
|
+
return toUtf8(buf);
|
|
103
|
+
} else if (typeof TextDecoder === "function") {
|
|
104
|
+
return new TextDecoder(encoding).decode(buf);
|
|
105
|
+
} else {
|
|
106
|
+
throw new Error("TextDecoder is not available, please make sure polyfill is provided.");
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
transformToWebStream: () => {
|
|
110
|
+
if (transformed) {
|
|
111
|
+
throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
|
|
112
|
+
}
|
|
113
|
+
transformed = true;
|
|
114
|
+
if (isBlobInstance(stream)) {
|
|
115
|
+
return blobToWebStream(stream);
|
|
116
|
+
} else if (isReadableStream(stream)) {
|
|
117
|
+
return stream;
|
|
118
|
+
} else {
|
|
119
|
+
throw new Error(`Cannot transform payload to web stream, got ${stream}`);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
var isBlobInstance = (stream) => typeof Blob === "function" && stream instanceof Blob;
|
|
125
|
+
|
|
126
|
+
// ../../.yarn/cache/@smithy-util-stream-npm-4.5.6-2962292a4c-42bb6f834b.zip/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js
|
|
127
|
+
var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED2 = "The stream has already been transformed.";
|
|
128
|
+
var sdkStreamMixin2 = (stream) => {
|
|
129
|
+
if (!(stream instanceof Readable)) {
|
|
130
|
+
try {
|
|
131
|
+
return sdkStreamMixin(stream);
|
|
132
|
+
} catch (e) {
|
|
133
|
+
const name = stream?.__proto__?.constructor?.name || stream;
|
|
134
|
+
throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
let transformed = false;
|
|
138
|
+
const transformToByteArray = async () => {
|
|
139
|
+
if (transformed) {
|
|
140
|
+
throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED2);
|
|
141
|
+
}
|
|
142
|
+
transformed = true;
|
|
143
|
+
return await streamCollector(stream);
|
|
144
|
+
};
|
|
145
|
+
return Object.assign(stream, {
|
|
146
|
+
transformToByteArray,
|
|
147
|
+
transformToString: async (encoding) => {
|
|
148
|
+
const buf = await transformToByteArray();
|
|
149
|
+
if (encoding === void 0 || Buffer.isEncoding(encoding)) {
|
|
150
|
+
return fromArrayBuffer(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding);
|
|
151
|
+
} else {
|
|
152
|
+
const decoder = new TextDecoder(encoding);
|
|
153
|
+
return decoder.decode(buf);
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
transformToWebStream: () => {
|
|
157
|
+
if (transformed) {
|
|
158
|
+
throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED2);
|
|
159
|
+
}
|
|
160
|
+
if (stream.readableFlowing !== null) {
|
|
161
|
+
throw new Error("The stream has been consumed by other callbacks.");
|
|
162
|
+
}
|
|
163
|
+
if (typeof Readable.toWeb !== "function") {
|
|
164
|
+
throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");
|
|
165
|
+
}
|
|
166
|
+
transformed = true;
|
|
167
|
+
return Readable.toWeb(stream);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export {
|
|
173
|
+
sdkStreamMixin2 as sdkStreamMixin
|
|
174
|
+
};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
// ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js
|
|
2
|
+
var createAggregatedClient = (commands, Client) => {
|
|
3
|
+
for (const command of Object.keys(commands)) {
|
|
4
|
+
const CommandCtor = commands[command];
|
|
5
|
+
const methodImpl = async function(args, optionsOrCb, cb) {
|
|
6
|
+
const command2 = new CommandCtor(args);
|
|
7
|
+
if (typeof optionsOrCb === "function") {
|
|
8
|
+
this.send(command2, optionsOrCb);
|
|
9
|
+
} else if (typeof cb === "function") {
|
|
10
|
+
if (typeof optionsOrCb !== "object")
|
|
11
|
+
throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
|
|
12
|
+
this.send(command2, optionsOrCb || {}, cb);
|
|
13
|
+
} else {
|
|
14
|
+
return this.send(command2, optionsOrCb);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
|
|
18
|
+
Client.prototype[methodName] = methodImpl;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.940.0-415b36f0bc-6695cd044d.zip/node_modules/@aws-sdk/nested-clients/package.json
|
|
23
|
+
var package_default = {
|
|
24
|
+
name: "@aws-sdk/nested-clients",
|
|
25
|
+
version: "3.940.0",
|
|
26
|
+
description: "Nested clients for AWS SDK packages.",
|
|
27
|
+
main: "./dist-cjs/index.js",
|
|
28
|
+
module: "./dist-es/index.js",
|
|
29
|
+
types: "./dist-types/index.d.ts",
|
|
30
|
+
scripts: {
|
|
31
|
+
build: "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
32
|
+
"build:cjs": "node ../../scripts/compilation/inline nested-clients",
|
|
33
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
34
|
+
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
35
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
36
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
37
|
+
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
38
|
+
lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients",
|
|
39
|
+
test: "yarn g:vitest run",
|
|
40
|
+
"test:watch": "yarn g:vitest watch"
|
|
41
|
+
},
|
|
42
|
+
engines: {
|
|
43
|
+
node: ">=18.0.0"
|
|
44
|
+
},
|
|
45
|
+
sideEffects: false,
|
|
46
|
+
author: {
|
|
47
|
+
name: "AWS SDK for JavaScript Team",
|
|
48
|
+
url: "https://aws.amazon.com/javascript/"
|
|
49
|
+
},
|
|
50
|
+
license: "Apache-2.0",
|
|
51
|
+
dependencies: {
|
|
52
|
+
"@aws-crypto/sha256-browser": "5.2.0",
|
|
53
|
+
"@aws-crypto/sha256-js": "5.2.0",
|
|
54
|
+
"@aws-sdk/core": "3.940.0",
|
|
55
|
+
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
56
|
+
"@aws-sdk/middleware-logger": "3.936.0",
|
|
57
|
+
"@aws-sdk/middleware-recursion-detection": "3.936.0",
|
|
58
|
+
"@aws-sdk/middleware-user-agent": "3.940.0",
|
|
59
|
+
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
60
|
+
"@aws-sdk/types": "3.936.0",
|
|
61
|
+
"@aws-sdk/util-endpoints": "3.936.0",
|
|
62
|
+
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
63
|
+
"@aws-sdk/util-user-agent-node": "3.940.0",
|
|
64
|
+
"@smithy/config-resolver": "^4.4.3",
|
|
65
|
+
"@smithy/core": "^3.18.5",
|
|
66
|
+
"@smithy/fetch-http-handler": "^5.3.6",
|
|
67
|
+
"@smithy/hash-node": "^4.2.5",
|
|
68
|
+
"@smithy/invalid-dependency": "^4.2.5",
|
|
69
|
+
"@smithy/middleware-content-length": "^4.2.5",
|
|
70
|
+
"@smithy/middleware-endpoint": "^4.3.12",
|
|
71
|
+
"@smithy/middleware-retry": "^4.4.12",
|
|
72
|
+
"@smithy/middleware-serde": "^4.2.6",
|
|
73
|
+
"@smithy/middleware-stack": "^4.2.5",
|
|
74
|
+
"@smithy/node-config-provider": "^4.3.5",
|
|
75
|
+
"@smithy/node-http-handler": "^4.4.5",
|
|
76
|
+
"@smithy/protocol-http": "^5.3.5",
|
|
77
|
+
"@smithy/smithy-client": "^4.9.8",
|
|
78
|
+
"@smithy/types": "^4.9.0",
|
|
79
|
+
"@smithy/url-parser": "^4.2.5",
|
|
80
|
+
"@smithy/util-base64": "^4.3.0",
|
|
81
|
+
"@smithy/util-body-length-browser": "^4.2.0",
|
|
82
|
+
"@smithy/util-body-length-node": "^4.2.1",
|
|
83
|
+
"@smithy/util-defaults-mode-browser": "^4.3.11",
|
|
84
|
+
"@smithy/util-defaults-mode-node": "^4.2.14",
|
|
85
|
+
"@smithy/util-endpoints": "^3.2.5",
|
|
86
|
+
"@smithy/util-middleware": "^4.2.5",
|
|
87
|
+
"@smithy/util-retry": "^4.2.5",
|
|
88
|
+
"@smithy/util-utf8": "^4.2.0",
|
|
89
|
+
tslib: "^2.6.2"
|
|
90
|
+
},
|
|
91
|
+
devDependencies: {
|
|
92
|
+
concurrently: "7.0.0",
|
|
93
|
+
"downlevel-dts": "0.10.1",
|
|
94
|
+
rimraf: "3.0.2",
|
|
95
|
+
typescript: "~5.8.3"
|
|
96
|
+
},
|
|
97
|
+
typesVersions: {
|
|
98
|
+
"<4.0": {
|
|
99
|
+
"dist-types/*": [
|
|
100
|
+
"dist-types/ts3.4/*"
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
files: [
|
|
105
|
+
"./signin.d.ts",
|
|
106
|
+
"./signin.js",
|
|
107
|
+
"./sso-oidc.d.ts",
|
|
108
|
+
"./sso-oidc.js",
|
|
109
|
+
"./sts.d.ts",
|
|
110
|
+
"./sts.js",
|
|
111
|
+
"dist-*/**"
|
|
112
|
+
],
|
|
113
|
+
browser: {
|
|
114
|
+
"./dist-es/submodules/signin/runtimeConfig": "./dist-es/submodules/signin/runtimeConfig.browser",
|
|
115
|
+
"./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
|
|
116
|
+
"./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
|
|
117
|
+
},
|
|
118
|
+
"react-native": {},
|
|
119
|
+
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
|
|
120
|
+
repository: {
|
|
121
|
+
type: "git",
|
|
122
|
+
url: "https://github.com/aws/aws-sdk-js-v3.git",
|
|
123
|
+
directory: "packages/nested-clients"
|
|
124
|
+
},
|
|
125
|
+
exports: {
|
|
126
|
+
"./package.json": "./package.json",
|
|
127
|
+
"./sso-oidc": {
|
|
128
|
+
types: "./dist-types/submodules/sso-oidc/index.d.ts",
|
|
129
|
+
module: "./dist-es/submodules/sso-oidc/index.js",
|
|
130
|
+
node: "./dist-cjs/submodules/sso-oidc/index.js",
|
|
131
|
+
import: "./dist-es/submodules/sso-oidc/index.js",
|
|
132
|
+
require: "./dist-cjs/submodules/sso-oidc/index.js"
|
|
133
|
+
},
|
|
134
|
+
"./sts": {
|
|
135
|
+
types: "./dist-types/submodules/sts/index.d.ts",
|
|
136
|
+
module: "./dist-es/submodules/sts/index.js",
|
|
137
|
+
node: "./dist-cjs/submodules/sts/index.js",
|
|
138
|
+
import: "./dist-es/submodules/sts/index.js",
|
|
139
|
+
require: "./dist-cjs/submodules/sts/index.js"
|
|
140
|
+
},
|
|
141
|
+
"./signin": {
|
|
142
|
+
types: "./dist-types/submodules/signin/index.d.ts",
|
|
143
|
+
module: "./dist-es/submodules/signin/index.js",
|
|
144
|
+
node: "./dist-cjs/submodules/signin/index.js",
|
|
145
|
+
import: "./dist-es/submodules/signin/index.js",
|
|
146
|
+
require: "./dist-cjs/submodules/signin/index.js"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export {
|
|
152
|
+
createAggregatedClient,
|
|
153
|
+
package_default
|
|
154
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
|
|
2
|
+
var NoAuthSigner = class {
|
|
3
|
+
async sign(httpRequest, identity, signingProperties) {
|
|
4
|
+
return httpRequest;
|
|
5
|
+
}
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
NoAuthSigner
|
|
10
|
+
};
|
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
IniSectionType
|
|
3
|
-
} from "./chunk-XLUI7RQ4.js";
|
|
4
|
-
import {
|
|
5
|
-
init_esm_shims
|
|
6
|
-
} from "./chunk-JBVMOFGH.js";
|
|
7
|
-
|
|
8
|
-
// ../deployment-manager/dist/chunk-XMY5R2F6.js
|
|
1
|
+
// ../deployment-manager/dist/chunk-X7QCPRAC.js
|
|
9
2
|
import { join } from "path";
|
|
10
3
|
import { homedir } from "os";
|
|
11
4
|
import { sep } from "path";
|
|
12
5
|
import { join as join3 } from "path";
|
|
13
6
|
import { join as join2 } from "path";
|
|
14
|
-
import {
|
|
7
|
+
import { readFile as fsReadFile } from "fs/promises";
|
|
8
|
+
import { readFile as readFile2 } from "fs/promises";
|
|
15
9
|
import { createHash } from "crypto";
|
|
16
10
|
import { join as join4 } from "path";
|
|
17
|
-
import { promises as fsPromises2 } from "fs";
|
|
18
|
-
init_esm_shims();
|
|
19
11
|
var ENV_PROFILE = "AWS_PROFILE";
|
|
20
12
|
var DEFAULT_PROFILE = "default";
|
|
21
13
|
var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
|
|
22
|
-
init_esm_shims();
|
|
23
|
-
init_esm_shims();
|
|
24
|
-
init_esm_shims();
|
|
25
14
|
var homeDirCache = {};
|
|
26
15
|
var getHomeDirCacheKey = () => {
|
|
27
16
|
if (process && process.geteuid) {
|
|
@@ -44,9 +33,13 @@ var getHomeDir = () => {
|
|
|
44
33
|
};
|
|
45
34
|
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
46
35
|
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
36
|
+
var IniSectionType;
|
|
37
|
+
(function(IniSectionType2) {
|
|
38
|
+
IniSectionType2["PROFILE"] = "profile";
|
|
39
|
+
IniSectionType2["SSO_SESSION"] = "sso-session";
|
|
40
|
+
IniSectionType2["SERVICES"] = "services";
|
|
41
|
+
})(IniSectionType || (IniSectionType = {}));
|
|
42
|
+
var CONFIG_PREFIX_SEPARATOR = ".";
|
|
50
43
|
var getConfigData = (data) => Object.entries(data).filter(([key]) => {
|
|
51
44
|
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
52
45
|
if (indexOfSeparator === -1) {
|
|
@@ -61,10 +54,8 @@ var getConfigData = (data) => Object.entries(data).filter(([key]) => {
|
|
|
61
54
|
}, {
|
|
62
55
|
...data.default && { default: data.default }
|
|
63
56
|
});
|
|
64
|
-
init_esm_shims();
|
|
65
57
|
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
66
58
|
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
|
|
67
|
-
init_esm_shims();
|
|
68
59
|
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
69
60
|
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
70
61
|
var parseIni = (iniData) => {
|
|
@@ -112,17 +103,18 @@ var parseIni = (iniData) => {
|
|
|
112
103
|
}
|
|
113
104
|
return map;
|
|
114
105
|
};
|
|
115
|
-
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
filePromisesHash[path] = readFile(path, "utf8");
|
|
106
|
+
var filePromises = {};
|
|
107
|
+
var fileIntercept = {};
|
|
108
|
+
var readFile = (path, options) => {
|
|
109
|
+
if (fileIntercept[path] !== void 0) {
|
|
110
|
+
return fileIntercept[path];
|
|
121
111
|
}
|
|
122
|
-
|
|
112
|
+
if (!filePromises[path] || options?.ignoreCache) {
|
|
113
|
+
filePromises[path] = fsReadFile(path, "utf8");
|
|
114
|
+
}
|
|
115
|
+
return filePromises[path];
|
|
123
116
|
};
|
|
124
117
|
var swallowError = () => ({});
|
|
125
|
-
var CONFIG_PREFIX_SEPARATOR = ".";
|
|
126
118
|
var loadSharedConfigFiles = async (init = {}) => {
|
|
127
119
|
const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
|
|
128
120
|
const homeDir = getHomeDir();
|
|
@@ -136,10 +128,10 @@ var loadSharedConfigFiles = async (init = {}) => {
|
|
|
136
128
|
resolvedConfigFilepath = join3(homeDir, configFilepath.slice(2));
|
|
137
129
|
}
|
|
138
130
|
const parsedFiles = await Promise.all([
|
|
139
|
-
|
|
131
|
+
readFile(resolvedConfigFilepath, {
|
|
140
132
|
ignoreCache: init.ignoreCache
|
|
141
133
|
}).then(parseIni).then(getConfigData).catch(swallowError),
|
|
142
|
-
|
|
134
|
+
readFile(resolvedFilepath, {
|
|
143
135
|
ignoreCache: init.ignoreCache
|
|
144
136
|
}).then(parseIni).catch(swallowError)
|
|
145
137
|
]);
|
|
@@ -150,9 +142,7 @@ var loadSharedConfigFiles = async (init = {}) => {
|
|
|
150
142
|
};
|
|
151
143
|
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 }), {});
|
|
152
144
|
var swallowError2 = () => ({});
|
|
153
|
-
var loadSsoSessionData = async (init = {}) =>
|
|
154
|
-
init_esm_shims();
|
|
155
|
-
init_esm_shims();
|
|
145
|
+
var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
|
|
156
146
|
var mergeConfigFiles = (...files) => {
|
|
157
147
|
const merged = {};
|
|
158
148
|
for (const file of files) {
|
|
@@ -170,29 +160,44 @@ var parseKnownFiles = async (init) => {
|
|
|
170
160
|
const parsedFiles = await loadSharedConfigFiles(init);
|
|
171
161
|
return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
|
|
172
162
|
};
|
|
173
|
-
init_esm_shims();
|
|
174
|
-
init_esm_shims();
|
|
175
163
|
var getSSOTokenFilepath = (id) => {
|
|
176
164
|
const hasher = createHash("sha1");
|
|
177
165
|
const cacheName = hasher.update(id).digest("hex");
|
|
178
166
|
return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
179
167
|
};
|
|
180
|
-
|
|
181
|
-
var { readFile: readFile2 } = fsPromises2;
|
|
168
|
+
var tokenIntercept = {};
|
|
182
169
|
var getSSOTokenFromFile = async (id) => {
|
|
170
|
+
if (tokenIntercept[id]) {
|
|
171
|
+
return tokenIntercept[id];
|
|
172
|
+
}
|
|
183
173
|
const ssoTokenFilepath = getSSOTokenFilepath(id);
|
|
184
174
|
const ssoTokenText = await readFile2(ssoTokenFilepath, "utf8");
|
|
185
175
|
return JSON.parse(ssoTokenText);
|
|
186
176
|
};
|
|
187
|
-
|
|
177
|
+
var externalDataInterceptor = {
|
|
178
|
+
getFileRecord() {
|
|
179
|
+
return fileIntercept;
|
|
180
|
+
},
|
|
181
|
+
interceptFile(path, contents) {
|
|
182
|
+
fileIntercept[path] = Promise.resolve(contents);
|
|
183
|
+
},
|
|
184
|
+
getTokenRecord() {
|
|
185
|
+
return tokenIntercept;
|
|
186
|
+
},
|
|
187
|
+
interceptToken(id, contents) {
|
|
188
|
+
tokenIntercept[id] = contents;
|
|
189
|
+
}
|
|
190
|
+
};
|
|
188
191
|
|
|
189
192
|
export {
|
|
190
193
|
ENV_PROFILE,
|
|
191
194
|
getProfileName,
|
|
192
195
|
CONFIG_PREFIX_SEPARATOR,
|
|
196
|
+
readFile,
|
|
193
197
|
loadSharedConfigFiles,
|
|
194
198
|
loadSsoSessionData,
|
|
195
199
|
parseKnownFiles,
|
|
196
200
|
getSSOTokenFilepath,
|
|
197
|
-
getSSOTokenFromFile
|
|
201
|
+
getSSOTokenFromFile,
|
|
202
|
+
externalDataInterceptor
|
|
198
203
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// ../deployment-manager/dist/chunk-ICKIIEOS.js
|
|
2
|
+
import { Buffer } from "buffer";
|
|
3
|
+
var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
|
|
4
|
+
var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
|
|
5
|
+
if (!isArrayBuffer(input)) {
|
|
6
|
+
throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
|
|
7
|
+
}
|
|
8
|
+
return Buffer.from(input, offset, length);
|
|
9
|
+
};
|
|
10
|
+
var fromString = (input, encoding) => {
|
|
11
|
+
if (typeof input !== "string") {
|
|
12
|
+
throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
|
|
13
|
+
}
|
|
14
|
+
return encoding ? Buffer.from(input, encoding) : Buffer.from(input);
|
|
15
|
+
};
|
|
16
|
+
var fromUtf8 = (input) => {
|
|
17
|
+
const buf = fromString(input, "utf8");
|
|
18
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
19
|
+
};
|
|
20
|
+
var toUtf8 = (input) => {
|
|
21
|
+
if (typeof input === "string") {
|
|
22
|
+
return input;
|
|
23
|
+
}
|
|
24
|
+
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
|
|
25
|
+
throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
|
|
26
|
+
}
|
|
27
|
+
return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
isArrayBuffer,
|
|
32
|
+
fromArrayBuffer,
|
|
33
|
+
fromString,
|
|
34
|
+
fromUtf8,
|
|
35
|
+
toUtf8
|
|
36
|
+
};
|