@vlayer/sdk 0.1.0-nightly-20241118-9dc23ab → 0.1.0-nightly-20241119-01139f4
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.
@@ -10,8 +10,9 @@ export async function parseEmail(mime) {
|
|
10
10
|
}
|
11
11
|
export function getDkimSigners(mail) {
|
12
12
|
const dkimHeader = mail.headers.filter((h) => h.key === "dkim-signature");
|
13
|
-
if (dkimHeader.length === 0)
|
13
|
+
if (dkimHeader.length === 0) {
|
14
14
|
throw new DkimParsingError("No DKIM header found");
|
15
|
+
}
|
15
16
|
return dkimHeader.map(parseHeader);
|
16
17
|
}
|
17
18
|
export function parseParams(str) {
|
@@ -11,7 +11,7 @@ class ExtensionWebProofProvider {
|
|
11
11
|
}
|
12
12
|
notifyZkProvingStatus(status) {
|
13
13
|
if (typeof chrome !== "undefined") {
|
14
|
-
|
14
|
+
chrome.runtime.sendMessage(EXTENSION_ID, {
|
15
15
|
action: 1 /* ExtensionAction.NotifyZkProvingStatus */,
|
16
16
|
payload: { status },
|
17
17
|
});
|
@@ -11,10 +11,10 @@ export declare const enum ExtensionAction {
|
|
11
11
|
NotifyZkProvingStatus = 1
|
12
12
|
}
|
13
13
|
export declare enum ZkProvingStatus {
|
14
|
-
NotStarted = "
|
15
|
-
Proving = "
|
16
|
-
Done = "
|
17
|
-
Error = "
|
14
|
+
NotStarted = "NotStarted",
|
15
|
+
Proving = "Proving",
|
16
|
+
Done = "Done",
|
17
|
+
Error = "Error"
|
18
18
|
}
|
19
19
|
export type MessageToExtension = {
|
20
20
|
action: ExtensionAction.RequestWebProof;
|
@@ -5,10 +5,10 @@ export const EXTENSION_STEP = {
|
|
5
5
|
};
|
6
6
|
export var ZkProvingStatus;
|
7
7
|
(function (ZkProvingStatus) {
|
8
|
-
ZkProvingStatus["NotStarted"] = "
|
9
|
-
ZkProvingStatus["Proving"] = "
|
10
|
-
ZkProvingStatus["Done"] = "
|
11
|
-
ZkProvingStatus["Error"] = "
|
8
|
+
ZkProvingStatus["NotStarted"] = "NotStarted";
|
9
|
+
ZkProvingStatus["Proving"] = "Proving";
|
10
|
+
ZkProvingStatus["Done"] = "Done";
|
11
|
+
ZkProvingStatus["Error"] = "Error";
|
12
12
|
})(ZkProvingStatus || (ZkProvingStatus = {}));
|
13
13
|
export var ExtensionMessageType;
|
14
14
|
(function (ExtensionMessageType) {
|
package/package.json
CHANGED