@spacesprotocol/libveritas 0.0.0-dev.20260327154336 → 0.0.0-dev.20260328154907

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 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
@@ -897,6 +908,12 @@ function __wbg_get_imports() {
897
908
  const ret = Error(getStringFromWasm0(arg0, arg1));
898
909
  return ret;
899
910
  },
911
+ __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
912
+ const v = arg1;
913
+ const ret = typeof(v) === 'bigint' ? v : undefined;
914
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
915
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
916
+ },
900
917
  __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
901
918
  const ret = debugString(arg1);
902
919
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -904,14 +921,26 @@ function __wbg_get_imports() {
904
921
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
905
922
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
906
923
  },
924
+ __wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
925
+ const ret = typeof(arg0) === 'bigint';
926
+ return ret;
927
+ },
907
928
  __wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
908
929
  const ret = arg0 === null;
909
930
  return ret;
910
931
  },
932
+ __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
933
+ const ret = typeof(arg0) === 'string';
934
+ return ret;
935
+ },
911
936
  __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
912
937
  const ret = arg0 === undefined;
913
938
  return ret;
914
939
  },
940
+ __wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
941
+ const ret = arg0 === arg1;
942
+ return ret;
943
+ },
915
944
  __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
916
945
  const obj = arg1;
917
946
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -941,6 +970,10 @@ function __wbg_get_imports() {
941
970
  const ret = arg0[arg1 >>> 0];
942
971
  return ret;
943
972
  },
973
+ __wbg_isArray_33b91feb269ff46e: function(arg0) {
974
+ const ret = Array.isArray(arg0);
975
+ return ret;
976
+ },
944
977
  __wbg_length_b3416cf66a5452c8: function(arg0) {
945
978
  const ret = arg0.length;
946
979
  return ret;
@@ -965,6 +998,10 @@ function __wbg_get_imports() {
965
998
  const ret = new Uint8Array(arg0 >>> 0);
966
999
  return ret;
967
1000
  },
1001
+ __wbg_of_8bf7ed3eca00ea43: function(arg0) {
1002
+ const ret = Array.of(arg0);
1003
+ return ret;
1004
+ },
968
1005
  __wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
969
1006
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
970
1007
  return ret;
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spacesprotocol/libveritas",
3
3
  "type": "module",
4
- "version": "0.0.0-dev.20260327154336",
4
+ "version": "0.0.0-dev.20260328154907",
5
5
  "files": [
6
6
  "libveritas_bg.wasm",
7
7
  "libveritas.js",