gatsby-source-hire-with-google
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -24,3 +24,3 @@ "use strict"; | ||
function getJob(_x) { | ||
function getJob(_x, _x2) { | ||
return _getJob.apply(this, arguments); | ||
@@ -30,3 +30,5 @@ } | ||
function _getJob() { | ||
_getJob = _asyncToGenerator(function* (replaceDivs) { | ||
_getJob = _asyncToGenerator(function* (link, { | ||
replaceDivs | ||
}) { | ||
const response = yield _axios.default.get(jobUrl); | ||
@@ -49,3 +51,3 @@ | ||
function getJobs(_x2) { | ||
function getJobs(_x3) { | ||
return _getJobs.apply(this, arguments); | ||
@@ -66,3 +68,5 @@ } | ||
}).get(); | ||
return yield Promise.all(jobLinks.map(l => getJob(replaceDivs))); | ||
return yield Promise.all(jobLinks.map(l => getJob(link, { | ||
replaceDivs | ||
}))); | ||
}); | ||
@@ -97,5 +101,5 @@ return _getJobs.apply(this, arguments); | ||
return function (_x3, _x4) { | ||
return function (_x4, _x5) { | ||
return _ref.apply(this, arguments); | ||
}; | ||
}(); |
{ | ||
"name": "gatsby-source-hire-with-google", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Gatsby source plugin for loading job openings from hire.withgoogle.com", | ||
@@ -5,0 +5,0 @@ "main": "gatsby-node.js", |
@@ -13,3 +13,3 @@ import crypto from 'crypto' | ||
async function getJob(replaceDivs) { | ||
async function getJob(link, { replaceDivs }) { | ||
const response = await axios.get(jobUrl) | ||
@@ -36,3 +36,3 @@ const $ = cheerio.load(response.data); | ||
return await Promise.all(jobLinks.map(l => getJob(replaceDivs))) | ||
return await Promise.all(jobLinks.map(l => getJob(link, { replaceDivs }))) | ||
} | ||
@@ -39,0 +39,0 @@ |
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
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
8987
132