Socket
Socket
Sign inDemoInstall

browserslist

Package Overview
Dependencies
6
Maintainers
1
Versions
188
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.21.11 to 4.22.0

13

index.js

@@ -301,6 +301,6 @@ var jsReleases = require('node-releases/data/processed/envs.json')

function isSupported(flags) {
function isSupported(flags, withPartial) {
return (
typeof flags === 'string' &&
(flags.indexOf('y') >= 0 || flags.indexOf('a') >= 0)
(flags.indexOf('y') >= 0 || (withPartial && flags.indexOf('a') >= 0))
)

@@ -887,6 +887,7 @@ }

supports: {
matches: ['feature'],
regexp: /^supports\s+([\w-]+)$/,
matches: ['supportType', 'feature'],
regexp: /^(?:(fully|partially) )?supports\s+([\w-]+)$/,
select: function (context, node) {
env.loadFeature(browserslist.cache, node.feature)
var withPartial = node.supportType !== 'fully'
var features = browserslist.cache[node.feature]

@@ -900,3 +901,3 @@ var result = []

name in browserslist.desktopNames &&
isSupported(features[name][data.released.slice(-1)[0]])
isSupported(features[name][data.released.slice(-1)[0]], withPartial)
data.versions.forEach(function (version) {

@@ -907,3 +908,3 @@ var flags = features[name][version]

}
if (isSupported(flags)) {
if (isSupported(flags, withPartial)) {
result.push(name + ' ' + version)

@@ -910,0 +911,0 @@ }

{
"name": "browserslist",
"version": "4.21.11",
"version": "4.22.0",
"description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset",

@@ -28,4 +28,4 @@ "keywords": [

"dependencies": {
"caniuse-lite": "^1.0.30001538",
"electron-to-chromium": "^1.4.526",
"caniuse-lite": "^1.0.30001539",
"electron-to-chromium": "^1.4.530",
"node-releases": "^2.0.13",

@@ -32,0 +32,0 @@ "update-browserslist-db": "^1.0.13"

@@ -22,3 +22,3 @@ # Browserslist [![Cult Of Martians][cult-img]][cult]

"browserslist": [
"defaults and supports es6-module",
"defaults and fully supports es6-module",
"maintained node versions"

@@ -33,3 +33,3 @@ ]

defaults and supports es6-module
defaults and fully supports es6-module
maintained node versions

@@ -36,0 +36,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