REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 841 B
Close
/proc/self/root/opt/alt/alt-nodejs20/root/usr/lib/node_modules/npm/node_modules/libnpmversion/lib/enforce-clean.js
Text
Base64
const git = require('@npmcli/git') const { log } = require('proc-log') // returns true if it's cool to do git stuff // throws if it's unclean, and not forced. module.exports = async opts => { const { force } = opts let hadError = false const clean = await git.isClean(opts).catch(er => { if (er.code === 'ENOGIT') { log.warn( 'version', 'This is a Git checkout, but the git command was not found.', 'npm could not create a Git tag for this release!' ) hadError = true // how can merges be real if our git isn't real? return true } else { throw er } }) if (!clean) { if (!force) { throw new Error('Git working directory not clean.') } log.warn('version', 'Git working directory not clean, proceeding forcefully.') } return !hadError }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
commit.js
425 B
lrw-r--r--
2026-02-23 03:24:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
enforce-clean.js
841 B
lrw-r--r--
2026-02-23 03:24:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
781 B
lrw-r--r--
2026-02-23 03:24:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
read-json.js
295 B
lrw-r--r--
2026-02-23 03:24:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
retrieve-tag.js
384 B
lrw-r--r--
2026-02-23 03:24:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tag.js
470 B
lrw-r--r--
2026-02-23 03:24:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
version.js
3.22 KB
lrw-r--r--
2026-02-23 03:24:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
write-json.js
483 B
lrw-r--r--
2026-02-23 03:24:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).