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

arangojs

Package Overview
Dependencies
Maintainers
2
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arangojs - npm Package Compare versions

Comparing version 3.8.4 to 3.9.0

164

lib/collection.js

@@ -211,2 +211,16 @@ 'use strict';

},
byKeys: function byKeys(keys, cb) {
var _connection$promisify8 = this._connection.promisify(cb);
var promise = _connection$promisify8.promise;
var callback = _connection$promisify8.callback;
this._api.put('simple/lookup-by-keys', {
collection: this.name,
keys: keys
}, function (err, res) {
if (err) callback(err);else callback(null, res.body.documents);
});
return promise;
},
'import': function _import(data, opts, cb) {

@@ -218,6 +232,6 @@ if (typeof opts === 'function') {

var _connection$promisify8 = this._connection.promisify(cb);
var _connection$promisify9 = this._connection.promisify(cb);
var promise = _connection$promisify8.promise;
var callback = _connection$promisify8.callback;
var promise = _connection$promisify9.promise;
var callback = _connection$promisify9.callback;

@@ -240,6 +254,6 @@ this._api.request({

indexes: function indexes(cb) {
var _connection$promisify9 = this._connection.promisify(cb);
var _connection$promisify10 = this._connection.promisify(cb);
var promise = _connection$promisify9.promise;
var callback = _connection$promisify9.callback;
var promise = _connection$promisify10.promise;
var callback = _connection$promisify10.callback;

@@ -252,6 +266,6 @@ this._api.get('index', { collection: this.name }, function (err, res) {

index: function index(indexHandle, cb) {
var _connection$promisify10 = this._connection.promisify(cb);
var _connection$promisify11 = this._connection.promisify(cb);
var promise = _connection$promisify10.promise;
var callback = _connection$promisify10.callback;
var promise = _connection$promisify11.promise;
var callback = _connection$promisify11.callback;

@@ -264,6 +278,6 @@ this._api.get('index/' + this._indexHandle(indexHandle), function (err, res) {

createIndex: function createIndex(details, cb) {
var _connection$promisify11 = this._connection.promisify(cb);
var _connection$promisify12 = this._connection.promisify(cb);
var promise = _connection$promisify11.promise;
var callback = _connection$promisify11.callback;
var promise = _connection$promisify12.promise;
var callback = _connection$promisify12.callback;

@@ -278,6 +292,6 @@ this._api.post('index', details, {

dropIndex: function dropIndex(indexHandle, cb) {
var _connection$promisify12 = this._connection.promisify(cb);
var _connection$promisify13 = this._connection.promisify(cb);
var promise = _connection$promisify12.promise;
var callback = _connection$promisify12.callback;
var promise = _connection$promisify13.promise;
var callback = _connection$promisify13.callback;

@@ -294,6 +308,6 @@ this._api['delete']('index/' + this._indexHandle(indexHandle), function (err, res) {

var _connection$promisify13 = this._connection.promisify(cb);
var _connection$promisify14 = this._connection.promisify(cb);
var promise = _connection$promisify13.promise;
var callback = _connection$promisify13.callback;
var promise = _connection$promisify14.promise;
var callback = _connection$promisify14.callback;

@@ -307,6 +321,6 @@ this._api.post('index', extend({}, size, {

},
createHashIndex: function createHashIndex(fields, unique, cb) {
if (typeof unique === 'function') {
cb = unique;
unique = undefined;
createHashIndex: function createHashIndex(fields, opts, cb) {
if (typeof opts === 'function') {
cb = opts;
opts = undefined;
}

@@ -316,13 +330,13 @@ if (typeof fields === 'string') {

}
if (typeof opts === 'boolean') {
opts = { unique: opts };
}
var _connection$promisify14 = this._connection.promisify(cb);
var _connection$promisify15 = this._connection.promisify(cb);
var promise = _connection$promisify14.promise;
var callback = _connection$promisify14.callback;
var promise = _connection$promisify15.promise;
var callback = _connection$promisify15.callback;
this._api.post('index', {
type: 'hash',
fields: fields,
unique: Boolean(unique)
}, { collection: this.name }, function (err, res) {
opts = extend({ unique: false }, opts, { type: 'hash', fields: fields });
this._api.post('index', opts, { collection: this.name }, function (err, res) {
if (err) callback(err);else callback(null, res.body);

@@ -332,6 +346,6 @@ });

},
createSkipList: function createSkipList(fields, unique, cb) {
if (typeof unique === 'function') {
cb = unique;
unique = undefined;
createSkipList: function createSkipList(fields, opts, cb) {
if (typeof opts === 'function') {
cb = opts;
opts = undefined;
}

@@ -341,13 +355,13 @@ if (typeof fields === 'string') {

}
if (typeof opts === 'boolean') {
opts = { unique: opts };
}
var _connection$promisify15 = this._connection.promisify(cb);
var _connection$promisify16 = this._connection.promisify(cb);
var promise = _connection$promisify15.promise;
var callback = _connection$promisify15.callback;
var promise = _connection$promisify16.promise;
var callback = _connection$promisify16.callback;
this._api.post('index', {
type: 'skiplist',
fields: fields,
unique: Boolean(unique)
}, { collection: this.name }, function (err, res) {
opts = extend({ unique: false }, opts, { type: 'skiplist', fields: fields });
this._api.post('index', opts, { collection: this.name }, function (err, res) {
if (err) callback(err);else callback(null, res.body);

@@ -366,6 +380,6 @@ });

var _connection$promisify16 = this._connection.promisify(cb);
var _connection$promisify17 = this._connection.promisify(cb);
var promise = _connection$promisify16.promise;
var callback = _connection$promisify16.callback;
var promise = _connection$promisify17.promise;
var callback = _connection$promisify17.callback;

@@ -389,6 +403,6 @@ this._api.post('index', extend({}, opts, {

var _connection$promisify17 = this._connection.promisify(cb);
var _connection$promisify18 = this._connection.promisify(cb);
var promise = _connection$promisify17.promise;
var callback = _connection$promisify17.callback;
var promise = _connection$promisify18.promise;
var callback = _connection$promisify18.callback;

@@ -414,6 +428,6 @@ this._api.post('index', {

var _connection$promisify18 = this._connection.promisify(cb);
var _connection$promisify19 = this._connection.promisify(cb);
var promise = _connection$promisify18.promise;
var callback = _connection$promisify18.callback;
var promise = _connection$promisify19.promise;
var callback = _connection$promisify19.callback;

@@ -440,6 +454,6 @@ var self = this;

var _connection$promisify19 = this._connection.promisify(cb);
var _connection$promisify20 = this._connection.promisify(cb);
var promise = _connection$promisify19.promise;
var callback = _connection$promisify19.callback;
var promise = _connection$promisify20.promise;
var callback = _connection$promisify20.callback;

@@ -466,6 +480,6 @@ var self = this;

var _connection$promisify20 = this._connection.promisify(cb);
var _connection$promisify21 = this._connection.promisify(cb);
var promise = _connection$promisify20.promise;
var callback = _connection$promisify20.callback;
var promise = _connection$promisify21.promise;
var callback = _connection$promisify21.callback;

@@ -493,6 +507,6 @@ var self = this;

document: function document(documentHandle, cb) {
var _connection$promisify21 = this._connection.promisify(cb);
var _connection$promisify22 = this._connection.promisify(cb);
var promise = _connection$promisify21.promise;
var callback = _connection$promisify21.callback;
var promise = _connection$promisify22.promise;
var callback = _connection$promisify22.callback;

@@ -505,6 +519,6 @@ this._api.get('document/' + this._documentHandle(documentHandle), function (err, res) {

save: function save(data, cb) {
var _connection$promisify22 = this._connection.promisify(cb);
var _connection$promisify23 = this._connection.promisify(cb);
var promise = _connection$promisify22.promise;
var callback = _connection$promisify22.callback;
var promise = _connection$promisify23.promise;
var callback = _connection$promisify23.callback;

@@ -528,6 +542,6 @@ this._api.post('document/', data, {

edge: function edge(documentHandle, cb) {
var _connection$promisify23 = this._connection.promisify(cb);
var _connection$promisify24 = this._connection.promisify(cb);
var promise = _connection$promisify23.promise;
var callback = _connection$promisify23.callback;
var promise = _connection$promisify24.promise;
var callback = _connection$promisify24.callback;

@@ -540,6 +554,6 @@ this._api.get('edge/' + this._documentHandle(documentHandle), function (err, res) {

save: function save(data, fromId, toId, cb) {
var _connection$promisify24 = this._connection.promisify(cb);
var _connection$promisify25 = this._connection.promisify(cb);
var promise = _connection$promisify24.promise;
var callback = _connection$promisify24.callback;
var promise = _connection$promisify25.promise;
var callback = _connection$promisify25.callback;

@@ -556,6 +570,6 @@ this._api.post('edge/', data, {

_edges: function _edges(documentHandle, direction, cb) {
var _connection$promisify25 = this._connection.promisify(cb);
var _connection$promisify26 = this._connection.promisify(cb);
var promise = _connection$promisify25.promise;
var callback = _connection$promisify25.callback;
var promise = _connection$promisify26.promise;
var callback = _connection$promisify26.callback;

@@ -585,6 +599,6 @@ this._api.get('edges/' + this.name, {

var _connection$promisify26 = this._connection.promisify(cb);
var _connection$promisify27 = this._connection.promisify(cb);
var promise = _connection$promisify26.promise;
var callback = _connection$promisify26.callback;
var promise = _connection$promisify27.promise;
var callback = _connection$promisify27.callback;

@@ -591,0 +605,0 @@ this._api.post('traversal', extend({}, opts, {

@@ -14,2 +14,3 @@ 'use strict';

this._index = 0;
this.count = body.count;
}

@@ -16,0 +17,0 @@

@@ -387,3 +387,7 @@ 'use strict';

},
query: function query(_query, bindVars, cb) {
query: function query(_query, bindVars, opts, cb) {
if (typeof opts === 'function') {
cb = opts;
opts = undefined;
}
if (typeof bindVars === 'function') {

@@ -403,6 +407,4 @@ cb = bindVars;

var self = this;
self._api.post('cursor', {
query: _query,
bindVars: bindVars
}, function (err, res) {
opts = extend({}, opts, { query: _query, bindVars: bindVars });
self._api.post('cursor', opts, function (err, res) {
if (err) callback(err);else callback(null, new ArrayCursor(self._connection, res.body));

@@ -409,0 +411,0 @@ });

{
"name": "arangojs",
"version": "3.8.4",
"version": "3.9.0",
"description": "The official ArangoDB JavaScript driver.",

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

Sorry, the diff of this file is too big to display

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