Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bloks/link-session-manager

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bloks/link-session-manager - npm Package Compare versions

Comparing version 0.2.661 to 0.2.662

5

lib/index.d.ts
/**
* proton-link-session-manager v0.2.661
* proton-link-session-manager v0.2.662
* https://github.com/greymass/proton-link-session-manager

@@ -98,3 +98,2 @@ *

onIncomingRequest(payload: string): any;
onStorageUpdate(storage: string): any;
onSocketEvent?(type: string, event: any): any;

@@ -108,6 +107,4 @@ }

addSession(session: ProtonLinkSessionManagerSession): void;
getSession(chainId: Checksum256Type, account: NameType, permission: NameType): ProtonLinkSessionManagerSession | undefined;
clearSessions(): void;
removeSession(session: ProtonLinkSessionManagerSession): void;
save(): void;
updateLastUsed(publicKey: PublicKey): void;

@@ -114,0 +111,0 @@ connect(): Promise<unknown>;

12

lib/index.js
/**
* proton-link-session-manager v0.2.661
* proton-link-session-manager v0.2.662
* https://github.com/greymass/proton-link-session-manager

@@ -327,21 +327,11 @@ *

this.storage.add(session);
this.handler.onStorageUpdate(this.storage.serialize());
};
ProtonLinkSessionManager.prototype.getSession = function (chainId, account, permission) {
return this.storage.get(eosio.Checksum256.from(chainId), eosio.Name.from(account), eosio.Name.from(permission));
};
ProtonLinkSessionManager.prototype.clearSessions = function () {
this.storage.clear();
this.handler.onStorageUpdate(this.storage.serialize());
};
ProtonLinkSessionManager.prototype.removeSession = function (session) {
this.storage.remove(session);
this.handler.onStorageUpdate(this.storage.serialize());
};
ProtonLinkSessionManager.prototype.save = function () {
this.handler.onStorageUpdate(this.storage.serialize());
};
ProtonLinkSessionManager.prototype.updateLastUsed = function (publicKey) {
this.storage.updateLastUsed(publicKey);
this.handler.onStorageUpdate(this.storage.serialize());
};

@@ -348,0 +338,0 @@ ProtonLinkSessionManager.prototype.connect = function () {

/**
* proton-link-session-manager v0.2.661
* proton-link-session-manager v0.2.662
* https://github.com/greymass/proton-link-session-manager

@@ -37,3 +37,3 @@ *

import { __decorate } from 'tslib';
import { Struct, Checksum512, Serializer, Bytes, Checksum256, Name, PrivateKey, PublicKey } from '@greymass/eosio';
import { Struct, Checksum512, Serializer, Bytes, PrivateKey, Checksum256, Name, PublicKey } from '@greymass/eosio';
import { AES_CBC } from '@jafri/asmcrypto.js';

@@ -281,21 +281,11 @@ import { DEFAULT_SCHEME, SigningRequest } from '@bloks/signing-request';

this.storage.add(session);
this.handler.onStorageUpdate(this.storage.serialize());
}
getSession(chainId, account, permission) {
return this.storage.get(Checksum256.from(chainId), Name.from(account), Name.from(permission));
}
clearSessions() {
this.storage.clear();
this.handler.onStorageUpdate(this.storage.serialize());
}
removeSession(session) {
this.storage.remove(session);
this.handler.onStorageUpdate(this.storage.serialize());
}
save() {
this.handler.onStorageUpdate(this.storage.serialize());
}
updateLastUsed(publicKey) {
this.storage.updateLastUsed(publicKey);
this.handler.onStorageUpdate(this.storage.serialize());
}

@@ -302,0 +292,0 @@ connect() {

{
"name": "@bloks/link-session-manager",
"description": "Session management for signature providers when receiving requests using the Anchor Link protocol",
"version": "0.2.661",
"version": "0.2.662",
"homepage": "https://github.com/greymass/proton-link-session-manager",

@@ -6,0 +6,0 @@ "license": "BSD-3-Clause",

@@ -26,3 +26,2 @@ import RobustWebSocket from './websocket'

onIncomingRequest(payload: string)
onStorageUpdate(storage: string)
onSocketEvent?(type: string, event: any)

@@ -44,20 +43,6 @@ }

this.storage.add(session)
this.handler.onStorageUpdate(this.storage.serialize())
}
getSession(
chainId: Checksum256Type,
account: NameType,
permission: NameType
): ProtonLinkSessionManagerSession | undefined {
return this.storage.get(
Checksum256.from(chainId),
Name.from(account),
Name.from(permission)
)
}
clearSessions() {
this.storage.clear()
this.handler.onStorageUpdate(this.storage.serialize())
}

@@ -67,12 +52,6 @@

this.storage.remove(session)
this.handler.onStorageUpdate(this.storage.serialize())
}
save() {
this.handler.onStorageUpdate(this.storage.serialize())
}
updateLastUsed(publicKey: PublicKey) {
this.storage.updateLastUsed(publicKey)
this.handler.onStorageUpdate(this.storage.serialize())
}

@@ -79,0 +58,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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