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

sniff-fns

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sniff-fns - npm Package Versions

2

0.5.3

Diff

Changelog

Source

[0.5.3] - 2016-10-14

Added

  • Add isLinux function to whichOs to support Linux OS detection
paraboom
published 0.5.2 •

Changelog

Source

[0.5.2] - 2016-05-16

Fixed

  • Replace const with var to keep compatibility with old browsers.
paraboom
published 0.5.1 •

paraboom
published 0.5.0 •

Changelog

Source

[0.5.0] - 2016-05-11

Changed

  • BREAKING: new API:

    • Functions on the top level were replaced with boolean values representing the state of the current browser:

      sniffFns.isIE
      //=> false
      
      sniffFns.isChrome
      //=> true
      
    • Simplified API: no more .browser, no more sniff-fns/src in require:

      - sniffFns.browser.isIE(navigator.userAgent)
      + sniffFns.isIE
      
      - var isChrome = require('sniff-fns/src/is_browser_chrome')
      - var isChrome = require('sniff-fns/is_chrome')
      - isChrome(navigator.userAgent)
      + isChrome
      
    • To access functions that accepts a user agent string, use lib namespace:

      - sniffFns.browser.isIE(request.ua)
      + sniffFns.lib.isIE(request.ua)
      
      - var isIE = require('sniff-fns/src/is_ie_browser')
      + var isIE = require('sniff-fns/lib/is_ie')
      isIE(request.ua)
      
    • isBb10 renamed to isBlackberry

    • whichOs is now whichOS

  • Internal: new tests suite.

  • Internal: code refactoring.

Fixed

  • iPad now is not detected as a Mac (isMac).

  • Updated BlackBerry user agent string patterns.

kossnocorp
published 0.5.0-rc2 •

kossnocorp
published 0.5.0-rc1 •

paraboom
published 0.4.0 •

Changelog

Source

[0.4.0] - 2016-05-06

Added

  • Add isIE function

  • Add whichBrowserVersion function which supports Chrome, Mobile Chrome, Firefox, IE and Opera.

paraboom
published 0.3.0 •

paraboom
published 0.2.1 •

kossnocorp
published 0.2.0 •

2
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