@mel000000/weweb-dynamic-metadata 1.0.10 → 1.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mel000000/weweb-dynamic-metadata",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "description": "Generate dynamic metadata for WeWeb static exports",
6
6
  "main": "src/index.js",
@@ -34,7 +34,8 @@ export async function injectScriptInTemplate(templatePath, page) {
34
34
  }
35
35
 
36
36
  // Insert script before </head>
37
- template = template.replace('</head>', await metadata_injector_script(page) + '\n</head>');
37
+ const script = await metadata_injector_script(page);
38
+ template = template.replace('</head>', script + '\n</head>');
38
39
 
39
40
  // Write back
40
41
  await fs.writeFile(templatePath, template, 'utf-8');