@datatruck/cli 0.23.1 → 0.23.2
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.
|
@@ -193,9 +193,6 @@ class DatatruckRepository extends RepositoryAbstract_1.RepositoryAbstract {
|
|
|
193
193
|
onStreamPath: (key) => `files-${key}.txt`,
|
|
194
194
|
});
|
|
195
195
|
await scanner.start(async (entry) => {
|
|
196
|
-
if (entry.dirent.isDirectory() &&
|
|
197
|
-
!(await (0, fs_1.isEmptyDir)((0, path_1.join)(sourcePath, entry.path))))
|
|
198
|
-
return false;
|
|
199
196
|
let packIndex = configPacks.findIndex((pack) => (0, string_1.match)(entry.path, pack.include, pack.exclude));
|
|
200
197
|
if (packIndex === -1)
|
|
201
198
|
packIndex = defaultsPackIndex;
|
package/Task/MysqlDumpTask.js
CHANGED
|
@@ -31,6 +31,7 @@ class MysqlDumpTask extends TaskAbstract_1.TaskAbstract {
|
|
|
31
31
|
async onBackup(data) {
|
|
32
32
|
const sql = await (0, mysql_1.createMysqlCli)({
|
|
33
33
|
...this.config,
|
|
34
|
+
database: undefined,
|
|
34
35
|
verbose: data.options.verbose,
|
|
35
36
|
});
|
|
36
37
|
const tableNames = await sql.fetchTableNames(this.config.database, this.config.includeTables, this.config.excludeTables);
|
|
@@ -147,6 +148,7 @@ class MysqlDumpTask extends TaskAbstract_1.TaskAbstract {
|
|
|
147
148
|
async onRestore(data) {
|
|
148
149
|
const sql = await (0, mysql_1.createMysqlCli)({
|
|
149
150
|
...this.config,
|
|
151
|
+
database: undefined,
|
|
150
152
|
verbose: data.options.verbose,
|
|
151
153
|
});
|
|
152
154
|
const restorePath = data.package.restorePath;
|
package/package.json
CHANGED