@keyhive/keyhive 0.0.0-alpha.7 → 0.0.0-alpha.8

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/README.md CHANGED
@@ -3,12 +3,7 @@
3
3
  ## Build package
4
4
 
5
5
  ```
6
- wasm-pack build --target web --out-dir pkg -- --features web-sys
7
- ```
8
-
9
- To build with the `ingest_static` feature:
10
- ```
11
- wasm-pack build --target web --out-dir pkg -- --features web-sys,ingest_static
6
+ pnpm install && pnpm build
12
7
  ```
13
8
 
14
9
  ## Run tests
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keyhive/keyhive",
3
- "version": "0.0.0-alpha.7",
3
+ "version": "0.0.0-alpha.8",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
package/pkg/README.md CHANGED
@@ -3,12 +3,7 @@
3
3
  ## Build package
4
4
 
5
5
  ```
6
- wasm-pack build --target web --out-dir pkg -- --features web-sys
7
- ```
8
-
9
- To build with the `ingest_static` feature:
10
- ```
11
- wasm-pack build --target web --out-dir pkg -- --features web-sys,ingest_static
6
+ pnpm install && pnpm build
12
7
  ```
13
8
 
14
9
  ## Run tests
@@ -120,7 +120,7 @@ export class DocumentId {
120
120
  free(): void;
121
121
  [Symbol.dispose](): void;
122
122
  constructor(bytes: Uint8Array);
123
- fromString(): string;
123
+ toString(): string;
124
124
  toJsValue(): any;
125
125
  toBytes(): Uint8Array;
126
126
  }
@@ -269,7 +269,7 @@ export function setPanicHook() {
269
269
  wasm.setPanicHook();
270
270
  }
271
271
 
