Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@backstage/config-loader

Package Overview
Dependencies
Maintainers
4
Versions
864
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/config-loader - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

7

CHANGELOG.md
# @backstage/config-loader
## 0.6.3
### Patch Changes
- 2cf98d279: Resolve the path to app-config.yaml from the current working directory. This will allow use of `yarn link` or running the CLI in other directories and improve the experience for local backstage development.
- 438a512eb: Fixed configuration schema parsing when using TypeScript `4.3`.
## 0.6.2

@@ -4,0 +11,0 @@

14

dist/index.cjs.js

@@ -365,3 +365,3 @@ 'use strict';

}
await Promise.all(packageNames.map((name) => processItem({name})));
await Promise.all(packageNames.map((name) => processItem({name, parentPath: currentDir})));
const tsSchemas = compileTsSchemas(tsSchemaPaths);

@@ -393,2 +393,14 @@ return schemas.concat(tsSchemas);

}, [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) {

@@ -395,0 +407,0 @@ if (error.message !== "type Config not found") {

@@ -354,3 +354,3 @@ import yaml from 'yaml';

}
await Promise.all(packageNames.map((name) => processItem({name})));
await Promise.all(packageNames.map((name) => processItem({name, parentPath: currentDir})));
const tsSchemas = compileTsSchemas(tsSchemaPaths);

@@ -382,2 +382,14 @@ return schemas.concat(tsSchemas);

}, [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) {

@@ -384,0 +396,0 @@ if (error.message !== "type Config not found") {

4

package.json
{
"name": "@backstage/config-loader",
"description": "Config loading functionality used by Backstage backend, and CLI",
"version": "0.6.2",
"version": "0.6.3",
"private": false,

@@ -55,4 +55,4 @@ "publishConfig": {

],
"gitHead": "750ca1cce7f29d63e1ceaf8e269f8ec6ceb58f9c",
"gitHead": "cc1de02d8944e304df7a6a23c8671030f9156ab8",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc