You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 05b6f0f
Browse filesBrowse the repository at this point in the historyBrowse files
awaitt.resolves(arb.reify(),'same-origin tarball is allowed for registry root')
4028
4028
})
4029
4029
4030
+
t.test('allowRemote=none allows registry tarball whose resolved origin differs from the configured registry',asynct=>{
4031
+
// Proxy/mirror case: a committed lockfile pins resolved to the public registry while a private mirror is configured.
4032
+
// replace-registry-host rewrites the host to the configured registry at fetch time, so the effective URL is registry-mediated and must pass allow-remote=none.
awaitt.resolves(arb.reify(),'mirror-fronted registry tarball is allowed under allow-remote=none')
4078
+
})
4079
+
4080
+
t.test('allowRemote=none allows registry tarball with replaceRegistryHost=always',asynct=>{
4081
+
// replace-registry-host=always routes every registry tarball fetch through the configured registry, so the effective URL is never remote and must pass allow-remote=none.
0 commit comments