update dependencies
This commit is contained in:
parent
c85d400333
commit
0794cf92ef
1958
package-lock.json
generated
1958
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
38
package.json
38
package.json
@ -22,49 +22,49 @@
|
||||
"homepage": "https://github.com/Kononnable/typeorm-model-generator#readme",
|
||||
"dependencies": {
|
||||
"change-case": "^3.1.0",
|
||||
"fs-extra": "^8.0.1",
|
||||
"fs-extra": "^8.1.0",
|
||||
"handlebars": "^4.1.2",
|
||||
"inquirer": "^6.3.1",
|
||||
"inquirer": "^6.5.0",
|
||||
"mssql": "^5.1.0",
|
||||
"mysql": "^2.17.1",
|
||||
"pg": "^7.11.0",
|
||||
"pg": "^7.12.0",
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"sqlite3": "^4.0.8",
|
||||
"ts-node": "^8.2.0",
|
||||
"sqlite3": "^4.0.9",
|
||||
"ts-node": "^8.3.0",
|
||||
"typeorm": "^0.2.18",
|
||||
"typescript": "^3.5.1",
|
||||
"yargs": "^13.2.4",
|
||||
"typescript": "^3.5.3",
|
||||
"yargs": "^13.3.0",
|
||||
"yn": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4.1.7",
|
||||
"@types/chai-as-promised": "7.1.0",
|
||||
"@types/chai-as-promised": "^7.1.1",
|
||||
"@types/chai-subset": "^1.3.2",
|
||||
"@types/fs-extra": "^7.0.0",
|
||||
"@types/fs-extra": "^8.0.0",
|
||||
"@types/handlebars": "^4.1.0",
|
||||
"@types/inquirer": "^6.0.3",
|
||||
"@types/inquirer": "^6.5.0",
|
||||
"@types/mocha": "^5.2.7",
|
||||
"@types/mssql": "^4.0.14",
|
||||
"@types/mssql": "^4.0.16",
|
||||
"@types/mysql": "^2.15.6",
|
||||
"@types/node": "^12.0.4",
|
||||
"@types/oracledb": "^3.1.1",
|
||||
"@types/node": "^12.6.9",
|
||||
"@types/oracledb": "^3.1.3",
|
||||
"@types/pg": "^7.4.14",
|
||||
"@types/sinon": "^7.0.12",
|
||||
"@types/sinon": "^7.0.13",
|
||||
"@types/yargs": "^12.0.1",
|
||||
"chai": "^4.2.0",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
"chai-subset": "^1.6.0",
|
||||
"codecov": "^3.5.0",
|
||||
"dotenv": "^8.0.0",
|
||||
"husky": "^2.3.0",
|
||||
"lint-staged": "^8.1.7",
|
||||
"mocha": "^6.1.4",
|
||||
"husky": "^3.0.2",
|
||||
"lint-staged": "^9.2.1",
|
||||
"mocha": "^6.2.0",
|
||||
"nyc": "^14.1.1",
|
||||
"prettier": "^1.17.1",
|
||||
"prettier": "^1.18.2",
|
||||
"rimraf": "^2.6.3",
|
||||
"sinon": "^7.3.2",
|
||||
"sinon-chai": "^3.3.0",
|
||||
"tslint": "^5.17.0",
|
||||
"tslint": "^5.18.0",
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
"husky": {
|
||||
|
@ -209,9 +209,7 @@ export abstract class AbstractDriver {
|
||||
);
|
||||
if (!ownerEntity) {
|
||||
TomgUtils.LogError(
|
||||
`Relation between tables ${relationTmp.ownerTable} and ${
|
||||
relationTmp.referencedTable
|
||||
} didn't found entity model ${relationTmp.ownerTable}.`
|
||||
`Relation between tables ${relationTmp.ownerTable} and ${relationTmp.referencedTable} didn't found entity model ${relationTmp.ownerTable}.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
@ -221,9 +219,7 @@ export abstract class AbstractDriver {
|
||||
);
|
||||
if (!referencedEntity) {
|
||||
TomgUtils.LogError(
|
||||
`Relation between tables ${relationTmp.ownerTable} and ${
|
||||
relationTmp.referencedTable
|
||||
} didn't found entity model ${relationTmp.referencedTable}.`
|
||||
`Relation between tables ${relationTmp.ownerTable} and ${relationTmp.referencedTable} didn't found entity model ${relationTmp.referencedTable}.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
@ -239,13 +235,7 @@ export abstract class AbstractDriver {
|
||||
);
|
||||
if (!ownerColumn) {
|
||||
TomgUtils.LogError(
|
||||
`Relation between tables ${
|
||||
relationTmp.ownerTable
|
||||
} and ${
|
||||
relationTmp.referencedTable
|
||||
} didn't found entity column ${
|
||||
relationTmp.ownerTable
|
||||
}.${ownerColumn}.`
|
||||
`Relation between tables ${relationTmp.ownerTable} and ${relationTmp.referencedTable} didn't found entity column ${relationTmp.ownerTable}.${ownerColumn}.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
@ -256,13 +246,7 @@ export abstract class AbstractDriver {
|
||||
);
|
||||
if (!relatedColumn) {
|
||||
TomgUtils.LogError(
|
||||
`Relation between tables ${
|
||||
relationTmp.ownerTable
|
||||
} and ${
|
||||
relationTmp.referencedTable
|
||||
} didn't found entity column ${
|
||||
relationTmp.referencedTable
|
||||
}.${relatedColumn}.`
|
||||
`Relation between tables ${relationTmp.ownerTable} and ${relationTmp.referencedTable} didn't found entity column ${relationTmp.referencedTable}.${relatedColumn}.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
@ -187,11 +187,7 @@ WHERE TABLE_TYPE='BASE TABLE' and TABLE_SCHEMA in (${schema}) AND TABLE_CATALOG
|
||||
break;
|
||||
default:
|
||||
TomgUtils.LogError(
|
||||
`Unknown column type: ${
|
||||
resp.DATA_TYPE
|
||||
} table name: ${
|
||||
resp.TABLE_NAME
|
||||
} column name: ${resp.COLUMN_NAME}`
|
||||
`Unknown column type: ${resp.DATA_TYPE} table name: ${resp.TABLE_NAME} column name: ${resp.COLUMN_NAME}`
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
@ -202,11 +202,7 @@ export class MysqlDriver extends AbstractDriver {
|
||||
break;
|
||||
default:
|
||||
TomgUtils.LogError(
|
||||
`Unknown column type: ${
|
||||
resp.DATA_TYPE
|
||||
} table name: ${
|
||||
resp.TABLE_NAME
|
||||
} column name: ${resp.COLUMN_NAME}`
|
||||
`Unknown column type: ${resp.DATA_TYPE} table name: ${resp.TABLE_NAME} column name: ${resp.COLUMN_NAME}`
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
@ -305,9 +305,7 @@ export class OracleDriver extends AbstractDriver {
|
||||
let config: any;
|
||||
if (connectionOptons.user === String(process.env.ORACLE_UsernameSys)) {
|
||||
config /*Oracle.IConnectionAttributes*/ = {
|
||||
connectString: `${connectionOptons.host}:${
|
||||
connectionOptons.port
|
||||
}/${connectionOptons.databaseName}`,
|
||||
connectString: `${connectionOptons.host}:${connectionOptons.port}/${connectionOptons.databaseName}`,
|
||||
externalAuth: connectionOptons.ssl,
|
||||
password: connectionOptons.password,
|
||||
privilege: this.Oracle.SYSDBA,
|
||||
@ -315,9 +313,7 @@ export class OracleDriver extends AbstractDriver {
|
||||
};
|
||||
} else {
|
||||
config /*Oracle.IConnectionAttributes*/ = {
|
||||
connectString: `${connectionOptons.host}:${
|
||||
connectionOptons.port
|
||||
}/${connectionOptons.databaseName}`,
|
||||
connectString: `${connectionOptons.host}:${connectionOptons.port}/${connectionOptons.databaseName}`,
|
||||
externalAuth: connectionOptons.ssl,
|
||||
password: connectionOptons.password,
|
||||
user: connectionOptons.user
|
||||
|
@ -88,19 +88,11 @@ export class PostgresDriver extends AbstractDriver {
|
||||
resp.data_type === "ARRAY"
|
||||
) {
|
||||
TomgUtils.LogError(
|
||||
`Unknown ${resp.data_type} column type: ${
|
||||
resp.udt_name
|
||||
} table name: ${
|
||||
resp.table_name
|
||||
} column name: ${resp.column_name}`
|
||||
`Unknown ${resp.data_type} column type: ${resp.udt_name} table name: ${resp.table_name} column name: ${resp.column_name}`
|
||||
);
|
||||
} else {
|
||||
TomgUtils.LogError(
|
||||
`Unknown column type: ${
|
||||
resp.data_type
|
||||
} table name: ${
|
||||
resp.table_name
|
||||
} column name: ${resp.column_name}`
|
||||
`Unknown column type: ${resp.data_type} table name: ${resp.table_name} column name: ${resp.column_name}`
|
||||
);
|
||||
}
|
||||
return;
|
||||
|
@ -155,11 +155,7 @@ export class SqliteDriver extends AbstractDriver {
|
||||
break;
|
||||
default:
|
||||
TomgUtils.LogError(
|
||||
`Unknown column type: ${
|
||||
colInfo.options.type
|
||||
} table name: ${ent.tsEntityName} column name: ${
|
||||
resp.name
|
||||
}`
|
||||
`Unknown column type: ${colInfo.options.type} table name: ${ent.tsEntityName} column name: ${resp.name}`
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user