Socket
Socket
Sign inDemoInstall

@vitrical/utils

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitrical/utils - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

20

api.d.ts

@@ -5,5 +5,3 @@ import { AxiosError } from 'axios';

status: number;
body: {
[key: string]: any;
} | string;
body: any;
headers: {

@@ -17,5 +15,3 @@ [key: string]: any;

status: number;
body: string | {
[key: string]: any;
};
body: any;
headers: {

@@ -28,5 +24,3 @@ [key: string]: any;

url: string;
body?: {
[key: string]: any;
} | string;
body?: any;
query?: string | {

@@ -40,8 +34,4 @@ [key: string]: any;

export declare const request: ({ method, url, body, query, headers, }: CustomRequestOptions) => Promise<CustomRequestResponse>;
export declare const makeMicroserviceRequest: (baseURL: string, key: string) => <T extends string | {
[key: string]: any;
}>(method: 'get' | 'post' | 'put' | 'delete', url: string, options?: {
body?: string | {
[key: string]: any;
} | undefined;
export declare const makeMicroserviceRequest: (baseURL: string, key: string) => <T extends unknown>(method: 'get' | 'post' | 'put' | 'delete', url: string, options?: {
body?: any;
query?: string | {

@@ -48,0 +38,0 @@ [key: string]: any;

{
"name": "@vitrical/utils",
"version": "1.3.1",
"version": "1.3.2",
"description": "Collection of useful functions and typings",

@@ -5,0 +5,0 @@ "main": "index.js",

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