mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-22 23:18:05 +03:00
* fix: enforce 3.6.3 to avoid deprecation warning * fix: nonsense old debug message * fix: just re-patch browserslist, whatever.
27 lines
866 B
Diff
27 lines
866 B
Diff
diff --git a/node.js b/node.js
|
|
index a3c7ef7e5bfef7e467e166161fc38738234d941e..d96d8b838a151471451d133b7704e19fd9e96325 100644
|
|
--- a/node.js
|
|
+++ b/node.js
|
|
@@ -384,21 +384,7 @@ module.exports = {
|
|
},
|
|
|
|
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'
|
|
- )
|
|
- }
|
|
+ return
|
|
},
|
|
|
|
currentNode: function currentNode() {
|