util-helpers 4.20.3 → 4.20.4
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/util-helpers.js +10 -5
- package/dist/util-helpers.js.map +1 -1
- package/dist/util-helpers.min.js +1 -1
- package/dist/util-helpers.min.js.map +1 -1
- package/esm/VERSION.js +1 -1
- package/esm/index.js +1 -1
- package/esm/loadImageWithBlob.js +8 -3
- package/lib/VERSION.js +1 -1
- package/lib/index.js +1 -1
- package/lib/loadImageWithBlob.js +8 -3
- package/package.json +1 -1
package/dist/util-helpers.js
CHANGED
|
@@ -1377,17 +1377,22 @@
|
|
|
1377
1377
|
resolve(img);
|
|
1378
1378
|
}
|
|
1379
1379
|
else {
|
|
1380
|
-
ajax(img, __assign({ responseType: 'blob'
|
|
1380
|
+
ajax(img, __assign({ responseType: 'blob' }, ajaxOptions))
|
|
1381
1381
|
.then(function (ev) {
|
|
1382
1382
|
var responseStatus = ev.target.status;
|
|
1383
1383
|
if (SuccessResponseStatus.indexOf(responseStatus) !== -1) {
|
|
1384
1384
|
resolve(ev.target.response);
|
|
1385
1385
|
}
|
|
1386
1386
|
else {
|
|
1387
|
-
|
|
1387
|
+
var err = new Error("[loadImageWithBlob] The image does not support get requests, responseStatus ".concat(responseStatus, ", '").concat(img, "'."));
|
|
1388
|
+
console.error(err);
|
|
1389
|
+
reject(err);
|
|
1388
1390
|
}
|
|
1389
1391
|
})
|
|
1390
|
-
.catch(
|
|
1392
|
+
.catch(function (err) {
|
|
1393
|
+
console.error(new Error("[loadImageWithBlob] Failed to request image. ".concat(err)));
|
|
1394
|
+
reject(err);
|
|
1395
|
+
});
|
|
1391
1396
|
}
|
|
1392
1397
|
});
|
|
1393
1398
|
}
|
|
@@ -1971,9 +1976,9 @@
|
|
|
1971
1976
|
return internalFindTreeSelect(tree, predicate, childrenField);
|
|
1972
1977
|
}
|
|
1973
1978
|
|
|
1974
|
-
var VERSION = "4.20.
|
|
1979
|
+
var VERSION = "4.20.4";
|
|
1975
1980
|
|
|
1976
|
-
var version = "4.20.
|
|
1981
|
+
var version = "4.20.4";
|
|
1977
1982
|
|
|
1978
1983
|
exports.VERSION = VERSION;
|
|
1979
1984
|
exports.ajax = ajax;
|