Dependency Outdated Check and Subscribe
You can check outdated dependency your github project.
AVAILABLE DEPENDENCY REPOSITORY
$ yarn install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
POST /dependency-check/
class RequestDTO {
mails?: string[];
url: string;
subscribe: boolean;
}
class ResponseDTO {
subscribeId: string|null;
outdatedDependecyList: {
type: string;
packageName: string;
currentVersion: string;
latestVersion: string;
}
}
EXAMPLE
curl --location --request POST 'localhost:3000/dependency-check' \
--header 'Content-Type: application/json' \
--data-raw '{
"url":"https://github.com/nestjs/nest",
"mails":["[email protected]"],
"subscribe":true
}'
RESPONSE
{
"outdatedDependecyList":[
{
"type":"npm",
"packageName":"path-to-regexp",
"latestVersion":"6.2.0",
"currentVersion":"3.2.0"
}
],
"subscribeId":"227293034"
}
POST /dependency-check/unsubscribe
class RequestDTO {
subscribeId: string;
}
class ResponseDTO {
status: boolean;
}
EXAMPLE
curl --location --request POST 'localhost:3000/dependency-check/unsubscribe' \
--header 'Content-Type: application/json' \
--data-raw '{
"subscribeId":"863325849"
}'
RESPONSE
{
"status":false
}