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

@bloks/browser-transport

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bloks/browser-transport - npm Package Compare versions

Comparing version 3.2.1-22 to 3.2.1-23

5

lib/proton-browser-transport.d.ts
/**
* Proton Browser Transport v3.2.1-22
* Proton Browser Transport v3.2.1-23
* https://github.com/protonprotocol/proton-browser-transport

@@ -118,3 +118,2 @@ *

export default BrowserTransport;
export { BrowserTransportOptions };
export { BrowserTransportOptions, BrowserTransport as default };

32

lib/proton-browser-transport.m.js
/**
* Proton Browser Transport v3.2.1-22
* Proton Browser Transport v3.2.1-23
* https://github.com/protonprotocol/proton-browser-transport

@@ -571,9 +571,9 @@ *

emptyElement(this.requestEl);
if (!args.hideLogo) {
const logoEl = this.createEl({ class: 'logo' });
if (args.type) {
logoEl.classList.add(args.type);
}
this.requestEl.appendChild(logoEl);
}
// if (!args.hideLogo) {
// const logoEl = this.createEl({class: 'logo'})
// if (args.type) {
// logoEl.classList.add(args.type)
// }
// this.requestEl.appendChild(logoEl)
// }
if (args.content) {

@@ -634,3 +634,3 @@ this.requestEl.appendChild(args.content);

class: 'button',
href: crossDeviceUri,
href: sameDeviceUri,
text: `Open ${this.walletType.replace(/\b[a-z]/g, (letter) => letter.toUpperCase())} Wallet`,

@@ -663,6 +663,6 @@ });

actionEl.appendChild(backgroundEl);
if (isMobile() || this.walletType == 'anchor') {
actionEl.appendChild(divider);
actionEl.appendChild(linkEl);
}
// if (isMobile() || this.walletType == 'anchor') {
actionEl.appendChild(divider);
actionEl.appendChild(linkEl);
// }
let footnote = this.createEl({ class: 'footnote' });

@@ -673,3 +673,3 @@ const isIdentity = request.isIdentity();

class: 'footnote',
text: `Don't have ${this.walletType.replace(/\b[a-z]/g, (letter) => letter.toUpperCase())} Wallet? `,
text: `Don't have a wallet? `,
});

@@ -968,3 +968,3 @@ const footnoteLink = this.createEl({

/** Package version. */
BrowserTransport.version = '3.2.1-22'; // replaced by build script
BrowserTransport.version = '3.2.1-23'; // replaced by build script
function waitForEvent(element, eventName, timeout) {

@@ -1074,3 +1074,3 @@ return new Promise((resolve, reject) => {

export default BrowserTransport;
export { BrowserTransport as default };
//# sourceMappingURL=proton-browser-transport.m.js.map
{
"name": "@bloks/browser-transport",
"version": "3.2.1-22",
"version": "3.2.1-23",
"description": "Vanilla JS browser transport for Proton Link",

@@ -19,3 +19,3 @@ "homepage": "https://github.com/protonprotocol/proton-browser-transport",

"dependencies": {
"@bloks/qrcode": "^0.1.0",
"@bloks/qrcode": "^0.1.1",
"tslib": "^2.0.3"

@@ -22,0 +22,0 @@ },

@@ -272,9 +272,9 @@ import {

if (!args.hideLogo) {
const logoEl = this.createEl({class: 'logo'})
if (args.type) {
logoEl.classList.add(args.type)
}
this.requestEl.appendChild(logoEl)
}
// if (!args.hideLogo) {
// const logoEl = this.createEl({class: 'logo'})
// if (args.type) {
// logoEl.classList.add(args.type)
// }
// this.requestEl.appendChild(logoEl)
// }

@@ -344,3 +344,3 @@ if (args.content) {

class: 'button',
href: crossDeviceUri,
href: sameDeviceUri,
text: `Open ${this.walletType.replace(/\b[a-z]/g, (letter) =>

@@ -379,6 +379,6 @@ letter.toUpperCase()

if (isMobile() || this.walletType == 'anchor') {
// if (isMobile() || this.walletType == 'anchor') {
actionEl.appendChild(divider)
actionEl.appendChild(linkEl)
}
// }

@@ -390,5 +390,3 @@ let footnote: HTMLElement = this.createEl({class: 'footnote'})

class: 'footnote',
text: `Don't have ${this.walletType.replace(/\b[a-z]/g, (letter) =>
letter.toUpperCase()
)} Wallet? `,
text: `Don't have a wallet? `,
})

@@ -653,3 +651,3 @@ const footnoteLink = this.createEl({

} catch (error) {
if (error[AbortPrepare]) {
if ((error as any)[AbortPrepare]) {
this.hide()

@@ -659,4 +657,4 @@ throw error

// eslint-disable-next-line no-console
console.info(`Skipping resource provider: ${error.message || error}`)
if (error[SkipFee]) {
console.info(`Skipping resource provider: ${(error as any).message || error}`)
if ((error as any)[SkipFee]) {
const modified = request.clone()

@@ -690,3 +688,3 @@ modified.setInfoKey('no_fee', true, 'bool')

public onFailure(request: SigningRequest, error: Error) {
if (request === this.activeRequest && error['code'] !== 'E_CANCEL') {
if (request === this.activeRequest && (error as any)['code'] !== 'E_CANCEL') {
this.clearTimers()

@@ -704,3 +702,3 @@ if (this.requestStatus) {

} else {
errorMessage = error.message || String(error)
errorMessage = (error as any).message || String(error)
}

@@ -707,0 +705,0 @@ this.showDialog({

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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