@@ -34,11 +34,12 @@ fetch('https://registry.npmjs.org/npm-pick-manifest').then(res => {
34
34
35
35
### Contributing
36
36
37
- The npm-pick-manifest team enthusiastically welcomes contributions and project participation!
38
- There's a bunch of things you can do if you want to contribute! The [ Contributor
39
- Guide] ( CONTRIBUTING.md ) has all the information you need for everything from
40
- reporting bugs to contributing entire new features. Please don't hesitate to
41
- jump in if you'd like to, or even ask us questions if something isn't clear.
37
+ The npm-pick-manifest team enthusiastically welcomes contributions and
38
+ project participation! There's a bunch of things you can do if you want to
39
+ contribute! The [ Contributor Guide] ( CONTRIBUTING.md ) has all the
40
+ information you need for everything from reporting bugs to contributing
41
+ entire new features. Please don't hesitate to jump in if you'd like to, or
42
+ even ask us questions if something isn't clear.
42
43
43
44
### API
44
45
@@ -70,15 +71,17 @@ The algorithm will follow npm's algorithm for semver resolution, and only `tag`,
70
71
71
72
The function will throw ` ETARGET ` if there was no matching manifest, and
72
73
` ENOVERSIONS ` if the packument object has no valid versions in ` versions ` .
74
+ If the only matching manifest is included in a ` policyRestrictions ` section
75
+ of the packument, then an ` E403 ` is raised.
73
76
74
77
If ` opts.defaultTag ` is provided, it will be used instead of ` latest ` . That is,
75
78
if that tag matches the selector, it will be used, even if a higher available
76
79
version matches the range.
77
80
78
- If ` opts.enjoyBy ` is provided, it should be something that can be passed to `new
79
- Date(x)` , such as a ` Date` object or a timestamp string. It will be used to
80
- filter the selected versions such that only versions less than or equal to
81
- ` enjoyBy ` are considered.
81
+ If ` opts.before ` is provided, it should be something that can be passed to
82
+ ` new Date(x)` , such as a ` Date ` object or a timestamp string. It will be
83
+ used to filter the selected versions such that only versions less than or
84
+ equal to ` before ` are considered.
82
85
83
86
If ` opts.includeDeprecated ` passed in as true, deprecated versions will be
84
87
selected. By default, deprecated versions other than ` defaultTag ` are ignored.
0 commit comments