@figuredev/business-config-sdk
Advanced tools
Comparing version 0.3.0 to 0.4.0
24
index.ts
@@ -14,14 +14,16 @@ import axios from "axios" | ||
async getPrinters(ctx: UserContext): Promise<PrinterDTO[]> { | ||
return await axios.request({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: "/printer", | ||
headers: { | ||
"fgr-service-token": this.config.secret, | ||
...(ctx.accountId ? { "twbrds-account-id": ctx.accountId } : null), | ||
...(ctx.locationId ? { "twbrds-location-id": ctx.locationId } : null), | ||
...(ctx.terminalId ? { "twbrds-terminal-id": ctx.terminalId } : null), | ||
}, | ||
}) | ||
return await axios | ||
.request({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: "/printer", | ||
headers: { | ||
"fgr-service-token": this.config.secret, | ||
...(ctx.accountId ? { "twbrds-account-id": ctx.accountId } : null), | ||
...(ctx.locationId ? { "twbrds-location-id": ctx.locationId } : null), | ||
...(ctx.terminalId ? { "twbrds-terminal-id": ctx.terminalId } : null), | ||
}, | ||
}) | ||
.then((r) => r.data) | ||
} | ||
} |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
1288
32