gatsby-source-drupal
Advanced tools
Comparing version 1.0.0-alpha17 to 1.0.0-alpha19
{ | ||
"name": "gatsby-source-drupal", | ||
"version": "1.0.0-alpha17", | ||
"version": "1.0.0-alpha19", | ||
"description": "Gatsby source plugin for building websites using the Drupal CMS as a data source", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -53,3 +53,7 @@ const axios = require(`axios`) | ||
if (lastFetched) { | ||
url = `${baseUrl}/jsonapi/node/article?filter[new-content][path]=changed&filter[new-content][value]=${parseInt(new Date(lastFetched).getTime() / 1000).toFixed(0)}&filter[new-content][operator]=%3E&page[offset]=0&page[limit]=10` | ||
url = `${baseUrl}/jsonapi/node/article?filter[new-content][path]=changed&filter[new-content][value]=${parseInt( | ||
new Date(lastFetched).getTime() / 1000 | ||
).toFixed( | ||
0 | ||
)}&filter[new-content][operator]=%3E&page[offset]=0&page[limit]=10` | ||
} else { | ||
@@ -136,3 +140,4 @@ url = `${baseUrl}/jsonapi/node/article` | ||
.then(pictureResult => { | ||
gatsbyUser.picture = `http://dev-gatsbyjs-d8.pantheonsite.io${pictureResult.data.data.attributes.url}` | ||
gatsbyUser.picture = `http://dev-gatsbyjs-d8.pantheonsite.io${pictureResult | ||
.data.data.attributes.url}` | ||
@@ -139,0 +144,0 @@ // Get content digest of node. |
6808
134