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.76 to 1.0.77

15

finance/controllers/InvoiceController.js

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

async finalize(invoice) {
const data = await this.client.request()
.url(FINANCE.INVOICE.FINALIZE(invoice.id))
.contentType().json()
.header("x-finance-account-id", this.#accountId)
.responseType().json()
.send();
if(data['error']) {
throw data;
}
let result = new Invoice(data);
result._handler(this);
return result;
}
async reset(invoice) {

@@ -162,0 +177,0 @@ const data = await this.client.request()

4

finance/entities/Invoice.js

@@ -84,2 +84,6 @@ const {Product} = require("./Product");

async finalize() {
return await this.#handler.finalize(this);
}
async createItem(item) {

@@ -86,0 +90,0 @@ let result = await this.#handler.createItem(this, item);

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

EDIT: (id) => `${schema}://${domain}/${version}/finance/invoice/${id}/edit`,
FINALIZE: (id) => `${schema}://${domain}/${version}/finance/invoice/${id}/finalize`,
ALL: `${schema}://${domain}/${version}/finance/invoice/all`,

@@ -23,0 +24,0 @@ GET_PDF: invoice_id => `${schema}://${domain}/${version}/finance/invoice/${invoice_id}/pdf`,

2

package.json
{
"name": "@foxiko/client",
"version": "1.0.76",
"version": "1.0.77",
"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