@dreamlake/dreamdb 0.2.0 → 0.2.1
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/dreamdb.d.ts +10 -0
- package/dreamdb_bg.js +34 -1
- package/dreamdb_bg.wasm +0 -0
- package/package.json +1 -1
package/dreamdb.d.ts
CHANGED
|
@@ -56,6 +56,16 @@ export class Space {
|
|
|
56
56
|
* de-dupe) their bucket and roaring-decode the anchor set.
|
|
57
57
|
*/
|
|
58
58
|
readScalarColumn(track: any, _opts: any): Promise<Map<any, any>>;
|
|
59
|
+
/**
|
|
60
|
+
* Fetch a track object and return its `object_index` (array of CBOR
|
|
61
|
+
* entries). Inline indexes only — paged indexes are not resolved (matching
|
|
62
|
+
* dreamdb-ts, which also doesn't support them on this path).
|
|
63
|
+
*/
|
|
64
|
+
resolveObjectIndex(track: any): Promise<Array<any>>;
|
|
65
|
+
/**
|
|
66
|
+
* Base32 hash of the manifest's first timeline.
|
|
67
|
+
*/
|
|
68
|
+
timelineId(): string;
|
|
59
69
|
/**
|
|
60
70
|
* Find a track by its resolved `key` or by `modality`.
|
|
61
71
|
*/
|
package/dreamdb_bg.js
CHANGED
|
@@ -161,6 +161,39 @@ export class Space {
|
|
|
161
161
|
const ret = wasm.space_readScalarColumn(this.__wbg_ptr, track, _opts);
|
|
162
162
|
return ret;
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Fetch a track object and return its `object_index` (array of CBOR
|
|
166
|
+
* entries). Inline indexes only — paged indexes are not resolved (matching
|
|
167
|
+
* dreamdb-ts, which also doesn't support them on this path).
|
|
168
|
+
* @param {any} track
|
|
169
|
+
* @returns {Promise<Array<any>>}
|
|
170
|
+
*/
|
|
171
|
+
resolveObjectIndex(track) {
|
|
172
|
+
const ret = wasm.space_resolveObjectIndex(this.__wbg_ptr, track);
|
|
173
|
+
return ret;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Base32 hash of the manifest's first timeline.
|
|
177
|
+
* @returns {string}
|
|
178
|
+
*/
|
|
179
|
+
timelineId() {
|
|
180
|
+
let deferred2_0;
|
|
181
|
+
let deferred2_1;
|
|
182
|
+
try {
|
|
183
|
+
const ret = wasm.space_timelineId(this.__wbg_ptr);
|
|
184
|
+
var ptr1 = ret[0];
|
|
185
|
+
var len1 = ret[1];
|
|
186
|
+
if (ret[3]) {
|
|
187
|
+
ptr1 = 0; len1 = 0;
|
|
188
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
189
|
+
}
|
|
190
|
+
deferred2_0 = ptr1;
|
|
191
|
+
deferred2_1 = len1;
|
|
192
|
+
return getStringFromWasm0(ptr1, len1);
|
|
193
|
+
} finally {
|
|
194
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
164
197
|
/**
|
|
165
198
|
* Find a track by its resolved `key` or by `modality`.
|
|
166
199
|
* @param {string} key_or_modality
|
|
@@ -462,7 +495,7 @@ export function __wbg_then_bd927500e8905df2(arg0, arg1, arg2) {
|
|
|
462
495
|
return ret;
|
|
463
496
|
}
|
|
464
497
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
465
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
498
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 275, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
466
499
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_);
|
|
467
500
|
return ret;
|
|
468
501
|
}
|
package/dreamdb_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dreamlake/dreamdb",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "WebAssembly binding of dreamdb-dataset — the browser DreamDB SDK (@dreamlake/dreamdb)",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.1",
|
|
6
6
|
"license": "MIT OR Apache-2.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"dreamdb_bg.wasm",
|