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

uniqorm

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uniqorm - npm Package Compare versions

Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7

lib/fields/BOOL.js

1

lib/fields/CHAR.js

@@ -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": [

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