Comparing version 0.0.2-alpha.1 to 0.0.2-alpha.2
{ | ||
"name": "typeorm", | ||
"private": false, | ||
"version": "0.0.2-alpha.1", | ||
"version": "0.0.2-alpha.2", | ||
"description": "Data-mapper ORM for Typescript", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
@@ -482,6 +482,5 @@ "use strict"; | ||
var _this = this; | ||
// todo: proper escape values and prevent sql injection | ||
Object.keys(this.parameters).forEach(function (key) { | ||
var value = _this.parameters[key] !== null && _this.parameters[key] !== undefined ? _this.parameters[key] : "NULL"; | ||
sql = sql.replace(":" + key, _this.connection.driver.escape(value)); // .replace('"', '') | ||
var value = _this.parameters[key] !== null && _this.parameters[key] !== undefined ? _this.connection.driver.escape(_this.parameters[key]) : "NULL"; | ||
sql = sql.replace(":" + key, value); | ||
}); | ||
@@ -488,0 +487,0 @@ return sql; |
@@ -769,3 +769,2 @@ # TypeORM | ||
* add partial selection support (lot of problems with partial selection. Is there real benefit for users to use it?) | ||
* in query builder should we use property names or table names? (right now its kinda mixed) | ||
@@ -778,7 +777,5 @@ * should all entities have a primary column? | ||
* fix all propertyName/tableName problems and make sure everything work correctly | ||
* check column types, make validation there | ||
* foreign keys for relations | ||
* what happens if owner one-to-one on both sides | ||
* check self referencing | ||
* array / json / date column types | ||
* exceptions everywhere! | ||
@@ -785,0 +782,0 @@ * add ability to load only ids of the relation (similar to loading only single id) |
@@ -13,3 +13,3 @@ "use strict"; | ||
var possibleOptions = object; | ||
return possibleOptions.alias && typeof possibleOptions.alias === "string" && (!!possibleOptions.limit || | ||
return possibleOptions && possibleOptions.alias && typeof possibleOptions.alias === "string" && (!!possibleOptions.limit || | ||
!!possibleOptions.offset || | ||
@@ -16,0 +16,0 @@ !!possibleOptions.firstResult || |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
557231
7996
797