UNPKG

@azure/storage-blob

Version:
17 lines 664 B
// 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