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

blue-cot

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blue-cot - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

1

lib/db_handle.js

@@ -197,2 +197,3 @@ const querystring = require('querystring')

}
API.name = dbName
API.jsonRequest = jsonRequest

@@ -199,0 +200,0 @@ return API

@@ -6,2 +6,3 @@ const mapDoc = (res) => res.rows.map(row => row.doc)

return Object.assign(API, {
designDocName,
viewCustom: function (viewName, query) {

@@ -8,0 +9,0 @@ return API.view(designDocName, viewName, query)

2

package.json

@@ -17,3 +17,3 @@ {

},
"version": "3.0.0",
"version": "3.0.1",
"main": "lib/cot.js",

@@ -20,0 +20,0 @@ "dependencies": {

@@ -9,3 +9,4 @@ const should = require('should')

const db = dbHandler('bar')
Object.keys(db).length.should.equal(dbHanlderFunctions.length)
db.name.should.equal('bar')
Object.keys(db).length.should.equal(dbKeys.length)
dbHanlderFunctions.forEach(function (fnName) {

@@ -18,4 +19,4 @@ db[fnName].should.be.a.Function()

const db = cot({ port: 80, hostname: 'foo' })('bar', 'buzz')
Object.keys(db).length.should.equal(withViewFunctions.length)
withViewFunctions.forEach(function (fnName) {
Object.keys(db).length.should.equal(dbKeysWithViewFunctions.length)
dbHanlderFunctionsWithViewFunctions.forEach(function (fnName) {
db[fnName].should.be.a.Function()

@@ -61,3 +62,3 @@ })

const withViewFunctions = dbHanlderFunctions.concat([
const viewFunctions = [
'viewCustom',

@@ -68,2 +69,7 @@ 'viewByKeysCustom',

'viewByKeys'
])
]
const dbHanlderFunctionsWithViewFunctions = dbHanlderFunctions.concat(viewFunctions)
const dbKeys = [ 'name' ].concat(dbHanlderFunctions)
const dbKeysWithViewFunctions = [ 'name', 'designDoc' ].concat(dbHanlderFunctions, viewFunctions)

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