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

aqb

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aqb - npm Package Compare versions

Comparing version 1.10.1 to 1.11.0

2

package.json
{
"name": "aqb",
"version": "1.10.1",
"version": "1.11.0",
"description": "ArangoDB AQL query builder.",

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

@@ -493,2 +493,9 @@ /*jshint browserify: true */

};
PartialStatement.prototype.upsert = function (upsertExpr) {
var self = this, insertFn;
insertFn = function (insertExpr) {
return new UpsertExpression(self, upsertExpr, insertExpr);
};
return {insert: insertFn};
};
PartialStatement.prototype.insert = function (expr) {

@@ -814,2 +821,19 @@ var self = this, inFn;

function UpsertExpression(prev, upsertExpr, insertExpr) {
this.prev = prev;
this.upsertExpr = autoCastToken(upsertExpr);
this.insertExpr = autoCastToken(insertExpr);
}
UpsertExpression.prototype = new Statement();
UpsertExpression.prototype.constructor = UpsertExpression;
UpsertExpression.prototype.update = PartialStatement.prototype.update;
UpsertExpression.prototype.replace = PartialStatement.prototype.replace;
UpsertExpression.prototype.toAQL = function () {
return (
(this.prev ? this.prev.toAQL() + ' ' : '') +
'UPSERT ' + wrapAQL(this.upsertExpr) +
' INSERT ' + wrapAQL(this.insertExpr)
);
};
function InsertExpression(prev, expr, collection) {

@@ -899,2 +923,3 @@ this.prev = prev;

exports.RemoveExpression = RemoveExpression;
exports.UpsertExpression = UpsertExpression;
exports.InsertExpression = InsertExpression;

@@ -901,0 +926,0 @@ exports.UpdateExpression = UpdateExpression;

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