npm-registry-couchapp
Advanced tools
Comparing version 2.5.3 to 2.5.4
{ | ||
"name": "npm-registry-couchapp", | ||
"version": "2.5.3", | ||
"version": "2.5.4", | ||
"description": "The CouchApp implementation of an npm registry", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -28,2 +28,4 @@ // start the couchdb spinning as a detached child process. | ||
// Without this sudo, Travis will timeout when trying to start couchdb (why?!) | ||
var cmd = 'sudo' | ||
@@ -30,0 +32,0 @@ var args = ['couchdb', '-a', conf] |
@@ -17,23 +17,31 @@ // kill the couchdb process that's running as a detached child process | ||
test('cleanup', function (t) { | ||
try { | ||
var pid = fs.readFileSync(pidfile) | ||
} catch (er) {} | ||
if (process.env.TRAVIS) { | ||
test('nocleanup', function (t) { | ||
t.pass('No cleanup on travis') | ||
t.end() | ||
}) | ||
} | ||
else { | ||
test('cleanup', function (t) { | ||
try { | ||
var pid = fs.readFileSync(pidfile) | ||
} catch (er) {} | ||
if (pid) { | ||
try { process.kill(pid) } catch (er) { | ||
// ok if already killed | ||
t.equal(er.code, 'ESRCH') | ||
if (pid) { | ||
try { process.kill(pid) } catch (er) { | ||
// ok if already killed | ||
t.equal(er.code, 'ESRCH') | ||
} | ||
} | ||
} | ||
var files = [ pidfile, repl, log, _users, db, rdes, dotDelete ] | ||
if (!process.env.TRAVIS) { | ||
files.push(udes); | ||
} | ||
files.forEach(function(file) { | ||
rimraf.sync(file) | ||
var files = [ pidfile, repl, log, _users, db, rdes, dotDelete ] | ||
if (!process.env.TRAVIS) { | ||
files.push(udes); | ||
} | ||
files.forEach(function(file) { | ||
rimraf.sync(file) | ||
}) | ||
t.pass('couch is no more') | ||
t.end() | ||
}) | ||
t.pass('couch is no more') | ||
t.end() | ||
}) | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1173027
133
25548
17
43