PATH: //lib/node_modules/npm/node_modules/pacote/lib/util
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 add-git-sha.js
↓
X
📄 cache-dir.js
↓
X
📄 is-package-bin.js
↓
X
📄 npm.js
↓
X
📄 tar-create-options.js
↓
X
📄 trailing-slashes.js
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: add-git-sha.js
// add a sha to a git remote url spec const addGitSha = (spec, sha) => { if (spec.hosted) { const h = spec.hosted const opt = { noCommittish: true } const base = h.https && h.auth ? h.https(opt) : h.shortcut(opt) return `${base}#${sha}` } else { // don't use new URL for this, because it doesn't handle scp urls return spec.rawSpec.replace(/#.*$/, '') + `#${sha}` } } module.exports = addGitSha
SIMPAN PERUBAHAN