{"size": 470, "ext": "js", "max_stars_repo_path": "packages/media/media-client/dist/cjs/utils/getMediaTypeFromUploadableFile.js", "max_stars_repo_name": "rholang/archive-old", "max_stars_repo_stars_event_min_datetime": "2020-04-24T13:28:17.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-24T13:28:17.000Z", "max_issues_repo_path": "packages/media/media-client/dist/cjs/utils/getMediaTypeFromUploadableFile.js", "max_issues_repo_name": "rholang/archive-old", "max_issues_repo_issues_event_min_datetime": "2022-03-02T07:06:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T07:06:35.000Z", "max_forks_repo_path": "packages/media/media-client/dist/cjs/utils/getMediaTypeFromUploadableFile.js", "max_forks_repo_name": "rholang/archive-old", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 36.1538461538, "max_line_length": 73, "alphanum_fraction": 0.7255319149}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var getMediaTypeFromMimeType_1 = require("./getMediaTypeFromMimeType");
exports.getMediaTypeFromUploadableFile = function (file) {
    if (file.content instanceof Blob) {
        var type = file.content.type;
        return getMediaTypeFromMimeType_1.getMediaTypeFromMimeType(type);
    }
    else {
        return 'unknown';
    }
};
//# sourceMappingURL=getMediaTypeFromUploadableFile.js.map