Skip to content

Commit

Permalink
fix(deps): update dependency netlify-redirect-parser to v13 (#3757)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency netlify-redirect-parser to v13

* chore: fix using netlify-redirect-parser

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ehmicky <ehmicky@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Dec 2, 2021
1 parent fe516be commit ac5ff5c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 9 deletions.
39 changes: 32 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 @@ -154,7 +154,7 @@
"multiparty": "^4.2.1",
"netlify": "^10.0.0",
"netlify-headers-parser": "^5.0.0",
"netlify-redirect-parser": "^12.0.0",
"netlify-redirect-parser": "^13.0.0",
"netlify-redirector": "^0.2.1",
"node-fetch": "^2.6.0",
"node-version-alias": "^1.0.1",
Expand Down
4 changes: 3 additions & 1 deletion src/utils/redirects.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
const { parseAllRedirects } = require('netlify-redirect-parser')
// TODO: use static `import` after migrating this repository to pure ES modules
const netlifyRedirectParser = import('netlify-redirect-parser')

const { log } = require('./command-helpers')
const { NETLIFYDEVERR } = require('./logo')

// Parse, normalize and validate all redirects from `_redirects` files
// and `netlify.toml`
const parseRedirects = async function ({ configPath, redirectsFiles }) {
const { parseAllRedirects } = await netlifyRedirectParser
const { errors, redirects } = await parseAllRedirects({
redirectsFiles,
netlifyConfigPath: configPath,
Expand Down

1 comment on commit ac5ff5c

@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.