@azure/data-tables 13.2.3-alpha.20230926.1 → 13.2.3-alpha.20230929.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
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var tslib = require('tslib');
6
4
  require('@azure/core-paging');
7
5
  var coreAuth = require('@azure/core-auth');
@@ -13,8 +11,7 @@ var crypto = require('crypto');
13
11
  var coreTracing = require('@azure/core-tracing');
14
12
  var uuid = require('uuid');
15
13
 
16
- function _interopNamespace(e) {
17
- if (e && e.__esModule) return e;
14
+ function _interopNamespaceDefault(e) {
18
15
  var n = Object.create(null);
19
16
  if (e) {
20
17
  Object.keys(e).forEach(function (k) {
@@ -27,11 +24,11 @@ function _interopNamespace(e) {
27
24
  }
28
25
  });
29
26
  }
30
- n["default"] = e;
27
+ n.default = e;
31
28
  return Object.freeze(n);
32
29
  }
33
30
 
34
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
31
+ var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
35
32
 
36
33
  /*
37
34
  * Copyright (c) Microsoft Corporation.
@@ -218,6 +215,7 @@ function truncatedISO8061Date(date, withMilliseconds = true) {
218
215
  }
219
216
 
220
217
  // Copyright (c) Microsoft Corporation.
218
+ // Licensed under the MIT license.
221
219
  /**
222
220
  * Represents the components that make up an Azure SAS' query parameters. This type is not constructed directly
223
221
  * by the user; it is only generated by the {@link AccountSasSignatureValues} and {@link TableSasSignatureValues}
@@ -555,12 +553,14 @@ const TablesLoggingAllowedHeaderNames = [
555
553
  ];
556
554
 
557
555
  // Copyright (c) Microsoft Corporation.
556
+ // Licensed under the MIT license.
558
557
  function computeHMACSHA256(stringToSign, accountKey) {
559
558
  const key = Buffer.from(accountKey, "base64");
560
559
  return crypto.createHmac("sha256", key).update(stringToSign, "utf8").digest("base64");
561
560
  }
562
561
 
563
562
  // Copyright (c) Microsoft Corporation.
563
+ // Licensed under the MIT license.
564
564
  /**
565
565
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
566
566
  *
@@ -607,6 +607,7 @@ function generateAccountSasQueryParameters(accountSasSignatureValues, credential
607
607
  }
608
608
 
609
609
  // Copyright (c) Microsoft Corporation.
610
+ // Licensed under the MIT license.
610
611
  /**
611
612
  * Generates a Table Account Shared Access Signature (SAS) URI based on the client properties
612
613
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
@@ -687,6 +688,12 @@ function tableSasPermissionsToString(permissions) {
687
688
  }
688
689
 
689
690
  // Copyright (c) Microsoft Corporation.
691
+ // Licensed under the MIT license.
692
+ /**
693
+ * ONLY AVAILABLE IN NODE.JS RUNTIME.
694
+ *
695
+ * TableSASSignatureValues is used to help generating SAS tokens for tables.
696
+ */
690
697
  /**
691
698
  * ONLY AVAILABLE IN NODE.JS RUNTIME.
692
699
  *
@@ -754,6 +761,7 @@ function getCanonicalName(accountName, tableName) {
754
761
  }
755
762
 
756
763
  // Copyright (c) Microsoft Corporation.
764
+ // Licensed under the MIT license.
757
765
  /**
758
766
  * Generates a Table Service Shared Access Signature (SAS) URI based on the client properties
759
767
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
@@ -2163,51 +2171,51 @@ const ServiceGetStatisticsExceptionHeaders = {
2163
2171
 
2164
2172
  var Mappers = /*#__PURE__*/Object.freeze({
2165
2173
  __proto__: null,
2166
- TableQueryResponse: TableQueryResponse,
2167
- TableResponseProperties: TableResponseProperties,
2168
- TableServiceError: TableServiceError,
2169
- TableServiceErrorOdataError: TableServiceErrorOdataError,
2170
- TableServiceErrorOdataErrorMessage: TableServiceErrorOdataErrorMessage,
2171
- TableProperties: TableProperties,
2172
- TableEntityQueryResponse: TableEntityQueryResponse,
2173
- SignedIdentifier: SignedIdentifier,
2174
2174
  AccessPolicy: AccessPolicy,
2175
- TableServiceProperties: TableServiceProperties,
2176
- Logging: Logging,
2177
- RetentionPolicy: RetentionPolicy,
2178
- Metrics: Metrics,
2179
2175
  CorsRule: CorsRule,
2180
- TableServiceStats: TableServiceStats,
2181
2176
  GeoReplication: GeoReplication,
2182
- TableResponse: TableResponse,
2183
- TableQueryHeaders: TableQueryHeaders,
2184
- TableQueryExceptionHeaders: TableQueryExceptionHeaders,
2185
- TableCreateHeaders: TableCreateHeaders,
2177
+ Logging: Logging,
2178
+ Metrics: Metrics,
2179
+ RetentionPolicy: RetentionPolicy,
2180
+ ServiceGetPropertiesExceptionHeaders: ServiceGetPropertiesExceptionHeaders,
2181
+ ServiceGetPropertiesHeaders: ServiceGetPropertiesHeaders,
2182
+ ServiceGetStatisticsExceptionHeaders: ServiceGetStatisticsExceptionHeaders,
2183
+ ServiceGetStatisticsHeaders: ServiceGetStatisticsHeaders,
2184
+ ServiceSetPropertiesExceptionHeaders: ServiceSetPropertiesExceptionHeaders,
2185
+ ServiceSetPropertiesHeaders: ServiceSetPropertiesHeaders,
2186
+ SignedIdentifier: SignedIdentifier,
2186
2187
  TableCreateExceptionHeaders: TableCreateExceptionHeaders,
2187
- TableDeleteHeaders: TableDeleteHeaders,
2188
+ TableCreateHeaders: TableCreateHeaders,
2189
+ TableDeleteEntityExceptionHeaders: TableDeleteEntityExceptionHeaders,
2190
+ TableDeleteEntityHeaders: TableDeleteEntityHeaders,
2188
2191
  TableDeleteExceptionHeaders: TableDeleteExceptionHeaders,
2189
- TableQueryEntitiesHeaders: TableQueryEntitiesHeaders,
2192
+ TableDeleteHeaders: TableDeleteHeaders,
2193
+ TableEntityQueryResponse: TableEntityQueryResponse,
2194
+ TableGetAccessPolicyExceptionHeaders: TableGetAccessPolicyExceptionHeaders,
2195
+ TableGetAccessPolicyHeaders: TableGetAccessPolicyHeaders,
2196
+ TableInsertEntityExceptionHeaders: TableInsertEntityExceptionHeaders,
2197
+ TableInsertEntityHeaders: TableInsertEntityHeaders,
2198
+ TableMergeEntityExceptionHeaders: TableMergeEntityExceptionHeaders,
2199
+ TableMergeEntityHeaders: TableMergeEntityHeaders,
2200
+ TableProperties: TableProperties,
2190
2201
  TableQueryEntitiesExceptionHeaders: TableQueryEntitiesExceptionHeaders,
2191
- TableQueryEntitiesWithPartitionAndRowKeyHeaders: TableQueryEntitiesWithPartitionAndRowKeyHeaders,
2202
+ TableQueryEntitiesHeaders: TableQueryEntitiesHeaders,
2192
2203
  TableQueryEntitiesWithPartitionAndRowKeyExceptionHeaders: TableQueryEntitiesWithPartitionAndRowKeyExceptionHeaders,
2193
- TableUpdateEntityHeaders: TableUpdateEntityHeaders,
2194
- TableUpdateEntityExceptionHeaders: TableUpdateEntityExceptionHeaders,
2195
- TableMergeEntityHeaders: TableMergeEntityHeaders,
2196
- TableMergeEntityExceptionHeaders: TableMergeEntityExceptionHeaders,
2197
- TableDeleteEntityHeaders: TableDeleteEntityHeaders,
2198
- TableDeleteEntityExceptionHeaders: TableDeleteEntityExceptionHeaders,
2199
- TableInsertEntityHeaders: TableInsertEntityHeaders,
2200
- TableInsertEntityExceptionHeaders: TableInsertEntityExceptionHeaders,
2201
- TableGetAccessPolicyHeaders: TableGetAccessPolicyHeaders,
2202
- TableGetAccessPolicyExceptionHeaders: TableGetAccessPolicyExceptionHeaders,
2203
- TableSetAccessPolicyHeaders: TableSetAccessPolicyHeaders,
2204
+ TableQueryEntitiesWithPartitionAndRowKeyHeaders: TableQueryEntitiesWithPartitionAndRowKeyHeaders,
2205
+ TableQueryExceptionHeaders: TableQueryExceptionHeaders,
2206
+ TableQueryHeaders: TableQueryHeaders,
2207
+ TableQueryResponse: TableQueryResponse,
2208
+ TableResponse: TableResponse,
2209
+ TableResponseProperties: TableResponseProperties,
2210
+ TableServiceError: TableServiceError,
2211
+ TableServiceErrorOdataError: TableServiceErrorOdataError,
2212
+ TableServiceErrorOdataErrorMessage: TableServiceErrorOdataErrorMessage,
2213
+ TableServiceProperties: TableServiceProperties,
2214
+ TableServiceStats: TableServiceStats,
2204
2215
  TableSetAccessPolicyExceptionHeaders: TableSetAccessPolicyExceptionHeaders,
2205
- ServiceSetPropertiesHeaders: ServiceSetPropertiesHeaders,
2206
- ServiceSetPropertiesExceptionHeaders: ServiceSetPropertiesExceptionHeaders,
2207
- ServiceGetPropertiesHeaders: ServiceGetPropertiesHeaders,
2208
- ServiceGetPropertiesExceptionHeaders: ServiceGetPropertiesExceptionHeaders,
2209
- ServiceGetStatisticsHeaders: ServiceGetStatisticsHeaders,
2210
- ServiceGetStatisticsExceptionHeaders: ServiceGetStatisticsExceptionHeaders
2216
+ TableSetAccessPolicyHeaders: TableSetAccessPolicyHeaders,
2217
+ TableUpdateEntityExceptionHeaders: TableUpdateEntityExceptionHeaders,
2218
+ TableUpdateEntityHeaders: TableUpdateEntityHeaders
2211
2219
  });
2212
2220
 
2213
2221
  /*
@@ -3199,6 +3207,7 @@ const apiVersionPolicy = (apiVersion) => {
3199
3207
  };
3200
3208
 
3201
3209
  // Copyright (c) Microsoft Corporation.
3210
+ // Licensed under the MIT license.
3202
3211
  /**
3203
3212
  * Gets client parameters from an Account Connection String
3204
3213
  * Only supported in Node.js not supported for Browsers
@@ -3241,6 +3250,7 @@ function getAccountConnectionString(accountName, accountKey, defaultEndpointsPro
3241
3250
  }
3242
3251
 
3243
3252
  // Copyright (c) Microsoft Corporation.
3253
+ // Licensed under the MIT license.
3244
3254
  const DevelopmentConnectionString = "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1";
3245
3255
  /**
3246
3256
  * This function parses a connection string into a set of
@@ -3404,17 +3414,20 @@ function isTableServiceErrorResponse(errorResponseBody) {
3404
3414
  }
3405
3415
 
3406
3416
  // Copyright (c) Microsoft Corporation.
3417
+ // Licensed under the MIT license.
3407
3418
  function isCredential(credential) {
3408
3419
  return (coreAuth.isSASCredential(credential) || coreAuth.isNamedKeyCredential(credential) || coreAuth.isTokenCredential(credential));
3409
3420
  }
3410
3421
 
3411
3422
  // Copyright (c) Microsoft Corporation.
3423
+ // Licensed under the MIT license.
3412
3424
  /**
3413
3425
  * The \@azure/logger configuration for this package.
3414
3426
  */
3415
3427
  const logger = logger$1.createClientLogger("data-tables");
3416
3428
 
3417
3429
  // Copyright (c) Microsoft Corporation.
3430
+ // Licensed under the MIT license.
3418
3431
  /**
3419
3432
  * @internal
3420
3433
  * Setups the challenge authentication policy for the provided token credential.
@@ -3432,6 +3445,7 @@ function setTokenChallengeAuthenticationPolicy(pipeline, credential, scopes) {
3432
3445
  }
3433
3446
 
3434
3447
  // Copyright (c) Microsoft Corporation.
3448
+ // Licensed under the MIT license.
3435
3449
  /**
3436
3450
  * The programmatic identifier of the tablesNamedKeyCredentialPolicy.
3437
3451
  */
@@ -3519,6 +3533,7 @@ function signURLWithSAS(request, credential) {
3519
3533
  }
3520
3534
 
3521
3535
  // Copyright (c) Microsoft Corporation.
3536
+ // Licensed under the MIT license.
3522
3537
  /**
3523
3538
  * A tracing client that can be used to manage spans.
3524
3539
  * @internal
@@ -3530,6 +3545,7 @@ const tracingClient = coreTracing.createTracingClient({
3530
3545
  });
3531
3546
 
3532
3547
  // Copyright (c) Microsoft Corporation.
3548
+ // Licensed under the MIT license.
3533
3549
  /**
3534
3550
  * A TableServiceClient represents a Client to the Azure Tables service allowing you
3535
3551
  * to perform operations on the tables and the entities.
@@ -3726,6 +3742,7 @@ class TableServiceClient {
3726
3742
  }
3727
3743
 
3728
3744
  // Copyright (c) Microsoft Corporation.
3745
+ // Licensed under the MIT license.
3729
3746
  /**
3730
3747
  * Builds a transaction change set boundary to be added to the transaction request body
3731
3748
  * @param changesetId - Id of the transaction changeset
@@ -3767,6 +3784,7 @@ function getTransactionHttpRequestBody(bodyParts, transactionId, changesetId) {
3767
3784
  }
3768
3785
 
3769
3786
  // Copyright (c) Microsoft Corporation.
3787
+ // Licensed under the MIT license.
3770
3788
  const transactionRequestAssemblePolicyName = "transactionRequestAssemblePolicy";
3771
3789
  const dummyResponse = {
3772
3790
  request: coreRestPipeline.createPipelineRequest({ url: "FAKE" }),
@@ -3857,6 +3875,7 @@ function getBaseTransactionHeaders(transactionGuid) {
3857
3875
  }
3858
3876
 
3859
3877
  // Copyright (c) Microsoft Corporation.
3878
+ // Licensed under the MIT license.
3860
3879
  /**
3861
3880
  * @internal
3862
3881
  * Builds an object with the required headers for a Transaction request. For Node
@@ -3885,6 +3904,7 @@ function isCosmosEndpoint(url) {
3885
3904
  }
3886
3905
 
3887
3906
  // Copyright (c) Microsoft Corporation.
3907
+ // Licensed under the MIT license.
3888
3908
  /**
3889
3909
  * Helper to build a list of transaction actions
3890
3910
  */
@@ -4158,6 +4178,7 @@ function base64Decode(value) {
4158
4178
  }
4159
4179
 
4160
4180
  // Copyright (c) Microsoft Corporation.
4181
+ // Licensed under the MIT license.
4161
4182
  /**
4162
4183
  * Encodes the nextPartitionKey and nextRowKey into a single continuation token
4163
4184
  */
@@ -4182,6 +4203,7 @@ function decodeContinuationToken(encodedToken) {
4182
4203
  }
4183
4204
 
4184
4205
  // Copyright (c) Microsoft Corporation.
4206
+ // Licensed under the MIT license.
4185
4207
  const propertyCaseMap = new Map([
4186
4208
  ["PartitionKey", "partitionKey"],
4187
4209
  ["RowKey", "rowKey"],
@@ -4393,6 +4415,7 @@ function serializeQueryOptions(query) {
4393
4415
  }
4394
4416
 
4395
4417
  // Copyright (c) Microsoft Corporation.
4418
+ // Licensed under the MIT license.
4396
4419
  // This is used as a workaround to be able to stub generateUuid
4397
4420
  // during testing.
4398
4421
  class Uuid {
@@ -4439,6 +4462,7 @@ function odata(strings, ...values) {
4439
4462
  }
4440
4463
 
4441
4464
  // Copyright (c) Microsoft Corporation.
4465
+ // Licensed under the MIT license.
4442
4466
  /**
4443
4467
  * A TableClient represents a Client to the Azure Tables service allowing you
4444
4468
  * to perform operations on a single table.