@backstage/config-loader
Advanced tools
Comparing version 0.0.0-nightly-202192022219 to 0.0.0-nightly-202192122645
# @backstage/config-loader | ||
## 0.0.0-nightly-202192022219 | ||
## 0.0.0-nightly-202192122645 | ||
@@ -8,2 +8,5 @@ ### Patch Changes | ||
- 223e8de6b4: Configuration schema errors are now filtered using the provided visibility option. This means that schema errors due to missing backend configuration will no longer break frontend builds. | ||
- 36e67d2f24: Internal updates to apply more strict checks to throw errors. | ||
- Updated dependencies | ||
- @backstage/errors@0.0.0-nightly-202192122645 | ||
@@ -10,0 +13,0 @@ ## 0.6.10 |
@@ -5,2 +5,3 @@ 'use strict'; | ||
var errors = require('@backstage/errors'); | ||
var yaml = require('yaml'); | ||
@@ -71,2 +72,3 @@ var path = require('path'); | ||
} catch (err) { | ||
errors.assertError(err); | ||
return [err, str]; | ||
@@ -102,2 +104,3 @@ } | ||
} catch (error) { | ||
errors.assertError(error); | ||
throw new Error(`error at ${path}, ${error.message}`); | ||
@@ -424,2 +427,3 @@ } | ||
} catch (error) { | ||
errors.assertError(error); | ||
if (error.message !== "type Config not found") { | ||
@@ -602,3 +606,3 @@ throw error; | ||
} catch (error) { | ||
throw new Error(`Failed to read static configuration file, ${error.message}`); | ||
throw new errors.ForwardedError("Failed to read static configuration file", error); | ||
} | ||
@@ -605,0 +609,0 @@ const envConfigs = await readEnvConfig(process.env); |
@@ -0,1 +1,2 @@ | ||
import { assertError, ForwardedError } from '@backstage/errors'; | ||
import yaml from 'yaml'; | ||
@@ -57,2 +58,3 @@ import { extname, resolve, dirname, sep, relative, isAbsolute, basename } from 'path'; | ||
} catch (err) { | ||
assertError(err); | ||
return [err, str]; | ||
@@ -88,2 +90,3 @@ } | ||
} catch (error) { | ||
assertError(error); | ||
throw new Error(`error at ${path}, ${error.message}`); | ||
@@ -410,2 +413,3 @@ } | ||
} catch (error) { | ||
assertError(error); | ||
if (error.message !== "type Config not found") { | ||
@@ -588,3 +592,3 @@ throw error; | ||
} catch (error) { | ||
throw new Error(`Failed to read static configuration file, ${error.message}`); | ||
throw new ForwardedError("Failed to read static configuration file", error); | ||
} | ||
@@ -591,0 +595,0 @@ const envConfigs = await readEnvConfig(process.env); |
{ | ||
"name": "@backstage/config-loader", | ||
"description": "Config loading functionality used by Backstage backend, and CLI", | ||
"version": "0.0.0-nightly-202192022219", | ||
"version": "0.0.0-nightly-202192122645", | ||
"private": false, | ||
@@ -35,2 +35,3 @@ "publishConfig": { | ||
"@backstage/config": "^0.1.9", | ||
"@backstage/errors": "^0.0.0-nightly-202192122645", | ||
"@types/json-schema": "^7.0.6", | ||
@@ -37,0 +38,0 @@ "ajv": "^7.0.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163937
1356
13
+ Added@backstage/errors@0.0.0-nightly-20241217023754(transitive)
+ Added@backstage/types@1.2.0(transitive)
+ Addedserialize-error@8.1.0(transitive)
+ Addedtype-fest@0.20.2(transitive)