17 lines
664 B
JavaScript
17 lines
664 B
JavaScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
import { StorageClient } from "./generated/src/index.js";
|
|
/**
|
|
* @internal
|
|
*/
|
|
export class StorageContextClient extends StorageClient {
|
|
async sendOperationRequest(operationArguments, operationSpec) {
|
|
const operationSpecToSend = { ...operationSpec };
|
|
if (operationSpecToSend.path === "/{containerName}" ||
|
|
operationSpecToSend.path === "/{containerName}/{blob}") {
|
|
operationSpecToSend.path = "";
|
|
}
|
|
return super.sendOperationRequest(operationArguments, operationSpecToSend);
|
|
}
|
|
}
|
|
//# sourceMappingURL=StorageContextClient.js.map
|