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.1.9 to 1.2.0

6

api.d.ts

@@ -30,3 +30,5 @@ import { Response } from './superagent';

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

@@ -41,2 +43,2 @@ [key: string]: any;

} | undefined;
} | undefined) => () => Promise<T>;
} | undefined) => Promise<T>;

@@ -89,4 +89,4 @@ "use strict";

exports.request = request;
function makeMicroserviceRequest(baseURL, key) {
return (method, url, options) => async () => {
const makeMicroserviceRequest = (baseURL, key) => {
return async function microserviceRequest(method, url, options) {
const req = await (0, exports.request)({

@@ -104,4 +104,4 @@ method,

};
}
};
exports.makeMicroserviceRequest = makeMicroserviceRequest;
//# sourceMappingURL=api.js.map
{
"name": "@vitrical/utils",
"version": "1.1.9",
"version": "1.2.0",
"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