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

lucis-api-query

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucis-api-query - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

9

index.js

@@ -199,3 +199,3 @@ const jsonpatch = require('fast-json-patch');

// Por algum motivo isso funcionou algum dia, mesmo ele transformando em array...
// TODO: Melhorar a busca paralele
// TODO: Melhorar a busca paralela
const docs = data[0];

@@ -232,6 +232,9 @@ const total = data[1];

const parsedParams = getSearchParams(req.query);
this.paginate(parsedParams, lucisApiData, (data)=>{
this.paginate(parsedParams, lucisApiData, (err, data)=>{
if (callback){
return callback(req, res, data);
return callback(req, res, err, data);
}
if (err){
return res.status(500).json({msg: 'Something went wrong!'});
}
return res.json(data);

@@ -238,0 +241,0 @@ });

{
"name": "lucis-api-query",
"version": "0.6.1",
"version": "0.6.2",
"description": "Adaptação do mongoose-api-query para necessidades mais comuns",

@@ -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