zkjson 0.1.27 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -2
- package/nft.js +1 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -2,5 +2,5 @@ const encoder = require("./encoder")
|
|
2
2
|
const DB = require("./db")
|
3
3
|
const Doc = require("./doc")
|
4
4
|
const Collection = require("./collection")
|
5
|
-
|
6
|
-
module.exports = { ...encoder, DB, Collection, Doc }
|
5
|
+
const NFT = require("./nft")
|
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
|