Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7
@@ -25,3 +25,2 @@ /* UNIQORM | ||
* @constructor | ||
* @extends VARCHAR | ||
*/ | ||
@@ -28,0 +27,0 @@ function CHAR(alias, def) { |
@@ -32,2 +32,3 @@ /* UNIQORM | ||
Field.register(require('./fields/BUFFER')); | ||
Field.register(require('./fields/BOOL')); | ||
@@ -34,0 +35,0 @@ module.exports = Uniqorm; |
@@ -113,3 +113,4 @@ /* UNIQORM | ||
var orderColumns; | ||
options.validateFields = options.validateFields || (this._model.orm.options.validateFields); | ||
options.validateFields = | ||
options.validateFields || (this._model.orm.options.validateFields); | ||
@@ -121,2 +122,7 @@ /* Prepare select column list */ | ||
const m = k.match(/^([\w$]+) *([\w$]*)$/); | ||
if (!m) { | ||
if (!options.validateFields) | ||
return; | ||
throw new ArgumentError('Invalid column definition(%s)', k); | ||
} | ||
const name = m[1]; | ||
@@ -123,0 +129,0 @@ const field = model.fields[name]; |
@@ -51,6 +51,6 @@ /* UNIQORM | ||
this.models = {}; | ||
this.options = options || { | ||
caseSensitive: false, | ||
validateFields: true | ||
}; | ||
this.options = options || {}; | ||
//this.options.caseSensitive = this.options.caseSensitive || false; | ||
this.options.validateFields = this.options.validateFields || | ||
this.options.validateFields === undefined; | ||
} | ||
@@ -57,0 +57,0 @@ |
{ | ||
"name": "uniqorm", | ||
"description": "Easy to use, multi-dialect ORM framework for JavaScript", | ||
"version": "1.0.0-alpha.6", | ||
"version": "1.0.0-alpha.7", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
47580
29
1771