@uipath/common 1.204.0-preview.255 → 1.205.0-preview.256
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/classified-failure.d.ts +13 -1
- package/dist/entity-field-rules.d.ts +7 -0
- package/dist/entity-field-rules.js +122 -0
- package/dist/entity-name-rules.d.ts +12 -0
- package/dist/entity-name-rules.js +14 -10
- package/dist/exit-code.d.ts +7 -0
- package/dist/formatter.d.ts +2 -2
- package/dist/http-status.d.ts +7 -0
- package/dist/index.browser.d.ts +2 -0
- package/dist/index.browser.js +131 -12
- package/dist/index.d.ts +5 -0
- package/dist/index.js +265 -13
- package/dist/json-option.d.ts +21 -0
- package/dist/logger.d.ts +1 -1
- package/dist/option-aliases.d.ts +1 -0
- package/dist/option-groups.d.ts +7 -0
- package/dist/sdk-user-agent.js +4 -2
- package/dist/session-kind.d.ts +73 -0
- package/dist/session-kind.js +66 -0
- package/dist/shell-quote.d.ts +14 -0
- package/dist/telemetry/index.js +4 -2
- package/dist/telemetry/telemetry-dimensions.d.ts +4 -0
- package/dist/trackedAction.d.ts +6 -6
- package/dist/zip.d.ts +6 -0
- package/dist/zip.js +19 -2
- package/package.json +16 -2
|
@@ -110,6 +110,10 @@ export declare const ErrorDimensions: {
|
|
|
110
110
|
readonly Retry: "Retry";
|
|
111
111
|
/** The envelope's `Message`, under the name the convention prescribes. */
|
|
112
112
|
readonly ErrorMessage: "ErrorMessage";
|
|
113
|
+
/** `Context.httpStatus` — the HTTP status of the failed call, if any. */
|
|
114
|
+
readonly HttpStatus: "HttpStatus";
|
|
115
|
+
/** `Context.errorCode` — the service's own code, not the CLI's `ErrorCode`. */
|
|
116
|
+
readonly UpstreamErrorCode: "UpstreamErrorCode";
|
|
113
117
|
};
|
|
114
118
|
/** Dimensions on the `Authenticate.*` events. */
|
|
115
119
|
export declare const AuthDimensions: {
|
package/dist/trackedAction.d.ts
CHANGED
|
@@ -12,12 +12,12 @@ export interface CommandContext {
|
|
|
12
12
|
* are the one part of the property bag whose keys we don't control. Emitting
|
|
13
13
|
* them bare at the root of the event lets an arg named like a reserved
|
|
14
14
|
* dimension (`operationId`, `duration`, `success`, …) shadow that dimension —
|
|
15
|
-
* e.g. `
|
|
16
|
-
* correlation tag. Prefixing every extracted arg with a
|
|
17
|
-
* (mirrors OpenTelemetry attribute-namespacing) walls them
|
|
18
|
-
* only ever land under `uip.cmd.arg.*`, never at the root
|
|
19
|
-
* control keys live. System dimensions stay bare — they're a
|
|
20
|
-
* set, like OTel's semantic-convention keys.
|
|
15
|
+
* e.g. an `--operation-id` option, which Commander records as `operationId`,
|
|
16
|
+
* overwriting the correlation tag. Prefixing every extracted arg with a
|
|
17
|
+
* dedicated namespace (mirrors OpenTelemetry attribute-namespacing) walls them
|
|
18
|
+
* off: a user arg can only ever land under `uip.cmd.arg.*`, never at the root
|
|
19
|
+
* where system and control keys live. System dimensions stay bare — they're a
|
|
20
|
+
* closed, controlled set, like OTel's semantic-convention keys.
|
|
21
21
|
*/
|
|
22
22
|
export declare const TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
|
|
23
23
|
/**
|
package/dist/zip.d.ts
CHANGED
|
@@ -12,3 +12,9 @@ import { type IFileSystem } from "@uipath/filesystem";
|
|
|
12
12
|
export declare function extractZipDataToDir(fs: IFileSystem, zipData: Uint8Array, destinationDir: string): Promise<void>;
|
|
13
13
|
/** Extract the zip archive at `archivePath` into `destinationDir`. */
|
|
14
14
|
export declare function extractArchive(archivePath: string, destinationDir: string): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Inflates one named entry from a zip, or `undefined` when there is none.
|
|
17
|
+
* Only the matched entry is inflated; the archive itself must be in memory,
|
|
18
|
+
* because a zip's directory sits at its end.
|
|
19
|
+
*/
|
|
20
|
+
export declare function readZipEntry(zipData: Uint8Array, entryName: string): Uint8Array | undefined;
|
package/dist/zip.js
CHANGED
|
@@ -848,6 +848,16 @@ class NodeFileSystem {
|
|
|
848
848
|
async rename(oldPath, newPath) {
|
|
849
849
|
await fs6.rename(oldPath, newPath);
|
|
850
850
|
}
|
|
851
|
+
async isSymbolicLink(filePath) {
|
|
852
|
+
try {
|
|
853
|
+
return (await fs6.lstat(filePath)).isSymbolicLink();
|
|
854
|
+
} catch (error) {
|
|
855
|
+
if (this.isEnoent(error) || this.hasErrnoCode(error, "ENOTDIR")) {
|
|
856
|
+
return false;
|
|
857
|
+
}
|
|
858
|
+
throw error;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
851
861
|
async realpath(filePath) {
|
|
852
862
|
try {
|
|
853
863
|
return await fs6.realpath(filePath);
|
|
@@ -1372,9 +1382,16 @@ async function extractArchive(archivePath, destinationDir) {
|
|
|
1372
1382
|
}
|
|
1373
1383
|
await extractZipDataToDir(fs7, data, destinationDir);
|
|
1374
1384
|
}
|
|
1385
|
+
function readZipEntry(zipData, entryName) {
|
|
1386
|
+
const entries = unzipSync(zipData, {
|
|
1387
|
+
filter: (file) => file.name === entryName
|
|
1388
|
+
});
|
|
1389
|
+
return entries[entryName];
|
|
1390
|
+
}
|
|
1375
1391
|
export {
|
|
1376
1392
|
extractArchive,
|
|
1377
|
-
extractZipDataToDir
|
|
1393
|
+
extractZipDataToDir,
|
|
1394
|
+
readZipEntry
|
|
1378
1395
|
};
|
|
1379
1396
|
|
|
1380
|
-
//# debugId=
|
|
1397
|
+
//# debugId=AE57A66D6A0178C164756E2164756E21
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/common",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.205.0-preview.256",
|
|
6
6
|
"description": "Common infrastructure needed by uip tools.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
"types": "./dist/catch-error.d.ts",
|
|
30
30
|
"default": "./dist/catch-error.js"
|
|
31
31
|
},
|
|
32
|
+
"./entity-field-rules": {
|
|
33
|
+
"types": "./dist/entity-field-rules.d.ts",
|
|
34
|
+
"default": "./dist/entity-field-rules.js"
|
|
35
|
+
},
|
|
32
36
|
"./error-handler": {
|
|
33
37
|
"types": "./dist/error-handler.d.ts",
|
|
34
38
|
"default": "./dist/error-handler.js"
|
|
@@ -51,6 +55,16 @@
|
|
|
51
55
|
"default": "./dist/sdk-user-agent.js"
|
|
52
56
|
}
|
|
53
57
|
},
|
|
58
|
+
"./session-kind": {
|
|
59
|
+
"browser": {
|
|
60
|
+
"types": "./dist/session-kind.d.ts",
|
|
61
|
+
"default": "./dist/session-kind.js"
|
|
62
|
+
},
|
|
63
|
+
"default": {
|
|
64
|
+
"types": "./dist/session-kind.d.ts",
|
|
65
|
+
"default": "./dist/session-kind.js"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
54
68
|
"./package-metadata-options": {
|
|
55
69
|
"browser": {
|
|
56
70
|
"types": "./dist/package-metadata-options.d.ts",
|
|
@@ -84,5 +98,5 @@
|
|
|
84
98
|
"mihaigirleanu",
|
|
85
99
|
"vlad-uipath"
|
|
86
100
|
],
|
|
87
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "63740c6cbb7ff282fa9118cc16a148eb030b245f"
|
|
88
102
|
}
|