UNPKG

@azure/storage-blob

Version:

Microsoft Azure Storage SDK for JavaScript - Blob

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