@makeswift/runtime 0.11.1 → 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 CHANGED
@@ -1120,7 +1120,8 @@ Received "${apiKey}" instead.`);
1120
1120
  async getSitemap({
1121
1121
  limit = 50,
1122
1122
  after,
1123
- pathnamePrefix
1123
+ pathnamePrefix,
1124
+ locale
1124
1125
  } = {}) {
1125
1126
  const url = new URL("v1/sitemap", this.apiOrigin);
1126
1127
  url.searchParams.set("limit", limit.toString());
@@ -1128,6 +1129,8 @@ Received "${apiKey}" instead.`);
1128
1129
  url.searchParams.set("after", after);
1129
1130
  if (pathnamePrefix != null)
1130
1131
  url.searchParams.set("pathnamePrefix", pathnamePrefix);
1132
+ if (locale != null)
1133
+ url.searchParams.set("locale", locale);
1131
1134
  const response = await this.fetch(url.pathname + url.search);
1132
1135
  if (!response.ok) {
1133
1136
  console.error("Failed to get sitemap", await response.json());
@@ -1194,7 +1197,7 @@ async function fonts(_req, res, { getFonts } = {}) {
1194
1197
  const fonts2 = (_a = await (getFonts == null ? void 0 : getFonts())) != null ? _a : [];
1195
1198
  return res.json(fonts2);
1196
1199
  }
1197
- const version = "0.11.1";
1200
+ const version = "0.11.2";
1198
1201
  async function handler(req, res, { apiKey, siteVersions }) {
1199
1202
  if (req.query.secret !== apiKey) {
1200
1203
  return res.status(401).json({ message: "Unauthorized" });