UNPKG

@itwin/object-storage-minio

Version:
23 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MinioFrontendStorage = void 0; /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ const internal_1 = require("@itwin/object-storage-core/lib/common/internal"); const frontend_1 = require("@itwin/object-storage-s3/lib/frontend"); const internal_2 = require("./internal"); class MinioFrontendStorage extends frontend_1.S3FrontendStorage { constructor(clientWrapperFactory) { super(clientWrapperFactory); } async upload(input) { if ((0, internal_1.instanceOfUrlTransferInput)(input)) return (0, internal_2.handleMinioUrlUploadFrontend)(input); else return super.upload(input); } } exports.MinioFrontendStorage = MinioFrontendStorage; //# sourceMappingURL=MinioFrontendStorage.js.map