summaryrefslogtreecommitdiff
path: root/node_modules/browserslist/node.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
commitefbc2ffe6a1ee5ec38a4396305561d6515d0943e (patch)
tree2b4c94f18f2c792dfda813050755d5c0273fae22 /node_modules/browserslist/node.js
parent43acceb75957c880a5ba5a31aae221394a36d5f6 (diff)
node fixes, updates
Diffstat (limited to 'node_modules/browserslist/node.js')
-rw-r--r--node_modules/browserslist/node.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/node_modules/browserslist/node.js b/node_modules/browserslist/node.js
index a935371d..a124ba61 100644
--- a/node_modules/browserslist/node.js
+++ b/node_modules/browserslist/node.js
@@ -50,7 +50,7 @@ function eachParent(file, callback) {
var dir = isFile(file) ? path.dirname(file) : file
var loc = path.resolve(dir)
do {
- if (!pathInRoot(loc)) break;
+ if (!pathInRoot(loc)) break
var result = callback(loc)
if (typeof result !== 'undefined') return result
} while (loc !== (loc = path.dirname(loc)))
@@ -59,9 +59,9 @@ function eachParent(file, callback) {
function pathInRoot(p) {
if (!process.env.BROWSERSLIST_ROOT_PATH) return true
- var rootPath = path.resolve(process.env.BROWSERSLIST_ROOT_PATH);
- if (path.relative(rootPath, p).substring(0,2) === '..') {
- return false;
+ var rootPath = path.resolve(process.env.BROWSERSLIST_ROOT_PATH)
+ if (path.relative(rootPath, p).substring(0, 2) === '..') {
+ return false
}
return true
}
@@ -167,7 +167,6 @@ function normalizeStats(data, stats) {
function normalizeUsageData(usageData, data) {
for (var browser in usageData) {
var browserUsage = usageData[browser]
- // eslint-disable-next-line max-len
// https://github.com/browserslist/browserslist/issues/431#issuecomment-565230615
// caniuse-db returns { 0: "percentage" } for `and_*` regional stats
if ('0' in browserUsage) {