Compare commits

..

No commits in common. "streamline-certificate" and "main" have entirely different histories.

8 changed files with 170 additions and 991 deletions

652
package-lock.json generated
View File

@ -9,14 +9,12 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@peculiar/x509": "^1.5.2",
"axios": "^0.21.4", "axios": "^0.21.4",
"body-parser": "^1.19.0", "body-parser": "^1.19.0",
"cors": "^2.8.5", "cors": "^2.8.5",
"dayjs": "^1.10.7", "dayjs": "^1.10.7",
"dcc-utils": "^0.3.0", "dcc-utils": "^0.2.0",
"express": "^4.17.1", "express": "^4.17.1",
"isomorphic-webcrypto": "^2.3.8",
"jsrsasign": "^10.4.0", "jsrsasign": "^10.4.0",
"mock-fs": "^5.1.1" "mock-fs": "^5.1.1"
}, },
@ -3218,125 +3216,6 @@
"node": ">= 8" "node": ">= 8"
} }
}, },
"node_modules/@peculiar/asn1-cms": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-cms/-/asn1-cms-2.0.38.tgz",
"integrity": "sha512-9ZPki4qr2SIwD6y9d7Fgi4tnL51cCEqIltHvr7muIO78itM4VxovrbOOWEbNc2a+nJyac0ubVLil3+/xebo6jQ==",
"dependencies": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"@peculiar/asn1-x509-attr": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
}
},
"node_modules/@peculiar/asn1-cms/node_modules/tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"node_modules/@peculiar/asn1-csr": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-csr/-/asn1-csr-2.0.38.tgz",
"integrity": "sha512-0Yw0Qzbj61gWpXupkga4Ajv49RIwsgNwnfIh3smRVrz7dz1w+F3XpHisJczkX/kATIl7mgPP/8dPGXa7xNAONg==",
"dependencies": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
}
},
"node_modules/@peculiar/asn1-csr/node_modules/tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"node_modules/@peculiar/asn1-ecc": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-ecc/-/asn1-ecc-2.0.38.tgz",
"integrity": "sha512-ooaxfw7mlzFjLbCF9GPnYzZXEpPijuqHPNRExoCQ6Kd1xikuLgC0ARUc1JSpKQU41tTS1o1y6QnqEgmOxCkAWQ==",
"dependencies": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
}
},
"node_modules/@peculiar/asn1-ecc/node_modules/tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"node_modules/@peculiar/asn1-pfx": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-pfx/-/asn1-pfx-2.0.38.tgz",
"integrity": "sha512-Q7+nk0LrAmIRZizXfdNKtmYKaQyiDVYHizkaXsFwzn1CbcfAKonVWLGdaSlbSpk7dNEY5v2iZ+giG3CkgnUlmw==",
"dependencies": {
"@peculiar/asn1-cms": "^2.0.38",
"@peculiar/asn1-pkcs8": "^2.0.38",
"@peculiar/asn1-rsa": "^2.0.38",
"@peculiar/asn1-schema": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
}
},
"node_modules/@peculiar/asn1-pfx/node_modules/tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"node_modules/@peculiar/asn1-pkcs8": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-pkcs8/-/asn1-pkcs8-2.0.38.tgz",
"integrity": "sha512-FIlnwL/bLkGECPyMpD9HI95CdHTt7rSPjG3FSioiosF38thxE73oI/p3okUZsLUeZaAAjAoLHnakObx/CKPnwg==",
"dependencies": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
}
},
"node_modules/@peculiar/asn1-pkcs8/node_modules/tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"node_modules/@peculiar/asn1-pkcs9": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-pkcs9/-/asn1-pkcs9-2.0.38.tgz",
"integrity": "sha512-aX2ianKE6CK8kLYRNq+DLbZTDeYxcXrB+b7ukC+LA0TlRx8VS3/zekA5n4HizTmK4oineKzkYnmRzsjF3X15jg==",
"dependencies": {
"@peculiar/asn1-cms": "^2.0.38",
"@peculiar/asn1-pfx": "^2.0.38",
"@peculiar/asn1-pkcs8": "^2.0.38",
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"@peculiar/asn1-x509-attr": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
}
},
"node_modules/@peculiar/asn1-pkcs9/node_modules/tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"node_modules/@peculiar/asn1-rsa": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-rsa/-/asn1-rsa-2.0.38.tgz",
"integrity": "sha512-oH0Pw9ytOUJurvqBRAwpr1e87EfMUfySmeGSujWMUtdyYbuylmUZjVsUEZJEFfCV16uFwmuQ9P84jXFBTHiH7g==",
"dependencies": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
}
},
"node_modules/@peculiar/asn1-rsa/node_modules/tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"node_modules/@peculiar/asn1-schema": { "node_modules/@peculiar/asn1-schema": {
"version": "2.0.38", "version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.0.38.tgz", "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.0.38.tgz",
@ -3353,47 +3232,6 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}, },
"node_modules/@peculiar/asn1-x509": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-x509/-/asn1-x509-2.0.38.tgz",
"integrity": "sha512-10aK9fSxlc1DK9nEcwh+WPFNhAheXSE9RbI5MyS7FdBhgq+Mz4Z9JqFfaBZm1Qp+5mPtUMOP6cXVo7aaYlgq7A==",
"dependencies": {
"@peculiar/asn1-schema": "^2.0.38",
"asn1js": "^2.1.1",
"ipaddr.js": "^2.0.1",
"pvtsutils": "^1.2.0",
"tslib": "^2.3.0"
}
},
"node_modules/@peculiar/asn1-x509-attr": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-x509-attr/-/asn1-x509-attr-2.0.38.tgz",
"integrity": "sha512-xjnQeijEZLPUN4/3uX/Fe41p/Lu6+Da8bU5erVn9M16Fi6GOiTiyra2eiYuzKpR3bUFbEOLHV3n+Xqn9NLiOIg==",
"dependencies": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
}
},
"node_modules/@peculiar/asn1-x509-attr/node_modules/tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"node_modules/@peculiar/asn1-x509/node_modules/ipaddr.js": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz",
"integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==",
"engines": {
"node": ">= 10"
}
},
"node_modules/@peculiar/asn1-x509/node_modules/tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"node_modules/@peculiar/json-schema": { "node_modules/@peculiar/json-schema": {
"version": "1.1.12", "version": "1.1.12",
"resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz",
@ -3430,29 +3268,6 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}, },
"node_modules/@peculiar/x509": {
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/@peculiar/x509/-/x509-1.5.2.tgz",
"integrity": "sha512-GUDkI+sPUO6HNWgNULEUtH95Ud0gBIdc5hVS/OS3Nj0/KGJnAX+fsy1ef8NfeL9WrCjG1YLmzKl99RsePo7eIA==",
"dependencies": {
"@peculiar/asn1-cms": "^2.0.38",
"@peculiar/asn1-csr": "^2.0.38",
"@peculiar/asn1-ecc": "^2.0.38",
"@peculiar/asn1-pkcs9": "^2.0.38",
"@peculiar/asn1-rsa": "^2.0.38",
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"pvtsutils": "^1.2.1",
"reflect-metadata": "^0.1.13",
"tslib": "^2.3.1",
"tsyringe": "^4.6.0"
}
},
"node_modules/@peculiar/x509/node_modules/tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
},
"node_modules/@react-native-community/cli": { "node_modules/@react-native-community/cli": {
"version": "6.0.1", "version": "6.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-6.0.1.tgz", "resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-6.0.1.tgz",
@ -5062,14 +4877,6 @@
"resolved": "https://registry.npmjs.org/asmcrypto.js/-/asmcrypto.js-0.22.0.tgz", "resolved": "https://registry.npmjs.org/asmcrypto.js/-/asmcrypto.js-0.22.0.tgz",
"integrity": "sha512-usgMoyXjMbx/ZPdzTSXExhMPur2FTdz/Vo5PVx2gIaBcdAAJNOFlsdgqveM8Cff7W0v+xrf9BwjOV26JSAF9qA==" "integrity": "sha512-usgMoyXjMbx/ZPdzTSXExhMPur2FTdz/Vo5PVx2gIaBcdAAJNOFlsdgqveM8Cff7W0v+xrf9BwjOV26JSAF9qA=="
}, },
"node_modules/asn1": {
"version": "0.2.4",
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
"integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
"dependencies": {
"safer-buffer": "~2.1.0"
}
},
"node_modules/asn1js": { "node_modules/asn1js": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/asn1js/-/asn1js-2.1.1.tgz", "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-2.1.1.tgz",
@ -6159,6 +5966,14 @@
"node": ">=0.6" "node": ">=0.6"
} }
}, },
"node_modules/bignumber.js": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz",
"integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA==",
"engines": {
"node": "*"
}
},
"node_modules/binary-extensions": { "node_modules/binary-extensions": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
@ -7144,21 +6959,50 @@
} }
}, },
"node_modules/cose-js": { "node_modules/cose-js": {
"version": "0.7.0", "version": "0.6.0",
"resolved": "https://registry.npmjs.org/cose-js/-/cose-js-0.7.0.tgz", "resolved": "https://registry.npmjs.org/cose-js/-/cose-js-0.6.0.tgz",
"integrity": "sha512-RlmJ3JGHgjIano/YOWqFITiz6URVSdn0KnNaopmzC0koup+M9TR13tQ+C2BpG9D8UVdw70cjJjmjuruZXABWPA==", "integrity": "sha512-iggu0022Enn9mdqDzecvmKZE/909XYe1i7JeAEoRU4xC5s2OMZm159xbqDdFZDSZebyfYwsbLX/jSAvw0wGHyw==",
"dependencies": { "dependencies": {
"aes-cbc-mac": "^1.0.1", "aes-cbc-mac": "^1.0.0",
"any-promise": "^1.3.0", "any-promise": "^1.3.0",
"cbor": "^7.0.6", "cbor": "^3.0.3",
"elliptic": "^6.4.0", "elliptic": "^6.4.0",
"node-hkdf-sync": "^1.0.0", "node-hkdf-sync": "^1.0.0"
"node-rsa": "^1.1.1"
}, },
"engines": { "engines": {
"node": ">=8.0" "node": ">=8.0"
} }
}, },
"node_modules/cose-js/node_modules/cbor": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/cbor/-/cbor-3.0.3.tgz",
"integrity": "sha512-+UY2FhD8w4GCp8QzP2a3eW0NRTFh2BaXn6t/sVYtGzKJAl0LL8nwma7qzIwmojq7jMF94X5DVfBUeIj8BBHBqA==",
"dependencies": {
"bignumber.js": "^4.0",
"commander": "^2.11",
"json-text-sequence": "^0.1",
"nofilter": "^0.0.3"
},
"bin": {
"cbor2comment": "bin/cbor2comment",
"cbor2diag": "bin/cbor2diag",
"cbor2json": "bin/cbor2json",
"json2cbor": "bin/json2cbor"
},
"engines": {
"node": ">=4"
}
},
"node_modules/cose-js/node_modules/commander": {
"version": "2.20.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
},
"node_modules/cose-js/node_modules/nofilter": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/nofilter/-/nofilter-0.0.3.tgz",
"integrity": "sha1-JB40IHgXeoaTowQ+g/N1Z+J2QQw="
},
"node_modules/cosette": { "node_modules/cosette": {
"version": "0.6.5", "version": "0.6.5",
"resolved": "https://registry.npmjs.org/cosette/-/cosette-0.6.5.tgz", "resolved": "https://registry.npmjs.org/cosette/-/cosette-0.6.5.tgz",
@ -7320,19 +7164,17 @@
"integrity": "sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig==" "integrity": "sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig=="
}, },
"node_modules/dcc-utils": { "node_modules/dcc-utils": {
"version": "0.3.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/dcc-utils/-/dcc-utils-0.3.0.tgz", "resolved": "https://registry.npmjs.org/dcc-utils/-/dcc-utils-0.2.0.tgz",
"integrity": "sha512-5gC0LpCzrvLMkmR6ti+Vpt5NhgSdr8xM2TGiWQp0/5NWNCiPo/oM5g08bHP5SsFaJQUsTxDWIhtHMna0o02fLQ==", "integrity": "sha512-7/iRHspOw7hJb37SnsOEvaCbqQSd3Vd3dlj3scg0TJc6Rv2XNmmjivhFZ5ncqKB8yry5C2in78WoP2uS9UJGrw==",
"dependencies": { "dependencies": {
"base45": "^3.0.0", "base45": "^3.0.0",
"cbor": "^7.0.6", "cbor": "^7.0.6",
"certlogic-js": "^0.8.0", "certlogic-js": "^0.8.0",
"cose-js": "^0.7.0", "cose-js": "^0.6.0",
"cosette": "^0.6.5", "cosette": "^0.6.5",
"jimp": "^0.16.1", "jimp": "^0.16.1",
"jsqr": "^1.4.0", "jsqr": "^1.4.0"
"jsrsasign": "^10.4.1",
"jsrsasign-util": "^1.0.5"
} }
}, },
"node_modules/debug": { "node_modules/debug": {
@ -7463,6 +7305,11 @@
"node": ">=0.4.0" "node": ">=0.4.0"
} }
}, },
"node_modules/delimit-stream": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz",
"integrity": "sha1-m4MZR3wOX4rrPONXrjBfwl6hzSs="
},
"node_modules/denodeify": { "node_modules/denodeify": {
"version": "1.2.1", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz", "resolved": "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz",
@ -13149,6 +12996,14 @@
"integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
"dev": true "dev": true
}, },
"node_modules/json-text-sequence": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz",
"integrity": "sha1-py8hfcSvxGKf/1/rME3BvVGi89I=",
"dependencies": {
"delimit-stream": "0.1.0"
}
},
"node_modules/json5": { "node_modules/json5": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
@ -13161,11 +13016,6 @@
"json5": "lib/cli.js" "json5": "lib/cli.js"
} }
}, },
"node_modules/jsonc-parser": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz",
"integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA=="
},
"node_modules/jsonfile": { "node_modules/jsonfile": {
"version": "6.1.0", "version": "6.1.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
@ -13194,22 +13044,13 @@
"integrity": "sha512-dxLob7q65Xg2DvstYkRpkYtmKm2sPJ9oFhrhmudT1dZvNFFTlroai3AWSpLey/w5vMcLBXRgOJsbXpdN9HzU/A==" "integrity": "sha512-dxLob7q65Xg2DvstYkRpkYtmKm2sPJ9oFhrhmudT1dZvNFFTlroai3AWSpLey/w5vMcLBXRgOJsbXpdN9HzU/A=="
}, },
"node_modules/jsrsasign": { "node_modules/jsrsasign": {
"version": "10.4.1", "version": "10.4.0",
"resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.4.1.tgz", "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.4.0.tgz",
"integrity": "sha512-g2CP2nb8xKdmfZhuHaJEz1zVYTsZc+lUjLFvgbMX35/cUALK0G15sQfCbCpDg/UivkjCNlq0lV6FxCfPhv0shw==", "integrity": "sha512-C8qLhiAssh/b74KJpGhWuFGG9cFhJqMCVuuHXRibb3Z5vPuAW0ue0jUirpoExCdpdhv4nD3sZ1DAwJURYJTm9g==",
"funding": { "funding": {
"url": "https://github.com/kjur/jsrsasign#donations" "url": "https://github.com/kjur/jsrsasign#donations"
} }
}, },
"node_modules/jsrsasign-util": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/jsrsasign-util/-/jsrsasign-util-1.0.5.tgz",
"integrity": "sha512-e5Kp8aaT5GH2c5X8j4uaJruYmT4GcnaGb47nw8m60YqPywtnOtTISZ9hZgtZ3a+jh7B27bU2LCf3Y32wZyfhtQ==",
"dependencies": {
"jsonc-parser": ">= 0.0.1",
"jsrsasign": ">= 4.8.2"
}
},
"node_modules/keyv": { "node_modules/keyv": {
"version": "3.1.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz",
@ -14306,14 +14147,6 @@
"integrity": "sha512-9/IECtNr8dXNmPWmFXepT0/7o5eolGesHUa3mtr0KlgnCvnZxwh2qensKL42JJY2vQKC3nIBXetFAqR+PW1CmA==", "integrity": "sha512-9/IECtNr8dXNmPWmFXepT0/7o5eolGesHUa3mtr0KlgnCvnZxwh2qensKL42JJY2vQKC3nIBXetFAqR+PW1CmA==",
"devOptional": true "devOptional": true
}, },
"node_modules/node-rsa": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-1.1.1.tgz",
"integrity": "sha512-Jd4cvbJMryN21r5HgxQOpMEqv+ooke/korixNNK3mGqfGJmy0M77WDDzo/05969+OkMy3XW1UuZsSmW9KQm7Fw==",
"dependencies": {
"asn1": "^0.2.4"
}
},
"node_modules/node-stream-zip": { "node_modules/node-stream-zip": {
"version": "1.15.0", "version": "1.15.0",
"resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz", "resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz",
@ -15430,11 +15263,11 @@
} }
}, },
"node_modules/pvtsutils": { "node_modules/pvtsutils": {
"version": "1.2.1", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.2.1.tgz", "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.2.0.tgz",
"integrity": "sha512-Q867jEr30lBR2YSFFLZ0/XsEvpweqH6Kj096wmlRAFXrdRGPCNq2iz9B5Tk085EZ+OBZyYAVA5UhPkjSHGrUzQ==", "integrity": "sha512-IDefMJEQl7HX0FP2hIKJFnAR11klP1js2ixCrOaMhe3kXFK6RQ2ABUCuwWaaD4ib0hSbh2fGTICvWJJhDfNecA==",
"dependencies": { "dependencies": {
"tslib": "^2.3.1" "tslib": "^2.2.0"
} }
}, },
"node_modules/pvtsutils/node_modules/tslib": { "node_modules/pvtsutils/node_modules/tslib": {
@ -15720,11 +15553,6 @@
"node": ">=8.10.0" "node": ">=8.10.0"
} }
}, },
"node_modules/reflect-metadata": {
"version": "0.1.13",
"resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz",
"integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg=="
},
"node_modules/regenerate": { "node_modules/regenerate": {
"version": "1.4.2", "version": "1.4.2",
"resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz",
@ -17593,7 +17421,8 @@
"node_modules/tslib": { "node_modules/tslib": {
"version": "1.14.1", "version": "1.14.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
"dev": true
}, },
"node_modules/tsutils": { "node_modules/tsutils": {
"version": "3.21.0", "version": "3.21.0",
@ -17610,17 +17439,6 @@
"typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
} }
}, },
"node_modules/tsyringe": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/tsyringe/-/tsyringe-4.6.0.tgz",
"integrity": "sha512-BMQAZamSfEmIQzH8WJeRu1yZGQbPSDuI9g+yEiKZFIcO46GPZuMOC2d0b52cVBdw1d++06JnDSIIZvEnogMdAw==",
"dependencies": {
"tslib": "^1.9.3"
},
"engines": {
"node": ">= 6.0.0"
}
},
"node_modules/type-check": { "node_modules/type-check": {
"version": "0.4.0", "version": "0.4.0",
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
@ -20905,139 +20723,6 @@
"fastq": "^1.6.0" "fastq": "^1.6.0"
} }
}, },
"@peculiar/asn1-cms": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-cms/-/asn1-cms-2.0.38.tgz",
"integrity": "sha512-9ZPki4qr2SIwD6y9d7Fgi4tnL51cCEqIltHvr7muIO78itM4VxovrbOOWEbNc2a+nJyac0ubVLil3+/xebo6jQ==",
"requires": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"@peculiar/asn1-x509-attr": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
},
"dependencies": {
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"@peculiar/asn1-csr": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-csr/-/asn1-csr-2.0.38.tgz",
"integrity": "sha512-0Yw0Qzbj61gWpXupkga4Ajv49RIwsgNwnfIh3smRVrz7dz1w+F3XpHisJczkX/kATIl7mgPP/8dPGXa7xNAONg==",
"requires": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
},
"dependencies": {
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"@peculiar/asn1-ecc": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-ecc/-/asn1-ecc-2.0.38.tgz",
"integrity": "sha512-ooaxfw7mlzFjLbCF9GPnYzZXEpPijuqHPNRExoCQ6Kd1xikuLgC0ARUc1JSpKQU41tTS1o1y6QnqEgmOxCkAWQ==",
"requires": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
},
"dependencies": {
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"@peculiar/asn1-pfx": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-pfx/-/asn1-pfx-2.0.38.tgz",
"integrity": "sha512-Q7+nk0LrAmIRZizXfdNKtmYKaQyiDVYHizkaXsFwzn1CbcfAKonVWLGdaSlbSpk7dNEY5v2iZ+giG3CkgnUlmw==",
"requires": {
"@peculiar/asn1-cms": "^2.0.38",
"@peculiar/asn1-pkcs8": "^2.0.38",
"@peculiar/asn1-rsa": "^2.0.38",
"@peculiar/asn1-schema": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
},
"dependencies": {
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"@peculiar/asn1-pkcs8": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-pkcs8/-/asn1-pkcs8-2.0.38.tgz",
"integrity": "sha512-FIlnwL/bLkGECPyMpD9HI95CdHTt7rSPjG3FSioiosF38thxE73oI/p3okUZsLUeZaAAjAoLHnakObx/CKPnwg==",
"requires": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
},
"dependencies": {
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"@peculiar/asn1-pkcs9": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-pkcs9/-/asn1-pkcs9-2.0.38.tgz",
"integrity": "sha512-aX2ianKE6CK8kLYRNq+DLbZTDeYxcXrB+b7ukC+LA0TlRx8VS3/zekA5n4HizTmK4oineKzkYnmRzsjF3X15jg==",
"requires": {
"@peculiar/asn1-cms": "^2.0.38",
"@peculiar/asn1-pfx": "^2.0.38",
"@peculiar/asn1-pkcs8": "^2.0.38",
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"@peculiar/asn1-x509-attr": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
},
"dependencies": {
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"@peculiar/asn1-rsa": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-rsa/-/asn1-rsa-2.0.38.tgz",
"integrity": "sha512-oH0Pw9ytOUJurvqBRAwpr1e87EfMUfySmeGSujWMUtdyYbuylmUZjVsUEZJEFfCV16uFwmuQ9P84jXFBTHiH7g==",
"requires": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
},
"dependencies": {
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"@peculiar/asn1-schema": { "@peculiar/asn1-schema": {
"version": "2.0.38", "version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.0.38.tgz", "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.0.38.tgz",
@ -21056,48 +20741,6 @@
} }
} }
}, },
"@peculiar/asn1-x509": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-x509/-/asn1-x509-2.0.38.tgz",
"integrity": "sha512-10aK9fSxlc1DK9nEcwh+WPFNhAheXSE9RbI5MyS7FdBhgq+Mz4Z9JqFfaBZm1Qp+5mPtUMOP6cXVo7aaYlgq7A==",
"requires": {
"@peculiar/asn1-schema": "^2.0.38",
"asn1js": "^2.1.1",
"ipaddr.js": "^2.0.1",
"pvtsutils": "^1.2.0",
"tslib": "^2.3.0"
},
"dependencies": {
"ipaddr.js": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz",
"integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng=="
},
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"@peculiar/asn1-x509-attr": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/@peculiar/asn1-x509-attr/-/asn1-x509-attr-2.0.38.tgz",
"integrity": "sha512-xjnQeijEZLPUN4/3uX/Fe41p/Lu6+Da8bU5erVn9M16Fi6GOiTiyra2eiYuzKpR3bUFbEOLHV3n+Xqn9NLiOIg==",
"requires": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"asn1js": "^2.1.1",
"tslib": "^2.3.0"
},
"dependencies": {
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"@peculiar/json-schema": { "@peculiar/json-schema": {
"version": "1.1.12", "version": "1.1.12",
"resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz",
@ -21132,31 +20775,6 @@
} }
} }
}, },
"@peculiar/x509": {
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/@peculiar/x509/-/x509-1.5.2.tgz",
"integrity": "sha512-GUDkI+sPUO6HNWgNULEUtH95Ud0gBIdc5hVS/OS3Nj0/KGJnAX+fsy1ef8NfeL9WrCjG1YLmzKl99RsePo7eIA==",
"requires": {
"@peculiar/asn1-cms": "^2.0.38",
"@peculiar/asn1-csr": "^2.0.38",
"@peculiar/asn1-ecc": "^2.0.38",
"@peculiar/asn1-pkcs9": "^2.0.38",
"@peculiar/asn1-rsa": "^2.0.38",
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"pvtsutils": "^1.2.1",
"reflect-metadata": "^0.1.13",
"tslib": "^2.3.1",
"tsyringe": "^4.6.0"
},
"dependencies": {
"tslib": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"@react-native-community/cli": { "@react-native-community/cli": {
"version": "6.0.1", "version": "6.0.1",
"resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-6.0.1.tgz", "resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-6.0.1.tgz",
@ -22479,14 +22097,6 @@
"resolved": "https://registry.npmjs.org/asmcrypto.js/-/asmcrypto.js-0.22.0.tgz", "resolved": "https://registry.npmjs.org/asmcrypto.js/-/asmcrypto.js-0.22.0.tgz",
"integrity": "sha512-usgMoyXjMbx/ZPdzTSXExhMPur2FTdz/Vo5PVx2gIaBcdAAJNOFlsdgqveM8Cff7W0v+xrf9BwjOV26JSAF9qA==" "integrity": "sha512-usgMoyXjMbx/ZPdzTSXExhMPur2FTdz/Vo5PVx2gIaBcdAAJNOFlsdgqveM8Cff7W0v+xrf9BwjOV26JSAF9qA=="
}, },
"asn1": {
"version": "0.2.4",
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
"integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
"requires": {
"safer-buffer": "~2.1.0"
}
},
"asn1js": { "asn1js": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/asn1js/-/asn1js-2.1.1.tgz", "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-2.1.1.tgz",
@ -23478,6 +23088,11 @@
"optional": true, "optional": true,
"peer": true "peer": true
}, },
"bignumber.js": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz",
"integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA=="
},
"binary-extensions": { "binary-extensions": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
@ -24240,16 +23855,38 @@
} }
}, },
"cose-js": { "cose-js": {
"version": "0.7.0", "version": "0.6.0",
"resolved": "https://registry.npmjs.org/cose-js/-/cose-js-0.7.0.tgz", "resolved": "https://registry.npmjs.org/cose-js/-/cose-js-0.6.0.tgz",
"integrity": "sha512-RlmJ3JGHgjIano/YOWqFITiz6URVSdn0KnNaopmzC0koup+M9TR13tQ+C2BpG9D8UVdw70cjJjmjuruZXABWPA==", "integrity": "sha512-iggu0022Enn9mdqDzecvmKZE/909XYe1i7JeAEoRU4xC5s2OMZm159xbqDdFZDSZebyfYwsbLX/jSAvw0wGHyw==",
"requires": { "requires": {
"aes-cbc-mac": "^1.0.1", "aes-cbc-mac": "^1.0.0",
"any-promise": "^1.3.0", "any-promise": "^1.3.0",
"cbor": "^7.0.6", "cbor": "^3.0.3",
"elliptic": "^6.4.0", "elliptic": "^6.4.0",
"node-hkdf-sync": "^1.0.0", "node-hkdf-sync": "^1.0.0"
"node-rsa": "^1.1.1" },
"dependencies": {
"cbor": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/cbor/-/cbor-3.0.3.tgz",
"integrity": "sha512-+UY2FhD8w4GCp8QzP2a3eW0NRTFh2BaXn6t/sVYtGzKJAl0LL8nwma7qzIwmojq7jMF94X5DVfBUeIj8BBHBqA==",
"requires": {
"bignumber.js": "^4.0",
"commander": "^2.11",
"json-text-sequence": "^0.1",
"nofilter": "^0.0.3"
}
},
"commander": {
"version": "2.20.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
},
"nofilter": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/nofilter/-/nofilter-0.0.3.tgz",
"integrity": "sha1-JB40IHgXeoaTowQ+g/N1Z+J2QQw="
}
} }
}, },
"cosette": { "cosette": {
@ -24386,19 +24023,17 @@
"integrity": "sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig==" "integrity": "sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig=="
}, },
"dcc-utils": { "dcc-utils": {
"version": "0.3.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/dcc-utils/-/dcc-utils-0.3.0.tgz", "resolved": "https://registry.npmjs.org/dcc-utils/-/dcc-utils-0.2.0.tgz",
"integrity": "sha512-5gC0LpCzrvLMkmR6ti+Vpt5NhgSdr8xM2TGiWQp0/5NWNCiPo/oM5g08bHP5SsFaJQUsTxDWIhtHMna0o02fLQ==", "integrity": "sha512-7/iRHspOw7hJb37SnsOEvaCbqQSd3Vd3dlj3scg0TJc6Rv2XNmmjivhFZ5ncqKB8yry5C2in78WoP2uS9UJGrw==",
"requires": { "requires": {
"base45": "^3.0.0", "base45": "^3.0.0",
"cbor": "^7.0.6", "cbor": "^7.0.6",
"certlogic-js": "^0.8.0", "certlogic-js": "^0.8.0",
"cose-js": "^0.7.0", "cose-js": "^0.6.0",
"cosette": "^0.6.5", "cosette": "^0.6.5",
"jimp": "^0.16.1", "jimp": "^0.16.1",
"jsqr": "^1.4.0", "jsqr": "^1.4.0"
"jsrsasign": "^10.4.1",
"jsrsasign-util": "^1.0.5"
} }
}, },
"debug": { "debug": {
@ -24505,6 +24140,11 @@
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
"dev": true "dev": true
}, },
"delimit-stream": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz",
"integrity": "sha1-m4MZR3wOX4rrPONXrjBfwl6hzSs="
},
"denodeify": { "denodeify": {
"version": "1.2.1", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz", "resolved": "https://registry.npmjs.org/denodeify/-/denodeify-1.2.1.tgz",
@ -28857,6 +28497,14 @@
"integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
"dev": true "dev": true
}, },
"json-text-sequence": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz",
"integrity": "sha1-py8hfcSvxGKf/1/rME3BvVGi89I=",
"requires": {
"delimit-stream": "0.1.0"
}
},
"json5": { "json5": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
@ -28866,11 +28514,6 @@
"minimist": "^1.2.0" "minimist": "^1.2.0"
} }
}, },
"jsonc-parser": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz",
"integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA=="
},
"jsonfile": { "jsonfile": {
"version": "6.1.0", "version": "6.1.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
@ -28894,18 +28537,9 @@
"integrity": "sha512-dxLob7q65Xg2DvstYkRpkYtmKm2sPJ9oFhrhmudT1dZvNFFTlroai3AWSpLey/w5vMcLBXRgOJsbXpdN9HzU/A==" "integrity": "sha512-dxLob7q65Xg2DvstYkRpkYtmKm2sPJ9oFhrhmudT1dZvNFFTlroai3AWSpLey/w5vMcLBXRgOJsbXpdN9HzU/A=="
}, },
"jsrsasign": { "jsrsasign": {
"version": "10.4.1", "version": "10.4.0",
"resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.4.1.tgz", "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.4.0.tgz",
"integrity": "sha512-g2CP2nb8xKdmfZhuHaJEz1zVYTsZc+lUjLFvgbMX35/cUALK0G15sQfCbCpDg/UivkjCNlq0lV6FxCfPhv0shw==" "integrity": "sha512-C8qLhiAssh/b74KJpGhWuFGG9cFhJqMCVuuHXRibb3Z5vPuAW0ue0jUirpoExCdpdhv4nD3sZ1DAwJURYJTm9g=="
},
"jsrsasign-util": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/jsrsasign-util/-/jsrsasign-util-1.0.5.tgz",
"integrity": "sha512-e5Kp8aaT5GH2c5X8j4uaJruYmT4GcnaGb47nw8m60YqPywtnOtTISZ9hZgtZ3a+jh7B27bU2LCf3Y32wZyfhtQ==",
"requires": {
"jsonc-parser": ">= 0.0.1",
"jsrsasign": ">= 4.8.2"
}
}, },
"keyv": { "keyv": {
"version": "3.1.0", "version": "3.1.0",
@ -29857,14 +29491,6 @@
"integrity": "sha512-9/IECtNr8dXNmPWmFXepT0/7o5eolGesHUa3mtr0KlgnCvnZxwh2qensKL42JJY2vQKC3nIBXetFAqR+PW1CmA==", "integrity": "sha512-9/IECtNr8dXNmPWmFXepT0/7o5eolGesHUa3mtr0KlgnCvnZxwh2qensKL42JJY2vQKC3nIBXetFAqR+PW1CmA==",
"devOptional": true "devOptional": true
}, },
"node-rsa": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-1.1.1.tgz",
"integrity": "sha512-Jd4cvbJMryN21r5HgxQOpMEqv+ooke/korixNNK3mGqfGJmy0M77WDDzo/05969+OkMy3XW1UuZsSmW9KQm7Fw==",
"requires": {
"asn1": "^0.2.4"
}
},
"node-stream-zip": { "node-stream-zip": {
"version": "1.15.0", "version": "1.15.0",
"resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz", "resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz",
@ -30738,11 +30364,11 @@
} }
}, },
"pvtsutils": { "pvtsutils": {
"version": "1.2.1", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.2.1.tgz", "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.2.0.tgz",
"integrity": "sha512-Q867jEr30lBR2YSFFLZ0/XsEvpweqH6Kj096wmlRAFXrdRGPCNq2iz9B5Tk085EZ+OBZyYAVA5UhPkjSHGrUzQ==", "integrity": "sha512-IDefMJEQl7HX0FP2hIKJFnAR11klP1js2ixCrOaMhe3kXFK6RQ2ABUCuwWaaD4ib0hSbh2fGTICvWJJhDfNecA==",
"requires": { "requires": {
"tslib": "^2.3.1" "tslib": "^2.2.0"
}, },
"dependencies": { "dependencies": {
"tslib": { "tslib": {
@ -30960,11 +30586,6 @@
"picomatch": "^2.2.1" "picomatch": "^2.2.1"
} }
}, },
"reflect-metadata": {
"version": "0.1.13",
"resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz",
"integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg=="
},
"regenerate": { "regenerate": {
"version": "1.4.2", "version": "1.4.2",
"resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz",
@ -32453,7 +32074,8 @@
"tslib": { "tslib": {
"version": "1.14.1", "version": "1.14.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
"dev": true
}, },
"tsutils": { "tsutils": {
"version": "3.21.0", "version": "3.21.0",
@ -32464,14 +32086,6 @@
"tslib": "^1.8.1" "tslib": "^1.8.1"
} }
}, },
"tsyringe": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/tsyringe/-/tsyringe-4.6.0.tgz",
"integrity": "sha512-BMQAZamSfEmIQzH8WJeRu1yZGQbPSDuI9g+yEiKZFIcO46GPZuMOC2d0b52cVBdw1d++06JnDSIIZvEnogMdAw==",
"requires": {
"tslib": "^1.9.3"
}
},
"type-check": { "type-check": {
"version": "0.4.0", "version": "0.4.0",
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",

View File

@ -10,14 +10,12 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@peculiar/x509": "^1.5.2",
"axios": "^0.21.4", "axios": "^0.21.4",
"body-parser": "^1.19.0", "body-parser": "^1.19.0",
"cors": "^2.8.5", "cors": "^2.8.5",
"dayjs": "^1.10.7", "dayjs": "^1.10.7",
"dcc-utils": "^0.3.0", "dcc-utils": "^0.2.0",
"express": "^4.17.1", "express": "^4.17.1",
"isomorphic-webcrypto": "^2.3.8",
"jsrsasign": "^10.4.0", "jsrsasign": "^10.4.0",
"mock-fs": "^5.1.1" "mock-fs": "^5.1.1"
}, },

View File

@ -1,33 +1,18 @@
import fs from 'fs/promises'; import fs from 'fs/promises';
import axios, { AxiosResponse } from 'axios'; import axios, { AxiosResponse } from 'axios';
import { X509Certificate, PublicKey } from '@peculiar/x509';
import crypto from 'isomorphic-webcrypto';
interface CertificateData {
serialNumber: string,
subject:string,
issuer: string,
notBefore: Date,
notAfter: Date,
signatureAlgorithm: any,
fingerprint:any,
publicKeyAlgorithm:KeyAlgorithm|any,
publicKeyPem:string
}
export class CertificateDownloader{ export class CertificateDownloader{
// static instance: CertificateDownloader;
private readonly baseUrl = 'https://get.dgc.gov.it'; private readonly baseUrl = 'https://get.dgc.gov.it';
private readonly updateApi = '/v1/dgc/signercertificate/update' private readonly updateApi = '/v1/dgc/signercertificate/update'
private readonly statusApi = '/v1/dgc/signercertificate/status' private readonly statusApi = '/v1/dgc/signercertificate/status'
private readonly keyStorage = './certificate_collection.json'; private readonly keyStorage = './certificate_collection.json';
private readonly timeSpan = 86400000; private readonly timeSpan = 86400000;
// private readonly timeSpan = 1; // private readonly timeSpan = 1;
// private certificatesCollection:{kid:string,certificate:string}[] = []; private certificatesCollection:{kid:string,certificate:string}[] = [];
// private certificatesCollection: { [key: string]: CertificateData; } = {};
private certificatesCollection: Record<string, any> = {};
private currentValidKids:string[] = []; private currentValidKids:string[] = [];
public async getCertificates(): Promise<Record<string, any>> { public async getCertificates(): Promise<{kid:string,certificate:string}[]> {
let data = '{}'; let data = '{}';
try { try {
const file = await fs.open(this.keyStorage,'r'); const file = await fs.open(this.keyStorage,'r');
@ -53,14 +38,14 @@ export class CertificateDownloader{
private async getAllCertificate(): Promise<void> { private async getAllCertificate(): Promise<void> {
let exit = false; let exit = false;
let headers = {}; let headers = {};
this.certificatesCollection = {}; this.certificatesCollection = [];
while(!exit){ while(!exit){
const response:AxiosResponse = await axios.get(this.baseUrl+this.updateApi,{headers}); const response:AxiosResponse = await axios.get(this.baseUrl+this.updateApi,{headers});
headers = {'X-RESUME-TOKEN': response.headers['x-resume-token']}; headers = {'X-RESUME-TOKEN': response.headers['x-resume-token']};
const currentKid:string = response.headers['x-kid']; const currentKid:string = response.headers['x-kid'];
if(this.currentValidKids.includes(currentKid)){ if(this.currentValidKids.includes(currentKid)){
const cert = {kid:currentKid, certificate: response.data}; const cert = {kid:currentKid, certificate: response.data};
this.certificatesCollection[currentKid] = await this.parseCertificate(response.data); this.certificatesCollection.push(cert);
} }
exit = (response.status !== 200); exit = (response.status !== 200);
} }
@ -79,55 +64,4 @@ export class CertificateDownloader{
console.log('could not get keyChild ', error); console.log('could not get keyChild ', error);
} }
} }
private async parseCertificate(certificate:string):Promise<CertificateData>{
const result:CertificateData = {
serialNumber: '',
subject: 'UNKNOWN',
issuer: 'UNKNOWN',
notBefore: new Date('2020-01-01'),
notAfter: new Date('2030-01-01'),
signatureAlgorithm: '',
fingerprint: '',
publicKeyAlgorithm:'',
publicKeyPem:''
};
try{
const cert = new X509Certificate(certificate);
const publicInfo = await this.exportKey(cert.publicKey);
result.serialNumber = cert.serialNumber;
result.subject = cert.subject;
result.issuer = cert.issuer;
result.notAfter = cert.notAfter;
result.notBefore = cert.notBefore;
result.signatureAlgorithm = cert.signatureAlgorithm;
result.fingerprint = Buffer.from(await cert.getThumbprint(crypto)).toString('hex');
result.publicKeyAlgorithm = publicInfo.publicKeyAlgorithm;
result.publicKeyPem = publicInfo.publicKeyPem;
} catch (error) {
console.log('This certificate has returned this error');
const publicInfo = await this.exportKey(new PublicKey(certificate));
result.publicKeyAlgorithm = publicInfo.publicKeyAlgorithm;
result.publicKeyPem = publicInfo.publicKeyPem;
}
return result;
}
/**
* @param {PublicKey} pubkey
* @returns {Promise<{
* publicKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams;
* publicKeyPem: string;
* }>}
*/
async exportKey(publicKey:PublicKey): Promise<{publicKeyAlgorithm:KeyAlgorithm, publicKeyPem:string}> {
const public_key = await publicKey.export(crypto);
const spki = await crypto.subtle.exportKey('spki', public_key);
// Export the certificate data.
return {
publicKeyAlgorithm: public_key.algorithm,
publicKeyPem: Buffer.from(spki).toString('base64')
};
}
} }

View File

@ -2,8 +2,11 @@ import { CertificateDownloader } from '../SettingsDownloader/CertificateDownload
import { RuleDownloader } from '../SettingsDownloader/RuleDownloader'; import { RuleDownloader } from '../SettingsDownloader/RuleDownloader';
import { CheckResult, VaccineVerifier } from './VaccineVerifier'; import { CheckResult, VaccineVerifier } from './VaccineVerifier';
import {DCC} from 'dcc-utils'; import {DCC} from 'dcc-utils';
import jsrsasign from 'jsrsasign';
interface certificateResponse { interface certificateResponse {
signature:string, signature:{
valid: boolean
},
valid:CheckResult, valid:CheckResult,
info:{ info:{
identity:{ identity:{
@ -35,16 +38,36 @@ export default class Verifier {
} }
async checkCertificate(certificate:string): Promise<certificateResponse>{ async checkCertificate(certificate:string): Promise<certificateResponse>{
let result:certificateResponse = {signature:'unsigned', valid:{valid:false, message:'nd'}, info:{identity:{fnt:'nd',fn:'nd',gnt:'nd',gn:'nd'},dob:'nd'}}; let result:certificateResponse = {signature:{valid: false}, valid:{valid:false, message:'nd'}, info:{identity:{fnt:'nd',fn:'nd',gnt:'nd',gn:'nd'},dob:'nd'}};
try { try {
const dcc = await DCC.fromRaw(certificate); const dcc = await DCC.fromRaw(certificate);
const certificateSigner = await dcc.checkSignatureWithKeysList(await this.certDownloader.getCertificates()); const signatureValidity = (await this.checkKey(dcc)).valid;
const vaccineVerifier = new VaccineVerifier(await this.ruleDownloader.getRules()); const vaccineVerifier = new VaccineVerifier(await this.ruleDownloader.getRules());
console.log(dcc); result = {signature:{valid: signatureValidity}, valid: vaccineVerifier.checkCertifcate(dcc.payload), info:{identity:dcc.payload.nam,dob:dcc.payload.dob}};
result = {signature:JSON.stringify(certificateSigner), valid: vaccineVerifier.checkCertifcate((dcc as any)._payload), info:{identity:(dcc as any)._payload.nam,dob:(dcc as any)._payload.dob}};
} catch (error) { } catch (error) {
console.log(error); console.log(error);
result = {signature:'unsigned', valid:{valid:false, message:'nd'}, info:{identity:{fnt:'nd',fn:'nd',gnt:'nd',gn:'nd'},dob:'nd'}}; result = {signature:{valid: false}, valid:{valid:false, message:'nd'}, info:{identity:{fnt:'nd',fn:'nd',gnt:'nd',gn:'nd'},dob:'nd'}};
}
return result;
}
async checkKey(dcc:DCC):Promise<{valid:boolean, key?:string}>{
const publicCertificateCollection = await this.certDownloader.getCertificates();
const result = {valid:false, key: ''};
for(const tupla of publicCertificateCollection){
try {
const cECDSA = (jsrsasign.KEYUTIL
.getKey('-----BEGIN CERTIFICATE-----\n' + tupla.certificate+ '-----END CERTIFICATE-----') as jsrsasign.KJUR.crypto.ECDSA).getPublicKeyXYHex();
const signCheckResult = await dcc.checkSignature(cECDSA);
if(signCheckResult){
result.valid = true;
result.key = tupla.kid;
break;
}
} catch (error) {
if(error.message != 'Signature missmatch')
console.log(error); //to silence the errors
}
} }
return result; return result;
} }

View File

@ -1,389 +0,0 @@
{
"country-2-codes": [
"AD",
"AE",
"AF",
"AG",
"AI",
"AL",
"AM",
"AO",
"AQ",
"AR",
"AS",
"AT",
"AU",
"AW",
"AX",
"AZ",
"BA",
"BB",
"BD",
"BE",
"BF",
"BG",
"BH",
"BI",
"BJ",
"BL",
"BM",
"BN",
"BO",
"BQ",
"BR",
"BS",
"BT",
"BV",
"BW",
"BY",
"BZ",
"CA",
"CC",
"CD",
"CF",
"CG",
"CH",
"CI",
"CK",
"CL",
"CM",
"CN",
"CO",
"CR",
"CU",
"CV",
"CW",
"CX",
"CY",
"CZ",
"DE",
"DJ",
"DK",
"DM",
"DO",
"DZ",
"EC",
"EE",
"EG",
"EH",
"ER",
"ES",
"ET",
"FI",
"FJ",
"FK",
"FM",
"FO",
"FR",
"GA",
"GB",
"GD",
"GE",
"GF",
"GG",
"GH",
"GI",
"GL",
"GM",
"GN",
"GP",
"GQ",
"GR",
"GS",
"GT",
"GU",
"GW",
"GY",
"HK",
"HM",
"HN",
"HR",
"HT",
"HU",
"ID",
"IE",
"IL",
"IM",
"IN",
"IO",
"IQ",
"IR",
"IS",
"IT",
"JE",
"JM",
"JO",
"JP",
"KE",
"KG",
"KH",
"KI",
"KM",
"KN",
"KP",
"KR",
"KW",
"KY",
"KZ",
"LA",
"LB",
"LC",
"LI",
"LK",
"LR",
"LS",
"LT",
"LU",
"LV",
"LY",
"MA",
"MC",
"MD",
"ME",
"MF",
"MG",
"MH",
"MK",
"ML",
"MM",
"MN",
"MO",
"MP",
"MQ",
"MR",
"MS",
"MT",
"MU",
"MV",
"MW",
"MX",
"MY",
"MZ",
"NA",
"NC",
"NE",
"NF",
"NG",
"NI",
"NL",
"NO",
"NP",
"NR",
"NU",
"NZ",
"OM",
"PA",
"PE",
"PF",
"PG",
"PH",
"PK",
"PL",
"PM",
"PN",
"PR",
"PS",
"PT",
"PW",
"PY",
"QA",
"RE",
"RO",
"RS",
"RU",
"RW",
"SA",
"SB",
"SC",
"SD",
"SE",
"SG",
"SH",
"SI",
"SJ",
"SK",
"SL",
"SM",
"SN",
"SO",
"SR",
"SS",
"ST",
"SV",
"SX",
"SY",
"SZ",
"TC",
"TD",
"TF",
"TG",
"TH",
"TJ",
"TK",
"TL",
"TM",
"TN",
"TO",
"TR",
"TT",
"TV",
"TW",
"TZ",
"UA",
"UG",
"UM",
"US",
"UY",
"UZ",
"VA",
"VC",
"VE",
"VG",
"VI",
"VN",
"VU",
"WF",
"WS",
"YE",
"YT",
"ZA",
"ZM",
"ZW"
],
"disease-agent-targeted": [
"840539006"
],
"covid-19-lab-test-manufacturer-and-name": [
"1065",
"1097",
"1114",
"1144",
"1162",
"1173",
"1180",
"1190",
"1199",
"1201",
"1215",
"1218",
"1223",
"1225",
"1232",
"1236",
"1242",
"1244",
"1253",
"1257",
"1263",
"1266",
"1267",
"1268",
"1271",
"1278",
"1295",
"1296",
"1304",
"1319",
"1331",
"1333",
"1341",
"1343",
"1360",
"1363",
"1365",
"1375",
"1392",
"1420",
"1437",
"1443",
"1456",
"1466",
"1468",
"1481",
"1484",
"1489",
"1490",
"1501",
"1574",
"1604",
"1606",
"1654",
"1736",
"1747",
"1763",
"1764",
"1767",
"1769",
"1815",
"1822",
"1833",
"1844",
"1870",
"1884",
"1906",
"1919",
"1934",
"2010",
"2017",
"2029",
"2074",
"2098",
"2101",
"2103",
"2104",
"2108",
"2109",
"2116",
"2128",
"2130",
"2139",
"2183",
"308",
"344",
"345",
"768"
],
"covid-19-lab-result": [
"260373001",
"260415000"
],
"covid-19-lab-test-type": [
"LP217198-3",
"LP6464-4"
],
"vaccines-covid-19-auth-holders": [
"Bharat-Biotech",
"Gamaleya-Research-Institute",
"ORG-100001417",
"ORG-100001699",
"ORG-100006270",
"ORG-100010771",
"ORG-100013793",
"ORG-100020693",
"ORG-100024420",
"ORG-100030215",
"ORG-100031184",
"ORG-100032020",
"Sinovac-Biotech",
"Vector-Institute"
],
"vaccines-covid-19-names": [
"BBIBP-CorV",
"CVnCoV",
"Convidecia",
"CoronaVac",
"Covaxin",
"EU/1/20/1507",
"EU/1/20/1525",
"EU/1/20/1528",
"EU/1/21/1529",
"EpiVacCorona",
"Inactivated-SARS-CoV-2-Vero-Cell",
"Sputnik-V"
],
"sct-vaccines-covid-19": [
"1119305005",
"1119349007",
"J07BX03"
]
}

View File

@ -7,7 +7,6 @@ export const get = async (req: Request, res: Response):Promise<void> => {
const cert = req.body['key']; const cert = req.body['key'];
try { try {
const result = await verifier.checkCertificate(cert); const result = await verifier.checkCertificate(cert);
// const result = '';
res.status(200).send(result); res.status(200).send(result);
} catch (error) { } catch (error) {
res.status(200).send({message:'unsigned certificate',error}); res.status(200).send({message:'unsigned certificate',error});

View File

@ -7,7 +7,7 @@ const app = express();
app.set('port', process.env.PORT || 5050); app.set('port', process.env.PORT || 5050);
app.use(cors()); app.use(cors());
app.use(express.json()); app.use(express.json());
app.use(express.urlencoded({ extended: true })); app.use(express.urlencoded());
setupApis(app); setupApis(app);
export default app; export default app;

View File

@ -33,7 +33,7 @@
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */ // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
"resolveJsonModule": true, /* Enable importing .json files */ // "resolveJsonModule": true, /* Enable importing .json files */
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */ // "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
/* JavaScript Support */ /* JavaScript Support */