gatsby-source-ghost
Advanced tools
Comparing version 3.4.6 to 3.5.0
const GhostContentAPI = require('@tryghost/content-api'); | ||
module.exports.configure = configOptions => new GhostContentAPI({ | ||
url: configOptions.apiUrl, | ||
key: configOptions.contentApiKey, | ||
version: 'v2' | ||
}); | ||
module.exports.configure = ({apiUrl, contentApiKey, version = `v2`}) => { | ||
return new GhostContentAPI({ | ||
url: apiUrl, | ||
key: contentApiKey, | ||
version: version | ||
}); | ||
}; |
{ | ||
"name": "gatsby-source-ghost", | ||
"version": "3.4.6", | ||
"version": "3.5.0", | ||
"description": "Gatsby source plugin for building websites using the Ghost API as a data source.", | ||
@@ -22,17 +22,17 @@ "repository": "git@github.com:TryGhost/gatsby-source-ghost.git", | ||
"devDependencies": { | ||
"eslint": "6.4.0", | ||
"eslint": "6.5.1", | ||
"eslint-plugin-ghost": "0.5.0", | ||
"lodash": "4.17.15", | ||
"mocha": "6.2.0", | ||
"mocha": "6.2.1", | ||
"proxyquire": "2.1.3", | ||
"should": "13.2.3", | ||
"sinon": "7.4.2" | ||
"sinon": "7.5.0" | ||
}, | ||
"dependencies": { | ||
"@tryghost/content-api": "1.2.9", | ||
"bluebird": "3.5.5", | ||
"@tryghost/content-api": "1.3.1", | ||
"bluebird": "3.7.1", | ||
"cheerio": "1.0.0-rc.3", | ||
"gatsby-node-helpers": "^0.3.0", | ||
"qs": "6.8.0" | ||
"qs": "6.9.0" | ||
} | ||
} |
@@ -25,3 +25,4 @@ # Gatsby Source Ghost | ||
apiUrl: `https://<your-subdomain>.ghost.io`, | ||
contentApiKey: `<your content api key>` | ||
contentApiKey: `<your content api key>`, | ||
version: `v2` // optional, defaults to "v2" | ||
} | ||
@@ -28,0 +29,0 @@ } |
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
26648
438
144
+ Added@tryghost/content-api@1.3.1(transitive)
+ Addedbluebird@3.7.1(transitive)
+ Addedqs@6.9.0(transitive)
- Removed@tryghost/content-api@1.2.9(transitive)
- Removedbluebird@3.5.5(transitive)
- Removedqs@6.8.0(transitive)
Updated@tryghost/content-api@1.3.1
Updatedbluebird@3.7.1
Updatedqs@6.9.0