diff -Nru node-pkg-up-1.0.0/debian/changelog node-pkg-up-3.1.0/debian/changelog --- node-pkg-up-1.0.0/debian/changelog 2020-12-29 02:08:59.000000000 +0000 +++ node-pkg-up-3.1.0/debian/changelog 2021-12-13 16:10:07.000000000 +0000 @@ -1,9 +1,35 @@ -node-pkg-up (1.0.0-1.1) unstable; urgency=medium +node-pkg-up (3.1.0-1) unstable; urgency=medium - * Non maintainer upload by the Reproducible Builds team. - * No source change upload to rebuild on buildd with .buildinfo files. + * Team upload - -- Holger Levsen Tue, 29 Dec 2020 03:08:59 +0100 + [ Debian Janitor ] + * Trim trailing whitespace. + * Use secure copyright file specification URI. + * Bump debhelper from deprecated 9 to 12. + * Set debhelper-compat version in Build-Depends. + * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, + Repository-Browse. + * Update Vcs-* headers from URL redirect. + * Use canonical URL in Vcs-Git. + * Remove constraints unnecessary since buster: + + node-pkg-up: Drop versioned constraint on node-find-up in Depends. + + [ Yadd ] + * Remove empty leading paragraph in Description. + * Bump debhelper from old 12 to 13. + * Declare compliance with policy 4.6.0 + * Add "Rules-Requires-Root: no" + * Change section to javascript + * Add debian/gbp.conf + * Modernize debian/watch + * Fix filenamemangle + * Fix GitHub tags regex + * Drop nodejs dependency + * Use dh-sequence-nodejs auto install + * New upstream version 3.1.0 + * Enable upstream test (tape instead of ava) + + -- Yadd Mon, 13 Dec 2021 17:10:07 +0100 node-pkg-up (1.0.0-1) unstable; urgency=low diff -Nru node-pkg-up-1.0.0/debian/compat node-pkg-up-3.1.0/debian/compat --- node-pkg-up-1.0.0/debian/compat 2016-12-07 14:34:45.000000000 +0000 +++ node-pkg-up-3.1.0/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -9 diff -Nru node-pkg-up-1.0.0/debian/control node-pkg-up-3.1.0/debian/control --- node-pkg-up-1.0.0/debian/control 2016-12-07 14:34:45.000000000 +0000 +++ node-pkg-up-3.1.0/debian/control 2021-12-13 16:07:45.000000000 +0000 @@ -1,23 +1,22 @@ Source: node-pkg-up -Section: web +Section: javascript Priority: optional Maintainer: Debian Javascript Maintainers Uploaders: Sruthi Chandran -Build-Depends: - debhelper (>= 9) - , dh-buildinfo - , nodejs -Standards-Version: 3.9.8 -Homepage: https://github.com/sindresorhus/pkg-up#readme -Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-pkg-up.git -Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-pkg-up.git +Build-Depends: debhelper-compat (= 13) + , dh-sequence-nodejs + , node-find-up + , node-tape +Standards-Version: 4.6.0 +Vcs-Browser: https://salsa.debian.org/js-team/node-pkg-up +Vcs-Git: https://salsa.debian.org/js-team/node-pkg-up.git +Homepage: https://github.com/sindresorhus/pkg-up +Testsuite: autopkgtest-pkg-nodejs +Rules-Requires-Root: no Package: node-pkg-up Architecture: all -Depends: - ${misc:Depends} - , nodejs - , node-find-up (>= 1.0.0) +Depends: ${misc:Depends} + , node-find-up Description: Find the closest package.json file - . Node.js is an event-based server-side JavaScript engine. diff -Nru node-pkg-up-1.0.0/debian/copyright node-pkg-up-3.1.0/debian/copyright --- node-pkg-up-1.0.0/debian/copyright 2016-12-07 14:34:45.000000000 +0000 +++ node-pkg-up-3.1.0/debian/copyright 2021-12-13 16:02:56.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: pkg-up Upstream-Contact: https://github.com/sindresorhus/pkg-up/issues Source: https://github.com/sindresorhus/pkg-up#readme @@ -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-pkg-up-1.0.0/debian/gbp.conf node-pkg-up-3.1.0/debian/gbp.conf --- node-pkg-up-1.0.0/debian/gbp.conf 1970-01-01 00:00:00.000000000 +0000 +++ node-pkg-up-3.1.0/debian/gbp.conf 2021-12-13 15:51:02.000000000 +0000 @@ -0,0 +1,5 @@ +[DEFAULT] +pristine-tar = True + +[import-orig] +filter = [ '.gitignore', '.travis.yml', '.git*' ] diff -Nru node-pkg-up-1.0.0/debian/install node-pkg-up-3.1.0/debian/install --- node-pkg-up-1.0.0/debian/install 2016-12-07 14:34:45.000000000 +0000 +++ node-pkg-up-3.1.0/debian/install 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -index.js usr/lib/nodejs/pkg-up/ -package.json usr/lib/nodejs/pkg-up/ diff -Nru node-pkg-up-1.0.0/debian/patches/replace-ava-by-tape.patch node-pkg-up-3.1.0/debian/patches/replace-ava-by-tape.patch --- node-pkg-up-1.0.0/debian/patches/replace-ava-by-tape.patch 1970-01-01 00:00:00.000000000 +0000 +++ node-pkg-up-3.1.0/debian/patches/replace-ava-by-tape.patch 2021-12-13 16:07:21.000000000 +0000 @@ -0,0 +1,29 @@ +Description: replace ava by tape +Author: Yadd +Forwarded: not-needed +Last-Update: 2021-12-13 + +--- a/test.js ++++ b/test.js +@@ -1,6 +1,6 @@ +-import path from 'path'; +-import test from 'ava'; +-import pkgUp from '.'; ++const path = require('path'); ++const test = require('tape'); ++const pkgUp = require('.'); + + const cwd = path.join(__dirname, 'fixture'); + const pkgPath = path.join(__dirname, 'package.json'); +@@ -8,9 +8,11 @@ + test('async', async t => { + t.is(await pkgUp({cwd}), pkgPath); + t.is(path.dirname(await pkgUp()), __dirname); ++ t.end(); + }); + + test('sync', t => { + t.is(pkgUp.sync({cwd}), pkgPath); + t.is(path.dirname(pkgUp.sync()), __dirname); ++ t.end(); + }); diff -Nru node-pkg-up-1.0.0/debian/patches/series node-pkg-up-3.1.0/debian/patches/series --- node-pkg-up-1.0.0/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ node-pkg-up-3.1.0/debian/patches/series 2021-12-13 16:07:01.000000000 +0000 @@ -0,0 +1 @@ +replace-ava-by-tape.patch diff -Nru node-pkg-up-1.0.0/debian/rules node-pkg-up-3.1.0/debian/rules --- node-pkg-up-1.0.0/debian/rules 2016-12-07 14:34:45.000000000 +0000 +++ node-pkg-up-3.1.0/debian/rules 2021-12-13 16:03:04.000000000 +0000 @@ -6,10 +6,3 @@ %: dh $@ - -#override_dh_auto_build: - -#override_dh_auto_test: - - - diff -Nru node-pkg-up-1.0.0/debian/salsa-ci.yml node-pkg-up-3.1.0/debian/salsa-ci.yml --- node-pkg-up-1.0.0/debian/salsa-ci.yml 1970-01-01 00:00:00.000000000 +0000 +++ node-pkg-up-3.1.0/debian/salsa-ci.yml 2021-12-13 16:00:04.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-pkg-up-1.0.0/debian/tests/control node-pkg-up-3.1.0/debian/tests/control --- node-pkg-up-1.0.0/debian/tests/control 2016-12-07 14:34:45.000000000 +0000 +++ node-pkg-up-3.1.0/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -Tests: require -Depends: node-pkg-up diff -Nru node-pkg-up-1.0.0/debian/tests/pkg-js/test node-pkg-up-3.1.0/debian/tests/pkg-js/test --- node-pkg-up-1.0.0/debian/tests/pkg-js/test 1970-01-01 00:00:00.000000000 +0000 +++ node-pkg-up-3.1.0/debian/tests/pkg-js/test 2021-12-13 16:07:34.000000000 +0000 @@ -0,0 +1 @@ +tape test.js diff -Nru node-pkg-up-1.0.0/debian/tests/require node-pkg-up-3.1.0/debian/tests/require --- node-pkg-up-1.0.0/debian/tests/require 2016-12-07 14:34:45.000000000 +0000 +++ node-pkg-up-3.1.0/debian/tests/require 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -#!/bin/sh -set -e -nodejs -e "require('pkg-up');" diff -Nru node-pkg-up-1.0.0/debian/upstream/metadata node-pkg-up-3.1.0/debian/upstream/metadata --- node-pkg-up-1.0.0/debian/upstream/metadata 1970-01-01 00:00:00.000000000 +0000 +++ node-pkg-up-3.1.0/debian/upstream/metadata 2021-12-13 15:51:00.000000000 +0000 @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/sindresorhus/pkg-up/issues +Bug-Submit: https://github.com/sindresorhus/pkg-up/issues/new +Repository: https://github.com/sindresorhus/pkg-up.git +Repository-Browse: https://github.com/sindresorhus/pkg-up diff -Nru node-pkg-up-1.0.0/debian/watch node-pkg-up-3.1.0/debian/watch --- node-pkg-up-1.0.0/debian/watch 2016-12-07 14:34:45.000000000 +0000 +++ node-pkg-up-3.1.0/debian/watch 2021-12-13 16:04:35.000000000 +0000 @@ -1,5 +1,5 @@ -version=3 +version=4 opts=\ -dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\ -filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-pkg-up-$1.tar.gz/ \ - https://github.com/sindresorhus/pkg-up/tags .*/archive/v?([\d\.]+).tar.gz +dversionmangle=auto,\ +filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-pkg-up-$1/ \ + https://github.com/sindresorhus/pkg-up/tags .*/archive/.*/v?([\d\.]+).tar.gz diff -Nru node-pkg-up-1.0.0/.editorconfig node-pkg-up-3.1.0/.editorconfig --- node-pkg-up-1.0.0/.editorconfig 2015-09-21 10:17:12.000000000 +0000 +++ node-pkg-up-3.1.0/.editorconfig 2019-04-15 03:56:11.000000000 +0000 @@ -7,9 +7,6 @@ trim_trailing_whitespace = true insert_final_newline = true -[{package.json,*.yml}] +[*.yml] indent_style = space indent_size = 2 - -[*.md] -trim_trailing_whitespace = false diff -Nru node-pkg-up-1.0.0/.gitattributes node-pkg-up-3.1.0/.gitattributes --- node-pkg-up-1.0.0/.gitattributes 2015-09-21 10:17:12.000000000 +0000 +++ node-pkg-up-3.1.0/.gitattributes 2019-04-15 03:56:11.000000000 +0000 @@ -1 +1 @@ -* text=auto +* text=auto eol=lf diff -Nru node-pkg-up-1.0.0/.gitignore node-pkg-up-3.1.0/.gitignore --- node-pkg-up-1.0.0/.gitignore 2015-09-21 10:17:12.000000000 +0000 +++ node-pkg-up-3.1.0/.gitignore 2019-04-15 03:56:11.000000000 +0000 @@ -1 +1,2 @@ node_modules +yarn.lock diff -Nru node-pkg-up-1.0.0/index.d.ts node-pkg-up-3.1.0/index.d.ts --- node-pkg-up-1.0.0/index.d.ts 1970-01-01 00:00:00.000000000 +0000 +++ node-pkg-up-3.1.0/index.d.ts 2019-04-15 03:56:11.000000000 +0000 @@ -0,0 +1,48 @@ +declare namespace pkgUp { + interface Options { + /** + Directory to start from. + + @default process.cwd() + */ + readonly cwd?: string; + } +} + +declare const pkgUp: { + /** + Find the closest `package.json` file. + + @returns The filepath, or `null` if it couldn't be found. + + @example + ``` + // / + // └── Users + // └── sindresorhus + // └── foo + // ├── package.json + // └── bar + // ├── baz + // └── example.js + + // example.js + import pkgUp = require('pkg-up'); + + (async () => { + console.log(await pkgUp()); + //=> '/Users/sindresorhus/foo/package.json' + })(); + ``` + */ + (options?: pkgUp.Options): Promise; + + /** + Synchronously find the closest `package.json` file. + + @returns The filepath, or `null` if it couldn't be found. + */ + sync(options?: pkgUp.Options): string | null; +}; + +export = pkgUp; diff -Nru node-pkg-up-1.0.0/index.js node-pkg-up-3.1.0/index.js --- node-pkg-up-1.0.0/index.js 2015-09-21 10:17:12.000000000 +0000 +++ node-pkg-up-3.1.0/index.js 2019-04-15 03:56:11.000000000 +0000 @@ -1,10 +1,5 @@ 'use strict'; -var findUp = require('find-up'); +const findUp = require('find-up'); -module.exports = function (cwd) { - return findUp('package.json', {cwd: cwd}); -}; - -module.exports.sync = function (cwd) { - return findUp.sync('package.json', {cwd: cwd}); -}; +module.exports = async ({cwd} = {}) => findUp('package.json', {cwd}); +module.exports.sync = ({cwd} = {}) => findUp.sync('package.json', {cwd}); diff -Nru node-pkg-up-1.0.0/index.test-d.ts node-pkg-up-3.1.0/index.test-d.ts --- node-pkg-up-1.0.0/index.test-d.ts 1970-01-01 00:00:00.000000000 +0000 +++ node-pkg-up-3.1.0/index.test-d.ts 2019-04-15 03:56:11.000000000 +0000 @@ -0,0 +1,7 @@ +import {expectType} from 'tsd'; +import pkgUp = require('.'); + +expectType>(pkgUp()); +expectType>(pkgUp({cwd: '.'})); +expectType(pkgUp.sync()); +expectType(pkgUp.sync({cwd: '.'})); diff -Nru node-pkg-up-1.0.0/license node-pkg-up-3.1.0/license --- node-pkg-up-1.0.0/license 2015-09-21 10:17:12.000000000 +0000 +++ node-pkg-up-3.1.0/license 2019-04-15 03:56:11.000000000 +0000 @@ -1,21 +1,9 @@ -The MIT License (MIT) +MIT License Copyright (c) Sindre Sorhus (sindresorhus.com) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN 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. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 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-pkg-up-1.0.0/.npmrc node-pkg-up-3.1.0/.npmrc --- node-pkg-up-1.0.0/.npmrc 1970-01-01 00:00:00.000000000 +0000 +++ node-pkg-up-3.1.0/.npmrc 2019-04-15 03:56:11.000000000 +0000 @@ -0,0 +1 @@ +package-lock=false diff -Nru node-pkg-up-1.0.0/package.json node-pkg-up-3.1.0/package.json --- node-pkg-up-1.0.0/package.json 2015-09-21 10:17:12.000000000 +0000 +++ node-pkg-up-3.1.0/package.json 2019-04-15 03:56:11.000000000 +0000 @@ -1,52 +1,52 @@ { - "name": "pkg-up", - "version": "1.0.0", - "description": "Find the closest package.json file", - "license": "MIT", - "repository": "sindresorhus/pkg-up", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "pkg", - "package", - "file", - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "package", - "resolve", - "parent", - "parents", - "folder", - "directory", - "dir", - "walk", - "walking", - "path" - ], - "dependencies": { - "find-up": "^1.0.0" - }, - "devDependencies": { - "ava": "*", - "xo": "*" - } + "name": "pkg-up", + "version": "3.1.0", + "description": "Find the closest package.json file", + "license": "MIT", + "repository": "sindresorhus/pkg-up", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "pkg", + "package", + "file", + "find", + "up", + "find-up", + "findup", + "look-up", + "look", + "search", + "match", + "resolve", + "parent", + "parents", + "folder", + "directory", + "dir", + "walk", + "walking", + "path" + ], + "dependencies": { + "find-up": "^3.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } diff -Nru node-pkg-up-1.0.0/readme.md node-pkg-up-3.1.0/readme.md --- node-pkg-up-1.0.0/readme.md 2015-09-21 10:17:12.000000000 +0000 +++ node-pkg-up-3.1.0/readme.md 2019-04-15 03:56:11.000000000 +0000 @@ -6,7 +6,7 @@ ## Install ``` -$ npm install --save pkg-up +$ npm install pkg-up ``` @@ -25,29 +25,33 @@ ```js // example.js -var pkgUp = require('pkg-up'); +const pkgUp = require('pkg-up'); -pkgUp().then(function (filepath) { - console.log(filepath); +(async () => { + console.log(await pkgUp()); //=> '/Users/sindresorhus/foo/package.json' -}); +})(); ``` ## API -### pkgUp([cwd]) +### pkgUp([options]) -Returns a promise that resolves to a filepath or `null`. +Returns a `Promise` for the filepath, or `Promise` if it couldn't be found. -### pkgUp.sync([cwd]) +### pkgUp.sync([options]) -Returns a filepath or `null`. +Returns the filepath, or `null` if it couldn't be found. + +#### options + +Type: `Object` #### cwd -Type: `string` -Default: `'.'` +Type: `string`
+Default: `process.cwd()` Directory to start from. @@ -55,10 +59,10 @@ ## Related - [read-pkg-up](https://github.com/sindresorhus/read-pkg-up) - Read the closest package.json file -- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of a npm package +- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package - [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories ## License -MIT © [Sindre Sorhus](http://sindresorhus.com) +MIT © [Sindre Sorhus](https://sindresorhus.com) diff -Nru node-pkg-up-1.0.0/test.js node-pkg-up-3.1.0/test.js --- node-pkg-up-1.0.0/test.js 2015-09-21 10:17:12.000000000 +0000 +++ node-pkg-up-3.1.0/test.js 2019-04-15 03:56:11.000000000 +0000 @@ -1,15 +1,16 @@ import path from 'path'; import test from 'ava'; -import fn from './'; +import pkgUp from '.'; const cwd = path.join(__dirname, 'fixture'); const pkgPath = path.join(__dirname, 'package.json'); -test('async', t => { - return fn(cwd).then(x => t.is(x, pkgPath)); +test('async', async t => { + t.is(await pkgUp({cwd}), pkgPath); + t.is(path.dirname(await pkgUp()), __dirname); }); test('sync', t => { - t.is(fn.sync(cwd), pkgPath); - t.end(); + t.is(pkgUp.sync({cwd}), pkgPath); + t.is(path.dirname(pkgUp.sync()), __dirname); }); diff -Nru node-pkg-up-1.0.0/.travis.yml node-pkg-up-3.1.0/.travis.yml --- node-pkg-up-1.0.0/.travis.yml 2015-09-21 10:17:12.000000000 +0000 +++ node-pkg-up-3.1.0/.travis.yml 2019-04-15 03:56:11.000000000 +0000 @@ -1,5 +1,4 @@ language: node_js node_js: - - 'stable' - - '0.12' - - '0.10' + - '10' + - '8'