Socket
Socket
Sign inDemoInstall

update-browserslist-db

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

update-browserslist-db - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

9

index.js

@@ -31,3 +31,3 @@ let childProcess = require('child_process')

'Cannot find package.json. ' +
'Is this the right directory to run `npx browserslist --update-db` in?'
'Is this the right directory to run `npx update-browserslist-db` in?'
)

@@ -76,4 +76,5 @@ }

function getBrowsersList() {
return childProcess
.execSync('npx browserslist')
let spawn = childProcess.spawnSync('npx', ['browserslist'])
if (spawn.status !== 0) throw new Error(spawn.stderr.toString())
return spawn.stdout
.toString()

@@ -315,3 +316,3 @@ .trim()

'\n' +
browsersListRetrievalError.stack +
browsersListRetrievalError.message +
'\n\n' +

@@ -318,0 +319,0 @@ 'Problem with browser list retrieval.\n' +

{
"name": "update-browserslist-db",
"version": "1.0.1",
"version": "1.0.2",
"description": "CLI tool to update caniuse-lite to refresh target browsers from Browserslist config",

@@ -5,0 +5,0 @@ "keywords": [

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