Socket
Socket
Sign inDemoInstall

bowser

Package Overview
Dependencies
Maintainers
2
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bowser - npm Package Compare versions

Comparing version 2.8.1 to 2.9.0

3

CHANGELOG.md
# Bowser Changelog
### 2.9.0 (Jan 28, 2020)
- [ADD] Export more methods and constants via .d.ts [#388], [#390]
### 2.8.1 (Dec 26, 2019)

@@ -4,0 +7,0 @@ - [FIX] Reverted [#382] as it broke build

@@ -25,2 +25,10 @@ // Type definitions for Bowser v2

/**
* Constants exposed via bowser getters
*/
const BROWSER_MAP: Record<string, string>;
const ENGINE_MAP: Record<string, string>;
const OS_MAP: Record<string, string>;
const PLATFORMS_MAP: Record<string, string>;
namespace Parser {

@@ -178,2 +186,12 @@ interface Parser {

/**
* Check if the browser name equals the passed string
* @param browserName The string to compare with the browser name
* @param [includingAlias=false] The flag showing whether alias will be included into comparison
* @returns {boolean}
*/
isBrowser(browserName: string, includingAlias?: boolean): boolean;
/**

@@ -180,0 +198,0 @@ * Check if any of the given values satifies `.is(anything)`

16

package.json
{
"name": "bowser",
"version": "2.8.1",
"version": "2.9.0",
"description": "Lightweight browser detector",

@@ -32,8 +32,8 @@ "keywords": [

"devDependencies": {
"@babel/cli": "^7.6.2",
"@babel/core": "^7.6.2",
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.6.2",
"@babel/register": "^7.6.2",
"ava": "^2.4.0",
"@babel/cli": "^7.8.3",
"@babel/core": "^7.8.0",
"@babel/polyfill": "^7.8.3",
"@babel/preset-env": "^7.8.2",
"@babel/register": "^7.8.3",
"ava": "^3.0.0",
"babel-eslint": "^10.0.3",

@@ -48,3 +48,3 @@ "babel-loader": "^8.0.6",

"eslint-config-airbnb-base": "^13.2.0",
"eslint-plugin-ava": "^8.0.0",
"eslint-plugin-ava": "^10.0.0",
"eslint-plugin-import": "^2.18.2",

@@ -51,0 +51,0 @@ "gh-pages": "^2.1.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