tspace-mysql 1.5.0-beta.2 → 1.5.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,6 +64,9 @@ exports.default = (cmd) => {
64
64
  })));
65
65
  const pathModels = [].concat(...files).filter(d => d != null || d === '');
66
66
  yield new Promise(r => setTimeout(r, 1200));
67
+ console.log({
68
+ pathModels
69
+ });
67
70
  const models = yield Promise.all(pathModels.map((pathModel) => _import(pathModel)).filter(d => d != null));
68
71
  if (!models.length)
69
72
  return;
@@ -101,10 +104,12 @@ exports.default = (cmd) => {
101
104
  const _import = (pathModel) => __awaiter(void 0, void 0, void 0, function* () {
102
105
  try {
103
106
  const loadModel = yield Promise.resolve(`${pathModel}`).then(s => __importStar(require(s))).catch(_ => { });
107
+ console.log({ loadModel });
104
108
  const model = new loadModel.default();
105
109
  return model;
106
110
  }
107
111
  catch (err) {
112
+ console.error(err);
108
113
  console.log(`Check your 'Model' from path : '${pathModel}' is not instance of Model`);
109
114
  return null;
110
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tspace-mysql",
3
- "version": "1.5.0-beta.2",
3
+ "version": "1.5.0-beta.4",
4
4
  "description": "mysql query builder object relational mapping",
5
5
  "main": "build/lib/index.js",
6
6
  "types": "build/lib/index.d.ts",