@ossy/cli 3.11.1 → 3.13.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/cli",
3
- "version": "3.11.1",
3
+ "version": "3.13.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ossy-se/packages.git"
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@babel/parser": "^7.28.6",
23
- "@ossy/app": "^3.11.1",
24
- "@ossy/sdk": "^3.11.1",
23
+ "@ossy/app": "^3.13.0",
24
+ "@ossy/sdk": "^3.12.0",
25
25
  "arg": "^5.0.2",
26
26
  "glob": "^13.0.6"
27
27
  },
@@ -33,5 +33,5 @@
33
33
  "/src",
34
34
  "README.md"
35
35
  ],
36
- "gitHead": "f279de3535b6bc76631cbc6b943dae8f92a1565f"
36
+ "gitHead": "7a02d1e056b731aa36f72e3f8d6df941101dbd50"
37
37
  }
@@ -66,5 +66,5 @@ export function resolveApiBaseUrlForUpload ({ flag, envVar, configApiUrl }) {
66
66
  if (typeof raw === 'string' && /^https?:\/\//i.test(raw.trim())) {
67
67
  return raw.trim().replace(/\/$/, '')
68
68
  }
69
- return 'https://api.ossy.se/api/v0'
69
+ return 'https://ossy.se/api/v0'
70
70
  }
package/src/index.js CHANGED
@@ -44,7 +44,7 @@ const SUBCOMMAND_HELP = {
44
44
 
45
45
  Options (login):
46
46
  -t, --token Ossy API JWT (otherwise prompts in a TTY)
47
- --api-url API base URL (default: https://api.ossy.se/api/v0)
47
+ --api-url API base URL (default: https://ossy.se/api/v0)
48
48
  `,
49
49
  workspace: `ossy workspace <subcommand>
50
50
  Subcommands:
package/src/state.js CHANGED
@@ -2,7 +2,8 @@ import fs from 'node:fs'
2
2
  import os from 'node:os'
3
3
  import path from 'node:path'
4
4
 
5
- const DEFAULT_API_URL = 'https://api.ossy.se/api/v0'
5
+ /** CLI has no page origin — production API is same host as the site. */
6
+ const DEFAULT_API_URL = 'https://ossy.se/api/v0'
6
7
 
7
8
  function configDir () {
8
9
  const xdg = process.env.XDG_CONFIG_HOME