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

sqb

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqb - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

6

lib/core/conditiongroup.js

@@ -23,4 +23,4 @@ /**

this.logicalOperator = 'and';
if (src)
this.add(src);
if (arguments.length > 0)
this.add.apply(this, arguments);
}

@@ -31,3 +31,3 @@

let arg = arguments[i];
if (!arg.isCondition || arg.isConditionGroup)
if (!(arg.isCondition || arg.isConditionGroup))
throw new Error('Only array of Condition instance allowed');

@@ -34,0 +34,0 @@ this._items.push(arg);

@@ -88,3 +88,3 @@ /**

throw new Error('Invalid arguments');
let item = Array.isArray(field) ? new ConditionGroup(field) :
let item = Array.isArray(field) ? Reflect.construct(ConditionGroup, field) :
Reflect.construct(Condition, Array.prototype.slice.call(arguments, 1));

@@ -91,0 +91,0 @@ item.logicalOperator = logicalOperator;

{
"name": "sqb",
"description": "Lightweight, multi-dialect SQL query builder for JavaScript",
"version": "0.0.3",
"version": "0.0.4",
"author": "Panates Ltd.",

@@ -6,0 +6,0 @@ "contributors": [

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