@netlify/config 20.15.2 → 20.15.4

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.
@@ -25,6 +25,6 @@ export declare const parseFlags: () => Partial<{
25
25
  testOpts: unknown;
26
26
  offline: unknown;
27
27
  buffer: unknown;
28
- _: (string | number)[];
28
+ _: Array<string | number>;
29
29
  $0: string;
30
30
  }>;
@@ -10,7 +10,7 @@ export declare const validations: ({
10
10
  property: string;
11
11
  } | {
12
12
  property: string;
13
- check: (value: any) => boolean;
13
+ check: (value: any) => value is string;
14
14
  message: string;
15
15
  example: () => {
16
16
  edge_functions: {
package/lib/path.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  export declare const getConfigPath: ({ configOpt, cwd, repositoryRoot, configBase, packagePath, }: {
10
10
  cwd: string;
11
11
  repositoryRoot: string;
12
- configBase;
12
+ configBase: any;
13
13
  configOpt?: string;
14
14
  packagePath?: string;
15
15
  }) => Promise<string | undefined>;
@@ -6,6 +6,6 @@ type NoUndefinedField<T> = {
6
6
  [P in keyof T]: Exclude<T[P], null | undefined>;
7
7
  };
8
8
  export declare const removeUndefined: <T extends object>(obj: T) => NoUndefinedField<T>;
9
- export declare const isTruthy: <T>(value: T | false | undefined | null | '' | ' ') => value is T;
9
+ export declare const isTruthy: <T>(value: T | false | undefined | null | "" | " ") => value is T;
10
10
  export declare const isDefined: <T>(value: T | undefined | null) => value is T;
11
11
  export {};
@@ -1,6 +1,6 @@
1
- export function isArrayOfObjects(value: any): boolean;
2
- export function isArrayOfStrings(value: any): boolean;
3
- export function isString(value: any): boolean;
1
+ export function isArrayOfObjects(value: any): value is Record<PropertyKey, unknown>[];
2
+ export function isArrayOfStrings(value: any): value is string[];
3
+ export function isString(value: any): value is string;
4
4
  export function validProperties(propNames: any, legacyPropNames: any): {
5
5
  check: (value: any) => boolean;
6
6
  message: string;
@@ -10,7 +10,7 @@ export const PRE_CASE_NORMALIZE_VALIDATIONS: {
10
10
  }[];
11
11
  export const PRE_MERGE_VALIDATIONS: ({
12
12
  property: string;
13
- check: (value: any) => boolean;
13
+ check: (value: any) => value is string;
14
14
  message: string;
15
15
  example: () => {
16
16
  build: {
@@ -19,7 +19,7 @@ export const PRE_MERGE_VALIDATIONS: ({
19
19
  };
20
20
  } | {
21
21
  property: string;
22
- check: (value: any) => boolean;
22
+ check: (value: any) => value is Record<PropertyKey, unknown>[];
23
23
  message: string;
24
24
  example: () => {
25
25
  plugins: {
@@ -52,7 +52,7 @@ export const PRE_CONTEXT_VALIDATIONS: ({
52
52
  })[];
53
53
  export const PRE_NORMALIZE_VALIDATIONS: ({
54
54
  property: string;
55
- check: (value: any) => boolean;
55
+ check: (value: any) => value is string;
56
56
  message: string;
57
57
  example: () => {
58
58
  build: {
@@ -61,7 +61,7 @@ export const PRE_NORMALIZE_VALIDATIONS: ({
61
61
  };
62
62
  } | {
63
63
  property: string;
64
- check: (value: any) => boolean;
64
+ check: (value: any) => value is Record<PropertyKey, unknown>[];
65
65
  message: string;
66
66
  example: () => {
67
67
  plugins: {
@@ -88,7 +88,7 @@ export const PRE_NORMALIZE_VALIDATIONS: ({
88
88
  };
89
89
  } | {
90
90
  property: string;
91
- check: (value: any) => boolean;
91
+ check: (value: any) => value is Record<PropertyKey, unknown>[];
92
92
  message: string;
93
93
  example: () => {
94
94
  edge_functions: {
@@ -109,7 +109,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
109
109
  property: string;
110
110
  } | {
111
111
  property: string;
112
- check: (value: any) => boolean;
112
+ check: (value: any) => value is string;
113
113
  message: string;
114
114
  example: () => {
115
115
  edge_functions: {
@@ -150,7 +150,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
150
150
  };
151
151
  } | {
152
152
  property: string;
153
- check: (value: any) => boolean;
153
+ check: (value: any) => value is string;
154
154
  message: string;
155
155
  example: () => {
156
156
  build: {
@@ -159,7 +159,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
159
159
  };
160
160
  } | {
161
161
  property: string;
162
- check: (value: any) => boolean;
162
+ check: (value: any) => value is string;
163
163
  message: string;
164
164
  example: () => {
165
165
  build: {
@@ -168,7 +168,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
168
168
  };
169
169
  } | {
170
170
  property: string;
171
- check: (value: any) => boolean;
171
+ check: (value: any) => value is string;
172
172
  message: string;
173
173
  example: () => {
174
174
  build: {
@@ -177,7 +177,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
177
177
  };
178
178
  } | {
179
179
  property: string;
180
- check: (value: any) => boolean;
180
+ check: (value: any) => value is string;
181
181
  message: string;
182
182
  example: () => {
183
183
  build: {
@@ -186,7 +186,18 @@ export const POST_NORMALIZE_VALIDATIONS: ({
186
186
  };
187
187
  } | {
188
188
  property: string;
189
- check: (value: any) => boolean;
189
+ check: typeof isPlainObj;
190
+ message: string;
191
+ example: (value: any, key: any, prevPath: any) => {
192
+ functions: {
193
+ [x: number]: {
194
+ external_node_modules: string[];
195
+ };
196
+ };
197
+ };
198
+ } | {
199
+ property: string;
200
+ check: (value: any) => value is string;
190
201
  message: string;
191
202
  example: (value: any, key: any, prevPath: any) => {
192
203
  functions: {
@@ -197,7 +208,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
197
208
  };
198
209
  } | {
199
210
  property: string;
200
- check: (value: any) => boolean;
211
+ check: (value: any) => value is string[];
201
212
  message: string;
202
213
  example: (value: any, key: any, prevPath: any) => {
203
214
  functions: {
@@ -208,7 +219,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
208
219
  };
209
220
  } | {
210
221
  property: string;
211
- check: (value: any) => boolean;
222
+ check: (value: any) => value is string[];
212
223
  message: string;
213
224
  example: (value: any, key: any, prevPath: any) => {
214
225
  functions: {
@@ -219,7 +230,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
219
230
  };
220
231
  } | {
221
232
  property: string;
222
- check: (value: any) => boolean;
233
+ check: (value: any) => value is string[];
223
234
  message: string;
224
235
  example: (value: any, key: any, prevPath: any) => {
225
236
  functions: {
@@ -274,7 +285,7 @@ export const POST_NORMALIZE_VALIDATIONS: ({
274
285
  };
275
286
  propertyName: string;
276
287
  property: string;
277
- check: (value: any) => boolean;
288
+ check: (value: any) => value is string;
278
289
  message: string;
279
290
  })[];
280
291
  import isPlainObj from 'is-plain-obj';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/config",
3
- "version": "20.15.2",
3
+ "version": "20.15.4",
4
4
  "description": "Netlify config module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -72,7 +72,7 @@
72
72
  "is-plain-obj": "^4.0.0",
73
73
  "js-yaml": "^4.0.0",
74
74
  "map-obj": "^5.0.0",
75
- "netlify": "^13.1.18",
75
+ "netlify": "^13.1.20",
76
76
  "netlify-headers-parser": "^7.1.4",
77
77
  "netlify-redirect-parser": "^14.3.0",
78
78
  "node-fetch": "^3.3.1",
@@ -95,5 +95,5 @@
95
95
  "engines": {
96
96
  "node": "^14.16.0 || >=16.0.0"
97
97
  },
98
- "gitHead": "e31f6da5d8d9f4dbaf70798a04d429dba72928d9"
98
+ "gitHead": "77980fa9db268a0beead2e2727a36d833716bc11"
99
99
  }