Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
objection-find-query-builder
Advanced tools
Readme
Based on original work by AFM Sayem - https://github.com/afm-sayem/objection-find-query
Construct complex api query on the frontend, for endpoints implementing objection-find.
Usage:
const queryBuilder = require('objection-find-query-builder');
const builder = queryBuilder.builder();
const formattedParams = builder.greaterThan('field', 1).lessThan('field', 3).build();
const eagerUtils = require('objection-find-query-builder').eagerUtils;
const modifiedParamsRemoved = eagerUtils.removeFromEagerParam('[param1,param2,param3]', 'param2');
const modifiedParamsAppended = eagerUtils.appendToEagerParam('[param1]', 'param2');
/*
expected format:
{
op: {
column: value
}
}
sample input:
{
gt: {
released: 1953,
gross_income: 200000,
actors: {
age: 23
}
},
lt: {
released: 1984
},
in: {
ratings: [3, 4]
}
}
output:
{
'released:gt': 1953,
'gross_income:gt': 200000,
'actors.age:gt': 23,
'released:lt': 1984,
'ratings:in': 3,4
}
*/
const queryBuilder = require('objection-find-query-builder');
const formattedParams = queryBuilder.format(params);
Supported operations:
npm install objection-find-query-builder
FAQs
query paramter constructor for objection-find
The npm package objection-find-query-builder receives a total of 348 weekly downloads. As such, objection-find-query-builder popularity was classified as not popular.
We found that objection-find-query-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.