@elastic.io/maester-client
Advanced tools
Comparing version 4.0.2-dev.3 to 4.0.2
@@ -1,3 +0,3 @@ | ||
# 4.0.2 (August 10, 2022) | ||
* Added parameter `userAgent` which will be passed in each request for `StorageClient` | ||
# 4.0.2 (August 12, 2022) | ||
* Added parameter `userAgent` which will be passed in each request | ||
@@ -4,0 +4,0 @@ # 4.0.1 (July 25, 2022) |
{ | ||
"name": "@elastic.io/maester-client", | ||
"version": "4.0.2-dev.3", | ||
"version": "4.0.2", | ||
"description": "The official object-storage client", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -12,3 +12,3 @@ /// <reference types="node" /> | ||
jwtSecret?: string; | ||
userAgent: string; | ||
userAgent?: string; | ||
}, client?: StorageClient); | ||
@@ -15,0 +15,0 @@ private applyMiddlewares; |
@@ -18,3 +18,3 @@ import { uploadData } from './interfaces'; | ||
objectStorage: any; | ||
constructor(context: Scope, userAgent: string); | ||
constructor(context: Scope, userAgent?: string); | ||
/** | ||
@@ -21,0 +21,0 @@ * @param data any data (except 'undefined') |
@@ -18,3 +18,3 @@ /// <reference types="node" /> | ||
jwtSecret?: string; | ||
userAgent: string; | ||
userAgent?: string; | ||
}); | ||
@@ -21,0 +21,0 @@ private requestRetry; |
@@ -34,3 +34,3 @@ "use strict"; | ||
}); | ||
this.userAgent = `${config.userAgent} axios/${package_json_1.default.dependencies.axios}`; | ||
this.userAgent = `${config.userAgent || ''} axios/${package_json_1.default.dependencies.axios}`; | ||
this.jwtSecret = config.jwtSecret; | ||
@@ -56,3 +56,2 @@ } | ||
} | ||
logger_1.default.info('axiosReqConfig.headers: ', JSON.stringify(axiosReqConfig.headers)); | ||
res = await this.api.request({ ...axiosReqConfig, data: bodyAsStream, timeout: requestTimeout }); | ||
@@ -59,0 +58,0 @@ } |
{ | ||
"name": "@elastic.io/maester-client", | ||
"version": "4.0.2-dev.3", | ||
"version": "4.0.2", | ||
"description": "The official object-storage client", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
302008
5378