Comparing version 3.7.3 to 3.7.4
@@ -39,2 +39,26 @@ /* eslint-disable */ | ||
/** | ||
* | ||
* @return {String|Serializable} | ||
*/ | ||
get expression() { | ||
return this._expression; | ||
} | ||
/** | ||
* | ||
* @param {String|Serializable} x | ||
*/ | ||
set expression(x) { | ||
this._expression = x; | ||
} | ||
/** | ||
* | ||
* @return {Array<*>} | ||
*/ | ||
get values() { | ||
return this._values; | ||
} | ||
/** | ||
* Performs serialization | ||
@@ -49,7 +73,7 @@ * | ||
const expression = this._expression.isSerializable ? | ||
this._expression._serialize(ctx) : this._expression; | ||
const expression = this.expression.isSerializable ? | ||
this.expression._serialize(ctx) : this.expression; | ||
const o = { | ||
operatorType: this.operatorType, | ||
expression: this._expression.isQuery ? | ||
expression: this.expression.isQuery ? | ||
'(' + expression + ')' : expression, | ||
@@ -59,7 +83,7 @@ symbol: this._symbol | ||
if (this._values.length > 1) { | ||
o.value1 = Serializable.serializeObject(ctx, this._values[0]); | ||
o.value2 = Serializable.serializeObject(ctx, this._values[1]); | ||
if (this.values.length > 1) { | ||
o.value1 = Serializable.serializeObject(ctx, this.values[0]); | ||
o.value2 = Serializable.serializeObject(ctx, this.values[1]); | ||
} else | ||
o.value = Serializable.serializeObject(ctx, this._values[0]); | ||
o.value = Serializable.serializeObject(ctx, this.values[0]); | ||
@@ -66,0 +90,0 @@ this._beforeSerialize(ctx, o); |
{ | ||
"name": "sqb", | ||
"description": "Extensible, multi-dialect SQL query builder and Database connection framework for JavaScript", | ||
"version": "3.7.3", | ||
"version": "3.7.4", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -32,7 +32,7 @@ | ||
You can report bugs and discuss features on the [GitHub issues](https://github.com/panates/sqb/issues) page | ||
You can report bugs and discuss features on the [GitHub issues](https://github.com/sqbjs/sqb/issues) page | ||
Thanks to all of the great [contributions](https://github.com/panates/sqb/graphs/contributors) to the project. | ||
Thanks to all of the great [contributions](https://github.com/sqbjs/sqb/graphs/contributors) to the project. | ||
You may want to check detailed [DOCUMENTATION](https://panates.github.io/sqb/) | ||
You may want to check detailed [DOCUMENTATION](https://sqbjs.github.io/sqb/) | ||
@@ -52,3 +52,3 @@ | ||
To see changelog click [here](https://github.com/panates/sqb/commits/master) | ||
To see changelog click [here](https://github.com/sqbjs/sqb/commits/master) | ||
@@ -61,15 +61,15 @@ | ||
[npm-url]: https://npmjs.org/package/sqb | ||
[travis-image]: https://img.shields.io/travis/panates/sqb/master.svg | ||
[travis-url]: https://travis-ci.org/panates/sqb | ||
[coveralls-image]: https://img.shields.io/coveralls/panates/sqb/master.svg | ||
[coveralls-url]: https://coveralls.io/r/panates/sqb | ||
[travis-image]: https://img.shields.io/travis/sqbjs/sqb/master.svg | ||
[travis-url]: https://travis-ci.org/sqbjs/sqb | ||
[coveralls-image]: https://img.shields.io/coveralls/sqbjs/sqb/master.svg | ||
[coveralls-url]: https://coveralls.io/r/sqbjs/sqb | ||
[downloads-image]: https://img.shields.io/npm/dm/sqb.svg | ||
[downloads-url]: https://npmjs.org/package/sqb | ||
[gitter-image]: https://badges.gitter.im/panates/sqb.svg | ||
[gitter-url]: https://gitter.im/panates/sqb?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge | ||
[dependencies-image]: https://david-dm.org/panates/sqb/status.svg | ||
[dependencies-url]:https://david-dm.org/panates/sqb | ||
[devdependencies-image]: https://david-dm.org/panates/sqb/dev-status.svg | ||
[devdependencies-url]:https://david-dm.org/panates/sqb?type=dev | ||
[gitter-image]: https://badges.gitter.im/sqbjs/sqb.svg | ||
[gitter-url]: https://gitter.im/sqbjs/sqb?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge | ||
[dependencies-image]: https://david-dm.org/sqbjs/sqb/status.svg | ||
[dependencies-url]:https://david-dm.org/sqbjs/sqb | ||
[devdependencies-image]: https://david-dm.org/sqbjs/sqb/dev-status.svg | ||
[devdependencies-url]:https://david-dm.org/sqbjs/sqb?type=dev | ||
[quality-image]: http://npm.packagequality.com/shield/sqb.png | ||
[quality-url]: http://packagequality.com/#?package=sqb | ||
[quality-url]: http://packagequality.com/#?package=sqb |
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
121118
4461
73