Comparing version 3.5.0 to 3.5.1
@@ -207,3 +207,8 @@ 'use strict'; | ||
}, | ||
createDatabase: function createDatabase(databaseName, cb) { | ||
createDatabase: function createDatabase(databaseName, users, cb) { | ||
if (typeof users === 'function') { | ||
cb = users; | ||
users = undefined; | ||
} | ||
var _promisify11 = promisify(cb); | ||
@@ -215,3 +220,6 @@ | ||
var self = this; | ||
self._api.post('database', { name: databaseName }, function (err, res) { | ||
self._api.post('database', { | ||
name: databaseName, | ||
users: users | ||
}, function (err, res) { | ||
if (err) callback(err);else { | ||
@@ -218,0 +226,0 @@ callback(null, new Database(extend({}, self._connection.config, { databaseName: databaseName }))); |
{ | ||
"name": "arangojs", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"description": "The official ArangoDB JavaScript driver.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
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
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
153115
1535
2795