@minotaur-ergo/http
Advanced tools
Comparing version 0.0.9 to 0.0.10
import { registerPlugin } from '@capacitor/core'; | ||
const Http = registerPlugin('Http', { | ||
web: () => import('./web').then(m => new m.HttpWeb()), | ||
electron: () => window.CapacitorCustomPlatform.plugins.Http | ||
}); | ||
@@ -5,0 +6,0 @@ export * from './definitions'; |
@@ -9,2 +9,3 @@ 'use strict'; | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.HttpWeb()), | ||
electron: () => window.CapacitorCustomPlatform.plugins.Http | ||
}); | ||
@@ -11,0 +12,0 @@ |
@@ -6,2 +6,3 @@ var capacitorHttp = (function (exports, core) { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.HttpWeb()), | ||
electron: () => window.CapacitorCustomPlatform.plugins.Http | ||
}); | ||
@@ -8,0 +9,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HttpElectron = void 0; | ||
exports.Http = void 0; | ||
const core_1 = require("@capacitor/core"); | ||
class HttpElectron extends core_1.WebPlugin { | ||
class Http extends core_1.WebPlugin { | ||
async request(options) { | ||
@@ -12,3 +12,3 @@ console.log('ECHO', options); | ||
} | ||
exports.HttpElectron = HttpElectron; | ||
exports.Http = Http; | ||
//# sourceMappingURL=plugin.js.map |
{ | ||
"name": "@minotaur-ergo/http", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Cors Free Http Client", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17628
146