Skip to content

Commit 3a9c2b2

Browse files
committed
Allow versionLimit to be passed to getLatestFrameworkVersion
1 parent f11b07b commit 3a9c2b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/api.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,15 @@ class API {
100100

101101
/**
102102
* @param {Object} options
103+
* @param {string} [options.versionLimit] Semver range to constrain the version lookup
103104
* @param {Object} [options.repository=ADAPT_FRAMEWORK] The github repository url
104105
* @returns {string}
105106
*/
106107
async getLatestFrameworkVersion ({
108+
versionLimit,
107109
repository = ADAPT_FRAMEWORK
108110
} = {}) {
109-
return getLatestVersion({ repository })
111+
return getLatestVersion({ versionLimit, repository })
110112
}
111113

112114
/**

0 commit comments

Comments
 (0)