@atcute/bluesky-threading 2.0.2 → 3.0.0
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/cbor.js +2 -2
- package/dist/cbor.js.map +1 -1
- package/lib/cbor.ts +2 -2
- package/package.json +7 -7
package/dist/cbor.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { encode } from '@atcute/cbor';
|
|
2
|
-
import { create,
|
|
2
|
+
import { create, toString } from '@atcute/cid';
|
|
3
3
|
// Sanity-check by requiring a $type here, this is because the records are
|
|
4
4
|
// expected to be encoded with it, even though the PDS accepts record writes
|
|
5
5
|
// without the field.
|
|
6
6
|
export async function serializeRecordCid(record) {
|
|
7
7
|
const bytes = encode(record);
|
|
8
8
|
const cid = await create(0x71, bytes);
|
|
9
|
-
const serialized =
|
|
9
|
+
const serialized = toString(cid);
|
|
10
10
|
return serialized;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=cbor.js.map
|
package/dist/cbor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cbor.js","sourceRoot":"","sources":["../lib/cbor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"cbor.js","sourceRoot":"","sources":["../lib/cbor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE/C,0EAA0E;AAC1E,4EAA4E;AAC5E,qBAAqB;AACrB,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,MAAyB;IACjE,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAE7B,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEjC,OAAO,UAAU,CAAC;AACnB,CAAC"}
|
package/lib/cbor.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { encode } from '@atcute/cbor';
|
|
2
|
-
import { create,
|
|
2
|
+
import { create, toString } from '@atcute/cid';
|
|
3
3
|
|
|
4
4
|
// Sanity-check by requiring a $type here, this is because the records are
|
|
5
5
|
// expected to be encoded with it, even though the PDS accepts record writes
|
|
@@ -8,7 +8,7 @@ export async function serializeRecordCid(record: { $type: string }): Promise<str
|
|
|
8
8
|
const bytes = encode(record);
|
|
9
9
|
|
|
10
10
|
const cid = await create(0x71, bytes);
|
|
11
|
-
const serialized =
|
|
11
|
+
const serialized = toString(cid);
|
|
12
12
|
|
|
13
13
|
return serialized;
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/bluesky-threading",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"description": "create Bluesky threads containing multiple posts with one write",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"@atcute/client": "^2.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atcute/cbor": "^
|
|
27
|
-
"@atcute/
|
|
28
|
-
"@atcute/
|
|
26
|
+
"@atcute/cbor": "^2.0.0",
|
|
27
|
+
"@atcute/tid": "^1.0.1",
|
|
28
|
+
"@atcute/cid": "^2.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/bun": "^1.1.12",
|
|
32
|
-
"@atcute/bluesky": "^1.0.
|
|
33
|
-
"@atcute/
|
|
34
|
-
"@atcute/
|
|
32
|
+
"@atcute/bluesky": "^1.0.11",
|
|
33
|
+
"@atcute/bluesky-richtext-builder": "^1.0.2",
|
|
34
|
+
"@atcute/client": "^2.0.6"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsc --project tsconfig.build.json",
|