oolib 2.129.8 → 2.129.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.
|
@@ -77,7 +77,7 @@ var ImageInputContextProvider = function (_a) {
|
|
|
77
77
|
return;
|
|
78
78
|
publicUrlToReplace
|
|
79
79
|
? setPublicUrlBeingReplaced(publicUrlToReplace)
|
|
80
|
-
: setNoOfImagesUploading(files.length);
|
|
80
|
+
: setNoOfImagesUploading((files === null || files === void 0 ? void 0 : files.length) || 0);
|
|
81
81
|
upload(files, {
|
|
82
82
|
onSuccess: function (data) {
|
|
83
83
|
//extract out all the successful uploads' fileData
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeArrayFromLength = void 0;
|
|
4
|
-
var makeArrayFromLength = function (len) {
|
|
4
|
+
var makeArrayFromLength = function (len) {
|
|
5
|
+
if (typeof len !== 'number' || len < 0 || !Number.isInteger(len)) {
|
|
6
|
+
throw new RangeError('Invalid array length');
|
|
7
|
+
}
|
|
8
|
+
return Array.from(Array(len).keys());
|
|
9
|
+
};
|
|
5
10
|
exports.makeArrayFromLength = makeArrayFromLength;
|