Skip to content

Commit

Permalink
fix: just re-patch browserslist, whatever.
Browse files Browse the repository at this point in the history
  • Loading branch information
zkrising committed Apr 9, 2024
1 parent 12ec13e commit 909e0e8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 17 deletions.
30 changes: 16 additions & 14 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
diff --git a/node.js b/node.js
index a3c7ef7e5bfef7e467e166161fc38738234d941e..2859ebb691b3577770215ba528af337e24f6259f 100644
index a3c7ef7e5bfef7e467e166161fc38738234d941e..d96d8b838a151471451d133b7704e19fd9e96325 100644
--- a/node.js
+++ b/node.js
@@ -392,12 +392,14 @@ module.exports = {
var halfYearAgo = Date.now() - TIME_TO_UPDATE_CANIUSE
@@ -384,21 +384,7 @@ module.exports = {
},

if (latest !== 0 && latest < halfYearAgo) {
oldDataWarning: function oldDataWarning(agentsObj) {
- if (dataTimeChecked) return
- dataTimeChecked = true
- if (process.env.BROWSERSLIST_IGNORE_OLD_DATA) return
-
- var latest = latestReleaseTime(agentsObj)
- var halfYearAgo = Date.now() - TIME_TO_UPDATE_CANIUSE
-
- if (latest !== 0 && latest < halfYearAgo) {
- console.warn(
- 'Browserslist: caniuse-lite is outdated. Please run:\n' +
- ' npx update-browserslist-db@latest\n' +
- ' Why you should do it regularly: ' +
- 'https://github.com/browserslist/update-db#readme'
- )
+ // this warning is useless, annoying, and should NEVER go
+ // to my stderr. Shut up.
+ // console.warn(
+ // 'Browserslist: caniuse-lite is outdated. Please run:\n' +
+ // ' npx update-browserslist-db@latest\n' +
+ // ' Why you should do it regularly: ' +
+ // 'https://github.com/browserslist/update-db#readme'
+ // )
}
- }
+ return
},


currentNode: function currentNode() {
18 changes: 15 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 909e0e8

Please sign in to comment.