openmates 0.10.0-alpha.0 → 0.10.0-alpha.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.
|
@@ -1337,7 +1337,11 @@ async function generateEmbedShareBlob(embedId, embedKeyBytes, durationSeconds =
|
|
|
1337
1337
|
function deriveWebOrigin(apiUrl) {
|
|
1338
1338
|
try {
|
|
1339
1339
|
const url = new URL(apiUrl);
|
|
1340
|
-
url.hostname
|
|
1340
|
+
if (url.hostname === "api.dev.openmates.org") {
|
|
1341
|
+
url.hostname = "app.dev.openmates.org";
|
|
1342
|
+
} else {
|
|
1343
|
+
url.hostname = url.hostname.replace(/^api\./, "");
|
|
1344
|
+
}
|
|
1341
1345
|
url.port = "";
|
|
1342
1346
|
return url.origin;
|
|
1343
1347
|
} catch {
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED