zkjson 0.2.1 → 0.2.2

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/collection.js CHANGED
@@ -3,7 +3,12 @@ const { pad, toSignal, id2str, encode, toIndex } = require("./encoder")
3
3
  const Doc = require("./doc")
4
4
 
5
5
  class Collection {
6
- constructor({ size_val = 256, size_path = 5, size_json = 256, level = 254 }) {
6
+ constructor({
7
+ size_val = 256,
8
+ size_path = 256,
9
+ size_json = 256,
10
+ level = 254,
11
+ }) {
7
12
  this.size_val = size_val
8
13
  this.size_path = size_path
9
14
  this.size_json = size_json
package/db.js CHANGED
@@ -7,7 +7,7 @@ const Collection = require("./collection")
7
7
  class DB {
8
8
  constructor({
9
9
  size_val = 256,
10
- size_path = 5,
10
+ size_path = 256,
11
11
  level = 254,
12
12
  size_json = 256,
13
13
  size_txs = 1000,
package/doc.js CHANGED
@@ -11,7 +11,13 @@ const {
11
11
  } = require("./encoder")
12
12
 
13
13
  module.exports = class Doc {
14
- constructor({ size_val = 256, size_path = 5, size_json = 256, wasm, zkey }) {
14
+ constructor({
15
+ size_val = 256,
16
+ size_path = 256,
17
+ size_json = 256,
18
+ wasm,
19
+ zkey,
20
+ }) {
15
21
  this.size_val = size_val
16
22
  this.size_path = size_path
17
23
  this.size_json = size_json
package/json.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const { pad, toSignal, encode, encodePath, encodeVal } = require("./encoder")
2
2
 
3
3
  module.exports = class Json {
4
- constructor({ size_val = 256, size_path = 5, size_json = 256 }) {
4
+ constructor({ size_val = 256, size_path = 256, size_json = 256 }) {
5
5
  this.size_val = size_val
6
6
  this.size_path = size_path
7
7
  this.size_json = size_json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zkjson",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Zero Knowledge Provable JSON",
5
5
  "main": "index.js",
6
6
  "license": "MIT",