@etainabl/nodejs-sdk 1.3.192 → 1.3.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1546 -9430
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +7745 -31978
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/esm/chunk-3G3VXGQN.js +0 -164
- package/dist/esm/chunk-3G3VXGQN.js.map +0 -1
- package/dist/esm/chunk-4JDZJVKZ.js +0 -29
- package/dist/esm/chunk-4JDZJVKZ.js.map +0 -1
- package/dist/esm/chunk-4QSQRVYQ.js +0 -4408
- package/dist/esm/chunk-4QSQRVYQ.js.map +0 -1
- package/dist/esm/chunk-7QBJXGSP.js +0 -143
- package/dist/esm/chunk-7QBJXGSP.js.map +0 -1
- package/dist/esm/chunk-CRX53WMM.js +0 -222
- package/dist/esm/chunk-CRX53WMM.js.map +0 -1
- package/dist/esm/chunk-D74LA2XQ.js +0 -773
- package/dist/esm/chunk-D74LA2XQ.js.map +0 -1
- package/dist/esm/chunk-G3PMV62Z.js +0 -36
- package/dist/esm/chunk-G3PMV62Z.js.map +0 -1
- package/dist/esm/chunk-IX2LY325.js +0 -38
- package/dist/esm/chunk-IX2LY325.js.map +0 -1
- package/dist/esm/chunk-KWPO3OOT.js +0 -180
- package/dist/esm/chunk-KWPO3OOT.js.map +0 -1
- package/dist/esm/chunk-MCSCBMNG.js +0 -1424
- package/dist/esm/chunk-MCSCBMNG.js.map +0 -1
- package/dist/esm/chunk-RREOR7G6.js +0 -9
- package/dist/esm/chunk-RREOR7G6.js.map +0 -1
- package/dist/esm/chunk-UQAJZJ7E.js +0 -11
- package/dist/esm/chunk-UQAJZJ7E.js.map +0 -1
- package/dist/esm/chunk-UZGMBQZB.js +0 -13
- package/dist/esm/chunk-UZGMBQZB.js.map +0 -1
- package/dist/esm/chunk-XARQOPCZ.js +0 -47
- package/dist/esm/chunk-XARQOPCZ.js.map +0 -1
- package/dist/esm/chunk-YCRW5ZB7.js +0 -257
- package/dist/esm/chunk-YCRW5ZB7.js.map +0 -1
- package/dist/esm/chunk-YLT3BSXS.js +0 -180
- package/dist/esm/chunk-YLT3BSXS.js.map +0 -1
- package/dist/esm/chunk-Z63CAAFL.js +0 -43
- package/dist/esm/chunk-Z63CAAFL.js.map +0 -1
- package/dist/esm/dist-es-4VSEUPMG.js +0 -168
- package/dist/esm/dist-es-4VSEUPMG.js.map +0 -1
- package/dist/esm/dist-es-5G2D4IRG.js +0 -88
- package/dist/esm/dist-es-5G2D4IRG.js.map +0 -1
- package/dist/esm/dist-es-6PYQFA7S.js +0 -68
- package/dist/esm/dist-es-6PYQFA7S.js.map +0 -1
- package/dist/esm/dist-es-O7YXE2TO.js +0 -381
- package/dist/esm/dist-es-O7YXE2TO.js.map +0 -1
- package/dist/esm/dist-es-RVUNLU7U.js +0 -314
- package/dist/esm/dist-es-RVUNLU7U.js.map +0 -1
- package/dist/esm/dist-es-UEBBJXWA.js +0 -22
- package/dist/esm/dist-es-UEBBJXWA.js.map +0 -1
- package/dist/esm/dist-es-XS4DOSVC.js +0 -202
- package/dist/esm/dist-es-XS4DOSVC.js.map +0 -1
- package/dist/esm/event-streams-OE4R7Y65.js +0 -238
- package/dist/esm/event-streams-OE4R7Y65.js.map +0 -1
- package/dist/esm/loadSso-3FHKR3DN.js +0 -662
- package/dist/esm/loadSso-3FHKR3DN.js.map +0 -1
- package/dist/esm/sso-oidc-EORQ3JVU.js +0 -832
- package/dist/esm/sso-oidc-EORQ3JVU.js.map +0 -1
- package/dist/esm/sts-VPLY2J63.js +0 -1169
- package/dist/esm/sts-VPLY2J63.js.map +0 -1
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
// 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
|
-
// node_modules/@aws-sdk/nested-clients/package.json
|
|
23
|
-
var package_default = {
|
|
24
|
-
name: "@aws-sdk/nested-clients",
|
|
25
|
-
version: "3.864.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
|
-
author: {
|
|
46
|
-
name: "AWS SDK for JavaScript Team",
|
|
47
|
-
url: "https://aws.amazon.com/javascript/"
|
|
48
|
-
},
|
|
49
|
-
license: "Apache-2.0",
|
|
50
|
-
dependencies: {
|
|
51
|
-
"@aws-crypto/sha256-browser": "5.2.0",
|
|
52
|
-
"@aws-crypto/sha256-js": "5.2.0",
|
|
53
|
-
"@aws-sdk/core": "3.864.0",
|
|
54
|
-
"@aws-sdk/middleware-host-header": "3.862.0",
|
|
55
|
-
"@aws-sdk/middleware-logger": "3.862.0",
|
|
56
|
-
"@aws-sdk/middleware-recursion-detection": "3.862.0",
|
|
57
|
-
"@aws-sdk/middleware-user-agent": "3.864.0",
|
|
58
|
-
"@aws-sdk/region-config-resolver": "3.862.0",
|
|
59
|
-
"@aws-sdk/types": "3.862.0",
|
|
60
|
-
"@aws-sdk/util-endpoints": "3.862.0",
|
|
61
|
-
"@aws-sdk/util-user-agent-browser": "3.862.0",
|
|
62
|
-
"@aws-sdk/util-user-agent-node": "3.864.0",
|
|
63
|
-
"@smithy/config-resolver": "^4.1.5",
|
|
64
|
-
"@smithy/core": "^3.8.0",
|
|
65
|
-
"@smithy/fetch-http-handler": "^5.1.1",
|
|
66
|
-
"@smithy/hash-node": "^4.0.5",
|
|
67
|
-
"@smithy/invalid-dependency": "^4.0.5",
|
|
68
|
-
"@smithy/middleware-content-length": "^4.0.5",
|
|
69
|
-
"@smithy/middleware-endpoint": "^4.1.18",
|
|
70
|
-
"@smithy/middleware-retry": "^4.1.19",
|
|
71
|
-
"@smithy/middleware-serde": "^4.0.9",
|
|
72
|
-
"@smithy/middleware-stack": "^4.0.5",
|
|
73
|
-
"@smithy/node-config-provider": "^4.1.4",
|
|
74
|
-
"@smithy/node-http-handler": "^4.1.1",
|
|
75
|
-
"@smithy/protocol-http": "^5.1.3",
|
|
76
|
-
"@smithy/smithy-client": "^4.4.10",
|
|
77
|
-
"@smithy/types": "^4.3.2",
|
|
78
|
-
"@smithy/url-parser": "^4.0.5",
|
|
79
|
-
"@smithy/util-base64": "^4.0.0",
|
|
80
|
-
"@smithy/util-body-length-browser": "^4.0.0",
|
|
81
|
-
"@smithy/util-body-length-node": "^4.0.0",
|
|
82
|
-
"@smithy/util-defaults-mode-browser": "^4.0.26",
|
|
83
|
-
"@smithy/util-defaults-mode-node": "^4.0.26",
|
|
84
|
-
"@smithy/util-endpoints": "^3.0.7",
|
|
85
|
-
"@smithy/util-middleware": "^4.0.5",
|
|
86
|
-
"@smithy/util-retry": "^4.0.7",
|
|
87
|
-
"@smithy/util-utf8": "^4.0.0",
|
|
88
|
-
tslib: "^2.6.2"
|
|
89
|
-
},
|
|
90
|
-
devDependencies: {
|
|
91
|
-
concurrently: "7.0.0",
|
|
92
|
-
"downlevel-dts": "0.10.1",
|
|
93
|
-
rimraf: "3.0.2",
|
|
94
|
-
typescript: "~5.8.3"
|
|
95
|
-
},
|
|
96
|
-
typesVersions: {
|
|
97
|
-
"<4.0": {
|
|
98
|
-
"dist-types/*": [
|
|
99
|
-
"dist-types/ts3.4/*"
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
files: [
|
|
104
|
-
"./sso-oidc.d.ts",
|
|
105
|
-
"./sso-oidc.js",
|
|
106
|
-
"./sts.d.ts",
|
|
107
|
-
"./sts.js",
|
|
108
|
-
"dist-*/**"
|
|
109
|
-
],
|
|
110
|
-
browser: {
|
|
111
|
-
"./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
|
|
112
|
-
"./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
|
|
113
|
-
},
|
|
114
|
-
"react-native": {},
|
|
115
|
-
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
|
|
116
|
-
repository: {
|
|
117
|
-
type: "git",
|
|
118
|
-
url: "https://github.com/aws/aws-sdk-js-v3.git",
|
|
119
|
-
directory: "packages/nested-clients"
|
|
120
|
-
},
|
|
121
|
-
exports: {
|
|
122
|
-
"./sso-oidc": {
|
|
123
|
-
types: "./dist-types/submodules/sso-oidc/index.d.ts",
|
|
124
|
-
module: "./dist-es/submodules/sso-oidc/index.js",
|
|
125
|
-
node: "./dist-cjs/submodules/sso-oidc/index.js",
|
|
126
|
-
import: "./dist-es/submodules/sso-oidc/index.js",
|
|
127
|
-
require: "./dist-cjs/submodules/sso-oidc/index.js"
|
|
128
|
-
},
|
|
129
|
-
"./sts": {
|
|
130
|
-
types: "./dist-types/submodules/sts/index.d.ts",
|
|
131
|
-
module: "./dist-es/submodules/sts/index.js",
|
|
132
|
-
node: "./dist-cjs/submodules/sts/index.js",
|
|
133
|
-
import: "./dist-es/submodules/sts/index.js",
|
|
134
|
-
require: "./dist-cjs/submodules/sts/index.js"
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
export {
|
|
140
|
-
createAggregatedClient,
|
|
141
|
-
package_default
|
|
142
|
-
};
|
|
143
|
-
//# sourceMappingURL=chunk-7QBJXGSP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js","../../node_modules/@aws-sdk/nested-clients/package.json"],"sourcesContent":["export const createAggregatedClient = (commands, Client) => {\n for (const command of Object.keys(commands)) {\n const CommandCtor = commands[command];\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};\n","{\n \"name\": \"@aws-sdk/nested-clients\",\n \"version\": \"3.864.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:cjs' 'yarn:build:es' 'yarn:build:types'\",\n \"build:cjs\": \"node ../../scripts/compilation/inline nested-clients\",\n \"build:es\": \"tsc -p tsconfig.es.json\",\n \"build:include:deps\": \"lerna run --scope $npm_package_name --include-dependencies build\",\n \"build:types\": \"tsc -p tsconfig.types.json\",\n \"build:types:downlevel\": \"downlevel-dts dist-types dist-types/ts3.4\",\n \"clean\": \"rimraf ./dist-* && rimraf *.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\": \">=18.0.0\"\n },\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.864.0\",\n \"@aws-sdk/middleware-host-header\": \"3.862.0\",\n \"@aws-sdk/middleware-logger\": \"3.862.0\",\n \"@aws-sdk/middleware-recursion-detection\": \"3.862.0\",\n \"@aws-sdk/middleware-user-agent\": \"3.864.0\",\n \"@aws-sdk/region-config-resolver\": \"3.862.0\",\n \"@aws-sdk/types\": \"3.862.0\",\n \"@aws-sdk/util-endpoints\": \"3.862.0\",\n \"@aws-sdk/util-user-agent-browser\": \"3.862.0\",\n \"@aws-sdk/util-user-agent-node\": \"3.864.0\",\n \"@smithy/config-resolver\": \"^4.1.5\",\n \"@smithy/core\": \"^3.8.0\",\n \"@smithy/fetch-http-handler\": \"^5.1.1\",\n \"@smithy/hash-node\": \"^4.0.5\",\n \"@smithy/invalid-dependency\": \"^4.0.5\",\n \"@smithy/middleware-content-length\": \"^4.0.5\",\n \"@smithy/middleware-endpoint\": \"^4.1.18\",\n \"@smithy/middleware-retry\": \"^4.1.19\",\n \"@smithy/middleware-serde\": \"^4.0.9\",\n \"@smithy/middleware-stack\": \"^4.0.5\",\n \"@smithy/node-config-provider\": \"^4.1.4\",\n \"@smithy/node-http-handler\": \"^4.1.1\",\n \"@smithy/protocol-http\": \"^5.1.3\",\n \"@smithy/smithy-client\": \"^4.4.10\",\n \"@smithy/types\": \"^4.3.2\",\n \"@smithy/url-parser\": \"^4.0.5\",\n \"@smithy/util-base64\": \"^4.0.0\",\n \"@smithy/util-body-length-browser\": \"^4.0.0\",\n \"@smithy/util-body-length-node\": \"^4.0.0\",\n \"@smithy/util-defaults-mode-browser\": \"^4.0.26\",\n \"@smithy/util-defaults-mode-node\": \"^4.0.26\",\n \"@smithy/util-endpoints\": \"^3.0.7\",\n \"@smithy/util-middleware\": \"^4.0.5\",\n \"@smithy/util-retry\": \"^4.0.7\",\n \"@smithy/util-utf8\": \"^4.0.0\",\n \"tslib\": \"^2.6.2\"\n },\n \"devDependencies\": {\n \"concurrently\": \"7.0.0\",\n \"downlevel-dts\": \"0.10.1\",\n \"rimraf\": \"3.0.2\",\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 \"./sso-oidc.d.ts\",\n \"./sso-oidc.js\",\n \"./sts.d.ts\",\n \"./sts.js\",\n \"dist-*/**\"\n ],\n \"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 \"./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 }\n}\n"],"mappings":";AAAO,IAAM,yBAAyB,CAAC,UAAU,WAAW;AACxD,aAAW,WAAW,OAAO,KAAK,QAAQ,GAAG;AACzC,UAAM,cAAc,SAAS,OAAO;AACpC,UAAM,aAAa,eAAgB,MAAM,aAAa,IAAI;AACtD,YAAMA,WAAU,IAAI,YAAY,IAAI;AACpC,UAAI,OAAO,gBAAgB,YAAY;AACnC,aAAK,KAAKA,UAAS,WAAW;AAAA,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;AAAA,MAC5C,OACK;AACD,eAAO,KAAK,KAAKA,UAAS,WAAW;AAAA,MACzC;AAAA,IACJ;AACA,UAAM,cAAc,QAAQ,CAAC,EAAE,YAAY,IAAI,QAAQ,MAAM,CAAC,GAAG,QAAQ,YAAY,EAAE;AACvF,WAAO,UAAU,UAAU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,sBAAsB;AAAA,IACtB,qBAAqB;AAAA,IACrB,OAAS;AAAA,EACX;AAAA,EACA,iBAAmB;AAAA,IACjB,cAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,QAAU;AAAA,IACV,YAAc;AAAA,EAChB;AAAA,EACA,eAAiB;AAAA,IACf,QAAQ;AAAA,MACN,gBAAgB;AAAA,QACd;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAW;AAAA,IACT,+CAA+C;AAAA,IAC/C,0CAA0C;AAAA,EAC5C;AAAA,EACA,gBAAgB,CAAC;AAAA,EACjB,UAAY;AAAA,EACZ,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,IACP,WAAa;AAAA,EACf;AAAA,EACA,SAAW;AAAA,IACT,cAAc;AAAA,MACZ,OAAS;AAAA,MACT,QAAU;AAAA,MACV,MAAQ;AAAA,MACR,QAAU;AAAA,MACV,SAAW;AAAA,IACb;AAAA,IACA,SAAS;AAAA,MACP,OAAS;AAAA,MACT,QAAU;AAAA,MACV,MAAQ;AAAA,MACR,QAAU;AAAA,MACV,SAAW;AAAA,IACb;AAAA,EACF;AACF;","names":["command"]}
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js
|
|
2
|
-
var ENV_PROFILE = "AWS_PROFILE";
|
|
3
|
-
var DEFAULT_PROFILE = "default";
|
|
4
|
-
var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
|
|
5
|
-
|
|
6
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js
|
|
7
|
-
import { join } from "path";
|
|
8
|
-
|
|
9
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js
|
|
10
|
-
import { homedir } from "os";
|
|
11
|
-
import { sep } from "path";
|
|
12
|
-
var homeDirCache = {};
|
|
13
|
-
var getHomeDirCacheKey = () => {
|
|
14
|
-
if (process && process.geteuid) {
|
|
15
|
-
return `${process.geteuid()}`;
|
|
16
|
-
}
|
|
17
|
-
return "DEFAULT";
|
|
18
|
-
};
|
|
19
|
-
var getHomeDir = () => {
|
|
20
|
-
const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
|
|
21
|
-
if (HOME)
|
|
22
|
-
return HOME;
|
|
23
|
-
if (USERPROFILE)
|
|
24
|
-
return USERPROFILE;
|
|
25
|
-
if (HOMEPATH)
|
|
26
|
-
return `${HOMEDRIVE}${HOMEPATH}`;
|
|
27
|
-
const homeDirCacheKey = getHomeDirCacheKey();
|
|
28
|
-
if (!homeDirCache[homeDirCacheKey])
|
|
29
|
-
homeDirCache[homeDirCacheKey] = homedir();
|
|
30
|
-
return homeDirCache[homeDirCacheKey];
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js
|
|
34
|
-
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
35
|
-
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
|
|
36
|
-
|
|
37
|
-
// node_modules/@smithy/types/dist-es/profile.js
|
|
38
|
-
var IniSectionType;
|
|
39
|
-
(function(IniSectionType2) {
|
|
40
|
-
IniSectionType2["PROFILE"] = "profile";
|
|
41
|
-
IniSectionType2["SSO_SESSION"] = "sso-session";
|
|
42
|
-
IniSectionType2["SERVICES"] = "services";
|
|
43
|
-
})(IniSectionType || (IniSectionType = {}));
|
|
44
|
-
|
|
45
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
|
|
46
|
-
import { join as join3 } from "path";
|
|
47
|
-
|
|
48
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js
|
|
49
|
-
var CONFIG_PREFIX_SEPARATOR = ".";
|
|
50
|
-
|
|
51
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js
|
|
52
|
-
var getConfigData = (data) => Object.entries(data).filter(([key]) => {
|
|
53
|
-
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
54
|
-
if (indexOfSeparator === -1) {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator));
|
|
58
|
-
}).reduce((acc, [key, value]) => {
|
|
59
|
-
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
60
|
-
const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
|
|
61
|
-
acc[updatedKey] = value;
|
|
62
|
-
return acc;
|
|
63
|
-
}, {
|
|
64
|
-
...data.default && { default: data.default }
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js
|
|
68
|
-
import { join as join2 } from "path";
|
|
69
|
-
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
70
|
-
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
|
|
71
|
-
|
|
72
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js
|
|
73
|
-
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
74
|
-
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
75
|
-
var parseIni = (iniData) => {
|
|
76
|
-
const map = {};
|
|
77
|
-
let currentSection;
|
|
78
|
-
let currentSubSection;
|
|
79
|
-
for (const iniLine of iniData.split(/\r?\n/)) {
|
|
80
|
-
const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
|
|
81
|
-
const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
|
|
82
|
-
if (isSection) {
|
|
83
|
-
currentSection = void 0;
|
|
84
|
-
currentSubSection = void 0;
|
|
85
|
-
const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
|
|
86
|
-
const matches = prefixKeyRegex.exec(sectionName);
|
|
87
|
-
if (matches) {
|
|
88
|
-
const [, prefix, , name] = matches;
|
|
89
|
-
if (Object.values(IniSectionType).includes(prefix)) {
|
|
90
|
-
currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
|
|
91
|
-
}
|
|
92
|
-
} else {
|
|
93
|
-
currentSection = sectionName;
|
|
94
|
-
}
|
|
95
|
-
if (profileNameBlockList.includes(sectionName)) {
|
|
96
|
-
throw new Error(`Found invalid profile name "${sectionName}"`);
|
|
97
|
-
}
|
|
98
|
-
} else if (currentSection) {
|
|
99
|
-
const indexOfEqualsSign = trimmedLine.indexOf("=");
|
|
100
|
-
if (![0, -1].includes(indexOfEqualsSign)) {
|
|
101
|
-
const [name, value] = [
|
|
102
|
-
trimmedLine.substring(0, indexOfEqualsSign).trim(),
|
|
103
|
-
trimmedLine.substring(indexOfEqualsSign + 1).trim()
|
|
104
|
-
];
|
|
105
|
-
if (value === "") {
|
|
106
|
-
currentSubSection = name;
|
|
107
|
-
} else {
|
|
108
|
-
if (currentSubSection && iniLine.trimStart() === iniLine) {
|
|
109
|
-
currentSubSection = void 0;
|
|
110
|
-
}
|
|
111
|
-
map[currentSection] = map[currentSection] || {};
|
|
112
|
-
const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
|
|
113
|
-
map[currentSection][key] = value;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return map;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js
|
|
122
|
-
import { readFile as fsReadFile } from "node:fs/promises";
|
|
123
|
-
var filePromises = {};
|
|
124
|
-
var fileIntercept = {};
|
|
125
|
-
var readFile = (path, options) => {
|
|
126
|
-
if (fileIntercept[path] !== void 0) {
|
|
127
|
-
return fileIntercept[path];
|
|
128
|
-
}
|
|
129
|
-
if (!filePromises[path] || options?.ignoreCache) {
|
|
130
|
-
filePromises[path] = fsReadFile(path, "utf8");
|
|
131
|
-
}
|
|
132
|
-
return filePromises[path];
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
|
|
136
|
-
var swallowError = () => ({});
|
|
137
|
-
var loadSharedConfigFiles = async (init = {}) => {
|
|
138
|
-
const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
|
|
139
|
-
const homeDir = getHomeDir();
|
|
140
|
-
const relativeHomeDirPrefix = "~/";
|
|
141
|
-
let resolvedFilepath = filepath;
|
|
142
|
-
if (filepath.startsWith(relativeHomeDirPrefix)) {
|
|
143
|
-
resolvedFilepath = join3(homeDir, filepath.slice(2));
|
|
144
|
-
}
|
|
145
|
-
let resolvedConfigFilepath = configFilepath;
|
|
146
|
-
if (configFilepath.startsWith(relativeHomeDirPrefix)) {
|
|
147
|
-
resolvedConfigFilepath = join3(homeDir, configFilepath.slice(2));
|
|
148
|
-
}
|
|
149
|
-
const parsedFiles = await Promise.all([
|
|
150
|
-
readFile(resolvedConfigFilepath, {
|
|
151
|
-
ignoreCache: init.ignoreCache
|
|
152
|
-
}).then(parseIni).then(getConfigData).catch(swallowError),
|
|
153
|
-
readFile(resolvedFilepath, {
|
|
154
|
-
ignoreCache: init.ignoreCache
|
|
155
|
-
}).then(parseIni).catch(swallowError)
|
|
156
|
-
]);
|
|
157
|
-
return {
|
|
158
|
-
configFile: parsedFiles[0],
|
|
159
|
-
credentialsFile: parsedFiles[1]
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js
|
|
164
|
-
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 }), {});
|
|
165
|
-
|
|
166
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js
|
|
167
|
-
var swallowError2 = () => ({});
|
|
168
|
-
var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
|
|
169
|
-
|
|
170
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js
|
|
171
|
-
var mergeConfigFiles = (...files) => {
|
|
172
|
-
const merged = {};
|
|
173
|
-
for (const file of files) {
|
|
174
|
-
for (const [key, values] of Object.entries(file)) {
|
|
175
|
-
if (merged[key] !== void 0) {
|
|
176
|
-
Object.assign(merged[key], values);
|
|
177
|
-
} else {
|
|
178
|
-
merged[key] = values;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return merged;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js
|
|
186
|
-
var parseKnownFiles = async (init) => {
|
|
187
|
-
const parsedFiles = await loadSharedConfigFiles(init);
|
|
188
|
-
return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
|
|
192
|
-
import { createHash } from "crypto";
|
|
193
|
-
import { join as join4 } from "path";
|
|
194
|
-
var getSSOTokenFilepath = (id) => {
|
|
195
|
-
const hasher = createHash("sha1");
|
|
196
|
-
const cacheName = hasher.update(id).digest("hex");
|
|
197
|
-
return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
// node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js
|
|
201
|
-
import { readFile as readFile2 } from "fs/promises";
|
|
202
|
-
var tokenIntercept = {};
|
|
203
|
-
var getSSOTokenFromFile = async (id) => {
|
|
204
|
-
if (tokenIntercept[id]) {
|
|
205
|
-
return tokenIntercept[id];
|
|
206
|
-
}
|
|
207
|
-
const ssoTokenFilepath = getSSOTokenFilepath(id);
|
|
208
|
-
const ssoTokenText = await readFile2(ssoTokenFilepath, "utf8");
|
|
209
|
-
return JSON.parse(ssoTokenText);
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
export {
|
|
213
|
-
ENV_PROFILE,
|
|
214
|
-
getProfileName,
|
|
215
|
-
getSSOTokenFilepath,
|
|
216
|
-
getSSOTokenFromFile,
|
|
217
|
-
CONFIG_PREFIX_SEPARATOR,
|
|
218
|
-
loadSharedConfigFiles,
|
|
219
|
-
loadSsoSessionData,
|
|
220
|
-
parseKnownFiles
|
|
221
|
-
};
|
|
222
|
-
//# sourceMappingURL=chunk-CRX53WMM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js","../../node_modules/@smithy/types/dist-es/profile.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js","../../node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.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 { 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 { 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"],"mappings":";AAAO,IAAM,cAAc;AACpB,IAAM,kBAAkB;AACxB,IAAM,iBAAiB,CAAC,SAAS,KAAK,WAAW,QAAQ,IAAI,WAAW,KAAK;;;ACFpF,SAAS,YAAY;;;ACArB,SAAS,eAAe;AACxB,SAAS,WAAW;AACpB,IAAM,eAAe,CAAC;AACtB,IAAM,qBAAqB,MAAM;AAC7B,MAAI,WAAW,QAAQ,SAAS;AAC5B,WAAO,GAAG,QAAQ,QAAQ,CAAC;AAAA,EAC/B;AACA,SAAO;AACX;AACO,IAAM,aAAa,MAAM;AAC5B,QAAM,EAAE,MAAM,aAAa,UAAU,YAAY,KAAK,GAAG,GAAG,IAAI,QAAQ;AACxE,MAAI;AACA,WAAO;AACX,MAAI;AACA,WAAO;AACX,MAAI;AACA,WAAO,GAAG,SAAS,GAAG,QAAQ;AAClC,QAAM,kBAAkB,mBAAmB;AAC3C,MAAI,CAAC,aAAa,eAAe;AAC7B,iBAAa,eAAe,IAAI,QAAQ;AAC5C,SAAO,aAAa,eAAe;AACvC;;;ADnBO,IAAM,kBAAkB;AACxB,IAAM,oBAAoB,MAAM,QAAQ,IAAI,eAAe,KAAK,KAAK,WAAW,GAAG,QAAQ,QAAQ;;;AEHnG,IAAI;AAAA,CACV,SAAUA,iBAAgB;AACvB,EAAAA,gBAAe,SAAS,IAAI;AAC5B,EAAAA,gBAAe,aAAa,IAAI;AAChC,EAAAA,gBAAe,UAAU,IAAI;AACjC,GAAG,mBAAmB,iBAAiB,CAAC,EAAE;;;ACL1C,SAAS,QAAAC,aAAY;;;ACAd,IAAM,0BAA0B;;;ACEhC,IAAM,gBAAgB,CAAC,SAAS,OAAO,QAAQ,IAAI,EACrD,OAAO,CAAC,CAAC,GAAG,MAAM;AACnB,QAAM,mBAAmB,IAAI,QAAQ,uB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