@netlify/build 36.3.1 → 36.3.3
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/install/main.js
CHANGED
|
@@ -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
|
-
|
|
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);
|
package/lib/log/logger.d.ts
CHANGED
|
@@ -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,48 +1,21 @@
|
|
|
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
|
-
patterns: z.ZodArray<z.ZodString
|
|
3
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
15
4
|
sources: z.ZodArray<z.ZodObject<{
|
|
16
|
-
type: z.ZodEnum<
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
cookie: "cookie";
|
|
7
|
+
header: "header";
|
|
8
|
+
query: "query";
|
|
9
|
+
}>;
|
|
17
10
|
name: z.ZodString;
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
type: "cookie" | "header" | "query";
|
|
21
|
-
}, {
|
|
22
|
-
name: string;
|
|
23
|
-
type: "cookie" | "header" | "query";
|
|
24
|
-
}>, "many">;
|
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
patterns: string[];
|
|
27
|
-
sources: {
|
|
28
|
-
name: string;
|
|
29
|
-
type: "cookie" | "header" | "query";
|
|
30
|
-
}[];
|
|
31
|
-
}, {
|
|
32
|
-
patterns: string[];
|
|
33
|
-
sources: {
|
|
34
|
-
name: string;
|
|
35
|
-
type: "cookie" | "header" | "query";
|
|
36
|
-
}[];
|
|
37
|
-
}>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
38
13
|
export type SkewProtectionConfig = z.infer<typeof skewProtectionConfigSchema>;
|
|
39
|
-
export type DeployIDSource = z.infer<typeof deployIDSourceSchema>;
|
|
40
|
-
export type DeployIDSourceType = z.infer<typeof deployIDSourceTypeSchema>;
|
|
41
14
|
export declare const loadSkewProtectionConfig: (configPath: string) => Promise<{
|
|
42
15
|
patterns: string[];
|
|
43
16
|
sources: {
|
|
44
|
-
name: string;
|
|
45
17
|
type: "cookie" | "header" | "query";
|
|
18
|
+
name: string;
|
|
46
19
|
}[];
|
|
47
20
|
} | undefined>;
|
|
48
21
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "36.3.
|
|
3
|
+
"version": "36.3.3",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -69,14 +69,14 @@
|
|
|
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.
|
|
73
|
-
"@netlify/edge-bundler": "16.0.
|
|
74
|
-
"@netlify/functions-utils": "^7.1.
|
|
72
|
+
"@netlify/config": "^25.2.2",
|
|
73
|
+
"@netlify/edge-bundler": "16.0.2",
|
|
74
|
+
"@netlify/functions-utils": "^7.1.3",
|
|
75
75
|
"@netlify/git-utils": "^7.1.0",
|
|
76
76
|
"@netlify/opentelemetry-utils": "^3.1.0",
|
|
77
77
|
"@netlify/plugins-list": "^6.81.6",
|
|
78
78
|
"@netlify/run-utils": "^7.1.0",
|
|
79
|
-
"@netlify/zip-it-and-ship-it": "15.3.
|
|
79
|
+
"@netlify/zip-it-and-ship-it": "15.3.3",
|
|
80
80
|
"@sindresorhus/slugify": "^2.0.0",
|
|
81
81
|
"ansi-escapes": "^7.0.0",
|
|
82
82
|
"ansis": "^4.1.0",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"typescript": "^5.0.0",
|
|
117
117
|
"yaml": "^2.8.0",
|
|
118
118
|
"yargs": "^17.6.0",
|
|
119
|
-
"zod": "^
|
|
119
|
+
"zod": "^4.0.5"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
122
|
"@netlify/nock-udp": "^6.1.0",
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"engines": {
|
|
153
153
|
"node": ">=22.12.0"
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "599e9a8d17fed6cc6e95eea728896f59102217c5"
|
|
156
156
|
}
|