@makeswift/runtime 0.11.3 → 0.11.5

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/index.es.js CHANGED
@@ -538,6 +538,7 @@ function Page$1({
538
538
  const socialImage = (_e = baseLocalizedPage == null ? void 0 : baseLocalizedPage.meta.socialImage) != null ? _e : page.meta.socialImage;
539
539
  const canonicalUrl = (_f = baseLocalizedPage == null ? void 0 : baseLocalizedPage.seo.canonicalUrl) != null ? _f : page.seo.canonicalUrl;
540
540
  const isIndexingBlocked = (_g = baseLocalizedPage == null ? void 0 : baseLocalizedPage.seo.isIndexingBlocked) != null ? _g : page.seo.isIndexingBlocked;
541
+ const hreflangs = page.hreflangs;
541
542
  const fontFamilyParamValue = useMemo(() => {
542
543
  if (site == null) {
543
544
  return page.fonts.map(({
@@ -649,7 +650,14 @@ function Page$1({
649
650
  rel: "stylesheet",
650
651
  href: `https://fonts.googleapis.com/css?family=${fontFamilyParamValue}&display=swap`
651
652
  })
652
- }), headSnippets.map(snippetToElement).map((children) => Children.map(children, (child) => {
653
+ }), hreflangs.map(({
654
+ hreflang,
655
+ href
656
+ }) => /* @__PURE__ */ jsx("link", {
657
+ rel: "alternate",
658
+ hrefLang: hreflang,
659
+ href
660
+ }, hreflang)), headSnippets.map(snippetToElement).map((children) => Children.map(children, (child) => {
653
661
  if (typeof child === "string")
654
662
  return child;
655
663
  if (VALID_HEAD_ELEMENT_TYPES.includes(child.type))
@@ -1170,7 +1178,7 @@ async function fonts(_req, res, { getFonts } = {}) {
1170
1178
  const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
1171
1179
  return res.json(fonts2);
1172
1180
  }
1173
- const version = "0.11.3";
1181
+ const version = "0.11.5";
1174
1182
  async function handler(req, res, { apiKey, siteVersions }) {
1175
1183
  if (req.query.secret !== apiKey) {
1176
1184
  return res.status(401).json({ message: "Unauthorized" });