@qlibs/utils 1.1.3 → 1.2.0

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.
@@ -8,5 +8,5 @@ export declare function bytesToMB(sizeInBytes: number): number;
8
8
  export declare function isImage(file: File | Blob): any;
9
9
  export declare const getBase64: (file: File) => Promise<string>;
10
10
  export declare function fileListToBase64(fileList: any[]): Promise<string[]>;
11
- export declare function getFile(newFile: any): any;
11
+ export declare function getFile(newFile: File | any): any;
12
12
  export declare function isPhotoDataOK(item: any): boolean;
@@ -106,6 +106,7 @@ async function fileListToBase64(fileList) {
106
106
  return (await Promise.all(promises));
107
107
  }
108
108
  function getFile(newFile) {
109
+ console.info('getFile - newFile instanceof File', newFile instanceof File);
109
110
  if (isImage(newFile) && newFile.originFileObj) {
110
111
  console.info('getFile - return (newFile as any).originFileObj');
111
112
  return newFile.originFileObj;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qlibs/utils",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "author": "QBIT Developer",
6
6
  "license": "MIT",