@stacksjs/defaults 0.75.7 → 0.75.9
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/ide/vscode/package.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.9",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@iconify-json/f7": "^1.2.2",
|
|
57
57
|
"@iconify-json/hugeicons": "^1.2.27",
|
|
58
|
-
"@stacksjs/mobile": "^0.75.
|
|
58
|
+
"@stacksjs/mobile": "^0.75.9",
|
|
59
59
|
"@stacksjs/sanitizer": "^0.2.113",
|
|
60
60
|
"ts-qr-codes": "^0.1.8"
|
|
61
61
|
}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
<script server>
|
|
2
|
+
/**
|
|
3
|
+
* A development tool: it lists scenarios that throw on purpose. The routes
|
|
4
|
+
* that fill it (`/test-error/*`, TestErrorAction) are only mounted for a local
|
|
5
|
+
* deployment, but the view fallback served this file on its own, so every
|
|
6
|
+
* deployed app answered 200 at /errors/tester with an empty "Error Page
|
|
7
|
+
* Tester" shell. Same gate as those routes.
|
|
8
|
+
*/
|
|
9
|
+
import { isLocalDeployment } from '@stacksjs/env'
|
|
10
|
+
|
|
11
|
+
if (!isLocalDeployment())
|
|
12
|
+
notFound()
|
|
13
|
+
|
|
14
|
+
const scenarios = typeof context !== 'undefined' && Array.isArray(context?.scenarios) ? context.scenarios : []
|
|
15
|
+
</script>
|
|
16
|
+
|
|
1
17
|
<div class="mx-auto px-6 py-12 max-w-3xl">
|
|
2
18
|
<h1 class="mb-2 font-semibold text-3xl text-neutral-950 dark:text-white">Error Page Tester</h1>
|
|
3
19
|
<p class="mb-8 text-neutral-500 text-sm dark:text-neutral-400">
|