
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@http-query/core
Advanced tools
This project contain the http query pattern to filter data in backend by url.
This project contain the http query pattern to filter data in backend by url.
Features:
Features:
Support:
NPM:
npm install @http-query/core
yarn:
yarn add @http-query/core
Now implement the bind and getAlias code in your repository.
private bind({ query, relations }: IFind) {
const order = {};
query.sort.forEach((item) => {
order[item.property] = item.order;
});
const rules = {
AND: (qb: SelectQueryBuilder<Entity>, whereQuery: string) => {
qb.andWhere(whereQuery);
},
OR: (qb: SelectQueryBuilder<Entity>, whereQuery: string) => {
qb.orWhere(whereQuery);
},
};
const where = (qb: SelectQueryBuilder<Entity>) => {
query.q.forEach((item) => {
const parsedEntity = this.getAlias(item.entity);
const property = `${parsedEntity}.${item.property}`;
const operator = operators[item.operator];
const value =
item.operator === 'LIKE' ? `'%${item.value}%'` : `'${item.value}'`;
rules[item.rule](qb, `${property} ${operator} ${value}`);
});
};
return {
relations,
take: query.limit,
skip: (query.page - 1) * query.limit,
order,
where,
};
}
private getAlias(entity: string): string {
const { targetName } = this.orm.metadata;
const parsedEntity = entity.replace(/\w{1}/, (match) =>
match.toUpperCase(),
);
if (parsedEntity === targetName) return parsedEntity;
return `${targetName}__${entity}`;
}
FAQs
This project contain the http query pattern to filter data in backend by url.
We found that @http-query/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.