Skip to content

Commit c96fbaf

Browse files
committed
allow list array
1 parent 789bc14 commit c96fbaf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Packages.res

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ type npmPackage = {
2828
score: {"final": float, "detail": {"quality": float, "popularity": float, "maintenance": float}},
2929
}
3030

31+
// These are packages that we do not want to filter out when loading searching from NPM.
32+
let packageAllowList: array<string> = []
33+
3134
module Resource = {
3235
type t = Npm(npmPackage) | Url(urlResource) | Outdated(npmPackage)
3336

@@ -594,7 +597,7 @@ let getStaticProps: Next.GetStaticProps.revalidate<props, unit> = async _ctx =>
594597
->Js.Array2.concat(parsePkgs(data2))
595598
->Js.Array2.concat(parsePkgs(data3))
596599
->Js.Array2.filter(pkg => {
597-
if [/* Allow list of names */]->Js.Array2.includes(pkg.name) {
600+
if packageAllowList->Js.Array2.includes(pkg.name) {
598601
true
599602
} else if pkg.name->Js.String2.includes("reason") {
600603
false

0 commit comments

Comments
 (0)