@micromerce/media-fileuploader 1.0.2242 → 1.0.2245

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.
@@ -6,7 +6,7 @@ export type endpoint = {
6
6
  export type headers = {
7
7
  [key: string]: string;
8
8
  };
9
- export type authorizationHeader = (url: string, method: string) => string;
9
+ export type authorizationHeader = (url: string, method: string) => string | Promise<string>;
10
10
  export type previewUrl = (url: string) => Promise<string>;
11
11
  export type onUploadSuccess = (value: string) => void;
12
12
  export type onError = (errorMessage: string) => void;
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ type endpoint = {
9
9
  type headers = {
10
10
  [key: string]: string;
11
11
  };
12
- type authorizationHeader = (url: string, method: string) => string;
12
+ type authorizationHeader = (url: string, method: string) => string | Promise<string>;
13
13
  type previewUrl = (url: string) => Promise<string>;
14
14
  type onUploadSuccess = (value: string) => void;
15
15
  type onError = (errorMessage: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromerce/media-fileuploader",
3
- "version": "1.0.2242",
3
+ "version": "1.0.2245",
4
4
  "homepage": "https://www.micromerce.com",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",