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

@foxiko/client

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foxiko/client - npm Package Compare versions

Comparing version 1.0.35 to 1.0.36

16

finance/controllers/InvoiceController.js

@@ -44,2 +44,18 @@ const {Invoice, InvoiceItem} = require("../entities/Invoice");

async all(id) {
const data = await this.client.request()
.url(FINANCE.INVOICE.ALL)
.header("x-finance-account-id", this.#accountId)
.responseType().json()
.send();
if(data['error']) {
throw data;
}
return data.map(e => {
let invoice = new Invoice(e);
invoice._handler(this);
return invoice;
});
}
async create(invoice) {

@@ -46,0 +62,0 @@ if(!(invoice instanceof Invoice)) {

1

Networking.js

@@ -13,2 +13,3 @@ const schema = process.env['LOCAL'] === "true" ? "http" : "https";

GET: (id) => `${schema}://${domain}/${version}/finance/invoice/${id}/get`,
ALL: `${schema}://${domain}/${version}/finance/invoice/all`,
GET_PDF: invoice_id => `${schema}://${domain}/${version}/finance/invoice/${invoice_id}/pdf`,

@@ -15,0 +16,0 @@ CREATE: `${schema}://${domain}/${version}/finance/invoice/create`,

2

package.json
{
"name": "@foxiko/client",
"version": "1.0.35",
"version": "1.0.36",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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