diff --git a/lib/middleware/serveResources.js b/lib/middleware/serveResources.js index ad27389c..836ca22d 100644 --- a/lib/middleware/serveResources.js +++ b/lib/middleware/serveResources.js @@ -61,8 +61,8 @@ function createMiddleware({resources, middlewareUtil}) { if (rManifest.test(resourcePath)) { // Special handling for manifest.json file by adding additional content to the served manifest.json - const {default: manifestTransformer} = await import("@ui5/builder/processors/manifestTransformer"); - await manifestTransformer({ + const {default: manifestEnricher} = await import("@ui5/builder/processors/manifestEnricher"); + await manifestEnricher({ resources: [resource], fs: fsInterface(resources.all) }); diff --git a/test/lib/server/middleware/serveResources.js b/test/lib/server/middleware/serveResources.js index 24a430c6..77b46897 100644 --- a/test/lib/server/middleware/serveResources.js +++ b/test/lib/server/middleware/serveResources.js @@ -529,7 +529,7 @@ test.serial("Check if utf8 characters are correctly processed in version replace }); }); -test.serial("manifestTransformer: request manifest.json with auto generated supported locales", async (t) => { +test.serial("manifestEnricher: request manifest.json with auto generated supported locales", async (t) => { t.plan(4); const readerWriter = resourceFactory.createAdapter({virBasePath: "/"}); @@ -619,7 +619,7 @@ test.serial("manifestTransformer: request manifest.json with auto generated supp t.is(setHeaderSpy.getCall(0).lastArg, "application/json; charset=UTF-8"); }); -test.serial("manifestTransformer: manifest.json with manual defined supported locales", async (t) => { +test.serial("manifestEnricher: manifest.json with manual defined supported locales", async (t) => { t.plan(4); const readerWriter = resourceFactory.createAdapter({virBasePath: "/"}); @@ -706,7 +706,7 @@ test.serial("manifestTransformer: manifest.json with manual defined supported lo t.is(setHeaderSpy.getCall(0).lastArg, "application/json; charset=UTF-8"); }); -test.serial("manifestTransformer: no generation of supported locales " + +test.serial("manifestEnricher: no generation of supported locales " + "if manifest.json version is below 1.21.0", async (t) => { t.plan(4); @@ -793,7 +793,7 @@ async (t) => { t.is(setHeaderSpy.getCall(0).lastArg, "application/json; charset=UTF-8"); }); -test.serial("manifestTransformer: no generation of supported locales " + +test.serial("manifestEnricher: no generation of supported locales " + "if manifest.json version is not defined", async (t) => { t.plan(4);