@vonage/number-insights
Advanced tools
Comparing version 1.0.12 to 1.0.13
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
19308
248
Updated@vonage/auth@^1.0.10
Updated@vonage/vetch@^1.0.11