@aws-sdk/client-codecommit 3.523.0 → 3.529.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist-cjs/index.js +71 -111
  2. package/dist-es/protocols/Aws_json1_1.js +1 -40
  3. package/package.json +17 -17
  4. package/dist-cjs/CodeCommit.js +0 -1
  5. package/dist-cjs/CodeCommitClient.js +0 -1
  6. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  7. package/dist-cjs/commands/AssociateApprovalRuleTemplateWithRepositoryCommand.js +0 -1
  8. package/dist-cjs/commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand.js +0 -1
  9. package/dist-cjs/commands/BatchDescribeMergeConflictsCommand.js +0 -1
  10. package/dist-cjs/commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand.js +0 -1
  11. package/dist-cjs/commands/BatchGetCommitsCommand.js +0 -1
  12. package/dist-cjs/commands/BatchGetRepositoriesCommand.js +0 -1
  13. package/dist-cjs/commands/CreateApprovalRuleTemplateCommand.js +0 -1
  14. package/dist-cjs/commands/CreateBranchCommand.js +0 -1
  15. package/dist-cjs/commands/CreateCommitCommand.js +0 -1
  16. package/dist-cjs/commands/CreatePullRequestApprovalRuleCommand.js +0 -1
  17. package/dist-cjs/commands/CreatePullRequestCommand.js +0 -1
  18. package/dist-cjs/commands/CreateRepositoryCommand.js +0 -1
  19. package/dist-cjs/commands/CreateUnreferencedMergeCommitCommand.js +0 -1
  20. package/dist-cjs/commands/DeleteApprovalRuleTemplateCommand.js +0 -1
  21. package/dist-cjs/commands/DeleteBranchCommand.js +0 -1
  22. package/dist-cjs/commands/DeleteCommentContentCommand.js +0 -1
  23. package/dist-cjs/commands/DeleteFileCommand.js +0 -1
  24. package/dist-cjs/commands/DeletePullRequestApprovalRuleCommand.js +0 -1
  25. package/dist-cjs/commands/DeleteRepositoryCommand.js +0 -1
  26. package/dist-cjs/commands/DescribeMergeConflictsCommand.js +0 -1
  27. package/dist-cjs/commands/DescribePullRequestEventsCommand.js +0 -1
  28. package/dist-cjs/commands/DisassociateApprovalRuleTemplateFromRepositoryCommand.js +0 -1
  29. package/dist-cjs/commands/EvaluatePullRequestApprovalRulesCommand.js +0 -1
  30. package/dist-cjs/commands/GetApprovalRuleTemplateCommand.js +0 -1
  31. package/dist-cjs/commands/GetBlobCommand.js +0 -1
  32. package/dist-cjs/commands/GetBranchCommand.js +0 -1
  33. package/dist-cjs/commands/GetCommentCommand.js +0 -1
  34. package/dist-cjs/commands/GetCommentReactionsCommand.js +0 -1
  35. package/dist-cjs/commands/GetCommentsForComparedCommitCommand.js +0 -1
  36. package/dist-cjs/commands/GetCommentsForPullRequestCommand.js +0 -1
  37. package/dist-cjs/commands/GetCommitCommand.js +0 -1
  38. package/dist-cjs/commands/GetDifferencesCommand.js +0 -1
  39. package/dist-cjs/commands/GetFileCommand.js +0 -1
  40. package/dist-cjs/commands/GetFolderCommand.js +0 -1
  41. package/dist-cjs/commands/GetMergeCommitCommand.js +0 -1
  42. package/dist-cjs/commands/GetMergeConflictsCommand.js +0 -1
  43. package/dist-cjs/commands/GetMergeOptionsCommand.js +0 -1
  44. package/dist-cjs/commands/GetPullRequestApprovalStatesCommand.js +0 -1
  45. package/dist-cjs/commands/GetPullRequestCommand.js +0 -1
  46. package/dist-cjs/commands/GetPullRequestOverrideStateCommand.js +0 -1
  47. package/dist-cjs/commands/GetRepositoryCommand.js +0 -1
  48. package/dist-cjs/commands/GetRepositoryTriggersCommand.js +0 -1
  49. package/dist-cjs/commands/ListApprovalRuleTemplatesCommand.js +0 -1
  50. package/dist-cjs/commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand.js +0 -1
  51. package/dist-cjs/commands/ListBranchesCommand.js +0 -1
  52. package/dist-cjs/commands/ListFileCommitHistoryCommand.js +0 -1
  53. package/dist-cjs/commands/ListPullRequestsCommand.js +0 -1
  54. package/dist-cjs/commands/ListRepositoriesCommand.js +0 -1
  55. package/dist-cjs/commands/ListRepositoriesForApprovalRuleTemplateCommand.js +0 -1
  56. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  57. package/dist-cjs/commands/MergeBranchesByFastForwardCommand.js +0 -1
  58. package/dist-cjs/commands/MergeBranchesBySquashCommand.js +0 -1
  59. package/dist-cjs/commands/MergeBranchesByThreeWayCommand.js +0 -1
  60. package/dist-cjs/commands/MergePullRequestByFastForwardCommand.js +0 -1
  61. package/dist-cjs/commands/MergePullRequestBySquashCommand.js +0 -1
  62. package/dist-cjs/commands/MergePullRequestByThreeWayCommand.js +0 -1
  63. package/dist-cjs/commands/OverridePullRequestApprovalRulesCommand.js +0 -1
  64. package/dist-cjs/commands/PostCommentForComparedCommitCommand.js +0 -1
  65. package/dist-cjs/commands/PostCommentForPullRequestCommand.js +0 -1
  66. package/dist-cjs/commands/PostCommentReplyCommand.js +0 -1
  67. package/dist-cjs/commands/PutCommentReactionCommand.js +0 -1
  68. package/dist-cjs/commands/PutFileCommand.js +0 -1
  69. package/dist-cjs/commands/PutRepositoryTriggersCommand.js +0 -1
  70. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  71. package/dist-cjs/commands/TestRepositoryTriggersCommand.js +0 -1
  72. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  73. package/dist-cjs/commands/UpdateApprovalRuleTemplateContentCommand.js +0 -1
  74. package/dist-cjs/commands/UpdateApprovalRuleTemplateDescriptionCommand.js +0 -1
  75. package/dist-cjs/commands/UpdateApprovalRuleTemplateNameCommand.js +0 -1
  76. package/dist-cjs/commands/UpdateCommentCommand.js +0 -1
  77. package/dist-cjs/commands/UpdateDefaultBranchCommand.js +0 -1
  78. package/dist-cjs/commands/UpdatePullRequestApprovalRuleContentCommand.js +0 -1
  79. package/dist-cjs/commands/UpdatePullRequestApprovalStateCommand.js +0 -1
  80. package/dist-cjs/commands/UpdatePullRequestDescriptionCommand.js +0 -1
  81. package/dist-cjs/commands/UpdatePullRequestStatusCommand.js +0 -1
  82. package/dist-cjs/commands/UpdatePullRequestTitleCommand.js +0 -1
  83. package/dist-cjs/commands/UpdateRepositoryDescriptionCommand.js +0 -1
  84. package/dist-cjs/commands/UpdateRepositoryEncryptionKeyCommand.js +0 -1
  85. package/dist-cjs/commands/UpdateRepositoryNameCommand.js +0 -1
  86. package/dist-cjs/commands/index.js +0 -1
  87. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  88. package/dist-cjs/extensionConfiguration.js +0 -1
  89. package/dist-cjs/models/CodeCommitServiceException.js +0 -1
  90. package/dist-cjs/models/index.js +0 -1
  91. package/dist-cjs/models/models_0.js +0 -1
  92. package/dist-cjs/models/models_1.js +0 -1
  93. package/dist-cjs/pagination/DescribeMergeConflictsPaginator.js +0 -1
  94. package/dist-cjs/pagination/DescribePullRequestEventsPaginator.js +0 -1
  95. package/dist-cjs/pagination/GetCommentReactionsPaginator.js +0 -1
  96. package/dist-cjs/pagination/GetCommentsForComparedCommitPaginator.js +0 -1
  97. package/dist-cjs/pagination/GetCommentsForPullRequestPaginator.js +0 -1
  98. package/dist-cjs/pagination/GetDifferencesPaginator.js +0 -1
  99. package/dist-cjs/pagination/GetMergeConflictsPaginator.js +0 -1
  100. package/dist-cjs/pagination/Interfaces.js +0 -1
  101. package/dist-cjs/pagination/ListApprovalRuleTemplatesPaginator.js +0 -1
  102. package/dist-cjs/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.js +0 -1
  103. package/dist-cjs/pagination/ListBranchesPaginator.js +0 -1
  104. package/dist-cjs/pagination/ListFileCommitHistoryPaginator.js +0 -1
  105. package/dist-cjs/pagination/ListPullRequestsPaginator.js +0 -1
  106. package/dist-cjs/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.js +0 -1
  107. package/dist-cjs/pagination/ListRepositoriesPaginator.js +0 -1
  108. package/dist-cjs/pagination/index.js +0 -1
  109. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  110. package/dist-cjs/runtimeExtensions.js +0 -1
