@misofm/platform 0.26.0 → 0.26.2
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.
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export declare function u256ToB64Url(value: bigint | string): string;
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The canonical read URL for a blob: `{aggregator}/v1/blobs/{blob_id}`, no query.
|
|
4
|
+
*
|
|
5
|
+
* Read policy is not the client's to pin. Walrus's default consistency check
|
|
6
|
+
* has been the fast one since v1.37, its aggregator rejects any query
|
|
7
|
+
* parameter it does not know, and a query string splits every cache (browser,
|
|
8
|
+
* edge, CDN) into one entry per spelling of the same blob. Anything Miso wants
|
|
9
|
+
* to say to the aggregator about a read belongs in the CDN that fronts it.
|
|
10
|
+
*/
|
|
3
11
|
export declare function walrusBlobReadUrl(aggregator: string, blobId: bigint | string): string;
|
|
4
12
|
/** Build Walrus's 37-byte quilt-patch id. All fields use BCS little-endian. */
|
|
5
13
|
export declare function quiltPatchId(quiltId: bigint | string, version: number, startIndex: number, endIndex: number): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walrus.d.ts","sourceRoot":"","sources":["../../../src/read/internal/walrus.ts"],"names":[],"mappings":"AAaA,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAE3D;AAED
|
|
1
|
+
{"version":3,"file":"walrus.d.ts","sourceRoot":"","sources":["../../../src/read/internal/walrus.ts"],"names":[],"mappings":"AAaA,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAE3D;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,GAAG,MAAM,GACtB,MAAM,CAGR;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,MAAM,CASR"}
|
|
@@ -10,10 +10,18 @@ function toBase64Url(bytes) {
|
|
|
10
10
|
export function u256ToB64Url(value) {
|
|
11
11
|
return walrusBlobIdFromU256(value);
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The canonical read URL for a blob: `{aggregator}/v1/blobs/{blob_id}`, no query.
|
|
15
|
+
*
|
|
16
|
+
* Read policy is not the client's to pin. Walrus's default consistency check
|
|
17
|
+
* has been the fast one since v1.37, its aggregator rejects any query
|
|
18
|
+
* parameter it does not know, and a query string splits every cache (browser,
|
|
19
|
+
* edge, CDN) into one entry per spelling of the same blob. Anything Miso wants
|
|
20
|
+
* to say to the aggregator about a read belongs in the CDN that fronts it.
|
|
21
|
+
*/
|
|
14
22
|
export function walrusBlobReadUrl(aggregator, blobId) {
|
|
15
23
|
const base = aggregator.replace(/\/$/, "");
|
|
16
|
-
return `${base}/v1/blobs/${u256ToB64Url(blobId)}
|
|
24
|
+
return `${base}/v1/blobs/${u256ToB64Url(blobId)}`;
|
|
17
25
|
}
|
|
18
26
|
/** Build Walrus's 37-byte quilt-patch id. All fields use BCS little-endian. */
|
|
19
27
|
export function quiltPatchId(quiltId, version, startIndex, endIndex) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walrus.js","sourceRoot":"","sources":["../../../src/read/internal/walrus.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AAEtC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;AAExB,SAAS,WAAW,CAAC,KAAiB;IACpC,OAAO,QAAQ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AAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IACjC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IACxD,KAAK,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,CAAC,GAAG,UAAU,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,CAAC,GAAG,QAAQ,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;IACnC,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@misofm/platform",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
4
4
|
"packageManager": "bun@1.4.0",
|
|
5
5
|
"description": "Complete client SDK for the Miso platform on Sui — high-level reads, pressings, listings, records, work publishing, Party extensions, and the first-party extensions built on top of the @misofm/musicos object model and the @misofm/partyos Party identity model.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
"prepare": "rm -rf dist && tsc -p tsconfig.build.json --noCheck"
|
|
152
152
|
},
|
|
153
153
|
"dependencies": {
|
|
154
|
-
"@misofm/effect": "0.1.
|
|
154
|
+
"@misofm/effect": "0.1.1",
|
|
155
155
|
"@misofm/streaming": "0.3.0",
|
|
156
156
|
"@mysten/bcs": "^2.1.1",
|
|
157
|
-
"@misofm/musicos": "0.3.
|
|
158
|
-
"@misofm/partyos": "0.3.
|
|
157
|
+
"@misofm/musicos": "0.3.1",
|
|
158
|
+
"@misofm/partyos": "0.3.1"
|
|
159
159
|
},
|
|
160
160
|
"devDependencies": {
|
|
161
161
|
"@mysten/move-bytecode-template": "^0.4.0",
|
|
@@ -15,13 +15,21 @@ export function u256ToB64Url(value: bigint | string): string {
|
|
|
15
15
|
return walrusBlobIdFromU256(value);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* The canonical read URL for a blob: `{aggregator}/v1/blobs/{blob_id}`, no query.
|
|
20
|
+
*
|
|
21
|
+
* Read policy is not the client's to pin. Walrus's default consistency check
|
|
22
|
+
* has been the fast one since v1.37, its aggregator rejects any query
|
|
23
|
+
* parameter it does not know, and a query string splits every cache (browser,
|
|
24
|
+
* edge, CDN) into one entry per spelling of the same blob. Anything Miso wants
|
|
25
|
+
* to say to the aggregator about a read belongs in the CDN that fronts it.
|
|
26
|
+
*/
|
|
19
27
|
export function walrusBlobReadUrl(
|
|
20
28
|
aggregator: string,
|
|
21
29
|
blobId: bigint | string,
|
|
22
30
|
): string {
|
|
23
31
|
const base = aggregator.replace(/\/$/, "");
|
|
24
|
-
return `${base}/v1/blobs/${u256ToB64Url(blobId)}
|
|
32
|
+
return `${base}/v1/blobs/${u256ToB64Url(blobId)}`;
|
|
25
33
|
}
|
|
26
34
|
|
|
27
35
|
/** Build Walrus's 37-byte quilt-patch id. All fields use BCS little-endian. */
|