@somewhere-cloud/cli 0.38.41 → 0.38.43

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.
@@ -2453,10 +2453,10 @@ export function useMagicLinkRequest(): MagicLinkRequest {
2453
2453
  */
2454
2454
  export function landingTarget(search: string, origin: string): string {
2455
2455
  const requested = new URLSearchParams(search).get('redirect_uri');
2456
- if (!requested) return '/';
2456
+ if (!requested || requested.startsWith('//') || requested.includes('\\\\')) return '/';
2457
2457
  try {
2458
2458
  const url = new URL(requested, origin);
2459
- return url.origin === origin ? url.pathname + url.search + url.hash : '/';
2459
+ return url.origin === origin && !url.pathname.startsWith('//') ? url.href : '/';
2460
2460
  } catch {
2461
2461
  return '/';
2462
2462
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@somewhere-cloud/cli",
3
- "version": "0.38.41",
3
+ "version": "0.38.43",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@somewhere-cloud/cli",
9
- "version": "0.38.41",
9
+ "version": "0.38.43",
10
10
  "bundleDependencies": [
11
11
  "@modelcontextprotocol/sdk",
12
12
  "chokidar",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@somewhere-cloud/cli",
3
- "version": "0.38.41",
3
+ "version": "0.38.43",
4
4
  "description": "CLI for somewhere.cloud — auth, projects, deploy, pull, promote, db, logs, env, MCP bridge.",
5
5
  "keywords": [
6
6
  "somewhere",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "repository": "Somewhere-Cloud/somewhere-tech",
3
- "commit": "1ed555c7fc237e02ca0778fd28c24f95f2c5f910"
3
+ "commit": "5be399ab19e4e0ce1156b3232425c94fddc75ce0"
4
4
  }