@@ -1,3 +1,4 @@
1
+ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
1
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
4
  import { v4 as generateIdempotencyToken } from "uuid";
@@ -4271,43 +4272,3 @@ function sharedHeaders(operation) {
4271
4272
  "x-amz-target": `CodeCommit_20150413.${operation}`,
4272
4273
  };
4273
4274
  }
4274
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4275
- if (encoded.length) {
4276
- return JSON.parse(encoded);
4277
- }
4278
- return {};
4279
- });
4280
- const parseErrorBody = async (errorBody, context) => {
4281
- const value = await parseBody(errorBody, context);
4282
- value.message = value.message ?? value.Message;
4283
- return value;
4284
- };
4285
- const loadRestJsonErrorCode = (output, data) => {
4286
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4287
- const sanitizeErrorCode = (rawValue) => {
4288
- let cleanValue = rawValue;
4289
- if (typeof cleanValue === "number") {
4290
- cleanValue = cleanValue.toString();
4291
- }
4292
- if (cleanValue.indexOf(",") >= 0) {
4293
- cleanValue = cleanValue.split(",")[0];
4294
- }
4295
- if (cleanValue.indexOf(":") >= 0) {
4296
- cleanValue = cleanValue.split(":")[0];
4297
- }
4298
- if (cleanValue.indexOf("#") >= 0) {
4299
- cleanValue = cleanValue.split("#")[1];
4300
- }
4301
- return cleanValue;
4302
- };
4303
- const headerKey = findKey(output.headers, "x-amzn-errortype");
4304
- if (headerKey !== undefined) {
4305
- return sanitizeErrorCode(output.headers[headerKey]);
4306
- }
4307
- if (data.code !== undefined) {
4308
- return sanitizeErrorCode(data.code);
4309
- }
4310
- if (data["__type"] !== undefined) {
4311
- return sanitizeErrorCode(data["__type"]);
4312
- }
4313
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codecommit",
3
3
  "description": "AWS SDK for JavaScript Codecommit Client for Node.js, Browser and React Native",
4
- "version": "3.523.0",
4
+ "version": "3.529.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codecommit",
@@ -20,40 +20,40 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.523.0",
24
- "@aws-sdk/core": "3.523.0",
25
- "@aws-sdk/credential-provider-node": "3.523.0",
23
+ "@aws-sdk/client-sts": "3.529.0",
24
+ "@aws-sdk/core": "3.529.0",
25
+ "@aws-sdk/credential-provider-node": "3.529.0",
26
26
  "@aws-sdk/middleware-host-header": "3.523.0",
27
27
  "@aws-sdk/middleware-logger": "3.523.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.523.0",
30
- "@aws-sdk/region-config-resolver": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.525.0",
30
+ "@aws-sdk/region-config-resolver": "3.525.0",
31
31
  "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.525.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.523.0",
35
- "@smithy/config-resolver": "^2.1.3",
36
- "@smithy/core": "^1.3.4",
34
+ "@aws-sdk/util-user-agent-node": "3.525.0",
35
+ "@smithy/config-resolver": "^2.1.4",
36
+ "@smithy/core": "^1.3.5",
37
37
  "@smithy/fetch-http-handler": "^2.4.3",
38
38
  "@smithy/hash-node": "^2.1.3",
39
39
  "@smithy/invalid-dependency": "^2.1.3",
40
40
  "@smithy/middleware-content-length": "^2.1.3",
41
- "@smithy/middleware-endpoint": "^2.4.3",
42
- "@smithy/middleware-retry": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.4",
42
+ "@smithy/middleware-retry": "^2.1.4",
43
43
  "@smithy/middleware-serde": "^2.1.3",
44
44
  "@smithy/middleware-stack": "^2.1.3",
45
- "@smithy/node-config-provider": "^2.2.3",
45
+ "@smithy/node-config-provider": "^2.2.4",
46
46
  "@smithy/node-http-handler": "^2.4.1",
47
47
  "@smithy/protocol-http": "^3.2.1",
48
- "@smithy/smithy-client": "^2.4.1",
48
+ "@smithy/smithy-client": "^2.4.2",
49
49
  "@smithy/types": "^2.10.1",
50
50
  "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.3",
55
- "@smithy/util-defaults-mode-node": "^2.2.2",
56
- "@smithy/util-endpoints": "^1.1.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.4",
55
+ "@smithy/util-defaults-mode-node": "^2.2.3",
56
+ "@smithy/util-endpoints": "^1.1.4",
57
57
  "@smithy/util-middleware": "^2.1.3",
58
58
  "@smithy/util-retry": "^2.1.3",
59
59
  "@smithy/util-utf8": "^2.1.1",
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");