@semaphore-protocol/group 4.0.0-beta.7 → 4.0.0-beta.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/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/group
3
- * @version 4.0.0-beta.7
3
+ * @version 4.0.0-beta.8
4
4
  * @file A library to create and manage Semaphore groups.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -234,9 +234,9 @@ class Group {
234
234
  * @param nodes The stringified JSON of the group.
235
235
  * @returns The {@link Group} instance.
236
236
  */
237
- static import(exportedGroup) {
237
+ static import(nodes) {
238
238
  const group = new Group();
239
- group.leanIMT.import(exportedGroup);
239
+ group.leanIMT.import(nodes);
240
240
  return group;
241
241
  }
242
242
  }
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/group
3
- * @version 4.0.0-beta.7
3
+ * @version 4.0.0-beta.8
4
4
  * @file A library to create and manage Semaphore groups.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -232,9 +232,9 @@ class Group {
232
232
  * @param nodes The stringified JSON of the group.
233
233
  * @returns The {@link Group} instance.
234
234
  */
235
- static import(exportedGroup) {
235
+ static import(nodes) {
236
236
  const group = new Group();
237
- group.leanIMT.import(exportedGroup);
237
+ group.leanIMT.import(nodes);
238
238
  return group;
239
239
  }
240
240
  }
@@ -86,6 +86,6 @@ export declare class Group {
86
86
  * @param nodes The stringified JSON of the group.
87
87
  * @returns The {@link Group} instance.
88
88
  */
89
- static import(exportedGroup: string): Group;
89
+ static import(nodes: string): Group;
90
90
  }
91
91
  export { LeanIMTMerkleProof as MerkleProof };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/group",
3
- "version": "4.0.0-beta.7",
3
+ "version": "4.0.0-beta.8",
4
4
  "description": "A library to create and manage Semaphore groups.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -144,10 +144,10 @@ export class Group {
144
144
  * @param nodes The stringified JSON of the group.
145
145
  * @returns The {@link Group} instance.
146
146
  */
147
- static import(exportedGroup: string): Group {
147
+ static import(nodes: string): Group {
148
148
  const group = new Group()
149
149
 
150
- group.leanIMT.import(exportedGroup)
150
+ group.leanIMT.import(nodes)
151
151
 
152
152
  return group
153
153
  }