Skip to content

Commit

Permalink
Merge pull request #48 from storyblok/feature/v2-client
Browse files Browse the repository at this point in the history
feat: adds new client to use v2 api
  • Loading branch information
onefriendaday authored Apr 26, 2021
2 parents 98c5607 + 250f226 commit 9642bf7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
4 changes: 2 additions & 2 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const getStoryParams = require('./src/getStoryParams')
const stringify = require('json-stringify-safe')

exports.sourceNodes = async function({ actions }, options) {
const { createNode, setPluginStatus } = actions;
const client = new StoryblokClient(options, 'https://api.storyblok.com/v1');
const { createNode, setPluginStatus } = actions
const client = new StoryblokClient(options)

Sync.init({
createNode,
Expand Down
22 changes: 9 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
"version": "0.0.0-development",
"author": "Alexander Feiglstorfer <[email protected]>",
"dependencies": {
"axios": "^0.21.1",
"json-stringify-safe": "^5.0.1",
"storyblok-js-client": "^3.3.1"
"storyblok-js-client": "^4.0.5"
},
"scripts": {
"test": "jest"
Expand All @@ -23,6 +22,7 @@
"main": "index.js",
"license": "MIT",
"devDependencies": {
"axios": "^0.21.1",
"babel-cli": "^6.26.0",
"jest": "^26.1.0"
},
Expand Down

0 comments on commit 9642bf7

Please sign in to comment.