/snap/node/11782/lib/node_modules/npm/node_modules/tar/dist/esm
NameSizeModeActions
create.js21630644editdlrm
cwd-error.js3100644editdlrm
extract.js16920644editdlrm
get-write-flag.js10180644editdlrm
header.js110960644editdlrm
index.js6470644editdlrm
index.min.js829670644editdlrm
large-numbers.js25810644editdlrm
list.js34440644editdlrm
make-command.js18700644editdlrm
mkdir.js57390644editdlrm
mode-fix.js7530644editdlrm
normalize-unicode.js10090644editdlrm
normalize-windows-path.js4900644editdlrm
options.js16390644editdlrm
pack.js144020644editdlrm
package.json230644editdlrm
parse.js227970644editdlrm
path-reservations.js54470644editdlrm
pax.js47540644editdlrm
process-umask.js1560644editdlrm
read-entry.js41750644editdlrm
replace.js72030644editdlrm
strip-absolute-path.js10600644editdlrm
strip-trailing-slashes.js4890644editdlrm
symlink-error.js3900644editdlrm
types.js12770644editdlrm
unpack.js336090644editdlrm
update.js10060644editdlrm
warn-method.js7950644editdlrm
winchars.js5490644editdlrm
write-entry.js227810644editdlrm
Edit: /snap/node/11782/lib/node_modules/npm/node_modules/tar/dist/esm/mode-fix.js (753B)
export const modeFix = (mode, isDir, portable) => { mode &= 0o7777; // in portable mode, use the minimum reasonable umask // if this system creates files with 0o664 by default // (as some linux distros do), then we'll write the // archive with 0o644 instead. Also, don't ever create // a file that is not readable/writable by the owner. if (portable) { mode = (mode | 0o600) & ~0o22; } // if dirs are readable, then they should be listable if (isDir) { if (mode & 0o400) { mode |= 0o100; } if (mode & 0o40) { mode |= 0o10; } if (mode & 0o4) { mode |= 0o1; } } return mode; }; //# sourceMappingURL=mode-fix.js.map