js-uploader
Version:
A JavaScript library for file upload
22 lines • 589 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.chunkFactory = void 0;
var interface_1 = require("../../interface");
exports.chunkFactory = function (id, index, start, end, size) {
var chunk = {
id: id,
start: start,
end: end,
index: index,
data: null,
hash: '',
uploaded: 0,
size: size || end - start,
progress: 0,
status: interface_1.StatusCode.Pause,
response: {},
extraInfo: {},
};
return chunk;
};
//# sourceMappingURL=chunk-factory.js.map