@azure/data-tables
Version:
An isomorphic client library for the Azure Tables service.
16 lines • 518 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const cosmosPatchPolicyName = "cosmosPatchPolicy";
export function cosmosPatchPolicy() {
return {
name: cosmosPatchPolicyName,
sendRequest: (request, next) => {
if (request.method === "PATCH") {
request.method = "POST";
request.headers.set("X-HTTP-Method", "MERGE");
}
return next(request);
},
};
}
//# sourceMappingURL=cosmosPathPolicy.js.map