New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aurelle/http-fetcher

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurelle/http-fetcher - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

10

dist/http-fetcher.d.ts

@@ -11,10 +11,10 @@ import { HttpFetcherConfig, HttpFetcherConstructor, HttpFetcherExtension, HttpFetcherRequestInterceptor, HttpFetcherResponse, HttpFetcherResponseInterceptor } from "./http-fetcher.types";

private makeUrl;
constructor(fetcherConfig: HttpFetcherConstructor);
constructor(fetcherConfig?: HttpFetcherConstructor);
extend<T, U>(extension: HttpFetcherExtension<T, U>, context?: any): HttpFetcher;
beforeEach<T>(fn: HttpFetcherRequestInterceptor<T>, context?: any): HttpFetcher;
afterEach<T>(fn: HttpFetcherResponseInterceptor<T>, context?: any): HttpFetcher;
get<ResponseType>(url: string, { headers, params }?: HttpFetcherConfig): Promise<HttpFetcherResponse<ResponseType>>;
post<ResponseType, RequestType>(url: string, body: RequestType, { headers, params }?: HttpFetcherConfig): Promise<HttpFetcherResponse<ResponseType>>;
put<ResponseType, RequestType>(url: string, body: RequestType, { headers, params }?: HttpFetcherConfig): Promise<HttpFetcherResponse<ResponseType>>;
delete<ResponseType>(url: string, { headers, params }?: HttpFetcherConfig): Promise<HttpFetcherResponse<ResponseType>>;
get<ResponseType = any>(url: string, { headers, params }?: HttpFetcherConfig): Promise<HttpFetcherResponse<ResponseType>>;
post<ResponseType = any, BodyType = any>(url: string, body: BodyType, { headers, params }?: HttpFetcherConfig): Promise<HttpFetcherResponse<ResponseType>>;
put<ResponseType = any, BodyType = any>(url: string, body: BodyType, { headers, params }?: HttpFetcherConfig): Promise<HttpFetcherResponse<ResponseType>>;
delete<ResponseType = any>(url: string, { headers, params }?: HttpFetcherConfig): Promise<HttpFetcherResponse<ResponseType>>;
}

@@ -71,3 +71,3 @@ var __defProp = Object.defineProperty;

var HttpFetcher = class {
constructor(fetcherConfig) {
constructor(fetcherConfig = {}) {
this.fetcherConfig = fetcherConfig;

@@ -74,0 +74,0 @@ this.requestInterceptors = [];

{
"name": "@aurelle/http-fetcher",
"version": "0.0.3",
"version": "0.0.4",
"description": "A blazing fast, lightweight and easy to use HTTP client based on the fetch API.",

@@ -5,0 +5,0 @@ "private": false,

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