/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/npm/node_modules/tar/dist/esm/update.js
30 строк
1006 B
npm CLI robot
deps: upgrade npm to 11.6.1
03 окт 2025, 01:30
Не верифицирован
03 окт 2025, 01:30
5d843c9
Код
Авторство
О чём код?
// tar -u import { makeCommand } from './make-command.js'; import { replace as r } from './replace.js'; // just call tar.r with the filter and mtimeCache export const update = makeCommand(r.syncFile, r.asyncFile, r.syncNoFile, r.asyncNoFile, (opt, entries = []) => { r.validate?.(opt, entries); mtimeFilter(opt); }); const mtimeFilter = (opt) => { const filter = opt.filter; if (!opt.mtimeCache) { opt.mtimeCache = new Map(); } opt.filter = filter ? (path, stat) => filter(path, stat) && !( /* c8 ignore start */ ((opt.mtimeCache?.get(path) ?? stat.mtime ?? 0) > (stat.mtime ?? 0)) /* c8 ignore stop */ ) : (path, stat) => !( /* c8 ignore start */ ((opt.mtimeCache?.get(path) ?? stat.mtime ?? 0) > (stat.mtime ?? 0)) /* c8 ignore stop */ ); }; //# sourceMappingURL=update.js.map