New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vlayer/sdk

Package Overview
Dependencies
Maintainers
0
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vlayer/sdk - npm Package Compare versions

Comparing version 0.1.0-nightly-20241003-fda6b77 to 0.1.0-nightly-20241004-5959d02

9

package.json

@@ -5,3 +5,3 @@ {

"module": "src/index.ts",
"version": "0.1.0-nightly-20241003-fda6b77",
"version": "0.1.0-nightly-20241004-5959d02",
"types": "src/index.ts",

@@ -26,4 +26,7 @@ "scripts": {

"viem": "^2.21.0",
"zod": "^3.23.8"
}
"@vlayer/web-proof-commons": "file:../../web-proof-commons"
},
"bundleDependencies": [
"@vlayer/web-proof-commons"
]
}

@@ -12,11 +12,2 @@ import { WebProof } from "types/webProof.ts";

export const EXTENSION_ACTION = {
requestWebProof: "requestWebProof",
} as const;
export const EXTENSION_MESSAGE = {
proofDone: "proofDone",
proofError: "proofError",
} as const;
export type ExtensionStep =

@@ -23,0 +14,0 @@ (typeof EXTENSION_STEP)[keyof typeof EXTENSION_STEP];

import {
EXTENSION_ACTION,
EXTENSION_MESSAGE,
type WebProofProvider,

@@ -9,2 +7,7 @@ type WebProofProviderSetup,

import {
ExtensionAction,
ExtensionMessage,
} from "@vlayer/web-proof-commons/constants/message";
import { WebProof } from "../../lib/types/webProof";

@@ -40,3 +43,3 @@

chrome.runtime.sendMessage(import.meta.env.VITE_EXTENSION_ID, {
action: EXTENSION_ACTION.requestWebProof,
action: ExtensionAction.RequestWebProof,
payload: {

@@ -56,14 +59,14 @@ notaryUrl,

| {
type: typeof EXTENSION_MESSAGE.proofDone;
type: ExtensionMessage.ProofDone;
proof: WebProof;
}
| {
type: typeof EXTENSION_MESSAGE.proofError;
type: ExtensionMessage.ProofError;
error: { message: string };
},
) => {
if (message.type === EXTENSION_MESSAGE.proofDone) {
if (message.type === ExtensionMessage.ProofDone) {
resolve(message.proof);
}
if (message.type === EXTENSION_MESSAGE.proofError) {
if (message.type === ExtensionMessage.ProofError) {
reject(message.error);

@@ -70,0 +73,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc