@knorm/knorm
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -0,1 +1,11 @@ | ||
<a name="1.7.2"></a> | ||
## [1.7.2](https://github.com/knorm/knorm/compare/v1.7.1...v1.7.2) (2018-09-25) | ||
### Bug Fixes | ||
* **Query:** ignore non-insert options for inserts ([1b0b4bd](https://github.com/knorm/knorm/commit/1b0b4bd)) | ||
<a name="1.7.1"></a> | ||
@@ -2,0 +12,0 @@ ## [1.7.1](https://github.com/knorm/knorm/compare/v1.7.0...v1.7.1) (2018-09-25) |
@@ -428,3 +428,9 @@ const { difference } = require('lodash'); | ||
// TODO: strict mode: warn if invalid options are used depending on the method | ||
// e.g. using `where` for inserts | ||
async prepareSql(sql, options) { | ||
if (options.forInsert) { | ||
return sql; | ||
} | ||
if (options.forFetch && this.options.fields) { | ||
@@ -431,0 +437,0 @@ const columns = this.getColumns(this.options.fields); |
{ | ||
"name": "@knorm/knorm", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "A purely ES6 class-based ORM for Node.js", | ||
@@ -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
452588
10254