Comparing version 3.24.2 to 3.25.0
{ | ||
"name": "storyblok", | ||
"version": "3.24.2", | ||
"version": "3.25.0", | ||
"description": "A simple CLI to start Storyblok from your command line.", | ||
@@ -45,3 +45,3 @@ "repository": { | ||
"simple-uuid": "^0.0.1", | ||
"storyblok-js-client": "^4.5.6", | ||
"storyblok-js-client": "^5.12.0", | ||
"update-notifier": "^5.1.0", | ||
@@ -48,0 +48,0 @@ "xml-js": "^1.6.11" |
@@ -31,2 +31,7 @@ const API_URL = 'https://api.storyblok.com/v1/' | ||
const DEFAULT_AGENT = { | ||
SB_Agent: 'SB-CLI', | ||
SB_Agent_Version: process.env.npm_package_version || '3.0.0' | ||
} | ||
module.exports = { | ||
@@ -39,3 +44,4 @@ LOGIN_URL, | ||
CN_API_URL, | ||
COMMANDS | ||
COMMANDS, | ||
DEFAULT_AGENT | ||
} |
@@ -8,3 +8,3 @@ const chalk = require('chalk') | ||
const getQuestions = require('./get-questions') | ||
const { SIGNUP_URL, API_URL, US_API_URL, CN_API_URL } = require('../constants') | ||
const { SIGNUP_URL, API_URL, US_API_URL, CN_API_URL, DEFAULT_AGENT } = require('../constants') | ||
@@ -24,3 +24,6 @@ module.exports = { | ||
oauthToken: this.oauthToken, | ||
region: this.region | ||
region: this.region, | ||
headers: { | ||
...DEFAULT_AGENT | ||
} | ||
}, this.apiSwitcher(region)) | ||
@@ -282,3 +285,6 @@ } catch (error) { | ||
oauthToken: this.oauthToken, | ||
region | ||
region, | ||
headers: { | ||
...DEFAULT_AGENT | ||
} | ||
}, this.apiSwitcher(region)) | ||
@@ -285,0 +291,0 @@ return await customClient |
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
213331
5771
+ Addedstoryblok-js-client@5.14.4(transitive)
- Removedstoryblok-js-client@4.5.8(transitive)
Updatedstoryblok-js-client@^5.12.0