@activepieces/pieces-common
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@activepieces/pieces-common", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"type": "commonjs", | ||
"dependencies": { | ||
"@sinclair/typebox": "^0.26.3", | ||
"axios": "1.2.4", | ||
"axios": "1.4.0", | ||
"nanoid": "^3.3.4", | ||
"@activepieces/pieces-framework": "0.5.0", | ||
"@activepieces/shared": "0.5.0", | ||
"semver": "7.5.3", | ||
"@activepieces/pieces-framework": "0.6.1", | ||
"@activepieces/shared": "0.5.7", | ||
"tslib": "1.14.1" | ||
@@ -12,0 +13,0 @@ }, |
@@ -1,2 +0,1 @@ | ||
import { AxiosStatic } from 'axios'; | ||
import { DelegatingAuthenticationConverter } from '../core/delegating-authentication-converter'; | ||
@@ -8,6 +7,5 @@ import { BaseHttpClient } from '../core/base-http-client'; | ||
export declare class AxiosHttpClient extends BaseHttpClient { | ||
private readonly client; | ||
constructor(baseUrl?: string, authenticationConverter?: DelegatingAuthenticationConverter, client?: AxiosStatic); | ||
constructor(baseUrl?: string, authenticationConverter?: DelegatingAuthenticationConverter); | ||
sendRequest<ResponseBody extends HttpMessageBody>(request: HttpRequest<HttpMessageBody>): Promise<HttpResponse<ResponseBody>>; | ||
private getAxiosRequestMethod; | ||
} |
@@ -10,5 +10,4 @@ "use strict"; | ||
class AxiosHttpClient extends base_http_client_1.BaseHttpClient { | ||
constructor(baseUrl = '', authenticationConverter = new delegating_authentication_converter_1.DelegatingAuthenticationConverter(), client = axios_1.default) { | ||
constructor(baseUrl = '', authenticationConverter = new delegating_authentication_converter_1.DelegatingAuthenticationConverter()) { | ||
super(baseUrl, authenticationConverter); | ||
this.client = client; | ||
} | ||
@@ -19,2 +18,3 @@ sendRequest(request) { | ||
try { | ||
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0'; | ||
const url = this.getUrl(request); | ||
@@ -39,2 +39,3 @@ const headers = this.getHeaders(request); | ||
catch (e) { | ||
console.error('[HttpClient#sendRequest] error:', e); | ||
if (axios_1.default.isAxiosError(e)) { | ||
@@ -45,3 +46,2 @@ console.error('[HttpClient#sendRequest] error, responseStatus:', (_a = e.response) === null || _a === void 0 ? void 0 : _a.status); | ||
} | ||
console.error('[HttpClient#sendRequest] error:', e); | ||
throw e; | ||
@@ -48,0 +48,0 @@ } |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
36817
7
557
2
+ Addedsemver@7.5.3
+ Added@activepieces/pieces-framework@0.6.1(transitive)
+ Added@activepieces/shared@0.5.60.5.7(transitive)
+ Addedaxios@1.4.0(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addedsemver@7.5.3(transitive)
+ Addedyallist@4.0.0(transitive)
- Removed@activepieces/pieces-framework@0.5.0(transitive)
- Removed@activepieces/shared@0.5.0(transitive)
- Removedaxios@1.2.4(transitive)
Updated@activepieces/shared@0.5.7
Updatedaxios@1.4.0