Skip to content

Commit 664a6d0

Browse files
committed
Update to use NPM core package and add custom User-Agent
- Changed @sharpapi/sharpapi-node-core dependency from local file to ^1.0.0 - Added custom User-Agent: @sharpapi/sharpapi-node-resume-job-match-score/1.0.1 - Bumped version to 1.0.1
1 parent 0379b01 commit 664a6d0

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sharpapi/sharpapi-node-resume-job-match-score",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "SharpAPI.com Node.js SDK for matching resumes to job descriptions",
55
"main": "src/index.js",
66
"scripts": {
@@ -26,7 +26,7 @@
2626
"author": "Dawid Makowski <contact@sharpapi.com>",
2727
"license": "MIT",
2828
"dependencies": {
29-
"@sharpapi/sharpapi-node-core": "file:../sharpapi-node-core"
29+
"@sharpapi/sharpapi-node-core": "^1.0.0"
3030
},
3131
"devDependencies": {
3232
"jest": "^29.7.0"

src/SharpApiResumeJobMatchScoreService.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ const { SharpApiCoreService, SharpApiJobTypeEnum } = require('@sharpapi/sharpapi
44
* Service for matching resumes to job descriptions using SharpAPI.com
55
*/
66
class SharpApiResumeJobMatchScoreService extends SharpApiCoreService {
7+
/**
8+
* Creates a new SharpApiResumeJobMatchScoreService instance
9+
* @param {string} apiKey - Your SharpAPI API key
10+
* @param {string} [apiBaseUrl='https://sharpapi.com/api/v1'] - API base URL
11+
*/
12+
constructor(apiKey, apiBaseUrl = 'https://sharpapi.com/api/v1') {
13+
super(apiKey, apiBaseUrl, '@sharpapi/sharpapi-node-resume-job-match-score/1.0.1');
14+
}
15+
716
/**
817
* Compares a resume to a job description and provides match scores and explanations.
918
* This endpoint helps evaluate how well a candidate's resume matches a specific job description.

0 commit comments

Comments
 (0)