Advertisement
Guest User

Untitled

a guest
Jul 26th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. --- a/deps/npm/lib/install/inflate-shrinkwrap.js 2019-05-31 19:25:59.065933903 +0300
  2. +++ a/deps/npm/lib/install/inflate-shrinkwrap.js 2019-05-31 18:53:57.623790927 +0300
  3. @@ -74,7 +74,9 @@
  4. }
  5.  
  6. function tarballToVersion (name, tb) {
  7. - const registry = quotemeta(npm.config.get('registry'))
  8. + var x = npm.config.get('registry');
  9. + if ( x === null) x = '';
  10. + const registry = quotemeta(x)
  11. .replace(/https?:/, 'https?:')
  12. .replace(/([^/])$/, '$1/')
  13. let matchRegTarball
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement