storyblok 3.16.0 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,8 +3,6 @@
3
3
  <p align="center">A simple CLI for scaffolding <a href="https://www.storyblok.com" target="_blank">Storyblok</a> projects and fieldtypes.</p>
4
4
  </p>
5
5
 
6
- You found an issue?<br>Tell us about it - <a href="https://github.com/storyblok/storyblok/issues/new">open an issue</a> or look if it was <a href="https://github.com/storyblok/storyblok/issues/">already reported</a>.
7
-
8
6
  [![npm](https://img.shields.io/npm/v/storyblok.svg)](https://www.npmjs.com/package/storyblok)
9
7
  [![npm](https://img.shields.io/npm/dt/storyblok.svg)](ttps://img.shields.io/npm/dt/storyblok.svg)
10
8
  [![GitHub issues](https://img.shields.io/github/issues/storyblok/storyblok.svg?style=flat-square&v=1)](https://github.com/storyblok/storyblok/issues?q=is%3Aopen+is%3Aissue)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyblok",
3
- "version": "3.16.0",
3
+ "version": "3.16.1",
4
4
  "description": "A simple CLI to start Storyblok from your command line.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  const chalk = require('chalk')
2
- const StoryblokClient = require('storyblok-js-client')
3
2
  const { findByProperty } = require('../../utils')
3
+ const api = require('../../utils/api')
4
4
 
5
5
  class SyncComponentGroups {
6
6
  /**
@@ -14,9 +14,7 @@ class SyncComponentGroups {
14
14
  this.sourceComponentGroups = []
15
15
  this.targetComponentGroups = []
16
16
 
17
- this.client = new StoryblokClient({
18
- oauthToken: options.oauthToken
19
- })
17
+ this.client = api.getClient()
20
18
  }
21
19
 
22
20
  async init () {
@@ -1,9 +1,9 @@
1
1
  const chalk = require('chalk')
2
- const StoryblokClient = require('storyblok-js-client')
3
2
  const { find } = require('lodash')
4
3
  const SyncComponentGroups = require('./component-groups')
5
4
  const { findByProperty } = require('../../utils')
6
5
  const PresetsLib = require('../../utils/presets-lib')
6
+ const api = require('../../utils/api')
7
7
 
8
8
  class SyncComponents {
9
9
  /**
@@ -16,9 +16,7 @@ class SyncComponents {
16
16
  this.sourceSpaceId = options.sourceSpaceId
17
17
  this.targetSpaceId = options.targetSpaceId
18
18
  this.oauthToken = options.oauthToken
19
- this.client = new StoryblokClient({
20
- oauthToken: options.oauthToken
21
- })
19
+ this.client = api.getClient()
22
20
  this.presetsLib = new PresetsLib({ oauthToken: options.oauthToken, targetSpaceId: this.targetSpaceId })
23
21
  }
24
22
 
@@ -1,8 +1,8 @@
1
1
  const chalk = require('chalk')
2
- const StoryblokClient = require('storyblok-js-client')
3
2
  const FormData = require('form-data')
4
3
  const axios = require('axios')
5
4
  const { last } = require('lodash')
5
+ const api = require('./api')
6
6
 
7
7
  class PresetsLib {
8
8
  /**
@@ -10,9 +10,7 @@ class PresetsLib {
10
10
  */
11
11
  constructor (options) {
12
12
  this.oauthToken = options.oauthToken
13
- this.client = new StoryblokClient({
14
- oauthToken: options.oauthToken
15
- })
13
+ this.client = api.getClient()
16
14
  this.targetSpaceId = options.targetSpaceId
17
15
  }
18
16
 
package/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: node_js
2
- node_js:
3
- - 14
4
- after_success:
5
- - npx semantic-release