@crowdin/crowdin-api-client
Advanced tools
Comparing version 1.5.4 to 1.5.5
@@ -25,2 +25,3 @@ export interface RequestConfig { | ||
userAgent?: string; | ||
integrationUserAgen?: string; | ||
} | ||
@@ -27,0 +28,0 @@ export interface ResponseList<T> { |
@@ -53,4 +53,9 @@ "use strict"; | ||
}; | ||
if (!!this.config && !!this.config.userAgent) { | ||
config.headers['User-Agent'] = this.config.userAgent; | ||
if (!!this.config) { | ||
if (!!this.config.userAgent) { | ||
config.headers['User-Agent'] = this.config.userAgent; | ||
} | ||
if (!!this.config.integrationUserAgen) { | ||
config.headers['X-Crowdin-Integrations-User-Agent'] = this.config.integrationUserAgen; | ||
} | ||
} | ||
@@ -57,0 +62,0 @@ return config; |
{ | ||
"name": "@crowdin/crowdin-api-client", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "JavaScript library for Crowdin API v2.", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
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
160789
3985