vite-react-ssg 0.7.0 → 0.7.1

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/dist/node.cjs CHANGED
@@ -1010,8 +1010,12 @@ function extractHelmet(context, styleCollector) {
1010
1010
  const { helmet } = context;
1011
1011
  const htmlAttributes = helmet.htmlAttributes.toString();
1012
1012
  const bodyAttributes = helmet.bodyAttributes.toString();
1013
+ let titleString = helmet.title.toString();
1014
+ if (titleString.split(">")[1] === "</title") {
1015
+ titleString = "";
1016
+ }
1013
1017
  const metaStrings = [
1014
- helmet.title.toString(),
1018
+ titleString,
1015
1019
  helmet.meta.toString(),
1016
1020
  helmet.link.toString(),
1017
1021
  helmet.script.toString()
package/dist/node.mjs CHANGED
@@ -1003,8 +1003,12 @@ function extractHelmet(context, styleCollector) {
1003
1003
  const { helmet } = context;
1004
1004
  const htmlAttributes = helmet.htmlAttributes.toString();
1005
1005
  const bodyAttributes = helmet.bodyAttributes.toString();
1006
+ let titleString = helmet.title.toString();
1007
+ if (titleString.split(">")[1] === "</title") {
1008
+ titleString = "";
1009
+ }
1006
1010
  const metaStrings = [
1007
- helmet.title.toString(),
1011
+ titleString,
1008
1012
  helmet.meta.toString(),
1009
1013
  helmet.link.toString(),
1010
1014
  helmet.script.toString()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-react-ssg",
3
3
  "type": "module",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "packageManager": "pnpm@9.4.0",
6
6
  "description": "",
7
7
  "author": "Riri <Daydreamerriri@outlook.com>",