@makeswift/runtime 0.11.6 → 0.11.7
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.cjs.js +2 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -10
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/components/page/Page.d.ts.map +1 -1
- package/dist/types/src/next/client.d.ts +0 -5
- package/dist/types/src/next/client.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -571,7 +571,6 @@ function Page$1({
|
|
|
571
571
|
const socialImage = (_e = baseLocalizedPage == null ? void 0 : baseLocalizedPage.meta.socialImage) != null ? _e : page.meta.socialImage;
|
|
572
572
|
const canonicalUrl = (_f = baseLocalizedPage == null ? void 0 : baseLocalizedPage.seo.canonicalUrl) != null ? _f : page.seo.canonicalUrl;
|
|
573
573
|
const isIndexingBlocked = (_g = baseLocalizedPage == null ? void 0 : baseLocalizedPage.seo.isIndexingBlocked) != null ? _g : page.seo.isIndexingBlocked;
|
|
574
|
-
const hreflangs = page.hreflangs;
|
|
575
574
|
const fontFamilyParamValue = React.useMemo(() => {
|
|
576
575
|
if (site == null) {
|
|
577
576
|
return page.fonts.map(({
|
|
@@ -683,14 +682,7 @@ function Page$1({
|
|
|
683
682
|
rel: "stylesheet",
|
|
684
683
|
href: `https://fonts.googleapis.com/css?family=${fontFamilyParamValue}&display=swap`
|
|
685
684
|
})
|
|
686
|
-
}),
|
|
687
|
-
hreflang,
|
|
688
|
-
href
|
|
689
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx("link", {
|
|
690
|
-
rel: "alternate",
|
|
691
|
-
hrefLang: hreflang,
|
|
692
|
-
href
|
|
693
|
-
}, hreflang)), headSnippets.map(snippetToElement).map((children) => React.Children.map(children, (child) => {
|
|
685
|
+
}), headSnippets.map(snippetToElement).map((children) => React.Children.map(children, (child) => {
|
|
694
686
|
if (typeof child === "string")
|
|
695
687
|
return child;
|
|
696
688
|
if (VALID_HEAD_ELEMENT_TYPES.includes(child.type))
|
|
@@ -1211,7 +1203,7 @@ async function fonts(_req, res, { getFonts } = {}) {
|
|
|
1211
1203
|
const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
|
|
1212
1204
|
return res.json(fonts2);
|
|
1213
1205
|
}
|
|
1214
|
-
const version = "0.11.
|
|
1206
|
+
const version = "0.11.7";
|
|
1215
1207
|
async function handler(req, res, { apiKey, siteVersions }) {
|
|
1216
1208
|
if (req.query.secret !== apiKey) {
|
|
1217
1209
|
return res.status(401).json({ message: "Unauthorized" });
|