@uipath/codedapp-tool 1.205.0-preview.284 → 1.206.0-preview.282

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.
Files changed (35) hide show
  1. package/README.md +48 -0
  2. package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-z97p0ezf.js} +5 -6
  3. package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
  4. package/dist/first-party-service-ahcc6xc6.js +8 -0
  5. package/dist/{index-0k30knwv.js → index-0py5k2e9.js} +177 -2055
  6. package/dist/index-c3zcyvwz.js +20 -0
  7. package/dist/index-cw1j9s6d.js +3176 -0
  8. package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
  9. package/dist/index-z2qk2qn6.js +24 -0
  10. package/dist/index.js +14 -17
  11. package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
  12. package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
  13. package/dist/{node-strategy-myagr1zp.js → node-strategy-fk02jqd8.js} +9 -12
  14. package/dist/{packager-tool-5ebgtev7.js → packager-tool-06tdd0p9.js} +3168 -3092
  15. package/dist/{packager-tool-je2re4j6.js → packager-tool-0ajs8pnk.js} +53 -8
  16. package/dist/{packager-tool-vc19fcdp.js → packager-tool-19x86hb2.js} +3 -21
  17. package/dist/{packager-tool-0gctz400.js → packager-tool-2rwzcase.js} +2 -5
  18. package/dist/{packager-tool-s8h46737.js → packager-tool-3ss96mpk.js} +82 -709
  19. package/dist/{packager-tool-d94wjncg.js → packager-tool-5t7c439j.js} +97 -97
  20. package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
  21. package/dist/packager-tool-8pm90w77.js +6640 -0
  22. package/dist/{packager-tool-cmfktvbt.js → packager-tool-h9q8znad.js} +885 -439
  23. package/dist/{packager-tool-ahrmbx21.js → packager-tool-hzve3h1v.js} +1676 -1451
  24. package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
  25. package/dist/{packager-tool-qa9gftnj.js → packager-tool-xd2w5pct.js} +3 -3
  26. package/dist/packager-tool.js +7 -8
  27. package/dist/tool.js +13 -16
  28. package/package.json +2 -2
  29. package/dist/first-party-service-srxaftkn.js +0 -27
  30. package/dist/index-78bnpdqb.js +0 -3177
  31. package/dist/index-kmp9fmhb.js +0 -25
  32. package/dist/index-wbp18pm0.js +0 -157
  33. package/dist/packager-tool-53w8skv5.js +0 -262
  34. package/dist/packager-tool-m7tmga2c.js +0 -20538
  35. /package/dist/{packager-tool-yc4kw997.js → packager-tool-1qg04b7q.js} +0 -0
@@ -1,9 +1,5 @@
1
- import {
2
- __require
3
- } from "./packager-tool-1yh8g550.js";
4
-
5
1
  // ../filesystem/src/node.ts
6
- import { randomUUID } from "node:crypto";
2
+ import { createHash, randomUUID } from "node:crypto";
7
3
  import { existsSync } from "node:fs";
8
4
  import * as fs from "node:fs/promises";
9
5
  import * as os from "node:os";
@@ -14,6 +10,9 @@ var LOCK_MAX_WAIT_MS = 20000;
14
10
  var LOCK_MAX_HOLD_MS = 60000;
15
11
  var LOCK_RETRY_MIN_MS = 100;
16
12
  var LOCK_RETRY_JITTER_MS = 200;
13
+ var HASH_CHUNK_BYTES = 256 * 1024;
14
+ var hashBuffers = [];
15
+ var HASH_BUFFERS_KEPT = 64;
17
16
 
