@opscompass/opscompass-cli 1.0.41 → 1.0.42

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/opscompass.js CHANGED
@@ -1,6 +1,16 @@
1
1
  const { OpsCompassClient } = require("./environment/current.js");
2
2
  const { getCredentials } = require("./credentials.js");
3
+ const { utilsModule: utils } = require("./lib/utils.js");
3
4
 
5
+ /**
6
+ * This module provides a functions to use the OpsCompass API client
7
+ */
8
+
9
+ /**
10
+ * Returns an instance of the OpsCompassClient initialized with the access token
11
+ * from the credentials file.
12
+ * @returns {Promise<OpsCompassClient>} An instance of OpsCompassClient
13
+ */
4
14
  async function getOpsCompassClient() {
5
15
  const { access_token } = await getCredentials();
6
16
 
@@ -8,5 +18,8 @@ async function getOpsCompassClient() {
8
18
  }
9
19
 
10
20
  module.exports = {
11
- getOpsCompassClient
21
+ getOpsCompassClient,
22
+ getConfigFilePath: utils.getConfigFilePath,
23
+ readConfigFile: utils.readConfigFile,
24
+ writeConfigFile: utils.writeConfigFile,
12
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opscompass/opscompass-cli",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "Calls OpsCompass's APIs",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  "author": "opscompass",
17
17
  "license": "SEE LICENSE IN license.txt",
18
18
  "dependencies": {
19
- "@opscompass/opscompass-api": "^1.0.40",
19
+ "@opscompass/opscompass-api": "^1.0.41",
20
20
  "adm-zip": "^0.5.16",
21
21
  "axios": "^0.28.1",
22
22
  "better-sqlite3": "^11.8.0",