@bloks/link-session-manager
Advanced tools
Comparing version 0.2.608 to 0.2.609
/** | ||
* proton-link-session-manager v0.2.608 | ||
* proton-link-session-manager v0.2.609 | ||
* https://github.com/greymass/proton-link-session-manager | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* proton-link-session-manager v0.2.608 | ||
* proton-link-session-manager v0.2.609 | ||
* https://github.com/greymass/proton-link-session-manager | ||
@@ -45,2 +45,3 @@ * | ||
var signingRequest = require('@bloks/signing-request'); | ||
var zlib = require('pako'); | ||
var asmcrypto_js = require('@jafri/asmcrypto.js'); | ||
@@ -51,2 +52,3 @@ | ||
var WebSocket__default = /*#__PURE__*/_interopDefaultLegacy(WebSocket); | ||
var zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib); | ||
@@ -123,3 +125,4 @@ var SealedMessage = /** @class */ (function (_super) { | ||
if (options === void 0) { options = {}; } | ||
var request = signingRequest.SigningRequest.from(payload, options); | ||
var requestOptions = tslib.__assign(tslib.__assign({}, options), { zlib: options.zlib || zlib__default['default'] }); | ||
var request = signingRequest.SigningRequest.from(payload, requestOptions); | ||
if (!request.isIdentity()) { | ||
@@ -126,0 +129,0 @@ throw new Error('supplied request is not an identity request'); |
/** | ||
* proton-link-session-manager v0.2.608 | ||
* proton-link-session-manager v0.2.609 | ||
* https://github.com/greymass/proton-link-session-manager | ||
@@ -41,2 +41,3 @@ * | ||
import { SigningRequest } from '@bloks/signing-request'; | ||
import zlib from 'pako'; | ||
import { AES_CBC } from '@jafri/asmcrypto.js'; | ||
@@ -98,3 +99,7 @@ | ||
static fromIdentityRequest(network, actor, permission, payload, options = {}) { | ||
const request = SigningRequest.from(payload, options); | ||
const requestOptions = { | ||
...options, | ||
zlib: options.zlib || zlib, | ||
}; | ||
const request = SigningRequest.from(payload, requestOptions); | ||
if (!request.isIdentity()) { | ||
@@ -101,0 +106,0 @@ throw new Error('supplied request is not an identity request'); |
{ | ||
"name": "@bloks/link-session-manager", | ||
"description": "Session management for signature providers when receiving requests using the Anchor Link protocol", | ||
"version": "0.2.608", | ||
"version": "0.2.609", | ||
"homepage": "https://github.com/greymass/proton-link-session-manager", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause", |
@@ -52,3 +52,8 @@ import { | ||
) { | ||
const request = SigningRequest.from(payload, options) | ||
const requestOptions = { | ||
...options, | ||
zlib: options.zlib || zlib, | ||
} | ||
const request = SigningRequest.from(payload, requestOptions) | ||
if (!request.isIdentity()) { | ||
@@ -55,0 +60,0 @@ throw new Error('supplied request is not an identity request') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
79549
1338