18
17
  class NodeFileSystem {
19
18
  path = {
@@ -32,7 +31,7 @@ class NodeFileSystem {
32
31
  };
33
32
  utils = {
34
33
  open: async (url) => {
35
- const { default: open } = await import("./index-h8cph72k.js");
34
+ const { default: open } = await import("./index-nzr4mx5p.js");
36
35
  await open(url);
37
36
  }
38
37
  };
@@ -71,6 +70,15 @@ class NodeFileSystem {
71
70
  throw error;
72
71
  }
73
72
  }
73
+ async readdirEntries(dirPath) {
74
+ try {
75
+ return await fs.readdir(dirPath, { withFileTypes: true });
76
+ } catch (error) {
77
+ if (this.isEnoent(error))
78
+ return [];
79
+ throw error;
80
+ }
81
+ }
74
82
  async stat(filePath) {
75
83
  try {
76
84
  const stats = await fs.stat(filePath);
@@ -78,7 +86,8 @@ class NodeFileSystem {
78
86
  isFile: () => stats.isFile(),
79
87
  isDirectory: () => stats.isDirectory(),
80
88
  size: stats.size,
81
- mtimeMs: stats.mtimeMs
89
+ mtimeMs: stats.mtimeMs,
90
+ ctimeMs: stats.ctimeMs
82
91
  };
83
92
  } catch (error) {
84
93
  if (this.isEnoent(error))
@@ -192,6 +201,42 @@ class NodeFileSystem {
192
201
  throw error;
193
202
  }
194
203
  }
204
+ async hashFile(filePath) {
205
+ let handle;
206
+ try {
207
+ handle = await fs.open(filePath, "r");
208
+ } catch (error) {
209
+ if (this.isEnoent(error))
210
+ return null;
211
+ throw error;
212
+ }
213
+ const buffer = hashBuffers.pop() ?? Buffer.allocUnsafe(HASH_CHUNK_BYTES);
214
+ try {
215
+ const opened = await handle.stat();
216
+ const stats = {
217
+ isFile: () => opened.isFile(),
218
+ isDirectory: () => opened.isDirectory(),
219
+ size: opened.size,
220
+ mtimeMs: opened.mtimeMs,
221
+ ctimeMs: opened.ctimeMs
222
+ };
223
+ const hash = createHash("sha256");
224
+ let size = 0;
225
+ for (;; ) {
226
+ const { bytesRead } = await handle.read(buffer, 0, buffer.byteLength, null);
227
+ if (bytesRead === 0)
228
+ break;
229
+ hash.update(buffer.subarray(0, bytesRead));
230
+ size += bytesRead;
231
+ }
232
+ return { sha256: hash.digest("hex"), size, stats };
233
+ } finally {
234
+ if (hashBuffers.length < HASH_BUFFERS_KEPT) {
235
+ hashBuffers.push(buffer);
236
+ }
237
+ await handle.close();
238
+ }
239
+ }
195
240
  async realpath(filePath) {
196
241
  try {
197
242
  return await fs.realpath(filePath);
@@ -244,4 +289,4 @@ var getFileSystem = () => fsInstance;
244
289
 
245
290
  export { getFileSystem };
246
291
 
247
- //# debugId=82E3494FD83B7EB464756E2164756E21
292
+ //# debugId=26FA437280C22B0A64756E2164756E21
@@ -2,7 +2,7 @@ import {
2
2
  catchError,
3
3
  quoteForShell,
4
4
  unsupportedSolutionProjectType
5
- } from "./packager-tool-cmfktvbt.js";
5
+ } from "./packager-tool-h9q8znad.js";
6
6
 
7
7
  // ../solution-sdk/src/solution-file.ts
8
8
  var STUDIO_WEB_PROJECT_TYPE_OVERRIDES = {
@@ -317,25 +317,7 @@ function buildOptedOutInstructions(projectDir) {
317
317
  ].join(`
318
318
  `);
319
319
  }
320
- async function findSolutionFileUpward(fs, startDir) {
321
- let dir = startDir;
322
- while (true) {
323
- const entries = await fs.readdir(dir);
324
- const files = entries.filter((f) => f.endsWith(".uipx"));
325
- if (files.length === 1) {
326
- return fs.path.join(dir, files[0]);
327
- }
328
- if (files.length > 1) {
329
- throw new Error(`Multiple .uipx files found in ${dir}. Please specify which solution file to use.`);
330
- }
331
- const parent = fs.path.dirname(dir);
332
- if (parent === dir) {
333
- throw new Error(`No .uipx solution file found (searched from ${startDir} to filesystem root)`);
334
- }
335
- dir = parent;
336
- }
337
- }
338
320
 
339
- export { normalizeProjectType, toPortableRelativePath, tryRegisterProjectInParentSolution, findNearestParentUipxFile, findSolutionFileUpward };
321
+ export { normalizeProjectType, toPortableRelativePath, tryRegisterProjectInParentSolution, findNearestParentUipxFile };
340
322
 
341
- //# debugId=16D87B4C90497E1764756E2164756E21
323
+ //# debugId=4C8BD2320B4D5BBD64756E2164756E21
@@ -2,9 +2,6 @@
2
2
  function isBrowser() {
3
3
  return typeof globalThis !== "undefined" && "window" in globalThis && "document" in globalThis;
4
4
  }
5
- function isNode() {
6
- return typeof process !== "undefined" && process.versions !== undefined && process.versions.node !== undefined;
7
- }
8
5
  function getGlobalThis() {
9
6
  if (typeof globalThis !== "undefined") {
10
7
  return globalThis;
@@ -12,6 +9,6 @@ function getGlobalThis() {
12
9
  return;
13
10
  }
14
11
 
15
- export { isBrowser, isNode, getGlobalThis };
12
+ export { isBrowser, getGlobalThis };
16
13
 
17
- //# debugId=30FE559992242EE964756E2164756E21
14
+ //# debugId=718223FBC10121D064756E2164756E21