Socket
Socket
Sign inDemoInstall

@vonage/server-sdk

Package Overview
Dependencies
Maintainers
32
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/server-sdk - npm Package Compare versions

Comparing version 2.12.0-beta.2 to 3.0.0-alpha.1

dist/index.d.ts

2

LICENSE.txt

@@ -178,3 +178,3 @@ Apache License

Copyright (c) 2020 Vonage
Copyright (c) 2022 Vonage

@@ -181,0 +181,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

{
"name": "@vonage/server-sdk",
"author": "vonage",
"version": "2.12.0-beta.2",
"main": "lib/Vonage",
"types": "./typings/index.d.ts",
"keywords": [
"sms",
"voice",
"vonage",
"verify",
"2fa",
"phone numbers"
"version": "3.0.0-alpha.1",
"description": "Node.js Client for the Vonage API Platform",
"author": "Chris Tankersley <chris@ctankersley.com>",
"homepage": "https://developer.vonage.com",
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"directories": {
"lib": "dist",
"test": "__tests__"
},
"files": [
"/dist"
],
"homepage": "https://github.com/vonage/vonage-node-sdk",
"publishConfig": {
"directory": "dist"
},
"repository": {
"type": "git",
"url": "git://github.com/vonage/vonage-node-sdk.git"
"url": "git+https://github.com/Vonage/vonage-node-sdk.git"
},
"description": "Vonage Server SDK for Node.js. API support for SMS, Voice Calls, Text-to-Speech, Numbers, Verify (2FA) and more.",
"contributors": [
"vonage",
"kellyjandrews",
"pvela",
"leggetter",
"akuzi",
"bpilot",
"justinfreitag",
"ecwyne",
"https://github.com/backhand",
"alexlakatos"
],
"scripts": {
"compile": "./node_modules/.bin/babel -d lib src/ -s inline",
"test": "npm run test-no-lint",
"report-coverage": "cross-env NODE_ENV=test nyc --reporter=text-lcov mocha > coverage.lcov",
"test-coverage": "cross-env NODE_ENV=test nyc mocha",
"test-coverage-html": "cross-env NODE_ENV=test nyc --reporter html mocha",
"test-no-lint": "npm run compile && mocha --require @babel/register ./test/*-test.js",
"test-watch": "nodemon --watch src --watch test -x 'npm run test-no-lint'",
"lint": "eslint src test",
"lint-fix": "eslint --fix src test",
"prepublish": "npm run compile",
"pretest": "npm run lint",
"test-e2e": "npm run compile && mocha --compilers ./node_modules/.bin/_mocha --compilers js:babel-register ./e2e/*.spec.js"
"build": "npm run clean && npm run compile",
"clean": "tsc -b --clean",
"compile": "tsc -p tsconfig.json",
"format": "prettier --write \"lib/**/*.ts\"",
"lint": "tslint -p tsconfig.json",
"prepublishOnly": "npm run build && npm run test && npm run lint",
"preversion": "npm run lint",
"test-watch": "npx jest --watch",
"test": "npx jest",
"version": "npm run format && git add -A lib"
},
"devDependencies": {
"@babel/cli": "^7.13.10",
"@babel/core": "^7.13.10",
"@babel/eslint-parser": "^7.13.10",
"@babel/eslint-plugin": "^7.13.10",
"@babel/plugin-proposal-object-rest-spread": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/register": "^7.13.8",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-istanbul": "^6.0.0",
"bluebird": "^3.5.3",
"body-parser": "^1.18.3",
"chai": "^3.5.0",
"cross-env": "^7.0.2",
"dotenv": "^9.0.2",
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"expect.js": "^0.3.1",
"mocha": "^9.2.1",
"nodemon": "^2.0.4",
"nyc": "^15.1.0",
"prettier": "^2.2.1",
"sinon": "^1.17.4",
"sinon-chai": "^2.8.0",
"sinon-expect": "^0.3.0"
"bugs": {
"url": "https://github.com/Vonage/vonage-node-sdk/issues"
},
"dependencies": {
"@babel/eslint-parser": "^7.13.10",
"@babel/eslint-plugin": "^7.13.10",
"jsonwebtoken": "^8.4.0",
"query-string": "^7.1.1",
"request": "^2.88.2",
"require-module": "^0.1.0",
"uuid": "^8.3.0"
},
"license": "Apache 2.0"
"@vonage/accounts": "^0.2.1",
"@vonage/applications": "^0.3.1",
"@vonage/messages": "^0.2.1",
"@vonage/number-insights": "^0.2.1",
"@vonage/numbers": "^0.2.1",
"@vonage/pricing": "^0.2.1",
"@vonage/server-client": "^0.3.0",
"@vonage/sms": "^0.3.1",
"@vonage/verify": "^0.2.1",
"@vonage/voice": "^0.2.1"
}
}
# Vonage Server SDK for Node.js
![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/vonage/vonage-node-sdk/Vonage/master?logo=github&style=flat-square&label=Workflow%20Build) [![Codecov](https://img.shields.io/codecov/c/github/vonage/vonage-node-sdk?label=Codecov&logo=codecov&style=flat-square)](https://codecov.io/gh/Vonage/vonage-server-sdk) ![Latest Release](https://img.shields.io/github/v/release/vonage/vonage-node-sdk?logo=npm&style=flat-square)
![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/vonage/vonage-node-sdk/Vonage/3.x-wip?logo=github&style=flat-square&label=Workflow%20Build) [![Codecov](https://img.shields.io/codecov/c/github/vonage/vonage-node-sdk?label=Codecov&logo=codecov&style=flat-square)](https://codecov.io/gh/Vonage/vonage-server-sdk) ![Latest Release](https://img.shields.io/github/v/release/vonage/vonage-node-sdk?logo=npm&style=flat-square)

@@ -25,3 +25,3 @@ [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=flat-square)](CODE_OF_CONDUCT.md) [![License](https://img.shields.io/npm/l/@vonage/server-sdk?label=License&style=flat-square)][license]

```bash
npm install @vonage/server-sdk
npm install @vonage/server-sdk@3.0.0-beta
```

@@ -32,3 +32,3 @@

```bash
yarn add @vonage/server-sdk
yarn add @vonage/server-sdk@3.0.0-beta
```

@@ -38,5 +38,2 @@

* `apiKey` and `apiSecret` are required for SMS, Verify, Number Insights, Account management APIs
* `applicationId` and `privateKey` are required for Voice / Stitch applications
```js

@@ -90,21 +87,9 @@ const Vonage = require('@vonage/server-sdk');

## Callbacks
## Promises
All methods expect a `callback` function to be passed in, with a method signature of `(error, response)` where:
Most methods that interact with the Vonage API uses Promises. You can either resolve these yourself, or use `await` to
wait for a response.
* `error` - is an Error object if the API call returns an error, or `null` if the API call was successful.
* `response` - is an Object, with the API response if the API call was successful, or `null` if there was an error.
Example:
```js
callback = (error, response) => {
if (error) {
console.error(error)
}
if (response) {
console.log(response)
}
}
const resp = await vonage.sms.send({to: '15552220000', from: '15559992222', 'This is a test'});
```

@@ -117,3 +102,3 @@

```bash
npm test
npm run test
```

@@ -144,3 +129,3 @@

| External Accounts API | Beta |❌|
| Media API | Beta |✅|
| Media API | Beta |❌|
| Messages API | Beta |❌|

@@ -150,3 +135,3 @@ | Number Insight API | General Availability |✅|

| Pricing API | General Availability |✅|
| Redact API | Developer Preview |✅|
| Redact API | Developer Preview |❌|
| Reports API | Beta |❌|

@@ -153,0 +138,0 @@ | SMS API | General Availability |✅|

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