@aws-sdk/client-codecommit 3.645.0 → 3.650.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/endpoint/endpointResolver.js +6 -2
- package/dist-cjs/index.js +79 -237
- package/dist-es/commands/AssociateApprovalRuleTemplateWithRepositoryCommand.js +1 -3
- package/dist-es/commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand.js +1 -3
- package/dist-es/commands/BatchDescribeMergeConflictsCommand.js +1 -3
- package/dist-es/commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand.js +1 -3
- package/dist-es/commands/BatchGetCommitsCommand.js +1 -3
- package/dist-es/commands/BatchGetRepositoriesCommand.js +1 -3
- package/dist-es/commands/CreateApprovalRuleTemplateCommand.js +1 -3
- package/dist-es/commands/CreateBranchCommand.js +1 -3
- package/dist-es/commands/CreateCommitCommand.js +1 -3
- package/dist-es/commands/CreatePullRequestApprovalRuleCommand.js +1 -3
- package/dist-es/commands/CreatePullRequestCommand.js +1 -3
- package/dist-es/commands/CreateRepositoryCommand.js +1 -3
- package/dist-es/commands/CreateUnreferencedMergeCommitCommand.js +1 -3
- package/dist-es/commands/DeleteApprovalRuleTemplateCommand.js +1 -3
- package/dist-es/commands/DeleteBranchCommand.js +1 -3
- package/dist-es/commands/DeleteCommentContentCommand.js +1 -3
- package/dist-es/commands/DeleteFileCommand.js +1 -3
- package/dist-es/commands/DeletePullRequestApprovalRuleCommand.js +1 -3
- package/dist-es/commands/DeleteRepositoryCommand.js +1 -3
- package/dist-es/commands/DescribeMergeConflictsCommand.js +1 -3
- package/dist-es/commands/DescribePullRequestEventsCommand.js +1 -3
- package/dist-es/commands/DisassociateApprovalRuleTemplateFromRepositoryCommand.js +1 -3
- package/dist-es/commands/EvaluatePullRequestApprovalRulesCommand.js +1 -3
- package/dist-es/commands/GetApprovalRuleTemplateCommand.js +1 -3
- package/dist-es/commands/GetBlobCommand.js +1 -3
- package/dist-es/commands/GetBranchCommand.js +1 -3
- package/dist-es/commands/GetCommentCommand.js +1 -3
- package/dist-es/commands/GetCommentReactionsCommand.js +1 -3
- package/dist-es/commands/GetCommentsForComparedCommitCommand.js +1 -3
- package/dist-es/commands/GetCommentsForPullRequestCommand.js +1 -3
- package/dist-es/commands/GetCommitCommand.js +1 -3
- package/dist-es/commands/GetDifferencesCommand.js +1 -3
- package/dist-es/commands/GetFileCommand.js +1 -3
- package/dist-es/commands/GetFolderCommand.js +1 -3
- package/dist-es/commands/GetMergeCommitCommand.js +1 -3
- package/dist-es/commands/GetMergeConflictsCommand.js +1 -3
- package/dist-es/commands/GetMergeOptionsCommand.js +1 -3
- package/dist-es/commands/GetPullRequestApprovalStatesCommand.js +1 -3
- package/dist-es/commands/GetPullRequestCommand.js +1 -3
- package/dist-es/commands/GetPullRequestOverrideStateCommand.js +1 -3
- package/dist-es/commands/GetRepositoryCommand.js +1 -3
- package/dist-es/commands/GetRepositoryTriggersCommand.js +1 -3
- package/dist-es/commands/ListApprovalRuleTemplatesCommand.js +1 -3
- package/dist-es/commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand.js +1 -3
- package/dist-es/commands/ListBranchesCommand.js +1 -3
- package/dist-es/commands/ListFileCommitHistoryCommand.js +1 -3
- package/dist-es/commands/ListPullRequestsCommand.js +1 -3
- package/dist-es/commands/ListRepositoriesCommand.js +1 -3
- package/dist-es/commands/ListRepositoriesForApprovalRuleTemplateCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/MergeBranchesByFastForwardCommand.js +1 -3
- package/dist-es/commands/MergeBranchesBySquashCommand.js +1 -3
- package/dist-es/commands/MergeBranchesByThreeWayCommand.js +1 -3
- package/dist-es/commands/MergePullRequestByFastForwardCommand.js +1 -3
- package/dist-es/commands/MergePullRequestBySquashCommand.js +1 -3
- package/dist-es/commands/MergePullRequestByThreeWayCommand.js +1 -3
- package/dist-es/commands/OverridePullRequestApprovalRulesCommand.js +1 -3
- package/dist-es/commands/PostCommentForComparedCommitCommand.js +1 -3
- package/dist-es/commands/PostCommentForPullRequestCommand.js +1 -3
- package/dist-es/commands/PostCommentReplyCommand.js +1 -3
- package/dist-es/commands/PutCommentReactionCommand.js +1 -3
- package/dist-es/commands/PutFileCommand.js +1 -3
- package/dist-es/commands/PutRepositoryTriggersCommand.js +1 -3
- package/dist-es/commands/TagResourceCommand.js +1 -3
- package/dist-es/commands/TestRepositoryTriggersCommand.js +1 -3
- package/dist-es/commands/UntagResourceCommand.js +1 -3
- package/dist-es/commands/UpdateApprovalRuleTemplateContentCommand.js +1 -3
- package/dist-es/commands/UpdateApprovalRuleTemplateDescriptionCommand.js +1 -3
- package/dist-es/commands/UpdateApprovalRuleTemplateNameCommand.js +1 -3
- package/dist-es/commands/UpdateCommentCommand.js +1 -3
- package/dist-es/commands/UpdateDefaultBranchCommand.js +1 -3
- package/dist-es/commands/UpdatePullRequestApprovalRuleContentCommand.js +1 -3
- package/dist-es/commands/UpdatePullRequestApprovalStateCommand.js +1 -3
- package/dist-es/commands/UpdatePullRequestDescriptionCommand.js +1 -3
- package/dist-es/commands/UpdatePullRequestStatusCommand.js +1 -3
- package/dist-es/commands/UpdatePullRequestTitleCommand.js +1 -3
- package/dist-es/commands/UpdateRepositoryDescriptionCommand.js +1 -3
- package/dist-es/commands/UpdateRepositoryEncryptionKeyCommand.js +1 -3
- package/dist-es/commands/UpdateRepositoryNameCommand.js +1 -3
- package/dist-es/endpoint/endpointResolver.js +7 -3
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +35 -35
|
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
|
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
6
|
const ruleset_1 = require("./ruleset");
|
|
7
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
+
size: 50,
|
|
9
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
|
+
});
|
|
7
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
-
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
9
13
|
endpointParams: endpointParams,
|
|
10
14
|
logger: context.logger,
|
|
11
|
-
});
|
|
15
|
+
}));
|
|
12
16
|
};
|
|
13
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
18
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|