@axium/server 0.39.2 → 0.39.4
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/dist/config.js +1 -1
- package/dist/requests.js +8 -1
- package/package.json +2 -2
- package/routes/admin/users/+page.svelte +2 -1
- package/template.html +1 -1
package/dist/config.js
CHANGED
package/dist/requests.js
CHANGED
|
@@ -46,7 +46,14 @@ export async function parseBody(request, schema) {
|
|
|
46
46
|
}
|
|
47
47
|
export function parseSearch(request, schema) {
|
|
48
48
|
const url = new URL(request.url);
|
|
49
|
-
const searchParams = Object.fromEntries(url.searchParams.entries())
|
|
49
|
+
const searchParams = Object.fromEntries(url.searchParams.entries().map(([k, v]) => {
|
|
50
|
+
try {
|
|
51
|
+
return [k, JSON.parse(v)];
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
error(400, 'Invalid query parameter: ' + k);
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
50
57
|
try {
|
|
51
58
|
return schema.parse(searchParams);
|
|
52
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/server",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.4",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"clean": "rm -rf build .svelte-kit node_modules/{.vite,.vite-temp}"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@axium/client": ">=0.
|
|
50
|
+
"@axium/client": ">=0.19.0",
|
|
51
51
|
"@axium/core": ">=0.21.0",
|
|
52
52
|
"kysely": "^0.28.0",
|
|
53
53
|
"utilium": "^2.6.0",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { text } from '@axium/client';
|
|
3
|
+
import { closeOnBackGesture } from '@axium/client/attachments';
|
|
3
4
|
import { FormDialog, Icon, URLText } from '@axium/client/components';
|
|
4
5
|
import { fetchAPI } from '@axium/client/requests';
|
|
5
6
|
import '@axium/client/styles/list';
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
</div>
|
|
49
50
|
</FormDialog>
|
|
50
51
|
|
|
51
|
-
<dialog bind:this={createdUserDialog} id="created-user-verification">
|
|
52
|
+
<dialog bind:this={createdUserDialog} id="created-user-verification" {@attach closeOnBackGesture}>
|
|
52
53
|
<h3>{text('page.admin.users.created_title')}</h3>
|
|
53
54
|
|
|
54
55
|
<p>{text('page.admin.users.created_url')}</p>
|