@gustavo-valsechi/node 1.0.5 → 1.0.9

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.
package/dist/index.js CHANGED
@@ -68,15 +68,15 @@ var databaseInit = (entities) => {
68
68
  username,
69
69
  password,
70
70
  database,
71
- synchronize: true,
71
+ synchronize: false,
72
72
  migrationsRun: false,
73
73
  logging: "all",
74
74
  logger: "advanced-console",
75
- migrations: [__dirname + "/**/migrations/*{.js,.ts}"],
75
+ migrations: ["src/database/typeorm-migrations/*.ts"],
76
76
  applicationName: (0, import_os.hostname)(),
77
77
  entities
78
78
  });
79
- DB.initialize().then(() => console.log("\u{1F680} Data Source has been initialized!")).catch((err) => console.error("\u{1F534} Error during Data Source initialization", err));
79
+ DB.initialize().then(async () => console.log("\u{1F680} Data Source has been initialized!")).catch((err) => console.error("\u{1F534} Error during Data Source initialization", err));
80
80
  return DB;
81
81
  };
82
82
 
package/dist/index.mjs CHANGED
@@ -28,15 +28,15 @@ var databaseInit = (entities) => {
28
28
  username,
29
29
  password,
30
30
  database,
31
- synchronize: true,
31
+ synchronize: false,
32
32
  migrationsRun: false,
33
33
  logging: "all",
34
34
  logger: "advanced-console",
35
- migrations: [__dirname + "/**/migrations/*{.js,.ts}"],
35
+ migrations: ["src/database/typeorm-migrations/*.ts"],
36
36
  applicationName: hostname(),
37
37
  entities
38
38
  });
39
- DB.initialize().then(() => console.log("\u{1F680} Data Source has been initialized!")).catch((err) => console.error("\u{1F534} Error during Data Source initialization", err));
39
+ DB.initialize().then(async () => console.log("\u{1F680} Data Source has been initialized!")).catch((err) => console.error("\u{1F534} Error during Data Source initialization", err));
40
40
  return DB;
41
41
  };
42
42
 
@@ -45,15 +45,15 @@ var databaseInit = (entities) => {
45
45
  username,
46
46
  password,
47
47
  database,
48
- synchronize: true,
48
+ synchronize: false,
49
49
  migrationsRun: false,
50
50
  logging: "all",
51
51
  logger: "advanced-console",
52
- migrations: [__dirname + "/**/migrations/*{.js,.ts}"],
52
+ migrations: ["src/database/typeorm-migrations/*.ts"],
53
53
  applicationName: (0, import_os.hostname)(),
54
54
  entities
55
55
  });
56
- DB.initialize().then(() => console.log("\u{1F680} Data Source has been initialized!")).catch((err) => console.error("\u{1F534} Error during Data Source initialization", err));
56
+ DB.initialize().then(async () => console.log("\u{1F680} Data Source has been initialized!")).catch((err) => console.error("\u{1F534} Error during Data Source initialization", err));
57
57
  return DB;
58
58
  };
59
59
  // Annotate the CommonJS export names for ESM import in node:
@@ -21,15 +21,15 @@ var databaseInit = (entities) => {
21
21
  username,
22
22
  password,
23
23
  database,
24
- synchronize: true,
24
+ synchronize: false,
25
25
  migrationsRun: false,
26
26
  logging: "all",
27
27
  logger: "advanced-console",
28
- migrations: [__dirname + "/**/migrations/*{.js,.ts}"],
28
+ migrations: ["src/database/typeorm-migrations/*.ts"],
29
29
  applicationName: hostname(),
30
30
  entities
31
31
  });
32
- DB.initialize().then(() => console.log("\u{1F680} Data Source has been initialized!")).catch((err) => console.error("\u{1F534} Error during Data Source initialization", err));
32
+ DB.initialize().then(async () => console.log("\u{1F680} Data Source has been initialized!")).catch((err) => console.error("\u{1F534} Error during Data Source initialization", err));
33
33
  return DB;
34
34
  };
35
35
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/node",
3
- "version": "1.0.5",
3
+ "version": "1.0.9",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",