@aws-sdk/client-codecommit 3.418.0 → 3.421.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/README.md +7 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -404,16 +404,16 @@ using your favorite package manager:
|
|
|
404
404
|
|
|
405
405
|
The AWS SDK is modulized by clients and commands.
|
|
406
406
|
To send a request, you only need to import the `CodeCommitClient` and
|
|
407
|
-
the commands you need, for example `
|
|
407
|
+
the commands you need, for example `ListRepositoriesCommand`:
|
|
408
408
|
|
|
409
409
|
```js
|
|
410
410
|
// ES5 example
|
|
411
|
-
const { CodeCommitClient,
|
|
411
|
+
const { CodeCommitClient, ListRepositoriesCommand } = require("@aws-sdk/client-codecommit");
|
|
412
412
|
```
|
|
413
413
|
|
|
414
414
|
```ts
|
|
415
415
|
// ES6+ example
|
|
416
|
-
import { CodeCommitClient,
|
|
416
|
+
import { CodeCommitClient, ListRepositoriesCommand } from "@aws-sdk/client-codecommit";
|
|
417
417
|
```
|
|
418
418
|
|
|
419
419
|
### Usage
|
|
@@ -432,7 +432,7 @@ const client = new CodeCommitClient({ region: "REGION" });
|
|
|
432
432
|
const params = {
|
|
433
433
|
/** input parameters */
|
|
434
434
|
};
|
|
435
|
-
const command = new
|
|
435
|
+
const command = new ListRepositoriesCommand(params);
|
|
436
436
|
```
|
|
437
437
|
|
|
438
438
|
#### Async/await
|
|
@@ -511,7 +511,7 @@ const client = new AWS.CodeCommit({ region: "REGION" });
|
|
|
511
511
|
|
|
512
512
|
// async/await.
|
|
513
513
|
try {
|
|
514
|
-
const data = await client.
|
|
514
|
+
const data = await client.listRepositories(params);
|
|
515
515
|
// process data.
|
|
516
516
|
} catch (error) {
|
|
517
517
|
// error handling.
|
|
@@ -519,7 +519,7 @@ try {
|
|
|
519
519
|
|
|
520
520
|
// Promises.
|
|
521
521
|
client
|
|
522
|
-
.
|
|
522
|
+
.listRepositories(params)
|
|
523
523
|
.then((data) => {
|
|
524
524
|
// process data.
|
|
525
525
|
})
|
|
@@ -528,7 +528,7 @@ client
|
|
|
528
528
|
});
|
|
529
529
|
|
|
530
530
|
// callbacks.
|
|
531
|
-
client.
|
|
531
|
+
client.listRepositories(params, (err, data) => {
|
|
532
532
|
// process err and data.
|
|
533
533
|
});
|
|
534
534
|
```
|
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.
|
|
4
|
+
"version": "3.421.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.421.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.421.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.418.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|