svn commit: r478562 - head/www/npm/files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Fri Aug 31 14:41:25 UTC 2018


Author: sunpoet
Date: Fri Aug 31 14:41:23 2018
New Revision: 478562
URL: https://svnweb.freebsd.org/changeset/ports/478562

Log:
  Update extra-patch-bug-178881

Modified:
  head/www/npm/files/extra-patch-bug-178881

Modified: head/www/npm/files/extra-patch-bug-178881
==============================================================================
--- head/www/npm/files/extra-patch-bug-178881	Fri Aug 31 14:41:18 2018	(r478561)
+++ head/www/npm/files/extra-patch-bug-178881	Fri Aug 31 14:41:23 2018	(r478562)
@@ -1,6 +1,6 @@
 --- lib/node_modules/npm/lib/config/defaults.js.orig	1985-10-26 08:15:00 UTC
 +++ lib/node_modules/npm/lib/config/defaults.js
-@@ -372,26 +372,7 @@ exports.types = {
+@@ -378,19 +378,7 @@ exports.types = {
  }
  
  function getLocalAddresses () {
@@ -14,16 +14,9 @@
 -    interfaces = {}
 -  }
 -
--  return Object.keys(interfaces).map(function (nic) {
--    return interfaces[nic].filter(function (addr) {
--      return addr.family === 'IPv4'
--    })
--      .map(function (addr) {
--        return addr.address
--      })
--  }).reduce(function (curr, next) {
--    return curr.concat(next)
--  }, []).concat(undefined)
+-  return Object.keys(interfaces).map(
+-    nic => interfaces[nic].map(({address}) => address)
+-  ).reduce((curr, next) => curr.concat(next), []).concat(undefined)
 +  return [ '127.0.0.1', undefined ]
  }
  


More information about the svn-ports-all mailing list