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

browserslist

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserslist - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

5

CHANGELOG.md

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

## 1.1.1
* Fix space-less `>10%` and `>10% in my stats` queries.
* Normalize error messages.
* Remove development files from npm package.
## 1.1

@@ -2,0 +7,0 @@ * Added query against custom browser usage data (by Daniel Rey).

15

index.js

@@ -268,3 +268,3 @@ var caniuse = require('caniuse-db/data').agents;

globalStatistics: {
regexp: /^> (\d+\.?\d*)%$/,
regexp: /^>\s?(\d+\.?\d*)%$/,
select: function (popularity) {

@@ -285,3 +285,3 @@ popularity = parseFloat(popularity);

customStatistics: {
regexp: /^> (\d+\.?\d*)% in my stats$/,
regexp: /^>\s?(\d+\.?\d*)% in my stats$/,
select: function (popularity) {

@@ -293,12 +293,3 @@ popularity = parseFloat(popularity);

if ( !usage ) {
error('Custom usage data was not provided. ' +
'To use selection "> ' + popularity + '% in my stats" ' +
'you need one of the following:\n' +
'* browserslist("selections", ' +
'{stats: "path/to/the/stats_file.json"})\n' +
'* browserslist("selections", {stats: <stats object>})\n' +
'* Set the ENV variable BROWSERSLIST_STATS to the path ' +
'of the stats JSON file.\nThe expected stats object is: ' +
'{"browser": {"version": <percentage>, "anotherVersion"' +
': <percentage>, ...}, "anotherBrowser": {...}, ...}');
error('Custom usage statistics was not provided');
}

@@ -305,0 +296,0 @@

4

package.json
{
"name": "browserslist",
"version": "1.1.0",
"version": "1.1.1",
"description": "Get browsers versions that matches given criterias like in Autoprefixer",

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

"dependencies": {
"caniuse-db": "^1.0.30000384"
"caniuse-db": "^1.0.30000387"
},

@@ -19,0 +19,0 @@ "bin": "./cli.js",

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