@backstage/config-loader
Advanced tools
Comparing version 0.6.3 to 0.6.4
# @backstage/config-loader | ||
## 0.6.4 | ||
### Patch Changes | ||
- f00493739: Removed workaround for breaking change in typescript 4.3 and bump `typescript-json-schema` instead. This should again allow the usage of `@items.visibility <value>` to set the visibility of array items. | ||
## 0.6.3 | ||
@@ -4,0 +10,0 @@ |
@@ -392,14 +392,2 @@ 'use strict'; | ||
}, [path$1.split(path.sep).join("/")]); | ||
value = JSON.parse(JSON.stringify(value), (key, prop) => { | ||
var _a; | ||
if (key === "visibility" && Array.isArray(prop)) { | ||
const text = (_a = prop[0]) == null ? void 0 : _a.text; | ||
if (!text) { | ||
const propStr = JSON.stringify(prop); | ||
throw new Error(`Failed conversion of visibility schema, got ${propStr}`); | ||
} | ||
return text; | ||
} | ||
return prop; | ||
}); | ||
} catch (error) { | ||
@@ -406,0 +394,0 @@ if (error.message !== "type Config not found") { |
@@ -381,14 +381,2 @@ import yaml from 'yaml'; | ||
}, [path.split(sep).join("/")]); | ||
value = JSON.parse(JSON.stringify(value), (key, prop) => { | ||
var _a; | ||
if (key === "visibility" && Array.isArray(prop)) { | ||
const text = (_a = prop[0]) == null ? void 0 : _a.text; | ||
if (!text) { | ||
const propStr = JSON.stringify(prop); | ||
throw new Error(`Failed conversion of visibility schema, got ${propStr}`); | ||
} | ||
return text; | ||
} | ||
return prop; | ||
}); | ||
} catch (error) { | ||
@@ -395,0 +383,0 @@ if (error.message !== "type Config not found") { |
{ | ||
"name": "@backstage/config-loader", | ||
"description": "Config loading functionality used by Backstage backend, and CLI", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"private": false, | ||
@@ -40,3 +40,3 @@ "publishConfig": { | ||
"json-schema-merge-allof": "^0.8.1", | ||
"typescript-json-schema": "^0.49.0", | ||
"typescript-json-schema": "^0.50.1", | ||
"yaml": "^1.9.2", | ||
@@ -56,4 +56,4 @@ "yup": "^0.29.3" | ||
], | ||
"gitHead": "cc1de02d8944e304df7a6a23c8671030f9156ab8", | ||
"gitHead": "daf29617d8c7cc7440e5d576265d7aaa98bd870f", | ||
"module": "dist/index.esm.js" | ||
} |
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
147646
1118
+ Added@types/node@14.18.63(transitive)
+ Addedtypescript@4.2.4(transitive)
+ Addedtypescript-json-schema@0.50.1(transitive)
- Removedtypescript@4.9.5(transitive)
- Removedtypescript-json-schema@0.49.0(transitive)