Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 1x 1x 1x 1x 1x 1x 11x 11x 11x 11x 1x 1x | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _upload = _interopRequireDefault(require("./upload"));
var _constants = require("../constants");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var uploadFactory = function uploadFactory() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return function (imageId, file, mime) {
var serverUrl = options.serverUrl || _constants.DEFAULT_API_URL;
return (0, _upload["default"])(serverUrl, options.apiKey, imageId, file, {
fileType: options.fileType,
mime: mime,
autoId: options.autoId
});
};
};
var _default = uploadFactory;
exports["default"] = _default; |