update-browserslist-db 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -80,8 +80,7 @@ function getLatestInfo(lock) {
80
80
  return JSON.parse(execSync('pnpm info caniuse-lite --json').toString())
81
81
  }
82
82
  if (lock.mode === 'bun') {
83
- // TO-DO: No 'bun info' yet. Created issue: https://github.com/oven-sh/bun/issues/12280
84
- return JSON.parse(execSync(' npm info caniuse-lite --json').toString())
83
+ return JSON.parse(execSync(' bun info caniuse-lite --json').toString())
85
84
  }
86
85
 
87
86
  return JSON.parse(execSync('npm show caniuse-lite --json').toString())
@@ -302,7 +301,7 @@ module.exports = function updateDB(print = defaultPrint) {
302
301
  let packages = lockContent.includes('baseline-browser-mapping')
303
302
  ? 'caniuse-lite baseline-browser-mapping'
304
303
  : 'caniuse-lite'
305
- updateWith(print, 'pnpm up --no-save ' + packages)
304
+ updateWith(print, 'pnpm up --depth=Infinity --no-save ' + packages)
306
305
  } else if (lock.mode === 'bun') {
307
306
  updateWith(print, 'bun update caniuse-lite baseline-browser-mapping')
308
307
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "update-browserslist-db",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "CLI tool to update caniuse-lite to refresh target browsers from Browserslist config",
5
5
  "keywords": [
6
6
  "caniuse",