Skip to content

Commit

Permalink
feat(headers): add feature to user agent header
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Rötsch authored and axe312ger committed Jul 24, 2018
1 parent ca83eeb commit 4a5b87e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"callsites": "^2.0.0",
"cardinal": "^1.0.0",
"chalk": "^2.2.0",
"contentful-management": "^4.0.3",
"contentful-management": "^5.2.0-beta0",
"didyoumean2": "^1.3.0",
"hoek": "^4.2.1",
"https-proxy-agent": "^2.1.0",
Expand Down
6 changes: 5 additions & 1 deletion src/bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ const run = async function (argv) {
}

const application = argv.managementApplication || `contentful.migration-cli/${version}`
const feature = argv.managementFeature || `migration-library`

const clientConfig = Object.assign({application}, getConfig(argv))
const clientConfig = Object.assign({
application,
feature
}, getConfig(argv))

const client = createManagementClient(clientConfig)
const makeRequest = function (requestConfig) {
Expand Down

0 comments on commit 4a5b87e

Please sign in to comment.