New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vonage/cli-plugin-sms

Package Overview
Dependencies
Maintainers
22
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/cli-plugin-sms - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

21

dist/commands/sms/index.d.ts
import BaseCommand from '@vonage/cli-utils';
import { OutputFlags } from '@oclif/parser';
interface SMSFlags {
to: any;
from: any;
message?: any;
}
import { flags } from '@oclif/parser';
export default class SMSSend extends BaseCommand {

@@ -12,4 +7,13 @@ static description: string;

static usage: string[];
static flags: OutputFlags<typeof BaseCommand.flags> & SMSFlags;
static args: any[];
static flags: {
to: flags.IOptionFlag<string>;
from: flags.IOptionFlag<string>;
message: flags.IOptionFlag<string>;
help: flags.IBooleanFlag<void>;
apiKey: import("@oclif/command/lib/flags").IOptionFlag<string>;
apiSecret: import("@oclif/command/lib/flags").IOptionFlag<string>;
appId: import("@oclif/command/lib/flags").IOptionFlag<string>;
keyFile: import("@oclif/command/lib/flags").IOptionFlag<string>;
trace: flags.IBooleanFlag<boolean>;
};
sendSMS(params: any): Promise<import("@vonage/vetch").VetchResponse>;

@@ -19,2 +23,1 @@ run(): Promise<void>;

}
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const cli_utils_1 = (0, tslib_1.__importDefault)(require("@vonage/cli-utils"));
const cli_utils_1 = tslib_1.__importDefault(require("@vonage/cli-utils"));
const vetch_1 = require("@vonage/vetch");

@@ -9,3 +9,3 @@ const parser_1 = require("@oclif/parser");

sendSMS(params) {
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
let opts = {};

@@ -16,3 +16,3 @@ opts['url'] = `https://rest.nexmo.com/sms/json`;

opts['data'] = params;
let response = yield (0, vetch_1.request)(opts);
let response = yield vetch_1.request(opts);
return response;

@@ -22,3 +22,3 @@ });

run() {
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const flags = this.parsedFlags;

@@ -39,3 +39,3 @@ let response = yield this.sendSMS(Object.assign({ api_key: this._apiKey, api_secret: this._apiSecret, text: flags.message }, flags));

});
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
return _super.catch.call(this, error);

@@ -51,3 +51,3 @@ });

SMSSend.usage = [
`vonage sms --to=15551234567 --from=15551234567 --message='Hello there!'`,
`sms --to=15551234567 --from=15551234567 --message='Hello there!'`,
];

@@ -61,2 +61,1 @@ SMSSend.flags = Object.assign(Object.assign({}, cli_utils_1.default.flags), { "to": parser_1.flags.string({

}) });
SMSSend.args = [];
{
"name": "@vonage/cli-plugin-sms",
"version": "1.1.0",
"version": "1.1.1",
"author": "Vonage Dev Rel <devrel@vonage.com>",

@@ -10,3 +10,3 @@ "bugs": "https://github.com/Vonage/vonage-cli/issues",

"@oclif/parser": "^3.8.5",
"@vonage/cli-utils": "^1.2.0",
"@vonage/cli-utils": "^1.2.1",
"@vonage/vetch": "^3.0.0-beta.3",

@@ -67,3 +67,3 @@ "chalk": "^2.4.2",

},
"gitHead": "7c39d3416cc3adb082687fa7dc9a9ab731e9d937"
"gitHead": "812f9778c207beb005625cad790c72d31d5c2431"
}

@@ -22,3 +22,3 @@ # @vonage/cli-plugin-sms

$ oclif-example (-v|--version|version)
@vonage/cli-plugin-sms/1.1.0 linux-x64 node-v12.18.2
@vonage/cli-plugin-sms/1.1.1 linux-x64 node-v16.14.0
$ oclif-example --help [COMMAND]

@@ -34,5 +34,5 @@ USAGE

<!-- commands -->
* [`oclif-example vonage sms --to=15551234567 --from=15551234567 --message='Hello there!'`](#oclif-example-vonage-sms---to15551234567---from15551234567---messagehello-there)
* [`oclif-example sms --to=15551234567 --from=15551234567 --message='Hello there!'`](#oclif-example-sms---to15551234567---from15551234567---messagehello-there)
## `oclif-example vonage sms --to=15551234567 --from=15551234567 --message='Hello there!'`
## `oclif-example sms --to=15551234567 --from=15551234567 --message='Hello there!'`

@@ -43,3 +43,3 @@ Send a simple SMS.

USAGE
$ oclif-example vonage sms --to=15551234567 --from=15551234567 --message='Hello there!'
$ oclif-example sms --to=15551234567 --from=15551234567 --message='Hello there!'

@@ -56,3 +56,3 @@ OPTIONS

_See code: [dist/commands/sms/index.ts](https://github.com/Vonage/vonage-cli/blob/v1.1.0/dist/commands/sms/index.ts)_
_See code: [dist/commands/sms/index.ts](https://github.com/Vonage/vonage-cli/blob/v1.1.1/dist/commands/sms/index.ts)_
<!-- commandsstop -->
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