Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 16
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J 16
22_23-J 16
Commits
eab73446
Commit
eab73446
authored
Jan 16, 2023
by
Kiridena I.T.K_IT19981840
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'user-NFT-creation-endpoint-initiate' into 'master'
PDF creation completed - nft endpoint See merge request
!13
parents
61032c9c
8c44ee8b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1310 additions
and
20 deletions
+1310
-20
ExpressBackend/package-lock.json
ExpressBackend/package-lock.json
+1010
-20
ExpressBackend/package.json
ExpressBackend/package.json
+2
-0
ExpressBackend/route/patient-routes/mental-state-router.js
ExpressBackend/route/patient-routes/mental-state-router.js
+1
-0
ExpressBackend/route/patient-routes/nft-route.js
ExpressBackend/route/patient-routes/nft-route.js
+294
-0
ExpressBackend/server.js
ExpressBackend/server.js
+3
-0
No files found.
ExpressBackend/package-lock.json
View file @
eab73446
...
...
@@ -9,10 +9,12 @@
"version"
:
"1.0.0"
,
"license"
:
"ISC"
,
"dependencies"
:
{
"axios"
:
"^1.2.2"
,
"cors"
:
"^2.8.5"
,
"crypto-js"
:
"^4.1.1"
,
"express"
:
"^4.18.2"
,
"mongoose"
:
"^6.8.0"
,
"node-htmlpdf"
:
"^1.0.4"
,
"stellar-sdk"
:
"^10.4.1"
},
"devDependencies"
:
{
...
...
@@ -1219,6 +1221,15 @@
"@types/webidl-conversions"
:
"*"
}
},
"node_modules/@types/yauzl"
:
{
"version"
:
"2.10.0"
,
"resolved"
:
"https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz"
,
"integrity"
:
"sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw=="
,
"optional"
:
true
,
"dependencies"
:
{
"@types/node"
:
"*"
}
},
"node_modules/abbrev"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz"
,
...
...
@@ -1237,6 +1248,14 @@
"node"
:
">= 0.6"
}
},
"node_modules/agent-base"
:
{
"version"
:
"5.1.1"
,
"resolved"
:
"https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz"
,
"integrity"
:
"sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g=="
,
"engines"
:
{
"node"
:
">= 6.0.0"
}
},
"node_modules/anymatch"
:
{
"version"
:
"3.1.3"
,
"resolved"
:
"https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz"
,
...
...
@@ -1255,19 +1274,25 @@
"resolved"
:
"https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz"
,
"integrity"
:
"sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
},
"node_modules/asynckit"
:
{
"version"
:
"0.4.0"
,
"resolved"
:
"https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz"
,
"integrity"
:
"sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"node_modules/axios"
:
{
"version"
:
"
0.25.0
"
,
"resolved"
:
"https://registry.npmjs.org/axios/-/axios-
0.25.0
.tgz"
,
"integrity"
:
"sha512-
cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g
=="
,
"version"
:
"
1.2.2
"
,
"resolved"
:
"https://registry.npmjs.org/axios/-/axios-
1.2.2
.tgz"
,
"integrity"
:
"sha512-
bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q
=="
,
"dependencies"
:
{
"follow-redirects"
:
"^1.14.7"
"follow-redirects"
:
"^1.15.0"
,
"form-data"
:
"^4.0.0"
,
"proxy-from-env"
:
"^1.1.0"
}
},
"node_modules/balanced-match"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz"
,
"integrity"
:
"sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
,
"dev"
:
true
"integrity"
:
"sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
},
"node_modules/base32.js"
:
{
"version"
:
"0.1.0"
,
...
...
@@ -1313,6 +1338,16 @@
"node"
:
">=8"
}
},
"node_modules/bl"
:
{
"version"
:
"4.1.0"
,
"resolved"
:
"https://registry.npmjs.org/bl/-/bl-4.1.0.tgz"
,
"integrity"
:
"sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w=="
,
"dependencies"
:
{
"buffer"
:
"^5.5.0"
,
"inherits"
:
"^2.0.4"
,
"readable-stream"
:
"^3.4.0"
}
},
"node_modules/body-parser"
:
{
"version"
:
"1.20.1"
,
"resolved"
:
"https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz"
,
...
...
@@ -1346,7 +1381,6 @@
"version"
:
"1.1.11"
,
"resolved"
:
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz"
,
"integrity"
:
"sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA=="
,
"dev"
:
true
,
"dependencies"
:
{
"balanced-match"
:
"^1.0.0"
,
"concat-map"
:
"0.0.1"
...
...
@@ -1398,6 +1432,14 @@
"ieee754"
:
"^1.1.13"
}
},
"node_modules/buffer-crc32"
:
{
"version"
:
"0.2.13"
,
"resolved"
:
"https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz"
,
"integrity"
:
"sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ=="
,
"engines"
:
{
"node"
:
"*"
}
},
"node_modules/bytes"
:
{
"version"
:
"3.1.2"
,
"resolved"
:
"https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz"
,
...
...
@@ -1445,11 +1487,26 @@
"fsevents"
:
"~2.3.2"
}
},
"node_modules/chownr"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz"
,
"integrity"
:
"sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
},
"node_modules/combined-stream"
:
{
"version"
:
"1.0.8"
,
"resolved"
:
"https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz"
,
"integrity"
:
"sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg=="
,
"dependencies"
:
{
"delayed-stream"
:
"~1.0.0"
},
"engines"
:
{
"node"
:
">= 0.8"
}
},
"node_modules/concat-map"
:
{
"version"
:
"0.0.1"
,
"resolved"
:
"https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
,
"integrity"
:
"sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
,
"dev"
:
true
"integrity"
:
"sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
},
"node_modules/content-disposition"
:
{
"version"
:
"0.5.4"
,
...
...
@@ -1516,6 +1573,14 @@
"ms"
:
"2.0.0"
}
},
"node_modules/delayed-stream"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz"
,
"integrity"
:
"sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
,
"engines"
:
{
"node"
:
">=0.4.0"
}
},
"node_modules/depd"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/depd/-/depd-2.0.0.tgz"
,
...
...
@@ -1538,6 +1603,11 @@
"resolved"
:
"https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz"
,
"integrity"
:
"sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g=="
},
"node_modules/devtools-protocol"
:
{
"version"
:
"0.0.818844"
,
"resolved"
:
"https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.818844.tgz"
,
"integrity"
:
"sha512-AD1hi7iVJ8OD0aMLQU5VK0XH9LDlA1+BcPIgrAxPfaibx2DbWucuyOhc4oyQCbnvDDO68nN6/LcKfqTP343Jjg=="
},
"node_modules/dotenv"
:
{
"version"
:
"16.0.3"
,
"resolved"
:
"https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz"
,
...
...
@@ -1560,6 +1630,14 @@
"node"
:
">= 0.8"
}
},
"node_modules/end-of-stream"
:
{
"version"
:
"1.4.4"
,
"resolved"
:
"https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz"
,
"integrity"
:
"sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q=="
,
"dependencies"
:
{
"once"
:
"^1.4.0"
}
},
"node_modules/es6-promise"
:
{
"version"
:
"4.2.8"
,
"resolved"
:
"https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz"
,
...
...
@@ -1627,6 +1705,46 @@
"node"
:
">= 0.10.0"
}
},
"node_modules/extract-zip"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz"
,
"integrity"
:
"sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg=="
,
"dependencies"
:
{
"debug"
:
"^4.1.1"
,
"get-stream"
:
"^5.1.0"
,
"yauzl"
:
"^2.10.0"
},
"bin"
:
{
"extract-zip"
:
"cli.js"
},
"engines"
:
{
"node"
:
">= 10.17.0"
},
"optionalDependencies"
:
{
"@types/yauzl"
:
"^2.9.1"
}
},
"node_modules/extract-zip/node_modules/debug"
:
{
"version"
:
"4.3.4"
,
"resolved"
:
"https://registry.npmjs.org/debug/-/debug-4.3.4.tgz"
,
"integrity"
:
"sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ=="
,
"dependencies"
:
{
"ms"
:
"2.1.2"
},
"engines"
:
{
"node"
:
">=6.0"
},
"peerDependenciesMeta"
:
{
"supports-color"
:
{
"optional"
:
true
}
}
},
"node_modules/extract-zip/node_modules/ms"
:
{
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
},
"node_modules/fast-xml-parser"
:
{
"version"
:
"4.0.11"
,
"resolved"
:
"https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.0.11.tgz"
,
...
...
@@ -1643,6 +1761,14 @@
"url"
:
"https://paypal.me/naturalintelligence"
}
},
"node_modules/fd-slicer"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz"
,
"integrity"
:
"sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g=="
,
"dependencies"
:
{
"pend"
:
"~1.2.0"
}
},
"node_modules/fill-range"
:
{
"version"
:
"7.0.1"
,
"resolved"
:
"https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"
,
...
...
@@ -1672,6 +1798,18 @@
"node"
:
">= 0.8"
}
},
"node_modules/find-up"
:
{
"version"
:
"4.1.0"
,
"resolved"
:
"https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz"
,
"integrity"
:
"sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="
,
"dependencies"
:
{
"locate-path"
:
"^5.0.0"
,
"path-exists"
:
"^4.0.0"
},
"engines"
:
{
"node"
:
">=8"
}
},
"node_modules/follow-redirects"
:
{
"version"
:
"1.15.2"
,
"resolved"
:
"https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz"
,
...
...
@@ -1691,6 +1829,19 @@
}
}
},
"node_modules/form-data"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz"
,
"integrity"
:
"sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww=="
,
"dependencies"
:
{
"asynckit"
:
"^0.4.0"
,
"combined-stream"
:
"^1.0.8"
,
"mime-types"
:
"^2.1.12"
},
"engines"
:
{
"node"
:
">= 6"
}
},
"node_modules/forwarded"
:
{
"version"
:
"0.2.0"
,
"resolved"
:
"https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz"
,
...
...
@@ -1707,6 +1858,16 @@
"node"
:
">= 0.6"
}
},
"node_modules/fs-constants"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz"
,
"integrity"
:
"sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="
},
"node_modules/fs.realpath"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
,
"integrity"
:
"sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
},
"node_modules/fsevents"
:
{
"version"
:
"2.3.2"
,
"resolved"
:
"https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
,
...
...
@@ -1739,6 +1900,39 @@
"url"
:
"https://github.com/sponsors/ljharb"
}
},
"node_modules/get-stream"
:
{
"version"
:
"5.2.0"
,
"resolved"
:
"https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz"
,
"integrity"
:
"sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA=="
,
"dependencies"
:
{
"pump"
:
"^3.0.0"
},
"engines"
:
{
"node"
:
">=8"
},
"funding"
:
{
"url"
:
"https://github.com/sponsors/sindresorhus"
}
},
"node_modules/glob"
:
{
"version"
:
"7.2.3"
,
"resolved"
:
"https://registry.npmjs.org/glob/-/glob-7.2.3.tgz"
,
"integrity"
:
"sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="
,
"dependencies"
:
{
"fs.realpath"
:
"^1.0.0"
,
"inflight"
:
"^1.0.4"
,
"inherits"
:
"2"
,
"minimatch"
:
"^3.1.1"
,
"once"
:
"^1.3.0"
,
"path-is-absolute"
:
"^1.0.0"
},
"engines"
:
{
"node"
:
"*"
},
"funding"
:
{
"url"
:
"https://github.com/sponsors/isaacs"
}
},
"node_modules/glob-parent"
:
{
"version"
:
"5.1.2"
,
"resolved"
:
"https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
,
...
...
@@ -1797,6 +1991,39 @@
"node"
:
">= 0.8"
}
},
"node_modules/https-proxy-agent"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz"
,
"integrity"
:
"sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg=="
,
"dependencies"
:
{
"agent-base"
:
"5"
,
"debug"
:
"4"
},
"engines"
:
{
"node"
:
">= 6.0.0"
}
},
"node_modules/https-proxy-agent/node_modules/debug"
:
{
"version"
:
"4.3.4"
,
"resolved"
:
"https://registry.npmjs.org/debug/-/debug-4.3.4.tgz"
,
"integrity"
:
"sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ=="
,
"dependencies"
:
{
"ms"
:
"2.1.2"
},
"engines"
:
{
"node"
:
">=6.0"
},
"peerDependenciesMeta"
:
{
"supports-color"
:
{
"optional"
:
true
}
}
},
"node_modules/https-proxy-agent/node_modules/ms"
:
{
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
},
"node_modules/iconv-lite"
:
{
"version"
:
"0.4.24"
,
"resolved"
:
"https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz"
,
...
...
@@ -1833,6 +2060,15 @@
"integrity"
:
"sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA=="
,
"dev"
:
true
},
"node_modules/inflight"
:
{
"version"
:
"1.0.6"
,
"resolved"
:
"https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz"
,
"integrity"
:
"sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA=="
,
"dependencies"
:
{
"once"
:
"^1.3.0"
,
"wrappy"
:
"1"
}
},
"node_modules/inherits"
:
{
"version"
:
"2.0.4"
,
"resolved"
:
"https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
,
...
...
@@ -1910,6 +2146,17 @@
"node"
:
">=12.0.0"
}
},
"node_modules/locate-path"
:
{
"version"
:
"5.0.0"
,
"resolved"
:
"https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz"
,
"integrity"
:
"sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="
,
"dependencies"
:
{
"p-locate"
:
"^4.1.0"
},
"engines"
:
{
"node"
:
">=8"
}
},
"node_modules/lodash"
:
{
"version"
:
"4.17.21"
,
"resolved"
:
"https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
,
...
...
@@ -1984,7 +2231,6 @@
"version"
:
"3.1.2"
,
"resolved"
:
"https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz"
,
"integrity"
:
"sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="
,
"dev"
:
true
,
"dependencies"
:
{
"brace-expansion"
:
"^1.1.7"
},
...
...
@@ -1992,6 +2238,11 @@
"node"
:
"*"
}
},
"node_modules/mkdirp-classic"
:
{
"version"
:
"0.5.3"
,
"resolved"
:
"https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz"
,
"integrity"
:
"sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="
},
"node_modules/mongodb"
:
{
"version"
:
"4.12.1"
,
"resolved"
:
"https://registry.npmjs.org/mongodb/-/mongodb-4.12.1.tgz"
,
...
...
@@ -2097,6 +2348,44 @@
"node"
:
">= 0.6"
}
},
"node_modules/node-fetch"
:
{
"version"
:
"2.6.8"
,
"resolved"
:
"https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.8.tgz"
,
"integrity"
:
"sha512-RZ6dBYuj8dRSfxpUSu+NsdF1dpPpluJxwOp+6IoDp/sH2QNDSvurYsAa+F1WxY2RjA1iP93xhcsUoYbF2XBqVg=="
,
"dependencies"
:
{
"whatwg-url"
:
"^5.0.0"
},
"engines"
:
{
"node"
:
"4.x || >=6.0.0"
},
"peerDependencies"
:
{
"encoding"
:
"^0.1.0"
},
"peerDependenciesMeta"
:
{
"encoding"
:
{
"optional"
:
true
}
}
},
"node_modules/node-fetch/node_modules/tr46"
:
{
"version"
:
"0.0.3"
,
"resolved"
:
"https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz"
,
"integrity"
:
"sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
},
"node_modules/node-fetch/node_modules/webidl-conversions"
:
{
"version"
:
"3.0.1"
,
"resolved"
:
"https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz"
,
"integrity"
:
"sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
},
"node_modules/node-fetch/node_modules/whatwg-url"
:
{
"version"
:
"5.0.0"
,
"resolved"
:
"https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz"
,
"integrity"
:
"sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="
,
"dependencies"
:
{
"tr46"
:
"~0.0.3"
,
"webidl-conversions"
:
"^3.0.0"
}
},
"node_modules/node-gyp-build"
:
{
"version"
:
"4.5.0"
,
"resolved"
:
"https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz"
,
...
...
@@ -2108,6 +2397,14 @@
"node-gyp-build-test"
:
"build-test.js"
}
},
"node_modules/node-htmlpdf"
:
{
"version"
:
"1.0.4"
,
"resolved"
:
"https://registry.npmjs.org/node-htmlpdf/-/node-htmlpdf-1.0.4.tgz"
,
"integrity"
:
"sha512-HeYswD/hcRUrZhQj02SYO1n4tTQ/YiaH2XQkCpS9/MqO8n1+s2nqjQfrlcPqqp9OL4ZrGB0Zym3EMTUFeKTlVw=="
,
"dependencies"
:
{
"puppeteer"
:
"^5.2.1"
}
},
"node_modules/nodemon"
:
{
"version"
:
"2.0.20"
,
"resolved"
:
"https://registry.npmjs.org/nodemon/-/nodemon-2.0.20.tgz"
,
...
...
@@ -2202,6 +2499,47 @@
"node"
:
">= 0.8"
}
},
"node_modules/once"
:
{
"version"
:
"1.4.0"
,
"resolved"
:
"https://registry.npmjs.org/once/-/once-1.4.0.tgz"
,
"integrity"
:
"sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w=="
,
"dependencies"
:
{
"wrappy"
:
"1"
}
},
"node_modules/p-limit"
:
{
"version"
:
"2.3.0"
,
"resolved"
:
"https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz"
,
"integrity"
:
"sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="
,
"dependencies"
:
{
"p-try"
:
"^2.0.0"
},
"engines"
:
{
"node"
:
">=6"
},
"funding"
:
{
"url"
:
"https://github.com/sponsors/sindresorhus"
}
},
"node_modules/p-locate"
:
{
"version"
:
"4.1.0"
,
"resolved"
:
"https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz"
,
"integrity"
:
"sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="
,
"dependencies"
:
{
"p-limit"
:
"^2.2.0"
},
"engines"
:
{
"node"
:
">=8"
}
},
"node_modules/p-try"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz"
,
"integrity"
:
"sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="
,
"engines"
:
{
"node"
:
">=6"
}
},
"node_modules/parseurl"
:
{
"version"
:
"1.3.3"
,
"resolved"
:
"https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz"
,
...
...
@@ -2210,11 +2548,32 @@
"node"
:
">= 0.8"
}
},
"node_modules/path-exists"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz"
,
"integrity"
:
"sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="
,
"engines"
:
{
"node"
:
">=8"
}
},
"node_modules/path-is-absolute"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz"
,
"integrity"
:
"sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg=="
,
"engines"
:
{
"node"
:
">=0.10.0"
}
},
"node_modules/path-to-regexp"
:
{
"version"
:
"0.1.7"
,
"resolved"
:
"https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz"
,
"integrity"
:
"sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
},
"node_modules/pend"
:
{
"version"
:
"1.2.0"
,
"resolved"
:
"https://registry.npmjs.org/pend/-/pend-1.2.0.tgz"
,
"integrity"
:
"sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg=="
},
"node_modules/picomatch"
:
{
"version"
:
"2.3.1"
,
"resolved"
:
"https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz"
,
...
...
@@ -2227,6 +2586,25 @@
"url"
:
"https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/pkg-dir"
:
{
"version"
:
"4.2.0"
,
"resolved"
:
"https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz"
,
"integrity"
:
"sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ=="
,
"dependencies"
:
{
"find-up"
:
"^4.0.0"
},
"engines"
:
{
"node"
:
">=8"
}
},
"node_modules/progress"
:
{
"version"
:
"2.0.3"
,
"resolved"
:
"https://registry.npmjs.org/progress/-/progress-2.0.3.tgz"
,
"integrity"
:
"sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA=="
,
"engines"
:
{
"node"
:
">=0.4.0"
}
},
"node_modules/proxy-addr"
:
{
"version"
:
"2.0.7"
,
"resolved"
:
"https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz"
,
...
...
@@ -2239,12 +2617,26 @@
"node"
:
">= 0.10"
}
},
"node_modules/proxy-from-env"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz"
,
"integrity"
:
"sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
},
"node_modules/pstree.remy"
:
{
"version"
:
"1.1.8"
,
"resolved"
:
"https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz"
,
"integrity"
:
"sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w=="
,
"dev"
:
true
},
"node_modules/pump"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/pump/-/pump-3.0.0.tgz"
,
"integrity"
:
"sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww=="
,
"dependencies"
:
{
"end-of-stream"
:
"^1.1.0"
,
"once"
:
"^1.3.1"
}
},
"node_modules/punycode"
:
{
"version"
:
"2.1.1"
,
"resolved"
:
"https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz"
,
...
...
@@ -2253,6 +2645,51 @@
"node"
:
">=6"
}
},
"node_modules/puppeteer"
:
{
"version"
:
"5.5.0"
,
"resolved"
:
"https://registry.npmjs.org/puppeteer/-/puppeteer-5.5.0.tgz"
,
"integrity"
:
"sha512-OM8ZvTXAhfgFA7wBIIGlPQzvyEETzDjeRa4mZRCRHxYL+GNH5WAuYUQdja3rpWZvkX/JKqmuVgbsxDNsDFjMEg=="
,
"deprecated"
:
"< 18.1.0 is no longer supported"
,
"hasInstallScript"
:
true
,
"dependencies"
:
{
"debug"
:
"^4.1.0"
,
"devtools-protocol"
:
"0.0.818844"
,
"extract-zip"
:
"^2.0.0"
,
"https-proxy-agent"
:
"^4.0.0"
,
"node-fetch"
:
"^2.6.1"
,
"pkg-dir"
:
"^4.2.0"
,
"progress"
:
"^2.0.1"
,
"proxy-from-env"
:
"^1.0.0"
,
"rimraf"
:
"^3.0.2"
,
"tar-fs"
:
"^2.0.0"
,
"unbzip2-stream"
:
"^1.3.3"
,
"ws"
:
"^7.2.3"
},
"engines"
:
{
"node"
:
">=10.18.1"
}
},
"node_modules/puppeteer/node_modules/debug"
:
{
"version"
:
"4.3.4"
,
"resolved"
:
"https://registry.npmjs.org/debug/-/debug-4.3.4.tgz"
,
"integrity"
:
"sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ=="
,
"dependencies"
:
{
"ms"
:
"2.1.2"
},
"engines"
:
{
"node"
:
">=6.0"
},
"peerDependenciesMeta"
:
{
"supports-color"
:
{
"optional"
:
true
}
}
},
"node_modules/puppeteer/node_modules/ms"
:
{
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
},
"node_modules/qs"
:
{
"version"
:
"6.11.0"
,
"resolved"
:
"https://registry.npmjs.org/qs/-/qs-6.11.0.tgz"
,
...
...
@@ -2297,6 +2734,19 @@
"node"
:
">= 0.8"
}
},
"node_modules/readable-stream"
:
{
"version"
:
"3.6.0"
,
"resolved"
:
"https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz"
,
"integrity"
:
"sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA=="
,
"dependencies"
:
{
"inherits"
:
"^2.0.3"
,
"string_decoder"
:
"^1.1.1"
,
"util-deprecate"
:
"^1.0.1"
},
"engines"
:
{
"node"
:
">= 6"
}
},
"node_modules/readdirp"
:
{
"version"
:
"3.6.0"
,
"resolved"
:
"https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz"
,
...
...
@@ -2309,6 +2759,20 @@
"node"
:
">=8.10.0"
}
},
"node_modules/rimraf"
:
{
"version"
:
"3.0.2"
,
"resolved"
:
"https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz"
,
"integrity"
:
"sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA=="
,
"dependencies"
:
{
"glob"
:
"^7.1.3"
},
"bin"
:
{
"rimraf"
:
"bin.js"
},
"funding"
:
{
"url"
:
"https://github.com/sponsors/isaacs"
}
},
"node_modules/safe-buffer"
:
{
"version"
:
"5.2.1"
,
"resolved"
:
"https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz"
,
...
...
@@ -2541,11 +3005,27 @@
"utility-types"
:
"^3.7.0"
}
},
"node_modules/stellar-sdk/node_modules/axios"
:
{
"version"
:
"0.25.0"
,
"resolved"
:
"https://registry.npmjs.org/axios/-/axios-0.25.0.tgz"
,
"integrity"
:
"sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g=="
,
"dependencies"
:
{
"follow-redirects"
:
"^1.14.7"
}
},
"node_modules/stellar-sdk/node_modules/tslib"
:
{
"version"
:
"1.14.1"
,
"resolved"
:
"https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz"
,
"integrity"
:
"sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
},
"node_modules/string_decoder"
:
{
"version"
:
"1.3.0"
,
"resolved"
:
"https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz"
,
"integrity"
:
"sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="
,
"dependencies"
:
{
"safe-buffer"
:
"~5.2.0"
}
},
"node_modules/strnum"
:
{
"version"
:
"1.0.5"
,
"resolved"
:
"https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz"
,
...
...
@@ -2564,6 +3044,37 @@
"node"
:
">=4"
}
},
"node_modules/tar-fs"
:
{
"version"
:
"2.1.1"
,
"resolved"
:
"https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz"
,
"integrity"
:
"sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng=="
,
"dependencies"
:
{
"chownr"
:
"^1.1.1"
,
"mkdirp-classic"
:
"^0.5.2"
,
"pump"
:
"^3.0.0"
,
"tar-stream"
:
"^2.1.4"
}
},
"node_modules/tar-stream"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz"
,
"integrity"
:
"sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ=="
,
"dependencies"
:
{
"bl"
:
"^4.0.3"
,
"end-of-stream"
:
"^1.4.1"
,
"fs-constants"
:
"^1.0.0"
,
"inherits"
:
"^2.0.3"
,
"readable-stream"
:
"^3.1.1"
},
"engines"
:
{
"node"
:
">=6"
}
},
"node_modules/through"
:
{
"version"
:
"2.3.8"
,
"resolved"
:
"https://registry.npmjs.org/through/-/through-2.3.8.tgz"
,
"integrity"
:
"sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg=="
},
"node_modules/to-regex-range"
:
{
"version"
:
"5.0.1"
,
"resolved"
:
"https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz"
,
...
...
@@ -2635,6 +3146,15 @@
"node"
:
">= 0.6"
}
},
"node_modules/unbzip2-stream"
:
{
"version"
:
"1.4.3"
,
"resolved"
:
"https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz"
,
"integrity"
:
"sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg=="
,
"dependencies"
:
{
"buffer"
:
"^5.2.1"
,
"through"
:
"^2.3.8"
}
},
"node_modules/undefsafe"
:
{
"version"
:
"2.0.5"
,
"resolved"
:
"https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz"
,
...
...
@@ -2654,6 +3174,11 @@
"resolved"
:
"https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz"
,
"integrity"
:
"sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ=="
},
"node_modules/util-deprecate"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
,
"integrity"
:
"sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
},
"node_modules/utility-types"
:
{
"version"
:
"3.10.0"
,
"resolved"
:
"https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz"
,
...
...
@@ -2706,6 +3231,40 @@
"engines"
:
{
"node"
:
">=12"
}
},
"node_modules/wrappy"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
,
"integrity"
:
"sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
},
"node_modules/ws"
:
{
"version"
:
"7.5.9"
,
"resolved"
:
"https://registry.npmjs.org/ws/-/ws-7.5.9.tgz"
,
"integrity"
:
"sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q=="
,
"engines"
:
{
"node"
:
">=8.3.0"
},
"peerDependencies"
:
{
"bufferutil"
:
"^4.0.1"
,
"utf-8-validate"
:
"^5.0.2"
},
"peerDependenciesMeta"
:
{
"bufferutil"
:
{
"optional"
:
true
},
"utf-8-validate"
:
{
"optional"
:
true
}
}
},
"node_modules/yauzl"
:
{
"version"
:
"2.10.0"
,
"resolved"
:
"https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz"
,
"integrity"
:
"sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g=="
,
"dependencies"
:
{
"buffer-crc32"
:
"~0.2.3"
,
"fd-slicer"
:
"~1.1.0"
}
}
},
"dependencies"
:
{
...
...
@@ -3744,6 +4303,15 @@
"@types/webidl-conversions"
:
"*"
}
},
"@types/yauzl"
:
{
"version"
:
"2.10.0"
,
"resolved"
:
"https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz"
,
"integrity"
:
"sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw=="
,
"optional"
:
true
,
"requires"
:
{
"@types/node"
:
"*"
}
},
"abbrev"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz"
,
...
...
@@ -3759,6 +4327,11 @@
"negotiator"
:
"0.6.3"
}
},
"agent-base"
:
{
"version"
:
"5.1.1"
,
"resolved"
:
"https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz"
,
"integrity"
:
"sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g=="
},
"anymatch"
:
{
"version"
:
"3.1.3"
,
"resolved"
:
"https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz"
,
...
...
@@ -3774,19 +4347,25 @@
"resolved"
:
"https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz"
,
"integrity"
:
"sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
},
"asynckit"
:
{
"version"
:
"0.4.0"
,
"resolved"
:
"https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz"
,
"integrity"
:
"sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"axios"
:
{
"version"
:
"
0.25.0
"
,
"resolved"
:
"https://registry.npmjs.org/axios/-/axios-
0.25.0
.tgz"
,
"integrity"
:
"sha512-
cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g
=="
,
"version"
:
"
1.2.2
"
,
"resolved"
:
"https://registry.npmjs.org/axios/-/axios-
1.2.2
.tgz"
,
"integrity"
:
"sha512-
bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q
=="
,
"requires"
:
{
"follow-redirects"
:
"^1.14.7"
"follow-redirects"
:
"^1.15.0"
,
"form-data"
:
"^4.0.0"
,
"proxy-from-env"
:
"^1.1.0"
}
},
"balanced-match"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz"
,
"integrity"
:
"sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
,
"dev"
:
true
"integrity"
:
"sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
},
"base32.js"
:
{
"version"
:
"0.1.0"
,
...
...
@@ -3809,6 +4388,16 @@
"integrity"
:
"sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA=="
,
"dev"
:
true
},
"bl"
:
{
"version"
:
"4.1.0"
,
"resolved"
:
"https://registry.npmjs.org/bl/-/bl-4.1.0.tgz"
,
"integrity"
:
"sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w=="
,
"requires"
:
{
"buffer"
:
"^5.5.0"
,
"inherits"
:
"^2.0.4"
,
"readable-stream"
:
"^3.4.0"
}
},
"body-parser"
:
{
"version"
:
"1.20.1"
,
"resolved"
:
"https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz"
,
...
...
@@ -3838,7 +4427,6 @@
"version"
:
"1.1.11"
,
"resolved"
:
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz"
,
"integrity"
:
"sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA=="
,
"dev"
:
true
,
"requires"
:
{
"balanced-match"
:
"^1.0.0"
,
"concat-map"
:
"0.0.1"
...
...
@@ -3870,6 +4458,11 @@
"ieee754"
:
"^1.1.13"
}
},
"buffer-crc32"
:
{
"version"
:
"0.2.13"
,
"resolved"
:
"https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz"
,
"integrity"
:
"sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ=="
},
"bytes"
:
{
"version"
:
"3.1.2"
,
"resolved"
:
"https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz"
,
...
...
@@ -3900,11 +4493,23 @@
"readdirp"
:
"~3.6.0"
}
},
"chownr"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz"
,
"integrity"
:
"sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
},
"combined-stream"
:
{
"version"
:
"1.0.8"
,
"resolved"
:
"https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz"
,
"integrity"
:
"sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg=="
,
"requires"
:
{
"delayed-stream"
:
"~1.0.0"
}
},
"concat-map"
:
{
"version"
:
"0.0.1"
,
"resolved"
:
"https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
,
"integrity"
:
"sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
,
"dev"
:
true
"integrity"
:
"sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
},
"content-disposition"
:
{
"version"
:
"0.5.4"
,
...
...
@@ -3959,6 +4564,11 @@
"ms"
:
"2.0.0"
}
},
"delayed-stream"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz"
,
"integrity"
:
"sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
},
"depd"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/depd/-/depd-2.0.0.tgz"
,
...
...
@@ -3974,6 +4584,11 @@
"resolved"
:
"https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz"
,
"integrity"
:
"sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g=="
},
"devtools-protocol"
:
{
"version"
:
"0.0.818844"
,
"resolved"
:
"https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.818844.tgz"
,
"integrity"
:
"sha512-AD1hi7iVJ8OD0aMLQU5VK0XH9LDlA1+BcPIgrAxPfaibx2DbWucuyOhc4oyQCbnvDDO68nN6/LcKfqTP343Jjg=="
},
"dotenv"
:
{
"version"
:
"16.0.3"
,
"resolved"
:
"https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz"
,
...
...
@@ -3990,6 +4605,14 @@
"resolved"
:
"https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz"
,
"integrity"
:
"sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w=="
},
"end-of-stream"
:
{
"version"
:
"1.4.4"
,
"resolved"
:
"https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz"
,
"integrity"
:
"sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q=="
,
"requires"
:
{
"once"
:
"^1.4.0"
}
},
"es6-promise"
:
{
"version"
:
"4.2.8"
,
"resolved"
:
"https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz"
,
...
...
@@ -4048,6 +4671,32 @@
"vary"
:
"~1.1.2"
}
},
"extract-zip"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz"
,
"integrity"
:
"sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg=="
,
"requires"
:
{
"@types/yauzl"
:
"^2.9.1"
,
"debug"
:
"^4.1.1"
,
"get-stream"
:
"^5.1.0"
,
"yauzl"
:
"^2.10.0"
},
"dependencies"
:
{
"debug"
:
{
"version"
:
"4.3.4"
,
"resolved"
:
"https://registry.npmjs.org/debug/-/debug-4.3.4.tgz"
,
"integrity"
:
"sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ=="
,
"requires"
:
{
"ms"
:
"2.1.2"
}
},
"ms"
:
{
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
}
}
},
"fast-xml-parser"
:
{
"version"
:
"4.0.11"
,
"resolved"
:
"https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.0.11.tgz"
,
...
...
@@ -4057,6 +4706,14 @@
"strnum"
:
"^1.0.5"
}
},
"fd-slicer"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz"
,
"integrity"
:
"sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g=="
,
"requires"
:
{
"pend"
:
"~1.2.0"
}
},
"fill-range"
:
{
"version"
:
"7.0.1"
,
"resolved"
:
"https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"
,
...
...
@@ -4080,11 +4737,30 @@
"unpipe"
:
"~1.0.0"
}
},
"find-up"
:
{
"version"
:
"4.1.0"
,
"resolved"
:
"https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz"
,
"integrity"
:
"sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="
,
"requires"
:
{
"locate-path"
:
"^5.0.0"
,
"path-exists"
:
"^4.0.0"
}
},
"follow-redirects"
:
{
"version"
:
"1.15.2"
,
"resolved"
:
"https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz"
,
"integrity"
:
"sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
},
"form-data"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz"
,
"integrity"
:
"sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww=="
,
"requires"
:
{
"asynckit"
:
"^0.4.0"
,
"combined-stream"
:
"^1.0.8"
,
"mime-types"
:
"^2.1.12"
}
},
"forwarded"
:
{
"version"
:
"0.2.0"
,
"resolved"
:
"https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz"
,
...
...
@@ -4095,6 +4771,16 @@
"resolved"
:
"https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz"
,
"integrity"
:
"sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="
},
"fs-constants"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz"
,
"integrity"
:
"sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="
},
"fs.realpath"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
,
"integrity"
:
"sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
},
"fsevents"
:
{
"version"
:
"2.3.2"
,
"resolved"
:
"https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
,
...
...
@@ -4117,6 +4803,27 @@
"has-symbols"
:
"^1.0.3"
}
},
"get-stream"
:
{
"version"
:
"5.2.0"
,
"resolved"
:
"https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz"
,
"integrity"
:
"sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA=="
,
"requires"
:
{
"pump"
:
"^3.0.0"
}
},
"glob"
:
{
"version"
:
"7.2.3"
,
"resolved"
:
"https://registry.npmjs.org/glob/-/glob-7.2.3.tgz"
,
"integrity"
:
"sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="
,
"requires"
:
{
"fs.realpath"
:
"^1.0.0"
,
"inflight"
:
"^1.0.4"
,
"inherits"
:
"2"
,
"minimatch"
:
"^3.1.1"
,
"once"
:
"^1.3.0"
,
"path-is-absolute"
:
"^1.0.0"
}
},
"glob-parent"
:
{
"version"
:
"5.1.2"
,
"resolved"
:
"https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
,
...
...
@@ -4157,6 +4864,30 @@
"toidentifier"
:
"1.0.1"
}
},
"https-proxy-agent"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz"
,
"integrity"
:
"sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg=="
,
"requires"
:
{
"agent-base"
:
"5"
,
"debug"
:
"4"
},
"dependencies"
:
{
"debug"
:
{
"version"
:
"4.3.4"
,
"resolved"
:
"https://registry.npmjs.org/debug/-/debug-4.3.4.tgz"
,
"integrity"
:
"sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ=="
,
"requires"
:
{
"ms"
:
"2.1.2"
}
},
"ms"
:
{
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
}
}
},
"iconv-lite"
:
{
"version"
:
"0.4.24"
,
"resolved"
:
"https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz"
,
...
...
@@ -4176,6 +4907,15 @@
"integrity"
:
"sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA=="
,
"dev"
:
true
},
"inflight"
:
{
"version"
:
"1.0.6"
,
"resolved"
:
"https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz"
,
"integrity"
:
"sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA=="
,
"requires"
:
{
"once"
:
"^1.3.0"
,
"wrappy"
:
"1"
}
},
"inherits"
:
{
"version"
:
"2.0.4"
,
"resolved"
:
"https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
,
...
...
@@ -4235,6 +4975,14 @@
"resolved"
:
"https://registry.npmjs.org/kareem/-/kareem-2.5.0.tgz"
,
"integrity"
:
"sha512-rVBUGGwvqg130iwYu8k7lutHuDBFj1yGRdnlE44wEhxAmFBad1zcL66PdWC1raw3tIObY6XWhtv3VL04xQb/cg=="
},
"locate-path"
:
{
"version"
:
"5.0.0"
,
"resolved"
:
"https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz"
,
"integrity"
:
"sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="
,
"requires"
:
{
"p-locate"
:
"^4.1.0"
}
},
"lodash"
:
{
"version"
:
"4.17.21"
,
"resolved"
:
"https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
,
...
...
@@ -4288,11 +5036,15 @@
"version"
:
"3.1.2"
,
"resolved"
:
"https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz"
,
"integrity"
:
"sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="
,
"dev"
:
true
,
"requires"
:
{
"brace-expansion"
:
"^1.1.7"
}
},
"mkdirp-classic"
:
{
"version"
:
"0.5.3"
,
"resolved"
:
"https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz"
,
"integrity"
:
"sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="
},
"mongodb"
:
{
"version"
:
"4.12.1"
,
"resolved"
:
"https://registry.npmjs.org/mongodb/-/mongodb-4.12.1.tgz"
,
...
...
@@ -4373,12 +5125,49 @@
"resolved"
:
"https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz"
,
"integrity"
:
"sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="
},
"node-fetch"
:
{
"version"
:
"2.6.8"
,
"resolved"
:
"https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.8.tgz"
,
"integrity"
:
"sha512-RZ6dBYuj8dRSfxpUSu+NsdF1dpPpluJxwOp+6IoDp/sH2QNDSvurYsAa+F1WxY2RjA1iP93xhcsUoYbF2XBqVg=="
,
"requires"
:
{
"whatwg-url"
:
"^5.0.0"
},
"dependencies"
:
{
"tr46"
:
{
"version"
:
"0.0.3"
,
"resolved"
:
"https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz"
,
"integrity"
:
"sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
},
"webidl-conversions"
:
{
"version"
:
"3.0.1"
,
"resolved"
:
"https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz"
,
"integrity"
:
"sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
},
"whatwg-url"
:
{
"version"
:
"5.0.0"
,
"resolved"
:
"https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz"
,
"integrity"
:
"sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="
,
"requires"
:
{
"tr46"
:
"~0.0.3"
,
"webidl-conversions"
:
"^3.0.0"
}
}
}
},
"node-gyp-build"
:
{
"version"
:
"4.5.0"
,
"resolved"
:
"https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.5.0.tgz"
,
"integrity"
:
"sha512-2iGbaQBV+ITgCz76ZEjmhUKAKVf7xfY1sRl4UiKQspfZMH2h06SyhNsnSVy50cwkFQDGLyif6m/6uFXHkOZ6rg=="
,
"optional"
:
true
},
"node-htmlpdf"
:
{
"version"
:
"1.0.4"
,
"resolved"
:
"https://registry.npmjs.org/node-htmlpdf/-/node-htmlpdf-1.0.4.tgz"
,
"integrity"
:
"sha512-HeYswD/hcRUrZhQj02SYO1n4tTQ/YiaH2XQkCpS9/MqO8n1+s2nqjQfrlcPqqp9OL4ZrGB0Zym3EMTUFeKTlVw=="
,
"requires"
:
{
"puppeteer"
:
"^5.2.1"
}
},
"nodemon"
:
{
"version"
:
"2.0.20"
,
"resolved"
:
"https://registry.npmjs.org/nodemon/-/nodemon-2.0.20.tgz"
,
...
...
@@ -4447,22 +5236,79 @@
"ee-first"
:
"1.1.1"
}
},
"once"
:
{
"version"
:
"1.4.0"
,
"resolved"
:
"https://registry.npmjs.org/once/-/once-1.4.0.tgz"
,
"integrity"
:
"sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w=="
,
"requires"
:
{
"wrappy"
:
"1"
}
},
"p-limit"
:
{
"version"
:
"2.3.0"
,
"resolved"
:
"https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz"
,
"integrity"
:
"sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="
,
"requires"
:
{
"p-try"
:
"^2.0.0"
}
},
"p-locate"
:
{
"version"
:
"4.1.0"
,
"resolved"
:
"https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz"
,
"integrity"
:
"sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="
,
"requires"
:
{
"p-limit"
:
"^2.2.0"
}
},
"p-try"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz"
,
"integrity"
:
"sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="
},
"parseurl"
:
{
"version"
:
"1.3.3"
,
"resolved"
:
"https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz"
,
"integrity"
:
"sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="
},
"path-exists"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz"
,
"integrity"
:
"sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="
},
"path-is-absolute"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz"
,
"integrity"
:
"sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg=="
},
"path-to-regexp"
:
{
"version"
:
"0.1.7"
,
"resolved"
:
"https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz"
,
"integrity"
:
"sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
},
"pend"
:
{
"version"
:
"1.2.0"
,
"resolved"
:
"https://registry.npmjs.org/pend/-/pend-1.2.0.tgz"
,
"integrity"
:
"sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg=="
},
"picomatch"
:
{
"version"
:
"2.3.1"
,
"resolved"
:
"https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz"
,
"integrity"
:
"sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="
,
"dev"
:
true
},
"pkg-dir"
:
{
"version"
:
"4.2.0"
,
"resolved"
:
"https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz"
,
"integrity"
:
"sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ=="
,
"requires"
:
{
"find-up"
:
"^4.0.0"
}
},
"progress"
:
{
"version"
:
"2.0.3"
,
"resolved"
:
"https://registry.npmjs.org/progress/-/progress-2.0.3.tgz"
,
"integrity"
:
"sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA=="
},
"proxy-addr"
:
{
"version"
:
"2.0.7"
,
"resolved"
:
"https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz"
,
...
...
@@ -4472,17 +5318,65 @@
"ipaddr.js"
:
"1.9.1"
}
},
"proxy-from-env"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz"
,
"integrity"
:
"sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
},
"pstree.remy"
:
{
"version"
:
"1.1.8"
,
"resolved"
:
"https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz"
,
"integrity"
:
"sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w=="
,
"dev"
:
true
},
"pump"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/pump/-/pump-3.0.0.tgz"
,
"integrity"
:
"sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww=="
,
"requires"
:
{
"end-of-stream"
:
"^1.1.0"
,
"once"
:
"^1.3.1"
}
},
"punycode"
:
{
"version"
:
"2.1.1"
,
"resolved"
:
"https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz"
,
"integrity"
:
"sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
},
"puppeteer"
:
{
"version"
:
"5.5.0"
,
"resolved"
:
"https://registry.npmjs.org/puppeteer/-/puppeteer-5.5.0.tgz"
,
"integrity"
:
"sha512-OM8ZvTXAhfgFA7wBIIGlPQzvyEETzDjeRa4mZRCRHxYL+GNH5WAuYUQdja3rpWZvkX/JKqmuVgbsxDNsDFjMEg=="
,
"requires"
:
{
"debug"
:
"^4.1.0"
,
"devtools-protocol"
:
"0.0.818844"
,
"extract-zip"
:
"^2.0.0"
,
"https-proxy-agent"
:
"^4.0.0"
,
"node-fetch"
:
"^2.6.1"
,
"pkg-dir"
:
"^4.2.0"
,
"progress"
:
"^2.0.1"
,
"proxy-from-env"
:
"^1.0.0"
,
"rimraf"
:
"^3.0.2"
,
"tar-fs"
:
"^2.0.0"
,
"unbzip2-stream"
:
"^1.3.3"
,
"ws"
:
"^7.2.3"
},
"dependencies"
:
{
"debug"
:
{
"version"
:
"4.3.4"
,
"resolved"
:
"https://registry.npmjs.org/debug/-/debug-4.3.4.tgz"
,
"integrity"
:
"sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ=="
,
"requires"
:
{
"ms"
:
"2.1.2"
}
},
"ms"
:
{
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
}
}
},
"qs"
:
{
"version"
:
"6.11.0"
,
"resolved"
:
"https://registry.npmjs.org/qs/-/qs-6.11.0.tgz"
,
...
...
@@ -4515,6 +5409,16 @@
"unpipe"
:
"1.0.0"
}
},
"readable-stream"
:
{
"version"
:
"3.6.0"
,
"resolved"
:
"https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz"
,
"integrity"
:
"sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA=="
,
"requires"
:
{
"inherits"
:
"^2.0.3"
,
"string_decoder"
:
"^1.1.1"
,
"util-deprecate"
:
"^1.0.1"
}
},
"readdirp"
:
{
"version"
:
"3.6.0"
,
"resolved"
:
"https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz"
,
...
...
@@ -4524,6 +5428,14 @@
"picomatch"
:
"^2.2.1"
}
},
"rimraf"
:
{
"version"
:
"3.0.2"
,
"resolved"
:
"https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz"
,
"integrity"
:
"sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA=="
,
"requires"
:
{
"glob"
:
"^7.1.3"
}
},
"safe-buffer"
:
{
"version"
:
"5.2.1"
,
"resolved"
:
"https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz"
,
...
...
@@ -4708,6 +5620,14 @@
"utility-types"
:
"^3.7.0"
},
"dependencies"
:
{
"axios"
:
{
"version"
:
"0.25.0"
,
"resolved"
:
"https://registry.npmjs.org/axios/-/axios-0.25.0.tgz"
,
"integrity"
:
"sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g=="
,
"requires"
:
{
"follow-redirects"
:
"^1.14.7"
}
},
"tslib"
:
{
"version"
:
"1.14.1"
,
"resolved"
:
"https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz"
,
...
...
@@ -4715,6 +5635,14 @@
}
}
},
"string_decoder"
:
{
"version"
:
"1.3.0"
,
"resolved"
:
"https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz"
,
"integrity"
:
"sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="
,
"requires"
:
{
"safe-buffer"
:
"~5.2.0"
}
},
"strnum"
:
{
"version"
:
"1.0.5"
,
"resolved"
:
"https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz"
,
...
...
@@ -4730,6 +5658,34 @@
"has-flag"
:
"^3.0.0"
}
},
"tar-fs"
:
{
"version"
:
"2.1.1"
,
"resolved"
:
"https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz"
,
"integrity"
:
"sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng=="
,
"requires"
:
{
"chownr"
:
"^1.1.1"
,
"mkdirp-classic"
:
"^0.5.2"
,
"pump"
:
"^3.0.0"
,
"tar-stream"
:
"^2.1.4"
}
},
"tar-stream"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz"
,
"integrity"
:
"sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ=="
,
"requires"
:
{
"bl"
:
"^4.0.3"
,
"end-of-stream"
:
"^1.4.1"
,
"fs-constants"
:
"^1.0.0"
,
"inherits"
:
"^2.0.3"
,
"readable-stream"
:
"^3.1.1"
}
},
"through"
:
{
"version"
:
"2.3.8"
,
"resolved"
:
"https://registry.npmjs.org/through/-/through-2.3.8.tgz"
,
"integrity"
:
"sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg=="
},
"to-regex-range"
:
{
"version"
:
"5.0.1"
,
"resolved"
:
"https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz"
,
...
...
@@ -4786,6 +5742,15 @@
"mime-types"
:
"~2.1.24"
}
},
"unbzip2-stream"
:
{
"version"
:
"1.4.3"
,
"resolved"
:
"https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz"
,
"integrity"
:
"sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg=="
,
"requires"
:
{
"buffer"
:
"^5.2.1"
,
"through"
:
"^2.3.8"
}
},
"undefsafe"
:
{
"version"
:
"2.0.5"
,
"resolved"
:
"https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz"
,
...
...
@@ -4802,6 +5767,11 @@
"resolved"
:
"https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz"
,
"integrity"
:
"sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ=="
},
"util-deprecate"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
,
"integrity"
:
"sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
},
"utility-types"
:
{
"version"
:
"3.10.0"
,
"resolved"
:
"https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz"
,
...
...
@@ -4836,6 +5806,26 @@
"tr46"
:
"^3.0.0"
,
"webidl-conversions"
:
"^7.0.0"
}
},
"wrappy"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
,
"integrity"
:
"sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
},
"ws"
:
{
"version"
:
"7.5.9"
,
"resolved"
:
"https://registry.npmjs.org/ws/-/ws-7.5.9.tgz"
,
"integrity"
:
"sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q=="
,
"requires"
:
{}
},
"yauzl"
:
{
"version"
:
"2.10.0"
,
"resolved"
:
"https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz"
,
"integrity"
:
"sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g=="
,
"requires"
:
{
"buffer-crc32"
:
"~0.2.3"
,
"fd-slicer"
:
"~1.1.0"
}
}
}
}
ExpressBackend/package.json
View file @
eab73446
...
...
@@ -14,10 +14,12 @@
"author"
:
"22_23-J 16"
,
"license"
:
"ISC"
,
"dependencies"
:
{
"axios"
:
"^1.2.2"
,
"cors"
:
"^2.8.5"
,
"crypto-js"
:
"^4.1.1"
,
"express"
:
"^4.18.2"
,
"mongoose"
:
"^6.8.0"
,
"node-htmlpdf"
:
"^1.0.4"
,
"stellar-sdk"
:
"^10.4.1"
},
"devDependencies"
:
{
...
...
ExpressBackend/route/patient-routes/mental-state-router.js
View file @
eab73446
...
...
@@ -70,6 +70,7 @@ router.post("/", async (req, res) => {
//send the transaction to blockchain
try
{
const
transactionResult
=
await
server
.
submitTransaction
(
transaction
);
server
.
transactions
;
console
.
log
(
"
Mental state transaction sent to blockchain : HASH :
"
+
transactionResult
.
hash
...
...
ExpressBackend/route/patient-routes/nft-route.js
0 → 100644
View file @
eab73446
const
express
=
require
(
"
express
"
);
const
router
=
express
.
Router
();
const
DecryptWithServerKey
=
require
(
"
./../../services/decryptionservice
"
);
const
Patient
=
require
(
"
./../../model/patient/patient
"
);
const
axios
=
require
(
"
axios
"
);
const
StellarSDK
=
require
(
"
stellar-sdk
"
);
const
htmlpdf
=
require
(
"
node-htmlpdf
"
);
let
currentHash
;
let
genesisHash
;
let
isGenesisPassed
;
let
htmlString
;
router
.
post
(
"
/
"
,
async
(
req
,
res
)
=>
{
//Get the payload and decrypt
const
decryptedPatientKey
=
req
.
body
.
patientkey
;
const
decryptedPatientSeed
=
req
.
body
.
patientseed
;
const
decryptedPractitionerKey
=
req
.
body
.
practitioner
;
//get the current hash from DB
try
{
let
patientDetails
=
await
Patient
.
findOne
({
publickey
:
decryptedPatientKey
,
});
if
(
patientDetails
==
null
)
{
console
.
log
(
"
No patient details found for :
"
+
decryptedPatientKey
);
console
.
log
(
"
/patient/createnft - NFT creation and sharing failed
"
);
return
res
.
status
(
404
)
.
json
({
message
:
"
Patient not found for :
"
+
decryptedPatientKey
});
}
else
{
//take the current hash and thegenesis hash recorded
let
initialCurrentHash
=
patientDetails
.
currenthash
;
genesisHash
=
patientDetails
.
genesishash
;
//check if this is the genesis hash
if
(
genesisHash
===
initialCurrentHash
)
{
//send response with the error message
console
.
log
(
"
This user does not have enough information to create an EHR
"
);
console
.
log
(
"
/patient/createnft - NFT creation and sharing failed
"
);
return
res
.
status
(
404
).
json
({
message
:
"
This user does not have enough information to create an EHR
"
,
});
}
else
{
htmlString
=
`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<center>
<h1>Electronic Health Record</h1>
<h2>User Details</h1>
</center>
<p style="float: inline-start; font-weight: 300; font-size: smaller;">*Please note that this is a computer generated health record</p>`
;
let
timestamp
=
new
Date
().
toString
();
let
timestampString
=
`<p style="float: inline-start; font-weight: 300; font-size: smaller;">Generated time : `
+
timestamp
+
`</p><hr />`
;
htmlString
=
htmlString
+
timestampString
;
//get the genesis block details
try
{
console
.
log
(
"
Calling the genesis block:
"
+
process
.
env
.
STELLARTESTNET
+
"
/transactions/
"
+
genesisHash
.
toString
()
);
const
genesisTransactionDetails
=
await
axios
.
default
.
get
(
process
.
env
.
STELLARTESTNET
+
"
/transactions/
"
+
genesisHash
.
toString
()
);
if
(
genesisTransactionDetails
.
status
!=
200
)
{
console
.
log
(
"
Error when getting genesis transaction : Code -
"
+
genesisTransactionDetails
.
status
+
"
Status :
"
+
genesisTransactionDetails
.
statusText
);
console
.
log
(
"
/patient/createnft - NFT creation and sharing failed
"
);
return
res
.
status
(
500
).
json
({
message
:
"
Error when getting genesis transaction : Code -
"
+
genesisTransactionDetails
.
status
+
"
Status :
"
+
genesisTransactionDetails
.
statusText
,
});
}
else
{
const
genesisOperations
=
JSON
.
stringify
(
StellarSDK
.
xdr
.
TransactionEnvelope
.
fromXDR
(
genesisTransactionDetails
.
data
.
envelope_xdr
,
"
base64
"
)
.
v1
()
.
tx
()
.
operations
()
);
const
genesisJsonOb
=
JSON
.
parse
(
genesisOperations
);
//loop the operations
for
(
let
i
=
0
;
i
<
genesisJsonOb
.
length
;
i
++
)
{
let
name
=
Buffer
.
from
(
genesisJsonOb
[
i
].
_attributes
.
body
.
_value
.
_attributes
.
dataName
.
data
);
let
value
=
Buffer
.
from
(
genesisJsonOb
[
i
].
_attributes
.
body
.
_value
.
_attributes
.
dataValue
.
data
);
//append genesis details to the HTML string
htmlString
=
htmlString
+
`<p>`
+
name
.
toString
()
+
` : `
+
value
.
toString
()
+
`</p>`
;
}
}
}
catch
(
errorWhenCallingGenesisTxn
)
{
console
.
log
(
"
Error when getting genesis transaction details from stellar :
"
+
errorWhenCallingGenesisTxn
);
console
.
log
(
"
/patient/createnft - NFT creation and sharing failed
"
);
return
res
.
status
(
500
).
json
({
message
:
"
Error when getting genesis transaction details from stellar :
"
+
errorWhenCallingGenesisTxn
,
});
}
currentHash
=
initialCurrentHash
;
htmlString
=
htmlString
+
`<hr>
<br>
<h3>Recorded mental health statuses and emotional statuses according to previous chat bot interaction</h3>
<br>`
;
//loop through all the previous transactions
do
{
//get the details by calling the endpoints get transaction details
try
{
console
.
log
(
"
Calling :
"
+
process
.
env
.
STELLARTESTNET
+
"
/transactions/
"
+
currentHash
.
toString
()
);
//call the stellar endpoint
const
transactionDetails
=
await
axios
.
default
.
get
(
process
.
env
.
STELLARTESTNET
+
"
/transactions/
"
+
currentHash
.
toString
()
);
//check the status of the transaction
if
(
transactionDetails
.
status
!=
200
)
{
console
.
log
(
"
Error when getting transaction : Code -
"
+
transactionDetails
.
status
+
"
Status :
"
+
transactionDetails
.
statusText
);
console
.
log
(
"
/patient/createnft - NFT creation and sharing failed
"
);
return
res
.
status
(
500
).
json
({
message
:
"
Error when getting transaction : Code -
"
+
transactionDetails
.
status
+
"
Status :
"
+
transactionDetails
.
statusText
,
});
}
else
{
const
operations
=
JSON
.
stringify
(
StellarSDK
.
xdr
.
TransactionEnvelope
.
fromXDR
(
transactionDetails
.
data
.
envelope_xdr
,
"
base64
"
)
.
v1
()
.
tx
()
.
operations
()
);
const
jsonOb
=
JSON
.
parse
(
operations
);
//loop the operations
for
(
let
i
=
0
;
i
<
jsonOb
.
length
;
i
++
)
{
let
name
=
Buffer
.
from
(
jsonOb
[
i
].
_attributes
.
body
.
_value
.
_attributes
.
dataName
.
data
);
let
value
=
Buffer
.
from
(
jsonOb
[
i
].
_attributes
.
body
.
_value
.
_attributes
.
dataValue
.
data
);
//check the name type
if
(
name
.
toString
()
===
"
Timestamp
"
)
{
//append to HTML string
htmlString
=
htmlString
+
`<p>Date and time : `
+
value
.
toString
()
+
`</p>`
;
}
else
if
(
name
.
toString
()
===
"
Emotion
"
||
name
.
toString
()
===
"
Mental state
"
)
{
//append to HTML string
htmlString
=
htmlString
+
`<p>`
+
name
.
toString
()
+
` : `
+
value
.
toString
()
+
`</p>`
;
}
}
htmlString
=
htmlString
+
`<br><br>`
;
//Assign the current hash
currentHash
=
Buffer
.
from
(
jsonOb
[
0
].
_attributes
.
body
.
_value
.
_attributes
.
dataValue
.
data
).
toString
();
//skipping the genesis hash
if
(
currentHash
===
genesisHash
)
{
isGenesisPassed
=
true
;
}
else
{
isGenesisPassed
=
false
;
}
}
}
catch
(
errorWhenGettingTxnFromStellar
)
{
console
.
log
(
"
Error when getting transaction details from stellar :
"
+
errorWhenGettingTxnFromStellar
);
console
.
log
(
"
/patient/createnft - NFT creation and sharing failed
"
);
return
res
.
status
(
500
).
json
({
message
:
"
Error when getting transaction details from stellar :
"
+
errorWhenGettingTxnFromStellar
,
});
}
}
while
(
!
isGenesisPassed
);
console
.
log
(
"
All the patient data taken from the blockchain
"
);
htmlString
=
htmlString
+
`</body></html>`
;
console
.
log
(
"
HTML code for EHR generated
"
);
//create the PDF document for EHR
let
path
=
`./patientehr/`
+
decryptedPatientKey
+
`-EHR.pdf`
;
let
pdfOptions
=
{
path
:
path
,
format
:
"
A4
"
,
};
htmlpdf
.
create
(
htmlString
,
pdfOptions
)
.
then
((
buff
)
=>
{
console
.
log
(
"
PDF created
"
);
})
.
catch
((
errorWhenGeneratingPDF
)
=>
{
console
.
log
(
"
Error when generating PDF :
"
+
errorWhenGeneratingPDF
);
console
.
log
(
"
/patient/createnft - NFT creation and sharing failed
"
);
return
res
.
status
(
500
).
json
({
message
:
"
Error when generating PDF :
"
+
errorWhenGeneratingPDF
,
});
});
}
}
}
catch
(
errorWhenGettingCurrentHash
)
{
console
.
log
(
"
Error when getting user details from DB:
"
+
errorWhenGettingCurrentHash
);
console
.
log
(
"
/patient/createnft - NFT creation and sharing failed
"
);
return
res
.
status
(
500
).
json
({
message
:
"
Error when getting user details from DB:
"
+
errorWhenGettingCurrentHash
,
});
}
});
module
.
exports
=
router
;
ExpressBackend/server.js
View file @
eab73446
...
...
@@ -29,6 +29,9 @@ app.use("/patient/mentalstate", patientMentalState);
const
patientRequest
=
require
(
"
./route/patient-routes/patient-requests
"
);
app
.
use
(
"
/patient/request
"
,
patientRequest
);
const
patientNft
=
require
(
"
./route/patient-routes/nft-route
"
);
app
.
use
(
"
/patient/createnft
"
,
patientNft
);
//practitioner routes
const
practitionerRegister
=
require
(
"
./route/practitioner-routes/registration-route
"
);
app
.
use
(
"
/practitioner/register
"
,
practitionerRegister
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment