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

@minotaur-ergo/http

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@minotaur-ergo/http - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

95

dist/docs.json

@@ -26,2 +26,97 @@ {

"slug": "request"
},
{
"name": "get",
"signature": "(options: HttpOptions) => Promise<HttpResponse>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "HttpOptions"
}
],
"returns": "Promise<HttpResponse>",
"tags": [],
"docs": "",
"complexTypes": [
"HttpResponse",
"HttpOptions"
],
"slug": "get"
},
{
"name": "post",
"signature": "(options: HttpOptions) => Promise<HttpResponse>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "HttpOptions"
}
],
"returns": "Promise<HttpResponse>",
"tags": [],
"docs": "",
"complexTypes": [
"HttpResponse",
"HttpOptions"
],
"slug": "post"
},
{
"name": "put",
"signature": "(options: HttpOptions) => Promise<HttpResponse>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "HttpOptions"
}
],
"returns": "Promise<HttpResponse>",
"tags": [],
"docs": "",
"complexTypes": [
"HttpResponse",
"HttpOptions"
],
"slug": "put"
},
{
"name": "patch",
"signature": "(options: HttpOptions) => Promise<HttpResponse>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "HttpOptions"
}
],
"returns": "Promise<HttpResponse>",
"tags": [],
"docs": "",
"complexTypes": [
"HttpResponse",
"HttpOptions"
],
"slug": "patch"
},
{
"name": "delete",
"signature": "(options: HttpOptions) => Promise<HttpResponse>",
"parameters": [
{
"name": "options",
"docs": "",
"type": "HttpOptions"
}
],
"returns": "Promise<HttpResponse>",
"tags": [],
"docs": "",
"complexTypes": [
"HttpResponse",
"HttpOptions"
],
"slug": "delete"
}

@@ -28,0 +123,0 @@ ],

export interface HttpPlugin {
request(options: HttpOptions): Promise<HttpResponse>;
get(options: HttpOptions): Promise<HttpResponse>;
post(options: HttpOptions): Promise<HttpResponse>;
put(options: HttpOptions): Promise<HttpResponse>;
patch(options: HttpOptions): Promise<HttpResponse>;
delete(options: HttpOptions): Promise<HttpResponse>;
}

@@ -4,0 +9,0 @@ declare type HttpResponseType = 'arraybuffer' | 'blob' | 'json' | 'text' | 'document';

@@ -5,2 +5,7 @@ import { WebPlugin } from '@capacitor/core';

request(options: HttpOptions): Promise<HttpResponse>;
get(options: HttpOptions): Promise<HttpResponse>;
post(options: HttpOptions): Promise<HttpResponse>;
put(options: HttpOptions): Promise<HttpResponse>;
patch(options: HttpOptions): Promise<HttpResponse>;
delete(options: HttpOptions): Promise<HttpResponse>;
}

@@ -12,3 +12,18 @@ import { WebPlugin } from '@capacitor/core';

}
get(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'GET' }));
}
post(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'POST' }));
}
put(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'PUT' }));
}
patch(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'PATCH' }));
}
delete(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'DELETE' }));
}
}
//# sourceMappingURL=web.js.map

@@ -22,2 +22,17 @@ 'use strict';

}
get(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'GET' }));
}
post(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'POST' }));
}
put(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'PUT' }));
}
patch(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'PATCH' }));
}
delete(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'DELETE' }));
}
}

@@ -24,0 +39,0 @@

@@ -19,2 +19,17 @@ var capacitorHttp = (function (exports, core) {

}
get(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'GET' }));
}
post(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'POST' }));
}
put(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'PUT' }));
}
patch(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'PATCH' }));
}
delete(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'DELETE' }));
}
}

@@ -21,0 +36,0 @@

@@ -147,4 +147,19 @@ 'use strict';

}
get(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'GET' }));
}
post(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'POST' }));
}
put(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'PUT' }));
}
patch(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'PATCH' }));
}
delete(options) {
return this.request(Object.assign(Object.assign({}, options), { method: 'DELETE' }));
}
}
exports.Http = Http;
//# sourceMappingURL=plugin.js.map

2

package.json
{
"name": "@minotaur-ergo/http",
"version": "0.0.11",
"version": "0.0.12",
"description": "Cors Free Http Client",

@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js",

@@ -17,2 +17,7 @@ # @minotaur-ergo/http

* [`request(...)`](#request)
* [`get(...)`](#get)
* [`post(...)`](#post)
* [`put(...)`](#put)
* [`patch(...)`](#patch)
* [`delete(...)`](#delete)
* [Interfaces](#interfaces)

@@ -41,2 +46,77 @@ * [Type Aliases](#type-aliases)

### get(...)
```typescript
get(options: HttpOptions) => Promise<HttpResponse>
```
| Param | Type |
| ------------- | --------------------------------------------------- |
| **`options`** | <code><a href="#httpoptions">HttpOptions</a></code> |
**Returns:** <code>Promise&lt;<a href="#httpresponse">HttpResponse</a>&gt;</code>
--------------------
### post(...)
```typescript
post(options: HttpOptions) => Promise<HttpResponse>
```
| Param | Type |
| ------------- | --------------------------------------------------- |
| **`options`** | <code><a href="#httpoptions">HttpOptions</a></code> |
**Returns:** <code>Promise&lt;<a href="#httpresponse">HttpResponse</a>&gt;</code>
--------------------
### put(...)
```typescript
put(options: HttpOptions) => Promise<HttpResponse>
```
| Param | Type |
| ------------- | --------------------------------------------------- |
| **`options`** | <code><a href="#httpoptions">HttpOptions</a></code> |
**Returns:** <code>Promise&lt;<a href="#httpresponse">HttpResponse</a>&gt;</code>
--------------------
### patch(...)
```typescript
patch(options: HttpOptions) => Promise<HttpResponse>
```
| Param | Type |
| ------------- | --------------------------------------------------- |
| **`options`** | <code><a href="#httpoptions">HttpOptions</a></code> |
**Returns:** <code>Promise&lt;<a href="#httpresponse">HttpResponse</a>&gt;</code>
--------------------
### delete(...)
```typescript
delete(options: HttpOptions) => Promise<HttpResponse>
```
| Param | Type |
| ------------- | --------------------------------------------------- |
| **`options`** | <code><a href="#httpoptions">HttpOptions</a></code> |
**Returns:** <code>Promise&lt;<a href="#httpresponse">HttpResponse</a>&gt;</code>
--------------------
### Interfaces

@@ -43,0 +123,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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