@sdxc/activitypub 2026.10.13 → 2026.10.16
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/lib/parse.js +7 -4
- package/package.json +11 -10
package/dist/lib/parse.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { stringify } from "@sdxc/json-pointer";
|
|
1
2
|
import { failure, success } from "@sdxc/result";
|
|
2
3
|
import { createSchema, fail, object, parseSafe } from "remix/data-schema";
|
|
3
4
|
import { lazy } from "remix/data-schema/lazy";
|
|
@@ -285,10 +286,12 @@ const COLLECTION_SCHEMA = createSchema((value, context) => {
|
|
|
285
286
|
* @param path - The issue's path, outermost first.
|
|
286
287
|
*/
|
|
287
288
|
function pointerOf(path) {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
.
|
|
289
|
+
let segments = [];
|
|
290
|
+
for (let segment of path ?? []) {
|
|
291
|
+
let key = typeof segment === "object" ? segment.key : segment;
|
|
292
|
+
segments.push(typeof key === "number" ? key : String(key));
|
|
293
|
+
}
|
|
294
|
+
return stringify(segments);
|
|
292
295
|
}
|
|
293
296
|
/**
|
|
294
297
|
* Validates a decoded document, answering every issue with a pointer into it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdxc/activitypub",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.16",
|
|
4
4
|
"description": "ActivityPub protocol logic: vocabulary, actors, discovery, a verified inbox and signed delivery",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,20 +10,21 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@sdxc/backoff": "2026.10.13",
|
|
13
|
-
"@sdxc/cache": "2026.10.
|
|
13
|
+
"@sdxc/cache": "2026.10.16",
|
|
14
14
|
"@sdxc/crypto": "2026.10.13",
|
|
15
15
|
"@sdxc/duration": "2026.10.13",
|
|
16
16
|
"@sdxc/html": "2026.10.13",
|
|
17
|
-
"@sdxc/http": "2026.10.
|
|
18
|
-
"@sdxc/http-signatures": "2026.10.
|
|
19
|
-
"@sdxc/
|
|
20
|
-
"@sdxc/
|
|
17
|
+
"@sdxc/http": "2026.10.16",
|
|
18
|
+
"@sdxc/http-signatures": "2026.10.16",
|
|
19
|
+
"@sdxc/json-pointer": "2026.10.14",
|
|
20
|
+
"@sdxc/logger": "2026.10.16",
|
|
21
|
+
"@sdxc/outbound": "2026.10.16",
|
|
21
22
|
"@sdxc/result": "2026.10.13",
|
|
22
23
|
"@sdxc/uuid": "2026.10.13",
|
|
23
|
-
"@sdxc/well-known": "2026.10.
|
|
24
|
-
"remix": "3.0.0"
|
|
24
|
+
"@sdxc/well-known": "2026.10.16"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
+
"remix": "3.0.0",
|
|
27
28
|
"vitest": "^4.1.10"
|
|
28
29
|
},
|
|
29
30
|
"peerDependenciesMeta": {
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"optional": true
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "1e547d8431568f5ed9bdb079ca3046c936240fde",
|
|
35
36
|
"publishConfig": {
|
|
36
37
|
"access": "public"
|
|
37
38
|
},
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"url": "git+https://github.com/sergiodxa/monorepo.git",
|
|
41
42
|
"directory": "packages/activitypub"
|
|
42
43
|
},
|
|
43
|
-
"homepage": "https://sdxc.
|
|
44
|
+
"homepage": "https://sdxc.dev/api/activitypub",
|
|
44
45
|
"author": {
|
|
45
46
|
"name": "Sergio Xalambrí",
|
|
46
47
|
"url": "https://sergiodxa.com"
|