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

gatsby-source-storyblok

Package Overview
Dependencies
Maintainers
4
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-storyblok - npm Package Compare versions

Comparing version 0.2.6 to 1.0.0

.travis.yml

8

package.json
{
"name": "gatsby-source-storyblok",
"description": "Gatsby source plugin for building websites using the Storyblok headless CMS as a data source.",
"version": "0.2.6",
"version": "1.0.0",
"author": "Alexander Feiglstorfer <af@storyblok.com>",
"dependencies": {
"json-stringify-safe": "^5.0.1",
"storyblok-js-client": "^1.0.22"
"storyblok-js-client": "^2.5.1"
},

@@ -26,6 +26,6 @@ "scripts": {

"babel-cli": "^6.26.0",
"jest": "^24.9.0"
"jest": "^26.1.0"
},
"peerDependencies": {
"storyblok-react": "^0.0.6"
"storyblok-react": "^0.1.0"
},

@@ -32,0 +32,0 @@ "homepage": "https://www.storyblok.com",

@@ -32,2 +32,3 @@ # Introduction

* `timeout`: Optionally provide a timeout for the api request
* `resolveLinks`: This will automatically resolve internal links of the multilink field type. If the value is `story` the whole story object will be included. If the value is `url` only uuid, id, name, path, slug and url (url is a computed property which returns the "Real path" if defined to use it for navigation links) will be included.
* `resolveRelations`: Resolve relationships to other Stories (in the first level of nesting) of a multi-option or single-option field-type. Provide the field key(s) as array to resolve specific fields. Example: ['article.related_articles', 'article.author'].

@@ -34,0 +35,0 @@ * `includeLinks`: If 'true' you can query links by allStoryblokLinkEntry. The links query lets you create a dynamic navigation tree as it includes also content folders.

@@ -1,6 +0,14 @@

module.exports = function(language, options) {
/**
* @method getStoryParams
* @param {String} language 'en', 'de'
* @param {Object} options? api options
* @param {Array<String>} options.resolveRelations? resolve_relations field
* @param {String} options.resolveLinks? can be story or url
* @param {String} options.version? can be draft or released
*/
const getStoryParams = function(language = '', options = {}) {
let params = {}
if (options.resolveLinks) {
params.resolve_links = '1'
params.resolve_links = options.resolveLinks || '1'
}

@@ -21,2 +29,4 @@

return params
}
}
module.exports = getStoryParams
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