New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vivlab/api-database

Package Overview
Dependencies
Maintainers
3
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vivlab/api-database - npm Package Compare versions

Comparing version 1.0.80 to 1.0.81

1

dist/database/invoices/index.d.ts

@@ -103,4 +103,5 @@ import * as transform from "./transform";

}>;
export declare function retrieveSummary({ id, stripeAccount }: IdAccount): Promise<Invoice.Summary>;
export declare function updateInternal({ id, data, stripeAccount }: IdDataAccount<Pick<Invoice.Data, "internal">>): Promise<{
status: string;
}>;

@@ -25,3 +25,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.updateInternal = exports.retrieve = exports.create = exports.persist = exports.hashInvoiceItem = exports.hashInvoice = exports.transform = void 0;
exports.updateInternal = exports.retrieveSummary = exports.retrieve = exports.create = exports.persist = exports.hashInvoiceItem = exports.hashInvoice = exports.transform = void 0;
const redis_1 = __importDefault(require("../../libraries/redis"));

@@ -182,2 +182,21 @@ const transform = __importStar(require("./transform"));

exports.retrieve = retrieve;
async function retrieveSummary({ id, stripeAccount }) {
const invoice = await retrieve({ id, stripeAccount });
return {
order: invoice.order,
email: `${invoice.email.slice(0, 1)}••••${invoice.email.slice(invoice.email.indexOf("@"))}`,
shipping: {
delay: invoice.shipping?.delay || 0,
withdrawal: invoice.shipping?.withdrawal || false
},
created: invoice.created,
status: invoice.internal.status,
products: invoice.products.map(e => ({
name: e.name,
quantity: e.quantity,
attributes: e.attributes
}))
};
}
exports.retrieveSummary = retrieveSummary;
async function updateInternal({ id, data, stripeAccount }) {

@@ -184,0 +203,0 @@ const prefix = stripeAccount;

2

package.json
{
"name": "@vivlab/api-database",
"version": "1.0.80",
"version": "1.0.81",
"description": "",

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

Sorry, the diff of this file is not supported yet

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