@datatruck/cli 0.11.1 → 0.11.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.
@@ -66,6 +66,8 @@ class MysqlDumpTask extends SqlDumpTaskAbstract_1.SqlDumpTaskAbstract {
66
66
  information_schema.tables
67
67
  WHERE
68
68
  table_schema = '${database}'
69
+ ORDER BY
70
+ table_name
69
71
  `);
70
72
  }
71
73
  async onExportTables(tableNames, output) {
@@ -69,6 +69,8 @@ class PostgresqlDumpTask extends SqlDumpTaskAbstract_1.SqlDumpTaskAbstract {
69
69
  WHERE
70
70
  table_catalog = '${database}' AND
71
71
  table_schema NOT IN ('pg_catalog', 'information_schema')
72
+ ORDER BY
73
+ CONCAT(table_schema, '.', table_name)
72
74
  `);
73
75
  }
74
76
  async onExportTables(tableNames, output) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datatruck/cli",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "dependencies": {
5
5
  "ajv": "^8.11.0",
6
6
  "async": "^3.2.4",
package/util/zip-util.js CHANGED
@@ -31,7 +31,7 @@ function buildArguments(filters) {
31
31
  }
32
32
  exports.buildArguments = buildArguments;
33
33
  function parseZipStream(chunk, buffer, cb) {
34
- const lines = chunk.trim().split(/\r?\n/g);
34
+ const lines = chunk.replaceAll("\b", "").trim().split(/\r?\n/);
35
35
  for (const line of lines) {
36
36
  let matches = null;
37
37
  if ((matches = /^(\d+)% (\d+ )?\+/.exec(line))) {