UNPKG

@pnpm/tarball-fetcher

Version:
16 lines 684 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BadTarballError = void 0; const error_1 = require("@pnpm/error"); class BadTarballError extends error_1.PnpmError { constructor(opts) { const message = `Actual size (${opts.receivedSize}) of tarball (${opts.tarballUrl}) did not match the one specified in 'Content-Length' header (${opts.expectedSize})`; super('BAD_TARBALL_SIZE', message, { attempts: opts?.attempts, }); this.expectedSize = opts.expectedSize; this.receivedSize = opts.receivedSize; } } exports.BadTarballError = BadTarballError; //# sourceMappingURL=BadTarballError.js.map