adapt-cli 3.3.2 → 3.3.3
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.
@@ -289,6 +289,8 @@ export default class Plugin {
|
|
289
289
|
return await perform()
|
290
290
|
}
|
291
291
|
const getMatchingVersion = async () => {
|
292
|
+
if (!this.isPresent) return null
|
293
|
+
|
292
294
|
if (this.isLocalSource) {
|
293
295
|
const info = this.projectVersion ? this._projectInfo : this._sourceInfo
|
294
296
|
const satisfiesConstraint = !this.hasValidRequestVersion || semver.satisfies(info.version, this.requestedVersion, semverOptions)
|
@@ -297,8 +299,6 @@ export default class Plugin {
|
|
297
299
|
return info.version
|
298
300
|
}
|
299
301
|
|
300
|
-
if (!this.isPresent) return null
|
301
|
-
|
302
302
|
// check if the latest version is compatible
|
303
303
|
const satisfiesConstraint = !this.hasValidRequestVersion || semver.satisfies(this._sourceInfo.version, this.requestedVersion, semverOptions)
|
304
304
|
const satisfiesFramework = semver.satisfies(framework, this.frameworkVersion, semverOptions)
|