@mittwald/flow-remote-core 0.2.0-alpha.782 → 0.2.0-alpha.784
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/js/core/src/file.mjs +12 -10
- package/dist/js/core/src/file.mjs.map +1 -1
- package/dist/js/index-node.mjs +16 -15
- package/dist/js/index-node.mjs.map +1 -0
- package/dist/js/index.mjs +15 -17
- package/dist/js/index.mjs.map +1 -0
- package/dist/js/remote-core/src/connection/connectHostRenderRoot.mjs +55 -45
- package/dist/js/remote-core/src/connection/connectHostRenderRoot.mjs.map +1 -1
- package/dist/js/remote-core/src/connection/connectRemoteIframe.mjs +62 -47
- package/dist/js/remote-core/src/connection/connectRemoteIframe.mjs.map +1 -1
- package/dist/js/remote-core/src/connection/types.mjs +9 -11
- package/dist/js/remote-core/src/connection/types.mjs.map +1 -1
- package/dist/js/remote-core/src/error.mjs +8 -10
- package/dist/js/remote-core/src/error.mjs.map +1 -1
- package/dist/js/remote-core/src/ext-bridge/implementation.mjs +12 -8
- package/dist/js/remote-core/src/ext-bridge/implementation.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/FlowThreadSerialization.mjs +59 -47
- package/dist/js/remote-core/src/serialization/FlowThreadSerialization.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/Serializer.mjs +35 -33
- package/dist/js/remote-core/src/serialization/Serializer.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/dataTransferText.mjs +21 -20
- package/dist/js/remote-core/src/serialization/serializers/dataTransferText.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/date.mjs +14 -13
- package/dist/js/remote-core/src/serialization/serializers/date.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/file.mjs +29 -29
- package/dist/js/remote-core/src/serialization/serializers/file.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/fileList.mjs +22 -20
- package/dist/js/remote-core/src/serialization/serializers/fileList.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/formData.mjs +34 -27
- package/dist/js/remote-core/src/serialization/serializers/formData.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/index.mjs +7 -23
- package/dist/js/remote-core/src/serialization/serializers/index.mjs.map +1 -1
- package/dist/js/remote-core/src/serialization/serializers/passwordPolicy.mjs +14 -13
- package/dist/js/remote-core/src/serialization/serializers/passwordPolicy.mjs.map +1 -1
- package/dist/js/remote-core/src/shim.mjs +12 -11
- package/dist/js/remote-core/src/shim.mjs.map +1 -1
- package/package.json +8 -8
- package/dist/js/_virtual/_rolldown/runtime.mjs +0 -13
- package/dist/js/core/src/index.mjs +0 -1
- package/dist/js/remote-core/src/connection/index.mjs +0 -3
- package/dist/js/remote-core/src/serialization/index.mjs +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowThreadSerialization.mjs","
|
|
1
|
+
{"version":3,"file":"FlowThreadSerialization.mjs","sources":["../../../../../src/serialization/FlowThreadSerialization.ts"],"sourcesContent":["import {\n ThreadSerializationStructuredClone,\n type ThreadSerializationOptions,\n TRANSFERABLE,\n} from \"@quilted/threads\";\nimport * as serializerModules from \"./serializers\";\nimport { isObjectType } from \"remeda\";\nimport { Serializer } from \"@/serialization/Serializer\";\n\nconst serializers = Object.values(serializerModules).filter(\n (val) => val instanceof Serializer,\n);\n\nexport class FlowThreadSerialization extends ThreadSerializationStructuredClone {\n public constructor() {\n const options: ThreadSerializationOptions = {\n serialize: (val, serialize) => {\n try {\n if (this.isSerializableByBase(val)) {\n return;\n }\n if (this.omitSerialization(val)) {\n return null;\n }\n for (const serializer of serializers) {\n const serialization = serializer.serialize(val);\n if (serialization.applied) {\n return serialize(serialization.result);\n }\n }\n if (isObjectType(val)) {\n return serialize({ ...val });\n }\n } catch (error) {\n console.error(\"Error while serializing\", error);\n throw error;\n }\n },\n deserialize: (val, serialize) => {\n try {\n for (const serializer of serializers) {\n const deserialization = serializer.deserialize(val);\n if (deserialization.applied) {\n return deserialization.result.value;\n }\n }\n return serialize(val);\n } catch (error) {\n console.error(\"Error while deserializing\", error);\n throw error;\n }\n },\n };\n super(options);\n }\n\n private isSerializableByBase(val: unknown) {\n return (\n val instanceof Map ||\n val instanceof Set ||\n Array.isArray(val) ||\n typeof val === \"function\" ||\n (isObjectType(val) && TRANSFERABLE in val)\n );\n }\n\n private omitSerialization(val: unknown) {\n return val instanceof HTMLElement || val === window;\n }\n}\n"],"names":["serializerModules"],"mappings":";;;;;AASA,MAAM,WAAA,GAAc,MAAA,CAAO,MAAA,CAAOA,KAAiB,CAAA,CAAE,MAAA;AAAA,EACnD,CAAC,QAAQ,GAAA,YAAe;AAC1B,CAAA;AAEO,MAAM,gCAAgC,kCAAA,CAAmC;AAAA,EACvE,WAAA,GAAc;AACnB,IAAA,MAAM,OAAA,GAAsC;AAAA,MAC1C,SAAA,EAAW,CAAC,GAAA,EAAK,SAAA,KAAc;AAC7B,QAAA,IAAI;AACF,UAAA,IAAI,IAAA,CAAK,oBAAA,CAAqB,GAAG,CAAA,EAAG;AAClC,YAAA;AAAA,UACF;AACA,UAAA,IAAI,IAAA,CAAK,iBAAA,CAAkB,GAAG,CAAA,EAAG;AAC/B,YAAA,OAAO,IAAA;AAAA,UACT;AACA,UAAA,KAAA,MAAW,cAAc,WAAA,EAAa;AACpC,YAAA,MAAM,aAAA,GAAgB,UAAA,CAAW,SAAA,CAAU,GAAG,CAAA;AAC9C,YAAA,IAAI,cAAc,OAAA,EAAS;AACzB,cAAA,OAAO,SAAA,CAAU,cAAc,MAAM,CAAA;AAAA,YACvC;AAAA,UACF;AACA,UAAA,IAAI,YAAA,CAAa,GAAG,CAAA,EAAG;AACrB,YAAA,OAAO,SAAA,CAAU,EAAE,GAAG,GAAA,EAAK,CAAA;AAAA,UAC7B;AAAA,QACF,SAAS,KAAA,EAAO;AACd,UAAA,OAAA,CAAQ,KAAA,CAAM,2BAA2B,KAAK,CAAA;AAC9C,UAAA,MAAM,KAAA;AAAA,QACR;AAAA,MACF,CAAA;AAAA,MACA,WAAA,EAAa,CAAC,GAAA,EAAK,SAAA,KAAc;AAC/B,QAAA,IAAI;AACF,UAAA,KAAA,MAAW,cAAc,WAAA,EAAa;AACpC,YAAA,MAAM,eAAA,GAAkB,UAAA,CAAW,WAAA,CAAY,GAAG,CAAA;AAClD,YAAA,IAAI,gBAAgB,OAAA,EAAS;AAC3B,cAAA,OAAO,gBAAgB,MAAA,CAAO,KAAA;AAAA,YAChC;AAAA,UACF;AACA,UAAA,OAAO,UAAU,GAAG,CAAA;AAAA,QACtB,SAAS,KAAA,EAAO;AACd,UAAA,OAAA,CAAQ,KAAA,CAAM,6BAA6B,KAAK,CAAA;AAChD,UAAA,MAAM,KAAA;AAAA,QACR;AAAA,MACF;AAAA,KACF;AACA,IAAA,KAAA,CAAM,OAAO,CAAA;AAAA,EACf;AAAA,EAEQ,qBAAqB,GAAA,EAAc;AACzC,IAAA,OACE,GAAA,YAAe,GAAA,IACf,GAAA,YAAe,GAAA,IACf,MAAM,OAAA,CAAQ,GAAG,CAAA,IACjB,OAAO,GAAA,KAAQ,UAAA,IACd,YAAA,CAAa,GAAG,KAAK,YAAA,IAAgB,GAAA;AAAA,EAE1C;AAAA,EAEQ,kBAAkB,GAAA,EAAc;AACtC,IAAA,OAAO,GAAA,YAAe,eAAe,GAAA,KAAQ,MAAA;AAAA,EAC/C;AACF;;;;"}
|
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
const Key = "mittwald.flow-remote-core.serializer.name";
|
|
2
|
+
class Serializer {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
this.options = options;
|
|
5
|
+
}
|
|
6
|
+
apply(val, strategy) {
|
|
7
|
+
if (strategy.isApplicable(val)) {
|
|
8
|
+
return {
|
|
9
|
+
applied: true,
|
|
10
|
+
result: {
|
|
11
|
+
[Key]: this.options.name,
|
|
12
|
+
value: strategy.apply(val)
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
applied: false
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
serialize(val) {
|
|
21
|
+
return this.apply(val, this.options.serialize);
|
|
22
|
+
}
|
|
23
|
+
deserialize(val) {
|
|
24
|
+
return this.apply(val, {
|
|
25
|
+
apply: (serialization) => {
|
|
26
|
+
return this.options.deserialize.apply(serialization.value);
|
|
27
|
+
},
|
|
28
|
+
isApplicable: (val2) => {
|
|
29
|
+
return !!val2 && typeof val2 === "object" && Key in val2 && val2[Key] === this.options.name;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
export { Serializer };
|
|
36
|
+
//# sourceMappingURL=Serializer.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Serializer.mjs","
|
|
1
|
+
{"version":3,"file":"Serializer.mjs","sources":["../../../../../src/serialization/Serializer.ts"],"sourcesContent":["interface SerializationStrategy<TIn, TOut> {\n isApplicable: (val: unknown) => val is TIn;\n apply: (val: TIn) => TOut;\n}\n\nconst Key = \"mittwald.flow-remote-core.serializer.name\";\n\nexport interface SuccessfulSerializationResult<T> {\n value: T;\n [Key]: string;\n}\n\nexport type SerializationResult<T> =\n | { applied: true; result: SuccessfulSerializationResult<T> }\n | { applied: false };\n\nexport class Serializer<TIn, TOut> {\n public constructor(\n private options: {\n name: string;\n serialize: SerializationStrategy<TIn, TOut>;\n deserialize: Pick<SerializationStrategy<TOut, TIn>, \"apply\">;\n },\n ) {}\n\n private apply<TIn, TOut>(\n val: unknown,\n strategy: SerializationStrategy<TIn, TOut>,\n ): SerializationResult<TOut> {\n if (strategy.isApplicable(val)) {\n return {\n applied: true,\n result: {\n [Key]: this.options.name,\n value: strategy.apply(val),\n },\n };\n }\n return {\n applied: false,\n };\n }\n\n public serialize(val: unknown): SerializationResult<TOut> {\n return this.apply<TIn, TOut>(val, this.options.serialize);\n }\n\n public deserialize(val: unknown): SerializationResult<TIn> {\n return this.apply(val, {\n apply: (serialization: SuccessfulSerializationResult<TOut>) => {\n return this.options.deserialize.apply(serialization.value);\n },\n isApplicable: (val): val is SuccessfulSerializationResult<TOut> => {\n return (\n !!val &&\n typeof val === \"object\" &&\n Key in val &&\n val[Key] === this.options.name\n );\n },\n });\n }\n}\n"],"names":["val"],"mappings":"AAKA,MAAM,GAAA,GAAM,2CAAA;AAWL,MAAM,UAAA,CAAsB;AAAA,EAC1B,YACG,OAAA,EAKR;AALQ,IAAA,IAAA,CAAA,OAAA,GAAA,OAAA;AAAA,EAKP;AAAA,EAEK,KAAA,CACN,KACA,QAAA,EAC2B;AAC3B,IAAA,IAAI,QAAA,CAAS,YAAA,CAAa,GAAG,CAAA,EAAG;AAC9B,MAAA,OAAO;AAAA,QACL,OAAA,EAAS,IAAA;AAAA,QACT,MAAA,EAAQ;AAAA,UACN,CAAC,GAAG,GAAG,IAAA,CAAK,OAAA,CAAQ,IAAA;AAAA,UACpB,KAAA,EAAO,QAAA,CAAS,KAAA,CAAM,GAAG;AAAA;AAC3B,OACF;AAAA,IACF;AACA,IAAA,OAAO;AAAA,MACL,OAAA,EAAS;AAAA,KACX;AAAA,EACF;AAAA,EAEO,UAAU,GAAA,EAAyC;AACxD,IAAA,OAAO,IAAA,CAAK,KAAA,CAAiB,GAAA,EAAK,IAAA,CAAK,QAAQ,SAAS,CAAA;AAAA,EAC1D;AAAA,EAEO,YAAY,GAAA,EAAwC;AACzD,IAAA,OAAO,IAAA,CAAK,MAAM,GAAA,EAAK;AAAA,MACrB,KAAA,EAAO,CAAC,aAAA,KAAuD;AAC7D,QAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,WAAA,CAAY,KAAA,CAAM,cAAc,KAAK,CAAA;AAAA,MAC3D,CAAA;AAAA,MACA,YAAA,EAAc,CAACA,IAAAA,KAAoD;AACjE,QAAA,OACE,CAAC,CAACA,IAAAA,IACF,OAAOA,IAAAA,KAAQ,QAAA,IACf,GAAA,IAAOA,IAAAA,IACPA,IAAAA,CAAI,GAAG,CAAA,KAAM,IAAA,CAAK,OAAA,CAAQ,IAAA;AAAA,MAE9B;AAAA,KACD,CAAA;AAAA,EACH;AACF;;;;"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { Serializer } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { Serializer } from '../Serializer.mjs';
|
|
2
|
+
|
|
3
|
+
const dataTransferTextSerializer = new Serializer({
|
|
4
|
+
name: "DataTransferText",
|
|
5
|
+
serialize: {
|
|
6
|
+
isApplicable: (val) => {
|
|
7
|
+
return val instanceof DataTransfer && val.types.every((type) => type === "text/plain");
|
|
8
|
+
},
|
|
9
|
+
apply: (dataTransfer) => {
|
|
10
|
+
return dataTransfer.getData("text") || dataTransfer.getData("text/plain");
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
deserialize: {
|
|
14
|
+
apply: (asString) => {
|
|
15
|
+
const dataTransfer = new DataTransfer();
|
|
16
|
+
dataTransfer.setData("text", asString);
|
|
17
|
+
return dataTransfer;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
18
20
|
});
|
|
19
|
-
//#endregion
|
|
20
|
-
export { dataTransferTextSerializer };
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
export { dataTransferTextSerializer };
|
|
23
|
+
//# sourceMappingURL=dataTransferText.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataTransferText.mjs","
|
|
1
|
+
{"version":3,"file":"dataTransferText.mjs","sources":["../../../../../../src/serialization/serializers/dataTransferText.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\n\nexport const dataTransferTextSerializer = new Serializer<DataTransfer, string>({\n name: \"DataTransferText\",\n serialize: {\n isApplicable: (val): val is DataTransfer => {\n return (\n val instanceof DataTransfer &&\n val.types.every((type) => type === \"text/plain\")\n );\n },\n apply: (dataTransfer) => {\n return dataTransfer.getData(\"text\") || dataTransfer.getData(\"text/plain\");\n },\n },\n deserialize: {\n apply: (asString) => {\n const dataTransfer = new DataTransfer();\n dataTransfer.setData(\"text\", asString);\n return dataTransfer;\n },\n },\n});\n"],"names":[],"mappings":";;AAEO,MAAM,0BAAA,GAA6B,IAAI,UAAA,CAAiC;AAAA,EAC7E,IAAA,EAAM,kBAAA;AAAA,EACN,SAAA,EAAW;AAAA,IACT,YAAA,EAAc,CAAC,GAAA,KAA6B;AAC1C,MAAA,OACE,GAAA,YAAe,gBACf,GAAA,CAAI,KAAA,CAAM,MAAM,CAAC,IAAA,KAAS,SAAS,YAAY,CAAA;AAAA,IAEnD,CAAA;AAAA,IACA,KAAA,EAAO,CAAC,YAAA,KAAiB;AACvB,MAAA,OAAO,aAAa,OAAA,CAAQ,MAAM,CAAA,IAAK,YAAA,CAAa,QAAQ,YAAY,CAAA;AAAA,IAC1E;AAAA,GACF;AAAA,EACA,WAAA,EAAa;AAAA,IACX,KAAA,EAAO,CAAC,QAAA,KAAa;AACnB,MAAA,MAAM,YAAA,GAAe,IAAI,YAAA,EAAa;AACtC,MAAA,YAAA,CAAa,OAAA,CAAQ,QAAQ,QAAQ,CAAA;AACrC,MAAA,OAAO,YAAA;AAAA,IACT;AAAA;AAEJ,CAAC;;;;"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { parseDate, CalendarDate } from '@internationalized/date';
|
|
2
|
+
import { Serializer } from '../Serializer.mjs';
|
|
3
|
+
|
|
4
|
+
const calendarDateSerializer = new Serializer({
|
|
5
|
+
name: "CalendarDate",
|
|
6
|
+
serialize: {
|
|
7
|
+
isApplicable: (val) => val instanceof CalendarDate,
|
|
8
|
+
apply: (date) => date.toString()
|
|
9
|
+
},
|
|
10
|
+
deserialize: {
|
|
11
|
+
apply: (asString) => parseDate(asString)
|
|
12
|
+
}
|
|
11
13
|
});
|
|
12
|
-
//#endregion
|
|
13
|
-
export { calendarDateSerializer };
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
export { calendarDateSerializer };
|
|
16
|
+
//# sourceMappingURL=date.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.mjs","
|
|
1
|
+
{"version":3,"file":"date.mjs","sources":["../../../../../../src/serialization/serializers/date.ts"],"sourcesContent":["import { CalendarDate } from \"@internationalized/date\";\nimport { parseDate } from \"@internationalized/date\";\nimport { Serializer } from \"@/serialization/Serializer\";\n\nexport const calendarDateSerializer = new Serializer<CalendarDate, string>({\n name: \"CalendarDate\",\n serialize: {\n isApplicable: (val) => val instanceof CalendarDate,\n apply: (date) => date.toString(),\n },\n deserialize: {\n apply: (asString) => parseDate(asString),\n },\n});\n"],"names":[],"mappings":";;;AAIO,MAAM,sBAAA,GAAyB,IAAI,UAAA,CAAiC;AAAA,EACzE,IAAA,EAAM,cAAA;AAAA,EACN,SAAA,EAAW;AAAA,IACT,YAAA,EAAc,CAAC,GAAA,KAAQ,GAAA,YAAe,YAAA;AAAA,IACtC,KAAA,EAAO,CAAC,IAAA,KAAS,IAAA,CAAK,QAAA;AAAS,GACjC;AAAA,EACA,WAAA,EAAa;AAAA,IACX,KAAA,EAAO,CAAC,QAAA,KAAa,SAAA,CAAU,QAAQ;AAAA;AAE3C,CAAC;;;;"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return !!(value && typeof value === "object" && "name" in value && "type" in value && "lastModified" in value && "content" in value);
|
|
1
|
+
import { markAsTransferable } from '@quilted/threads';
|
|
2
|
+
import { Serializer } from '../Serializer.mjs';
|
|
3
|
+
import { getAwaitArrayBuffer } from '../../../../core/src/file.mjs';
|
|
4
|
+
|
|
5
|
+
const isSerializedFile = (value) => {
|
|
6
|
+
return !!(value && typeof value === "object" && "name" in value && "type" in value && "lastModified" in value && "content" in value);
|
|
8
7
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
const fileSerialize = (file) => {
|
|
9
|
+
return {
|
|
10
|
+
name: file.name,
|
|
11
|
+
type: file.type,
|
|
12
|
+
lastModified: file.lastModified,
|
|
13
|
+
content: markAsTransferable(getAwaitArrayBuffer(file))
|
|
14
|
+
};
|
|
16
15
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
const fileDeSerialize = (file) => {
|
|
17
|
+
return new File([file.content], file.name, {
|
|
18
|
+
lastModified: file.lastModified,
|
|
19
|
+
type: file.type
|
|
20
|
+
});
|
|
22
21
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
const fileSerializer = new Serializer({
|
|
23
|
+
name: "File",
|
|
24
|
+
serialize: {
|
|
25
|
+
isApplicable: (something) => something instanceof File,
|
|
26
|
+
apply: fileSerialize
|
|
27
|
+
},
|
|
28
|
+
deserialize: {
|
|
29
|
+
apply: fileDeSerialize
|
|
30
|
+
}
|
|
30
31
|
});
|
|
31
|
-
//#endregion
|
|
32
|
-
export { fileDeSerialize, fileSerialize, fileSerializer, isSerializedFile };
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
export { fileDeSerialize, fileSerialize, fileSerializer, isSerializedFile };
|
|
34
|
+
//# sourceMappingURL=file.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.mjs","
|
|
1
|
+
{"version":3,"file":"file.mjs","sources":["../../../../../../src/serialization/serializers/file.ts"],"sourcesContent":["import { markAsTransferable } from \"@quilted/threads\";\nimport { Serializer } from \"@/serialization/Serializer\";\nimport { getAwaitArrayBuffer } from \"@mittwald/flow-core\";\n\nexport interface SerializedFile {\n name: string;\n type: string;\n lastModified: number;\n content: ArrayBuffer;\n}\n\nexport const isSerializedFile = (value: unknown): value is SerializedFile => {\n return !!(\n value &&\n typeof value === \"object\" &&\n \"name\" in value &&\n \"type\" in value &&\n \"lastModified\" in value &&\n \"content\" in value\n );\n};\n\nexport const fileSerialize = (file: File): SerializedFile => {\n return {\n name: file.name,\n type: file.type,\n lastModified: file.lastModified,\n content: markAsTransferable(getAwaitArrayBuffer(file)),\n };\n};\n\nexport const fileDeSerialize = (file: SerializedFile) => {\n return new File([file.content], file.name, {\n lastModified: file.lastModified,\n type: file.type,\n });\n};\n\nexport const fileSerializer = new Serializer<File, SerializedFile>({\n name: \"File\",\n serialize: {\n isApplicable: (something) => something instanceof File,\n apply: fileSerialize,\n },\n deserialize: {\n apply: fileDeSerialize,\n },\n});\n"],"names":[],"mappings":";;;;AAWO,MAAM,gBAAA,GAAmB,CAAC,KAAA,KAA4C;AAC3E,EAAA,OAAO,CAAC,EACN,KAAA,IACA,OAAO,KAAA,KAAU,QAAA,IACjB,MAAA,IAAU,KAAA,IACV,MAAA,IAAU,KAAA,IACV,cAAA,IAAkB,KAAA,IAClB,SAAA,IAAa,KAAA,CAAA;AAEjB;AAEO,MAAM,aAAA,GAAgB,CAAC,IAAA,KAA+B;AAC3D,EAAA,OAAO;AAAA,IACL,MAAM,IAAA,CAAK,IAAA;AAAA,IACX,MAAM,IAAA,CAAK,IAAA;AAAA,IACX,cAAc,IAAA,CAAK,YAAA;AAAA,IACnB,OAAA,EAAS,kBAAA,CAAmB,mBAAA,CAAoB,IAAI,CAAC;AAAA,GACvD;AACF;AAEO,MAAM,eAAA,GAAkB,CAAC,IAAA,KAAyB;AACvD,EAAA,OAAO,IAAI,IAAA,CAAK,CAAC,KAAK,OAAO,CAAA,EAAG,KAAK,IAAA,EAAM;AAAA,IACzC,cAAc,IAAA,CAAK,YAAA;AAAA,IACnB,MAAM,IAAA,CAAK;AAAA,GACZ,CAAA;AACH;AAEO,MAAM,cAAA,GAAiB,IAAI,UAAA,CAAiC;AAAA,EACjE,IAAA,EAAM,MAAA;AAAA,EACN,SAAA,EAAW;AAAA,IACT,YAAA,EAAc,CAAC,SAAA,KAAc,SAAA,YAAqB,IAAA;AAAA,IAClD,KAAA,EAAO;AAAA,GACT;AAAA,EACA,WAAA,EAAa;AAAA,IACX,KAAA,EAAO;AAAA;AAEX,CAAC;;;;"}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { Serializer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { Serializer } from '../Serializer.mjs';
|
|
2
|
+
import '@internationalized/date';
|
|
3
|
+
import { fileDeSerialize, fileSerialize } from './file.mjs';
|
|
4
|
+
import '@mittwald/flow-react-components/mittwald-password-tools-js';
|
|
5
|
+
|
|
6
|
+
const fileListSerializer = new Serializer({
|
|
7
|
+
name: "FileList",
|
|
8
|
+
serialize: {
|
|
9
|
+
isApplicable: (something) => {
|
|
10
|
+
return something instanceof FileList;
|
|
11
|
+
},
|
|
12
|
+
apply: (fileList) => Array.from(fileList).map(fileSerialize)
|
|
13
|
+
},
|
|
14
|
+
deserialize: {
|
|
15
|
+
apply: (arrayFiles) => {
|
|
16
|
+
const dataTransfer = new DataTransfer();
|
|
17
|
+
arrayFiles.forEach((f) => dataTransfer.items.add(fileDeSerialize(f)));
|
|
18
|
+
return dataTransfer.files;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
18
21
|
});
|
|
19
|
-
//#endregion
|
|
20
|
-
export { fileListSerializer };
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
export { fileListSerializer };
|
|
24
|
+
//# sourceMappingURL=fileList.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileList.mjs","
|
|
1
|
+
{"version":3,"file":"fileList.mjs","sources":["../../../../../../src/serialization/serializers/fileList.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n fileDeSerialize,\n fileSerialize,\n type SerializedFile,\n} from \"@/serialization/serializers\";\n\nexport const fileListSerializer = new Serializer<FileList, SerializedFile[]>({\n name: \"FileList\",\n serialize: {\n isApplicable: (something) => {\n return something instanceof FileList;\n },\n apply: (fileList) => Array.from(fileList).map(fileSerialize),\n },\n deserialize: {\n apply: (arrayFiles) => {\n const dataTransfer = new DataTransfer();\n arrayFiles.forEach((f) => dataTransfer.items.add(fileDeSerialize(f)));\n return dataTransfer.files;\n },\n },\n});\n"],"names":[],"mappings":";;;;;AAOO,MAAM,kBAAA,GAAqB,IAAI,UAAA,CAAuC;AAAA,EAC3E,IAAA,EAAM,UAAA;AAAA,EACN,SAAA,EAAW;AAAA,IACT,YAAA,EAAc,CAAC,SAAA,KAAc;AAC3B,MAAA,OAAO,SAAA,YAAqB,QAAA;AAAA,IAC9B,CAAA;AAAA,IACA,KAAA,EAAO,CAAC,QAAA,KAAa,KAAA,CAAM,KAAK,QAAQ,CAAA,CAAE,IAAI,aAAa;AAAA,GAC7D;AAAA,EACA,WAAA,EAAa;AAAA,IACX,KAAA,EAAO,CAAC,UAAA,KAAe;AACrB,MAAA,MAAM,YAAA,GAAe,IAAI,YAAA,EAAa;AACtC,MAAA,UAAA,CAAW,OAAA,CAAQ,CAAC,CAAA,KAAM,YAAA,CAAa,MAAM,GAAA,CAAI,eAAA,CAAgB,CAAC,CAAC,CAAC,CAAA;AACpE,MAAA,OAAO,YAAA,CAAa,KAAA;AAAA,IACtB;AAAA;AAEJ,CAAC;;;;"}
|
|
@@ -1,29 +1,36 @@
|
|
|
1
|
-
import { Serializer } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { Serializer } from '../Serializer.mjs';
|
|
2
|
+
import '@internationalized/date';
|
|
3
|
+
import { isSerializedFile, fileDeSerialize, fileSerialize } from './file.mjs';
|
|
4
|
+
import '@mittwald/flow-react-components/mittwald-password-tools-js';
|
|
5
|
+
|
|
6
|
+
const formDataSerializer = new Serializer({
|
|
7
|
+
name: "FormData",
|
|
8
|
+
serialize: {
|
|
9
|
+
isApplicable: (val) => val instanceof FormData,
|
|
10
|
+
apply: (formData) => {
|
|
11
|
+
return formData.entries().toArray().map(([fieldName, fieldValue]) => {
|
|
12
|
+
if (fieldValue instanceof File) {
|
|
13
|
+
return [fieldName, fileSerialize(fieldValue)];
|
|
14
|
+
}
|
|
15
|
+
return [fieldName, fieldValue];
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
deserialize: {
|
|
20
|
+
apply: (array) => {
|
|
21
|
+
const formData = new FormData();
|
|
22
|
+
for (const [name, value] of array) {
|
|
23
|
+
const deserializedValue = isSerializedFile(value) ? fileDeSerialize(value) : value;
|
|
24
|
+
if (!formData.has(name)) {
|
|
25
|
+
formData.set(name, deserializedValue);
|
|
26
|
+
} else {
|
|
27
|
+
formData.append(name, deserializedValue);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return formData;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
25
33
|
});
|
|
26
|
-
//#endregion
|
|
27
|
-
export { formDataSerializer };
|
|
28
34
|
|
|
29
|
-
|
|
35
|
+
export { formDataSerializer };
|
|
36
|
+
//# sourceMappingURL=formData.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formData.mjs","
|
|
1
|
+
{"version":3,"file":"formData.mjs","sources":["../../../../../../src/serialization/serializers/formData.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n fileDeSerialize,\n fileSerialize,\n isSerializedFile,\n} from \"@/serialization/serializers\";\n\nexport const formDataSerializer = new Serializer<\n FormData,\n [string, FormDataEntryValue][]\n>({\n name: \"FormData\",\n serialize: {\n isApplicable: (val) => val instanceof FormData,\n apply: (formData) => {\n return formData\n .entries()\n .toArray()\n .map(([fieldName, fieldValue]) => {\n if (fieldValue instanceof File) {\n return [fieldName, fileSerialize(fieldValue)];\n }\n\n return [fieldName, fieldValue];\n }) as [string, FormDataEntryValue][];\n },\n },\n deserialize: {\n apply: (array) => {\n const formData = new FormData();\n for (const [name, value] of array) {\n const deserializedValue = isSerializedFile(value)\n ? fileDeSerialize(value)\n : value;\n\n if (!formData.has(name)) {\n formData.set(name, deserializedValue);\n } else {\n formData.append(name, deserializedValue);\n }\n }\n return formData;\n },\n },\n});\n"],"names":[],"mappings":";;;;;AAOO,MAAM,kBAAA,GAAqB,IAAI,UAAA,CAGpC;AAAA,EACA,IAAA,EAAM,UAAA;AAAA,EACN,SAAA,EAAW;AAAA,IACT,YAAA,EAAc,CAAC,GAAA,KAAQ,GAAA,YAAe,QAAA;AAAA,IACtC,KAAA,EAAO,CAAC,QAAA,KAAa;AACnB,MAAA,OAAO,QAAA,CACJ,OAAA,EAAQ,CACR,OAAA,EAAQ,CACR,IAAI,CAAC,CAAC,SAAA,EAAW,UAAU,CAAA,KAAM;AAChC,QAAA,IAAI,sBAAsB,IAAA,EAAM;AAC9B,UAAA,OAAO,CAAC,SAAA,EAAW,aAAA,CAAc,UAAU,CAAC,CAAA;AAAA,QAC9C;AAEA,QAAA,OAAO,CAAC,WAAW,UAAU,CAAA;AAAA,MAC/B,CAAC,CAAA;AAAA,IACL;AAAA,GACF;AAAA,EACA,WAAA,EAAa;AAAA,IACX,KAAA,EAAO,CAAC,KAAA,KAAU;AAChB,MAAA,MAAM,QAAA,GAAW,IAAI,QAAA,EAAS;AAC9B,MAAA,KAAA,MAAW,CAAC,IAAA,EAAM,KAAK,CAAA,IAAK,KAAA,EAAO;AACjC,QAAA,MAAM,oBAAoB,gBAAA,CAAiB,KAAK,CAAA,GAC5C,eAAA,CAAgB,KAAK,CAAA,GACrB,KAAA;AAEJ,QAAA,IAAI,CAAC,QAAA,CAAS,GAAA,CAAI,IAAI,CAAA,EAAG;AACvB,UAAA,QAAA,CAAS,GAAA,CAAI,MAAM,iBAAiB,CAAA;AAAA,QACtC,CAAA,MAAO;AACL,UAAA,QAAA,CAAS,MAAA,CAAO,MAAM,iBAAiB,CAAA;AAAA,QACzC;AAAA,MACF;AACA,MAAA,OAAO,QAAA;AAAA,IACT;AAAA;AAEJ,CAAC;;;;"}
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//#region src/serialization/serializers/index.ts
|
|
9
|
-
var serializers_exports = /* @__PURE__ */ __exportAll({
|
|
10
|
-
calendarDateSerializer: () => calendarDateSerializer,
|
|
11
|
-
dataTransferTextSerializer: () => dataTransferTextSerializer,
|
|
12
|
-
fileDeSerialize: () => fileDeSerialize,
|
|
13
|
-
fileListSerializer: () => fileListSerializer,
|
|
14
|
-
fileSerialize: () => fileSerialize,
|
|
15
|
-
fileSerializer: () => fileSerializer,
|
|
16
|
-
formDataSerializer: () => formDataSerializer,
|
|
17
|
-
isSerializedFile: () => isSerializedFile,
|
|
18
|
-
passwordPolicySerializer: () => passwordPolicySerializer
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { serializers_exports };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export { calendarDateSerializer } from './date.mjs';
|
|
2
|
+
export { fileDeSerialize, fileSerialize, fileSerializer, isSerializedFile } from './file.mjs';
|
|
3
|
+
export { fileListSerializer } from './fileList.mjs';
|
|
4
|
+
export { dataTransferTextSerializer } from './dataTransferText.mjs';
|
|
5
|
+
export { formDataSerializer } from './formData.mjs';
|
|
6
|
+
export { passwordPolicySerializer } from './passwordPolicy.mjs';
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { Serializer } from
|
|
2
|
-
import { Policy } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { Serializer } from '../Serializer.mjs';
|
|
2
|
+
import { Policy } from '@mittwald/flow-react-components/mittwald-password-tools-js';
|
|
3
|
+
|
|
4
|
+
const passwordPolicySerializer = new Serializer({
|
|
5
|
+
name: "PasswordPolicy",
|
|
6
|
+
serialize: {
|
|
7
|
+
isApplicable: (val) => Policy.isPolicy(val),
|
|
8
|
+
apply: (policy) => policy.toDeclaration()
|
|
9
|
+
},
|
|
10
|
+
deserialize: {
|
|
11
|
+
apply: (policyDeclaration) => Policy.fromDeclaration(policyDeclaration)
|
|
12
|
+
}
|
|
11
13
|
});
|
|
12
|
-
//#endregion
|
|
13
|
-
export { passwordPolicySerializer };
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
export { passwordPolicySerializer };
|
|
16
|
+
//# sourceMappingURL=passwordPolicy.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passwordPolicy.mjs","
|
|
1
|
+
{"version":3,"file":"passwordPolicy.mjs","sources":["../../../../../../src/serialization/serializers/passwordPolicy.ts"],"sourcesContent":["import { Serializer } from \"@/serialization/Serializer\";\nimport {\n Policy,\n type PolicyDeclaration,\n} from \"@mittwald/flow-react-components/mittwald-password-tools-js\";\n\nexport const passwordPolicySerializer = new Serializer<\n Policy,\n PolicyDeclaration\n>({\n name: \"PasswordPolicy\",\n serialize: {\n isApplicable: (val) => Policy.isPolicy(val),\n apply: (policy) => policy.toDeclaration(),\n },\n deserialize: {\n apply: (policyDeclaration) => Policy.fromDeclaration(policyDeclaration),\n },\n});\n"],"names":[],"mappings":";;;AAMO,MAAM,wBAAA,GAA2B,IAAI,UAAA,CAG1C;AAAA,EACA,IAAA,EAAM,gBAAA;AAAA,EACN,SAAA,EAAW;AAAA,IACT,YAAA,EAAc,CAAC,GAAA,KAAQ,MAAA,CAAO,SAAS,GAAG,CAAA;AAAA,IAC1C,KAAA,EAAO,CAAC,MAAA,KAAW,MAAA,CAAO,aAAA;AAAc,GAC1C;AAAA,EACA,WAAA,EAAa;AAAA,IACX,KAAA,EAAO,CAAC,iBAAA,KAAsB,MAAA,CAAO,gBAAgB,iBAAiB;AAAA;AAE1E,CAAC;;;;"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { HTMLElement, customElements } from
|
|
2
|
-
|
|
1
|
+
import { HTMLElement, customElements } from '@lit-labs/ssr-dom-shim';
|
|
2
|
+
|
|
3
3
|
globalThis.HTMLElement = HTMLElement;
|
|
4
4
|
globalThis.customElements = customElements;
|
|
5
5
|
globalThis.MutationObserver = class MutationObserver {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
constructor() {
|
|
7
|
+
}
|
|
8
|
+
disconnect() {
|
|
9
|
+
}
|
|
10
|
+
observe() {
|
|
11
|
+
}
|
|
12
|
+
takeRecords() {
|
|
13
|
+
return [];
|
|
14
|
+
}
|
|
12
15
|
};
|
|
13
|
-
//#
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=shim.mjs.map
|
|
16
|
+
//# sourceMappingURL=shim.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.mjs","
|
|
1
|
+
{"version":3,"file":"shim.mjs","sources":["../../../../src/shim.ts"],"sourcesContent":["import { HTMLElement, customElements } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement = HTMLElement;\nglobalThis.customElements = customElements;\nglobalThis.MutationObserver = class MutationObserver {\n public constructor() {\n // mocked\n }\n public disconnect() {\n // mocked\n }\n public observe() {\n // mocked\n }\n public takeRecords() {\n return [];\n }\n};\n"],"names":[],"mappings":";;AAEA,UAAA,CAAW,WAAA,GAAc,WAAA;AACzB,UAAA,CAAW,cAAA,GAAiB,cAAA;AAC5B,UAAA,CAAW,gBAAA,GAAmB,MAAM,gBAAA,CAAiB;AAAA,EAC5C,WAAA,GAAc;AAAA,EAErB;AAAA,EACO,UAAA,GAAa;AAAA,EAEpB;AAAA,EACO,OAAA,GAAU;AAAA,EAEjB;AAAA,EACO,WAAA,GAAc;AACnB,IAAA,OAAO,EAAC;AAAA,EACV;AACF,CAAA"}
|
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.784",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core functionality to setup a remote/host environment",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"remeda": "^2.33.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@mittwald/ext-bridge": "0.2.0-alpha.
|
|
37
|
+
"@mittwald/ext-bridge": "0.2.0-alpha.784",
|
|
38
38
|
"@mittwald/flow-core": "",
|
|
39
|
-
"@mittwald/flow-react-components": "0.2.0-alpha.
|
|
39
|
+
"@mittwald/flow-react-components": "0.2.0-alpha.784",
|
|
40
40
|
"@mittwald/typescript-config": "",
|
|
41
41
|
"@types/node": "^24.10.9",
|
|
42
42
|
"nx": "^22.4.4",
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
"rimraf": "^6.1.2",
|
|
45
45
|
"rollup-preserve-directives": "^1.1.3",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
|
-
"vite": "^
|
|
47
|
+
"vite": "^7.3.1",
|
|
48
48
|
"vite-plugin-checker": "^0.12.0",
|
|
49
49
|
"vite-plugin-dts": "^4.5.4",
|
|
50
50
|
"vite-plugin-externalize-deps": "^0.10.0",
|
|
51
|
-
"vitest": "^4.
|
|
51
|
+
"vitest": "^4.0.18"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@mittwald/ext-bridge": "0.2.0-alpha.
|
|
55
|
-
"@mittwald/flow-react-components": "0.2.0-alpha.
|
|
54
|
+
"@mittwald/ext-bridge": "0.2.0-alpha.783",
|
|
55
|
+
"@mittwald/flow-react-components": "0.2.0-alpha.783"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@mittwald/ext-bridge": {
|
|
59
59
|
"optional": true
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "38762a66c3e86e5d5613dc18dc111cbeb5b402b4"
|
|
63
63
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all, no_symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) __defProp(target, name, {
|
|
6
|
-
get: all[name],
|
|
7
|
-
enumerable: true
|
|
8
|
-
});
|
|
9
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
-
return target;
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { __exportAll };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./file.mjs";
|