From owner-svn-ports-all@freebsd.org Fri Aug 31 14:41:25 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D5E4FCD2B3; Fri, 31 Aug 2018 14:41:25 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FF9274F95; Fri, 31 Aug 2018 14:41:24 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1F4C21C8F1; Fri, 31 Aug 2018 14:41:24 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7VEfO4H034881; Fri, 31 Aug 2018 14:41:24 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7VEfOBL034880; Fri, 31 Aug 2018 14:41:24 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201808311441.w7VEfOBL034880@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Fri, 31 Aug 2018 14:41:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478562 - head/www/npm/files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: head/www/npm/files X-SVN-Commit-Revision: 478562 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2018 14:41:25 -0000 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 ] }