Skip to content

Commit

Permalink
update(version): increase the patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
dependentmadani committed Jul 17, 2024
1 parent f491ecd commit 3180915
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/image",
"version": "2.9.1",
"version": "2.9.2",
"keywords": [
"codex editor",
"image",
Expand Down
2 changes: 1 addition & 1 deletion src/types/codexteam__ajax.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ declare module '@codexteam/ajax' {
url?: string;
data?: any;
accept?: string;
headers?: Headers;
headers?: object;
beforeSend?: (files: File[]) => void;
fieldName?: string;
type?: string;
Expand Down
6 changes: 3 additions & 3 deletions src/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default class Uploader {
url: this.config.endpoints.byFile,
data: this.config.additionalRequestData,
accept: this.config.types || 'image/*',
headers: new Headers(this.config.additionalRequestHeaders as Record<string, string>),
headers: this.config.additionalRequestHeaders as Record<string, string>,
beforeSend: (files: File[]) => {
preparePreview(files[0]);
},
Expand Down Expand Up @@ -133,7 +133,7 @@ export default class Uploader {
url: url,
}, this.config.additionalRequestData),
type: ajax.contentType.JSON,
headers: new Headers(this.config.additionalRequestHeaders as Record<string, string>),
headers: this.config.additionalRequestHeaders as Record<string, string>,
}).then((response: any) => response.body);
}

Expand Down Expand Up @@ -193,7 +193,7 @@ export default class Uploader {
url: this.config.endpoints.byFile,
data: formData,
type: ajax.contentType.JSON,
headers: new Headers(this.config.additionalRequestHeaders as Record<string, string>),
headers: this.config.additionalRequestHeaders as Record<string, string>,
}).then((response: any) => response.body);
}

Expand Down

0 comments on commit 3180915

Please sign in to comment.