PHP 8.2.30
Preview: fetch-error.js Size: 713 B
//opt/alt/alt-nodejs18/root/lib/node_modules/npm/node_modules/minipass-fetch/lib/fetch-error.js

'use strict'
class FetchError extends Error {
  constructor (message, type, systemError) {
    super(message)
    this.code = 'FETCH_ERROR'

    // pick up code, expected, path, ...
    if (systemError) {
      Object.assign(this, systemError)
    }

    this.errno = this.code

    // override anything the system error might've clobbered
    this.type = this.code === 'EBADSIZE' && this.found > this.expect
      ? 'max-size' : type
    this.message = message
    Error.captureStackTrace(this, this.constructor)
  }

  get name () {
    return 'FetchError'
  }

  // don't allow name to be overwritten
  set name (n) {}

  get [Symbol.toStringTag] () {
    return 'FetchError'
  }
}
module.exports = FetchError

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
362 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download
2.28 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
10.30 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
713 B lrw-r--r-- 2026-03-09 09:08:38
Edit Download
6.39 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
12.89 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
7.00 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download
1.91 KB lrw-r--r-- 2026-03-09 09:08:38
Edit Download

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