From dac93c590c608f470e19503a3d78125f1d71ff2b Mon Sep 17 00:00:00 2001
From: Vishwa Gaurav <81325730+VishwaGauravIn@users.noreply.github.com>
Date: Wed, 29 Jun 2022 16:29:49 +0530
Subject: [PATCH 1/2] changed badge style
---
README.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 12da8c9..5f1a19b 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@

LinkedIn Jobs API
-

-

-

-

-

-

+

+

+

+

+

+
## Features
From dc3714dec5ef9c9e646453f77938cb192f0287c3 Mon Sep 17 00:00:00 2001
From: MernJs Community
Date: Thu, 27 Apr 2023 00:13:29 +0530
Subject: [PATCH 2/2] FIXED: TypeError: Cannot read properties of undefined
(reading 'replace')
---
index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index 96bc06f..ef8a174 100644
--- a/index.js
+++ b/index.js
@@ -13,8 +13,8 @@ function Query(queryObj) {
this.host = queryObj.host || "www.linkedin.com";
//api handles strings with spaces by replacing the values with %20
- this.keyword = queryObj.keyword.replace(" ", "+") || "";
- this.location = queryObj.location.replace(" ", "+") || "";
+ this.keyword = queryObj.keyword?.replace(" ", "+") || "";
+ this.location = queryObj.location?.replace(" ", "+") || "";
this.dateSincePosted = queryObj.dateSincePosted || "";
this.jobType = queryObj.jobType || "";
this.remoteFilter = queryObj.remoteFilter || "";