@netlify/build 29.53.1 → 29.54.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.
@@ -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
  }>;
@@ -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.53.1",
3
+ "version": "29.54.1",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -73,12 +73,12 @@
73
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.78",
76
+ "@netlify/functions-utils": "^5.2.80",
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.37.10",
81
+ "@netlify/zip-it-and-ship-it": "9.38.1",
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": "4ae7f95ca7b31f392956894d5cd6ecf781349b55"
168
+ "gitHead": "db3127717cd5acad9cf99022bd15cb30d2b993dd"
169
169
  }