@netlify/build 36.3.0 → 36.3.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.
@@ -16,7 +16,13 @@ export const addExactDependencies = function ({ packageRoot, isLocal, packages }
16
16
  const runCommand = async function ({ packageRoot, packages = [], isLocal, type }) {
17
17
  try {
18
18
  const [command, ...args] = await getCommand({ packageRoot, type, isLocal });
19
- await execa(command, [...args, ...packages], { cwd: packageRoot, all: true });
19
+ // `addExact` is used to install Netlify Integration/extension plugins, which can be
20
+ // distributed as remote tarball URLs (e.g. `https://*.netlify.app/packages/*.tgz`)
21
+ // instead of npm registry packages. Newer npm versions (npm v12+) disable fetching
22
+ // such "remote" package types by default, so we opt back in for this command only,
23
+ // without affecting the user's global npm config or other install commands.
24
+ const env = type === 'addExact' ? { npm_config_allow_remote: 'all' } : {};
25
+ await execa(command, [...args, ...packages], { cwd: packageRoot, all: true, env });
20
26
  }
21
27
  catch (error) {
22
28
  const message = getErrorMessage(error.all);
@@ -30,7 +30,6 @@ export declare const logWarning: (logs: Logs | undefined, string: string, opts?:
30
30
  export declare const logMessage: (logs: Logs | undefined, string: string, opts?: {}) => void;
31
31
  export declare const logObject: (logs: Logs | undefined, object: any, opts: any) => void;
32
32
  export declare const logArray: (logs: Logs | undefined, array: any, opts?: {}) => void;
33
- export declare const logErrorArray: (logs: Logs | undefined, array: any, opts?: {}) => void;
34
33
  export declare const logWarningArray: (logs: Logs | undefined, array: any, opts?: {}) => void;
35
34
  export declare const logHeader: (logs: Logs | undefined, string: string, opts?: {}) => void;
36
35
  export declare const logErrorHeader: (logs: Logs | undefined, string: string, opts?: {}) => void;
package/lib/log/logger.js CHANGED
@@ -82,10 +82,6 @@ export const logObject = function (logs, object, opts) {
82
82
  export const logArray = function (logs, array, opts = {}) {
83
83
  logMessage(logs, serializeIndentedArray(array), { color: THEME.none, ...opts });
84
84
  };
85
- // Print an array of errors
86
- export const logErrorArray = function (logs, array, opts = {}) {
87
- logMessage(logs, serializeIndentedArray(array), { color: THEME.errorLine, ...opts });
88
- };
89
85
  // Print an array of warnings
90
86
  export const logWarningArray = function (logs, array, opts = {}) {
91
87
  logMessage(logs, serializeIndentedArray(array), { color: THEME.warningLine, ...opts });
@@ -1,15 +1,4 @@
1
1
  import { z } from 'zod';
2
- declare const deployIDSourceTypeSchema: z.ZodEnum<["cookie", "header", "query"]>;
3
- declare const deployIDSourceSchema: z.ZodObject<{
4
- type: z.ZodEnum<["cookie", "header", "query"]>;
5
- name: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- name: string;
8
- type: "cookie" | "header" | "query";
9
- }, {
10
- name: string;
11
- type: "cookie" | "header" | "query";
12
- }>;
13
2
  declare const skewProtectionConfigSchema: z.ZodObject<{
14
3
  patterns: z.ZodArray<z.ZodString, "many">;
15
4
  sources: z.ZodArray<z.ZodObject<{
@@ -36,8 +25,6 @@ declare const skewProtectionConfigSchema: z.ZodObject<{
36
25
  }[];
37
26
  }>;
38
27
  export type SkewProtectionConfig = z.infer<typeof skewProtectionConfigSchema>;
39
- export type DeployIDSource = z.infer<typeof deployIDSourceSchema>;
40
- export type DeployIDSourceType = z.infer<typeof deployIDSourceTypeSchema>;
41
28
  export declare const loadSkewProtectionConfig: (configPath: string) => Promise<{
42
29
  patterns: string[];
43
30
  sources: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "36.3.0",
3
+ "version": "36.3.2",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -69,7 +69,7 @@
69
69
  "@bugsnag/js": "^8.0.0",
70
70
  "@netlify/blobs": "^10.4.4",
71
71
  "@netlify/cache-utils": "^7.1.1",
72
- "@netlify/config": "^25.2.0",
72
+ "@netlify/config": "^25.2.1",
73
73
  "@netlify/edge-bundler": "16.0.1",
74
74
  "@netlify/functions-utils": "^7.1.2",
75
75
  "@netlify/git-utils": "^7.1.0",
@@ -152,5 +152,5 @@
152
152
  "engines": {
153
153
  "node": ">=22.12.0"
154
154
  },
155
- "gitHead": "f34dd81fc3bc8925aabe5cf9c1cdce4e8eebc4e0"
155
+ "gitHead": "13a8ecb3e007601f468038536e4cc39484836f68"
156
156
  }