@podium/podlet 5.2.3 → 5.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [5.2.4](https://github.com/podium-lib/podlet/compare/v5.2.3...v5.2.4) (2024-11-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * don't set content-type text/html for manifest route ([#445](https://github.com/podium-lib/podlet/issues/445)) ([62e90b6](https://github.com/podium-lib/podlet/commit/62e90b6e37a903817191ee422d8d5dc56f975592))
7
+
1
8
  ## [5.2.3](https://github.com/podium-lib/podlet/compare/v5.2.2...v5.2.3) (2024-11-18)
2
9
 
3
10
 
package/lib/podlet.js CHANGED
@@ -996,7 +996,12 @@ export default class PodiumPodlet {
996
996
  objobj.set('locals.podium', incoming, res);
997
997
 
998
998
  res.header('podlet-version', this.version);
999
- res.header('content-type', 'text/html');
999
+ if (
1000
+ req.path == this.contentRoute ||
1001
+ req.path == this.fallbackRoute
1002
+ ) {
1003
+ res.header('content-type', 'text/html');
1004
+ }
1000
1005
 
1001
1006
  res.sendHeaders = () => {
1002
1007
  res.write('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podium/podlet",
3
- "version": "5.2.3",
3
+ "version": "5.2.4",
4
4
  "type": "module",
5
5
  "description": "Module for building page fragment servers in a micro frontend architecture.",
6
6
  "license": "MIT",