diff -Nru node-parse-filepath-1.0.1/debian/changelog node-parse-filepath-1.0.2/debian/changelog --- node-parse-filepath-1.0.1/debian/changelog 2016-12-13 16:24:15.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/changelog 2020-12-23 16:51:16.000000000 +0000 @@ -1,3 +1,30 @@ +node-parse-filepath (1.0.2-1) unstable; urgency=medium + + * Team upload + + [ Paolo Greppi ] + * Update Vcs fields for migration to https://salsa.debian.org/ + + [ Debian Janitor ] + * Use secure copyright file specification URI. + * Bump debhelper from old 9 to 12. + * Set debhelper-compat version in Build-Depends. + * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, + Repository-Browse. + + [ Xavier Guimard ] + * Bump debhelper compatibility level to 13 + * Declare compliance with policy 4.5.1 + * Add "Rules-Requires-Root: no" + * Change section to javascript + * Add debian/gbp.conf + * Modernize debian/watch + * Use dh-sequence-nodejs auto test & install + * New upstream version 1.0.2 + * Update copyright + + -- Xavier Guimard Wed, 23 Dec 2020 17:51:16 +0100 + node-parse-filepath (1.0.1-1) unstable; urgency=low * Initial release (Closes: #847911) diff -Nru node-parse-filepath-1.0.1/debian/compat node-parse-filepath-1.0.2/debian/compat --- node-parse-filepath-1.0.1/debian/compat 2016-12-13 16:24:15.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -9 diff -Nru node-parse-filepath-1.0.1/debian/control node-parse-filepath-1.0.2/debian/control --- node-parse-filepath-1.0.1/debian/control 2016-12-13 16:24:15.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/control 2020-12-23 16:49:17.000000000 +0000 @@ -1,29 +1,27 @@ Source: node-parse-filepath -Section: web +Section: javascript Priority: optional Maintainer: Debian Javascript Maintainers Uploaders: Paolo Greppi -Build-Depends: - debhelper (>= 9) - , dh-buildinfo - , node-path-root (>= 0.1.1) - , node-map-cache (>= 0.2.0) - , node-should (>= 7.0.2) - , mocha - , nodejs -Standards-Version: 3.9.8 +Build-Depends: debhelper-compat (= 13) + , dh-sequence-nodejs + , mocha + , node-map-cache + , node-path-root + , node-should +Standards-Version: 4.5.1 +Vcs-Browser: https://salsa.debian.org/js-team/node-parse-filepath +Vcs-Git: https://salsa.debian.org/js-team/node-parse-filepath.git Homepage: https://github.com/jonschlinkert/parse-filepath -Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-parse-filepath.git -Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-parse-filepath.git +Testsuite: autopkgtest-pkg-nodejs +Rules-Requires-Root: no Package: node-parse-filepath Architecture: all -Depends: - ${misc:Depends} - , nodejs - , node-path-root (>= 0.1.1) - , node-map-cache (>= 0.2.0) +Depends: ${misc:Depends} + , node-map-cache , node-path-is-absolute + , node-path-root Description: Parses a filepath into an object Node.js module that provides a polyfill for the native path.parse, that parses a filepath into an object with absolute filepath, diff -Nru node-parse-filepath-1.0.1/debian/copyright node-parse-filepath-1.0.2/debian/copyright --- node-parse-filepath-1.0.1/debian/copyright 2016-12-13 16:24:15.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/copyright 2020-12-23 16:51:04.000000000 +0000 @@ -1,12 +1,17 @@ -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: parse-filepath Upstream-Contact: https://github.com/jonschlinkert/parse-filepath/issues Source: https://github.com/jonschlinkert/parse-filepath Files: * -Copyright: 2016 Jon Schlinkert (https://github.com/jonschlinkert) +Copyright: 2014-2015 Jon Schlinkert (https://github.com/jonschlinkert) License: Expat +Files: debian/* +Copyright: 2016 Paolo Greppi + 2020 Xavier Guimard +License: GPL-3.0+ + License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files @@ -28,10 +33,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -Files: debian/* -Copyright: 2016 Paolo Greppi -License: GPL-3.0+ - License: GPL-3.0+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru node-parse-filepath-1.0.1/debian/gbp.conf node-parse-filepath-1.0.2/debian/gbp.conf --- node-parse-filepath-1.0.1/debian/gbp.conf 1970-01-01 00:00:00.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/gbp.conf 2020-12-23 16:49:17.000000000 +0000 @@ -0,0 +1,5 @@ +[DEFAULT] +pristine-tar = True + +[import-orig] +filter = [ '.gitignore', '.travis.yml', '.git*' ] diff -Nru node-parse-filepath-1.0.1/debian/install node-parse-filepath-1.0.2/debian/install --- node-parse-filepath-1.0.1/debian/install 2016-12-13 16:24:15.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/install 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -package.json usr/lib/nodejs/parse-filepath/ -index.js usr/lib/nodejs/parse-filepath/ diff -Nru node-parse-filepath-1.0.1/debian/rules node-parse-filepath-1.0.2/debian/rules --- node-parse-filepath-1.0.1/debian/rules 2016-12-13 16:24:15.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/rules 2020-12-23 16:49:17.000000000 +0000 @@ -6,8 +6,3 @@ %: dh $@ - -#override_dh_auto_build: - -override_dh_auto_test: - mocha -R spec diff -Nru node-parse-filepath-1.0.1/debian/salsa-ci.yml node-parse-filepath-1.0.2/debian/salsa-ci.yml --- node-parse-filepath-1.0.1/debian/salsa-ci.yml 1970-01-01 00:00:00.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/salsa-ci.yml 2020-12-23 16:49:17.000000000 +0000 @@ -0,0 +1,4 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff -Nru node-parse-filepath-1.0.1/debian/tests/control node-parse-filepath-1.0.2/debian/tests/control --- node-parse-filepath-1.0.1/debian/tests/control 2016-12-13 16:24:15.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -Tests: require -Depends: node-parse-filepath - -Test-Command: mocha -R spec -Depends: @, @builddeps@ diff -Nru node-parse-filepath-1.0.1/debian/tests/pkg-js/test node-parse-filepath-1.0.2/debian/tests/pkg-js/test --- node-parse-filepath-1.0.1/debian/tests/pkg-js/test 1970-01-01 00:00:00.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/tests/pkg-js/test 2020-12-23 16:49:17.000000000 +0000 @@ -0,0 +1 @@ +mocha diff -Nru node-parse-filepath-1.0.1/debian/tests/require node-parse-filepath-1.0.2/debian/tests/require --- node-parse-filepath-1.0.1/debian/tests/require 2016-12-13 16:24:15.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/tests/require 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -#!/bin/sh -set -e -nodejs -e "require('parse-filepath');" diff -Nru node-parse-filepath-1.0.1/debian/upstream/metadata node-parse-filepath-1.0.2/debian/upstream/metadata --- node-parse-filepath-1.0.1/debian/upstream/metadata 1970-01-01 00:00:00.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/upstream/metadata 2020-12-23 16:49:17.000000000 +0000 @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/jonschlinkert/parse-filepath/issues +Bug-Submit: https://github.com/jonschlinkert/parse-filepath/issues/new +Repository: https://github.com/jonschlinkert/parse-filepath.git +Repository-Browse: https://github.com/jonschlinkert/parse-filepath diff -Nru node-parse-filepath-1.0.1/debian/watch node-parse-filepath-1.0.2/debian/watch --- node-parse-filepath-1.0.1/debian/watch 2016-12-13 16:24:15.000000000 +0000 +++ node-parse-filepath-1.0.2/debian/watch 2020-12-23 16:49:17.000000000 +0000 @@ -1,6 +1,6 @@ -version=3 +version=4 opts=\ -dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\ +dversionmangle=auto,\ filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-parse-filepath-$1.tar.gz/ \ https://github.com/jonschlinkert/parse-filepath/tags .*/archive/v?([\d\.]+).tar.gz diff -Nru node-parse-filepath-1.0.1/index.js node-parse-filepath-1.0.2/index.js --- node-parse-filepath-1.0.1/index.js 2016-03-29 07:51:00.000000000 +0000 +++ node-parse-filepath-1.0.2/index.js 2017-12-19 23:24:25.000000000 +0000 @@ -53,7 +53,12 @@ }); define(obj, 'dir', function() { - return path.dirname(filepath); + var dir = path.dirname(filepath); + if (dir === '.') { + return (filepath[0] === '.') ? dir : ''; + } else { + return dir; + } }); define(obj, 'dirname', function() { diff -Nru node-parse-filepath-1.0.1/package.json node-parse-filepath-1.0.2/package.json --- node-parse-filepath-1.0.1/package.json 2016-03-29 07:51:00.000000000 +0000 +++ node-parse-filepath-1.0.2/package.json 2017-12-19 23:24:25.000000000 +0000 @@ -1,7 +1,7 @@ { "name": "parse-filepath", "description": "Pollyfill for node.js `path.parse`, parses a filepath into an object.", - "version": "1.0.1", + "version": "1.0.2", "homepage": "https://github.com/jonschlinkert/parse-filepath", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", "repository": "jonschlinkert/parse-filepath", @@ -20,7 +20,7 @@ "test": "mocha" }, "dependencies": { - "is-absolute": "^0.2.3", + "is-absolute": "^1.0.0", "map-cache": "^0.2.0", "path-root": "^0.1.1" }, diff -Nru node-parse-filepath-1.0.1/test.js node-parse-filepath-1.0.2/test.js --- node-parse-filepath-1.0.1/test.js 2016-03-29 07:51:00.000000000 +0000 +++ node-parse-filepath-1.0.2/test.js 2017-12-19 23:24:25.000000000 +0000 @@ -4,10 +4,18 @@ require('should'); var path = require('path'); var assert = require('assert'); -var parsePath = require('./'); if (typeof path.parse === 'function') { describe('with native `path.parse` method:', function() { + + var parsePath; + + beforeEach(function() { + // Avoid cache + delete require.cache[require.resolve('./')]; + parsePath = require('./'); + }); + describe('dotfiles', function() { it('should get the absolute path:', function() { var parsed = parsePath('foo/bar/baz/.dotfile'); @@ -16,6 +24,9 @@ it('should specify if a path is absolute:', function() { assert(!parsePath('foo/bar/baz/.dotfile').isAbsolute); + }); + + it('should specify if a path is absolute:', function() { assert(parsePath('/foo/bar/baz/.dotfile').isAbsolute); }); @@ -214,7 +225,9 @@ } describe('without native `path.parse` method:', function() { + var fn; + var parsePath; before(function() { fn = path.parse; @@ -225,6 +238,12 @@ path.parse = fn; }); + beforeEach(function() { + // Avoid cache + delete require.cache[require.resolve('./')]; + parsePath = require('./'); + }); + describe('dotfiles', function() { it('should get the absolute path:', function() { var parsed = parsePath('foo/bar/baz/.dotfile'); @@ -232,7 +251,10 @@ }); it('should specify if a path is absolute:', function() { - assert(!parsePath('foo/bar/baz/.dotfile').isAbsolute);; + assert(!parsePath('foo/bar/baz/.dotfile').isAbsolute); + }); + + it('should specify if a path is absolute', function() { assert(parsePath('/foo/bar/baz/.dotfile').isAbsolute); }); diff -Nru node-parse-filepath-1.0.1/.travis.yml node-parse-filepath-1.0.2/.travis.yml --- node-parse-filepath-1.0.1/.travis.yml 2016-03-29 07:51:00.000000000 +0000 +++ node-parse-filepath-1.0.2/.travis.yml 2017-12-19 23:24:25.000000000 +0000 @@ -1,12 +1,10 @@ sudo: false language: node_js node_js: - - stable - - '5' + - '8' + - '6' - '4' - '0.12' - '0.10' matrix: fast_finish: true - allow_failures: - - node_js: '0.10'