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

@vonage/cli-utils

Package Overview
Dependencies
Maintainers
22
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/cli-utils - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

4

dist/index.d.ts
import { Command, flags } from '@oclif/command';
import { OutputArgs, OutputFlags } from '@oclif/parser';
import { OutputFlags } from '@oclif/parser';
interface UserConfig {

@@ -15,3 +15,3 @@ apiKey: string;

protected _userConfig: UserConfig;
protected parsedArgs?: OutputArgs;
protected parsedArgs?: any;
protected parsedFlags?: OutputFlags<typeof BaseCommand.flags>;

@@ -18,0 +18,0 @@ protected globalFlags?: OutputFlags<any>;

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

const command_1 = require("@oclif/command");
const server_sdk_1 = (0, tslib_1.__importDefault)(require("@vonage/server-sdk"));
const server_sdk_1 = tslib_1.__importDefault(require("@vonage/server-sdk"));
const fs_1 = require("fs");
const path = (0, tslib_1.__importStar)(require("path"));
const path = tslib_1.__importStar(require("path"));
// interface IClaims {

@@ -45,7 +45,7 @@ // application_id: string

saveConfig(newConfig) {
(0, fs_1.writeFileSync)(path.join(this.config.configDir, 'vonage.config.json'), JSON.stringify(newConfig));
fs_1.writeFileSync(path.join(this.config.configDir, 'vonage.config.json'), JSON.stringify(newConfig));
return;
}
displayBalance() {
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
return new Promise((res, rej) => {

@@ -64,7 +64,6 @@ this.vonage.account.checkBalance((error, response) => {

init() {
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
// const { args, flags } = this.parse(this.constructor as Input<typeof BaseCommand.flags>);
const { args, flags } = this.parse(this.constructor);
const { flags } = this.parse(this.constructor);
this.globalFlags = { apiKey: flags.apiKey, apiSecret: flags.apiSecret, appId: flags.appId, keyFile: flags.keyFile, trace: flags.trace };
this.parsedArgs = args;
this.parsedFlags = flags;

@@ -77,3 +76,3 @@ this.Vonage = server_sdk_1.default;

try {
let rawConfig = (0, fs_1.readFileSync)(path.join(this.config.configDir, 'vonage.config.json'));
let rawConfig = fs_1.readFileSync(path.join(this.config.configDir, 'vonage.config.json'));
this._userConfig = JSON.parse(rawConfig.toString());

@@ -114,3 +113,3 @@ }

var _a, _b;
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
if (((_a = error.oclif) === null || _a === void 0 ? void 0 : _a.exit) === 0)

@@ -143,3 +142,3 @@ return;

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

@@ -146,0 +145,0 @@ });

{
"name": "@vonage/cli-utils",
"version": "1.1.0",
"version": "1.2.0",
"author": "Kelly Andrews @kellyjandrews",

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

},
"gitHead": "4fcecffc5fc11ef43f131393805f8c80f59b4d00"
"gitHead": "7c39d3416cc3adb082687fa7dc9a9ab731e9d937"
}
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