Skip to content

Commit

Permalink
Updated to latest version of the `amazon-location-utilities-auth-help…
Browse files Browse the repository at this point in the history
…er-js` dependency (#19)

* Updated auth-helper dependency version

* 1.2.0

* Updated the CHANGELOG
  • Loading branch information
cgalvan authored Nov 5, 2024
1 parent 159ac5b commit 724d7da
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 27 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.2.0

### ✨ Features and improvements

- Updated to latest version of `amazon-location-utilities-auth-helper-js` which contains support for Amazon Cognito with standalone Maps SDK URLs and modified the `withAPIKey` method to be synchronous

# 1.1.1

### 🐞 Bug fixes
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This example uses the Amazon Location Client to make a request that authenticate

```javascript
// Create an authentication helper instance using an API key and region
const authHelper = await amazonLocationClient.withAPIKey("<API Key>", "<Region>");
const authHelper = amazonLocationClient.withAPIKey("<API Key>", "<Region>");

const client = new amazonLocationClient.GeoRoutesClient(authHelper.getClientConfig());
const input = { ... };
Expand Down Expand Up @@ -63,7 +63,7 @@ The standalone Maps SDK commands are grouped into a `maps` namespace. For exampl

```javascript
// Create an authentication helper instance using an API key and region
const authHelper = await amazonLocationClient.withAPIKey("<API Key>", "<Region>");
const authHelper = amazonLocationClient.withAPIKey("<API Key>", "<Region>");

const client = new amazonLocationClient.GeoMapsClient(authHelper.getClientConfig());
const input = { ... };
Expand All @@ -77,7 +77,7 @@ The standalone Places SDK commands are grouped into a `places` namespace. For ex

```javascript
// Create an authentication helper instance using an API key and region
const authHelper = await amazonLocationClient.withAPIKey("<API Key>", "<Region>");
const authHelper = amazonLocationClient.withAPIKey("<API Key>", "<Region>");

const client = new amazonLocationClient.GeoPlacesClient(authHelper.getClientConfig());
const input = { ... };
Expand All @@ -91,7 +91,7 @@ The standalone Routes SDK commands are grouped into a `routes` namespace. For ex

```javascript
// Create an authentication helper instance using an API key and region
const authHelper = await amazonLocationClient.withAPIKey("<API Key>", "<Region>");
const authHelper = amazonLocationClient.withAPIKey("<API Key>", "<Region>");

const client = new amazonLocationClient.GeoRoutesClient(authHelper.getClientConfig());
const input = { ... };
Expand All @@ -105,7 +105,7 @@ The Location SDK commands are under the top-level namespace. For example:

```javascript
// Create an authentication helper instance using an API key and region
const authHelper = await amazonLocationClient.withAPIKey("<API Key>", "<Region>");
const authHelper = amazonLocationClient.withAPIKey("<API Key>", "<Region>");

const client = new amazonLocationClient.LocationClient(authHelper.getClientConfig());
const input = { ... };
Expand Down
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@aws/amazon-location-client",
"description": "Amazon Location Client Bundle",
"license": "Apache-2.0",
"version": "1.1.1",
"version": "1.2.0",
"keywords": [],
"author": {
"name": "Amazon Web Services",
Expand Down Expand Up @@ -48,11 +48,11 @@
"lint-staged": {},
"dependencies": {
"@aws-sdk/client-location": "^3.682.0",
"@aws-sdk/credential-providers": "^3.682.0",
"@aws-sdk/credential-providers": "^3.685.0",
"@aws-sdk/client-geo-maps": "^3.683.0",
"@aws-sdk/client-geo-places": "^3.683.0",
"@aws-sdk/client-geo-routes": "^3.683.0",
"@aws/amazon-location-utilities-auth-helper": "^1.1.0"
"@aws/amazon-location-utilities-auth-helper": "^1.2.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^28.0.1",
Expand Down

0 comments on commit 724d7da

Please sign in to comment.