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

gatsby-source-ghost

Package Overview
Dependencies
Maintainers
11
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-ghost - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

17

gatsby-node.js

@@ -32,15 +32,14 @@ const Promise = require('bluebird');

posts.map((post) => {
if (!post.codeinjection_head && !post.codeinjection_foot) {
const allCodeinjections = [post.codeinjection_head, post.codeinjection_foot].join('');
if (!allCodeinjections) {
return post;
}
const allCodeinjections = post.codeinjection_head.concat(post.codeinjection_foot);
if (allCodeinjections) {
const headInjection = parseCodeinjection(allCodeinjections);
const headInjection = parseCodeinjection(allCodeinjections);
if (_.isEmpty(post.codeinjection_styles)) {
post.codeinjection_styles = headInjection.styles;
} else {
post.codeinjection_styles += headInjection.styles;
}
if (_.isEmpty(post.codeinjection_styles)) {
post.codeinjection_styles = headInjection.styles;
} else {
post.codeinjection_styles += headInjection.styles;
}

@@ -47,0 +46,0 @@

{
"name": "gatsby-source-ghost",
"version": "4.0.0",
"version": "4.0.1",
"description": "Gatsby source plugin for building websites using the Ghost API as a data source.",

@@ -5,0 +5,0 @@ "repository": "git@github.com:TryGhost/gatsby-source-ghost.git",

@@ -26,3 +26,4 @@ # Gatsby Source Ghost

contentApiKey: `<your content api key>`,
version: `v3` // Ghost API version, optional, defaults to "v3". Pass in "v2" if your Ghost install is not on 3.0 yet.
version: `v3` // Ghost API version, optional, defaults to "v3".
// Pass in "v2" if your Ghost install is not on 3.0 yet!!!
}

@@ -29,0 +30,0 @@ }

@@ -8,6 +8,10 @@ /**

{
slug: 'welcome-to-ghost', tags: [
slug: 'welcome-to-ghost',
/* Adding this line simulates https://github.com/TryGhost/gatsby-source-ghost/issues/17 */
codeinjection_foot: '<style></style>',
tags: [
{slug: 'getting-started', id: '1'},
{slug: 'hash-feature-img', id: '2'}
], authors: [
],
authors: [
{name: 'Ghost Writer', id: '1'},

@@ -14,0 +18,0 @@ {name: 'Ghost Author', id: '2'}

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