Socket
Socket
Sign inDemoInstall

google-it

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-it - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

7

lib/googleIt.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc