API Documentation
/api/dependency-analyzer
POST Request Body
{
"dependencies": {
"react": "17.0.2",
"react-dom": "17.0.2",
"next": "12.1.6",
"axios": "0.26.1"
}
}The dependencies field should be an object where the keys are the package names and the values are the versions.
Example Response
{
"outdatedDependencies": [
{
"name": "react",
"currentVersion": "17.0.2",
"latestVersion": "18.2.0",
"needsUpdate": true
},
{
"name": "axios",
"currentVersion": "0.26.1",
"latestVersion": "0.27.2",
"needsUpdate": true
}
]
}The outdatedDependencies array will list any dependencies that need to be updated, including the package name, current version, latest version, and a flag indicating that an update is needed.