Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 83002b1

Browse files
committed
renamed 'filterPrereleases' option to 'excludePrereleases'
1 parent e065e70 commit 83002b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/check.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const rest = (options, callback) => {
8181
for (let i = 0; i < json.length; i++) {
8282
version = json[i];
8383

84-
if (options.filterPrerelease) {
84+
if (options.excludePrereleases) {
8585
if(version['prerelease'] !== undefined && version['prerelease']) {
8686
continue;
8787
}
@@ -169,8 +169,8 @@ module.exports = (options, callback) => {
169169
// when we have a token supplied, we will call the GraphQL api
170170
if (options.token) {
171171

172-
if (options.filterPrerelease) {
173-
throw new Error('filterPrerelease option currently unsupported when specifying a token.');
172+
if (options.excludePrereleases) {
173+
throw new Error('excludePrereleases option currently unsupported when specifying a token.');
174174
}
175175

176176
graphql(options, callback);

0 commit comments

Comments
 (0)