couchdb-stat-collector
Advanced tools
Comparing version 2.0.0-alpha to 2.1.0-alpha
@@ -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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
267960
29
7392
1