@le-space/core 0.12.14 → 0.12.15
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/index.js +7 -4
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -10715,10 +10715,13 @@ function filterRelayBootstrapPostsByProfile(posts, profile) {
|
|
|
10715
10715
|
function filterRelayBootstrapPostsByRegistration(posts, registrationId) {
|
|
10716
10716
|
const wanted = (typeof registrationId === "string" ? [registrationId] : registrationId ?? []).map((entry) => entry.trim()).filter(Boolean);
|
|
10717
10717
|
if (wanted.length === 0) return [...posts];
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
(
|
|
10721
|
-
|
|
10718
|
+
return posts.filter((post) => {
|
|
10719
|
+
const registrationId2 = post.content?.registrationId;
|
|
10720
|
+
if (typeof registrationId2 !== "string") return false;
|
|
10721
|
+
return wanted.some(
|
|
10722
|
+
(id) => registrationId2 === id || registrationId2.startsWith(`${id}:`)
|
|
10723
|
+
);
|
|
10724
|
+
});
|
|
10722
10725
|
}
|
|
10723
10726
|
async function filterTrustedRelayBootstrapPosts(posts, options = {}) {
|
|
10724
10727
|
const requireDualKeyAttestation = options.requireDualKeyAttestation ?? false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/core",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.15",
|
|
4
4
|
"description": "Reusable Aleph deployment, runtime, and guest lifecycle logic.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "https://github.com/NiKrause/relay-button/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@le-space/aleph-bootstrap": "0.12.
|
|
28
|
-
"@le-space/shared-types": "0.12.
|
|
27
|
+
"@le-space/aleph-bootstrap": "0.12.15",
|
|
28
|
+
"@le-space/shared-types": "0.12.15"
|
|
29
29
|
}
|
|
30
30
|
}
|