Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shevernitskiy committed Aug 25, 2023
1 parent 2bb2da4 commit 7be9485
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/amo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class Amo extends EventEmitter<WebhookEventMap> {
get token(): OAuth | undefined {
return this.rest.token;
}

/** Кастомные запорсы к апи */
get raw(): RestClient {
return this.rest;
Expand Down
2 changes: 1 addition & 1 deletion src/core/rest-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class RestClient {
const res = await this.queue.push(fetch, target, {
method: method,
headers: {
Authorization: `${this._token?.token_type} ${this._token?.access_token}`,
"Authorization": `${this._token?.token_type} ${this._token?.access_token}`,
"Content-Type": "application/json",
...init.headers,
},
Expand Down
2 changes: 1 addition & 1 deletion src/typings/lib.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { OAuth } from "./auth.ts";
import { JSONValue } from './utility.ts';
import { JSONValue } from "./utility.ts";

export type Options = {
request_delay?: number;
Expand Down

0 comments on commit 7be9485

Please sign in to comment.