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

couchdb_utilities

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb_utilities - npm Package Compare versions

Comparing version 1.0.11-prerelease to 1.0.12-prerelease

35

index.js

@@ -157,24 +157,29 @@ exports.printMsg = function() {

exports.callURL = function ( Method, URL, Payload ) {
exports.callURL = function ( Method, URL, Payload, headers ) {
var returnObj = {}
var syncRequest = require('sync-request');
var jsonPayload = {
json: JSON.parse( Payload )
};
var returnObj = {}
var syncRequest = require('sync-request');
if ( ! headers ) {
var headers = { "Content-Type": "application/json" };
}
var jsonPayload = {
headers: headers,
body: Payload
};
returnObj.startTime = (new Date).getTime();
var response = syncRequest(Method, URL, jsonPayload );
returnObj.endTime = (new Date).getTime();
returnObj.startTime = (new Date).getTime();
var response = syncRequest(Method, URL, jsonPayload );
returnObj.endTime = (new Date).getTime();
returnObj.duration = returnObj.endTime - returnObj.startTime;
returnObj.duration = returnObj.duration + " milliseconds"
returnObj.duration = returnObj.endTime - returnObj.startTime;
returnObj.duration = returnObj.duration + " milliseconds"
var responseString = response.body.toString('utf8');
var responseString = response.body.toString('utf8');
returnObj.responseCode = response.statusCode;
returnObj.responseString = responseString;
returnObj.responseCode = response.statusCode;
returnObj.responseString = responseString;
return returnObj;
return returnObj;
};
{
"name": "couchdb_utilities",
"version": "v1.0.11prerelease",
"version": "v1.0.12prerelease",
"description": "This package contains utilties to use and support couchdb environments.",

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

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