We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb07a48 commit 5d9c044Copy full SHA for 5d9c044
lib/npa.js
@@ -155,6 +155,11 @@ Result.prototype.toJSON = function () {
155
}
156
157
function setGitCommittish (res, committish) {
158
+ if (committish != null && committish.includes('::')) {
159
+ const parts = committish.split('::')
160
+ committish = parts[0]
161
+ res.gitSubdir = `/${parts[1]}`
162
+ }
163
if (committish != null && committish.length >= 7 && committish.slice(0, 7) === 'semver:') {
164
res.gitRange = decodeURIComponent(committish.slice(7))
165
res.gitCommittish = null
0 commit comments