New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

couchdbjs

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

couchdbjs - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

26

index.js

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

const url = require('url')
const colors = require('colors')
const stream = require('stream')

@@ -17,3 +16,2 @@

}
this.log = false;
if (arguments.length == 2) { // To be removed in version 2.0.0

@@ -25,3 +23,2 @@ let options = arguments[1]

if (options.port) this.config.port = options.port
if (options.log) this.log = true
}

@@ -36,3 +33,2 @@ if (arguments.length == 1) {

if (options.port) this.config.port = options.port
if (options.log) this.log = true
}

@@ -51,3 +47,3 @@ }

else if (res.statusCode == 200) {
console.log(`Conected to database successfully at ${uri.green}`)
console.log(`Connected to database successfully at ${uri}`)
cb(null)

@@ -59,3 +55,3 @@ }

else {
console.log(`Created and conected to database successfully at ${uri.green}`)
console.log(`Connected to database successfully at ${uri}`)
cb(null)

@@ -88,3 +84,3 @@ }

let data = JSON.parse(body)
if (data.error) cb(data)
if (data.error) cb(new Error(data.reason))
else cb(null, data)

@@ -115,3 +111,3 @@ }

let data = JSON.parse(body)
if (data.error) cb(data)
if (data.error) cb(new Error(data.reason))
else cb(null, data)

@@ -161,3 +157,3 @@ }

let data = JSON.parse(body)
if (data.error) cb(data)
if (data.error) cb(new Error(data.reason))
else cb(null, data.uuids)

@@ -183,3 +179,3 @@ }

let data = JSON.parse(body)
if (data.error) cb(data)
if (data.error) cb(new Error(data.reason))
else cb(null, data)

@@ -202,3 +198,3 @@ }

let data = JSON.parse(body)
if (data.error) cb(data)
if (data.error) cb(new Error(data.reason))
else cb(null, data)

@@ -216,3 +212,3 @@ }

let data = JSON.parse(body)
if (data.error) cb(data)
if (data.error) cb(new Error(data.reason))
else cb(null, data)

@@ -244,3 +240,3 @@ }

let data = JSON.parse(body)
if (data.error) cb(data)
if (data.error) cb(new Error(data.reason))
else cb(null, data)

@@ -271,3 +267,3 @@ }

let data = JSON.parse(body)
if (data.error) cb(data)
if (data.error) cb(new Error(data.reason))
else cb(null, data)

@@ -301,3 +297,3 @@ }

let data = JSON.parse(body)
if (data.error) cb(data)
if (data.error) cb(new Error(data.reason))
else cb(null, data)

@@ -304,0 +300,0 @@ }

{
"name": "couchdbjs",
"version": "1.0.1",
"version": "1.0.2",
"description": "A node client for couchdb.",
"main": "index.js",
"scripts": {
"test": "node test.js"
"test": "echo \"Error: no test specified\" && exit 1"
},

@@ -27,5 +27,4 @@ "repository": {

"dependencies": {
"colors": "^1.1.2",
"request": "^2.73.0"
}
}

@@ -5,2 +5,4 @@ # couchdbjs

[![NPM](https://nodei.co/npm/couchdbjs.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/couchdbjs/)
### Install

@@ -7,0 +9,0 @@ ```shell

Sorry, the diff of this file is not supported yet

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