diff --git a/CHANGELOG.md b/CHANGELOG.md index 6074c53faab34..5401f6d57d8ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ Note: this changelog is for the shields.io server. The changelog for the badge-m --- +## server-2024-12-01 + +- add [WingetVersion] Badge [#10245](https://github.com/badges/shields/issues/10245) +- Fix broken URL for pingpong.one [#10655](https://github.com/badges/shields/issues/10655) +- [npm] - Last update badge added [#10641](https://github.com/badges/shields/issues/10641) +- reduce overhead of NPM Last Update badge; test [npm] [#10666](https://github.com/badges/shields/issues/10666) +- Add YouTube-specific privacy notes [#10646](https://github.com/badges/shields/issues/10646) +- Dependency updates + ## server-2024-11-02 - cleanly handle null or undefined result from jsonpath-plus [#10645](https://github.com/badges/shields/issues/10645) diff --git a/fly.toml b/fly.toml index e8f27f5e1c67d..f3507898059b9 100644 --- a/fly.toml +++ b/fly.toml @@ -25,6 +25,8 @@ processes = [] processes = ["app"] protocol = "tcp" script_checks = [] + auto_stop_machines = "suspend" + auto_start_machines = true [services.concurrency] hard_limit = 25 diff --git a/package-lock.json b/package-lock.json index d5358e12cc961..b282c3e218a85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@renovatebot/pep440": "^4.0.1", "@renovatebot/ruby-semver": "^4.0.0", - "@sentry/node": "^8.40.0", + "@sentry/node": "^8.41.0", "@shields_io/camp": "^18.1.2", "@xmldom/xmldom": "0.9.5", "badge-maker": "file:badge-maker", @@ -30,7 +30,7 @@ "fast-xml-parser": "^4.5.0", "glob": "^11.0.0", "global-agent": "^3.0.0", - "got": "^14.4.4", + "got": "^14.4.5", "graphql": "16.9.0", "graphql-tag": "^2.12.6", "joi": "17.13.3", @@ -51,7 +51,7 @@ "qs": "^6.13.1", "query-string": "^9.1.1", "semver": "~7.6.3", - "simple-icons": "13.17.0", + "simple-icons": "13.18.0", "smol-toml": "1.3.1", "svg-path-bbox": "^2.1.0", "svgpath": "^2.6.0", @@ -61,13 +61,13 @@ "devDependencies": { "@docusaurus/core": "^3.5.2", "@docusaurus/preset-classic": "^3.5.2", - "@easyops-cn/docusaurus-search-local": "^0.45.0", + "@easyops-cn/docusaurus-search-local": "^0.46.1", "@mdx-js/react": "^3.1.0", - "@typescript-eslint/parser": "^8.15.0", + "@typescript-eslint/parser": "^8.16.0", "c8": "^10.1.2", "caller": "^1.1.0", "chai": "^4.5.0", - "chai-as-promised": "^8.0.0", + "chai-as-promised": "^8.0.1", "chai-datetime": "^1.8.1", "chai-string": "^1.4.0", "child-process-promise": "^2.2.1", @@ -87,7 +87,7 @@ "eslint-plugin-cypress": "^3.6.0", "eslint-plugin-icedfrisby": "^0.1.0", "eslint-plugin-import": "^2.31.0", - "eslint-plugin-jsdoc": "^50.5.0", + "eslint-plugin-jsdoc": "^50.6.0", "eslint-plugin-mocha": "^10.5.0", "eslint-plugin-no-extension-in-require": "^0.2.0", "eslint-plugin-node": "^11.1.0", @@ -113,7 +113,7 @@ "npm-run-all": "^4.1.5", "open-cli": "^8.0.0", "portfinder": "^1.0.32", - "prettier": "3.3.3", + "prettier": "3.4.1", "prism-react-renderer": "^2.4.0", "react": "^18.3.0", "react-dom": "^18.3.1", @@ -3371,9 +3371,9 @@ } }, "node_modules/@easyops-cn/docusaurus-search-local": { - "version": "0.45.0", - "resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.45.0.tgz", - "integrity": "sha512-ccJjeYmBHrv2v8Y9eQnH79S0PEKcogACKkEatEKPcad7usQj/14jA9POUUUYW/yougLSXghwe+uIncbuUBuBFg==", + "version": "0.46.1", + "resolved": "https://registry.npmjs.org/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.46.1.tgz", + "integrity": "sha512-kgenn5+pctVlJg8s1FOAm9KuZLRZvkBTMMGJvTTcvNTmnFIHVVYzYfA2Eg+yVefzsC8/cSZGKKJ0kLf8I+mQyw==", "dev": true, "dependencies": { "@docusaurus/plugin-content-docs": "^2 || ^3", @@ -3385,6 +3385,7 @@ "@node-rs/jieba": "^1.6.0", "cheerio": "^1.0.0", "clsx": "^1.1.1", + "comlink": "^4.4.2", "debug": "^4.2.0", "fs-extra": "^10.0.0", "klaw-sync": "^6.0.0", @@ -5498,20 +5499,20 @@ "integrity": "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==" }, "node_modules/@sentry/core": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-8.40.0.tgz", - "integrity": "sha512-u/U2CJpG/+SmTR2bPM4ZZoPYTJAOUuxzj/0IURnvI0v9+rNu939J/fzrO9huA5IJVxS5TiYykhQm7o6I3Zuo3Q==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-8.41.0.tgz", + "integrity": "sha512-3v7u3t4LozCA5SpZY4yqUN2U3jSrkXNoLgz6L2SUUiydyCuSwXZIFEwpLJfgQyidpNDifeQbBI5E1O910XkPsA==", "dependencies": { - "@sentry/types": "8.40.0" + "@sentry/types": "8.41.0" }, "engines": { "node": ">=14.18" } }, "node_modules/@sentry/node": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@sentry/node/-/node-8.40.0.tgz", - "integrity": "sha512-UO1jWuO+z4DnK2NYCvQQfpNbfFYgeV//cNS83QIPkj9hPIEOpUR2DAfPmI9bj2Yjdh7WE8IN9Can9xDcfJquMQ==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@sentry/node/-/node-8.41.0.tgz", + "integrity": "sha512-eYD5S8Lti9efBHFSIhZ/0C5uI1DQtGqjuNWQ62CKC47G2qgJddBtb2HgqRFAnMajYL9FXEtiDT6uqQhKQnmLcQ==", "dependencies": { "@opentelemetry/api": "^1.9.0", "@opentelemetry/context-async-hooks": "^1.25.1", @@ -5545,9 +5546,9 @@ "@opentelemetry/sdk-trace-base": "^1.26.0", "@opentelemetry/semantic-conventions": "^1.27.0", "@prisma/instrumentation": "5.19.1", - "@sentry/core": "8.40.0", - "@sentry/opentelemetry": "8.40.0", - "@sentry/types": "8.40.0", + "@sentry/core": "8.41.0", + "@sentry/opentelemetry": "8.41.0", + "@sentry/types": "8.41.0", "import-in-the-middle": "^1.11.2" }, "engines": { @@ -5585,12 +5586,12 @@ } }, "node_modules/@sentry/node/node_modules/@sentry/opentelemetry": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@sentry/opentelemetry/-/opentelemetry-8.40.0.tgz", - "integrity": "sha512-kW9EBRESjNnBdj2zCqNMv8x0VIsmiALIOMpi25Dpm38IKtRg/ckQ7YOWx1lnT3iOFebO2GXUvOu+gPmuzIY2WQ==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@sentry/opentelemetry/-/opentelemetry-8.41.0.tgz", + "integrity": "sha512-Ld6KdBQsmSk2IfFSoZ7CMpmuQbfb3viV6nTDCz6+11wL9S+1b+hadCN+38yBW4CmI4/hEpYfwwWQPseQQTvBCg==", "dependencies": { - "@sentry/core": "8.40.0", - "@sentry/types": "8.40.0" + "@sentry/core": "8.41.0", + "@sentry/types": "8.41.0" }, "engines": { "node": ">=14.18" @@ -5604,9 +5605,9 @@ } }, "node_modules/@sentry/types": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-8.40.0.tgz", - "integrity": "sha512-nuCf3U3deolPM9BjNnwCc33UtFl9ec15/r74ngAkNccn+A2JXdIAsDkGJMO/9mgSFykLe1QyeJ0pQFRisCGOiA==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-8.41.0.tgz", + "integrity": "sha512-eqdnGr9k9H++b9CjVUoTNUVahPVWeNnMy0YGkqS5+cjWWC+x43p56202oidGFmWo6702ub/xwUNH6M5PC4kq6A==", "engines": { "node": ">=14.18" } @@ -6544,15 +6545,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.15.0.tgz", - "integrity": "sha512-7n59qFpghG4uazrF9qtGKBZXn7Oz4sOMm8dwNWDQY96Xlm2oX67eipqcblDj+oY1lLCbf1oltMZFpUso66Kl1A==", + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.16.0.tgz", + "integrity": "sha512-D7DbgGFtsqIPIFMPJwCad9Gfi/hC0PWErRRHFnaCWoEDYi5tQUDiJCTmGUbBiLzjqAck4KcXt9Ayj0CNlIrF+w==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.15.0", - "@typescript-eslint/types": "8.15.0", - "@typescript-eslint/typescript-estree": "8.15.0", - "@typescript-eslint/visitor-keys": "8.15.0", + "@typescript-eslint/scope-manager": "8.16.0", + "@typescript-eslint/types": "8.16.0", + "@typescript-eslint/typescript-estree": "8.16.0", + "@typescript-eslint/visitor-keys": "8.16.0", "debug": "^4.3.4" }, "engines": { @@ -6572,13 +6573,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.15.0.tgz", - "integrity": "sha512-QRGy8ADi4J7ii95xz4UoiymmmMd/zuy9azCaamnZ3FM8T5fZcex8UfJcjkiEZjJSztKfEBe3dZ5T/5RHAmw2mA==", + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.16.0.tgz", + "integrity": "sha512-mwsZWubQvBki2t5565uxF0EYvG+FwdFb8bMtDuGQLdCCnGPrDEDvm1gtfynuKlnpzeBRqdFCkMf9jg1fnAK8sg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.15.0", - "@typescript-eslint/visitor-keys": "8.15.0" + "@typescript-eslint/types": "8.16.0", + "@typescript-eslint/visitor-keys": "8.16.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -6589,9 +6590,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.15.0.tgz", - "integrity": "sha512-n3Gt8Y/KyJNe0S3yDCD2RVKrHBC4gTUcLTebVBXacPy091E6tNspFLKRXlk3hwT4G55nfr1n2AdFqi/XMxzmPQ==", + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.16.0.tgz", + "integrity": "sha512-NzrHj6thBAOSE4d9bsuRNMvk+BvaQvmY4dDglgkgGC0EW/tB3Kelnp3tAKH87GEwzoxgeQn9fNGRyFJM/xd+GQ==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -6602,13 +6603,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.15.0.tgz", - "integrity": "sha512-1eMp2JgNec/niZsR7ioFBlsh/Fk0oJbhaqO0jRyQBMgkz7RrFfkqF9lYYmBoGBaSiLnu8TAPQTwoTUiSTUW9dg==", + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.16.0.tgz", + "integrity": "sha512-E2+9IzzXMc1iaBy9zmo+UYvluE3TW7bCGWSF41hVWUE01o8nzr1rvOQYSxelxr6StUvRcTMe633eY8mXASMaNw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.15.0", - "@typescript-eslint/visitor-keys": "8.15.0", + "@typescript-eslint/types": "8.16.0", + "@typescript-eslint/visitor-keys": "8.16.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -6654,12 +6655,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.15.0.tgz", - "integrity": "sha512-h8vYOulWec9LhpwfAdZf2bjr8xIp0KNKnpgqSz0qqYYKAW/QZKw3ktRndbiAtUz4acH4QLQavwZBYCc0wulA/Q==", + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.16.0.tgz", + "integrity": "sha512-pq19gbaMOmFE3CbL0ZB8J8BFCo2ckfHBfaIsaOZgBIF4EoISJIdLX5xRhd0FGB0LlHReNRuzoJoMGpTjq8F2CQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.15.0", + "@typescript-eslint/types": "8.16.0", "eslint-visitor-keys": "^4.2.0" }, "engines": { @@ -8488,9 +8489,9 @@ } }, "node_modules/chai-as-promised": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-8.0.0.tgz", - "integrity": "sha512-sMsGXTrS3FunP/wbqh/KxM8Kj/aLPXQGkNtvE5wPfSToq8wkkvBpTZo1LIiEVmC4BwkKpag+l5h/20lBMk6nUg==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-8.0.1.tgz", + "integrity": "sha512-OIEJtOL8xxJSH8JJWbIoRjybbzR52iFuDHuF8eb+nTPD6tgXLjRqsgnUGqQfFODxYvq5QdirT0pN9dZ0+Gz6rA==", "dev": true, "dependencies": { "check-error": "^2.0.0" @@ -9201,6 +9202,12 @@ "node": ">= 0.8" } }, + "node_modules/comlink": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/comlink/-/comlink-4.4.2.tgz", + "integrity": "sha512-OxGdvBmJuNKSCMO4NTl1L47VRp6xn2wG4F/2hYzB6tiCb709otOxtEYCSvK80PtjODfXXZu8ds+Nw5kVCjqd2g==", + "dev": true + }, "node_modules/comma-separated-tokens": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", @@ -12422,9 +12429,9 @@ } }, "node_modules/eslint-plugin-jsdoc": { - "version": "50.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-50.5.0.tgz", - "integrity": "sha512-xTkshfZrUbiSHXBwZ/9d5ulZ2OcHXxSvm/NPo494H/hadLRJwOq5PMV0EUpMqsb9V+kQo+9BAgi6Z7aJtdBp2A==", + "version": "50.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-50.6.0.tgz", + "integrity": "sha512-tCNp4fR79Le3dYTPB0dKEv7yFyvGkUCa+Z3yuTrrNGGOxBlXo9Pn0PEgroOZikUQOGjxoGMVKNjrOHcYEdfszg==", "dev": true, "dependencies": { "@es-joy/jsdoccomment": "~0.49.0", @@ -14588,9 +14595,9 @@ } }, "node_modules/got": { - "version": "14.4.4", - "resolved": "https://registry.npmjs.org/got/-/got-14.4.4.tgz", - "integrity": "sha512-tqiF7eSgTBwQkxb1LxsEpva8TaMYVisbhplrFVmw9GQE3855Z+MH/mnsXLLOkDxR6hZJRFMj5VTAZ8lmTF8ZOA==", + "version": "14.4.5", + "resolved": "https://registry.npmjs.org/got/-/got-14.4.5.tgz", + "integrity": "sha512-sq+uET8TnNKRNnjEOPJzMcxeI0irT8BBNmf+GtZcJpmhYsQM1DSKmCROUjPWKsXZ5HzwD5Cf5/RV+QD9BSTxJg==", "dependencies": { "@sindresorhus/is": "^7.0.1", "@szmarczak/http-timer": "^5.0.1", @@ -24565,9 +24572,9 @@ } }, "node_modules/prettier": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", - "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.1.tgz", + "integrity": "sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -27252,9 +27259,9 @@ } }, "node_modules/simple-icons": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-13.17.0.tgz", - "integrity": "sha512-pn37igWUYFeTBLckTGjFpwvEYbZuIXc9AB2lza+bzxc/h/sxlNn323dxGlXKglxqMNgLkbnpX75hT6kgsgb5CQ==", + "version": "13.18.0", + "resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-13.18.0.tgz", + "integrity": "sha512-nxG6XOUKWgt0K7eochrIn46tLBvOcUhcSpVUwWpo8WRkS4RHxreRIRosScDm4KmmTeDuNbW114GjviHlOSWyTg==", "engines": { "node": ">=0.12.18" }, @@ -28989,9 +28996,9 @@ } }, "node_modules/ts-api-utils": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.0.tgz", - "integrity": "sha512-032cPxaEKwM+GT3vA5JXNzIaizx388rhsSW79vGRNGXfRRAdEAn2mvk36PvK5HnOchyWZ7afLEXqYCvPCrzuzQ==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz", + "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==", "dev": true, "engines": { "node": ">=16" diff --git a/package.json b/package.json index ae1151b0ad371..775eade594faa 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "dependencies": { "@renovatebot/pep440": "^4.0.1", "@renovatebot/ruby-semver": "^4.0.0", - "@sentry/node": "^8.40.0", + "@sentry/node": "^8.41.0", "@shields_io/camp": "^18.1.2", "@xmldom/xmldom": "0.9.5", "badge-maker": "file:badge-maker", @@ -42,7 +42,7 @@ "fast-xml-parser": "^4.5.0", "glob": "^11.0.0", "global-agent": "^3.0.0", - "got": "^14.4.4", + "got": "^14.4.5", "graphql": "16.9.0", "graphql-tag": "^2.12.6", "joi": "17.13.3", @@ -63,7 +63,7 @@ "qs": "^6.13.1", "query-string": "^9.1.1", "semver": "~7.6.3", - "simple-icons": "13.17.0", + "simple-icons": "13.18.0", "smol-toml": "1.3.1", "svg-path-bbox": "^2.1.0", "svgpath": "^2.6.0", @@ -148,13 +148,13 @@ "devDependencies": { "@docusaurus/core": "^3.5.2", "@docusaurus/preset-classic": "^3.5.2", - "@easyops-cn/docusaurus-search-local": "^0.45.0", + "@easyops-cn/docusaurus-search-local": "^0.46.1", "@mdx-js/react": "^3.1.0", - "@typescript-eslint/parser": "^8.15.0", + "@typescript-eslint/parser": "^8.16.0", "c8": "^10.1.2", "caller": "^1.1.0", "chai": "^4.5.0", - "chai-as-promised": "^8.0.0", + "chai-as-promised": "^8.0.1", "chai-datetime": "^1.8.1", "chai-string": "^1.4.0", "child-process-promise": "^2.2.1", @@ -174,7 +174,7 @@ "eslint-plugin-cypress": "^3.6.0", "eslint-plugin-icedfrisby": "^0.1.0", "eslint-plugin-import": "^2.31.0", - "eslint-plugin-jsdoc": "^50.5.0", + "eslint-plugin-jsdoc": "^50.6.0", "eslint-plugin-mocha": "^10.5.0", "eslint-plugin-no-extension-in-require": "^0.2.0", "eslint-plugin-node": "^11.1.0", @@ -200,7 +200,7 @@ "npm-run-all": "^4.1.5", "open-cli": "^8.0.0", "portfinder": "^1.0.32", - "prettier": "3.3.3", + "prettier": "3.4.1", "prism-react-renderer": "^2.4.0", "react": "^18.3.0", "react-dom": "^18.3.1", diff --git a/services/crates/crates-base.js b/services/crates/crates-base.js index 8d744ca5b6caa..307e828a08803 100644 --- a/services/crates/crates-base.js +++ b/services/crates/crates-base.js @@ -4,8 +4,7 @@ import { BaseJsonService, InvalidResponse } from '../index.js' const versionSchema = Joi.object({ downloads: nonNegativeInteger, - // Crate size is not available for all versions. - crate_size: nonNegativeInteger.allow(null), + crate_size: nonNegativeInteger, num: Joi.string().required(), license: Joi.string().required().allow(null), rust_version: Joi.string().allow(null), diff --git a/services/crates/crates-size.service.js b/services/crates/crates-size.service.js index ef7d8e189ab72..bc3b705e3c7f1 100644 --- a/services/crates/crates-size.service.js +++ b/services/crates/crates-size.service.js @@ -1,4 +1,4 @@ -import { InvalidResponse, pathParams } from '../index.js' +import { pathParams } from '../index.js' import { renderSizeBadge } from '../size.js' import { BaseCratesService, description } from './crates-base.js' @@ -41,11 +41,6 @@ export default class CratesSize extends BaseCratesService { async handle({ crate, version }) { const json = await this.fetch({ crate, version }) const size = this.constructor.getVersionObj(json).crate_size - - if (size == null) { - throw new InvalidResponse({ prettyMessage: 'unknown' }) - } - return renderSizeBadge(size, 'iec') } } diff --git a/services/crates/crates-size.tester.js b/services/crates/crates-size.tester.js index 587f61c0cf370..7512aa62b784e 100644 --- a/services/crates/crates-size.tester.js +++ b/services/crates/crates-size.tester.js @@ -10,10 +10,6 @@ t.create('size (with version)') .get('/tokio/1.32.0.json') .expectBadge({ label: 'size', message: '708 KiB' }) -t.create('size (with version where version doesnt have size)') - .get('/tokio/0.1.6.json') - .expectBadge({ label: 'crates.io', message: 'unknown' }) - t.create('size (not found)') .get('/not-a-crate.json') .expectBadge({ label: 'crates.io', message: 'not found' }) diff --git a/services/docker/docker-version.tester.js b/services/docker/docker-version.tester.js index 154db922f0f08..8410a69ffb060 100644 --- a/services/docker/docker-version.tester.js +++ b/services/docker/docker-version.tester.js @@ -3,10 +3,10 @@ import { createServiceTester } from '../tester.js' export const t = await createServiceTester() t.create('docker version (valid, library)') - .get('/_/memcached.json') + .get('/docker/example-voting-app-vote.json') .expectBadge({ label: 'version', - message: isSemver, + message: 'latest', }) t.create('docker version (valid, library with tag)')