@jjrawlins/cdk-iam-policy-builder-helper 0.0.28 → 0.0.30
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/.jsii +2 -2
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/methods_list.txt +18 -0
- package/node_modules/@smithy/config-resolver/package.json +2 -2
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +3 -3
- package/node_modules/@smithy/node-config-provider/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/externalDataInterceptor.js +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +5 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +24 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +9 -5
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +16 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +4 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +2 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +5 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +9 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +5 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +2 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +2 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +9 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +5 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +2 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +2 -0
- package/node_modules/@smithy/shared-ini-file-loader/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +5 -5
- package/node_modules/@smithy/util-endpoints/package.json +2 -2
- package/node_modules/axios/CHANGELOG.md +12 -0
- package/node_modules/axios/README.md +74 -0
- package/node_modules/axios/dist/axios.js +37 -40
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +17 -19
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +17 -19
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +17 -19
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/lib/adapters/fetch.js +13 -11
- package/node_modules/axios/lib/core/Axios.js +0 -2
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/utils.js +2 -4
- package/node_modules/axios/package.json +7 -4
- package/package.json +2 -2
package/.jsii
CHANGED
|
@@ -14,7 +14,7 @@ import (
|
|
|
14
14
|
projen "github.com/projen/projen-go/projen/jsii"
|
|
15
15
|
)
|
|
16
16
|
|
|
17
|
-
//go:embed jjrawlins-cdk-iam-policy-builder-helper-0.0.
|
|
17
|
+
//go:embed jjrawlins-cdk-iam-policy-builder-helper-0.0.29.tgz
|
|
18
18
|
var tarball []byte
|
|
19
19
|
|
|
20
20
|
// Initialize loads the necessary packages in the @jsii/kernel to support the enclosing module.
|
|
@@ -26,5 +26,5 @@ func Initialize() {
|
|
|
26
26
|
projen.Initialize()
|
|
27
27
|
|
|
28
28
|
// Load this library into the kernel
|
|
29
|
-
_jsii_.Load("@jjrawlins/cdk-iam-policy-builder-helper", "0.0.
|
|
29
|
+
_jsii_.Load("@jjrawlins/cdk-iam-policy-builder-helper", "0.0.29", tarball)
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.29
|
package/methods_list.txt
CHANGED
|
@@ -2809,6 +2809,7 @@ cloudformation:GetStackPolicy
|
|
|
2809
2809
|
cloudformation:GetTemplate
|
|
2810
2810
|
cloudformation:GetTemplateSummary
|
|
2811
2811
|
cloudformation:ImportStacksToStackSet
|
|
2812
|
+
cloudformation:ListAllHookResults
|
|
2812
2813
|
cloudformation:ListChangeSets
|
|
2813
2814
|
cloudformation:ListExports
|
|
2814
2815
|
cloudformation:ListGeneratedTemplates
|
|
@@ -9173,13 +9174,16 @@ internetmonitor:UpdateMonitor
|
|
|
9173
9174
|
invoicing:BatchGetInvoiceProfile
|
|
9174
9175
|
invoicing:CreateInvoiceUnit
|
|
9175
9176
|
invoicing:DeleteInvoiceUnit
|
|
9177
|
+
invoicing:GetInvoiceCorrection
|
|
9176
9178
|
invoicing:GetInvoiceEmailDeliveryPreferences
|
|
9177
9179
|
invoicing:GetInvoicePDF
|
|
9178
9180
|
invoicing:GetInvoiceUnit
|
|
9181
|
+
invoicing:ListInvoiceCorrections
|
|
9179
9182
|
invoicing:ListInvoiceSummaries
|
|
9180
9183
|
invoicing:ListInvoiceUnits
|
|
9181
9184
|
invoicing:ListTagsForResource
|
|
9182
9185
|
invoicing:PutInvoiceEmailDeliveryPreferences
|
|
9186
|
+
invoicing:StartInvoiceCorrection
|
|
9183
9187
|
invoicing:TagResource
|
|
9184
9188
|
invoicing:UntagResource
|
|
9185
9189
|
invoicing:UpdateInvoiceUnit
|
|
@@ -12755,25 +12759,33 @@ oam:PutSinkPolicy
|
|
|
12755
12759
|
oam:TagResource
|
|
12756
12760
|
oam:UntagResource
|
|
12757
12761
|
oam:UpdateLink
|
|
12762
|
+
observabilityadmin:CreateCentralizationRuleForOrganization
|
|
12758
12763
|
observabilityadmin:CreateTelemetryRule
|
|
12759
12764
|
observabilityadmin:CreateTelemetryRuleForOrganization
|
|
12765
|
+
observabilityadmin:DeleteCentralizationRuleForOrganization
|
|
12760
12766
|
observabilityadmin:DeleteTelemetryRule
|
|
12761
12767
|
observabilityadmin:DeleteTelemetryRuleForOrganization
|
|
12768
|
+
observabilityadmin:GetCentralizationRuleForOrganization
|
|
12769
|
+
observabilityadmin:GetTelemetryEnrichmentStatus
|
|
12762
12770
|
observabilityadmin:GetTelemetryEvaluationStatus
|
|
12763
12771
|
observabilityadmin:GetTelemetryEvaluationStatusForOrganization
|
|
12764
12772
|
observabilityadmin:GetTelemetryRule
|
|
12765
12773
|
observabilityadmin:GetTelemetryRuleForOrganization
|
|
12774
|
+
observabilityadmin:ListCentralizationRulesForOrganization
|
|
12766
12775
|
observabilityadmin:ListResourceTelemetry
|
|
12767
12776
|
observabilityadmin:ListResourceTelemetryForOrganization
|
|
12768
12777
|
observabilityadmin:ListTagsForResource
|
|
12769
12778
|
observabilityadmin:ListTelemetryRules
|
|
12770
12779
|
observabilityadmin:ListTelemetryRulesForOrganization
|
|
12780
|
+
observabilityadmin:StartTelemetryEnrichment
|
|
12771
12781
|
observabilityadmin:StartTelemetryEvaluation
|
|
12772
12782
|
observabilityadmin:StartTelemetryEvaluationForOrganization
|
|
12783
|
+
observabilityadmin:StopTelemetryEnrichment
|
|
12773
12784
|
observabilityadmin:StopTelemetryEvaluation
|
|
12774
12785
|
observabilityadmin:StopTelemetryEvaluationForOrganization
|
|
12775
12786
|
observabilityadmin:TagResource
|
|
12776
12787
|
observabilityadmin:UntagResource
|
|
12788
|
+
observabilityadmin:UpdateCentralizationRuleForOrganization
|
|
12777
12789
|
observabilityadmin:UpdateTelemetryRule
|
|
12778
12790
|
observabilityadmin:UpdateTelemetryRuleForOrganization
|
|
12779
12791
|
odb:AcceptMarketplaceRegistration
|
|
@@ -17923,16 +17935,22 @@ tag:TagResources
|
|
|
17923
17935
|
tag:UntagResources
|
|
17924
17936
|
tax:BatchDeleteTaxRegistration
|
|
17925
17937
|
tax:BatchPutTaxRegistration
|
|
17938
|
+
tax:CancelDocument
|
|
17939
|
+
tax:CreateDocument
|
|
17926
17940
|
tax:DeleteSupplementalTaxRegistration
|
|
17927
17941
|
tax:DeleteTaxRegistration
|
|
17942
|
+
tax:GetDocument
|
|
17943
|
+
tax:GetDocumentUploadUrl
|
|
17928
17944
|
tax:GetExemptions
|
|
17929
17945
|
tax:GetTaxInfoReportingDocument
|
|
17930
17946
|
tax:GetTaxInheritance
|
|
17931
17947
|
tax:GetTaxInterview
|
|
17932
17948
|
tax:GetTaxRegistration
|
|
17933
17949
|
tax:GetTaxRegistrationDocument
|
|
17950
|
+
tax:ListDocuments
|
|
17934
17951
|
tax:ListSupplementalTaxRegistrations
|
|
17935
17952
|
tax:ListTaxRegistrations
|
|
17953
|
+
tax:ListWithholdingEligibleInvoices
|
|
17936
17954
|
tax:PutSupplementalTaxRegistration
|
|
17937
17955
|
tax:PutTaxInheritance
|
|
17938
17956
|
tax:PutTaxInterview
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/config-resolver",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline config-resolver",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/node-config-provider": "^4.2.
|
|
28
|
+
"@smithy/node-config-provider": "^4.2.2",
|
|
29
29
|
"@smithy/types": "^4.5.0",
|
|
30
30
|
"@smithy/util-config-provider": "^4.1.0",
|
|
31
31
|
"@smithy/util-middleware": "^4.1.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@smithy/node-config-provider": "^4.2.
|
|
31
|
+
"@smithy/node-config-provider": "^4.2.2",
|
|
32
32
|
"@smithy/property-provider": "^4.1.1",
|
|
33
33
|
"@smithy/types": "^4.5.0",
|
|
34
34
|
"@smithy/url-parser": "^4.1.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-endpoint",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@smithy/core": "^3.11.0",
|
|
29
29
|
"@smithy/middleware-serde": "^4.1.1",
|
|
30
|
-
"@smithy/node-config-provider": "^4.2.
|
|
31
|
-
"@smithy/shared-ini-file-loader": "^4.
|
|
30
|
+
"@smithy/node-config-provider": "^4.2.2",
|
|
31
|
+
"@smithy/shared-ini-file-loader": "^4.2.0",
|
|
32
32
|
"@smithy/types": "^4.5.0",
|
|
33
33
|
"@smithy/url-parser": "^4.1.1",
|
|
34
34
|
"@smithy/util-middleware": "^4.1.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-retry",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@smithy/node-config-provider": "^4.2.
|
|
37
|
+
"@smithy/node-config-provider": "^4.2.2",
|
|
38
38
|
"@smithy/protocol-http": "^5.2.1",
|
|
39
39
|
"@smithy/service-error-classification": "^4.1.1",
|
|
40
|
-
"@smithy/smithy-client": "^4.6.
|
|
40
|
+
"@smithy/smithy-client": "^4.6.2",
|
|
41
41
|
"@smithy/types": "^4.5.0",
|
|
42
42
|
"@smithy/util-middleware": "^4.1.1",
|
|
43
43
|
"@smithy/util-retry": "^4.1.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-config-provider",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "Load config default values from ini config files and environmental variable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"types": "./dist-types/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@smithy/property-provider": "^4.1.1",
|
|
30
|
-
"@smithy/shared-ini-file-loader": "^4.
|
|
30
|
+
"@smithy/shared-ini-file-loader": "^4.2.0",
|
|
31
31
|
"@smithy/types": "^4.5.0",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSSOTokenFromFile = void 0;
|
|
3
|
+
exports.getSSOTokenFromFile = exports.tokenIntercept = void 0;
|
|
4
4
|
const fs_1 = require("fs");
|
|
5
5
|
const getSSOTokenFilepath_1 = require("./getSSOTokenFilepath");
|
|
6
6
|
const { readFile } = fs_1.promises;
|
|
7
|
+
exports.tokenIntercept = {};
|
|
7
8
|
const getSSOTokenFromFile = async (id) => {
|
|
9
|
+
if (exports.tokenIntercept[id]) {
|
|
10
|
+
return exports.tokenIntercept[id];
|
|
11
|
+
}
|
|
8
12
|
const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);
|
|
9
13
|
const ssoTokenText = await readFile(ssoTokenFilepath, "utf8");
|
|
10
14
|
return JSON.parse(ssoTokenText);
|
|
@@ -24,7 +24,10 @@ __export(index_exports, {
|
|
|
24
24
|
CONFIG_PREFIX_SEPARATOR: () => CONFIG_PREFIX_SEPARATOR,
|
|
25
25
|
DEFAULT_PROFILE: () => DEFAULT_PROFILE,
|
|
26
26
|
ENV_PROFILE: () => ENV_PROFILE,
|
|
27
|
+
SSOToken: () => import_getSSOTokenFromFile2.SSOToken,
|
|
28
|
+
externalDataInterceptor: () => externalDataInterceptor,
|
|
27
29
|
getProfileName: () => getProfileName,
|
|
30
|
+
getSSOTokenFromFile: () => import_getSSOTokenFromFile2.getSSOTokenFromFile,
|
|
28
31
|
loadSharedConfigFiles: () => loadSharedConfigFiles,
|
|
29
32
|
loadSsoSessionData: () => loadSsoSessionData,
|
|
30
33
|
parseKnownFiles: () => parseKnownFiles
|
|
@@ -39,7 +42,7 @@ var getProfileName = /* @__PURE__ */ __name((init) => init.profile || process.en
|
|
|
39
42
|
|
|
40
43
|
// src/index.ts
|
|
41
44
|
__reExport(index_exports, require("././getSSOTokenFilepath"), module.exports);
|
|
42
|
-
|
|
45
|
+
var import_getSSOTokenFromFile2 = require("././getSSOTokenFromFile");
|
|
43
46
|
|
|
44
47
|
// src/loadSharedConfigFiles.ts
|
|
45
48
|
|
|
@@ -189,15 +192,34 @@ var parseKnownFiles = /* @__PURE__ */ __name(async (init) => {
|
|
|
189
192
|
const parsedFiles = await loadSharedConfigFiles(init);
|
|
190
193
|
return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
|
|
191
194
|
}, "parseKnownFiles");
|
|
195
|
+
|
|
196
|
+
// src/externalDataInterceptor.ts
|
|
197
|
+
var import_getSSOTokenFromFile = require("././getSSOTokenFromFile");
|
|
198
|
+
var import_slurpFile3 = require("././slurpFile");
|
|
199
|
+
var externalDataInterceptor = {
|
|
200
|
+
getFileRecord() {
|
|
201
|
+
return import_slurpFile3.fileIntercept;
|
|
202
|
+
},
|
|
203
|
+
interceptFile(path, contents) {
|
|
204
|
+
import_slurpFile3.fileIntercept[path] = Promise.resolve(contents);
|
|
205
|
+
},
|
|
206
|
+
getTokenRecord() {
|
|
207
|
+
return import_getSSOTokenFromFile.tokenIntercept;
|
|
208
|
+
},
|
|
209
|
+
interceptToken(id, contents) {
|
|
210
|
+
import_getSSOTokenFromFile.tokenIntercept[id] = contents;
|
|
211
|
+
}
|
|
212
|
+
};
|
|
192
213
|
// Annotate the CommonJS export names for ESM import in node:
|
|
193
214
|
|
|
194
215
|
0 && (module.exports = {
|
|
216
|
+
getSSOTokenFromFile,
|
|
217
|
+
externalDataInterceptor,
|
|
195
218
|
getHomeDir,
|
|
196
219
|
ENV_PROFILE,
|
|
197
220
|
DEFAULT_PROFILE,
|
|
198
221
|
getProfileName,
|
|
199
222
|
getSSOTokenFilepath,
|
|
200
|
-
getSSOTokenFromFile,
|
|
201
223
|
CONFIG_PREFIX_SEPARATOR,
|
|
202
224
|
loadSharedConfigFiles,
|
|
203
225
|
loadSsoSessionData,
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.slurpFile = void 0;
|
|
3
|
+
exports.slurpFile = exports.fileIntercept = exports.filePromisesHash = void 0;
|
|
4
4
|
const fs_1 = require("fs");
|
|
5
5
|
const { readFile } = fs_1.promises;
|
|
6
|
-
|
|
6
|
+
exports.filePromisesHash = {};
|
|
7
|
+
exports.fileIntercept = {};
|
|
7
8
|
const slurpFile = (path, options) => {
|
|
8
|
-
if (
|
|
9
|
-
|
|
9
|
+
if (exports.fileIntercept[path] !== undefined) {
|
|
10
|
+
return exports.fileIntercept[path];
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
+
if (!exports.filePromisesHash[path] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) {
|
|
13
|
+
exports.filePromisesHash[path] = readFile(path, "utf8");
|
|
14
|
+
}
|
|
15
|
+
return exports.filePromisesHash[path];
|
|
12
16
|
};
|
|
13
17
|
exports.slurpFile = slurpFile;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { tokenIntercept } from "./getSSOTokenFromFile";
|
|
2
|
+
import { fileIntercept } from "./slurpFile";
|
|
3
|
+
export const externalDataInterceptor = {
|
|
4
|
+
getFileRecord() {
|
|
5
|
+
return fileIntercept;
|
|
6
|
+
},
|
|
7
|
+
interceptFile(path, contents) {
|
|
8
|
+
fileIntercept[path] = Promise.resolve(contents);
|
|
9
|
+
},
|
|
10
|
+
getTokenRecord() {
|
|
11
|
+
return tokenIntercept;
|
|
12
|
+
},
|
|
13
|
+
interceptToken(id, contents) {
|
|
14
|
+
tokenIntercept[id] = contents;
|
|
15
|
+
},
|
|
16
|
+
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { promises as fsPromises } from "fs";
|
|
2
2
|
import { getSSOTokenFilepath } from "./getSSOTokenFilepath";
|
|
3
3
|
const { readFile } = fsPromises;
|
|
4
|
+
export const tokenIntercept = {};
|
|
4
5
|
export const getSSOTokenFromFile = async (id) => {
|
|
6
|
+
if (tokenIntercept[id]) {
|
|
7
|
+
return tokenIntercept[id];
|
|
8
|
+
}
|
|
5
9
|
const ssoTokenFilepath = getSSOTokenFilepath(id);
|
|
6
10
|
const ssoTokenText = await readFile(ssoTokenFilepath, "utf8");
|
|
7
11
|
return JSON.parse(ssoTokenText);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export * from "./getHomeDir";
|
|
2
2
|
export * from "./getProfileName";
|
|
3
3
|
export * from "./getSSOTokenFilepath";
|
|
4
|
-
export
|
|
4
|
+
export { getSSOTokenFromFile } from "./getSSOTokenFromFile";
|
|
5
5
|
export * from "./loadSharedConfigFiles";
|
|
6
6
|
export * from "./loadSsoSessionData";
|
|
7
7
|
export * from "./parseKnownFiles";
|
|
8
|
+
export { externalDataInterceptor } from "./externalDataInterceptor";
|
|
8
9
|
export * from "./types";
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { promises as fsPromises } from "fs";
|
|
2
2
|
const { readFile } = fsPromises;
|
|
3
|
-
const filePromisesHash = {};
|
|
3
|
+
export const filePromisesHash = {};
|
|
4
|
+
export const fileIntercept = {};
|
|
4
5
|
export const slurpFile = (path, options) => {
|
|
6
|
+
if (fileIntercept[path] !== undefined) {
|
|
7
|
+
return fileIntercept[path];
|
|
8
|
+
}
|
|
5
9
|
if (!filePromisesHash[path] || options?.ignoreCache) {
|
|
6
10
|
filePromisesHash[path] = readFile(path, "utf8");
|
|
7
11
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
4
|
+
export declare const externalDataInterceptor: {
|
|
5
|
+
getFileRecord(): Record<string, Promise<string>>;
|
|
6
|
+
interceptFile(path: string, contents: string): void;
|
|
7
|
+
getTokenRecord(): Record<string, any>;
|
|
8
|
+
interceptToken(id: string, contents: any): void;
|
|
9
|
+
};
|
|
@@ -38,9 +38,13 @@ export interface SSOToken {
|
|
|
38
38
|
*/
|
|
39
39
|
startUrl?: string;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
export declare const tokenIntercept: Record<string, any>;
|
|
41
45
|
/**
|
|
42
46
|
* @internal
|
|
43
47
|
* @param id - can be either a start URL or the SSO session name.
|
|
44
48
|
* Returns the SSO token from the file system.
|
|
45
49
|
*/
|
|
46
|
-
export declare const getSSOTokenFromFile: (id: string) => Promise<
|
|
50
|
+
export declare const getSSOTokenFromFile: (id: string) => Promise<any>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export * from "./getHomeDir";
|
|
2
2
|
export * from "./getProfileName";
|
|
3
3
|
export * from "./getSSOTokenFilepath";
|
|
4
|
-
export
|
|
4
|
+
export { getSSOTokenFromFile, SSOToken } from "./getSSOTokenFromFile";
|
|
5
5
|
export * from "./loadSharedConfigFiles";
|
|
6
6
|
export * from "./loadSsoSessionData";
|
|
7
7
|
export * from "./parseKnownFiles";
|
|
8
|
+
export { externalDataInterceptor } from "./externalDataInterceptor";
|
|
8
9
|
export * from "./types";
|
package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
4
|
+
export declare const externalDataInterceptor: {
|
|
5
|
+
getFileRecord(): Record<string, Promise<string>>;
|
|
6
|
+
interceptFile(path: string, contents: string): void;
|
|
7
|
+
getTokenRecord(): Record<string, any>;
|
|
8
|
+
interceptToken(id: string, contents: any): void;
|
|
9
|
+
};
|
package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts
CHANGED
|
@@ -38,9 +38,13 @@ export interface SSOToken {
|
|
|
38
38
|
*/
|
|
39
39
|
startUrl?: string;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
export declare const tokenIntercept: Record<string, any>;
|
|
41
45
|
/**
|
|
42
46
|
* @internal
|
|
43
47
|
* @param id - can be either a start URL or the SSO session name.
|
|
44
48
|
* Returns the SSO token from the file system.
|
|
45
49
|
*/
|
|
46
|
-
export declare const getSSOTokenFromFile: (id: string) => Promise<
|
|
50
|
+
export declare const getSSOTokenFromFile: (id: string) => Promise<any>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export * from "./getHomeDir";
|
|
2
2
|
export * from "./getProfileName";
|
|
3
3
|
export * from "./getSSOTokenFilepath";
|
|
4
|
-
export
|
|
4
|
+
export { getSSOTokenFromFile, SSOToken } from "./getSSOTokenFromFile";
|
|
5
5
|
export * from "./loadSharedConfigFiles";
|
|
6
6
|
export * from "./loadSsoSessionData";
|
|
7
7
|
export * from "./parseKnownFiles";
|
|
8
|
+
export { externalDataInterceptor } from "./externalDataInterceptor";
|
|
8
9
|
export * from "./types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/smithy-client",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline smithy-client",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@smithy/core": "^3.11.0",
|
|
29
|
-
"@smithy/middleware-endpoint": "^4.2.
|
|
29
|
+
"@smithy/middleware-endpoint": "^4.2.2",
|
|
30
30
|
"@smithy/middleware-stack": "^4.1.1",
|
|
31
31
|
"@smithy/protocol-http": "^5.2.1",
|
|
32
32
|
"@smithy/types": "^4.5.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@smithy/property-provider": "^4.1.1",
|
|
28
|
-
"@smithy/smithy-client": "^4.6.
|
|
28
|
+
"@smithy/smithy-client": "^4.6.2",
|
|
29
29
|
"@smithy/types": "^4.5.0",
|
|
30
30
|
"bowser": "^2.11.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-defaults-mode-node",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/config-resolver": "^4.2.
|
|
28
|
-
"@smithy/credential-provider-imds": "^4.1.
|
|
29
|
-
"@smithy/node-config-provider": "^4.2.
|
|
27
|
+
"@smithy/config-resolver": "^4.2.2",
|
|
28
|
+
"@smithy/credential-provider-imds": "^4.1.2",
|
|
29
|
+
"@smithy/node-config-provider": "^4.2.2",
|
|
30
30
|
"@smithy/property-provider": "^4.1.1",
|
|
31
|
-
"@smithy/smithy-client": "^4.6.
|
|
31
|
+
"@smithy/smithy-client": "^4.6.2",
|
|
32
32
|
"@smithy/types": "^4.5.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-endpoints",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@smithy/node-config-provider": "^4.2.
|
|
32
|
+
"@smithy/node-config-provider": "^4.2.2",
|
|
33
33
|
"@smithy/types": "^4.5.0",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.12.2](https://github.com/axios/axios/compare/v1.12.1...v1.12.2) (2025-09-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **fetch:** use current global fetch instead of cached one when env fetch is not specified to keep MSW support; ([#7030](https://github.com/axios/axios/issues/7030)) ([cf78825](https://github.com/axios/axios/commit/cf78825e1229b60d1629ad0bbc8a752ff43c3f53))
|
|
9
|
+
|
|
10
|
+
### Contributors to this release
|
|
11
|
+
|
|
12
|
+
- <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+247/-16 (#7030 #7022 #7024 )")
|
|
13
|
+
- <img src="https://avatars.githubusercontent.com/u/189505037?v=4&s=18" alt="avatar" width="18"/> [Noritaka Kobayashi](https://github.com/noritaka1166 "+2/-6 (#7028 #7029 )")
|
|
14
|
+
|
|
3
15
|
## [1.12.1](https://github.com/axios/axios/compare/v1.12.0...v1.12.1) (2025-09-12)
|
|
4
16
|
|
|
5
17
|
|
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
- [🆕 Rate limiting](#-progress-capturing)
|
|
84
84
|
- [🆕 AxiosHeaders](#-axiosheaders)
|
|
85
85
|
- [🔥 Fetch adapter](#-fetch-adapter)
|
|
86
|
+
- [🔥 Custom fetch](#-custom-fetch)
|
|
87
|
+
- [🔥 Using with Tauri](#-using-with-tauri)
|
|
88
|
+
- [🔥 Using with SvelteKit](#-using-with-sveltekit-)
|
|
86
89
|
- [Semver](#semver)
|
|
87
90
|
- [Promises](#promises)
|
|
88
91
|
- [TypeScript](#typescript)
|
|
@@ -1626,6 +1629,77 @@ const {data} = fetchAxios.get(url);
|
|
|
1626
1629
|
The adapter supports the same functionality as `xhr` adapter, **including upload and download progress capturing**.
|
|
1627
1630
|
Also, it supports additional response types such as `stream` and `formdata` (if supported by the environment).
|
|
1628
1631
|
|
|
1632
|
+
### 🔥 Custom fetch
|
|
1633
|
+
|
|
1634
|
+
Starting from `v1.12.0`, you can customize the fetch adapter to use a custom fetch API instead of environment globals.
|
|
1635
|
+
You can pass a custom `fetch` function, `Request`, and `Response` constructors via env config.
|
|
1636
|
+
This can be helpful in case of custom environments & app frameworks.
|
|
1637
|
+
|
|
1638
|
+
Also, when using a custom fetch, you may need to set custom Request and Response too. If you don't set them, global objects will be used.
|
|
1639
|
+
If your custom fetch api does not have these objects, and the globals are incompatible with a custom fetch,
|
|
1640
|
+
you must disable their use inside the fetch adapter by passing null.
|
|
1641
|
+
|
|
1642
|
+
> Note: Setting `Request` & `Response` to `null` will make it impossible for the fetch adapter to capture the upload & download progress.
|
|
1643
|
+
|
|
1644
|
+
Basic example:
|
|
1645
|
+
|
|
1646
|
+
```js
|
|
1647
|
+
import customFetchFunction from 'customFetchModule';
|
|
1648
|
+
|
|
1649
|
+
const instance = axios.create({
|
|
1650
|
+
adapter: 'fetch',
|
|
1651
|
+
onDownloadProgress(e) {
|
|
1652
|
+
console.log('downloadProgress', e);
|
|
1653
|
+
},
|
|
1654
|
+
env: {
|
|
1655
|
+
fetch: customFetchFunction,
|
|
1656
|
+
Request: null, // undefined -> use the global constructor
|
|
1657
|
+
Response: null
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
```
|
|
1661
|
+
|
|
1662
|
+
#### 🔥 Using with Tauri
|
|
1663
|
+
|
|
1664
|
+
A minimal example of setting up Axios for use in a [Tauri](https://tauri.app/plugin/http-client/) app with a platform fetch function that ignores CORS policy for requests.
|
|
1665
|
+
|
|
1666
|
+
```js
|
|
1667
|
+
import { fetch } from "@tauri-apps/plugin-http";
|
|
1668
|
+
import axios from "axios";
|
|
1669
|
+
|
|
1670
|
+
const instance = axios.create({
|
|
1671
|
+
adapter: 'fetch',
|
|
1672
|
+
onDownloadProgress(e) {
|
|
1673
|
+
console.log('downloadProgress', e);
|
|
1674
|
+
},
|
|
1675
|
+
env: {
|
|
1676
|
+
fetch
|
|
1677
|
+
}
|
|
1678
|
+
});
|
|
1679
|
+
|
|
1680
|
+
const {data} = await instance.get("https://google.com");
|
|
1681
|
+
```
|
|
1682
|
+
|
|
1683
|
+
#### 🔥 Using with SvelteKit
|
|
1684
|
+
|
|
1685
|
+
[SvelteKit](https://svelte.dev/docs/kit/web-standards#Fetch-APIs) framework has a custom implementation of the fetch function for server rendering (so called `load` functions), and also uses relative paths,
|
|
1686
|
+
which makes it incompatible with the standard URL API. So, Axios must be configured to use the custom fetch API:
|
|
1687
|
+
|
|
1688
|
+
```js
|
|
1689
|
+
export async function load({ fetch }) {
|
|
1690
|
+
const {data: post} = await axios.get('https://jsonplaceholder.typicode.com/posts/1', {
|
|
1691
|
+
adapter: 'fetch',
|
|
1692
|
+
env: {
|
|
1693
|
+
fetch,
|
|
1694
|
+
Request: null,
|
|
1695
|
+
Response: null
|
|
1696
|
+
}
|
|
1697
|
+
});
|
|
1698
|
+
|
|
1699
|
+
return { post };
|
|
1700
|
+
}
|
|
1701
|
+
```
|
|
1702
|
+
|
|
1629
1703
|
## Semver
|
|
1630
1704
|
|
|
1631
1705
|
Since Axios has reached a `v.1.0.0` we will fully embrace semver as per the spec [here](https://semver.org/)
|