Comments (4)
The issue causing this is that the website applies the file whitelist as a filter to which assets are shown, but the API is simply listing every file that we have in the cdnjs repo, not filtered by those that are available on the CDN once the whitelist is applied.
from api-server.
I think the best solution here would be to do the following:
Apply the file whitelist filter to the API (libraries/:id).assets[].files
, but then add a new attribute such as (libraries/:id).assets[].rawFiles
that is not filtered for those that wish to see all files that exist for a version of a library on cdnjs.
from api-server.
ok,thanks,that will solve the problem
from api-server.
Resolved in eff3047
from api-server.
Related Issues (20)
- update whitelist HOT 3
- Algolia Makeover!
- Update API w/ Workers
- Handle filename/version being null
- Single API URL for a chain of libraries. HOT 1
- Document API Worker HOT 2
- Query by file type HOT 2
- [DepShield] (CVSS 7.4) Vulnerability due to usage of lodash:4.17.19
- Invalid JSON for jquery-validate package HOT 4
- Version list seems entirely random. Could it be properly sorted? HOT 2
- /libraries returns wrong data for some libraries HOT 4
- Invalid JSON data returned for highlight.js HOT 5
- Package info not update HOT 2
- parmas 'search' is not correct?? HOT 2
- Latest version problem with fields query param HOT 6
- https://api.cdnjs.com/libraries/?search=boo return 404 HOT 1
- How to specific library rawFiles data
- The fileType field could not be obtained HOT 1
- scoped packages HOT 1
- SRI lookup HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-server.