Socket
Socket
Sign inDemoInstall

google-search-results-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-search-results-nodejs - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

lib/main.js

6

lib/BaiduSearch.js

@@ -1,4 +0,4 @@

const search = require('./SerpApiSearch')
const SerpApiSearch = require('./SerpApiSearch')
class BaiduSearch extends search.SerpApiSearch {
class BaiduSearch extends SerpApiSearch {

@@ -10,2 +10,2 @@ constructor(api_key) {

module.exports.BaiduSearch = BaiduSearch
module.exports = BaiduSearch

@@ -1,4 +0,4 @@

const search = require('./SerpApiSearch')
const SerpApiSearch = require('./SerpApiSearch')
class BingSearch extends search.SerpApiSearch {
class BingSearch extends SerpApiSearch {

@@ -10,2 +10,2 @@ constructor(api_key) {

module.exports.BingSearch = BingSearch
module.exports = BingSearch

@@ -1,4 +0,4 @@

const search = require('./SerpApiSearch')
const SerpApiSearch = require('./SerpApiSearch')
class EbaySearch extends search.SerpApiSearch {
class EbaySearch extends SerpApiSearch {

@@ -10,2 +10,2 @@ constructor(api_key) {

module.exports.EbaySearch = EbaySearch
module.exports = EbaySearch

@@ -1,4 +0,4 @@

const search = require('./SerpApiSearch')
const SerpApiSearch = require('./SerpApiSearch')
class GoogleSearch extends search.SerpApiSearch {
class GoogleSearch extends SerpApiSearch {

@@ -10,2 +10,2 @@ constructor(api_key) {

module.exports.GoogleSearch = GoogleSearch
module.exports = GoogleSearch

@@ -72,3 +72,2 @@ const search = require('https');

search.timeout = this.defaultTimeout
console.log(url)
search.get(url, (resp) => {

@@ -91,3 +90,2 @@ let data = ''

} catch (e) {
console.log(data)
throw e

@@ -98,3 +96,2 @@ }

}).on("error", (err) => {
console.log("Error: " + err.message);
throw err;

@@ -175,2 +172,2 @@ });

module.exports.SerpApiSearch = SerpApiSearch;
module.exports = SerpApiSearch;

@@ -1,4 +0,4 @@

const search = require('./SerpApiSearch')
const SerpApiSearch = require('./SerpApiSearch')
class WalmartSearch extends search.SerpApiSearch {
class WalmartSearch extends SerpApiSearch {

@@ -10,2 +10,2 @@ constructor(api_key) {

module.exports.WalmartSearch = WalmartSearch
module.exports = WalmartSearch

@@ -1,4 +0,4 @@

const search = require('./SerpApiSearch')
const SerpApiSearch = require('./SerpApiSearch')
class YahooSearch extends search.SerpApiSearch {
class YahooSearch extends SerpApiSearch {

@@ -10,2 +10,2 @@ constructor(api_key) {

module.exports.YahooSearch = YahooSearch
module.exports = YahooSearch

@@ -1,4 +0,4 @@

const search = require('./SerpApiSearch')
const SerpApiSearch = require('./SerpApiSearch')
class YandexSearch extends search.SerpApiSearch {
class YandexSearch extends SerpApiSearch {

@@ -10,2 +10,2 @@ constructor(api_key) {

module.exports.YandexSearch = YandexSearch
module.exports = YandexSearch

@@ -1,4 +0,4 @@

const search = require('./SerpApiSearch')
const SerpApiSearch = require('./SerpApiSearch')
class YoutubeSearch extends search.SerpApiSearch {
class YoutubeSearch extends SerpApiSearch {

@@ -10,2 +10,2 @@ constructor(api_key) {

module.exports.YoutubeSearch = YoutubeSearch
module.exports = YoutubeSearch
{
"name": "google-search-results-nodejs",
"version": "2.0.0",
"version": "2.0.1",
"description": "Google Search Node JS API via SerpApi.com",

@@ -50,3 +50,15 @@ "scripts": {

"homepage": "https://github.com/serpapi/google-search-results-nodejs#readme",
"dependencies": {}
"dependencies": {},
"main": "lib/main.js",
"files": [
"lib/BaiduSearch.js",
"lib/BingSearch.js",
"lib/EbaySearch.js",
"lib/GoogleSearch.js",
"lib/SerpApiSearch.js",
"lib/WalmartSearch.js",
"lib/YahooSearch.js",
"lib/YandexSearch.js",
"lib/YoutubeSearch.js"
]
}

@@ -258,3 +258,4 @@ # Google Search Node.js

## Change log
* 2.0.1
* fix classes loading.
* 2.0

@@ -261,0 +262,0 @@ * Refractor class name: SearchResult -> Search

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