@verdnatura/myt 1.6.7 → 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/myt-push.js +6 -4
- package/package.json +1 -1
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
|
-
|
|
249
|
+
continue;
|
|
250
|
+
} else if (version.number.length != dbVersion.number.length) {
|
|
250
251
|
this.emit('version', version, versionDir, 'badVersion');
|
|
251
|
-
|
|
252
|
-
|
|
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;
|