capacitor-sms
Advanced tools
Comparing version 0.0.1-alpha.1-17 to 0.0.1-alpha.1-18
import { WebPlugin } from '@capacitor/core'; | ||
import { SMSPlugin } from './definitions'; | ||
export declare class SMSPluginWeb extends WebPlugin implements SMSPlugin { | ||
platform: string; | ||
endpoint: string; | ||
@@ -12,2 +13,3 @@ constructor(); | ||
configEndpoint(options: { | ||
platform: string; | ||
endpoint: string; | ||
@@ -14,0 +16,0 @@ }): Promise<{ |
@@ -28,2 +28,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.endpoint = options.endpoint; | ||
this.platform = options.platform; | ||
return Promise.resolve({ result: { method: 'config', value: true } }); | ||
@@ -40,3 +41,3 @@ }); | ||
}, | ||
body: JSON.stringify({ number: options.number, text: options.message }) | ||
body: JSON.stringify({ platform: this.platform, number: options.number, text: options.message }) | ||
}) | ||
@@ -43,0 +44,0 @@ .then(function (res) { |
{ | ||
"name": "capacitor-sms", | ||
"version": "0.0.1-alpha.1-17", | ||
"version": "0.0.1-alpha.1-18", | ||
"description": "SMS Plugin", | ||
@@ -5,0 +5,0 @@ "main": "dist/esm/index.js", |
Sorry, the diff of this file is not supported yet
381033
241