db-migrate
Advanced tools
Comparing version 1.0.0-beta.9 to 1.0.0-beta.10
@@ -26,23 +26,13 @@ const Shadow = require('../../driver/shadow'); | ||
this._counter = 0; | ||
} | ||
this._default = async function _default () { | ||
await State.step(this.driver, ++this._counter, this.internals); | ||
async step () { | ||
return State.step(this.driver, ++this._counter, this.internals); | ||
return State.update( | ||
this.driver, | ||
this.file, | ||
this.internals.modSchema, | ||
this.internals | ||
); | ||
}; | ||
} | ||
async update () { | ||
return State.update( | ||
this.driver, | ||
this.file, | ||
this.internals.modSchema, | ||
this.internals | ||
); | ||
} | ||
async default () { | ||
await this.step(); | ||
const res = await this.update(); | ||
return res; | ||
} | ||
} | ||
@@ -52,6 +42,3 @@ | ||
StateTravel.prototype[m] = async function (...args) { | ||
await this.step(); | ||
const res = await this.update(); | ||
return res; | ||
return this._default(); | ||
}; | ||
@@ -58,0 +45,0 @@ }); |
@@ -34,3 +34,3 @@ { | ||
], | ||
"version": "1.0.0-beta.9", | ||
"version": "1.0.0-beta.10", | ||
"engines": { | ||
@@ -37,0 +37,0 @@ "node": ">=8.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
225434
3963