You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include only versions matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.
515
515
516
-
The predicate function is only available in .ncurc.js or when importing npm-check-updates as a module, not on the command line. This function is an alias for the filter option function.
516
+
`--filterVersion` runs _before_ new versions are fetched, in contrast to `--filterResults` which runs _after_.
517
+
518
+
The predicate function is only available in .ncurc.js or when importing npm-check-updates as a module, not on the command line. This function is an alias for the `filter` option function.
517
519
518
520
```js
519
521
/**
520
522
@paramname The name of the dependency.
521
-
@paramsemver A parsed Semver array of the upgraded version.
523
+
@paramsemver A parsed Semver array of the current version.
@returns True if the package should be excluded, false if it should be included.
703
705
*/
@@ -717,12 +719,14 @@ Usage:
717
719
718
720
The inverse of `--filterVersion`. Exclude versions matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.
719
721
722
+
`--rejectVersion` runs _before_ new versions are fetched, in contrast to `--filterResults` which runs _after_.
723
+
720
724
The predicate function is only available in .ncurc.js or when importing npm-check-updates as a module, not on the command line. This function is an alias for the reject option function.
721
725
722
726
```js
723
727
/**
724
728
@paramname The name of the dependency.
725
-
@paramsemver A parsed Semver array of the upgraded version.
729
+
@paramsemver A parsed Semver array of the current version.
return`Include only versions matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.
244
247
245
-
The predicate function is only available in .ncurc.js or when importing npm-check-updates as a module, not on the command line. This function is an alias for the filter option function.
248
+
${codeInline('--filterVersion')} runs _before_ new versions are fetched, in contrast to ${codeInline(
249
+
'--filterResults',
250
+
)} which runs _after_.
251
+
252
+
The predicate function is only available in .ncurc.js or when importing npm-check-updates as a module, not on the command line. This function is an alias for the ${codeInline('filter')} option function.
246
253
247
254
${codeBlock(
248
255
`${chalk.gray(`/**
249
256
@param name The name of the dependency.
250
-
@param semver A parsed Semver array of the upgraded version.
257
+
@param semver A parsed Semver array of the current version.
)}. Exclude versions matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.
312
319
320
+
${codeInline('--rejectVersion')} runs _before_ new versions are fetched, in contrast to ${codeInline(
321
+
'--filterResults',
322
+
)} which runs _after_.
323
+
313
324
The predicate function is only available in .ncurc.js or when importing npm-check-updates as a module, not on the command line. This function is an alias for the reject option function.
314
325
315
326
${codeBlock(
316
327
`${chalk.gray(`/**
317
328
@param name The name of the dependency.
318
-
@param semver A parsed Semver array of the upgraded version.
329
+
@param semver A parsed Semver array of the current version.
0 commit comments