Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@figuredev/business-config-sdk

Package Overview
Dependencies
Maintainers
3
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/business-config-sdk - npm Package Compare versions

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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc