Skip to content

Commit 1f6b914

Browse files
authored
[Tables] Add missing browser mappings (Azure#15944)
* Add missing browser mappings * Update changelog
1 parent 24302c8 commit 1f6b914

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

sdk/tables/data-tables/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Thank you to our developer community members who helped to make the Azure Tables
1616

1717
- Fix [#15664](https://github.com/Azure/azure-sdk-for-js/issues/15701), adding check to make sure we always have only one forward slash (`/`) added to the end of the URL [#15698](https://github.com/Azure/azure-sdk-for-js/pull/15698) (A community contribution, courtesy of _[eestein](https://github.com/eestein))_
1818
- Fix [#15701](https://github.com/Azure/azure-sdk-for-js/issues/15701) by improving error handling and reporting on `submitTransaction`. [#15852](https://github.com/Azure/azure-sdk-for-js/pull/15852)
19+
- Fix [#15921](https://github.com/Azure/azure-sdk-for-js/issues/15921) incorrect `url` import and missing browser mapping for `computeHMACSHA256` [#15944](https://github.com/Azure/azure-sdk-for-js/pull/15944)
1920

2021
## 12.0.0 (2021-06-09)
2122

sdk/tables/data-tables/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"./dist-esm/src/tablesNamedCredentialPolicy.js": "./dist-esm/src/tablesNamedCredentialPolicy.browser.js",
1010
"./dist-esm/src/utils/accountConnectionString.js": "./dist-esm/src/utils/accountConnectionString.browser.js",
1111
"./dist-esm/src/utils/url.js": "./dist-esm/src/utils/url.browser.js",
12+
"./dist-esm/src/utils/computeHMACSHA256.js": "./dist-esm/src/utils/computeHMACSHA256.browser.js",
1213
"./dist-esm/src/utils/bufferSerializer.js": "./dist-esm/src/utils/bufferSerializer.browser.js",
1314
"./dist-esm/src/utils/transactionHeaders.js": "./dist-esm/src/utils/transactionHeaders.browser.js",
1415
"./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
4+
export function computeHMACSHA256(_stringToSign: string, _accountKey: string): string {
5+
throw new Error("computeHMACSHA256 is not supported in the browser");
6+
}

sdk/tables/data-tables/src/utils/isCosmosEndpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { URL } from "url";
4+
import { URL } from "./url";
55

66
export function isCosmosEndpoint(url: string): boolean {
77
const parsedURL = new URL(url);

0 commit comments

Comments
 (0)