File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/pages/package-timeline/[[org]] Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ async function loadMore() {
9797
9898const SIZE_INCREASE_THRESHOLD = 0.25
9999const DEP_INCREASE_THRESHOLD = 5
100- const NO_LICENSE_VALUES = [' ' , ' UNLICENSED' ]
100+ const NO_LICENSE_VALUES = new Set ( [' ' , ' UNLICENSED' ])
101101
102102const sizeCache = shallowReactive (new Map <string , InstallSizeResult >())
103103const fetchingVersions = shallowReactive (new Set <string >())
@@ -216,8 +216,8 @@ const versionSubEvents = computed(() => {
216216 const currentLicense = current .license ?? ' Unknown'
217217 const previousLicense = previous .license ?? ' Unknown'
218218 if (currentLicense !== previousLicense ) {
219- const hadNoLicense = NO_LICENSE_VALUES .includes (previousLicense )
220- const hasNoLicense = NO_LICENSE_VALUES .includes (currentLicense )
219+ const hadNoLicense = NO_LICENSE_VALUES .has (previousLicense )
220+ const hasNoLicense = NO_LICENSE_VALUES .has (currentLicense )
221221 events .push ({
222222 key: ' license' ,
223223 positive: hadNoLicense && ! hasNoLicense ,
You can’t perform that action at this time.
0 commit comments