diff -Nru node-node-rest-client-2.5.0/debian/changelog node-node-rest-client-2.5.0/debian/changelog --- node-node-rest-client-2.5.0/debian/changelog 2018-11-07 22:32:44.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/changelog 2020-03-01 16:42:48.000000000 +0000 @@ -1,3 +1,23 @@ +node-node-rest-client (2.5.0-4) unstable; urgency=medium + + * Team upload + + [ Debian Janitor ] + * Use secure copyright file specification URI. + * Bump debhelper from old 10 to 12. + * Set debhelper-compat version in Build-Depends. + * Set upstream metadata fields: Repository, Repository-Browse. + + [ Xavier Guimard ] + * Declare compliance with policy 4.5.0 + * Add "Rules-Requires-Root: no" + * Add debian/gbp.conf + * Update debian/watch to use npm registry + * Use pkg-js-tools auto install + * Replace Buffer() by Buffer.from() + + -- Xavier Guimard Sun, 01 Mar 2020 17:42:48 +0100 + node-node-rest-client (2.5.0-3) unstable; urgency=low * Fix autopkgtest: node-node-uuid -> node-uuid (Closes: #913086) diff -Nru node-node-rest-client-2.5.0/debian/compat node-node-rest-client-2.5.0/debian/compat --- node-node-rest-client-2.5.0/debian/compat 2018-11-07 22:32:41.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -10 diff -Nru node-node-rest-client-2.5.0/debian/control node-node-rest-client-2.5.0/debian/control --- node-node-rest-client-2.5.0/debian/control 2018-11-07 22:32:44.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/control 2020-03-01 16:37:29.000000000 +0000 @@ -1,26 +1,29 @@ Source: node-node-rest-client -Section: javascript -Priority: optional Maintainer: Debian Javascript Maintainers Uploaders: Ying-Chun Liu (PaulLiu) +Section: javascript +Testsuite: autopkgtest-pkg-nodejs +Priority: optional Build-Depends: - debhelper (>= 10) - , dh-buildinfo - , nodejs - , node-should -Standards-Version: 4.2.1 -Homepage: https://github.com/aacerox/node-rest-client#readme -Vcs-Git: https://salsa.debian.org/js-team/node-node-rest-client.git + debhelper-compat (= 12) + , node-debug (>= 2.2.0) + , node-follow-redirects + , node-xml2js + , pkg-js-tools (>= 0.9.20~) +Standards-Version: 4.5.0 Vcs-Browser: https://salsa.debian.org/js-team/node-node-rest-client +Vcs-Git: https://salsa.debian.org/js-team/node-node-rest-client.git +Homepage: https://github.com/aacerox/node-rest-client +Rules-Requires-Root: no Package: node-node-rest-client Architecture: all Depends: ${misc:Depends} - , nodejs , node-debug (>= 2.2.0) - , node-xml2js (>= 0.2.4) - , node-follow-redirects (>= 1.2.0) + , node-follow-redirects + , node-xml2js + , nodejs Description: Rest API client for NodeJS Allows connecting to any API REST and get results as js Object. The client has the following features: diff -Nru node-node-rest-client-2.5.0/debian/copyright node-node-rest-client-2.5.0/debian/copyright --- node-node-rest-client-2.5.0/debian/copyright 2017-10-04 16:36:24.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/copyright 2020-03-01 16:37:29.000000000 +0000 @@ -1,4 +1,4 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: node-rest-client Upstream-Contact: https://github.com/aacerox/node-rest-client/issues Source: https://github.com/aacerox/node-rest-client @@ -31,4 +31,3 @@ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff -Nru node-node-rest-client-2.5.0/debian/gbp.conf node-node-rest-client-2.5.0/debian/gbp.conf --- node-node-rest-client-2.5.0/debian/gbp.conf 1970-01-01 00:00:00.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/gbp.conf 2020-03-01 16:37:29.000000000 +0000 @@ -0,0 +1,5 @@ +[DEFAULT] +pristine-tar = True + +[import-orig] +filter = [ '.gitignore', '.travis.yml', '.git*' ] diff -Nru node-node-rest-client-2.5.0/debian/install node-node-rest-client-2.5.0/debian/install --- node-node-rest-client-2.5.0/debian/install 2017-10-04 16:36:24.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/install 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -lib usr/lib/nodejs/node-rest-client/ -package.json usr/lib/nodejs/node-rest-client/ diff -Nru node-node-rest-client-2.5.0/debian/patches/fix-buffer-usage.diff node-node-rest-client-2.5.0/debian/patches/fix-buffer-usage.diff --- node-node-rest-client-2.5.0/debian/patches/fix-buffer-usage.diff 1970-01-01 00:00:00.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/patches/fix-buffer-usage.diff 2020-03-01 16:41:50.000000000 +0000 @@ -0,0 +1,34 @@ +Description: replace Buffer() by Buffer.from() +Author: Xavier Guimard +Forwarded: no +Last-Update: 2020-03-01 + +--- a/lib/node-rest-client.js ++++ b/lib/node-rest-client.js +@@ -64,7 +64,7 @@ + var result ={}; + // if proxy requires authentication, create Proxy-Authorization headers + if (self.proxy.user && self.proxy.password){ +- result["Proxy-Authorization"] = "Basic " + new Buffer([self.proxy.user,self.proxy.password].join(":")).toString("base64"); ++ result["Proxy-Authorization"] = "Basic " + new Buffer.from([self.proxy.user,self.proxy.password].join(":")).toString("base64"); + } + // no tunnel proxy connection, we add the host to the headers + if(!self.useProxyTunnel) +@@ -497,7 +497,7 @@ + + // concurrent data chunk handler + res.on('data',function(chunk){ +- buffer.push(new Buffer(chunk)); ++ buffer.push(new Buffer.from(chunk)); + }); + + res.on('end',function(){ +@@ -583,7 +583,7 @@ + + // concurrent data chunk handler + res.on('data',function(chunk){ +- buffer.push(new Buffer(chunk)); ++ buffer.push(new Buffer.from(chunk)); + }); + + res.on('end',function(){ diff -Nru node-node-rest-client-2.5.0/debian/patches/series node-node-rest-client-2.5.0/debian/patches/series --- node-node-rest-client-2.5.0/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/patches/series 2020-03-01 16:41:24.000000000 +0000 @@ -0,0 +1 @@ +fix-buffer-usage.diff diff -Nru node-node-rest-client-2.5.0/debian/rules node-node-rest-client-2.5.0/debian/rules --- node-node-rest-client-2.5.0/debian/rules 2017-10-04 16:36:24.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/rules 2020-03-01 16:37:29.000000000 +0000 @@ -5,4 +5,4 @@ #export DH_VERBOSE=1 %: - dh $@ + dh $@ --with nodejs diff -Nru node-node-rest-client-2.5.0/debian/tests/control node-node-rest-client-2.5.0/debian/tests/control --- node-node-rest-client-2.5.0/debian/tests/control 2018-11-07 22:22:34.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/tests/control 2020-03-01 16:37:29.000000000 +0000 @@ -1,6 +1,6 @@ -Tests: require -Depends: node-node-rest-client - Tests: nesttest -Depends: @, node-uuid, python3-flask, python3-flask-restful -Restrictions: isolation-container +Depends: @ + , node-uuid + , python3-flask + , python3-flask-restful +Restrictions: isolation-container, allow-stderr diff -Nru node-node-rest-client-2.5.0/debian/tests/require node-node-rest-client-2.5.0/debian/tests/require --- node-node-rest-client-2.5.0/debian/tests/require 2017-10-04 16:36:05.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/tests/require 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -#!/bin/sh -set -e -nodejs -e "require('node-rest-client');" diff -Nru node-node-rest-client-2.5.0/debian/upstream/metadata node-node-rest-client-2.5.0/debian/upstream/metadata --- node-node-rest-client-2.5.0/debian/upstream/metadata 1970-01-01 00:00:00.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/upstream/metadata 2020-03-01 16:37:29.000000000 +0000 @@ -0,0 +1,2 @@ +Repository: https://github.com/aacerox/node-rest-client.git +Repository-Browse: https://github.com/aacerox/node-rest-client diff -Nru node-node-rest-client-2.5.0/debian/watch node-node-rest-client-2.5.0/debian/watch --- node-node-rest-client-2.5.0/debian/watch 2017-10-04 16:36:12.000000000 +0000 +++ node-node-rest-client-2.5.0/debian/watch 2020-03-01 16:37:29.000000000 +0000 @@ -1,9 +1,5 @@ -version=3 -# It is not recommended use fakeupstream. Please investigate more. -# Origin url: https://github.com/aacerox/node-rest-client +version=4 +# It is not recommended use npmregistry. Please investigate more. # Take a look at https://wiki.debian.org/debian/watch/ -# See also fakeupstream: http://anonscm.debian.org/viewvc/qa/trunk/cgi-bin/fakeupstream.cgi?view=markup -opts=\ -dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\ -filenamemangle=s/.*=// \ - http://qa.debian.org/cgi-bin/fakeupstream.cgi?upstream=npmjs/node-rest-client .*=node-rest-client-(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz)) +opts="searchmode=plain,pgpmode=none" \ + https://registry.npmjs.org/node-rest-client https://registry.npmjs.org/node-rest-client/-/node-rest-client-(\d[\d\.]*)@ARCHIVE_EXT@