Open klausenbusk opened 4 years ago
With cdnjs/tools#99 fixed I just rerun the command:
Broken hack-font (hack-font version not found!)
Broken react-toolbox (react-toolbox version not found!)
Broken ejs (ejs version not found!)
Broken canvg (canvg version not found!)
Broken jQuery-QueryBuilder (jQuery-QueryBuilder version not found!)
Broken datatables-plugins (datatables-plugins version not found!)
Broken TypewriterJS (TypewriterJS version not found!)
Broken timezone-js (timezone-js version not found!)
Broken aurelia (aurelia version not found!)
Broken reflex-grid (reflex-grid version not found!)
Broken vast-client (vast-client version not found!)
Broken scatterjs (scatterjs version not found!)
Broken attrchange (attrchange version not found!)
Broken handjs (handjs version not found!)
Broken zebra_dialog (zebra_dialog version not found!)
Broken genericons (genericons version not found!)
Broken bootstrap-material-design-icons (bootstrap-material-design-icons version not found!)
Broken sbt (sbt version not found!)
Broken custom-elements-builder (custom-elements-builder version not found!)
Broken plastiq (plastiq version not found!)
@MattIPv4 I haven't looked into all of the packages (yet), but a few of them (ex: ejs and react-toolbox) have no versions. Should we just remove them?
Updated (2020-07-24)
$ curl -s 'https://api.cdnjs.com/libraries' | jq -r .results[].name | xargs -I{} -n1 -P 10 bash -c 'F="$(mktemp)"; trap "rm -f "${F}"" EXIT; S="$(curl --silent --output "${F}" --write-out "%{http_code}" "https://cdnjs.com/libraries/{}")"; test "$S" != "200" && echo "Broken {} ($(<"${F}"))"'
Broken react-toolbox (react-toolbox version not found!)
Broken ejs (ejs version not found!)
Broken canvg (canvg version not found!)
Broken jQuery-QueryBuilder (jQuery-QueryBuilder version not found!)
Broken datatables-plugins (datatables-plugins version not found!)
Broken TypewriterJS (TypewriterJS version not found!)
Broken timezone-js (timezone-js version not found!)
Broken aurelia (aurelia version not found!)
Broken reflex-grid (reflex-grid version not found!)
Broken vast-client (vast-client version not found!)
Broken attrchange (attrchange version not found!)
Broken handjs (handjs version not found!)
Broken bootstrap-material-design-icons (bootstrap-material-design-icons version not found!)
Broken custom-elements-builder (custom-elements-builder version not found!)
Updated (2020-07-30) Probably related to https://github.com/cdnjs/tools/pull/139 and https://github.com/cdnjs/packages/issues/341#issuecomment-665706001
$ curl -s 'https://api.cdnjs.com/libraries' | jq -r .results[].name | xargs -I{} -n1 -P 10 bash -c 'F="$(mktemp)"; trap "rm -f "${F}"" EXIT; S="$(curl --silent --output "${F}" --write-out "%{http_code}" "https://cdnjs.com/libraries/{}")"; test "$S" != "200" && echo "Broken {} ($(<"${F}"))"'
Broken canvg (canvg version not found!)
Broken TypewriterJS (TypewriterJS version not found!)
Broken timezone-js (timezone-js version not found!)
Broken aurelia (aurelia version not found!)
Broken shards-vue ()
Broken attrchange (attrchange version not found!)
Broken handjs (handjs version not found!)
Broken custom-elements-builder (custom-elements-builder version not found!)
Should we just remove them?
Their sources both appear to have versions, seems like cdnjs might have a bad config for both. So no, I don't think they should be removed.
Fair enough, I just checked all packages and it isn't too bad:
$ git ls-tree -r --name-only upstream/master | cut -f-4 -d / | sort -u > files
$ grep package.json files | sed 's:package.json::' | xargs -I {} -n 1 -P 10 bash -c 'test "$(grep -m 2 "{}" uniq | wc -l)" == 1 && echo No versions: {}'
No versions: ajax/libs/bootstrap-material-design-icons/
No versions: ajax/libs/datatables-plugins/
No versions: ajax/libs/ejs/
No versions: ajax/libs/jQuery-QueryBuilder/
No versions: ajax/libs/nerd-fonts/
No versions: ajax/libs/react-toolbox/
No versions: ajax/libs/reflex-grid/
No versions: ajax/libs/vast-client/
@klausenbusk I believe this is now resolved, can you confirm?
@klausenbusk I believe this is now resolved, can you confirm?
The symptom seem to be fixed, but some of the package.json is still out-of-date, ex: https://github.com/cdnjs/cdnjs/tree/master/ajax/libs/timezone-js. cdnjs.com also still contains a few packages without any versions, ex: https://cdnjs.com/libraries/ejs
Ah yes, will try to fix these outdated packages sometime this week 👍