Comparing version 1.5.3 to 1.5.4
@@ -72,6 +72,9 @@ "use strict"; | ||
return child.data; | ||
} | ||
} // Issue with linter wanting "new" before "Array" | ||
// in this case, the casting is legit, we don't want a new array | ||
// eslint-disable-next-line unicorn/new-for-builtins | ||
return elem.children && elem.children.length > 0 ? elem.children.map(function (child) { | ||
return new Array(findData(child)).join(''); | ||
return Array(findData(child)).join(''); | ||
}).join('') : ''; | ||
@@ -78,0 +81,0 @@ } |
{ | ||
"name": "google-it", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "A CLI and Node.js library to help retrieve, display, and store Google search results", | ||
@@ -5,0 +5,0 @@ "main": "./lib/main.js", |
@@ -46,3 +46,7 @@ /* eslint-disable no-console */ | ||
} | ||
return elem.children && elem.children.length > 0 ? elem.children.map((child) => new Array(findData(child)).join('')).join('') : ''; | ||
// Issue with linter wanting "new" before "Array" | ||
// in this case, the casting is legit, we don't want a new array | ||
// eslint-disable-next-line unicorn/new-for-builtins | ||
return elem.children && elem.children.length > 0 ? elem.children.map((child) => Array(findData(child)).join('')).join('') : ''; | ||
} | ||
@@ -49,0 +53,0 @@ |
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
36796
877