@v1nt1248/3nclient-lib 0.2.17 → 0.2.18

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.
@@ -0,0 +1 @@
1
+ export declare function fileToUint8Array(file: File): Promise<Uint8Array | undefined | null>;
@@ -1 +1,4 @@
1
- export declare function isFileImage(type: string, fullName?: string): boolean;
1
+ export declare function isFileImage({ type, fullName }: {
2
+ type?: string;
3
+ fullName?: string;
4
+ }): boolean;
@@ -1 +1,4 @@
1
- export declare function isFileVideo(type: string, fullName?: string): boolean;
1
+ export declare function isFileVideo({ type, fullName }: {
2
+ type?: string;
3
+ fullName?: string;
4
+ }): boolean;
@@ -0,0 +1 @@
1
+ export declare const mimeTypes: Record<string, string>;
@@ -1,2 +1,3 @@
1
1
  export declare function getDeliveryErrors(progress: web3n.asmail.DeliveryProgress): Record<string, string>;
2
2
  export declare function transformFileToWeb3NFile(file: File): Promise<web3n.files.File | undefined>;
3
+ export declare function transformWeb3nFileToFile(file: web3n.files.File): Promise<File | null>;
@@ -22,6 +22,8 @@ export * from './files/blob-to-b64';
22
22
  export * from './files/b64-to-blob';
23
23
  export * from './files/uint8-to-b64';
24
24
  export * from './files/resize-image';
25
+ export * from './files/file-to-uint8array';
25
26
  export * from './files/create-video-thumbnail';
27
+ export * from './files/mime-types';
26
28
  export { SQLiteOn3NStorage } from './sqlite-on-3nstorage';
27
29
  export type { BindParams, Database, QueryExecResult } from './sqlite-on-3nstorage';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.2.17",
5
+ "version": "0.2.18",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [