Socket
Socket
Sign inDemoInstall

@thi.ng/checks

Package Overview
Dependencies
Maintainers
1
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/checks - npm Package Compare versions

Comparing version 2.1.6 to 2.2.0

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

# [2.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.1.6...@thi.ng/checks@2.2.0) (2019-07-07)
### Bug Fixes
* **checks:** isMobile for Chrome iOS ([8216d48](https://github.com/thi-ng/umbrella/commit/8216d48))
### Features
* **checks:** enable TS strict compiler flags (refactor) ([90515e7](https://github.com/thi-ng/umbrella/commit/90515e7))
## [2.1.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/checks@2.1.5...@thi.ng/checks@2.1.6) (2019-04-24)

@@ -8,0 +24,0 @@

3

is-mobile.js
export const isMobile = () => typeof navigator !== "undefined" &&
/mobile|tablet|ip(ad|hone|od)|android|silk/i.test(navigator.userAgent) &&
!/crios/i.test(navigator.userAgent);
/mobile|tablet|ip(ad|hone|od)|android|silk|crios/i.test(navigator.userAgent);

@@ -71,4 +71,3 @@ 'use strict';

const isMobile = () => typeof navigator !== "undefined" &&
/mobile|tablet|ip(ad|hone|od)|android|silk/i.test(navigator.userAgent) &&
!/crios/i.test(navigator.userAgent);
/mobile|tablet|ip(ad|hone|od)|android|silk|crios/i.test(navigator.userAgent);

@@ -75,0 +74,0 @@ const isNaN = (x) => x !== x;

@@ -73,4 +73,3 @@ (function (global, factory) {

const isMobile = () => typeof navigator !== "undefined" &&
/mobile|tablet|ip(ad|hone|od)|android|silk/i.test(navigator.userAgent) &&
!/crios/i.test(navigator.userAgent);
/mobile|tablet|ip(ad|hone|od)|android|silk|crios/i.test(navigator.userAgent);

@@ -77,0 +76,0 @@ const isNaN = (x) => x !== x;

{
"name": "@thi.ng/checks",
"version": "2.1.6",
"version": "2.2.0",
"description": "Single-function sub-modules for type, feature & value checks",

@@ -28,7 +28,7 @@ "module": "./index.js",

"@types/mocha": "^5.2.6",
"@types/node": "^11.13.7",
"@types/node": "^12.0.8",
"mocha": "^6.1.4",
"nyc": "^14.0.0",
"typedoc": "^0.14.2",
"typescript": "^3.4.5"
"typescript": "^3.5.2"
},

@@ -56,3 +56,3 @@ "keywords": [

"sideEffects": false,
"gitHead": "38b2c61a9a7c1344889b81cd6eb3dcd601ceb443"
"gitHead": "efa9fdd61dd4ad2187cefe0a26df3bf2baade24b"
}

Sorry, the diff of this file is not supported yet

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