@vlayer/sdk 0.1.0-nightly-20241002-4630acc → 0.1.0-nightly-20241002-5b36661
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/package.json
CHANGED
@@ -31,8 +31,8 @@ export const createExtensionWebProofProvider = ({
|
|
31
31
|
}: WebProofProviderSetup): WebProofProvider => {
|
32
32
|
return {
|
33
33
|
getWebProof: async function (webProofSetup: WebProofSetupInput) {
|
34
|
-
// TODO: we
|
35
|
-
//
|
34
|
+
// TODO: we can't assume that developer is using vite
|
35
|
+
// VITE_EXTENSION_ID value should be injected by the build system
|
36
36
|
|
37
37
|
return new Promise<WebProof>((resolve, reject) => {
|
38
38
|
chrome.runtime.sendMessage(import.meta.env.VITE_EXTENSION_ID, {
|
@@ -46,7 +46,7 @@ export const createExtensionWebProofProvider = ({
|
|
46
46
|
});
|
47
47
|
const EXTENSION_ID = import.meta.env.VITE_EXTENSION_ID as string;
|
48
48
|
const port = chrome.runtime.connect(EXTENSION_ID);
|
49
|
-
//TODO
|
49
|
+
// TODO: validate message in runtime
|
50
50
|
port.onMessage.addListener(
|
51
51
|
(
|
52
52
|
message:
|