...
 
Commits (18)
node-resolve-dir (1.0.1-2) unstable; urgency=medium
* Update Vcs fields for migration to https://salsa.debian.org/
* New upstream release
* Bump debian/compat and std version
-- Paolo Greppi <paolo.greppi@libpf.com> Mon, 23 Apr 2018 09:52:54 +0200
node-resolve-dir (1.0.0-1) unstable; urgency=low
* Initial release (Closes: #842774)
-- Sruthi Chandran <srud@disroot.org> Tue, 01 Nov 2016 12:27:21 +0530
Source: node-resolve-dir
Section: javascript
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Uploaders: Sruthi Chandran <srud@disroot.org>,
Paolo Greppi <paolo.greppi@libpf.com>
Build-Depends:
debhelper (>= 11)
, mocha
, nodejs (>= 2.3.0)
, node-expand-tilde (>= 2.0.0)
, node-global-modules (>= 1.0.0)
Standards-Version: 4.1.4
Homepage: https://github.com/jonschlinkert/resolve-dir
Vcs-Git: https://salsa.debian.org/js-team/node-resolve-dir.git
Vcs-Browser: https://salsa.debian.org/js-team/node-resolve-dir
Package: node-resolve-dir
Architecture: all
Depends:
${misc:Depends}
, nodejs (>= 2.3.0)
, node-expand-tilde (>= 2.0.0)
, node-global-modules (>= 1.0.0)
Description: Resolve a directory
Resolve a directory that is either local, global or in the user's home
directory.
.
Node.js is an event-based server-side JavaScript engine.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: resolve-dir
Upstream-Contact: https://github.com/jonschlinkert/resolve-dir/issues
Source: https://github.com/jonschlinkert/resolve-dir
Files: *
Copyright: 2015-2018, Jon Schlinkert (https://github.com/jonschlinkert)
License: Expat
Files: debian/*
Copyright:
2016, Sruthi Chandran <srud@disroot.org>
2018, Paolo Greppi <paolo.greppi@libpf.com>
License: Expat
License: Expat
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 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.
README.md
package.json usr/lib/nodejs/resolve-dir/
index.js usr/lib/nodejs/resolve-dir/
Description: patch away dependency of tests on homedir-polyfill
Author: Paolo Greppi <paolo.greppi@libpf.com>
Forwarded: not-needed
Index: node-resolve-dir/test.js
===================================================================
--- node-resolve-dir.orig/test.js
+++ node-resolve-dir/test.js
@@ -9,7 +9,7 @@
require('mocha');
var path = require('path');
-var homedir = require('homedir-polyfill');
+var os = require('os');
var assert = require('assert');
var gm = require('global-modules');
var resolve = require('./');
@@ -20,8 +20,8 @@ describe('resolve', function() {
});
it('should resolve the path to user home:', function() {
- assert.equal(resolve('~'), homedir());
- assert.equal(resolve('~/foo'), path.join(homedir(), '/foo'));
+ assert.equal(resolve('~'), os.homedir());
+ assert.equal(resolve('~/foo'), path.join(os.homedir(), '/foo'));
});
it('should resolve the path to global npm modules:', function() {
00-homedir-polyfill.diff
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
#override_dh_auto_build:
override_dh_auto_test:
mocha -R spec
Tests: require
Depends: node-resolve-dir
Test-Command: mocha -R spec
Depends: @, @builddeps@
#!/bin/sh
set -e
nodejs -e "require('resolve-dir');"
version=3
opts=\
dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-resolve-dir-$1.tar.gz/ \
https://github.com/jonschlinkert/resolve-dir/tags .*/archive/v?([\d\.]+).tar.gz