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

@baapcompany/core-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@baapcompany/core-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "@baapcompany/core-api",
"version": "1.0.1",
"version": "1.0.2",
"description": "To make it easy for you to get started with GitLab, here's a list of recommended next steps.",

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

@@ -129,2 +129,18 @@ const ServiceResponse = require("@baapcompany/core-api/services/serviceResponse");

async paginationResults(query, pagination) {
return this.execute(async () => {
return {
items: await this.model.find(
query,
{},
{
skip: pagination.pageSize * (pagination.pageNumber - 1),
limit: pagination.pageSize,
}
),
totalItemsCount: await this.model.countDocuments(query),
};
});
}
validateAndSanitizePaginationProps(pagination) {

@@ -131,0 +147,0 @@ if (!pagination.pageNumber) {

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