PHP 8.2.30
Preview: errors.js Size: 579 B
/opt/alt/alt-nodejs18/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/git/lib/errors.js

const maxRetry = 3

class GitError extends Error {
  shouldRetry () {
    return false
  }
}

class GitConnectionError extends GitError {
  constructor () {
    super('A git connection error occurred')
  }

  shouldRetry (number) {
    return number < maxRetry
  }
}

class GitPathspecError extends GitError {
  constructor () {
    super('The git reference could not be found')
  }
}

class GitUnknownError extends GitError {
  constructor () {
    super('An unknown git error occurred')
  }
}

module.exports = {
  GitConnectionError,
  GitPathspecError,
  GitUnknownError,
}

Directory Contents

Dirs: 0 × Files: 13

Name Size Perms Modified Actions
4.82 KB lrw-r--r-- 2026-03-09 09:08:37
Edit Download
579 B lrw-r--r-- 2026-03-09 09:08:37
Edit Download
316 B lrw-r--r-- 2026-03-09 09:08:37
Edit Download
242 B lrw-r--r-- 2026-03-09 09:08:37
Edit Download
222 B lrw-r--r-- 2026-03-09 09:08:37
Edit Download
216 B lrw-r--r-- 2026-03-09 09:08:37
Edit Download
3.97 KB lrw-r--r-- 2026-03-09 09:08:37
Edit Download
861 B lrw-r--r-- 2026-03-09 09:08:37
Edit Download
1.58 KB lrw-r--r-- 2026-03-09 09:08:37
Edit Download
652 B lrw-r--r-- 2026-03-09 09:08:37
Edit Download
1.27 KB lrw-r--r-- 2026-03-09 09:08:37
Edit Download
109 B lrw-r--r-- 2026-03-09 09:08:37
Edit Download
339 B lrw-r--r-- 2026-03-09 09:08:37
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).