@azure/data-tables 13.1.2-alpha.20220524.1 → 13.1.3-alpha.20220725.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 +6 -5
- package/dist/index.js.map +1 -1
- package/dist-esm/src/TableClient.js +2 -2
- package/dist-esm/src/TableClient.js.map +1 -1
- package/dist-esm/src/TableTransaction.js +3 -2
- package/dist-esm/src/TableTransaction.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +1 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/utils/tracing.js +1 -1
- package/dist-esm/src/utils/tracing.js.map +1 -1
- package/package.json +1 -1
- package/types/3.1/data-tables.d.ts +7 -1
- package/types/latest/data-tables.d.ts +3 -2
package/dist/index.js
CHANGED
|
@@ -3502,7 +3502,7 @@ function signURLWithSAS(request, credential) {
|
|
|
3502
3502
|
const tracingClient = coreTracing.createTracingClient({
|
|
3503
3503
|
namespace: "Microsoft.Data.Tables",
|
|
3504
3504
|
packageName: "@azure/data-tables",
|
|
3505
|
-
packageVersion: "13.1.
|
|
3505
|
+
packageVersion: "13.1.3",
|
|
3506
3506
|
});
|
|
3507
3507
|
|
|
3508
3508
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -3885,9 +3885,10 @@ class TableTransaction {
|
|
|
3885
3885
|
* Adds an update action to the transaction
|
|
3886
3886
|
* @param entity - entity to update
|
|
3887
3887
|
* @param updateMode - update mode
|
|
3888
|
+
* @param options - options for the update operation
|
|
3888
3889
|
*/
|
|
3889
|
-
updateEntity(entity, updateMode = "Merge") {
|
|
3890
|
-
this.actions.push(["update", entity, updateMode]);
|
|
3890
|
+
updateEntity(entity, updateMode = "Merge", updateOptions) {
|
|
3891
|
+
this.actions.push(["update", entity, updateMode, updateOptions]);
|
|
3891
3892
|
}
|
|
3892
3893
|
/**
|
|
3893
3894
|
* Adds an upsert action to the transaction, which inserts if the entity doesn't exist or updates the existing one
|
|
@@ -4926,7 +4927,7 @@ class TableClient {
|
|
|
4926
4927
|
this.transactionClient.reset(transactionId, changesetId, partitionKey);
|
|
4927
4928
|
}
|
|
4928
4929
|
for (const item of actions) {
|
|
4929
|
-
const [action, entity, updateMode = "Merge"] = item;
|
|
4930
|
+
const [action, entity, updateMode = "Merge", updateOptions] = item;
|
|
4930
4931
|
switch (action) {
|
|
4931
4932
|
case "create":
|
|
4932
4933
|
this.transactionClient.createEntity(entity);
|
|
@@ -4935,7 +4936,7 @@ class TableClient {
|
|
|
4935
4936
|
this.transactionClient.deleteEntity(entity.partitionKey, entity.rowKey);
|
|
4936
4937
|
break;
|
|
4937
4938
|
case "update":
|
|
4938
|
-
this.transactionClient.updateEntity(entity, updateMode);
|
|
4939
|
+
this.transactionClient.updateEntity(entity, updateMode, updateOptions);
|
|
4939
4940
|
break;
|
|
4940
4941
|
case "upsert":
|
|
4941
4942
|
this.transactionClient.upsertEntity(entity, updateMode);
|