gatsby-source-storyblok
Advanced tools
Comparing version 0.2.6 to 1.0.0
{ | ||
"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 |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
9
211
0
162
11006
1
+ Added@babel/runtime-corejs3@7.26.0(transitive)
+ Addedcore-js-pure@3.39.0(transitive)
+ Addedstoryblok-js-client@2.5.2(transitive)
+ Addedstoryblok-react@0.1.2(transitive)
- Removed@babel/runtime-corejs2@7.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedstoryblok-js-client@1.0.35(transitive)
- Removedstoryblok-react@0.0.6(transitive)
Updatedstoryblok-js-client@^2.5.1