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

couchdb-stat-collector

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-stat-collector - npm Package Compare versions

Comparing version 2.0.0-alpha to 2.1.0-alpha

localhost_5984_20180413_235522_analysis.json

9

index.js

@@ -23,2 +23,3 @@ 'use strict'

const dbDesignDocs = require('./tasks/db/design-docs')
const dbDesignDocsInfo = require('./tasks/db/design-docs-info')
const dbSecurity = require('./tasks/db/security')

@@ -41,3 +42,8 @@ const dbConflicts = require('./tasks/db/conflicts')

info: dbInfo,
design: dbDesignDocs,
design: function (options, dbName, callback) {
async.applyEachSeries([
dbDesignDocs,
dbDesignDocsInfo
], options, dbName, callback)
},
security: dbSecurity

@@ -47,3 +53,2 @@ }, options, dbName, callback)

}
// TODO ddocs info
}

@@ -50,0 +55,0 @@ if (info.version > '2') {

@@ -9,4 +9,14 @@ /**

if (config.admins) {
config.admins = { redacted: true }
config.admins = {
redacted: true
}
} else {
config.admins = {
redacted: false,
party: true
}
}
if (config.couch_httpd_auth && config.couch_httpd_auth.secret) {
config.couch_httpd_auth.secret = 'redacted'
}
}

@@ -44,4 +44,4 @@ 'use strict'

console.log('')
callback()
callback(null, result)
})
}
{
"name": "couchdb-stat-collector",
"version": "2.0.0-alpha",
"version": "2.1.0-alpha",
"description": "A stat collection tool for CouchDB.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -25,3 +25,3 @@ # couchdb-stat-collector

Replace the value for `COUCH_URL` with the URL for your CouchDB instance, including admin credentials.
Replace the first positional parameter with the URL for your CouchDB instance, including admin credentials. Alternatively, you can set the `COUCH_URL` environment variable with the correct URL.

@@ -28,0 +28,0 @@ Once completed, it should give you a success message like this:

@@ -25,2 +25,3 @@ 'use strict'

function (result, callback) {
if (!result || !result.rows || !result.rows.length) return callback()
var tasks = result.rows.map((row) => {

@@ -42,9 +43,2 @@ return function (callback) {

], callback)
// request(`${options.couchUrl}/${endpoint}`, function (error, response, body) {
// if (error) {
// cancelWithErrorMessage('Could not read CouchDB system info.', options, callback)
// } else {
// data.write(options.instanceName, endpoint, body, callback)
// }
// })
}

@@ -44,4 +44,5 @@ const fs = require('graceful-fs')

conflicts: true
}, (error) => {
}, (error, result) => {
t.error(error)
t.ok(result)

@@ -48,0 +49,0 @@ t.ok(fs.statSync(`${instanceName}.json.gz`).isFile())

Sorry, the diff of this file is too big to display

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