bruce-models 5.6.7 → 5.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bruce-models.es5.js +8 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +8 -2
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/abstract-api.js +61 -0
- package/dist/lib/api/abstract-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/internal/uploader.js +7 -1
- package/dist/lib/internal/uploader.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -8223,7 +8223,7 @@
|
|
|
8223
8223
|
if (!api) {
|
|
8224
8224
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8225
8225
|
}
|
|
8226
|
-
const FILE_PORTION_SIZE =
|
|
8226
|
+
const FILE_PORTION_SIZE = 50000000; // 50MB.
|
|
8227
8227
|
let fileSize = file.size;
|
|
8228
8228
|
let fileOffset = 0;
|
|
8229
8229
|
let filePartsCount = fileSize / FILE_PORTION_SIZE;
|
|
@@ -8270,6 +8270,12 @@
|
|
|
8270
8270
|
}
|
|
8271
8271
|
fileOffset += partSize;
|
|
8272
8272
|
filePartIndex++;
|
|
8273
|
+
// Call onProgress since we completed a portion.
|
|
8274
|
+
// This helps us know progress even when the request callback isn't working properly.
|
|
8275
|
+
onProgress === null || onProgress === void 0 ? void 0 : onProgress({
|
|
8276
|
+
percent: Math.round((fileOffset / fileSize) * 100),
|
|
8277
|
+
uploaded: false
|
|
8278
|
+
});
|
|
8273
8279
|
}
|
|
8274
8280
|
onProgress === null || onProgress === void 0 ? void 0 : onProgress({
|
|
8275
8281
|
percent: 100,
|
|
@@ -14902,7 +14908,7 @@
|
|
|
14902
14908
|
})(exports.Scenario || (exports.Scenario = {}));
|
|
14903
14909
|
|
|
14904
14910
|
// This is updated with the package.json version on build.
|
|
14905
|
-
const VERSION = "5.6.
|
|
14911
|
+
const VERSION = "5.6.9";
|
|
14906
14912
|
|
|
14907
14913
|
exports.VERSION = VERSION;
|
|
14908
14914
|
exports.AbstractApi = AbstractApi;
|