@makeswift/runtime 0.11.0 → 0.11.2
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 +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -2
- package/dist/index.es.js.map +1 -1
- package/dist/react-page.cjs.js +4 -2
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +4 -2
- package/dist/react-page.es.js.map +1 -1
- package/dist/types/src/controls/rich-text/translation.d.ts.map +1 -1
- package/dist/types/src/controls/rich-text-v2/translation.d.ts.map +1 -1
- package/dist/types/src/next/client.d.ts +2 -1
- package/dist/types/src/next/client.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1087,7 +1087,8 @@ Received "${apiKey}" instead.`);
|
|
|
1087
1087
|
async getSitemap({
|
|
1088
1088
|
limit = 50,
|
|
1089
1089
|
after,
|
|
1090
|
-
pathnamePrefix
|
|
1090
|
+
pathnamePrefix,
|
|
1091
|
+
locale
|
|
1091
1092
|
} = {}) {
|
|
1092
1093
|
const url = new URL("v1/sitemap", this.apiOrigin);
|
|
1093
1094
|
url.searchParams.set("limit", limit.toString());
|
|
@@ -1095,6 +1096,8 @@ Received "${apiKey}" instead.`);
|
|
|
1095
1096
|
url.searchParams.set("after", after);
|
|
1096
1097
|
if (pathnamePrefix != null)
|
|
1097
1098
|
url.searchParams.set("pathnamePrefix", pathnamePrefix);
|
|
1099
|
+
if (locale != null)
|
|
1100
|
+
url.searchParams.set("locale", locale);
|
|
1098
1101
|
const response = await this.fetch(url.pathname + url.search);
|
|
1099
1102
|
if (!response.ok) {
|
|
1100
1103
|
console.error("Failed to get sitemap", await response.json());
|
|
@@ -1161,7 +1164,7 @@ async function fonts(_req, res, { getFonts } = {}) {
|
|
|
1161
1164
|
const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
|
|
1162
1165
|
return res.json(fonts2);
|
|
1163
1166
|
}
|
|
1164
|
-
const version = "0.11.
|
|
1167
|
+
const version = "0.11.2";
|
|
1165
1168
|
async function handler(req, res, { apiKey, siteVersions }) {
|
|
1166
1169
|
if (req.query.secret !== apiKey) {
|
|
1167
1170
|
return res.status(401).json({ message: "Unauthorized" });
|