Socket
Socket
Sign inDemoInstall

registry-auth-token

Package Overview
Dependencies
5
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.1 to 3.1.2

2

index.js

@@ -18,3 +18,3 @@ var url = require('url')

while (pathname !== '/') {
while (pathname !== '/' && parsed.pathname !== pathname) {
pathname = parsed.pathname || '/'

@@ -21,0 +21,0 @@

{
"name": "registry-auth-token",
"version": "3.1.1",
"version": "3.1.2",
"description": "Get the auth token set for an npm registry (if any)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -150,2 +150,3 @@ var fs = require('fs')

assert.deepEqual(getAuthToken('http://registry.blah.eu/what/ever', opts), {token: 'yep', type: 'Bearer'})
assert.deepEqual(getAuthToken('http://registry.blah.eu//what/ever', opts), undefined, 'does not hang')
assert.equal(getAuthToken('//some.registry', opts), undef)

@@ -152,0 +153,0 @@ done()

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc