npm package diff
Package: @forge/manifest
Versions: 7.5.2-next.0-experimental-10722bc - 7.7.0-next.13
File: package/out/validators/yaml-validator.js
Index: package/out/validators/yaml-validator.js
===================================================================
--- package/out/validators/yaml-validator.js
+++ package/out/validators/yaml-validator.js
@@ -4,14 +4,10 @@
const tslib_1 = require("tslib");
const yaml_1 = require("yaml");
const fs_1 = tslib_1.__importDefault(require("fs"));
const text_1 = require("../text");
-const __1 = require("..");
+const utils_1 = require("../utils");
class YamlValidator {
- manifestParser;
- constructor() {
- this.manifestParser = new __1.ManifestParser(process.env);
- }
async validate(manifest) {
if (!manifest || !manifest.filePath) {
return {
success: false,
@@ -19,9 +15,9 @@
};
}
try {
const content = fs_1.default.readFileSync(manifest.filePath, 'utf8');
- const manifestContent = this.manifestParser.parseManifest(content);
+ const manifestContent = new utils_1.ManifestParserBuilder().withInterpolators().build().parseManifest(content);
return {
success: true,
manifestObject: {
filePath: manifest.filePath,