meemup-library 1.3.76 → 1.3.78
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.
- package/dist/controllers/ApiController.d.ts +1 -0
- package/dist/controllers/ApiController.js +1 -1
- package/dist/interfaces/IAccount.d.ts +1 -1
- package/dist/interfaces/IAccount.js +1 -1
- package/dist/interfaces/kds/IKitchenDisplayAccount.d.ts +1 -0
- package/dist/interfaces/kds/IKitchenDisplayAccount.js +1 -1
- package/package.json +2 -2
|
@@ -7,6 +7,7 @@ export default class ApiController {
|
|
|
7
7
|
defaultHeader(authorization?: boolean): Promise<{
|
|
8
8
|
Authorization?: string | undefined;
|
|
9
9
|
companyId: string;
|
|
10
|
+
"client-agent": string;
|
|
10
11
|
}>;
|
|
11
12
|
fetchRequest(url: string, method: string, body?: any, headers?: object, authorization?: boolean, timeout?: number): Promise<IAnswer>;
|
|
12
13
|
fetchSuccess(response: any): IAnswer;
|
|
@@ -137,7 +137,7 @@ export default class ApiController {
|
|
|
137
137
|
}
|
|
138
138
|
defaultHeader() {
|
|
139
139
|
return __awaiter(this, arguments, void 0, function* (authorization = true) {
|
|
140
|
-
return Object.assign({ companyId: this.getCompanyId() }, (authorization ? { Authorization: "Bearer " + this.account.token } : {}));
|
|
140
|
+
return Object.assign({ companyId: this.getCompanyId(), "client-agent": this.account.clientAgent }, (authorization ? { Authorization: "Bearer " + this.account.token } : {}));
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
fetchRequest(url_1, method_1) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { initAccount } from "../IAccount";
|
|
2
|
-
export const initKitchenDisplayAccount = Object.assign(Object.assign({}, initAccount), { deviceIdentifier: "" });
|
|
2
|
+
export const initKitchenDisplayAccount = Object.assign(Object.assign({}, initAccount), { deviceIdentifier: "", clientAgent: "kds" });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.78",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"remove:one": "rimraf dist",
|
|
12
12
|
"remove:two": "rimraf ./src/dist",
|
|
13
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"commit": "git add . && git commit -m \"version.1.3.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.3.78 \" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|