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

@vonage/messages

Package Overview
Dependencies
Maintainers
37
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/messages - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

7

dist/classes/AbstractAudioMessage.js

@@ -5,4 +5,9 @@ "use strict";

class AbstractAudioMessageObject {
message_type = 'audio';
channel;
audio;
to;
from;
client_ref;
constructor(audio, to, from, clientRef) {
this.message_type = 'audio';
this.audio = audio;

@@ -9,0 +14,0 @@ this.to = to;

@@ -5,4 +5,9 @@ "use strict";

class AbstractFileMessage {
message_type = 'file';
channel;
file;
to;
from;
client_ref;
constructor(file, to, from, clientRef) {
this.message_type = 'file';
this.file = file;

@@ -9,0 +14,0 @@ this.to = to;

@@ -5,4 +5,9 @@ "use strict";

class AbstractImageMessage {
message_type = 'image';
channel;
image;
to;
from;
client_ref;
constructor(image, to, from, clientRef) {
this.message_type = 'image';
this.image = image;

@@ -9,0 +14,0 @@ this.to = to;

@@ -5,4 +5,9 @@ "use strict";

class AbstractTextMessageObject {
message_type = 'text';
channel;
text;
to;
from;
client_ref;
constructor(text, to, from, clientRef) {
this.message_type = 'text';
this.text = text;

@@ -9,0 +14,0 @@ this.to = to;

@@ -5,4 +5,9 @@ "use strict";

class AbstractVideoMessage {
message_type = 'video';
channel;
video;
to;
from;
client_ref;
constructor(video, to, from, clientRef) {
this.message_type = 'video';
this.video = video;

@@ -9,0 +14,0 @@ this.to = to;

3

dist/classes/Messenger/Audio.js

@@ -6,5 +6,6 @@ "use strict";

class Audio extends AbstractAudioMessage_1.AbstractAudioMessageObject {
channel = 'messenger';
messenger;
constructor(audio, to, from, messenger, clientRef) {
super(audio, to, from, clientRef);
this.channel = 'messenger';
this.messenger = messenger;

@@ -11,0 +12,0 @@ }

@@ -6,5 +6,6 @@ "use strict";

class File extends AbstractFileMessage_1.AbstractFileMessage {
channel = 'messenger';
messenger;
constructor(file, to, from, messenger, clientRef) {
super(file, to, from, clientRef);
this.channel = 'messenger';
this.messenger = messenger;

@@ -11,0 +12,0 @@ }

@@ -6,5 +6,6 @@ "use strict";

class Image extends AbstractImageMessage_1.AbstractImageMessage {
channel = 'messenger';
messenger;
constructor(image, to, from, messenger, clientRef) {
super(image, to, from, clientRef);
this.channel = 'messenger';
this.messenger = messenger;

@@ -11,0 +12,0 @@ }

@@ -6,5 +6,6 @@ "use strict";

class Text extends AbstractTextMessage_1.AbstractTextMessageObject {
channel = 'messenger';
messenger;
constructor(text, to, from, messenger, clientRef) {
super(text, to, from, clientRef);
this.channel = 'messenger';
this.messenger = messenger;

@@ -11,0 +12,0 @@ }

@@ -6,5 +6,6 @@ "use strict";

class Video extends AbstractVideoMessage_1.AbstractVideoMessage {
channel = 'messenger';
messenger;
constructor(video, to, from, messenger, clientRef) {
super(video, to, from, clientRef);
this.channel = 'messenger';
this.messenger = messenger;

@@ -11,0 +12,0 @@ }

@@ -6,5 +6,5 @@ "use strict";

class Audio extends AbstractAudioMessage_1.AbstractAudioMessageObject {
channel = 'mms';
constructor(audio, to, from, clientRef) {
super(audio, to, from, clientRef);
this.channel = 'mms';
}

@@ -11,0 +11,0 @@ }

@@ -6,5 +6,5 @@ "use strict";

class Image extends AbstractImageMessage_1.AbstractImageMessage {
channel = 'mms';
constructor(image, to, from, clientRef) {
super(image, to, from, clientRef);
this.channel = 'mms';
}

@@ -11,0 +11,0 @@ }

@@ -5,5 +5,9 @@ "use strict";

class Vcard {
message_type = 'vcard';
channel = 'mms';
vcard;
to;
from;
client_ref;
constructor(vcardUrl, to, from, clientRef) {
this.message_type = 'vcard';
this.channel = 'mms';
this.vcard = { url: vcardUrl };

@@ -10,0 +14,0 @@ this.to = to;

@@ -6,5 +6,5 @@ "use strict";

class Video extends AbstractVideoMessage_1.AbstractVideoMessage {
channel = 'mms';
constructor(video, to, from, clientRef) {
super(video, to, from, clientRef);
this.channel = 'mms';
}

@@ -11,0 +11,0 @@ }

@@ -6,5 +6,5 @@ "use strict";

class SMS extends AbstractTextMessage_1.AbstractTextMessageObject {
channel = 'sms';
constructor(text, to, from, clientRef) {
super(text, to, from, clientRef);
this.channel = 'sms';
}

@@ -11,0 +11,0 @@ }

@@ -6,5 +6,6 @@ "use strict";

class Image extends AbstractImageMessage_1.AbstractImageMessage {
channel = 'viber_service';
viber_service;
constructor(image, to, from, viberService, clientRef) {
super(image, to, from, clientRef);
this.channel = 'viber_service';
this.viber_service = viberService;

@@ -11,0 +12,0 @@ }

@@ -6,5 +6,6 @@ "use strict";

class Text extends AbstractTextMessage_1.AbstractTextMessageObject {
channel = 'viber_service';
viber_service;
constructor(text, to, from, viberService, clientRef) {
super(text, to, from, clientRef);
this.channel = 'viber_service';
this.viber_service = viberService;

@@ -11,0 +12,0 @@ }

@@ -6,5 +6,5 @@ "use strict";

class Audio extends AbstractAudioMessage_1.AbstractAudioMessageObject {
channel = 'whatsapp';
constructor(audio, to, from, clientRef) {
super(audio, to, from, clientRef);
this.channel = 'whatsapp';
}

@@ -11,0 +11,0 @@ }

@@ -5,5 +5,9 @@ "use strict";

class CustomMessage {
message_type = 'custom';
channel = 'whatsapp';
custom;
to;
from;
client_ref;
constructor(custom, to, from, clientRef) {
this.message_type = 'custom';
this.channel = 'whatsapp';
this.custom = custom;

@@ -10,0 +14,0 @@ this.to = to;

@@ -6,5 +6,5 @@ "use strict";

class File extends AbstractFileMessage_1.AbstractFileMessage {
channel = 'whatsapp';
constructor(file, to, from, clientRef) {
super(file, to, from, clientRef);
this.channel = 'whatsapp';
}

@@ -11,0 +11,0 @@ }

@@ -6,5 +6,5 @@ "use strict";

class Image extends AbstractImageMessage_1.AbstractImageMessage {
channel = 'whatsapp';
constructor(image, to, from, clientRef) {
super(image, to, from, clientRef);
this.channel = 'whatsapp';
}

@@ -11,0 +11,0 @@ }

@@ -5,5 +5,10 @@ "use strict";

class TemplateMessage {
message_type = 'template';
channel = 'whatsapp';
template;
to;
from;
client_ref;
whatsapp;
constructor(template, to, from, locale, clientRef) {
this.message_type = 'template';
this.channel = 'whatsapp';
this.template = template;

@@ -10,0 +15,0 @@ this.to = to;

@@ -6,5 +6,5 @@ "use strict";

class Text extends AbstractTextMessage_1.AbstractTextMessageObject {
channel = 'whatsapp';
constructor(text, to, from, clientRef) {
super(text, to, from, clientRef);
this.channel = 'whatsapp';
}

@@ -11,0 +11,0 @@ }

@@ -6,5 +6,5 @@ "use strict";

class Video extends AbstractVideoMessage_1.AbstractVideoMessage {
channel = 'whatsapp';
constructor(video, to, from, clientRef) {
super(video, to, from, clientRef);
this.channel = 'whatsapp';
}

@@ -11,0 +11,0 @@ }

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -40,8 +31,6 @@ exports.Messages = void 0;

}
send(message) {
return __awaiter(this, void 0, void 0, function* () {
const data = stripUndefined(message);
const resp = yield this.sendPostRequest(`${this.config.apiHost}/v1/messages`, data);
return resp.data;
});
async send(message) {
const data = stripUndefined(message);
const resp = await this.sendPostRequest(`${this.config.apiHost}/v1/messages`, data);
return resp.data;
}

@@ -48,0 +37,0 @@ }

{
"name": "@vonage/messages",
"version": "1.0.13",
"version": "1.0.14",
"description": "Multi-channel messaging that integrates WhatsApp, Facebook, Viber, SMS, and MMS",

@@ -39,5 +39,5 @@ "keywords": [

"dependencies": {
"@vonage/auth": "^1.0.9",
"@vonage/server-client": "^1.0.15",
"@vonage/vetch": "^1.0.10"
"@vonage/auth": "^1.0.10",
"@vonage/server-client": "^1.0.16",
"@vonage/vetch": "^1.0.11"
},

@@ -44,0 +44,0 @@ "devDependencies": {

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

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

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

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

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