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

browserama

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserama - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0-beta.1

4

index.js

@@ -18,4 +18,4 @@ // Use Feature detection instead of user agents -

isChromeOrChromium = !!window.chrome;
isChrome = !!window.chrome && !!window.chrome.webstore;
isChromium = isChromeOrChromium && !window.chrome.webstore;
isChrome = !!window.chrome && !!window.navigator && !!window.navigator.plugins && (!!window.navigator.plugins.namedItem('Chrome PDF Plugin') || !!window.chrome.runtime);
isChromium = isChromeOrChromium && !window.chrome.webstore && !window.chrome.runtime;
isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 || (window.safari && window.safari.pushNotification);

@@ -22,0 +22,0 @@ isOpera = (!!window.opr && !!window.opr.addons) || !!window.opera;

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

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):e.browserama=o()}(this,function(){"use strict";var e="undefined"==typeof window,o=!1,r=!1,t=!1,n=!1,i=!1,d=!1,w=!1,u=!1,s=!1;return e||(o="undefined"!=typeof InstallTrigger,r=!!window.chrome,t=!!window.chrome&&!!window.chrome.webstore,n=r&&!window.chrome.webstore,i=0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||window.safari&&window.safari.pushNotification,d=!!window.opr&&!!window.opr.addons||!!window.opera,w=!!window.StyleMedia,u=(t||d)&&!!window.CSS,s=!(r||i||o||d||!document.documentMode)),{get isChrome(){return t},get isChromeOrChromium(){return r},get isChromium(){return n},get isFirefox(){return o},get isSafari(){return i},get isOpera(){return d},get isEdge(){return w},get isIE(){return s},get isBlink(){return u}}});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.browserama=n()}(this,function(){"use strict";var e="undefined"==typeof window,n=!1,o=!1,i=!1,r=!1,t=!1,d=!1,w=!1,u=!1,a=!1;return e||(n="undefined"!=typeof InstallTrigger,o=!!window.chrome,i=!(!window.chrome||!window.navigator||!window.navigator.plugins||!window.navigator.plugins.namedItem("Chrome PDF Plugin")&&!window.chrome.runtime),r=o&&!window.chrome.webstore&&!window.chrome.runtime,t=0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||window.safari&&window.safari.pushNotification,d=!!window.opr&&!!window.opr.addons||!!window.opera,w=!!window.StyleMedia,u=(i||d)&&!!window.CSS,a=!(o||t||n||d||!document.documentMode)),{get isChrome(){return i},get isChromeOrChromium(){return o},get isChromium(){return r},get isFirefox(){return n},get isSafari(){return t},get isOpera(){return d},get isEdge(){return w},get isIE(){return a},get isBlink(){return u}}});
{
"name": "browserama",
"version": "2.0.0",
"version": "2.1.0-beta.1",
"description": "A browser detection package that uses feature detection instead of user agent",

@@ -36,7 +36,7 @@ "main": "out/browserama.min.js",

"babel-preset-env": "^1.7.0",
"rollup": "^0.63.4",
"rollup": "^0.67.4",
"rollup-plugin-babel": "^3.0.7",
"rollup-plugin-uglify": "^2.0.1",
"semistandard": "^12.0.0"
"semistandard": "^12.0.1"
}
}
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