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

@keplr-wallet/popup

Package Overview
Dependencies
Maintainers
1
Versions
596
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keplr-wallet/popup - npm Package Compare versions

Comparing version 0.9.0 to 0.9.6

6

build/index.d.ts

@@ -0,1 +1,5 @@

export declare const PopupSize: {
width: number;
height: number;
};
/**

@@ -7,3 +11,3 @@ * Try open window if no previous window exists.

*/
export declare function openPopupWindow(url: string, channel?: string): Promise<number>;
export declare function openPopupWindow(url: string, channel?: string, options?: Partial<Parameters<typeof browser.windows.create>[0]>): Promise<number>;
export declare function closePopupWindow(channel: string): void;

@@ -10,0 +14,0 @@ /**

19

build/index.js

@@ -12,4 +12,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.enableScroll = exports.disableScroll = exports.fitPopupWindow = exports.closePopupWindow = exports.openPopupWindow = void 0;
const PopupSize = {
exports.enableScroll = exports.disableScroll = exports.fitPopupWindow = exports.closePopupWindow = exports.openPopupWindow = exports.PopupSize = void 0;
exports.PopupSize = {
width: 360,

@@ -25,11 +25,6 @@ height: 580,

*/
function openPopupWindow(url, channel = "default") {
function openPopupWindow(url, channel = "default", options = {}) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
const option = {
width: PopupSize.width,
height: PopupSize.height,
url: url,
type: "popup",
};
const option = Object.assign({ width: exports.PopupSize.width, height: exports.PopupSize.height, url: url, type: "popup" }, options);
if (lastWindowIds[channel] !== undefined) {

@@ -98,4 +93,4 @@ try {

browser.windows.update(window.id, {
width: PopupSize.width + gap.width,
height: PopupSize.height + gap.height,
width: exports.PopupSize.width + gap.width,
height: exports.PopupSize.height + gap.height,
});

@@ -106,3 +101,3 @@ }

}
window.resizeTo(PopupSize.width + gap.width, PopupSize.height + gap.height);
window.resizeTo(exports.PopupSize.width + gap.width, exports.PopupSize.height + gap.height);
}

@@ -109,0 +104,0 @@ exports.fitPopupWindow = fitPopupWindow;

{
"name": "@keplr-wallet/popup",
"version": "0.9.0",
"version": "0.9.6",
"main": "build/index.js",

@@ -19,3 +19,3 @@ "author": "chainapsis",

},
"gitHead": "7b44031f1ca4f99e800b3b66bc5d7585197ea202"
"gitHead": "e78b5b9d3a30e42a28cace30ed4b97a14bc92803"
}

@@ -1,2 +0,2 @@

const PopupSize = {
export const PopupSize = {
width: 360,

@@ -16,3 +16,4 @@ height: 580,

url: string,
channel: string = "default"
channel: string = "default",
options: Partial<Parameters<typeof browser.windows.create>[0]> = {}
): Promise<number> {

@@ -24,2 +25,3 @@ const option = {

type: "popup" as const,
...options,
};

@@ -26,0 +28,0 @@

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