@zkpassport/sdk 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -932,7 +932,7 @@ var ZKPassport = class {
|
|
|
932
932
|
}
|
|
933
933
|
//private wasmVerifierInit: boolean = false
|
|
934
934
|
normalizeDomain(domain) {
|
|
935
|
-
return domain.trim().replace(/^https?:\/\//, "").replace(
|
|
935
|
+
return domain.trim().replace(/^https?:\/\//, "").replace(/\/[^/]*$/, "").replace(/:[0-9]+/, "").replace(/\?.*$/, "").replace(/#.*$/, "").toLowerCase();
|
|
936
936
|
}
|
|
937
937
|
async handleResult(topic) {
|
|
938
938
|
const result = this.topicToResults[topic];
|
package/dist/esm/index.js
CHANGED
|
@@ -937,7 +937,7 @@ var ZKPassport = class {
|
|
|
937
937
|
}
|
|
938
938
|
//private wasmVerifierInit: boolean = false
|
|
939
939
|
normalizeDomain(domain) {
|
|
940
|
-
return domain.trim().replace(/^https?:\/\//, "").replace(
|
|
940
|
+
return domain.trim().replace(/^https?:\/\//, "").replace(/\/[^/]*$/, "").replace(/:[0-9]+/, "").replace(/\?.*$/, "").replace(/#.*$/, "").toLowerCase();
|
|
941
941
|
}
|
|
942
942
|
async handleResult(topic) {
|
|
943
943
|
const result = this.topicToResults[topic];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkpassport/sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Privacy-preserving identity verification using passports and ID cards",
|
|
5
5
|
"author": "ZKPassport",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@noble/secp256k1": "^2.2.3",
|
|
38
38
|
"@obsidion/bridge": "^0.10.4",
|
|
39
39
|
"@zkpassport/registry": "0.10.2",
|
|
40
|
-
"@zkpassport/utils": "0.22.
|
|
40
|
+
"@zkpassport/utils": "0.22.7",
|
|
41
41
|
"buffer": "^6.0.3",
|
|
42
42
|
"i18n-iso-countries": "^7.12.0",
|
|
43
43
|
"pako": "^2.1.0",
|