Skip to content

Commit

Permalink
chore(release): v1.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed May 3, 2022
1 parent d50ee28 commit 5005f67
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 13 deletions.
5 changes: 4 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ SearchError.prototype.constructor = SearchError;
* Returns headers with a random user agent.
*
* @param {boolean} is_mobile
* @returns {string}
*/
function getHeaders (is_mobile) {
return {
Expand All @@ -31,7 +32,7 @@ function getHeaders (is_mobile) {
* Refines the html.
*
* @param {string} data - Raw html data.
* @returns {string} Refined data.
* @returns {string}
*/
function refineData (data) {
return data
Expand Down Expand Up @@ -65,6 +66,8 @@ function refineData (data) {
* @param {string} data - The data.
* @param {string} start_string - Start string.
* @param {string} end_string - End string.
*
* @returns {string}
*/
function getStringBetweenStrings (data, start_string, end_string) {
const regex = new RegExp(`${escapeStringRegexp(start_string)}(.*?)${escapeStringRegexp(end_string)}`, "s");
Expand Down
42 changes: 40 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 21 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
{
"name": "googlethis",
"version": "1.2.8",
"version": "1.2.9",
"description": "A simple yet powerful module to retrieve organic search results and much more from Google.",
"main": "index.js",
"author": "LuanRT <[email protected]> (https://github.com/LuanRT)",
"funding": "https://ko-fi.com/luanrt",
"license": "MIT",
"scripts": {
"test": "node test"
"test": "node test",
"types": "npx tsc"
},
"engines": {
"node": ">=14"
},
"types": "./typings/index.d.ts",
"directories": {
"test": "./test",
"typings": "./typings",
"examples": "./examples",
"lib": "./lib"
},
"dependencies": {
"axios": "^0.21.1",
"cheerio": "^1.0.0-rc.6",
"replace-special-characters": "1.2.5",
"user-agents": "^1.0.784",
"unraw": "^2.0.1"
"unraw": "^2.0.1",
"user-agents": "^1.0.784"
},
"repository": {
"type": "git",
Expand All @@ -33,15 +47,12 @@
"serp",
"gis"
],
"author": "LuanRT",
"funding": "https://ko-fi.com/luanrt",
"license": "MIT",
"bugs": {
"url": "https://github.com/LuanRT/google-this/issues"
},
"homepage": "https://github.com/LuanRT/google-this#readme",
"directories": {
"example": "examples",
"lib": "lib"
"devDependencies": {
"@types/node": "^17.0.31",
"typescript": "^4.6.4"
}
}

0 comments on commit 5005f67

Please sign in to comment.