You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

typeorm

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typeorm - npm Package Compare versions

Comparing version

to
0.0.5-alpha.9

@@ -48,2 +48,7 @@ "use strict";

return yargs
.option("c", {
alias: "connection",
default: "default",
describe: "Name of the connection on which to run a query"
})
.option("n", {

@@ -66,3 +71,3 @@ alias: "name",

return __awaiter(this, void 0, void 0, function () {
var fileContent, filename, directory, config;
var fileContent, filename, directory, connections, connection;
return __generator(this, function (_a) {

@@ -77,5 +82,11 @@ switch (_a.label) {

try {
config = require(process.cwd() + "/" + argv.config);
if (config && config.cli)
directory = config.cli.entitiesDir;
connections = require(process.cwd() + "/" + argv.config);
if (connections) {
connection = connections.find(function (connection) {
return connection.name === argv.connection || ((argv.connection === "default" || !argv.connection) && !connection.name);
});
if (connection && connection.cli) {
directory = connection.cli.entitiesDir;
}
}
}

@@ -82,0 +93,0 @@ catch (err) { }

@@ -48,2 +48,7 @@ "use strict";

return yargs
.option("c", {
alias: "connection",
default: "default",
describe: "Name of the connection on which run a query."
})
.option("n", {

@@ -66,3 +71,3 @@ alias: "name",

return __awaiter(this, void 0, void 0, function () {
var timestamp, fileContent, filename, directory, config;
var timestamp, fileContent, filename, directory, connections, connection;
return __generator(this, function (_a) {

@@ -78,5 +83,11 @@ switch (_a.label) {

try {
config = require(process.cwd() + "/" + argv.config);
if (config && config.cli)
directory = config.cli.migrationsDir;
connections = require(process.cwd() + "/" + argv.config);
if (connections) {
connection = connections.find(function (connection) {
return connection.name === argv.connection || ((argv.connection === "default" || !argv.connection) && !connection.name);
});
if (connection && connection.cli) {
directory = connection.cli.migrationsDir;
}
}
}

@@ -83,0 +94,0 @@ catch (err) { }

@@ -48,2 +48,7 @@ "use strict";

return yargs
.option("c", {
alias: "connection",
default: "default",
describe: "Name of the connection on which to run a query"
})
.option("n", {

@@ -66,3 +71,3 @@ alias: "name",

return __awaiter(this, void 0, void 0, function () {
var fileContent, filename, directory, config;
var fileContent, filename, directory, connections, connection;
return __generator(this, function (_a) {

@@ -77,5 +82,11 @@ switch (_a.label) {

try {
config = require(process.cwd() + "/" + argv.config);
if (config && config.cli)
directory = config.cli.subscribersDir;
connections = require(process.cwd() + "/" + argv.config);
if (connections) {
connection = connections.find(function (connection) {
return connection.name === argv.connection || ((argv.connection === "default" || !argv.connection) && !connection.name);
});
if (connection && connection.cli) {
directory = connection.cli.subscribersDir;
}
}
}

@@ -82,0 +93,0 @@ catch (err) { }

{
"name": "typeorm",
"private": false,
"version": "0.0.5-alpha.8",
"version": "0.0.5-alpha.9",
"description": "Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, WebSQL databases.",

@@ -6,0 +6,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet