Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@activepieces/pieces-common

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@activepieces/pieces-common - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

9

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc