Skip to content

Commit 91625b5

Browse files
committed
Allow fetching of dist-tags by anonymous users
1 parent 8e5e383 commit 91625b5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/dist-tags/fetch.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ function fetch (uri, params, cb) {
1717
typeof params.package === 'string',
1818
'must pass package name to distTags.fetch'
1919
)
20-
assert(
21-
params.auth && typeof params.auth === 'object',
22-
'must pass auth to distTags.fetch'
23-
)
2420

2521
var p = npa(params.package)
2622
var pkg = p.scope ? params.package.replace('/', '%2f') : params.package

0 commit comments

Comments
 (0)