@aws-sdk/client-managedblockchain-query 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 -10
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -29,19 +29,16 @@ using your favorite package manager:
29
29
 
30
30
  The AWS SDK is modulized by clients and commands.
31
31
  To send a request, you only need to import the `ManagedBlockchainQueryClient` and
32
- the commands you need, for example `BatchGetTokenBalanceCommand`:
32
+ the commands you need, for example `ListTokenBalancesCommand`:
33
33
 
34
34
  ```js
35
35
  // ES5 example
36
- const {
37
- ManagedBlockchainQueryClient,
38
- BatchGetTokenBalanceCommand,
39
- } = require("@aws-sdk/client-managedblockchain-query");
36
+ const { ManagedBlockchainQueryClient, ListTokenBalancesCommand } = require("@aws-sdk/client-managedblockchain-query");
40
37
  ```
41
38
 
42
39
  ```ts
43
40
  // ES6+ example
44
- import { ManagedBlockchainQueryClient, BatchGetTokenBalanceCommand } from "@aws-sdk/client-managedblockchain-query";
41
+ import { ManagedBlockchainQueryClient, ListTokenBalancesCommand } from "@aws-sdk/client-managedblockchain-query";
45
42
  ```
46
43
 
47
44
  ### Usage
@@ -60,7 +57,7 @@ const client = new ManagedBlockchainQueryClient({ region: "REGION" });
60
57
  const params = {
61
58
  /** input parameters */
62
59
  };
63
- const command = new BatchGetTokenBalanceCommand(params);
60
+ const command = new ListTokenBalancesCommand(params);
64
61
  ```
65
62
 
66
63
  #### Async/await
@@ -139,7 +136,7 @@ const client = new AWS.ManagedBlockchainQuery({ region: "REGION" });
139
136
 
140
137
  // async/await.
141
138
  try {
142
- const data = await client.batchGetTokenBalance(params);
139
+ const data = await client.listTokenBalances(params);
143
140
  // process data.
144
141
  } catch (error) {
145
142
  // error handling.
@@ -147,7 +144,7 @@ try {
147
144
 
148
145
  // Promises.
149
146
  client
150
- .batchGetTokenBalance(params)
147
+ .listTokenBalances(params)
151
148
  .then((data) => {
152
149
  // process data.
153
150
  })
@@ -156,7 +153,7 @@ client
156
153
  });
157
154
 
158
155
  // callbacks.
159
- client.batchGetTokenBalance(params, (err, data) => {
156
+ client.listTokenBalances(params, (err, data) => {
160
157
  // process err and data.
161
158
  });
162
159
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-managedblockchain-query",
3
3
  "description": "AWS SDK for JavaScript Managedblockchain Query 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",