@open-source-initiative/notify-sms
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -44,2 +44,4 @@ /** | ||
message: string; | ||
}, options?: { | ||
useSenderIdName?: boolean; | ||
}): Promise<{ | ||
@@ -88,4 +90,5 @@ success: boolean; | ||
}): SMSClass; | ||
getAccessToken(): string | undefined; | ||
} | ||
export declare const SMS: SMSClass; | ||
//# sourceMappingURL=sms.d.ts.map |
@@ -145,4 +145,4 @@ "use strict"; | ||
}; | ||
SMSClass.prototype.SEND_SMS_TO_CUSTOM_CONTACTS = function (_a) { | ||
return __awaiter(this, arguments, void 0, function (_b) { | ||
SMSClass.prototype.SEND_SMS_TO_CUSTOM_CONTACTS = function (_a, options_1) { | ||
return __awaiter(this, arguments, void 0, function (_b, options) { | ||
var contacts = _b.contacts, senderId = _b.senderId, message = _b.message; | ||
@@ -157,3 +157,3 @@ return __generator(this, function (_c) { | ||
message: message | ||
}, { URL: configs_1.SEND_SMS_API, ACCESS_TOKEN: this.accessToken })]; | ||
}, __assign({ URL: configs_1.SEND_SMS_API, ACCESS_TOKEN: this.accessToken }, options))]; | ||
}); | ||
@@ -210,2 +210,5 @@ }); | ||
}; | ||
SMSClass.prototype.getAccessToken = function () { | ||
return this.accessToken; | ||
}; | ||
return SMSClass; | ||
@@ -212,0 +215,0 @@ }()); |
{ | ||
"name": "@open-source-initiative/notify-sms", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "This library enables users to send SMSs to zambian numbers accross all networks via notify", | ||
@@ -5,0 +5,0 @@ "main": "./build/index", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
88711
1405