211
return false;
212
}
214
>
if (minorBase > desiredMinorBase) {
215
// higher minor version
216
return (!minorMustEqual);
217
}
219
>
// at this point, minorBase are equal
220
>
221
>
if (patchBase < desiredPatchBase) {
222
// smaller patch version
223
return false;
224
}
226
>
if (patchBase > desiredPatchBase) {
227
// higher patch version
228
return (!patchMustEqual);
229
}
231
>
// at this point, patchBase are equal
232
>
233
if (productTs && productTs < desiredNotBefore) {
234
return false;
235
}
237
>
return true;
238
>
}
239
240
type ProductDate = string | Date | undefined;