gatsby-source-storyblok
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -17,3 +17,3 @@ const StoryblokClient = require('storyblok-js-client') | ||
const space = await Sync.getSpace() | ||
const languages = (options.languages ? options.languages : space.language_codes).map((lang) => { return lang + '/*' }) | ||
const languages = options.languages ? options.languages : space.language_codes | ||
languages.push('') | ||
@@ -20,0 +20,0 @@ |
{ | ||
"name": "gatsby-source-storyblok", | ||
"description": "Gatsby source plugin for building websites using the Storyblok headless CMS as a data source.", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "Alexander Feiglstorfer <af@storyblok.com>", | ||
"dependencies": { | ||
"json-stringify-safe": "^5.0.1", | ||
"storyblok-js-client": "^4.0.5" | ||
"storyblok-js-client": "^4.0.6" | ||
}, | ||
@@ -10,0 +10,0 @@ "scripts": { |
# Introduction | ||
This is a Gatsby source plugin for building websites using the [Storyblok](https://www.storyblok.com) headless CMS with true visual preview as a data source. | ||
This is a Gatsby source plugin for building websites using the [Storyblok](https://www.storyblok.com) headless CMS with true visual preview as a data source. | ||
@@ -5,0 +5,0 @@ ## Install |
@@ -25,3 +25,3 @@ /** | ||
if (language.length > 0) { | ||
params.starts_with = language | ||
params.language = language | ||
} | ||
@@ -28,0 +28,0 @@ |
@@ -13,3 +13,3 @@ const getStoryParams = require('../src/getStoryParams') | ||
expect(getStoryParams('en', options)).toEqual({ | ||
starts_with: 'en', | ||
language: 'en', | ||
resolve_links: 'story' | ||
@@ -24,3 +24,3 @@ }) | ||
expect(getStoryParams('en', options)).toEqual({ | ||
starts_with: 'en', | ||
language: 'en', | ||
resolve_links: 'url' | ||
@@ -35,3 +35,3 @@ }) | ||
expect(getStoryParams('en', options)).toEqual({ | ||
starts_with: 'en', | ||
language: 'en', | ||
version: 'draft' | ||
@@ -47,3 +47,3 @@ }) | ||
expect(getStoryParams('en', options)).toEqual({ | ||
starts_with: 'en', | ||
language: 'en', | ||
version: 'draft', | ||
@@ -50,0 +50,0 @@ resolve_relations: 'page.author,page.categories' |
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
15237
Updatedstoryblok-js-client@^4.0.6