New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

platform-detect

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

platform-detect - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

index.js

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

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):e["platform-detect"]=o()}(this,function(){"use strict";var e="undefined"!=typeof navigator,o=!e,n=e?navigator.userAgent:void 0,s="undefined"!=typeof process&&!!process.versions&&!!process.versions.node,i=e&&window.matchMedia("(display-mode: standalone)").matches,d="undefined"!=typeof Windows&&"undefined"!=typeof MSApp,r=e&&s&&!!process.versions.nw,t=e&&s&&!!process.versions.electron,c=e&&!!window.cordova,p=!(s||i||d||r||t||c),a=(!e&&"undefined"!=typeof self&&!!self.importScripts&&self.close,s?"win32"===process.platform:n.includes("Windows")),f=(s?process.platform:n.includes("Macintosh"),s&&process.platform,e&&n.includes("CrOS")),u=e&&n.includes("Android"),l=e&&n.includes("Edge"),v=e&&n.includes("Chrome")&&!n.includes("Edge"),m=d||void 0;"undefined"!=typeof navigator&&!!navigator.serviceWorker&&navigator.serviceWorker.register;return{windows:a,android:u,chromeos:f,edge:l,chrome:v,node:s,web:p,pwa:i,uwp:d,cordova:c,chromeapp:void 0,nwjs:r,electron:t,touch:"undefined"!=typeof navigator&&navigator.maxTouchPoints>0,window:e,console:o,csp:m}});
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):e["platform-detect"]=o()}(this,function(){"use strict";var e="undefined"!=typeof navigator&&"undefined"!=typeof window;if(e&&"undefined"!=typeof nw)try{nw.Window.get()}catch(o){e=!1}var o=!e,n=e?navigator.userAgent:void 0,s="undefined"!=typeof process&&!!process.versions&&!!process.versions.node,d=e&&window.matchMedia("(display-mode: standalone)").matches,i="undefined"!=typeof Windows&&"undefined"!=typeof MSApp,r=!(!s||!process.versions.nw),t=!(!s||!process.versions.electron),c=e&&!!window.cordova,a=!(s||d||i||r||t||c),f=(!e&&"undefined"!=typeof self&&!!self.importScripts&&self.close,s?"win32"===process.platform:n.includes("Windows")),p=(s?process.platform:n.includes("Macintosh"),s&&process.platform,e&&n.includes("CrOS")),u=e&&n.includes("Android"),l=e&&n.includes("Edge"),v=e&&n.includes("Chrome")&&!n.includes("Edge"),w="undefined"!=typeof navigator&&navigator.maxTouchPoints>0,m=i||void 0,y=("undefined"!=typeof navigator&&!!navigator.serviceWorker&&navigator.serviceWorker.register,r&&process.versions["nw-flavor"]||t&&!1);return{windows:f,android:u,chromeos:p,edge:l,chrome:v,node:s,web:a,pwa:d,uwp:i,cordova:c,chromeapp:void 0,nwjs:r,electron:t,nw:r,touch:w,hasWindow:e,isConsole:o,dev:y,sdk:y,csp:m}});
{
"name": "platform-detect",
"version": "0.0.1",
"version": "0.0.2",
"description": "🃏 Minimalistic isomorphic library for detection of platform, runtime, APIs and more.",

@@ -13,4 +13,5 @@ "author": "Mike Kovařík",

"rollup": "^0.59.4",
"rollup-plugin-notify": "^1.0.1",
"rollup-plugin-uglify-es": "0.0.1"
}
}

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