@mittwald/flow-remote-core 0.2.0-alpha.1056 → 0.2.0-alpha.1057
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formData.mjs","names":[],"sources":["../../../../../../../src/serialization/serializers/formData.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n fileDeSerialize,\n fileSerialize,\n isSerializedFile,\n} from \"@/serialization/serializers\";\n\ntype SerializedFormDataValue =\n
|
|
1
|
+
{"version":3,"file":"formData.mjs","names":[],"sources":["../../../../../../../src/serialization/serializers/formData.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n fileDeSerialize,\n fileSerialize,\n isSerializedFile,\n} from \"@/serialization/serializers\";\n\ntype SerializedFormDataValue =\n FormDataEntryValue | Awaited<ReturnType<typeof fileSerialize>>;\ntype SerializedFormDataEntries = [string, SerializedFormDataValue][];\n\nexport const formDataSerializer = new Serializer<\n FormData,\n SerializedFormDataEntries\n>({\n name: \"FormData\",\n serialize: {\n isApplicable: (val) => {\n return val instanceof FormData;\n },\n apply: async (formData) => {\n const out: SerializedFormDataEntries = [];\n\n for (const [fieldName, fieldValue] of formData.entries()) {\n out.push([\n fieldName,\n fieldValue instanceof File\n ? await fileSerialize(fieldValue)\n : fieldValue,\n ]);\n }\n\n return out;\n },\n },\n deserialize: {\n apply: (array) => {\n const formData = new FormData();\n\n for (const [name, value] of array) {\n const deserializedValue = isSerializedFile(value)\n ? fileDeSerialize(value)\n : value;\n\n formData.append(name, deserializedValue);\n }\n\n return formData;\n },\n },\n});\n"],"mappings":";;;;AAWA,IAAa,qBAAqB,IAAI,WAGpC;CACA,MAAM;CACN,WAAW;EACT,eAAe,QAAQ;GACrB,OAAO,eAAe;EACxB;EACA,OAAO,OAAO,aAAa;GACzB,MAAM,MAAiC,CAAC;GAExC,KAAK,MAAM,CAAC,WAAW,eAAe,SAAS,QAAQ,GACrD,IAAI,KAAK,CACP,WACA,sBAAsB,OAClB,MAAM,cAAc,UAAU,IAC9B,UACN,CAAC;GAGH,OAAO;EACT;CACF;CACA,aAAa,EACX,QAAQ,UAAU;EAChB,MAAM,WAAW,IAAI,SAAS;EAE9B,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO;GACjC,MAAM,oBAAoB,iBAAiB,KAAK,IAC5C,gBAAgB,KAAK,IACrB;GAEJ,SAAS,OAAO,MAAM,iBAAiB;EACzC;EAEA,OAAO;CACT,EACF;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formData.d.ts","sourceRoot":"","sources":["../../../../src/serialization/serializers/formData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAEL,aAAa,EAEd,MAAM,6BAA6B,CAAC;AAErC,KAAK,uBAAuB,
|
|
1
|
+
{"version":3,"file":"formData.d.ts","sourceRoot":"","sources":["../../../../src/serialization/serializers/formData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAEL,aAAa,EAEd,MAAM,6BAA6B,CAAC;AAErC,KAAK,uBAAuB,GAC1B,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC;AACjE,KAAK,yBAAyB,GAAG,CAAC,MAAM,EAAE,uBAAuB,CAAC,EAAE,CAAC;AAErE,eAAO,MAAM,kBAAkB,iDAuC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-remote-core",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.1057",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core functionality to setup a remote/host environment",
|
|
6
6
|
"homepage": "https://flow.mittwald.de",
|
|
@@ -25,37 +25,37 @@
|
|
|
25
25
|
"test:unit": "vitest run --passWithNoTests"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@internationalized/date": "^3.12.
|
|
28
|
+
"@internationalized/date": "^3.12.3",
|
|
29
29
|
"@lit-labs/ssr-dom-shim": "^1.6.0",
|
|
30
30
|
"@mittwald/remote-dom-core": "1.7.0-mittwald.10",
|
|
31
31
|
"@quilted/threads": "^3.3.1",
|
|
32
32
|
"@types/invariant": "^2.2.37",
|
|
33
33
|
"invariant": "^2.2.4",
|
|
34
|
-
"remeda": "^2.
|
|
34
|
+
"remeda": "^2.43.0",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@mittwald/ext-bridge": "0.2.0-alpha.
|
|
39
|
-
"@mittwald/flow-react-components": "0.2.0-alpha.
|
|
40
|
-
"@mittwald/typescript-config": "0.2.0-alpha.
|
|
38
|
+
"@mittwald/ext-bridge": "0.2.0-alpha.1057",
|
|
39
|
+
"@mittwald/flow-react-components": "0.2.0-alpha.1057",
|
|
40
|
+
"@mittwald/typescript-config": "0.2.0-alpha.1057",
|
|
41
41
|
"@types/node": "^25.9.3",
|
|
42
42
|
"nx": "^22.7.5",
|
|
43
43
|
"rimraf": "^6.1.3",
|
|
44
44
|
"rollup-preserve-directives": "^1.1.3",
|
|
45
45
|
"typescript": "^6.0.3",
|
|
46
46
|
"unplugin-dts": "^1.0.3",
|
|
47
|
-
"vite": "^8.2.
|
|
47
|
+
"vite": "^8.2.2",
|
|
48
48
|
"vite-plugin-externalize-deps": "^0.10.0",
|
|
49
|
-
"vitest": "^4.1.
|
|
49
|
+
"vitest": "^4.1.11"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@mittwald/ext-bridge": "0.2.0-alpha.
|
|
53
|
-
"@mittwald/flow-react-components": "0.2.0-alpha.
|
|
52
|
+
"@mittwald/ext-bridge": "0.2.0-alpha.1057",
|
|
53
|
+
"@mittwald/flow-react-components": "0.2.0-alpha.1057"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"@mittwald/ext-bridge": {
|
|
57
57
|
"optional": true
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "2f09f0a2d70df2df336244def4aa4d7c2e13a4fe"
|
|
61
61
|
}
|