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

@koibanx/http

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@koibanx/http - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

1

lib/Client.d.ts

@@ -17,4 +17,5 @@ import { AxiosInstance } from 'axios';

put<B, O>({ url, headers, body }: Input<B>): Promise<Output<O>>;
patch<B, O>({ url, headers, body }: Input<B>): Promise<Output<O>>;
delete<O>({ url, headers, params }: Input<undefined>): Promise<Output<O>>;
}
export declare const client: (instance: AxiosInstance) => IClient;

@@ -22,2 +22,5 @@ "use strict";

.catch((err) => handleError(err));
const httpPatch = (client) => ({ url, headers, body, }) => client.patch(url, body, { headers })
.then((res) => handleResponse(res))
.catch((err) => handleError(err));
const httpDelete = (client) => ({ url, headers, params, }) => client.delete(url, { headers, params })

@@ -30,4 +33,5 @@ .then((res) => handleResponse(res))

put: httpPut(instance),
patch: httpPatch(instance),
delete: httpDelete(instance),
});
exports.client = client;

@@ -75,2 +75,3 @@ "use strict";

put: httpClient.put,
patch: httpClient.patch,
delete: httpClient.delete,

@@ -77,0 +78,0 @@ setHeader: (key, value) => instance.defaults.headers.setHeader(key, value),

2

package.json
{
"name": "@koibanx/http",
"version": "0.1.0",
"version": "0.2.0",
"description": "",

@@ -5,0 +5,0 @@ "type": "commonjs",

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