New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@netlify/config

Package Overview
Dependencies
Maintainers
0
Versions
438
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/config - npm Package Compare versions

Comparing version 20.21.0 to 20.21.1

21

lib/api/site_info.js

@@ -81,21 +81,12 @@ import fetch from 'node-fetch';

: `${baseUrl}site/${siteId}/integrations/safe`;
let response;
try {
response = await fetch(url);
if (response.status !== 200) {
throw new Error(`Unexpected status code ${response.status} from fetching extensions`);
}
const response = await fetch(url);
const integrations = await response.json();
return Array.isArray(integrations) ? integrations : [];
}
catch (error) {
throwUserError(`Failed retrieving extensions for site ${siteId}: ${error.message}. ${ERROR_CALL_TO_ACTION}`);
// TODO: We should consider blocking the build as integrations are a critical part of the build process
// https://linear.app/netlify/issue/CT-1214/implement-strategy-in-builds-to-deal-with-integrations-that-we-fail-to
return [];
}
try {
if (Number(response.headers.get(`content-length`)) === 0)
return [];
const responseBody = await response.json();
return Array.isArray(responseBody) ? responseBody : [];
}
catch (error) {
throwUserError(`Failed to parse extensions for site ${siteId}: ${error.message}. ${ERROR_CALL_TO_ACTION}`);
}
};
{
"name": "@netlify/config",
"version": "20.21.0",
"version": "20.21.1",
"description": "Netlify config module",

@@ -98,3 +98,3 @@ "type": "module",

},
"gitHead": "214d1726e1f87eedf1aeb3b62ba5b3e87b84bfab"
"gitHead": "3757b1df917b868e8771a0866d0afc76d437cdf1"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc