update-browserslist-db
Advanced tools
Comparing version 1.0.0 to 1.0.1
/** | ||
* 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": [ |
12793
340