@uipath/common 1.202.1-preview.168 → 1.202.1-preview.171
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/formatter.d.ts +18 -0
- package/dist/index.js +17 -1
- package/package.json +2 -2
package/dist/formatter.d.ts
CHANGED
|
@@ -240,6 +240,24 @@ export declare class FilterImplicitLimitError extends Error {
|
|
|
240
240
|
readonly result: FailureResultType;
|
|
241
241
|
constructor(defaultLimit: string);
|
|
242
242
|
}
|
|
243
|
+
/**
|
|
244
|
+
* Thrown when connection configuration is missing or invalid — no base URL,
|
|
245
|
+
* no access token, GUIDs that don't parse, etc. Command reporters classify
|
|
246
|
+
* via {@link isConfigurationError} so they can emit a `ConfigError` envelope
|
|
247
|
+
* without matching on `error.message`.
|
|
248
|
+
*
|
|
249
|
+
* Uses a duck-type `__brand` rather than relying on `instanceof`, because each
|
|
250
|
+
* tool bundles its own copy of `@uipath/common` and class identity differs
|
|
251
|
+
* across bundle boundaries.
|
|
252
|
+
*/
|
|
253
|
+
export declare class ConfigurationError extends Error {
|
|
254
|
+
readonly __brand: "ConfigurationError";
|
|
255
|
+
readonly errorCode: CliErrorCode;
|
|
256
|
+
readonly retry: RetryHint;
|
|
257
|
+
readonly result: FailureResultType;
|
|
258
|
+
constructor(message: string);
|
|
259
|
+
}
|
|
260
|
+
export declare function isConfigurationError(error: unknown): error is ConfigurationError;
|
|
243
261
|
/**
|
|
244
262
|
* OutputFormatter namespace for formatting and displaying output.
|
|
245
263
|
*/
|
package/dist/index.js
CHANGED
|
@@ -11273,6 +11273,20 @@ class FilterImplicitLimitError extends Error {
|
|
|
11273
11273
|
this.instructions = "Pass --limit <n> to choose how many records the filter applies to. " + "To filter over all records, pass the command's maximum accepted --limit (see the option's description in --help).";
|
|
11274
11274
|
}
|
|
11275
11275
|
}
|
|
11276
|
+
|
|
11277
|
+
class ConfigurationError extends Error {
|
|
11278
|
+
__brand = "ConfigurationError";
|
|
11279
|
+
errorCode = "configuration_error";
|
|
11280
|
+
retry = "RetryWillNotFix";
|
|
11281
|
+
result = RESULTS.ConfigError;
|
|
11282
|
+
constructor(message) {
|
|
11283
|
+
super(message);
|
|
11284
|
+
this.name = "ConfigurationError";
|
|
11285
|
+
}
|
|
11286
|
+
}
|
|
11287
|
+
function isConfigurationError(error) {
|
|
11288
|
+
return typeof error === "object" && error !== null && "__brand" in error && error.__brand === "ConfigurationError";
|
|
11289
|
+
}
|
|
11276
11290
|
function applyFilter(data, filter) {
|
|
11277
11291
|
const codec = requireJmespath();
|
|
11278
11292
|
let result;
|
|
@@ -13509,6 +13523,7 @@ export {
|
|
|
13509
13523
|
CLI_ERROR_CODES,
|
|
13510
13524
|
CONFIG_FILENAME,
|
|
13511
13525
|
CommonTelemetryEvents,
|
|
13526
|
+
ConfigurationError,
|
|
13512
13527
|
ConsoleTelemetryProvider,
|
|
13513
13528
|
DEFAULT_AUTH_TIMEOUT_MS,
|
|
13514
13529
|
DEFAULT_BASE_URL,
|
|
@@ -13633,6 +13648,7 @@ export {
|
|
|
13633
13648
|
invocationElapsedMs,
|
|
13634
13649
|
invocationStartedAt,
|
|
13635
13650
|
isCliErrorCode,
|
|
13651
|
+
isConfigurationError,
|
|
13636
13652
|
isFailureStatus,
|
|
13637
13653
|
isGuid,
|
|
13638
13654
|
isHtmlDocument,
|
|
@@ -13736,4 +13752,4 @@ export {
|
|
|
13736
13752
|
writeTelemetrySpoolFile
|
|
13737
13753
|
};
|
|
13738
13754
|
|
|
13739
|
-
//# debugId=
|
|
13755
|
+
//# debugId=4D6104E1FF2E565764756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/common",
|
|
3
3
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
4
|
-
"version": "1.202.1-preview.
|
|
4
|
+
"version": "1.202.1-preview.171",
|
|
5
5
|
"description": "Common infrastructure needed by uip tools.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"mihaigirleanu",
|
|
76
76
|
"vlad-uipath"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "4cfde1fd876ddca47c91d716d72775270fd0fe7f"
|
|
79
79
|
}
|