-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(gatsby-source-contentful): upgrade is-online #38862
chore(gatsby-source-contentful): upgrade is-online #38862
Conversation
`trim-lines`, | ||
`estree-util-to-js`, | ||
`is-reference`, | ||
`github-slugger`, | ||
].join(`|`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this list was getting messy, so I did sort it lexigraphically
async function isOnline() { | ||
return (await import(`is-online`)).default() | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed version is ESM-only, hence await import
trick
…-in-gatsby-source-contentful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
* chore(gatsby-source-contentful): upgrade is-online * test: update esm packages for jest config (cherry picked from commit 89cb129)
Description
Addressing npm audit alert
Documentation
Tests
Related Issues