sirius-common-utils 1.0.18 → 1.0.19

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.
@@ -359,8 +359,8 @@ function downloadImageData(url, data, headers, options = {}) {
359
359
  headers,
360
360
  responseType: "blob"
361
361
  });
362
- let imageData = response.blob();
363
- if (imageData == null) {
362
+ let imageData = response.data;
363
+ if (imageData != null) {
364
364
  if (response.data.errorCode && response.data.errorCode !== RESULT.SUCCESS) {
365
365
  let errorResult = await handlerError(url, data, response);
366
366
  resolve(null);
@@ -360,8 +360,8 @@
360
360
  headers,
361
361
  responseType: "blob"
362
362
  });
363
- let imageData = response.blob();
364
- if (imageData == null) {
363
+ let imageData = response.data;
364
+ if (imageData != null) {
365
365
  if (response.data.errorCode && response.data.errorCode !== RESULT.SUCCESS) {
366
366
  let errorResult = await handlerError(url, data, response);
367
367
  resolve(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sirius-common-utils",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "",
5
5
  "main": "./dist/sirius-common-utils.umd.cjs",
6
6
  "module": "./dist/sirius-common-utils.js",