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

@figuredev/orders-sdk

Package Overview
Dependencies
Maintainers
2
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/orders-sdk - npm Package Compare versions

Comparing version 0.0.3 to 0.0.5

utils.ts

13

index.ts
import axios from "axios"
import { OrderInputDTO } from "./dto"
import { UserContext } from "./utils"

@@ -9,8 +10,2 @@ type OrdersClientConfig = {

type UserContext = {
accountId: string
locationId: string
terminalId: string
}
export class OrdersClient {

@@ -26,5 +21,5 @@ constructor(private config: OrdersClientConfig) {}

"fgr-service-token": this.config.secret,
"twbrds-account-id": ctx.accountId,
"twbrds-location-id": ctx.locationId,
"twbrds-terminal-id": ctx.terminalId,
...(ctx.accountId ? { "twbrds-account-id": ctx.accountId } : null),
...(ctx.locationId ? { "twbrds-location-id": ctx.locationId } : null),
...(ctx.terminalId ? { "twbrds-terminal-id": ctx.terminalId } : null),
},

@@ -31,0 +26,0 @@ data: { order: order },

{
"name": "@figuredev/orders-sdk",
"version": "0.0.3",
"version": "0.0.5",
"license": "ISC",
"scripts": {
"pub": "yarn version --patch && npm publish"
"pub": "yarn version --patch && yarn publish"
},

@@ -8,0 +8,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