npm package diff

Package: @forge/manifest

Versions: 7.5.2-next.0-experimental-10722bc - 7.7.0-next.13

File: package/out/interpolator/manifest-interpolator-manager.js

Index: package/out/interpolator/manifest-interpolator-manager.js
===================================================================
--- package/out/interpolator/manifest-interpolator-manager.js
+++ package/out/interpolator/manifest-interpolator-manager.js
@@ -0,0 +1,21 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.ManifestInterpolatorManager = void 0;
+const yaml_1 = require("yaml");
+class ManifestInterpolatorManager {
+    interpolators;
+    constructor() {
+        this.interpolators = new Map();
+    }
+    addInterpolator(interpolator) {
+        this.interpolators.set(interpolator.type, interpolator);
+    }
+    interpolate(manifest) {
+        let interpolatedManifest = (0, yaml_1.parse)(manifest);
+        for (const interpolator of this.interpolators.values()) {
+            interpolatedManifest = interpolator.interpolate(interpolatedManifest);
+        }
+        return interpolatedManifest;
+    }
+}
+exports.ManifestInterpolatorManager = ManifestInterpolatorManager;