@verdnatura/myt 1.6.6 → 1.6.8

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/lib/dumper.js CHANGED
@@ -83,7 +83,7 @@ module.exports = class Dumper {
83
83
  }
84
84
 
85
85
  async runDump(command, args) {
86
- const iniPath = path.join(this.opts.subdir || '', 'remotes', this.opts.iniFile);
86
+ const iniPath = path.join('remotes', this.opts.iniFile);
87
87
  const myArgs = [
88
88
  `--defaults-file=${iniPath}`
89
89
  ];
package/myt-push.js CHANGED
@@ -244,13 +244,15 @@ class Push extends Command {
244
244
 
245
245
  let apply = false;
246
246
 
247
- if (!version)
247
+ if (!version) {
248
248
  this.emit('version', version, versionDir, 'wrongDirectory');
249
- else if (version.number.length != dbVersion.number.length)
249
+ continue;
250
+ } else if (version.number.length != dbVersion.number.length) {
250
251
  this.emit('version', version, versionDir, 'badVersion');
251
- else
252
- apply = version.apply;
252
+ continue;
253
+ }
253
254
 
255
+ apply = version.apply;
254
256
  if (apply) showLog = true;
255
257
  if (showLog) this.emit('version', version, versionDir);
256
258
  if (!apply) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdnatura/myt",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "author": "Verdnatura Levante SL",
5
5
  "description": "MySQL version control",
6
6
  "license": "GPL-3.0",