@netlify/config 18.1.3 → 18.1.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/env/main.js +10 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/config",
3
- "version": "18.1.3",
3
+ "version": "18.1.4",
4
4
  "description": "Netlify config module",
5
5
  "type": "module",
6
6
  "exports": "./src/main.js",
package/src/env/main.js CHANGED
@@ -53,12 +53,12 @@ export const getEnv = async function ({
53
53
 
54
54
  env.set(key, {
55
55
  sources: [...envSources, source.key],
56
- value,
56
+ value: convertToString(value),
57
57
  })
58
58
  } else {
59
59
  env.set(key, {
60
60
  sources: [source.key],
61
- value: source.values[key],
61
+ value: convertToString(source.values[key]),
62
62
  })
63
63
  }
64
64
  })
@@ -67,6 +67,14 @@ export const getEnv = async function ({
67
67
  return Object.fromEntries(env)
68
68
  }
69
69
 
70
+ const convertToString = (value) => {
71
+ if (typeof value === 'string') {
72
+ return value
73
+ }
74
+
75
+ return value.toString()
76
+ }
77
+
70
78
  // Environment variables not set by users, but meant to mimic the production
71
79
  // environment.
72
80
  const getGeneralEnv = async function ({