@azure/data-tables 13.2.2-alpha.20230321.1 → 13.2.2-alpha.20230323.2
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 +25 -1
- package/dist/index.js.map +1 -1
- package/dist-esm/src/sas/sasQueryParameters.js +21 -1
- package/dist-esm/src/sas/sasQueryParameters.js.map +1 -1
- package/dist-esm/src/sas/tableSasSignatureValues.js +4 -0
- package/dist-esm/src/sas/tableSasSignatureValues.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -247,6 +247,10 @@ class SasQueryParameters {
|
|
|
247
247
|
this.ipRangeInner = options.ipRange;
|
|
248
248
|
this.identifier = options.identifier;
|
|
249
249
|
this.tableName = options.tableName;
|
|
250
|
+
this.endPartitionKey = options.endPartitionKey;
|
|
251
|
+
this.endRowKey = options.endRowKey;
|
|
252
|
+
this.startPartitionKey = options.startPartitionKey;
|
|
253
|
+
this.startRowKey = options.startRowKey;
|
|
250
254
|
if (options.userDelegationKey) {
|
|
251
255
|
this.signedOid = options.userDelegationKey.signedObjectId;
|
|
252
256
|
this.signedTenantId = options.userDelegationKey.signedTenantId;
|
|
@@ -302,7 +306,11 @@ class SasQueryParameters {
|
|
|
302
306
|
"rsct",
|
|
303
307
|
"saoid",
|
|
304
308
|
"scid",
|
|
305
|
-
"tn",
|
|
309
|
+
"tn",
|
|
310
|
+
"srk",
|
|
311
|
+
"spk",
|
|
312
|
+
"epk",
|
|
313
|
+
"erk", // EndRowKey
|
|
306
314
|
];
|
|
307
315
|
const queries = [];
|
|
308
316
|
for (const param of params) {
|
|
@@ -364,6 +372,18 @@ class SasQueryParameters {
|
|
|
364
372
|
case "tn":
|
|
365
373
|
this.tryAppendQueryParameter(queries, param, this.tableName);
|
|
366
374
|
break;
|
|
375
|
+
case "spk":
|
|
376
|
+
this.tryAppendQueryParameter(queries, param, this.startPartitionKey);
|
|
377
|
+
break;
|
|
378
|
+
case "srk":
|
|
379
|
+
this.tryAppendQueryParameter(queries, param, this.startRowKey);
|
|
380
|
+
break;
|
|
381
|
+
case "epk":
|
|
382
|
+
this.tryAppendQueryParameter(queries, param, this.endPartitionKey);
|
|
383
|
+
break;
|
|
384
|
+
case "erk":
|
|
385
|
+
this.tryAppendQueryParameter(queries, param, this.endRowKey);
|
|
386
|
+
break;
|
|
367
387
|
}
|
|
368
388
|
}
|
|
369
389
|
return queries.join("&");
|
|
@@ -721,6 +741,10 @@ function generateTableSasQueryParameters(tableName, credential, tableSasSignatur
|
|
|
721
741
|
ipRange: tableSasSignatureValues.ipRange,
|
|
722
742
|
identifier: tableSasSignatureValues.identifier,
|
|
723
743
|
tableName,
|
|
744
|
+
startPartitionKey: tableSasSignatureValues.startPartitionKey,
|
|
745
|
+
startRowKey: tableSasSignatureValues.startRowKey,
|
|
746
|
+
endPartitionKey: tableSasSignatureValues.endPartitionKey,
|
|
747
|
+
endRowKey: tableSasSignatureValues.endRowKey,
|
|
724
748
|
});
|
|
725
749
|
}
|
|
726
750
|
function getCanonicalName(accountName, tableName) {
|