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.52 to 1.0.53

dist/database/checkout/calculation.d.ts

4

dist/database/datasets/index.d.ts
import type { Dataset } from "@vivlab/types";
import type { Account, FieldsAccount, DataAccount } from "../../index";
export declare function get({ fields, stripeAccount }: FieldsAccount): Promise<Dataset.DatasetData | null>;
export declare function set({ data, stripeAccount }: DataAccount<Dataset.DatasetData>): Promise<Dataset.DatasetData | null>;
export declare function get({ fields, stripeAccount }: FieldsAccount): Promise<Dataset.DatasetData>;
export declare function set({ data, stripeAccount }: DataAccount<Dataset.DatasetData>): Promise<Dataset.DatasetData>;
export declare function flush({ stripeAccount }: Account): Promise<void>;

@@ -14,2 +14,2 @@ import type { FieldsAccount, DataAccount } from "../../index";

}>;
export declare function set({ data, stripeAccount }: DataAccount<Datasets>): Promise<Datasets | null>;
export declare function set({ data, stripeAccount }: DataAccount<Datasets>): Promise<Datasets>;

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

lastmod: true,
key: "invoice",
key: "inv",
table: "invoices",

@@ -73,3 +73,3 @@ schema: {

exports.hashInvoiceItem = redis_1.default.createStoreHash({
key: "invoicei",
key: "invl",
parents: [{ key: "invoice" }],

@@ -76,0 +76,0 @@ table: "invoiceitems",

import type { Metadata } from "@vivlab/types";
import type { FieldsAccount, DataAccount } from "../../index";
export declare function retrieve({ fields, stripeAccount }: FieldsAccount): Promise<Metadata.MetadataData | null>;
export declare function update({ data, stripeAccount }: DataAccount<Metadata.MetadataData>): Promise<Metadata.MetadataData | null>;
export declare function get({ fields, stripeAccount }: FieldsAccount): Promise<Metadata.MetadataData>;
export declare function set({ data, stripeAccount }: DataAccount<Metadata.MetadataData>): Promise<Metadata.MetadataData>;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.update = exports.retrieve = void 0;
exports.set = exports.get = void 0;
const redis_1 = __importDefault(require("../../libraries/redis"));

@@ -115,8 +115,8 @@ const cache = __importStar(require("../../libraries/cache"));

});
async function retrieve({ fields = [], stripeAccount }) {
async function get({ fields = [], stripeAccount }) {
const result = await metadata.get({ fields, prefix: stripeAccount });
return result;
}
exports.retrieve = retrieve;
async function update({ data, stripeAccount }) {
exports.get = get;
async function set({ data, stripeAccount }) {
const result = await metadata.set({ data, prefix: stripeAccount });

@@ -126,3 +126,3 @@ await clearCache(stripeAccount);

}
exports.update = update;
exports.set = set;
async function clearCache(stripeAccount) {

@@ -129,0 +129,0 @@ await cache.invalidate(`${stripeAccount}:assets:aggregation`);

@@ -13,3 +13,4 @@ export interface Account {

}
export declare function generateOrder(): string;
export declare function removeDiacritics(str: string): string;
export declare function normalizeEmail(email: string): string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeEmail = exports.removeDiacritics = void 0;
exports.normalizeEmail = exports.removeDiacritics = exports.generateOrder = void 0;
const nanoid_1 = require("nanoid");
const number = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
const alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz";
const id = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
const urable = "0123456789abcdefghijklmnopqrstuvwxyz";
function generateOrder() {
return `${(0, nanoid_1.customAlphabet)(number, 6)()}-${(0, nanoid_1.customAlphabet)(number, 8)()}`;
}
exports.generateOrder = generateOrder;
function removeDiacritics(str) {

@@ -5,0 +14,0 @@ return str

{
"name": "@vivlab/api-database",
"version": "1.0.52",
"version": "1.0.53",
"description": "",

@@ -40,2 +40,3 @@ "main": "./dist/index.js",

"fast-deep-equal": "^3.1.3",
"nanoid": "^3.1.30",
"sanitize-html": "^2.5.3",

@@ -42,0 +43,0 @@ "stripe": "^8.186.1"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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