gatsby-source-drupal
Advanced tools
Comparing version 1.0.0-alpha13-alpha.215cabc2 to 1.0.0-alpha13-alpha.526805ab
{ | ||
"name": "gatsby-source-drupal", | ||
"version": "1.0.0-alpha13-alpha.215cabc2", | ||
"version": "1.0.0-alpha13-alpha.526805ab", | ||
"description": "Gatsby source plugin for building websites using the Drupal CMS as a data source", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -28,8 +28,6 @@ const axios = require(`axios`) | ||
exports.sourceNodes = async ({ | ||
boundActionCreators, | ||
getNode, | ||
hasNodeChanged, | ||
store, | ||
}) => { | ||
exports.sourceNodes = async ( | ||
{ boundActionCreators, getNode, hasNodeChanged, store }, | ||
{ baseUrl } | ||
) => { | ||
const { | ||
@@ -69,5 +67,5 @@ createNode, | ||
if (lastFetched) { | ||
url = `http://dev-gatsbyjs-d8.pantheonsite.io/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 { | ||
url = `http://dev-gatsbyjs-d8.pantheonsite.io/jsonapi/node/article` | ||
url = `${baseUrl}/jsonapi/node/article` | ||
} | ||
@@ -104,3 +102,3 @@ | ||
content: nodeStr, | ||
author: result.data.data[i].relationships.uid.data.id, | ||
author___NODE: result.data.data[i].relationships.uid.data.id, | ||
mediaType: `application/json`, | ||
@@ -112,4 +110,3 @@ } | ||
.createHash(`md5`) | ||
.update(JSON.stringify(gatsbyNode)) | ||
.digest(`hex`) | ||
.update(JSON.stringify(gatsbyNode)).digest(`hex`) | ||
@@ -155,4 +152,3 @@ gatsbyNode.contentDigest = contentDigest | ||
.createHash(`md5`) | ||
.update(JSON.stringify(gatsbyUser)) | ||
.digest(`hex`) | ||
.update(JSON.stringify(gatsbyUser)).digest(`hex`) | ||
@@ -159,0 +155,0 @@ gatsbyUser.contentDigest = contentDigest |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
7039
6
0
56
142