couchdb_utilities
Advanced tools
Comparing version 1.0.4 to 1.0.5
14
index.js
@@ -8,3 +8,3 @@ | ||
var couchDBURL = couchURL + "/" + databaseName; | ||
return this.returnObjfromURL(couchDBURL); | ||
return this.returnObjfromURL(couchDBURL); | ||
}; | ||
@@ -15,7 +15,17 @@ | ||
var returnObj = {} | ||
var syncRequest = require('sync-request'); | ||
returnObj.startTime = (new Date).getTime(); | ||
var response = syncRequest('get', URL ); | ||
returnObj.endTime = (new Date).getTime(); | ||
returnObj.duration = returnObj.endTime - returnObj.startTime; | ||
returnObj.duration = returnObj.duration + " milliseconds" | ||
var responseString = response.getBody('utf8'); | ||
return JSON.parse(responseString); | ||
returnObj.responseCode = statusCode; | ||
returnObj.responseString = responseString; | ||
}; |
{ | ||
"name": "couchdb_utilities", | ||
"version": "v1.0.4", | ||
"version": "v1.0.5", | ||
"description": "This package will help you sync the design documents from one couchdb to another", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1569
20