/usr/lib/node_modules/pnpm/dist/node_modules/tar/dist/commonjs
NameSizeModeActions
create.d.ts.map1920644editdlrm
create.js25740644editdlrm
create.js.map51930644editdlrm
cwd-error.d.ts.map2830644editdlrm
cwd-error.js4360644editdlrm
cwd-error.js.map7360644editdlrm
extract.d.ts.map1940644editdlrm
extract.js31150644editdlrm
extract.js.map35320644editdlrm
get-write-flag.d.ts.map1680644editdlrm
get-write-flag.js13040644editdlrm
get-write-flag.js.map19090644editdlrm
header.d.ts.map18300644editdlrm
header.js118140644editdlrm
header.js.map241510644editdlrm
index.d.ts.map8270644editdlrm
index.js28050644editdlrm
index.js.map14570644editdlrm
large-numbers.d.ts.map2170644editdlrm
large-numbers.js27330644editdlrm
large-numbers.js.map59300644editdlrm
list.d.ts.map2870644editdlrm
list.js48940644editdlrm
list.js.map70060644editdlrm
make-command.d.ts.map44070644editdlrm
make-command.js20460644editdlrm
make-command.js.map90530644editdlrm
mkdir.d.ts.map8000644editdlrm
mkdir.js74760644editdlrm
mkdir.js.map150690644editdlrm
mode-fix.d.ts.map1740644editdlrm
mode-fix.js8760644editdlrm
mode-fix.js.map14090644editdlrm
normalize-unicode.d.ts.map1730644editdlrm
normalize-unicode.js6390644editdlrm
normalize-unicode.js.map10210644editdlrm
normalize-windows-path.d.ts.map1840644editdlrm
normalize-windows-path.js6010644editdlrm
normalize-windows-path.js.map9430644editdlrm
options.d.ts.map58320644editdlrm
options.js21170644editdlrm
options.js.map265120644editdlrm
pack.d.ts.map37950644editdlrm
pack.js146970644editdlrm
pack.js.map280020644editdlrm
package.json250644editdlrm
parse.d.ts.map37050644editdlrm
parse.js219990644editdlrm
parse.js.map399320644editdlrm
path-reservations.d.ts.map4190644editdlrm
path-reservations.js57290644editdlrm
path-reservations.js.map108850644editdlrm
pax.d.ts.map8820644editdlrm
pax.js49040644editdlrm
pax.js.map100470644editdlrm
read-entry.d.ts.map11800644editdlrm
read-entry.js44580644editdlrm
read-entry.js.map81600644editdlrm
replace.d.ts.map1440644editdlrm
replace.js78550644editdlrm
replace.js.map150680644editdlrm
strip-absolute-path.d.ts.map1780644editdlrm
strip-absolute-path.js12320644editdlrm
strip-absolute-path.js.map19150644editdlrm
strip-trailing-slashes.d.ts.map1830644editdlrm
strip-trailing-slashes.js6510644editdlrm
strip-trailing-slashes.js.map10730644editdlrm
symlink-error.d.ts.map3210644editdlrm
symlink-error.js5280644editdlrm
symlink-error.js.map8460644editdlrm
types.d.ts.map7670644editdlrm
types.js14760644editdlrm
types.js.map35060644editdlrm
unpack.d.ts.map39850644editdlrm
unpack.js352130644editdlrm
unpack.js.map618950644editdlrm
update.d.ts.map1400644editdlrm
update.js12290644editdlrm
update.js.map22600644editdlrm
warn-method.d.ts.map11110644editdlrm
warn-method.js9270644editdlrm
warn-method.js.map26090644editdlrm
winchars.d.ts.map1950644editdlrm
winchars.js7040644editdlrm
winchars.js.map16690644editdlrm
write-entry.d.ts.map48330644editdlrm
write-entry.js250380644editdlrm
write-entry.js.map482180644editdlrm
Edit: /usr/lib/node_modules/pnpm/dist/node_modules/tar/dist/commonjs/pax.js (4904B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Pax = void 0; const node_path_1 = require("node:path"); const header_js_1 = require("./header.js"); class Pax { atime; mtime; ctime; charset; comment; gid; uid; gname; uname; linkpath; dev; ino; nlink; path; size; mode; global; constructor(obj, global = false) { this.atime = obj.atime; this.charset = obj.charset; this.comment = obj.comment; this.ctime = obj.ctime; this.dev = obj.dev; this.gid = obj.gid; this.global = global; this.gname = obj.gname; this.ino = obj.ino; this.linkpath = obj.linkpath; this.mtime = obj.mtime; this.nlink = obj.nlink; this.path = obj.path; this.size = obj.size; this.uid = obj.uid; this.uname = obj.uname; } encode() { const body = this.encodeBody(); if (body === '') { return Buffer.allocUnsafe(0); } const bodyLen = Buffer.byteLength(body); // round up to 512 bytes // add 512 for header const bufLen = 512 * Math.ceil(1 + bodyLen / 512); const buf = Buffer.allocUnsafe(bufLen); // 0-fill the header section, it might not hit every field for (let i = 0; i < 512; i++) { buf[i] = 0; } new header_js_1.Header({ // XXX split the path // then the path should be PaxHeader + basename, but less than 99, // prepend with the dirname /* c8 ignore start */ path: ('PaxHeader/' + (0, node_path_1.basename)(this.path ?? '')).slice(0, 99), /* c8 ignore stop */ mode: this.mode || 0o644, uid: this.uid, gid: this.gid, size: bodyLen, mtime: this.mtime, type: this.global ? 'GlobalExtendedHeader' : 'ExtendedHeader', linkpath: '', uname: this.uname || '', gname: this.gname || '', devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime, }).encode(buf); buf.write(body, 512, bodyLen, 'utf8'); // null pad after the body for (let i = bodyLen + 512; i < buf.length; i++) { buf[i] = 0; } return buf; } encodeBody() { return (this.encodeField('path') + this.encodeField('ctime') + this.encodeField('atime') + this.encodeField('dev') + this.encodeField('ino') + this.encodeField('nlink') + this.encodeField('charset') + this.encodeField('comment') + this.encodeField('gid') + this.encodeField('gname') + this.encodeField('linkpath') + this.encodeField('mtime') + this.encodeField('size') + this.encodeField('uid') + this.encodeField('uname')); } encodeField(field) { if (this[field] === undefined) { return ''; } const r = this[field]; const v = r instanceof Date ? r.getTime() / 1000 : r; const s = ' ' + (field === 'dev' || field === 'ino' || field === 'nlink' ? 'SCHILY.' : '') + field + '=' + v + '\n'; const byteLen = Buffer.byteLength(s); // the digits includes the length of the digits in ascii base-10 // so if it's 9 characters, then adding 1 for the 9 makes it 10 // which makes it 11 chars. let digits = Math.floor(Math.log(byteLen) / Math.log(10)) + 1; if (byteLen + digits >= Math.pow(10, digits)) { digits += 1; } const len = digits + byteLen; return len + s; } static parse(str, ex, g = false) { return new Pax(merge(parseKV(str), ex), g); } } exports.Pax = Pax; const merge = (a, b) => b ? Object.assign({}, b, a) : a; const parseKV = (str) => str .replace(/\n$/, '') .split('\n') .reduce(parseKVLine, Object.create(null)); const parseKVLine = (set, line) => { const n = parseInt(line, 10); // XXX Values with \n in them will fail this. // Refactor to not be a naive line-by-line parse. if (n !== Buffer.byteLength(line) + 1) { return set; } line = line.slice((n + ' ').length); const kv = line.split('='); const r = kv.shift(); if (!r) { return set; } const k = r.replace(/^SCHILY\.(dev|ino|nlink)/, '$1'); const v = kv.join('='); set[k] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(k) ? new Date(Number(v) * 1000) : /^[0-9]+$/.test(v) ? +v : v; return set; }; //# sourceMappingURL=pax.js.map