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

@canvas-js/interfaces

Package Overview
Dependencies
Maintainers
0
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canvas-js/interfaces - npm Package Compare versions

Comparing version 0.10.10 to 0.11.0

lib/Snapshot.d.ts

1

lib/index.d.ts

@@ -8,2 +8,3 @@ export * from "./Signature.js";

export * from "./Session.js";
export * from "./Snapshot.js";
export * from "./Awaitable.js";

@@ -8,2 +8,3 @@ export * from "./Signature.js";

export * from "./Session.js";
export * from "./Snapshot.js";
export * from "./Awaitable.js";

7

lib/SessionSigner.d.ts
import type { SignatureScheme, Signer } from "./Signer.js";
import type { Session } from "./Session.js";
import type { Action } from "./Action.js";
import type { Snapshot } from "./Snapshot.js";
import type { Awaitable } from "./Awaitable.js";

@@ -16,3 +17,3 @@ export type DidIdentifier = `did:${string}`;

export interface SessionSigner<AuthorizationData = any> {
scheme: SignatureScheme<Action | Session<AuthorizationData>>;
scheme: SignatureScheme<Action | Session<AuthorizationData> | Snapshot>;
match: (did: DidIdentifier) => boolean;

@@ -29,7 +30,7 @@ getDid: () => Awaitable<DidIdentifier>;

payload: Session<AuthorizationData>;
signer: Signer<Action | Session<AuthorizationData>>;
signer: Signer<Action | Session<AuthorizationData> | Snapshot>;
} | null>;
newSession: (topic: string) => Awaitable<{
payload: Session<AuthorizationData>;
signer: Signer<Action | Session<AuthorizationData>>;
signer: Signer<Action | Session<AuthorizationData> | Snapshot>;
}>;

@@ -36,0 +37,0 @@ /**

export class SignerCache {
constructor(signers = []) {
Object.defineProperty(this, "signers", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "default", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
}); // this is exposed just for debugging
this.signers = signers;

@@ -4,0 +16,0 @@ if (signers[0]) {

{
"name": "@canvas-js/interfaces",
"version": "0.10.10",
"version": "0.11.0",
"type": "module",

@@ -16,4 +16,4 @@ "author": "Canvas Technologies, Inc. (https://canvas.xyz)",

"@cosmjs/amino": "^0.32.3",
"@noble/curves": "^1.5.0"
"@noble/curves": "^1.6.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