update-browserslist-db 1.1.1 → 1.1.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 +5 -7
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -42,11 +42,12 @@ function detectLockfile() {
42
42
  let lockfileShrinkwrap = join(packageDir, 'npm-shrinkwrap.json')
43
43
  let lockfileYarn = join(packageDir, 'yarn.lock')
44
44
  let lockfilePnpm = join(packageDir, 'pnpm-lock.yaml')
45
- let lockfileBun = join(packageDir, 'bun.lockb')
45
+ let lockfileBun = join(packageDir, 'bun.lock')
46
+ let lockfileBunBinary = join(packageDir, 'bun.lockb')
46
47
 
47
48
  if (existsSync(lockfilePnpm)) {
48
49
  return { file: lockfilePnpm, mode: 'pnpm' }
49
- } else if (existsSync(lockfileBun)) {
50
+ } else if (existsSync(lockfileBun) || existsSync(lockfileBunBinary)) {
50
51
  return { file: lockfileBun, mode: 'bun' }
51
52
  } else if (existsSync(lockfileNpm)) {
52
53
  return { file: lockfileNpm, mode: 'npm' }
@@ -322,11 +323,8 @@ module.exports = function updateDB(print = defaultPrint) {
322
323
  )
323
324
  } else {
324
325
  print(
325
- pico.red(
326
- '\n' +
327
- listError.stack +
328
- '\n\n' +
329
- 'Problem with browser list retrieval.\n' +
326
+ pico.gray(
327
+ 'Problem with browser list retrieval.\n' +
330
328
  'Target browser changes won’t be shown.\n'
331
329
  )
332
330
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "update-browserslist-db",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "CLI tool to update caniuse-lite to refresh target browsers from Browserslist config",
5
5
  "keywords": [
6
6
  "caniuse",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "escalade": "^3.2.0",
34
- "picocolors": "^1.1.0"
34
+ "picocolors": "^1.1.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "browserslist": ">= 4.21.0"