@netlify/config 25.0.0 → 25.1.0
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/README.md +1 -1
- package/lib/api/site_info.d.ts +5 -5
- package/lib/api/site_info.js +2 -2
- package/lib/mutations/config_prop_name.d.ts +1 -1
- package/lib/utils/toml.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -364,6 +364,6 @@ Site's environment variables. Each environment variable value is an object with
|
|
|
364
364
|
netlify-config
|
|
365
365
|
```
|
|
366
366
|
|
|
367
|
-
Like [`resolveConfig()`](resolveconfig), but in the CLI. The return value is printed on `stdout`.
|
|
367
|
+
Like [`resolveConfig()`](resolveconfig), but in the CLI. The return value is printed as JSON on `stdout`.
|
|
368
368
|
|
|
369
369
|
The CLI flags use the same options.
|
package/lib/api/site_info.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NetlifyAPI } from '@netlify/api';
|
|
2
1
|
import * as z from 'zod';
|
|
2
|
+
import type { NetlifyAPI } from '@netlify/api';
|
|
3
3
|
import { ModeOption, TestOptions } from '../types/options.js';
|
|
4
4
|
type GetSiteInfoOptions = {
|
|
5
5
|
siteId: string;
|
|
@@ -15,8 +15,8 @@ type GetSiteInfoOptions = {
|
|
|
15
15
|
extensionApiBaseUrl: string;
|
|
16
16
|
};
|
|
17
17
|
export type Extension = {
|
|
18
|
-
author
|
|
19
|
-
extension_token
|
|
18
|
+
author?: string | undefined;
|
|
19
|
+
extension_token?: string | undefined;
|
|
20
20
|
has_build: boolean;
|
|
21
21
|
name: string;
|
|
22
22
|
slug: string;
|
|
@@ -53,8 +53,8 @@ export type MinimalAccount = {
|
|
|
53
53
|
members_count: number;
|
|
54
54
|
};
|
|
55
55
|
declare const ExtensionResponseSchema: z.ZodArray<z.ZodObject<{
|
|
56
|
-
author: z.
|
|
57
|
-
extension_token: z.
|
|
56
|
+
author: z.ZodOptional<z.ZodString>;
|
|
57
|
+
extension_token: z.ZodOptional<z.ZodString>;
|
|
58
58
|
has_build: z.ZodBoolean;
|
|
59
59
|
name: z.ZodString;
|
|
60
60
|
slug: z.ZodString;
|
package/lib/api/site_info.js
CHANGED
|
@@ -90,8 +90,8 @@ const ExtensionResponseSchema = z.array(z.object({
|
|
|
90
90
|
// path. They might call the Netlify API expecting to have an API token available to them when
|
|
91
91
|
// they really don't. For the time being, I've added instrumentation to Jigsaw to help us figure
|
|
92
92
|
// out if this is dead code or actually supports current users.
|
|
93
|
-
author: z.string().optional()
|
|
94
|
-
extension_token: z.string().optional()
|
|
93
|
+
author: z.string().optional(),
|
|
94
|
+
extension_token: z.string().optional(),
|
|
95
95
|
has_build: z.boolean(),
|
|
96
96
|
name: z.string(),
|
|
97
97
|
slug: z.string(),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Retrieve normalized property name */
|
|
2
|
-
export declare const getPropName: (keys: string[]) => string;
|
|
2
|
+
export declare const getPropName: (keys: (string | number)[]) => string;
|
package/lib/utils/toml.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/config",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.1.0",
|
|
4
4
|
"description": "Netlify config module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -58,10 +58,9 @@
|
|
|
58
58
|
},
|
|
59
59
|
"license": "MIT",
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@
|
|
62
|
-
"@netlify/
|
|
63
|
-
"@netlify/
|
|
64
|
-
"@netlify/redirect-parser": "^16.0.0",
|
|
61
|
+
"@netlify/api": "^15.1.0",
|
|
62
|
+
"@netlify/headers-parser": "^10.1.0",
|
|
63
|
+
"@netlify/redirect-parser": "^16.1.0",
|
|
65
64
|
"chalk": "^5.0.0",
|
|
66
65
|
"cron-parser": "^4.1.0",
|
|
67
66
|
"deepmerge": "^4.2.2",
|
|
@@ -78,6 +77,7 @@
|
|
|
78
77
|
"p-locate": "^6.0.0",
|
|
79
78
|
"path-type": "^6.0.0",
|
|
80
79
|
"read-package-up": "^11.0.0",
|
|
80
|
+
"smol-toml": "^1.5.2",
|
|
81
81
|
"tomlify-j0.4": "^3.0.0",
|
|
82
82
|
"validate-npm-package-name": "^5.0.0",
|
|
83
83
|
"yaml": "^2.8.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"zod": "^4.0.5"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@types/node": "^
|
|
88
|
+
"@types/node": "^22.12.0",
|
|
89
89
|
"ava": "^5.0.0",
|
|
90
90
|
"c8": "^10.0.0",
|
|
91
91
|
"has-ansi": "^6.0.0",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"engines": {
|
|
97
97
|
"node": ">=22.12.0"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "0a4aa4be3f9abbb49ebe00e82c64898148986715"
|
|
100
100
|
}
|