@aws-sdk/client-codeartifact 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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -296,16 +296,16 @@ using your favorite package manager:
296
296
 
297
297
  The AWS SDK is modulized by clients and commands.
298
298
  To send a request, you only need to import the `CodeartifactClient` and
299
- the commands you need, for example `AssociateExternalConnectionCommand`:
299
+ the commands you need, for example `ListDomainsCommand`:
300
300
 
301
301
  ```js
302
302
  // ES5 example
303
- const { CodeartifactClient, AssociateExternalConnectionCommand } = require("@aws-sdk/client-codeartifact");
303
+ const { CodeartifactClient, ListDomainsCommand } = require("@aws-sdk/client-codeartifact");
304
304
  ```
305
305
 
306
306
  ```ts
307
307
  // ES6+ example
308
- import { CodeartifactClient, AssociateExternalConnectionCommand } from "@aws-sdk/client-codeartifact";
308
+ import { CodeartifactClient, ListDomainsCommand } from "@aws-sdk/client-codeartifact";
309
309
  ```
310
310
 
311
311
  ### Usage
@@ -324,7 +324,7 @@ const client = new CodeartifactClient({ region: "REGION" });
324
324
  const params = {
325
325
  /** input parameters */
326
326
  };
327
- const command = new AssociateExternalConnectionCommand(params);
327
+ const command = new ListDomainsCommand(params);
328
328
  ```
329
329
 
330
330
  #### Async/await
@@ -403,7 +403,7 @@ const client = new AWS.Codeartifact({ region: "REGION" });
403
403
 
404
404
  // async/await.
405
405
  try {
406
- const data = await client.associateExternalConnection(params);
406
+ const data = await client.listDomains(params);
407
407
  // process data.
408
408
  } catch (error) {
409
409
  // error handling.
@@ -411,7 +411,7 @@ try {
411
411
 
412
412
  // Promises.
413
413
  client
414
- .associateExternalConnection(params)
414
+ .listDomains(params)
415
415
  .then((data) => {
416
416
  // process data.
417
417
  })
@@ -420,7 +420,7 @@ client
420
420
  });
421
421
 
422
422
  // callbacks.
423
- client.associateExternalConnection(params, (err, data) => {
423
+ client.listDomains(params, (err, data) => {
424
424
  // process err and data.
425
425
  });
426
426
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeartifact",
3
3
  "description": "AWS SDK for JavaScript Codeartifact Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
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.418.0",
25
- "@aws-sdk/credential-provider-node": "3.418.0",
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",