@azure/data-tables 13.1.2-alpha.20220415.2 → 13.1.2-alpha.20220426.1

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/dist/index.js CHANGED
@@ -7,7 +7,6 @@ require('@azure/core-paging');
7
7
  var coreAuth = require('@azure/core-auth');
8
8
  var coreXml = require('@azure/core-xml');
9
9
  var coreClient = require('@azure/core-client');
10
- var url$1 = require('url');
11
10
  var logger$1 = require('@azure/logger');
12
11
  var crypto = require('crypto');
13
12
  var coreTracing = require('@azure/core-tracing');
@@ -3319,7 +3318,7 @@ function getAccountNameFromUrl(url) {
3319
3318
  if (!url) {
3320
3319
  return url;
3321
3320
  }
3322
- const parsedUrl = new url$1.URL(url);
3321
+ const parsedUrl = new URL(url);
3323
3322
  let accountName;
3324
3323
  const host = parsedUrl.host || "";
3325
3324
  const path = parsedUrl.pathname || "";
@@ -3437,7 +3436,7 @@ function getHeaderValueToSign(request, headerName) {
3437
3436
  }
3438
3437
  function getCanonicalizedResourceString(request, credential) {
3439
3438
  // https://docs.microsoft.com/rest/api/storageservices/authorize-with-shared-key#shared-key-lite-and-table-service-format-for-2009-09-19-and-later
3440
- const url = new url$1.URL(request.url);
3439
+ const url = new URL(request.url);
3441
3440
  const path = url.pathname || "/";
3442
3441
  let canonicalizedResourceString = "/" + credential.name + path;
3443
3442
  // The query string should include the question mark and the comp parameter (for example, ?comp=metadata). No other parameters should be included on the query string.
@@ -3449,6 +3448,7 @@ function getCanonicalizedResourceString(request, credential) {
3449
3448
  }
3450
3449
 
3451
3450
  // Copyright (c) Microsoft Corporation.
3451
+ // Licensed under the MIT license.
3452
3452
  /**
3453
3453
  * The programmatic identifier of the tablesSASTokenPolicy.
3454
3454
  */
@@ -3466,8 +3466,8 @@ function tablesSASTokenPolicy(credential) {
3466
3466
  };
3467
3467
  }
3468
3468
  function signURLWithSAS(request, credential) {
3469
- const sasParams = new url$1.URLSearchParams(credential.signature);
3470
- const url = new url$1.URL(request.url);
3469
+ const sasParams = new URLSearchParams(credential.signature);
3470
+ const url = new URL(request.url);
3471
3471
  for (const [name, value] of sasParams) {
3472
3472
  url.searchParams.append(name, value);
3473
3473
  }
@@ -3745,7 +3745,7 @@ function transactionHeaderFilterPolicy() {
3745
3745
  }
3746
3746
  function getSubRequestUrl(url) {
3747
3747
  const sasTokenParts = ["sv", "ss", "srt", "sp", "se", "st", "spr", "sig"];
3748
- const urlParsed = new url$1.URL(url);
3748
+ const urlParsed = new URL(url);
3749
3749
  sasTokenParts.forEach((part) => urlParsed.searchParams.delete(part));
3750
3750
  return urlParsed.toString();
3751
3751
  }
@@ -3817,8 +3817,9 @@ function getTransactionHeaders(transactionGuid) {
3817
3817
  }
3818
3818
 
3819
3819
  // Copyright (c) Microsoft Corporation.
3820
+ // Licensed under the MIT license.
3820
3821
  function isCosmosEndpoint(url) {
3821
- const parsedURL = new url$1.URL(url);
3822
+ const parsedURL = new URL(url);
3822
3823
  if (parsedURL.hostname.indexOf(".table.cosmosdb.") !== -1) {
3823
3824
  return true;
3824
3825
  }