@vonage/verify
Advanced tools
Comparing version 1.0.10 to 1.0.11
{ | ||
"name": "@vonage/verify", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Verify package for Vonage", | ||
@@ -40,4 +40,3 @@ "keywords": [ | ||
"@vonage/server-client": "^1.0.8", | ||
"@vonage/vetch": "^1.0.6", | ||
"tslib": "^2.4.1" | ||
"@vonage/vetch": "^1.0.6" | ||
}, | ||
@@ -44,0 +43,0 @@ "devDependencies": { |
@@ -23,6 +23,6 @@ # Vonage Verify SDK for Node.js | ||
* [Installation](#installation) | ||
* [Usage](#using-the-vonage-verify-sdk) | ||
* [Promises](#promises) | ||
* [Testing](#testing) | ||
- [Installation](#installation) | ||
- [Usage](#using-the-vonage-verify-sdk) | ||
- [Promises](#promises) | ||
- [Testing](#testing) | ||
@@ -58,14 +58,15 @@ ## Installation | ||
```js | ||
const { Vonage } = require('@vonage/server-sdk'); | ||
const { Vonage } = require('@vonage/server-sdk') | ||
const credentials = { | ||
apiKey: API_KEY, | ||
apiSecret: API_SECRET | ||
}; | ||
const options = {}; | ||
const vonage = new Vonage(credentials, options); | ||
apiSecret: API_SECRET, | ||
} | ||
const options = {} | ||
const vonage = new Vonage(credentials, options) | ||
vonage.verify.check(VERIFY_REQUEST_ID, CODE) | ||
.then(resp => console.log(resp)) | ||
.catch(err => console.error(err)); | ||
vonage.verify | ||
.check(VERIFY_REQUEST_ID, CODE) | ||
.then((resp) => console.log(resp)) | ||
.catch((err) => console.error(err)) | ||
``` | ||
@@ -82,11 +83,11 @@ | ||
```js | ||
const { Auth } = require('@vonage/auth'); | ||
const { Verify } = require('@vonage/verify'); | ||
const { Auth } = require('@vonage/auth') | ||
const { Verify } = require('@vonage/verify') | ||
const credentials = new Auth({ | ||
apiKey: API_KEY, | ||
apiSecret: API_SECRET | ||
}); | ||
const options = {}; | ||
const verifyClient = new Verify(credentials, options); | ||
apiSecret: API_SECRET, | ||
}) | ||
const options = {} | ||
const verifyClient = new Verify(credentials, options) | ||
``` | ||
@@ -103,7 +104,8 @@ | ||
```js | ||
const resp = await vonage.vrify.check(VERIFY_REQUEST_ID, CODE); | ||
const resp = await vonage.vrify.check(VERIFY_REQUEST_ID, CODE) | ||
vonage.verify.check(VERIFY_REQUEST_ID, CODE) | ||
.then(resp => console.log(resp)) | ||
.catch(err => console.error(err)); | ||
vonage.verify | ||
.check(VERIFY_REQUEST_ID, CODE) | ||
.then((resp) => console.log(resp)) | ||
.catch((err) => console.error(err)) | ||
``` | ||
@@ -110,0 +112,0 @@ |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
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
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
3
119
50
2
3
1
13
4920
47871
2
0
2
+ Added@vonage/server-client@1.16.1(transitive)
- Removedtslib@^2.4.1
- Removed@vonage/server-client@1.16.0(transitive)
- Removedtslib@2.8.1(transitive)