Socket
Socket
Sign inDemoInstall

couchdb-secure

Package Overview
Dependencies
92
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.5 to 1.3.6

test/fixtures/security.js

2

package.json
{
"name": "couchdb-secure",
"version": "1.3.5",
"version": "1.3.6",
"description": "Write couchdb security object from file or directory.",

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

@@ -28,2 +28,22 @@ var test = require('tape')

test('configure from commonjs', function(t) {
clear(function() {
secure(url + '/' + dbname, path.join(__dirname, 'fixtures', 'security.js'), function(error, response) {
t.notOk(error, 'no error occured')
t.ok(response.ok, 'response is ok')
t.end()
})
})
})
test('configure from commonjs/index', function(t) {
clear(function() {
secure(url + '/' + dbname, path.join(__dirname, 'fixtures', 'security'), function(error, response) {
t.notOk(error, 'no error occured')
t.ok(response.ok, 'response is ok')
t.end()
})
})
})
test('nano object as url', function(t) {

@@ -30,0 +50,0 @@ secure(db, path.join(__dirname, 'fixtures', 'security.json'), function(error, response) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc