@netlify/config 20.21.0 → 20.21.2

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.
@@ -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
- if (response.status !== 200) {
85
- throw new Error(`Unexpected status code ${response.status} from fetching extensions`);
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
- throwUserError(`Failed retrieving extensions for site ${siteId}: ${error.message}. ${ERROR_CALL_TO_ACTION}`);
90
- }
91
- try {
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
  };
@@ -25,6 +25,132 @@ export declare const parseFlags: () => Partial<{
25
25
  testOpts: unknown;
26
26
  offline: unknown;
27
27
  buffer: unknown;
28
- _: Array<string | number>;
28
+ _: (string | number)[];
29
29
  $0: string;
30
+ } | {
31
+ featureFlags: any;
32
+ then<TResult1 = {
33
+ [x: string]: unknown;
34
+ config: unknown;
35
+ defaultConfig: any;
36
+ cachedConfig: any;
37
+ cachedConfigPath: unknown;
38
+ inlineConfig: any;
39
+ configMutations: any;
40
+ cwd: unknown;
41
+ packagePath: unknown;
42
+ repositoryRoot: unknown;
43
+ output: unknown;
44
+ stable: boolean;
45
+ token: unknown;
46
+ host: unknown;
47
+ scheme: unknown;
48
+ pathPrefix: unknown;
49
+ siteId: unknown;
50
+ accountId: unknown;
51
+ context: unknown;
52
+ branch: unknown;
53
+ baseRelDir: unknown;
54
+ mode: unknown;
55
+ debug: unknown;
56
+ testOpts: unknown;
57
+ featureFlags: unknown;
58
+ offline: unknown;
59
+ buffer: unknown;
60
+ _: (string | number)[];
61
+ $0: string;
62
+ }, TResult2 = never>(onfulfilled?: ((value: {
63
+ [x: string]: unknown;
64
+ config: unknown;
65
+ defaultConfig: any;
66
+ cachedConfig: any;
67
+ cachedConfigPath: unknown;
68
+ inlineConfig: any;
69
+ configMutations: any;
70
+ cwd: unknown;
71
+ packagePath: unknown;
72
+ repositoryRoot: unknown;
73
+ output: unknown;
74
+ stable: boolean;
75
+ token: unknown;
76
+ host: unknown;
77
+ scheme: unknown;
78
+ pathPrefix: unknown;
79
+ siteId: unknown;
80
+ accountId: unknown;
81
+ context: unknown;
82
+ branch: unknown;
83
+ baseRelDir: unknown;
84
+ mode: unknown;
85
+ debug: unknown;
86
+ testOpts: unknown;
87
+ featureFlags: unknown;
88
+ offline: unknown;
89
+ buffer: unknown;
90
+ _: (string | number)[];
91
+ $0: string;
92
+ }) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
93
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<{
94
+ [x: string]: unknown;
95
+ config: unknown;
96
+ defaultConfig: any;
97
+ cachedConfig: any;
98
+ cachedConfigPath: unknown;
99
+ inlineConfig: any;
100
+ configMutations: any;
101
+ cwd: unknown;
102
+ packagePath: unknown;
103
+ repositoryRoot: unknown;
104
+ output: unknown;
105
+ stable: boolean;
106
+ token: unknown;
107
+ host: unknown;
108
+ scheme: unknown;
109
+ pathPrefix: unknown;
110
+ siteId: unknown;
111
+ accountId: unknown;
112
+ context: unknown;
113
+ branch: unknown;
114
+ baseRelDir: unknown;
115
+ mode: unknown;
116
+ debug: unknown;
117
+ testOpts: unknown;
118
+ featureFlags: unknown;
119
+ offline: unknown;
120
+ buffer: unknown;
121
+ _: (string | number)[];
122
+ $0: string;
123
+ } | TResult>;
124
+ finally(onfinally?: (() => void) | null | undefined): Promise<{
125
+ [x: string]: unknown;
126
+ config: unknown;
127
+ defaultConfig: any;
128
+ cachedConfig: any;
129
+ cachedConfigPath: unknown;
130
+ inlineConfig: any;
131
+ configMutations: any;
132
+ cwd: unknown;
133
+ packagePath: unknown;
134
+ repositoryRoot: unknown;
135
+ output: unknown;
136
+ stable: boolean;
137
+ token: unknown;
138
+ host: unknown;
139
+ scheme: unknown;
140
+ pathPrefix: unknown;
141
+ siteId: unknown;
142
+ accountId: unknown;
143
+ context: unknown;
144
+ branch: unknown;
145
+ baseRelDir: unknown;
146
+ mode: unknown;
147
+ debug: unknown;
148
+ testOpts: unknown;
149
+ featureFlags: unknown;
150
+ offline: unknown;
151
+ buffer: unknown;
152
+ _: (string | number)[];
153
+ $0: string;
154
+ }>;
155
+ [Symbol.toStringTag]: string;
30
156
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/config",
3
- "version": "20.21.0",
3
+ "version": "20.21.2",
4
4
  "description": "Netlify config module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -65,7 +65,7 @@
65
65
  "cron-parser": "^4.1.0",
66
66
  "deepmerge": "^4.2.2",
67
67
  "dot-prop": "^7.0.0",
68
- "execa": "^6.0.0",
68
+ "execa": "^7.0.0",
69
69
  "fast-safe-stringify": "^2.0.7",
70
70
  "figures": "^5.0.0",
71
71
  "filter-obj": "^5.0.0",
@@ -74,7 +74,7 @@
74
74
  "is-plain-obj": "^4.0.0",
75
75
  "js-yaml": "^4.0.0",
76
76
  "map-obj": "^5.0.0",
77
- "netlify": "^13.2.0",
77
+ "netlify": "^13.2.1",
78
78
  "node-fetch": "^3.3.1",
79
79
  "omit.js": "^2.0.2",
80
80
  "p-locate": "^6.0.0",
@@ -88,12 +88,12 @@
88
88
  "ava": "^4.0.0",
89
89
  "c8": "^7.12.0",
90
90
  "has-ansi": "^5.0.0",
91
- "is-ci": "^3.0.0",
91
+ "is-ci": "^4.0.0",
92
92
  "tmp-promise": "^3.0.2",
93
93
  "typescript": "^5.0.0"
94
94
  },
95
95
  "engines": {
96
96
  "node": "^14.16.0 || >=16.0.0"
97
97
  },
98
- "gitHead": "214d1726e1f87eedf1aeb3b62ba5b3e87b84bfab"
98
+ "gitHead": "a6d31ce1991f5fcdbdb275ce2d68fe8a60329120"
99
99
  }