detect-audio-video
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -278,10 +278,11 @@ const AAC_CONTENT_TYPE = 'audio/mp4; codecs="mp4a.40.2"'; | ||
]; | ||
let result = heights[0]; | ||
let result = `${heights[0]}p`; | ||
for (const item of heights) { | ||
if (height >= item) { | ||
result = item; | ||
} | ||
else { | ||
if (height === item) { | ||
result = `${result}p`; | ||
break; | ||
} | ||
else if (height > item) { | ||
result = `≈${result}p`; | ||
} | ||
} | ||
@@ -288,0 +289,0 @@ return `${result}p`; |
{ | ||
"name": "detect-audio-video", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "Detect audio video features", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27893
625