fuma 0.3.8 → 0.3.10
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/server/index.d.ts
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -27,7 +27,7 @@ export async function parseFormData(requestOrFormData, shapes, validation) {
|
|
|
27
27
|
function coerceFlateData(flateData) {
|
|
28
28
|
const coerceMap = {
|
|
29
29
|
[USE_COERCE_JSON]: (value) => jsonParse(value, {}),
|
|
30
|
-
[USE_COERCE_DATE]: (value) =>
|
|
30
|
+
[USE_COERCE_DATE]: (value) => value && value !== 'undefined' && value !== 'null' ? new Date(value) : undefined,
|
|
31
31
|
[USE_COERCE_NUMBER]: (value) => (value === '' || value === null ? null : +value),
|
|
32
32
|
[USE_COERCE_BOOLEAN]: (value) => value === 'true'
|
|
33
33
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { redirect } from '@sveltejs/kit';
|
|
2
|
-
import { jsonParse } from '
|
|
3
|
-
import { createKeys } from '
|
|
2
|
+
import { jsonParse } from '../utils/jsonParse.js';
|
|
3
|
+
import { createKeys } from '../ui/table/context.js';
|
|
4
4
|
export function ensureFieldsWithFilterAreVisibles(tableKey, url, isFilterKey) {
|
|
5
5
|
const { KEY_FIELDS_VISIBLE, KEY_FIELDS_HIDDEN } = createKeys(tableKey);
|
|
6
6
|
const fieldsVisible = jsonParse(url.searchParams.get(KEY_FIELDS_VISIBLE), []);
|
package/package.json
CHANGED
|
File without changes
|