@riddix/hamh 2.1.0-alpha.457 β 2.1.0-alpha.459
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/README.md
CHANGED
|
@@ -437,6 +437,7 @@ Thank you to everyone who helps improve this project by reporting issues!
|
|
|
437
437
|
| π [@nicoodeimos](https://github.com/nicoodeimos) | π [@ustari28](https://github.com/ustari28) | π Markus MΓΌller ([@Dingosworld](https://github.com/Dingosworld)) |
|
|
438
438
|
| π StefanS | π Manny B. | π Bonjon |
|
|
439
439
|
| π TobiR | π Franz Huber | π Michele Larese de Prata |
|
|
440
|
+
| π [@CNCB](https://github.com/CNCB) | π [@pelican1997](https://github.com/pelican1997) | |
|
|
440
441
|
|
|
441
442
|
π *...and anonymous supporters who prefer not to be named.*
|
|
442
443
|
|
package/dist/backend/cli.js
CHANGED
|
@@ -148932,7 +148932,12 @@ function mappingProfileApi(mappingStorage) {
|
|
|
148932
148932
|
router.get("/export/:bridgeId", (req, res) => {
|
|
148933
148933
|
const { bridgeId } = req.params;
|
|
148934
148934
|
const profileName = req.query.name || "Unnamed Profile";
|
|
148935
|
-
const
|
|
148935
|
+
const entityIdsParam = req.query.entityIds;
|
|
148936
|
+
let mappings = mappingStorage.getMappingsForBridge(bridgeId);
|
|
148937
|
+
if (entityIdsParam) {
|
|
148938
|
+
const selectedIds = new Set(entityIdsParam.split(","));
|
|
148939
|
+
mappings = mappings.filter((m) => selectedIds.has(m.entityId));
|
|
148940
|
+
}
|
|
148936
148941
|
if (mappings.length === 0) {
|
|
148937
148942
|
res.status(404).json({ error: "No mappings found for this bridge" });
|
|
148938
148943
|
return;
|