UNPKG

js-uploader

Version:
22 lines 589 B
"use strict"; 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