@netlify/build 29.53.0 → 29.54.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/lib/core/constants.d.ts +7 -1
- package/lib/core/constants.js +3 -1
- package/package.json +5 -5
package/lib/core/constants.d.ts
CHANGED
|
@@ -54,6 +54,10 @@ export interface NetlifyPluginConstants {
|
|
|
54
54
|
* the Netlify site ID
|
|
55
55
|
*/
|
|
56
56
|
SITE_ID: string;
|
|
57
|
+
/**
|
|
58
|
+
* the Netlify account ID
|
|
59
|
+
*/
|
|
60
|
+
ACCOUNT_ID?: string;
|
|
57
61
|
/**
|
|
58
62
|
* the Netlify API access token
|
|
59
63
|
*/
|
|
@@ -71,7 +75,7 @@ export interface NetlifyPluginConstants {
|
|
|
71
75
|
/**
|
|
72
76
|
* Retrieve constants passed to plugins
|
|
73
77
|
*/
|
|
74
|
-
export declare const getConstants: ({ configPath, buildDir, packagePath, functionsDistDir, edgeFunctionsDistDir, cacheDir, netlifyConfig, siteInfo: { id: siteId }, apiHost, token, mode, }: {
|
|
78
|
+
export declare const getConstants: ({ configPath, buildDir, packagePath, functionsDistDir, edgeFunctionsDistDir, cacheDir, netlifyConfig, siteInfo: { id: siteId, account_id: accountId }, apiHost, token, mode, }: {
|
|
75
79
|
configPath: any;
|
|
76
80
|
buildDir: any;
|
|
77
81
|
packagePath: any;
|
|
@@ -81,6 +85,7 @@ export declare const getConstants: ({ configPath, buildDir, packagePath, functio
|
|
|
81
85
|
netlifyConfig: any;
|
|
82
86
|
siteInfo: {
|
|
83
87
|
id: any;
|
|
88
|
+
account_id: any;
|
|
84
89
|
};
|
|
85
90
|
apiHost: any;
|
|
86
91
|
token: any;
|
|
@@ -110,6 +115,7 @@ export declare const addMutableConstants: ({ constants, buildDir, netlifyConfig:
|
|
|
110
115
|
IS_LOCAL: string | undefined;
|
|
111
116
|
NETLIFY_BUILD_VERSION: string | undefined;
|
|
112
117
|
SITE_ID: string | undefined;
|
|
118
|
+
ACCOUNT_ID: string | undefined;
|
|
113
119
|
NETLIFY_API_TOKEN: string | undefined;
|
|
114
120
|
NETLIFY_API_HOST: string | undefined;
|
|
115
121
|
}>;
|
package/lib/core/constants.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ROOT_PACKAGE_JSON } from '../utils/json.js';
|
|
|
6
6
|
/**
|
|
7
7
|
* Retrieve constants passed to plugins
|
|
8
8
|
*/
|
|
9
|
-
export const getConstants = async function ({ configPath, buildDir, packagePath, functionsDistDir, edgeFunctionsDistDir, cacheDir, netlifyConfig, siteInfo: { id: siteId }, apiHost, token, mode, }) {
|
|
9
|
+
export const getConstants = async function ({ configPath, buildDir, packagePath, functionsDistDir, edgeFunctionsDistDir, cacheDir, netlifyConfig, siteInfo: { id: siteId, account_id: accountId }, apiHost, token, mode, }) {
|
|
10
10
|
const isLocal = mode !== 'buildbot';
|
|
11
11
|
const normalizedCacheDir = getCacheDir({ cacheDir, cwd: join(buildDir, packagePath || '') });
|
|
12
12
|
const constants = {
|
|
@@ -30,6 +30,8 @@ export const getConstants = async function ({ configPath, buildDir, packagePath,
|
|
|
30
30
|
NETLIFY_BUILD_VERSION: ROOT_PACKAGE_JSON.version,
|
|
31
31
|
// The Netlify Site ID
|
|
32
32
|
SITE_ID: siteId,
|
|
33
|
+
// The Netlify Account ID
|
|
34
|
+
ACCOUNT_ID: accountId,
|
|
33
35
|
// The Netlify API access token
|
|
34
36
|
NETLIFY_API_TOKEN: token,
|
|
35
37
|
// The Netlify API host
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.
|
|
3
|
+
"version": "29.54.0",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -70,15 +70,15 @@
|
|
|
70
70
|
"@bugsnag/js": "^7.0.0",
|
|
71
71
|
"@netlify/blobs": "^7.4.0",
|
|
72
72
|
"@netlify/cache-utils": "^5.1.6",
|
|
73
|
-
"@netlify/config": "^20.
|
|
73
|
+
"@netlify/config": "^20.19.0",
|
|
74
74
|
"@netlify/edge-bundler": "12.2.3",
|
|
75
75
|
"@netlify/framework-info": "^9.8.13",
|
|
76
|
-
"@netlify/functions-utils": "^5.2.
|
|
76
|
+
"@netlify/functions-utils": "^5.2.79",
|
|
77
77
|
"@netlify/git-utils": "^5.1.1",
|
|
78
78
|
"@netlify/opentelemetry-utils": "^1.2.1",
|
|
79
79
|
"@netlify/plugins-list": "^6.80.0",
|
|
80
80
|
"@netlify/run-utils": "^5.1.1",
|
|
81
|
-
"@netlify/zip-it-and-ship-it": "9.
|
|
81
|
+
"@netlify/zip-it-and-ship-it": "9.38.0",
|
|
82
82
|
"@sindresorhus/slugify": "^2.0.0",
|
|
83
83
|
"ansi-escapes": "^6.0.0",
|
|
84
84
|
"chalk": "^5.0.0",
|
|
@@ -165,5 +165,5 @@
|
|
|
165
165
|
"engines": {
|
|
166
166
|
"node": "^14.16.0 || >=16.0.0"
|
|
167
167
|
},
|
|
168
|
-
"gitHead": "
|
|
168
|
+
"gitHead": "5c70faeffbf9efe9f9255bb20e6013dc6ddfd1bb"
|
|
169
169
|
}
|