vanilli-shop-client
Advanced tools
Comparing version 1.7.8 to 1.7.9
@@ -7,2 +7,3 @@ import RootApi from "./root-api"; | ||
createOrder(order: IOrderDto): Promise<AxiosResponse>; | ||
getJwt(request: any): Promise<AxiosResponse>; | ||
} |
@@ -72,4 +72,11 @@ "use strict"; | ||
}; | ||
OrderApi.prototype.getJwt = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.makePostCall("".concat(this.endpoint, "/jwt"), request)]; | ||
}); | ||
}); | ||
}; | ||
return OrderApi; | ||
}(root_api_1.default)); | ||
exports.default = OrderApi; |
@@ -6,3 +6,4 @@ import BaseStore from "./base-store"; | ||
resetOrder(): void; | ||
getJwt(request: any): Promise<string>; | ||
private initOrder; | ||
} |
@@ -128,2 +128,12 @@ "use strict"; | ||
}; | ||
OrderStore.prototype.getJwt = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.rootStore.orderStore.getJwt(request)]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
}); | ||
}); | ||
}; | ||
OrderStore.prototype.initOrder = function (order) { | ||
@@ -130,0 +140,0 @@ var _a, _b, _c, _d; |
{ | ||
"name": "vanilli-shop-client", | ||
"version": "1.7.8", | ||
"version": "1.7.9", | ||
"description": "Client for Vanilli Shop API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -11,2 +11,6 @@ import RootApi from "./root-api"; | ||
} | ||
async getJwt(request: any): Promise<AxiosResponse> { | ||
return this.makePostCall(`${this.endpoint}/jwt`, request); | ||
} | ||
} |
@@ -64,2 +64,6 @@ import BaseStore from "./base-store"; | ||
async getJwt(request: any): Promise<string> { | ||
return await this.rootStore.orderStore.getJwt(request); | ||
} | ||
private initOrder(order: IOrderDto): IOrderDto { | ||
@@ -66,0 +70,0 @@ const rootStore = this.rootStore; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
281480
6288