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

@slide-computer/signer-transport-plug

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slide-computer/signer-transport-plug - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

29

lib/cjs/plugChannel.js

@@ -7,3 +7,3 @@ "use strict";

};
var _PlugChannel_responseListeners;
var _PlugChannel_closeListeners, _PlugChannel_responseListeners;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,13 +14,14 @@ exports.PlugChannel = void 0;

constructor() {
_PlugChannel_closeListeners.set(this, new Set());
_PlugChannel_responseListeners.set(this, new Set());
}
get closed() {
return !('ic' in window)
|| typeof window.ic !== 'object'
|| !window.ic
|| !("plug" in window.ic)
|| typeof window.ic.plug !== 'object'
|| !window.ic.plug
|| !('request' in window.ic.plug)
|| typeof window.ic.plug.request !== 'function';
return (!("ic" in window) ||
typeof window.ic !== "object" ||
!window.ic ||
!("plug" in window.ic) ||
typeof window.ic.plug !== "object" ||
!window.ic.plug ||
!("request" in window.ic.plug) ||
typeof window.ic.plug.request !== "function");
}

@@ -30,3 +31,5 @@ addEventListener(...[event, listener]) {

case "close":
__classPrivateFieldGet(this, _PlugChannel_closeListeners, "f").add(listener);
return () => {
__classPrivateFieldGet(this, _PlugChannel_closeListeners, "f").delete(listener);
};

@@ -41,4 +44,5 @@ case "response":

async send(request) {
if (this.closed)
if (this.closed) {
throw new plugTransport_1.PlugTransportError("Plug wallet cannot be found");
}
// @ts-ignore Call plug window method

@@ -52,7 +56,6 @@ const response = await window.ic.plug.request(request);

}
async close() {
}
async close() { }
}
exports.PlugChannel = PlugChannel;
_PlugChannel_responseListeners = new WeakMap();
_PlugChannel_closeListeners = new WeakMap(), _PlugChannel_responseListeners = new WeakMap();
//# sourceMappingURL=plugChannel.js.map

@@ -6,3 +6,3 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {

};
var _PlugChannel_responseListeners;
var _PlugChannel_closeListeners, _PlugChannel_responseListeners;
import {} from "@slide-computer/signer";

@@ -12,13 +12,14 @@ import { PlugTransportError } from "./plugTransport";

constructor() {
_PlugChannel_closeListeners.set(this, new Set());
_PlugChannel_responseListeners.set(this, new Set());
}
get closed() {
return !('ic' in window)
|| typeof window.ic !== 'object'
|| !window.ic
|| !("plug" in window.ic)
|| typeof window.ic.plug !== 'object'
|| !window.ic.plug
|| !('request' in window.ic.plug)
|| typeof window.ic.plug.request !== 'function';
return (!("ic" in window) ||
typeof window.ic !== "object" ||
!window.ic ||
!("plug" in window.ic) ||
typeof window.ic.plug !== "object" ||
!window.ic.plug ||
!("request" in window.ic.plug) ||
typeof window.ic.plug.request !== "function");
}

@@ -28,3 +29,5 @@ addEventListener(...[event, listener]) {

case "close":
__classPrivateFieldGet(this, _PlugChannel_closeListeners, "f").add(listener);
return () => {
__classPrivateFieldGet(this, _PlugChannel_closeListeners, "f").delete(listener);
};

@@ -39,4 +42,5 @@ case "response":

async send(request) {
if (this.closed)
if (this.closed) {
throw new PlugTransportError("Plug wallet cannot be found");
}
// @ts-ignore Call plug window method

@@ -50,6 +54,5 @@ const response = await window.ic.plug.request(request);

}
async close() {
}
async close() { }
}
_PlugChannel_responseListeners = new WeakMap();
_PlugChannel_closeListeners = new WeakMap(), _PlugChannel_responseListeners = new WeakMap();
//# sourceMappingURL=plugChannel.js.map
{
"name": "@slide-computer/signer-transport-plug",
"version": "3.4.0",
"version": "3.5.0",
"author": "Slide",

@@ -46,4 +46,4 @@ "license": "MIT",

"@dfinity/principal": "^2.0.0",
"@slide-computer/signer": "^3.4.0",
"@slide-computer/signer-storage": "^3.4.0"
"@slide-computer/signer": "^3.5.0",
"@slide-computer/signer-storage": "^3.5.0"
},

@@ -50,0 +50,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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