Socket
Socket
Sign inDemoInstall

@ianwalter/is-chrome

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

dist/is-chrome.js
'use strict';
function isChrome (ua) {
return ua.includes('Chrome/')
return ua && ua.includes('Chrome/')
}
module.exports = isChrome;
function isChrome (ua) {
return ua.includes('Chrome/')
return ua && ua.includes('Chrome/')
}
export default isChrome;
{
"name": "@ianwalter/is-chrome",
"version": "1.0.0",
"version": "1.0.1",
"description": "Detect whether a browser or user-agent is Chrome",

@@ -45,3 +45,3 @@ "license": "SEE LICENSE IN LICENSE",

"@ianwalter/dist": "^3.0.0",
"@ianwalter/eslint-config": "^5.0.0",
"@ianwalter/eslint-config": "^5.1.0",
"@ianwalter/release": "^5.0.1",

@@ -48,0 +48,0 @@ "@ianwalter/renovate-config": "^1.3.0"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc