@spacesprotocol/libveritas 0.0.0-dev.20260327154336 → 0.0.0-dev.20260327173817
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/libveritas.d.ts +3 -1
- package/libveritas.js +24 -1
- package/libveritas_bg.wasm +0 -0
- package/package.json +1 -1
package/libveritas.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export class QueryContext {
|
|
|
152
152
|
*
|
|
153
153
|
* ```js
|
|
154
154
|
* const rs = RecordSet.pack([
|
|
155
|
-
* Record.txt("btc", "bc1qtest"),
|
|
155
|
+
* Record.txt("btc", ["bc1qtest"]),
|
|
156
156
|
* Record.blob("avatar", pngBytes),
|
|
157
157
|
* Record.unknown(0x10, raw),
|
|
158
158
|
* ]);
|
|
@@ -165,6 +165,7 @@ export class Record {
|
|
|
165
165
|
static blob(key: string, value: Uint8Array): any;
|
|
166
166
|
static seq(version: bigint): any;
|
|
167
167
|
static txt(key: string, value: string): any;
|
|
168
|
+
static txts(key: string, value: any): any;
|
|
168
169
|
static unknown(rtype: number, rdata: Uint8Array): any;
|
|
169
170
|
}
|
|
170
171
|
|
|
@@ -348,6 +349,7 @@ export interface InitOutput {
|
|
|
348
349
|
readonly record_blob: (a: number, b: number, c: number, d: number) => any;
|
|
349
350
|
readonly record_seq: (a: bigint) => any;
|
|
350
351
|
readonly record_txt: (a: number, b: number, c: number, d: number) => any;
|
|
352
|
+
readonly record_txts: (a: number, b: number, c: any) => any;
|
|
351
353
|
readonly record_unknown: (a: number, b: number, c: number) => any;
|
|
352
354
|
readonly recordset_isEmpty: (a: number) => number;
|
|
353
355
|
readonly recordset_new: (a: number, b: number) => number;
|
package/libveritas.js
CHANGED
|
@@ -392,7 +392,7 @@ if (Symbol.dispose) QueryContext.prototype[Symbol.dispose] = QueryContext.protot
|
|
|
392
392
|
*
|
|
393
393
|
* ```js
|
|
394
394
|
* const rs = RecordSet.pack([
|
|
395
|
-
* Record.txt("btc", "bc1qtest"),
|
|
395
|
+
* Record.txt("btc", ["bc1qtest"]),
|
|
396
396
|
* Record.blob("avatar", pngBytes),
|
|
397
397
|
* Record.unknown(0x10, raw),
|
|
398
398
|
* ]);
|
|
@@ -443,6 +443,17 @@ export class Record {
|
|
|
443
443
|
const ret = wasm.record_txt(ptr0, len0, ptr1, len1);
|
|
444
444
|
return ret;
|
|
445
445
|
}
|
|
446
|
+
/**
|
|
447
|
+
* @param {string} key
|
|
448
|
+
* @param {any} value
|
|
449
|
+
* @returns {any}
|
|
450
|
+
*/
|
|
451
|
+
static txts(key, value) {
|
|
452
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
453
|
+
const len0 = WASM_VECTOR_LEN;
|
|
454
|
+
const ret = wasm.record_txts(ptr0, len0, value);
|
|
455
|
+
return ret;
|
|
456
|
+
}
|
|
446
457
|
/**
|
|
447
458
|
* @param {number} rtype
|
|
448
459
|
* @param {Uint8Array} rdata
|
|
@@ -908,6 +919,10 @@ function __wbg_get_imports() {
|
|
|
908
919
|
const ret = arg0 === null;
|
|
909
920
|
return ret;
|
|
910
921
|
},
|
|
922
|
+
__wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
|
|
923
|
+
const ret = typeof(arg0) === 'string';
|
|
924
|
+
return ret;
|
|
925
|
+
},
|
|
911
926
|
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
912
927
|
const ret = arg0 === undefined;
|
|
913
928
|
return ret;
|
|
@@ -941,6 +956,10 @@ function __wbg_get_imports() {
|
|
|
941
956
|
const ret = arg0[arg1 >>> 0];
|
|
942
957
|
return ret;
|
|
943
958
|
},
|
|
959
|
+
__wbg_isArray_33b91feb269ff46e: function(arg0) {
|
|
960
|
+
const ret = Array.isArray(arg0);
|
|
961
|
+
return ret;
|
|
962
|
+
},
|
|
944
963
|
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
945
964
|
const ret = arg0.length;
|
|
946
965
|
return ret;
|
|
@@ -965,6 +984,10 @@ function __wbg_get_imports() {
|
|
|
965
984
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
966
985
|
return ret;
|
|
967
986
|
},
|
|
987
|
+
__wbg_of_8bf7ed3eca00ea43: function(arg0) {
|
|
988
|
+
const ret = Array.of(arg0);
|
|
989
|
+
return ret;
|
|
990
|
+
},
|
|
968
991
|
__wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
|
|
969
992
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
970
993
|
return ret;
|
package/libveritas_bg.wasm
CHANGED
|
Binary file
|