Socket
Socket
Sign inDemoInstall

@vonage/pricing

Package Overview
Dependencies
Maintainers
37
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/pricing - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

38

dist/pricing.js
"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 });

@@ -15,26 +6,17 @@ exports.Pricing = void 0;

class Pricing extends server_client_1.Client {
constructor() {
super(...arguments);
this.authType = server_client_1.AuthenticationType.QUERY_KEY_SECRET;
authType = server_client_1.AuthenticationType.QUERY_KEY_SECRET;
async listCountryPricing(type, country) {
const resp = await this.sendGetRequest(`${this.config.restHost}/account/get-pricing/outbound/${type}`, { country });
return resp.data;
}
listCountryPricing(type, country) {
return __awaiter(this, void 0, void 0, function* () {
const resp = yield this.sendGetRequest(`${this.config.restHost}/account/get-pricing/outbound/${type}`, { country });
return resp.data;
});
async listAllCountriesPricing(type) {
const resp = await this.sendGetRequest(`${this.config.restHost}/account/get-full-pricing/outbound/${type}`);
return resp.data;
}
listAllCountriesPricing(type) {
return __awaiter(this, void 0, void 0, function* () {
const resp = yield this.sendGetRequest(`${this.config.restHost}/account/get-full-pricing/outbound/${type}`);
return resp.data;
});
async listPrefixPricing(type, prefix) {
const resp = await this.sendGetRequest(`${this.config.restHost}/account/get-prefix-pricing/outbound/${type}`, { prefix });
return resp.data;
}
listPrefixPricing(type, prefix) {
return __awaiter(this, void 0, void 0, function* () {
const resp = yield this.sendGetRequest(`${this.config.restHost}/account/get-prefix-pricing/outbound/${type}`, { prefix });
return resp.data;
});
}
}
exports.Pricing = Pricing;
//# sourceMappingURL=pricing.js.map
{
"name": "@vonage/pricing",
"version": "1.0.12",
"version": "1.0.13",
"description": "Vonage API for pricing",

@@ -30,5 +30,5 @@ "homepage": "https://developer.vonage.com",

"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"
},

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

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