Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-registry-couchapp

Package Overview
Dependencies
Maintainers
5
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-registry-couchapp - npm Package Compare versions

Comparing version 2.5.3 to 2.5.4

test/00-setup.js~

2

package.json
{
"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()
})
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc