@uipath/maestro-builder-sdk 6.95.5 → 6.95.6

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.
@@ -36,8 +36,8 @@
36
36
  *
37
37
  * Nothing here prints; the CLIs do.
38
38
  */
39
- import { createHash } from 'node:crypto';
40
39
  import { commentText } from '../core/comment-text.js';
40
+ import { bytesToHex, sha256 } from '../core/sha.js';
41
41
  /** The marker that starts the stamp line. */
42
42
  export const STAMP_MARKER = '// @decompiled-from ';
43
43
  /** The SDK import line of a decompiled source; `buildSource` (lift-verify.ts) rewrites the same line. */
@@ -50,7 +50,7 @@ const IMPORT_RE = /^(import\s*\{[^}]*\}\s*from\s*)["'][^"']+["'];/m;
50
50
  * @param source - The decompiled source, before {@link stampSource}.
51
51
  */
52
52
  export function sourceDigest(source) {
53
- return createHash('sha256').update(source.replace(IMPORT_RE, '$1"@";')).digest('hex');
53
+ return bytesToHex(sha256(source.replace(IMPORT_RE, '$1"@";')));
54
54
  }
55
55
  /** The stamp line, without a line terminator. */
56
56
  export function formatStamp(stamp) {
@@ -1,8 +1,8 @@
1
- import { createHash } from "node:crypto";
2
1
  import { mkdirSync, readFileSync, existsSync } from "node:fs";
3
2
  import { createRequire } from "node:module";
4
3
  import { join } from "node:path";
5
4
  import { writeJsonFile } from "../../core/json-file.js";
5
+ import { bytesToHex, sha256 } from "../../core/sha.js";
6
6
  import { HostUipClient } from "./host.js";
7
7
  import { launchFor } from "./launch.js";
8
8
  /**
@@ -115,7 +115,7 @@ export function recordingName(argv) {
115
115
  // `["uip", "is", "a b"]` and `["uip", "is", "a", "b"]` the same recording,
116
116
  // and `--connectors "a,b"` versus two flags is exactly the kind of pair the
117
117
  // registry issues.
118
- const digest = createHash("sha256").update(argv.join("\u0000")).digest("hex").slice(0, 16);
118
+ const digest = bytesToHex(sha256(argv.join("\u0000"))).slice(0, 16);
119
119
  const slug = argv
120
120
  .slice(1, 5)
121
121
  .join("-")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.95.5",
3
+ "version": "6.95.6",
4
4
  "description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.uipath.com/maestro",
@@ -112,5 +112,5 @@
112
112
  "@types/node": "^22.7.0",
113
113
  "esbuild": "^0.28.1"
114
114
  },
115
- "gitref": "670117b96facaf1fcc6f9a03e3924a0e99e085e4"
115
+ "gitref": "a338c75fc5efff55716b4e8aaac369d24a770950"
116
116
  }