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

url-to-deep-link

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-to-deep-link - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

2

dist/index.js

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

!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(global,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIOSDeepLink=e.getAndroidDeepLink=e.getApp=e.IOS_TARGET=e.ANDROID_TARGET=void 0;var r=u(n(10)),o=u(n(37));function u(t){return t&&t.__esModule?t:{default:t}}var i=e.ANDROID_TARGET="android",c=e.IOS_TARGET="ios",f=e.getApp=function(t){var e=t.match(/([a-zA-z]*).com/);if(e&&e.length>1)return e[1]};e.getAndroidDeepLink=function(t){var e=f(t);if((0,r.default)(o.default).includes(e))return o.default[e](t,i)},e.getIOSDeepLink=function(t){var e=f(t);if((0,r.default)(o.default).includes(e))return o.default[e](t,c)}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(16),o=n(6);t.exports=function(t){return r(o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){t.exports={default:n(11),__esModule:!0}},function(t,e,n){n(12),t.exports=n(1).Object.keys},function(t,e,n){var r=n(13),o=n(14);n(26)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(6);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(15),o=n(25);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(7),o=n(8),u=n(18)(!1),i=n(21)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=i&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~u(a,n)||a.push(n));return a}},function(t,e,n){var r=n(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(8),o=n(19),u=n(20);t.exports=function(t){return function(e,n,i){var c,f=r(e),a=o(f.length),s=u(i,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(9),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(9),o=Math.max,u=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):u(t,e)}},function(t,e,n){var r=n(22)("keys"),o=n(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(2),u=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return u[t]||(u[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(23)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(27),o=n(1),u=n(5);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*u(function(){n(1)}),"Object",i)}},function(t,e,n){var r=n(2),o=n(1),u=n(28),i=n(30),c=n(7),f=function(t,e,n){var a,s,p,l=t&f.F,d=t&f.G,v=t&f.S,y=t&f.P,_=t&f.B,b=t&f.W,m=d?o:o[e]||(o[e]={}),h=m.prototype,x=d?r:v?r[e]:(r[e]||{}).prototype;for(a in d&&(n=e),n)(s=!l&&x&&void 0!==x[a])&&c(m,a)||(p=s?x[a]:n[a],m[a]=d&&"function"!=typeof x[a]?n[a]:_&&s?u(p,r):b&&x[a]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):y&&"function"==typeof p?u(Function.call,p):p,y&&((m.virtual||(m.virtual={}))[a]=p,t&f.R&&h&&!h[a]&&i(h,a,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,e,n){var r=n(29);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(31),o=n(36);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(32),o=n(33),u=n(35),i=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=u(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(4)&&!n(5)(function(){return 7!=Object.defineProperty(n(34)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(3),o=n(2).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(38)),o=i(n(39)),u=i(n(40));function i(t){return t&&t.__esModule?t:{default:t}}e.default={twitter:r.default,facebook:o.default,instagram:u.default}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0);e.default=function(t,e){var n=t.split(".com/")[1];return e===r.ANDROID_TARGET?"intent://twitter.com/"+n+"#Intent;package=com.twitter.android;scheme=https;end":e===r.IOS_TARGET?n.includes("/status")?"twitter://status?id="+n.split("status/")[1]:"twitter://user?screen_name="+n:void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0);e.default=function(t,e){var n=t.split(".com/")[1];return e===r.ANDROID_TARGET?"intent://#Intent;package=com.facebook.katana;scheme=fb://page/"+n+"?referrer=app_link;end":e===r.IOS_TARGET?"fb://profile/"+n:void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0);e.default=function(t,e){var n=t.split(".com/")[1],o=n.includes("p/");if(e===r.ANDROID_TARGET)return o?"intent://instagram.com/"+n+"#Intent;package=com.instagram.android;scheme=https;end":"intent://instagram.com/_u/"+n+"#Intent;package=com.instagram.android;scheme=https;end";if(e===r.IOS_TARGET){if(o)return;return"instagram://user?username="+n}}}])});
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(global,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIOSDeepLink=e.getAndroidDeepLink=e.getApp=e.IOS_TARGET=e.ANDROID_TARGET=void 0;var r=u(n(10)),o=u(n(37));function u(t){return t&&t.__esModule?t:{default:t}}var i=e.ANDROID_TARGET="android",c=e.IOS_TARGET="ios",f=e.getApp=function(t){var e=t.match(/([a-zA-z]*).com/);if(e&&e.length>1)return e[1]};e.getAndroidDeepLink=function(t){var e=f(t);if((0,r.default)(o.default).includes(e))return o.default[e](t,i)},e.getIOSDeepLink=function(t){var e=f(t);if((0,r.default)(o.default).includes(e))return o.default[e](t,c)}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(5)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(16),o=n(6);t.exports=function(t){return r(o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){t.exports={default:n(11),__esModule:!0}},function(t,e,n){n(12),t.exports=n(1).Object.keys},function(t,e,n){var r=n(13),o=n(14);n(26)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(6);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(15),o=n(25);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(7),o=n(8),u=n(18)(!1),i=n(21)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=i&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~u(a,n)||a.push(n));return a}},function(t,e,n){var r=n(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(8),o=n(19),u=n(20);t.exports=function(t){return function(e,n,i){var c,f=r(e),a=o(f.length),s=u(i,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(9),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(9),o=Math.max,u=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):u(t,e)}},function(t,e,n){var r=n(22)("keys"),o=n(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(2),u=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return u[t]||(u[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(23)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(27),o=n(1),u=n(5);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*u((function(){n(1)})),"Object",i)}},function(t,e,n){var r=n(2),o=n(1),u=n(28),i=n(30),c=n(7),f=function(t,e,n){var a,s,p,l=t&f.F,d=t&f.G,v=t&f.S,y=t&f.P,_=t&f.B,b=t&f.W,m=d?o:o[e]||(o[e]={}),h=m.prototype,x=d?r:v?r[e]:(r[e]||{}).prototype;for(a in d&&(n=e),n)(s=!l&&x&&void 0!==x[a])&&c(m,a)||(p=s?x[a]:n[a],m[a]=d&&"function"!=typeof x[a]?n[a]:_&&s?u(p,r):b&&x[a]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):y&&"function"==typeof p?u(Function.call,p):p,y&&((m.virtual||(m.virtual={}))[a]=p,t&f.R&&h&&!h[a]&&i(h,a,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,e,n){var r=n(29);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(31),o=n(36);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(32),o=n(33),u=n(35),i=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=u(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(4)&&!n(5)((function(){return 7!=Object.defineProperty(n(34)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=n(2).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(38)),o=i(n(39)),u=i(n(40));function i(t){return t&&t.__esModule?t:{default:t}}e.default={twitter:r.default,facebook:o.default,instagram:u.default}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0);e.default=function(t,e){var n=t.split(".com/")[1];return e===r.ANDROID_TARGET?"intent://twitter.com/"+n+"#Intent;package=com.twitter.android;scheme=https;end":e===r.IOS_TARGET?n.includes("/status")?"twitter://status?id="+n.split("status/")[1]:"twitter://user?screen_name="+n:void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0);e.default=function(t,e){var n=t.split(".com/")[1];return e===r.ANDROID_TARGET?"intent://#Intent;package=com.facebook.katana;scheme=fb://page/"+n+"?referrer=app_link;end":e===r.IOS_TARGET?"fb://profile/"+n:void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0);e.default=function(t,e){var n=t.split(".com/")[1],o=n.includes("p/");if(e===r.ANDROID_TARGET)return o?"intent://instagram.com/"+n+"#Intent;package=com.instagram.android;scheme=https;end":"intent://instagram.com/_u/"+n+"#Intent;package=com.instagram.android;scheme=https;end";if(e===r.IOS_TARGET){if(o)return;return"instagram://user?username="+n}}}])}));
{
"name": "url-to-deep-link",
"version": "1.0.6",
"version": "1.0.7",
"description": "Transform URLs to Deep Links and open your users apps",

@@ -42,6 +42,6 @@ "main": "./dist/index.js",

"chai": "^4.1.2",
"mocha": "^5.2.0",
"mocha": "^8.1.3",
"prettier": "1.18.2",
"webpack": "^4.16.3",
"webpack-cli": "^3.1.0"
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
},

@@ -48,0 +48,0 @@ "dependencies": {

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