Skip to content

Commit

Permalink
Remove event-source-polyfill dependency (vercel#6407)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens authored Feb 22, 2019
1 parent a99323c commit b88addf
Show file tree
Hide file tree
Showing 4 changed files with 854 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next-server/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function formatWithValidation (url, options) {
if (process.env.NODE_ENV === 'development') {
if (url !== null && typeof url === 'object') {
Object.keys(url).forEach((key) => {
if (!urlObjectKeys.includes(key)) {
if (urlObjectKeys.indexOf(key) === -1) {
console.warn(`Unknown key passed via urlObject into url.format: ${key}`)
}
})
Expand Down
Loading

0 comments on commit b88addf

Please sign in to comment.