@hackthedev/dsync-sql 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/index.mjs +4 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -41,10 +41,10 @@ export default class dSyncSql {
41
41
  if(!outFile) throw new Error('Output File path is required');
42
42
  return await new Promise((resolve, reject) => {
43
43
  const dump = spawn("mariadb-dump", [
44
- "-h", this.host,
45
- "-u", this.user,
46
- `-p${this.password}`,
47
- this.database
44
+ "-h", this.connection_info.host,
45
+ "-u", this.connection_info.user,
46
+ `-p${this.connection_info.password}`,
47
+ this.connection_info.database
48
48
  ]);
49
49
 
50
50
  const stream = fs.createWriteStream(outFile);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hackthedev/dsync-sql",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "dSyncSql is supposed to be a helper for handling MySQL / MariaDB connections and executing queries. In addition it will also allow you to automatically create a database's structure like tables, column and such and will automatically create missing columns and tables based off a json Object.",
5
5
  "homepage": "https://github.com/NETWORK-Z-Dev/dSyncSql#readme",
6
6
  "bugs": {