visualvault-api 2.0.0-beta.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -4
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# visualvault-api
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
A Node.js client library that provides convenient access to the VisualVault REST API for server-side applications.
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
@@ -26,7 +24,7 @@ import vvRestApi from 'visualvault-api';
|
|
|
26
24
|
const vvRestApi = require('visualvault-api');
|
|
27
25
|
|
|
28
26
|
// Initialize authentication
|
|
29
|
-
const auth = new vvRestApi.
|
|
27
|
+
const auth = new vvRestApi.Authorize();
|
|
30
28
|
|
|
31
29
|
// Get authenticated client
|
|
32
30
|
auth.getVaultApi(
|
|
@@ -51,7 +49,7 @@ auth.getVaultApi(
|
|
|
51
49
|
If you already have a JWT token:
|
|
52
50
|
|
|
53
51
|
```javascript
|
|
54
|
-
const auth = new vvRestApi.
|
|
52
|
+
const auth = new vvRestApi.Authorize();
|
|
55
53
|
|
|
56
54
|
auth.getVaultApiFromJwt(
|
|
57
55
|
'your-jwt-token',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visualvault-api",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A Node.js client library for the VisualVault APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -8,14 +8,17 @@
|
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
11
12
|
"import": "./dist/index.js",
|
|
12
13
|
"require": "./dist/index.cjs"
|
|
13
14
|
},
|
|
14
15
|
"./constants": {
|
|
16
|
+
"types": "./dist/constants.d.ts",
|
|
15
17
|
"import": "./dist/constants.js",
|
|
16
18
|
"require": "./dist/constants.cjs"
|
|
17
19
|
},
|
|
18
20
|
"./VVRestApi": {
|
|
21
|
+
"types": "./dist/VVRestApi.d.ts",
|
|
19
22
|
"import": "./dist/VVRestApi.js",
|
|
20
23
|
"require": "./dist/VVRestApi.cjs"
|
|
21
24
|
}
|