gatsby-source-drupal
Advanced tools
Comparing version 1.0.0-alpha16-alpha.102adc51 to 1.0.0-alpha16-alpha.7b3bcd50
{ | ||
"name": "gatsby-source-drupal", | ||
"version": "1.0.0-alpha16-alpha.102adc51", | ||
"version": "1.0.0-alpha16-alpha.7b3bcd50", | ||
"description": "Gatsby source plugin for building websites using the Drupal CMS as a data source", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -31,14 +31,3 @@ const axios = require(`axios`) | ||
) => { | ||
const { | ||
createNode, | ||
updateSourcePluginStatus, | ||
touchNode, | ||
} = boundActionCreators | ||
updateSourcePluginStatus({ | ||
plugin: `gatsby-source-drupal`, | ||
status: { | ||
...store.getState().status[`gatsby-source-drupal`], | ||
ready: false, | ||
}, | ||
}) | ||
const { createNode, setPluginStatus, touchNode } = boundActionCreators | ||
@@ -54,5 +43,10 @@ // Touch existing Drupal nodes so Gatsby doesn't garbage collect them. | ||
const lastFetched = store.getState().status.sourcePlugins[ | ||
`gatsby-source-drupal` | ||
].lastFetched | ||
let lastFetched | ||
if ( | ||
store.getState().status.plugins && | ||
store.getState().status.plugins[`gatsby-source-drupal`] | ||
) { | ||
lastFetched = store.getState().status.plugins[`gatsby-source-drupal`] | ||
.lastFetched | ||
} | ||
@@ -75,6 +69,4 @@ let url | ||
updateSourcePluginStatus({ | ||
plugin: `gatsby-source-drupal`, | ||
setPluginStatus({ | ||
status: { | ||
...store.getState().status[`gatsby-source-drupal`], | ||
lastFetched: new Date().toJSON(), | ||
@@ -164,11 +156,3 @@ }, | ||
updateSourcePluginStatus({ | ||
plugin: `gatsby-source-drupal`, | ||
status: { | ||
...store.getState().status[`gatsby-source-drupal`], | ||
ready: true, | ||
}, | ||
}) | ||
return | ||
} |
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
6782
129
6