Skip to content

Commit 768c60b

Browse files
committed
feat(usage tracking): update sdk to send cli user agent for tracking
1 parent fd08cdf commit 768c60b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"lint:fix": "eslint --fix \"src/**/*.{js,ts}\" --quiet"
4444
},
4545
"dependencies": {
46-
"@apimatic/sdk": "^0.0.1-alpha.10",
46+
"@apimatic/sdk": "^0.1.0-alpha.1",
4747
"@oclif/command": "^1.8.0",
4848
"@oclif/config": "^1.17.0",
4949
"@oclif/plugin-autocomplete": "^0.3.0",

src/controllers/portal/generate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const downloadPortalAxios = async (zippedBuildFilePath: string, overrideAuthKey:
1717
const config: AxiosRequestConfig = {
1818
headers: {
1919
Authorization: authInfo || overrideAuthKey ? `X-Auth-Key ${authInfo?.authKey.trim() || overrideAuthKey}` : "",
20+
"User-Agent": "APIMatic CLI",
2021
...formData.getHeaders()
2122
},
2223
responseType: "arraybuffer"

0 commit comments

Comments
 (0)