@netlify/build 26.5.0 → 26.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "26.5.0",
3
+ "version": "26.5.1",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./src/core/main.js",
@@ -61,7 +61,7 @@
61
61
  "@netlify/functions-utils": "^4.0.0",
62
62
  "@netlify/git-utils": "^4.0.0",
63
63
  "@netlify/plugin-edge-handlers": "^3.0.7",
64
- "@netlify/plugins-list": "^6.16.0",
64
+ "@netlify/plugins-list": "^6.17.0",
65
65
  "@netlify/run-utils": "^4.0.0",
66
66
  "@netlify/zip-it-and-ship-it": "5.9.0",
67
67
  "@sindresorhus/slugify": "^2.0.0",
@@ -36,7 +36,10 @@ const normalizeError = function (type, func, message, { error } = {}) {
36
36
 
37
37
  const getError = function (error, message, func) {
38
38
  if (error instanceof Error) {
39
- error.message = `${message}\n${error.message}`
39
+ // This might fail if `name` is a getter or is non-writable.
40
+ try {
41
+ error.message = `${message}\n${error.message}`
42
+ } catch {}
40
43
  return error
41
44
  }
42
45