google-search-results-nodejs
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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 |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
278
0
15301
12
218