Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2018 14:41:23 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478562 - head/www/npm/files
Message-ID:  <201808311441.w7VEfOBL034880@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 ]
  }
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808311441.w7VEfOBL034880>