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.35 to 1.0.36

2

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

@@ -8,3 +8,3 @@ import * as hashItem from "./items";

}>;
export declare function retrieve({ id, prefix }: IdPrefix): Promise<{
export declare function retrieve({ id, activeOnly, prefix }: IdPrefix): Promise<{
elements: {

@@ -11,0 +11,0 @@ items: import("./items/transform").ApiPageItemData[];

@@ -36,7 +36,7 @@ "use strict";

exports.count = count;
async function retrieve({ id, prefix }) {
async function retrieve({ id, activeOnly, prefix }) {
const [page, elements, items] = await Promise.all([
hashPage.retrieve({ id, prefix }),
hashElement.listByParentId({ parentId: id, prefix }),
hashItem.listByParentId({ parentId: id, prefix })
hashElement.listByParentId({ parentId: id, activeOnly, prefix }),
hashItem.listByParentId({ parentId: id, activeOnly, prefix })
]);

@@ -43,0 +43,0 @@ const itemsFlat = items.flat();

export * as coupons from "./database/coupons";
export * as pages from "./database/pages";
export * as products from "./database/products";
export { default as products } from "./database/products";
export * as shippings from "./database/shippings";

@@ -5,0 +5,0 @@ export { default as redis } from "./libraries/redis";

@@ -28,3 +28,4 @@ "use strict";

exports.pages = __importStar(require("./database/pages"));
exports.products = __importStar(require("./database/products"));
var products_1 = require("./database/products");
Object.defineProperty(exports, "products", { enumerable: true, get: function () { return __importDefault(products_1).default; } });
exports.shippings = __importStar(require("./database/shippings"));

@@ -31,0 +32,0 @@ var redis_1 = require("./libraries/redis");

{
"name": "@vivlab/api-database",
"version": "1.0.35",
"version": "1.0.36",
"description": "",

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

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

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