Skip to content

Commit

Permalink
fix(deps): update dependency @netlify/plugins-list to v6 (#3755)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency @netlify/plugins-list to v6

* chore: fix `@netlify/plugins-list` import

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ehmicky <ehmicky@gmail.com>
  • Loading branch information
3 people authored Dec 2, 2021
1 parent 7189009 commit a58a3fb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
27 changes: 20 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 @@ -84,7 +84,7 @@
"@netlify/framework-info": "^6.0.0",
"@netlify/local-functions-proxy": "^1.1.1",
"@netlify/plugin-edge-handlers": "^2.0.0",
"@netlify/plugins-list": "^5.0.0",
"@netlify/plugins-list": "^6.0.1",
"@netlify/routing-local-proxy": "^0.34.1",
"@netlify/zip-it-and-ship-it": "5.2.0",
"@oclif/command": "^1.6.1",
Expand Down
5 changes: 4 additions & 1 deletion src/utils/init/plugins.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
const { pluginsList, pluginsUrl } = require('@netlify/plugins-list')
const fetch = require('node-fetch')

// TODO: use static `import` after migrating this repository to pure ES modules
const netlifyPluginsList = import('@netlify/plugins-list')

// 1 minute
const PLUGINS_LIST_TIMEOUT = 6e4

const getPluginsList = async () => {
const { pluginsList, pluginsUrl } = await netlifyPluginsList
try {
const response = await fetch(pluginsUrl, { timeout: PLUGINS_LIST_TIMEOUT })
return await response.json()
Expand Down

1 comment on commit a58a3fb

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