Skip to content

Commit

Permalink
fix(deps): update dependency netlify-headers-parser to v6 (#3760)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ehmicky <ehmicky@users.noreply.github.com>
Co-authored-by: ehmicky <ehmicky@gmail.com>
  • Loading branch information
4 people authored Dec 2, 2021
1 parent ee166eb commit 41fbb0d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
41 changes: 34 additions & 7 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"mock-require": "^3.0.3",
"multiparty": "^4.2.1",
"netlify": "^10.0.0",
"netlify-headers-parser": "^5.0.0",
"netlify-headers-parser": "^6.0.0",
"netlify-redirect-parser": "^13.0.0",
"netlify-redirector": "^0.2.1",
"node-fetch": "^2.6.0",
Expand Down
4 changes: 3 additions & 1 deletion src/utils/headers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { parseAllHeaders } = require('netlify-headers-parser')
// TODO: use static `import` after migrating this repository to pure ES modules
const netlifyHeadersParser = import('netlify-headers-parser')

const { log } = require('./command-helpers')
const { NETLIFYDEVERR } = require('./logo')
Expand All @@ -25,6 +26,7 @@ const getHeaderValues = function ({ values }) {
}

const parseHeaders = async function ({ configPath, headersFiles }) {
const { parseAllHeaders } = await netlifyHeadersParser
const { errors, headers } = await parseAllHeaders({
headersFiles,
netlifyConfigPath: configPath,
Expand Down

1 comment on commit 41fbb0d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 363 MB

Please sign in to comment.