Details
Description
The filename and latest (not sure if any other) fields return incorrect values via /libraries endpoint for some libraries, while correct data is returned via /libraries/:library endpoint.
Steps to reproduce
Data for a library "caf" as returned by https://api.cdnjs.com/libraries?fields=name,latest,version,filename:
{
"name": "caf",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/caf/13.1.1/caf.js",
"version": "13.1.1",
"filename": "caf.js"
},
Data for the same library as returned by https://api.cdnjs.com/libraries/caf?fields=name,latest,version,filename:
{
"name": "caf",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/caf/13.1.1/umd/caf.js",
"version": "13.1.1",
"filename": "umd/caf.js"
}
Expected behavior
/libraries should return the same data as /libraries/:library
Logs
N/A
Details
Description
The
filenameandlatest(not sure if any other) fields return incorrect values via/librariesendpoint for some libraries, while correct data is returned via/libraries/:libraryendpoint.Steps to reproduce
Data for a library "caf" as returned by https://api.cdnjs.com/libraries?fields=name,latest,version,filename:
Data for the same library as returned by https://api.cdnjs.com/libraries/caf?fields=name,latest,version,filename:
Expected behavior
/librariesshould return the same data as/libraries/:libraryLogs
N/A