Socket
Socket
Sign inDemoInstall

@vonage/number-insights

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/number-insights - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

49

dist/number-insights.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,29 +6,21 @@ exports.NumberInsights = void 0;

class NumberInsights extends server_client_1.Client {
advancedLookup(phoneNumber, options) {
return __awaiter(this, void 0, void 0, function* () {
const params = Object.assign({ number: phoneNumber }, options);
const resp = yield this.sendGetRequest(`${this.config.apiHost}/ni/advanced/json`, params);
return resp.data;
});
async advancedLookup(phoneNumber, options) {
const params = { number: phoneNumber, ...options };
const resp = await this.sendGetRequest(`${this.config.apiHost}/ni/advanced/json`, params);
return resp.data;
}
asyncAdvancedLookup(phoneNumber, callback, options) {
return __awaiter(this, void 0, void 0, function* () {
const params = Object.assign({ number: phoneNumber, callback }, options);
const resp = yield this.sendGetRequest(`${this.config.apiHost}/ni/advanced/async/json`, params);
return resp.data;
});
async asyncAdvancedLookup(phoneNumber, callback, options) {
const params = { number: phoneNumber, callback, ...options };
const resp = await this.sendGetRequest(`${this.config.apiHost}/ni/advanced/async/json`, params);
return resp.data;
}
basicLookup(phoneNumber, options) {
return __awaiter(this, void 0, void 0, function* () {
const params = Object.assign({ number: phoneNumber }, options);
const resp = yield this.sendGetRequest(`${this.config.apiHost}/ni/basic/json`, params);
return resp.data;
});
async basicLookup(phoneNumber, options) {
const params = { number: phoneNumber, ...options };
const resp = await this.sendGetRequest(`${this.config.apiHost}/ni/basic/json`, params);
return resp.data;
}
standardLookup(phoneNumber, options) {
return __awaiter(this, void 0, void 0, function* () {
const params = Object.assign({ number: phoneNumber }, options);
const resp = yield this.sendGetRequest(`${this.config.apiHost}/ni/standard/json`, params);
return resp.data;
});
async standardLookup(phoneNumber, options) {
const params = { number: phoneNumber, ...options };
const resp = await this.sendGetRequest(`${this.config.apiHost}/ni/standard/json`, params);
return resp.data;
}

@@ -44,0 +27,0 @@ }

{
"name": "@vonage/number-insights",
"version": "1.0.12",
"version": "1.0.13",
"description": "Vonage Number Insights API",

@@ -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