Skip to content

Commit

Permalink
Update default packagist domain for repo metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored Mar 4, 2025
1 parent 8a98824 commit a8cba49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/packagist/packagist-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BasePackagistService extends BaseJsonService {
* @param {string} attrs.server URL for the packagist registry server (Optional)
* @returns {object} Parsed response
*/
async fetch({ user, repo, schema, server = 'https://packagist.org' }) {
async fetch({ user, repo, schema, server = 'https://repo.packagist.org' }) {
const url = `${server}/p2/${user.toLowerCase()}/${repo.toLowerCase()}.json`

return this._requestJson({
Expand All @@ -56,7 +56,7 @@ class BasePackagistService extends BaseJsonService {
* @param {string} attrs.server URL for the packagist registry server (Optional)
* @returns {object} Parsed response
*/
async fetchDev({ user, repo, schema, server = 'https://packagist.org' }) {
async fetchDev({ user, repo, schema, server = 'https://repo.packagist.org' }) {

Check failure on line 59 in services/packagist/packagist-base.js

View workflow job for this annotation

GitHub Actions / test-lint

Replace `·user,·repo,·schema,·server·=·'https://repo.packagist.org'` with `⏎····user,⏎····repo,⏎····schema,⏎····server·=·'https://repo.packagist.org',⏎·`
const url = `${server}/p2/${user.toLowerCase()}/${repo.toLowerCase()}~dev.json`

return this._requestJson({
Expand Down

0 comments on commit a8cba49

Please sign in to comment.