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.
- package/index.js +2 -3
- 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
|
-
|
|
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 {
|