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

@macpaw/browser-deeplink

Package Overview
Dependencies
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@macpaw/browser-deeplink - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

7

dist/index.js

@@ -22,6 +22,7 @@ 'use strict';

function browserDeeplink(appLink, options) {
if ( options === void 0 ) options = {};
if ( options === void 0 ) options = {
waitTimeout: 200,
};
var waitTimeout = options.waitTimeout;
var WAIT_TIMEOUT = typeof (waitTimeout) === 'number' ? options.wait : 200;

@@ -34,3 +35,3 @@ return new Promise((function (resolve, reject) {

reject(Error(("Can't open " + appLink)));
}, WAIT_TIMEOUT);
}, waitTimeout);

@@ -37,0 +38,0 @@ function windowBlurListener() {

{
"name": "@macpaw/browser-deeplink",
"version": "1.0.1",
"version": "1.1.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "src/index",

declare module '@macpaw/browser-deeplink' {
export function browserDeeplink(appLink : string): Promise<void>;
export function browserDeeplink(appLink : string, options: {
waitTimeout?: number
}): Promise<void>;
}

@@ -17,5 +17,6 @@ function injectIframe(src) {

export function browserDeeplink(appLink, options = {}) {
export function browserDeeplink(appLink, options = {
waitTimeout: 200,
}) {
const { waitTimeout } = options;
const WAIT_TIMEOUT = typeof (waitTimeout) === 'number' ? options.wait : 200;

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

reject(Error(`Can't open ${appLink}`));
}, WAIT_TIMEOUT);
}, waitTimeout);

@@ -31,0 +32,0 @@ function windowBlurListener() {

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