Skip to content

Commit 2f4dade

Browse files
committed
Allow versionLimit to be passed to getLatestFrameworkVersion
1 parent cebb7b6 commit 2f4dade

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/api.js

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

105105
/**
106106
* @param {Object} options
107+
* @param {string} [options.versionLimit] Semver range to constrain the version lookup
107108
* @param {Object} [options.repository=ADAPT_FRAMEWORK] The github repository url
108109
* @returns {string}
109110
*/
110111
async getLatestFrameworkVersion ({
112+
versionLimit,
111113
repository = ADAPT_FRAMEWORK
112114
} = {}) {
113-
return getLatestVersion({ repository })
115+
return getLatestVersion({ versionLimit, repository })
114116
}
115117

116118
/**

0 commit comments

Comments
 (0)