fix: NextJS 12 Error (#1)

This commit is contained in:
2022-09-20 10:09:24 +02:00
committed by GitHub
parent 8912ae3616
commit f5ed7ce221

View File

@ -27,6 +27,7 @@ const ammendOneOfRules = config => (a, c) => {
&& c.test.source
const matchesRegExpIssuer = 'issuer' in c
&& typeof c.issuer !== 'undefined'
&& c.issuer instanceof RegExp
&& c.issuer.source
@ -43,12 +44,14 @@ const ammendOneOfRules = config => (a, c) => {
|| (() => false))
const issuerAccepts = ('issuer' in c
&& typeof c.issuer !== 'undefined'
&& 'and' in c.issuer
&& Array.isArray(c.issuer.and)
&& matchArray(c.issuer.and)
|| (() => false))
const issuerAvoids = ('issuer' in c
&& typeof c.issuer !== 'undefined'
&& 'not' in c.issuer
&& Array.isArray(c.issuer.not)
&& matchArray(c.issuer.not)