Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-source-drupal

Package Overview
Dependencies
Maintainers
1
Versions
815
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-drupal - npm Package Compare versions

Comparing version 1.0.0-alpha13-alpha.215cabc2 to 1.0.0-alpha13-alpha.526805ab

README.md

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc