@thurinlabs/identity-kit 0.7.2 → 0.7.3
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/embed.global.js +5 -2
- package/dist/embed.global.js.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/embed.global.js
CHANGED
|
@@ -39493,11 +39493,13 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
39493
39493
|
queryFn: async () => {
|
|
39494
39494
|
if (!attestations || !address) return [];
|
|
39495
39495
|
const results = [];
|
|
39496
|
+
const logsByIndex = {};
|
|
39497
|
+
for (const l2 of eventData || []) logsByIndex[Number(l2.args.index)] = l2;
|
|
39496
39498
|
for (let i2 = 0; i2 < attestations.length; i2++) {
|
|
39497
39499
|
const att = attestations[i2];
|
|
39498
39500
|
if (att.status !== "success") continue;
|
|
39499
39501
|
const [fingerprint, createdAt, revoked] = att.result;
|
|
39500
|
-
const log =
|
|
39502
|
+
const log = logsByIndex[i2];
|
|
39501
39503
|
const pgpSignature = log?.args?.pgpSignature ?? null;
|
|
39502
39504
|
const pgpPublicKey = log?.args?.pgpPublicKey ?? null;
|
|
39503
39505
|
const txHash = log?.transactionHash ?? null;
|
|
@@ -39618,8 +39620,9 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
39618
39620
|
parse: (m2) => ({ instance: m2[1], user: m2[2] })
|
|
39619
39621
|
}
|
|
39620
39622
|
];
|
|
39623
|
+
var PROOF_NAMESPACES = /* @__PURE__ */ new Set(["proof@thurin.id", "proof@ariadne.id"]);
|
|
39621
39624
|
function identifyProof(notation) {
|
|
39622
|
-
if (notation.name
|
|
39625
|
+
if (!PROOF_NAMESPACES.has(notation.name)) return null;
|
|
39623
39626
|
for (const { provider, label, pattern, parse } of PROVIDERS) {
|
|
39624
39627
|
const m2 = notation.value.match(pattern);
|
|
39625
39628
|
if (m2) {
|