google-search
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -0,6 +1,6 @@ | ||
'use strict'; | ||
const https = require('https'); | ||
const _ = require('underscore'); | ||
const url = require('url'); | ||
var https = require('https'), | ||
_ = require('underscore'), | ||
url = require('url'); | ||
var GoogleSearch = function(options) { | ||
@@ -30,7 +30,3 @@ if (!options) options = {}; | ||
GoogleSearch.prototype.build = function(options, callback) { | ||
options = _.defaults(options, { | ||
fileType: "pdf" | ||
}); | ||
//this._doRequest(this._generateUrl(options), callback); | ||
this._generateUrl(options); | ||
this._doRequest(this._generateUrl(options), callback); | ||
}; | ||
@@ -49,4 +45,2 @@ | ||
}); | ||
console.log(this.config); | ||
console.log(urlFormatted); | ||
return url.parse(urlFormatted); | ||
@@ -80,2 +74,2 @@ }; | ||
module.exports = GoogleSearch; | ||
module.exports = GoogleSearch; |
{ | ||
"name": "google-search", | ||
"description": "node.js client for google search API", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"homepage": "http://github.com/aykutyaman/google-search", | ||
@@ -9,8 +9,8 @@ "author": "Aykut Yaman <yaman.ayk@gmail.com>", | ||
"type": "git", | ||
"url": "http://github.com/aykutyaman/google-search.git" | ||
"url": "http://github.com/aykutyaman/google-search.git" | ||
}, | ||
"dependencies": { | ||
"underscore": "1.3.3", | ||
"underscore": "1.3.3", | ||
"url": "0.7.9" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
0
5003
6
80
2