Socket
Socket
Sign inDemoInstall

update-browserslist-db

Package Overview
Dependencies
2
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

index.d.ts
/**
* Run update and print output to terminal.
*/
declare function updateDb(): Promise<void>
declare function updateDb(print?: (str: string) => void): Promise<void>
export = updateDb

@@ -18,2 +18,7 @@ let childProcess = require('child_process')

/* c8 ignore next 3 */
function defaultPrint(str) {
process.stdout.write(str)
}
function detectLockfile() {

@@ -272,3 +277,3 @@ let packageDir = escalade('.', (dir, names) => {

module.exports = function updateDB(print) {
module.exports = function updateDB(print = defaultPrint) {
let lock = detectLockfile()

@@ -275,0 +280,0 @@ let latest = getLatestInfo(lock)

{
"name": "update-browserslist-db",
"version": "1.0.0",
"version": "1.0.1",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc