@uipath/agent-sdk 1.202.1 → 1.203.0-preview.180
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/dist/index.js +18 -12
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1356,8 +1356,9 @@ class TextApiResponse {
|
|
|
1356
1356
|
// package.json
|
|
1357
1357
|
var package_default = {
|
|
1358
1358
|
name: "@uipath/agent-sdk",
|
|
1359
|
+
author: "UiPath",
|
|
1359
1360
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1360
|
-
version: "1.
|
|
1361
|
+
version: "1.203.0-preview.180",
|
|
1361
1362
|
description: "SDK for the UiPath Agent Runtime API — evaluation execution and debug sessions.",
|
|
1362
1363
|
repository: {
|
|
1363
1364
|
type: "git",
|
|
@@ -5084,16 +5085,7 @@ var resolveEnvFilePathAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) =
|
|
|
5084
5085
|
errorMessage: location.source === "absolute" ? `Environment file not found: ${envFilePath}` : `Unable to locate environment file: ${envFilePath}. Run 'uip login' to authenticate.`
|
|
5085
5086
|
};
|
|
5086
5087
|
};
|
|
5087
|
-
var
|
|
5088
|
-
const fs7 = getFileSystem();
|
|
5089
|
-
const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.cwd(), envPath);
|
|
5090
|
-
if (!await fs7.exists(absolutePath)) {
|
|
5091
|
-
throw new Error(`Environment file not found: ${envPath}`);
|
|
5092
|
-
}
|
|
5093
|
-
const content = await fs7.readFile(absolutePath, "utf-8");
|
|
5094
|
-
if (content === null) {
|
|
5095
|
-
throw new Error(`Environment file not found: ${envPath}`);
|
|
5096
|
-
}
|
|
5088
|
+
var parseEnvContent = (content) => {
|
|
5097
5089
|
const env = {};
|
|
5098
5090
|
for (const line of content.split(`
|
|
5099
5091
|
`)) {
|
|
@@ -5114,6 +5106,18 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
5114
5106
|
}
|
|
5115
5107
|
return env;
|
|
5116
5108
|
};
|
|
5109
|
+
var loadEnvFileAsync = async ({ envPath }) => {
|
|
5110
|
+
const fs7 = getFileSystem();
|
|
5111
|
+
const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.cwd(), envPath);
|
|
5112
|
+
if (!await fs7.exists(absolutePath)) {
|
|
5113
|
+
throw new Error(`Environment file not found: ${envPath}`);
|
|
5114
|
+
}
|
|
5115
|
+
const content = await fs7.readFile(absolutePath, "utf-8");
|
|
5116
|
+
if (content === null) {
|
|
5117
|
+
throw new Error(`Environment file not found: ${envPath}`);
|
|
5118
|
+
}
|
|
5119
|
+
return parseEnvContent(content);
|
|
5120
|
+
};
|
|
5117
5121
|
var saveEnvFileAsync = async ({
|
|
5118
5122
|
envPath,
|
|
5119
5123
|
data,
|
|
@@ -5654,6 +5658,8 @@ var getAuthContext = async (options = {}) => {
|
|
|
5654
5658
|
tenantName
|
|
5655
5659
|
};
|
|
5656
5660
|
};
|
|
5661
|
+
// ../auth/src/authProfileDetails.ts
|
|
5662
|
+
init_src();
|
|
5657
5663
|
// ../auth/src/index.ts
|
|
5658
5664
|
init_constants();
|
|
5659
5665
|
|
|
@@ -6203,4 +6209,4 @@ export {
|
|
|
6203
6209
|
querystring
|
|
6204
6210
|
};
|
|
6205
6211
|
|
|
6206
|
-
//# debugId=
|
|
6212
|
+
//# debugId=2D33EDBFAFC0EC8D64756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/agent-sdk",
|
|
3
|
+
"author": "UiPath",
|
|
3
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
4
|
-
"version": "1.
|
|
5
|
+
"version": "1.203.0-preview.180",
|
|
5
6
|
"description": "SDK for the UiPath Agent Runtime API — evaluation execution and debug sessions.",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
@@ -29,5 +30,5 @@
|
|
|
29
30
|
"files": [
|
|
30
31
|
"dist"
|
|
31
32
|
],
|
|
32
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "4e0a51e3ab2c9d89afd3d35a7b087a7fa58133a0"
|
|
33
34
|
}
|