gatsby-source-hire-with-google
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -41,6 +41,7 @@ "use strict"; | ||
data = _ref.data, | ||
status = _ref.status; // Gatsby requires each node to contain an id, so that is why add it here. | ||
status = _ref.status; | ||
return data.map(j => { | ||
if (status === 404) { | ||
return []; | ||
} else return data.map(j => { | ||
return _objectSpread({ | ||
@@ -47,0 +48,0 @@ id: j.identifier.value |
{ | ||
"name": "gatsby-source-hire-with-google", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Gatsby source plugin for loading job openings from hire.withgoogle.com", | ||
@@ -5,0 +5,0 @@ "main": "gatsby-node.js", |
@@ -13,6 +13,8 @@ import crypto from 'crypto' | ||
// Gatsby requires each node to contain an id, so that is why add it here. | ||
return data.map(j => { | ||
if (status === 404) { | ||
return [] | ||
} | ||
else return data.map(j => { | ||
return { | ||
id: j.identifier.value, | ||
id: j.identifier.value, // Gatsby requires each node to contain an id, so that is why add it here. | ||
...j | ||
@@ -19,0 +21,0 @@ } |
@@ -320,2 +320,34 @@ # Snapshot report for `src/test/test.js` | ||
'@type': 'JobPosting', | ||
datePosted: '2018-06-26T17:13:43+00:00', | ||
description: '<div>do stuff</div>', | ||
employmentType: 'Full time', | ||
hiringOrganization: { | ||
'@type': 'Organization', | ||
department: { | ||
'@type': 'Organization', | ||
name: '', | ||
}, | ||
name: 'Dromae', | ||
}, | ||
id: 'P_AAAAAACAAAEDE3wNS_lVOA', | ||
identifier: { | ||
'@type': 'PropertyValue', | ||
name: 'Dromae', | ||
value: 'P_AAAAAACAAAEDE3wNS_lVOA', | ||
}, | ||
jobLocation: { | ||
'@type': 'Place', | ||
address: { | ||
'@type': 'PostalAddress', | ||
addressCountry: 'US', | ||
addressLocality: 'Palo Alto', | ||
addressRegion: 'CA', | ||
}, | ||
}, | ||
title: 'New Job 26June2018', | ||
url: 'https://hire.withgoogle.com/public/jobs/dromae/view/P_AAAAAACAAAEDE3wNS_lVOA', | ||
}, | ||
{ | ||
'@context': 'http://schema.org', | ||
'@type': 'JobPosting', | ||
datePosted: '2018-06-08T18:35:50+00:00', | ||
@@ -420,2 +452,36 @@ description: '<div>distributed incentivize channels</div>', | ||
'@type': 'JobPosting', | ||
datePosted: '2018-06-29T17:30:55+00:00', | ||
description: '<div>ayyy</div>', | ||
employmentType: 'Full time', | ||
hiringOrganization: { | ||
'@type': 'Organization', | ||
department: { | ||
'@type': 'Organization', | ||
name: '', | ||
}, | ||
name: 'Dromae', | ||
}, | ||
id: 'P_AAAAAACAAADCJcXcsCDE19', | ||
identifier: { | ||
'@type': 'PropertyValue', | ||
name: 'Dromae', | ||
value: 'P_AAAAAACAAADCJcXcsCDE19', | ||
}, | ||
jobLocation: { | ||
'@type': 'Place', | ||
address: { | ||
'@type': 'PostalAddress', | ||
addressCountry: 'US', | ||
addressLocality: 'South Coffeyville', | ||
addressRegion: 'OK', | ||
postalCode: '74072', | ||
streetAddress: 'N Prospect St', | ||
}, | ||
}, | ||
title: 'Ricky Ticky Tong, I Can\'t Be A-Lone', | ||
url: 'https://hire.withgoogle.com/public/jobs/dromae/view/P_AAAAAACAAADCJcXcsCDE19', | ||
}, | ||
{ | ||
'@context': 'http://schema.org', | ||
'@type': 'JobPosting', | ||
datePosted: '2018-03-22T19:49:45+00:00', | ||
@@ -749,2 +815,36 @@ description: `Quia placeat ipsa quia. Aperiam delectus assumenda. Fugiat assumenda aut maiores.␊ | ||
'@type': 'JobPosting', | ||
datePosted: '2018-06-28T19:41:05+00:00', | ||
description: '<div>work</div>', | ||
employmentType: 'Full time', | ||
hiringOrganization: { | ||
'@type': 'Organization', | ||
department: { | ||
'@type': 'Organization', | ||
name: '', | ||
}, | ||
name: 'Dromae', | ||
}, | ||
id: 'P_AAAAAACAAAEPJOm7xxuxPE', | ||
identifier: { | ||
'@type': 'PropertyValue', | ||
name: 'Dromae', | ||
value: 'P_AAAAAACAAAEPJOm7xxuxPE', | ||
}, | ||
jobLocation: { | ||
'@type': 'Place', | ||
address: { | ||
'@type': 'PostalAddress', | ||
addressCountry: 'US', | ||
addressLocality: 'Sunnyvale', | ||
addressRegion: 'CA', | ||
postalCode: '94087', | ||
streetAddress: '1095 W El Camino Real', | ||
}, | ||
}, | ||
title: 'configurable feedback form job', | ||
url: 'https://hire.withgoogle.com/public/jobs/dromae/view/P_AAAAAACAAAEPJOm7xxuxPE', | ||
}, | ||
{ | ||
'@context': 'http://schema.org', | ||
'@type': 'JobPosting', | ||
datePosted: '2018-04-26T17:14:53+00:00', | ||
@@ -751,0 +851,0 @@ description: '<div>DONG<br /><br />DING</div>', |
Sorry, the diff of this file is not supported yet
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
174001
152