272
- function __wbg_adapter_8(arg0, arg1, arg2) {
272
+ function __wbg_adapter_10(arg0, arg1, arg2) {
273
273
  wasm.closure429_externref_shim(arg0, arg1, arg2);
274
274
  }
275
275
 
@@ -1102,11 +1102,11 @@ export class DocumentId {
1102
1102
  /**
1103
1103
  * @returns {string}
1104
1104
  */
1105
- fromString() {
1105
+ toString() {
1106
1106
  let deferred1_0;
1107
1107
  let deferred1_1;
1108
1108
  try {
1109
- const ret = wasm.documentid_fromString(this.__wbg_ptr);
1109
+ const ret = wasm.documentid_toString(this.__wbg_ptr);
1110
1110
  deferred1_0 = ret[0];
1111
1111
  deferred1_1 = ret[1];
1112
1112
  return getStringFromWasm0(ret[0], ret[1]);
@@ -3491,7 +3491,7 @@ export function __wbindgen_cast_25a0a844437d0e92(arg0, arg1) {
3491
3491
 
3492
3492
  export function __wbindgen_cast_a788a31e51647739(arg0, arg1) {
3493
3493
  // Cast intrinsic for `Closure(Closure { dtor_idx: 428, function: Function { arguments: [Externref], shim_idx: 429, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3494
- const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_8);
3494
+ const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_10);
3495
3495
  return ret;
3496
3496
  };
3497
3497
 
Binary file
@@ -56,7 +56,7 @@ export const doccontentrefs_docId: (a: number) => number;
56
56
  export const doccontentrefs_change_hashes: (a: number) => [number, number];
57
57
  export const __wbg_documentid_free: (a: number, b: number) => void;
58
58
  export const documentid_new: (a: number, b: number) => [number, number, number];
59
- export const documentid_fromString: (a: number) => [number, number];
59
+ export const documentid_toString: (a: number) => [number, number];
60
60
  export const documentid_toJsValue: (a: number) => any;
61
61
  export const documentid_toBytes: (a: number) => [number, number];
62
62
  export const __wbg_groupid_free: (a: number, b: number) => void;
@@ -3,12 +3,7 @@
3
3
  ## Build package
4
4
 
5
5
  ```
6
- wasm-pack build --target web --out-dir pkg -- --features web-sys
7
- ```
8
-
9
- To build with the `ingest_static` feature:
10
- ```
11
- wasm-pack build --target web --out-dir pkg -- --features web-sys,ingest_static
6
+ pnpm install && pnpm build
12
7
  ```
13
8
 
14
9
  ## Run tests
@@ -120,7 +120,7 @@ export class DocumentId {
120
120
  free(): void;
121
121
  [Symbol.dispose](): void;
122
122
  constructor(bytes: Uint8Array);
123
- fromString(): string;
123
+ toString(): string;
124
124
  toJsValue(): any;
125
125
  toBytes(): Uint8Array;
126
126
  }
@@ -259,7 +259,7 @@ exports.setPanicHook = function() {
259
259
  wasm.setPanicHook();
260
260
  };
261
261
 
262
- function __wbg_adapter_6(arg0, arg1, arg2) {
262
+ function __wbg_adapter_14(arg0, arg1, arg2) {
263
263
  wasm.closure429_externref_shim(arg0, arg1, arg2);
264
264
  }
265
265
 
@@ -1122,11 +1122,11 @@ class DocumentId {
1122
1122
  /**
1123
1123
  * @returns {string}
1124
1124
  */
1125
- fromString() {
1125
+ toString() {
1126
1126
  let deferred1_0;
1127
1127
  let deferred1_1;
1128
1128
  try {
1129
- const ret = wasm.documentid_fromString(this.__wbg_ptr);
1129
+ const ret = wasm.documentid_toString(this.__wbg_ptr);
1130
1130
  deferred1_0 = ret[0];
1131
1131
  deferred1_1 = ret[1];
1132
1132
  return getStringFromWasm0(ret[0], ret[1]);
@@ -3583,7 +3583,7 @@ exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
3583
3583
 
3584
3584
  exports.__wbindgen_cast_a788a31e51647739 = function(arg0, arg1) {
3585
3585
  // Cast intrinsic for `Closure(Closure { dtor_idx: 428, function: Function { arguments: [Externref], shim_idx: 429, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3586
- const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_6);
3586
+ const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_14);
3587
3587
  return ret;
3588
3588
  };
3589
3589
 
Binary file
@@ -56,7 +56,7 @@ export const doccontentrefs_docId: (a: number) => number;
56
56
  export const doccontentrefs_change_hashes: (a: number) => [number, number];
57
57
  export const __wbg_documentid_free: (a: number, b: number) => void;
58
58
  export const documentid_new: (a: number, b: number) => [number, number, number];
59
- export const documentid_fromString: (a: number) => [number, number];
59
+ export const documentid_toString: (a: number) => [number, number];
60
60
  export const documentid_toJsValue: (a: number) => any;
61
61
  export const documentid_toBytes: (a: number) => [number, number];
62
62
  export const __wbg_groupid_free: (a: number, b: number) => void;
@@ -3,12 +3,7 @@
3
3
  ## Build package
4
4
 
5
5
  ```
6
- wasm-pack build --target web --out-dir pkg -- --features web-sys
7
- ```
8
-
9
- To build with the `ingest_static` feature:
10
- ```
11
- wasm-pack build --target web --out-dir pkg -- --features web-sys,ingest_static
6
+ pnpm install && pnpm build
12
7
  ```
13
8
 
14
9
  ## Run tests
@@ -120,7 +120,7 @@ export class DocumentId {
120
120
  free(): void;
121
121
  [Symbol.dispose](): void;
122
122
  constructor(bytes: Uint8Array);
123
- fromString(): string;
123
+ toString(): string;
124
124
  toJsValue(): any;
125
125
  toBytes(): Uint8Array;
126
126
  }
@@ -461,7 +461,7 @@ export interface InitOutput {
461
461
  readonly doccontentrefs_change_hashes: (a: number) => [number, number];
462
462
  readonly __wbg_documentid_free: (a: number, b: number) => void;
463
463
  readonly documentid_new: (a: number, b: number) => [number, number, number];
464
- readonly documentid_fromString: (a: number) => [number, number];
464
+ readonly documentid_toString: (a: number) => [number, number];
465
465
  readonly documentid_toJsValue: (a: number) => any;
466
466
  readonly documentid_toBytes: (a: number) => [number, number];
467
467
  readonly __wbg_groupid_free: (a: number, b: number) => void;
@@ -265,7 +265,7 @@ export function setPanicHook() {
265
265
  wasm.setPanicHook();
266
266
  }
267
267
 
268
- function __wbg_adapter_6(arg0, arg1, arg2) {
268
+ function __wbg_adapter_8(arg0, arg1, arg2) {
269
269
  wasm.closure429_externref_shim(arg0, arg1, arg2);
270
270
  }
271
271
 
@@ -1098,11 +1098,11 @@ export class DocumentId {
1098
1098
  /**
1099
1099
  * @returns {string}
1100
1100
  */
1101
- fromString() {
1101
+ toString() {
1102
1102
  let deferred1_0;
1103
1103
  let deferred1_1;
1104
1104
  try {
1105
- const ret = wasm.documentid_fromString(this.__wbg_ptr);
1105
+ const ret = wasm.documentid_toString(this.__wbg_ptr);
1106
1106
  deferred1_0 = ret[0];
1107
1107
  deferred1_1 = ret[1];
1108
1108
  return getStringFromWasm0(ret[0], ret[1]);
@@ -3446,7 +3446,7 @@ function __wbg_get_imports() {
3446
3446
  };
3447
3447
  imports.wbg.__wbindgen_cast_a788a31e51647739 = function(arg0, arg1) {
3448
3448
  // Cast intrinsic for `Closure(Closure { dtor_idx: 428, function: Function { arguments: [Externref], shim_idx: 429, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3449
- const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_6);
3449
+ const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_8);
3450
3450
  return ret;
3451
3451
  };
3452
3452
  imports.wbg.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
Binary file