zkjson 0.1.28 → 0.1.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +1 -2
  2. package/nft.js +1 -3
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  const encoder = require("./encoder")
2
2
  const DB = require("./db")
3
3
  const Doc = require("./doc")
4
- const NFT = require("/.nft")
5
4
  const Collection = require("./collection")
6
-
5
+ const NFT = require("./nft")
7
6
  module.exports = { ...encoder, DB, Collection, Doc, NFT }
package/nft.js CHANGED
@@ -71,7 +71,7 @@ function toCID(source) {
71
71
  return str
72
72
  }
73
73
 
74
- class NFT {
74
+ module.exports = class NFT {
75
75
  constructor({
76
76
  size_val = 5,
77
77
  size_path = 5,
@@ -127,5 +127,3 @@ class NFT {
127
127
  return toCID(new Uint8Array([18, hash.length, ...Array.from(hash)]))
128
128
  }
129
129
  }
130
-
131
- module.exports = NFT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zkjson",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "Zero Knowledge Provable JSON",
5
5
  "main": "index.js",
6
6
  "license": "MIT",