adapt-migrations 1.4.2 → 1.4.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.
- package/api/where.js +2 -2
- package/package.json +1 -1
package/api/where.js
CHANGED
|
@@ -20,7 +20,7 @@ export function whereFromPlugin (description, callbackOrConfig) {
|
|
|
20
20
|
const config = callbackOrConfig
|
|
21
21
|
return fromPlugins.some(plugin => {
|
|
22
22
|
if (config.name && plugin.name !== config.name) return false
|
|
23
|
-
if (config.version && !semver.satisfies(plugin.version, config.version)) return false
|
|
23
|
+
if (config.version && !semver.satisfies(plugin.version, config.version, { includePrerelease: true })) return false
|
|
24
24
|
return true
|
|
25
25
|
})
|
|
26
26
|
})
|
|
@@ -38,7 +38,7 @@ export function whereToPlugin (description, callbackOrConfig) {
|
|
|
38
38
|
const config = callbackOrConfig
|
|
39
39
|
return toPlugins.some(plugin => {
|
|
40
40
|
if (config.name && plugin.name !== config.name) return false
|
|
41
|
-
if (config.version && !semver.satisfies(plugin.version, config.version)) return false
|
|
41
|
+
if (config.version && !semver.satisfies(plugin.version, config.version, { includePrerelease: true })) return false
|
|
42
42
|
return true
|
|
43
43
|
})
|
|
44
44
|
})
|