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

typeorm

Package Overview
Dependencies
Maintainers
1
Versions
828
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typeorm - npm Package Compare versions

Comparing version 0.0.2-alpha.1 to 0.0.2-alpha.2

2

package.json
{
"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

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