@lumir-company/admin-server-api
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -5,3 +5,5 @@ import { Response } from './types'; | ||
private baseUrl; | ||
private token?; | ||
constructor(baseUrl: string); | ||
setToken(token: string): void; | ||
private getHeaders; | ||
@@ -8,0 +10,0 @@ /** |
@@ -17,2 +17,5 @@ "use strict"; | ||
} | ||
setToken(token) { | ||
this.token = token; | ||
} | ||
getHeaders() { | ||
@@ -22,2 +25,5 @@ const headers = { | ||
}; | ||
if (this.token) { | ||
headers['Authorization'] = `Bearer ${this.token}`; | ||
} | ||
return headers; | ||
@@ -24,0 +30,0 @@ } |
@@ -53,2 +53,3 @@ export interface IFileInfo { | ||
stayDuration?: number; | ||
url: string; | ||
} | ||
@@ -55,0 +56,0 @@ export interface UpdatePageViewDto { |
{ | ||
"name": "@lumir-company/admin-server-api", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -0,0 +0,0 @@ # @lumir-company/admin-server-api |
22014
513