@netlify/config 20.20.0 → 20.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/site_info.js +6 -15
- package/package.json +4 -4
package/lib/api/site_info.js
CHANGED
|
@@ -78,23 +78,14 @@ const getIntegrations = async function ({ siteId, accountId, testOpts, offline,
|
|
|
78
78
|
const url = accountId
|
|
79
79
|
? `${baseUrl}team/${accountId}/integrations/installations/meta/${siteId}`
|
|
80
80
|
: `${baseUrl}site/${siteId}/integrations/safe`;
|
|
81
|
-
let response;
|
|
82
81
|
try {
|
|
83
|
-
response = await fetch(url);
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
82
|
+
const response = await fetch(url);
|
|
83
|
+
const integrations = await response.json();
|
|
84
|
+
return Array.isArray(integrations) ? integrations : [];
|
|
87
85
|
}
|
|
88
86
|
catch (error) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
if (Number(response.headers.get(`content-length`)) === 0)
|
|
93
|
-
return [];
|
|
94
|
-
const responseBody = await response.json();
|
|
95
|
-
return Array.isArray(responseBody) ? responseBody : [];
|
|
96
|
-
}
|
|
97
|
-
catch (error) {
|
|
98
|
-
throwUserError(`Failed to parse extensions for site ${siteId}: ${error.message}. ${ERROR_CALL_TO_ACTION}`);
|
|
87
|
+
// TODO: We should consider blocking the build as integrations are a critical part of the build process
|
|
88
|
+
// https://linear.app/netlify/issue/CT-1214/implement-strategy-in-builds-to-deal-with-integrations-that-we-fail-to
|
|
89
|
+
return [];
|
|
99
90
|
}
|
|
100
91
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/config",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.21.1",
|
|
4
4
|
"description": "Netlify config module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"license": "MIT",
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@iarna/toml": "^2.2.5",
|
|
62
|
-
"@netlify/headers-parser": "^7.
|
|
63
|
-
"@netlify/redirect-parser": "^14.
|
|
62
|
+
"@netlify/headers-parser": "^7.3.0",
|
|
63
|
+
"@netlify/redirect-parser": "^14.5.0",
|
|
64
64
|
"chalk": "^5.0.0",
|
|
65
65
|
"cron-parser": "^4.1.0",
|
|
66
66
|
"deepmerge": "^4.2.2",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"engines": {
|
|
96
96
|
"node": "^14.16.0 || >=16.0.0"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "3757b1df917b868e8771a0866d0afc76d437cdf1"
|
|
99
99
|
}
|