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

@codexteam/deeplinker

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codexteam/deeplinker - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist/deeplinker.js

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

var deeplinker=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n){e.exports=(()=>{const e=e=>{e||r("Can not open app, because appLink is undefined");let n=document.createElement("iframe");n.style.display="none",document.body.appendChild(n),null!==n&&(n.src=e)},n=(n,r)=>{let o=!1;window.addEventListener("pagehide",()=>{o=!0},!1),window.addEventListener("blur",()=>{o=!0},!1),e(n),setTimeout(()=>{o||t(r)},100)},t=e=>{e||r("Can not open page because link is undefined"),window.open(e,"_blank")},r=e=>{throw Error("[Deeplinker] "+e)};return{click:e=>{"object"!=typeof e&&r("Passed element is not an object");let t=e.dataset.link||e.href,o=e.dataset.appLink;n(o,t)},tryToOpenApp:e}})()}]);
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.deeplinker=n():e.deeplinker=n()}(window,function(){return function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n){e.exports=(()=>{const e=e=>{e||o("Can not open app, because appLink is undefined");let n=document.createElement("iframe");n.style.display="none",document.body.appendChild(n),null!==n&&(n.src=e)},n=(n,o)=>{let r=!1;window.addEventListener("pagehide",()=>{r=!0},!1),window.addEventListener("blur",()=>{r=!0},!1),e(n),setTimeout(()=>{r||t(o)},100)},t=e=>{e||o("Can not open page because link is undefined"),window.open(e,"_blank")},o=e=>{throw Error("[Deeplinker] "+e)};return{click:e=>{"object"!=typeof e&&o("Passed element is not an object");let t=e.dataset.link||e.href,r=e.dataset.appLink;n(r,t)},tryToOpenApp:e}})()}])});
{
"name": "@codexteam/deeplinker",
"version": "1.0.1",
"version": "1.0.2",
"description": "Tiny script that helps you upgrade links to open apps directly if it is possible",

@@ -8,3 +8,3 @@ "keywords": ["deeplink", "scheme", "protocol"],

"scripts": {
"build": "webpack -o dist/deeplinker.js --verbose --mode production --output-library deeplinker"
"build": "webpack -o dist/deeplinker.js --verbose --mode production --output-library deeplinker --output-library-target umd"
},

@@ -11,0 +11,0 @@ "author": {

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