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