@stacksjs/defaults 0.74.6 → 0.74.8

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.
@@ -86,6 +86,11 @@ const db = createBrowserDb({ baseUrl: '/api' })
86
86
  ## Utility Functions
87
87
 
88
88
  ```typescript
89
+ // API URLs: one canonical `/api` root, legacy-prefixed paths do not double it
90
+ resolveApiBaseUrl() // https://app.example/api in a browser
91
+ resolveApiUrl('/users', 'https://app.example/api') // https://app.example/api/users
92
+ resolveApiUrl('/api/users', 'https://app.example/api') // same URL
93
+
89
94
  // Date
90
95
  useDateFormat(date, 'YYYY-MM-DD')
91
96
  useNow()
@@ -50,7 +50,7 @@ export default defineCommand((cli) => {
50
50
  })
51
51
 
52
52
  cli.on('inspire:*', () => {
53
- log.error('Invalid command: %s\nSee --help for a list of available commands.', cli.args.join(' '))
53
+ console.error('Invalid command: %s\nSee --help for a list of available commands.', cli.args.join(' '))
54
54
  process.exit(1)
55
55
  })
56
56
 
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.74.6",
5
+ "version": "0.74.8",
6
6
  "description": "A modern Stacks development environment.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.74.6",
5
+ "version": "0.74.8",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/stacksjs/stacks.git",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@iconify-json/f7": "^1.2.2",
56
56
  "@iconify-json/hugeicons": "^1.2.27",
57
- "@stacksjs/mobile": "^0.74.6",
57
+ "@stacksjs/mobile": "^0.74.8",
58
58
  "@stacksjs/sanitizer": "^0.2.113",
59
59
  "ts-qr-codes": "^0.1.8"
60
60
  }