@uipath/uipath-python-bridge 1.201.0-preview.115 → 1.201.0-preview.122
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 +11 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8218,6 +8218,7 @@ var TLS_ERROR_CODES = new Set([
|
|
|
8218
8218
|
]);
|
|
8219
8219
|
var TLS_INSTRUCTIONS = "The server's TLS certificate could not be verified. Most often a " + "corporate proxy/firewall re-signs HTTPS with a root CA that Node does " + "not trust — set NODE_EXTRA_CA_CERTS to that CA's PEM file (and HTTPS_PROXY " + "if you connect through a proxy). If the certificate is instead expired or " + "its hostname does not match, fix the endpoint URL or the system clock. " + "Then retry.";
|
|
8220
8220
|
var NETWORK_INSTRUCTIONS = "Could not reach the UiPath service. Check your network connection and " + "VPN, confirm any HTTP_PROXY/HTTPS_PROXY/NO_PROXY settings are correct, " + "then retry.";
|
|
8221
|
+
var LOCAL_PERMISSION_ERROR_CODES = new Set(["EACCES", "EPERM", "EROFS"]);
|
|
8221
8222
|
// ../../node_modules/commander/esm.mjs
|
|
8222
8223
|
var import__ = __toESM(require_commander(), 1);
|
|
8223
8224
|
var {
|
|
@@ -9405,6 +9406,7 @@ var CLI_ERROR_CODES = [
|
|
|
9405
9406
|
"invalid_argument",
|
|
9406
9407
|
"authentication_required",
|
|
9407
9408
|
"permission_denied",
|
|
9409
|
+
"local_permission_denied",
|
|
9408
9410
|
"not_found",
|
|
9409
9411
|
"rate_limited",
|
|
9410
9412
|
"network_error",
|
|
@@ -9840,12 +9842,16 @@ function defaultErrorCodeForHttpStatus(status) {
|
|
|
9840
9842
|
return "server_error";
|
|
9841
9843
|
return;
|
|
9842
9844
|
}
|
|
9845
|
+
var LOCAL_PERMISSION_TEXT_PATTERN = /(?:\b|\()(?:EACCES|EPERM|EROFS)(?::\s|\))/;
|
|
9843
9846
|
function defaultErrorCodeForFailure(data) {
|
|
9844
9847
|
if (data.Result === RESULTS.Failure) {
|
|
9845
9848
|
const status = data.Context?.httpStatus ?? parseHttpStatusFromMessage(data.Message);
|
|
9846
9849
|
const errorCode = defaultErrorCodeForHttpStatus(status);
|
|
9847
9850
|
if (errorCode)
|
|
9848
9851
|
return errorCode;
|
|
9852
|
+
if (status === undefined && (LOCAL_PERMISSION_TEXT_PATTERN.test(data.Message) || LOCAL_PERMISSION_TEXT_PATTERN.test(data.Instructions))) {
|
|
9853
|
+
return "local_permission_denied";
|
|
9854
|
+
}
|
|
9849
9855
|
}
|
|
9850
9856
|
return defaultErrorCodeForResult(data.Result);
|
|
9851
9857
|
}
|
|
@@ -10335,11 +10341,10 @@ var ScreenLogger;
|
|
|
10335
10341
|
})(ScreenLogger ||= {});
|
|
10336
10342
|
// ../common/src/sdk-user-agent.ts
|
|
10337
10343
|
var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
|
|
10338
|
-
// ../common/src/tool-provider.ts
|
|
10339
|
-
var factorySlot = singleton("PackagerFactoryProvider");
|
|
10340
|
-
var moduleSlot = singleton("ToolModuleProvider");
|
|
10341
10344
|
// ../common/src/telemetry/ship-succeeded.ts
|
|
10342
10345
|
var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
|
|
10346
|
+
// ../common/src/tool-provider.ts
|
|
10347
|
+
var factorySlot = singleton("PackagerFactoryProvider");
|
|
10343
10348
|
// src/cache.ts
|
|
10344
10349
|
init_src();
|
|
10345
10350
|
async function readCache(cacheFile) {
|
|
@@ -11721,6 +11726,8 @@ init_constants();
|
|
|
11721
11726
|
|
|
11722
11727
|
// ../auth/src/interactive.ts
|
|
11723
11728
|
init_src();
|
|
11729
|
+
// ../auth/src/tenantSelection.ts
|
|
11730
|
+
var IDENTIFIER_STATUSES = new Set([400, 403, 404]);
|
|
11724
11731
|
|
|
11725
11732
|
// ../auth/src/selectTenant.ts
|
|
11726
11733
|
var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
|
|
@@ -12424,4 +12431,4 @@ export {
|
|
|
12424
12431
|
PythonService
|
|
12425
12432
|
};
|
|
12426
12433
|
|
|
12427
|
-
//# debugId=
|
|
12434
|
+
//# debugId=E19D2C72E15C4B7D64756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/uipath-python-bridge",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.201.0-preview.
|
|
4
|
+
"version": "1.201.0-preview.122",
|
|
5
5
|
"description": "Shared Python detection, caching, and CLI bridge for UiPath Python SDK tools.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"uip",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"registry": "https://registry.npmjs.org/"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "6c56f56100be96231fccbaa59e99d64d94808d58"
|
|
28
28
|
}
|