@netlify/config 18.1.0 → 18.1.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/config",
3
- "version": "18.1.0",
3
+ "version": "18.1.1",
4
4
  "description": "Netlify config module",
5
5
  "type": "module",
6
6
  "exports": "./src/main.js",
@@ -1,6 +1,3 @@
1
- import { throwUserError } from '../error.js'
2
- import { ERROR_CALL_TO_ACTION } from '../log/messages.js'
3
-
4
1
  export const getEnvelope = async function ({ api, accountId, siteId }) {
5
2
  if (accountId === undefined) {
6
3
  return {}
@@ -21,7 +18,7 @@ export const getEnvelope = async function ({ api, accountId, siteId }) {
21
18
  return acc
22
19
  }, {})
23
20
  return sortedEnvVarsFromDevContext
24
- } catch (error) {
25
- throwUserError(`Failed retrieving envelope for site ${siteId}: ${error.message}. ${ERROR_CALL_TO_ACTION}`)
21
+ } catch {
22
+ return {}
26
23
  }
27
24
  }