@rootaccessd/client 1.0.5 → 1.0.8
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 +4 -4
- package/dist/base.js +1 -1
- package/dist/esm/base.js +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ npm install @rootaccessd/client axios
|
|
|
15
15
|
import { AuthApi, ChallengesApi, Configuration } from '@rootaccessd/client';
|
|
16
16
|
|
|
17
17
|
// 1. Point at your backend
|
|
18
|
-
const baseConfig = new Configuration({ basePath: '
|
|
18
|
+
const baseConfig = new Configuration({ basePath: 'https://rootaccess.live' });
|
|
19
19
|
|
|
20
20
|
// 2. Login and extract token
|
|
21
21
|
const authApi = new AuthApi(baseConfig);
|
|
@@ -24,7 +24,7 @@ const token = data.token;
|
|
|
24
24
|
|
|
25
25
|
// 3. Use Bearer auth for protected endpoints
|
|
26
26
|
const authedConfig = new Configuration({
|
|
27
|
-
basePath: '
|
|
27
|
+
basePath: 'https://rootaccess.live',
|
|
28
28
|
apiKey: () => `Bearer ${token}`,
|
|
29
29
|
});
|
|
30
30
|
|
|
@@ -39,8 +39,8 @@ Clone the repo and set your backend URL in
|
|
|
39
39
|
|
|
40
40
|
```ts
|
|
41
41
|
export const environment = {
|
|
42
|
-
apiUrl: '
|
|
43
|
-
wsUrl: '
|
|
42
|
+
apiUrl: 'https://rootaccess.live',
|
|
43
|
+
wsUrl: 'wss://rootaccess.live',
|
|
44
44
|
};
|
|
45
45
|
```
|
|
46
46
|
|
package/dist/base.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
|
-
exports.BASE_PATH = "http://
|
|
18
|
+
exports.BASE_PATH = "http://rootaccess.live".replace(/\/+$/, "");
|
|
19
19
|
exports.COLLECTION_FORMATS = {
|
|
20
20
|
csv: ",",
|
|
21
21
|
ssv: " ",
|
package/dist/esm/base.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
|
-
export const BASE_PATH = "http://
|
|
15
|
+
export const BASE_PATH = "http://rootaccess.live".replace(/\/+$/, "");
|
|
16
16
|
export const COLLECTION_FORMATS = {
|
|
17
17
|
csv: ",",
|
|
18
18
|
ssv: " ",
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rootaccessd/client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "OpenAPI client for @rootaccessd/client",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "git+https://github.com/Uttam-Mahata/RootAccess.git"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
11
11
|
"axios",
|
|
@@ -28,5 +28,9 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "12.11.5 - 12.20.42",
|
|
30
30
|
"typescript": "^5.6.0"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/Uttam-Mahata/RootAccess#readme",
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/Uttam-Mahata/RootAccess/issues"
|
|
31
35
|
}
|
|
32
36
|
}
|