
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
nestjs-methodset
Advanced tools
**MethodSet** is an abstract controller that when extended will provide: - All the required `GET`/`DELETE`/`POST`/`UPDATE` endpoints for the TypeORM repository. - List endpoint contains: pagination, order, search, filter options. - filter options contains
MethodSet is an abstract controller that when extended will provide:
GET/DELETE/POST/UPDATE endpoints for the TypeORM repository.=, gt, gte, lt, ltenestjs-methodSet is influenced by ViewSet in Django Rest Framework
npm i nestjs-methodset
in main.ts add following to the app:
import { ValidationPipe } from '@nestjs/common';
...
app.useGlobalPipes(new ValidationPipe({ transform: true }));
MethodSet in your controller and you done.
Make sure to have the repository in your controller dependencies!import { MethodSet } from 'nestjs-methodset';
@Controller({ path: 'article' })
export class ArticleController extends MethodSet<ArticleEntity> {
constructor(
@InjectRepository(ArticleEntity)
protected readonly repository: Repository<ArticleEntity>
) {
super();
}
}
/article/<id>/article/article/article/<id>/article/<id>the list endpoint contains different options as following:
?&page=1&pageSize=3?orderBy=timestamp&sortOrder=ASC?search=test
searchFields: SearchFields<ArticleEntity> = ['body', 'title'];
, ie: ?filter=price__lte=10,total=2,?filter[]=price__lte=10&filter[]=total=2<field>=<value>, equals, ie: ?filter=price=10<field>__gt=<value>, greater than, ie: filter=price__lte=10<field>__gte=<value> greater than or equal<field>__lt=<value> less than<field>__lte=<value> less than or equalFAQs
**MethodSet** is an abstract controller that when extended will provide: - All the required `GET`/`DELETE`/`POST`/`UPDATE` endpoints for the TypeORM repository. - List endpoint contains: pagination, order, search, filter options. - filter options contains
We found that nestjs-methodset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.