@uipath/api-workflow-tool 1.201.0-preview.128 → 1.201.0-preview.132

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.
@@ -287,7 +287,7 @@ function addSdkUserAgentHeader(headers, userAgent) {
287
287
  var package_default = {
288
288
  name: "@uipath/project-packager",
289
289
  license: "MIT",
290
- version: "1.201.0-preview.128",
290
+ version: "1.201.0-preview.132",
291
291
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
292
292
  type: "module",
293
293
  main: "./dist/index.js",
@@ -719,4 +719,4 @@ export {
719
719
  BrowserContextStorage
720
720
  };
721
721
 
722
- //# debugId=E2CE05A4B3DD657364756E2164756E21
722
+ //# debugId=18088FD07C06C81364756E2164756E21
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  metadata,
4
4
  registerCommands
5
- } from "./packager-tool-tve2p4s6.js";
5
+ } from "./packager-tool-8p759ssv.js";
6
6
  import"./packager-tool-1v8fmky0.js";
7
7
  import"./packager-tool-h1tyrbff.js";
8
8
  import {
@@ -13847,7 +13847,7 @@ function addSdkUserAgentHeader(headers, userAgent) {
13847
13847
  var package_default = {
13848
13848
  name: "@uipath/project-packager",
13849
13849
  license: "MIT",
13850
- version: "1.201.0-preview.128",
13850
+ version: "1.201.0-preview.132",
13851
13851
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
13852
13852
  type: "module",
13853
13853
  main: "./dist/index.js",
@@ -14298,4 +14298,4 @@ export {
14298
14298
  BaseNodePackagerFactory
14299
14299
  };
14300
14300
 
14301
- //# debugId=6BB196A2A0D7327864756E2164756E21
14301
+ //# debugId=231069CBCF675C4864756E2164756E21
@@ -3037,9 +3037,28 @@ var require_data = __commonJS((exports, module) => {
3037
3037
  var require_utils = __commonJS((exports, module) => {
3038
3038
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3039
3039
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
3040
+ var isPort = RegExp.prototype.test.bind(/^\d*$/u);
3040
3041
  var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
3041
3042
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
3042
- var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
3043
+ var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
3044
+ var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
3045
+ var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
3046
+ var BYTE_HEX = new Array(256);
3047
+ {
3048
+ const HEX_DIGITS = "0123456789ABCDEF";
3049
+ for (let i = 0;i < 256; i++) {
3050
+ BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
3051
+ }
3052
+ }
3053
+ function percentEncodeNonAscii(cp) {
3054
+ if (cp < 2048) {
3055
+ return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
3056
+ }
3057
+ if (cp < 65536) {
3058
+ return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
3059
+ }
3060
+ return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
3061
+ }
3043
3062
  function stringArrayToHexStripped(input) {
3044
3063
  let acc = "";
3045
3064
  let code = 0;
@@ -3064,91 +3083,122 @@ var require_utils = __commonJS((exports, module) => {
3064
3083
  }
3065
3084
  return acc;
3066
3085
  }
3086
+ var isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
3087
+ var isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
3088
+ var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
3067
3089
  var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
3068
- function consumeIsZone(buffer) {
3069
- buffer.length = 0;
3070
- return true;
3071
- }
3072
- function consumeHextets(buffer, address, output) {
3073
- if (buffer.length) {
3074
- const hex = stringArrayToHexStripped(buffer);
3075
- if (hex !== "") {
3076
- address.push(hex);
3077
- } else {
3078
- output.error = true;
3079
- return false;
3090
+ function isZoneIdentifier(zone) {
3091
+ if (zone.length === 0)
3092
+ return false;
3093
+ for (let i = 0;i < zone.length; i++) {
3094
+ if (isZoneCharacter(zone[i]))
3095
+ continue;
3096
+ if (zone[i] === "%" && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {
3097
+ i += 2;
3098
+ continue;
3080
3099
  }
3081
- buffer.length = 0;
3100
+ return false;
3082
3101
  }
3083
3102
  return true;
3084
3103
  }
3085
- function getIPV6(input) {
3086
- let tokenCount = 0;
3087
- const output = { error: false, address: "", zone: "" };
3088
- const address = [];
3089
- const buffer = [];
3090
- let endipv6Encountered = false;
3091
- let endIpv6 = false;
3092
- let consume = consumeHextets;
3093
- for (let i = 0;i < input.length; i++) {
3094
- const cursor = input[i];
3095
- if (cursor === "[" || cursor === "]") {
3096
- continue;
3097
- }
3098
- if (cursor === ":") {
3099
- if (endipv6Encountered === true) {
3100
- endIpv6 = true;
3101
- }
3102
- if (!consume(buffer, address, output)) {
3103
- break;
3104
+ function compressIPv6ZeroRun(hextets) {
3105
+ let bestStart = -1;
3106
+ let bestLength = 0;
3107
+ let runStart = -1;
3108
+ let runLength = 0;
3109
+ for (let i = 0;i < hextets.length; i++) {
3110
+ if (hextets[i] === "0") {
3111
+ if (runStart === -1)
3112
+ runStart = i;
3113
+ runLength++;
3114
+ if (runLength > bestLength) {
3115
+ bestLength = runLength;
3116
+ bestStart = runStart;
3104
3117
  }
3105
- if (++tokenCount > 7) {
3106
- output.error = true;
3107
- break;
3108
- }
3109
- if (i > 0 && input[i - 1] === ":") {
3110
- endipv6Encountered = true;
3111
- }
3112
- address.push(":");
3113
- continue;
3114
- } else if (cursor === "%") {
3115
- if (!consume(buffer, address, output)) {
3116
- break;
3117
- }
3118
- consume = consumeIsZone;
3119
3118
  } else {
3120
- buffer.push(cursor);
3121
- continue;
3119
+ runStart = -1;
3120
+ runLength = 0;
3122
3121
  }
3123
3122
  }
3124
- if (buffer.length) {
3125
- if (consume === consumeIsZone) {
3126
- output.zone = buffer.join("");
3127
- } else if (endIpv6) {
3128
- address.push(buffer.join(""));
3129
- } else {
3130
- address.push(stringArrayToHexStripped(buffer));
3123
+ if (bestLength < 2)
3124
+ return hextets.join(":");
3125
+ const head = hextets.slice(0, bestStart).join(":");
3126
+ const tail = hextets.slice(bestStart + bestLength).join(":");
3127
+ return head + "::" + tail;
3128
+ }
3129
+ function normalizeIPv6Address(input) {
3130
+ const compression = input.indexOf("::");
3131
+ if (compression !== -1 && input.indexOf("::", compression + 1) !== -1)
3132
+ return;
3133
+ const left = compression === -1 ? input.split(":") : input.slice(0, compression).split(":");
3134
+ const right = compression === -1 ? [] : input.slice(compression + 2).split(":");
3135
+ if (compression !== -1) {
3136
+ if (left.length === 1 && left[0] === "")
3137
+ left.length = 0;
3138
+ if (right.length === 1 && right[0] === "")
3139
+ right.length = 0;
3140
+ }
3141
+ const parts = left.concat(right);
3142
+ let hextetCount = 0;
3143
+ for (let i = 0;i < parts.length; i++) {
3144
+ const part = parts[i];
3145
+ if (part === "")
3146
+ return;
3147
+ if (part.indexOf(".") !== -1) {
3148
+ if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv4(part))
3149
+ return;
3150
+ hextetCount += 2;
3151
+ continue;
3131
3152
  }
3153
+ if (!isHextet(part))
3154
+ return;
3155
+ parts[i] = parseInt(part, 16).toString(16);
3156
+ hextetCount++;
3132
3157
  }
3133
- output.address = address.join("");
3134
- return output;
3158
+ if (compression === -1) {
3159
+ if (hextetCount !== 8)
3160
+ return;
3161
+ return compressIPv6ZeroRun(parts);
3162
+ }
3163
+ if (hextetCount >= 8)
3164
+ return;
3165
+ const expanded = parts.slice(0, left.length);
3166
+ for (let i = hextetCount;i < 8; i++)
3167
+ expanded.push("0");
3168
+ for (let i = left.length;i < parts.length; i++)
3169
+ expanded.push(parts[i]);
3170
+ return compressIPv6ZeroRun(expanded);
3135
3171
  }
3136
3172
  function normalizeIPv6(host) {
3137
- if (findToken(host, ":") < 2) {
3138
- return { host, isIPV6: false };
3139
- }
3140
- const ipv6 = getIPV6(host);
3141
- if (!ipv6.error) {
3142
- let newHost = ipv6.address;
3143
- let escapedHost = ipv6.address;
3144
- if (ipv6.zone) {
3145
- newHost += "%" + ipv6.zone;
3146
- escapedHost += "%25" + ipv6.zone;
3147
- }
3148
- return { host: newHost, isIPV6: true, escapedHost };
3149
- } else {
3150
- return { host, isIPV6: false };
3151
- }
3173
+ const bracketed = host[0] === "[" && host[host.length - 1] === "]";
3174
+ const hasBracket = host[0] === "[" || host[host.length - 1] === "]";
3175
+ if (hasBracket && !bracketed)
3176
+ return { host, isIPV6: false, error: true };
3177
+ let input = bracketed ? host.slice(1, -1) : host;
3178
+ if (bracketed && isIPvFuture(input)) {
3179
+ input = input.toLowerCase();
3180
+ return { host: `[${input}]`, escapedHost: input, isIPV6: false, isIPVFuture: true };
3181
+ }
3182
+ if (findToken(input, ":") < 2) {
3183
+ return { host, isIPV6: false, error: bracketed };
3184
+ }
3185
+ let zoneIdentifier = "";
3186
+ const zoneSeparator = input.indexOf("%");
3187
+ if (zoneSeparator !== -1) {
3188
+ const separatorLength = input.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === "%25" ? 3 : 1;
3189
+ zoneIdentifier = input.slice(zoneSeparator + separatorLength);
3190
+ if (!isZoneIdentifier(zoneIdentifier))
3191
+ return { host, isIPV6: false, error: true };
3192
+ input = input.slice(0, zoneSeparator);
3193
+ }
3194
+ const address = normalizeIPv6Address(input);
3195
+ if (address === undefined)
3196
+ return { host, isIPV6: false, error: true };
3197
+ return {
3198
+ host: address + (zoneIdentifier ? "%" + zoneIdentifier : ""),
3199
+ escapedHost: address + (zoneIdentifier ? "%25" + zoneIdentifier : ""),
3200
+ isIPV6: true
3201
+ };
3152
3202
  }
3153
3203
  function findToken(str, token) {
3154
3204
  let ind = 0;
@@ -3268,7 +3318,8 @@ var require_utils = __commonJS((exports, module) => {
3268
3318
  function normalizePathEncoding(input) {
3269
3319
  let output = "";
3270
3320
  for (let i = 0;i < input.length; i++) {
3271
- if (input[i] === "%" && i + 2 < input.length) {
3321
+ const ch = input[i];
3322
+ if (ch === "%" && i + 2 < input.length) {
3272
3323
  const hex = input.slice(i + 1, i + 3);
3273
3324
  if (isHexPair(hex)) {
3274
3325
  const normalizedHex = hex.toUpperCase();
@@ -3282,10 +3333,152 @@ var require_utils = __commonJS((exports, module) => {
3282
3333
  continue;
3283
3334
  }
3284
3335
  }
3285
- if (isPathCharacter(input[i])) {
3286
- output += input[i];
3336
+ if (isPathCharacter(ch)) {
3337
+ output += ch;
3287
3338
  } else {
3288
- output += escape(input[i]);
3339
+ const code = input.charCodeAt(i);
3340
+ if (code < 128) {
3341
+ output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
3342
+ } else if (code < 55296 || code > 57343) {
3343
+ output += percentEncodeNonAscii(code);
3344
+ } else if (code <= 56319 && i + 1 < input.length) {
3345
+ const low = input.charCodeAt(i + 1);
3346
+ if (low >= 56320 && low <= 57343) {
3347
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3348
+ i++;
3349
+ } else {
3350
+ output += percentEncodeNonAscii(65533);
3351
+ }
3352
+ } else {
3353
+ output += percentEncodeNonAscii(65533);
3354
+ }
3355
+ }
3356
+ }
3357
+ return output;
3358
+ }
3359
+ function serializePathEncoding(input, pathNoScheme = false) {
3360
+ let output = "";
3361
+ let firstSegment = pathNoScheme && input[0] !== "/";
3362
+ for (let i = 0;i < input.length; i++) {
3363
+ const ch = input[i];
3364
+ if (ch === "%" && i + 2 < input.length) {
3365
+ const hex = input.slice(i + 1, i + 3);
3366
+ if (isHexPair(hex)) {
3367
+ output += "%" + hex.toUpperCase();
3368
+ i += 2;
3369
+ continue;
3370
+ }
3371
+ }
3372
+ if (ch === "/") {
3373
+ firstSegment = false;
3374
+ }
3375
+ if (isPathCharacter(ch) && (ch !== ":" || !firstSegment)) {
3376
+ output += ch;
3377
+ } else {
3378
+ const code = input.charCodeAt(i);
3379
+ if (code < 128) {
3380
+ output += BYTE_HEX[code];
3381
+ } else if (code < 55296 || code > 57343) {
3382
+ output += percentEncodeNonAscii(code);
3383
+ } else if (code <= 56319 && i + 1 < input.length) {
3384
+ const low = input.charCodeAt(i + 1);
3385
+ if (low >= 56320 && low <= 57343) {
3386
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3387
+ i++;
3388
+ } else {
3389
+ output += percentEncodeNonAscii(65533);
3390
+ }
3391
+ } else {
3392
+ output += percentEncodeNonAscii(65533);
3393
+ }
3394
+ }
3395
+ }
3396
+ return output;
3397
+ }
3398
+ function encodeComponent(input, isAllowed) {
3399
+ let output = "";
3400
+ for (let i = 0;i < input.length; i++) {
3401
+ const ch = input[i];
3402
+ if (ch === "%" && i + 2 < input.length) {
3403
+ const hex = input.slice(i + 1, i + 3);
3404
+ if (isHexPair(hex)) {
3405
+ output += "%" + hex.toUpperCase();
3406
+ i += 2;
3407
+ continue;
3408
+ }
3409
+ }
3410
+ if (isAllowed(ch)) {
3411
+ output += ch;
3412
+ } else {
3413
+ const code = input.charCodeAt(i);
3414
+ if (code < 128) {
3415
+ output += BYTE_HEX[code];
3416
+ } else if (code < 55296 || code > 57343) {
3417
+ output += percentEncodeNonAscii(code);
3418
+ } else if (code <= 56319 && i + 1 < input.length) {
3419
+ const low = input.charCodeAt(i + 1);
3420
+ if (low >= 56320 && low <= 57343) {
3421
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3422
+ i++;
3423
+ } else {
3424
+ output += percentEncodeNonAscii(65533);
3425
+ }
3426
+ } else {
3427
+ output += percentEncodeNonAscii(65533);
3428
+ }
3429
+ }
3430
+ }
3431
+ return output;
3432
+ }
3433
+ function encodeUserinfo(input) {
3434
+ return encodeComponent(input, isUserinfoCharacter);
3435
+ }
3436
+ function encodeQuery(input) {
3437
+ return encodeComponent(input, isQueryFragmentCharacter);
3438
+ }
3439
+ function encodeFragment(input) {
3440
+ return encodeComponent(input, isQueryFragmentCharacter);
3441
+ }
3442
+ function isEscapeSafe(cp) {
3443
+ return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 42 || cp === 43 || cp === 45 || cp === 46 || cp === 47 || cp === 64 || cp === 95;
3444
+ }
3445
+ function normalizeQueryFragmentEncoding(input) {
3446
+ let output = "";
3447
+ for (let i = 0;i < input.length; i++) {
3448
+ const ch = input[i];
3449
+ if (ch === "%" && i + 2 < input.length) {
3450
+ const hex = input.slice(i + 1, i + 3);
3451
+ if (isHexPair(hex)) {
3452
+ const normalizedHex = hex.toUpperCase();
3453
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3454
+ if (isUnreserved(decoded)) {
3455
+ output += decoded;
3456
+ } else {
3457
+ output += "%" + normalizedHex;
3458
+ }
3459
+ i += 2;
3460
+ continue;
3461
+ }
3462
+ }
3463
+ if (isQueryFragmentCharacter(ch)) {
3464
+ output += ch;
3465
+ } else {
3466
+ const code = input.charCodeAt(i);
3467
+ if (code < 128) {
3468
+ output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
3469
+ } else if (code < 55296 || code > 57343) {
3470
+ output += percentEncodeNonAscii(code);
3471
+ } else if (code <= 56319 && i + 1 < input.length) {
3472
+ const low = input.charCodeAt(i + 1);
3473
+ if (low >= 56320 && low <= 57343) {
3474
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3475
+ i++;
3476
+ } else {
3477
+ output += percentEncodeNonAscii(65533);
3478
+ }
3479
+ } else {
3480
+ output += percentEncodeNonAscii(65533);
3481
+ }
3289
3482
  }
3290
3483
  }
3291
3484
  return output;
@@ -3308,14 +3501,18 @@ var require_utils = __commonJS((exports, module) => {
3308
3501
  function recomposeAuthority(component) {
3309
3502
  const uriTokens = [];
3310
3503
  if (component.userinfo !== undefined) {
3311
- uriTokens.push(component.userinfo);
3504
+ uriTokens.push(encodeUserinfo(component.userinfo));
3312
3505
  uriTokens.push("@");
3313
3506
  }
3314
3507
  if (component.host !== undefined) {
3315
- let host = unescape(component.host);
3508
+ let host = component.host;
3316
3509
  if (!isIPv4(host)) {
3317
- const ipV6res = normalizeIPv6(host);
3318
- if (ipV6res.isIPV6 === true) {
3510
+ let ipV6res = normalizeIPv6(host);
3511
+ if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
3512
+ host = normalizePercentEncoding(host, true);
3513
+ ipV6res = normalizeIPv6(host);
3514
+ }
3515
+ if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
3319
3516
  host = `[${ipV6res.escapedHost}]`;
3320
3517
  } else {
3321
3518
  host = reescapeHostDelimiters(host, false);
@@ -3324,8 +3521,12 @@ var require_utils = __commonJS((exports, module) => {
3324
3521
  uriTokens.push(host);
3325
3522
  }
3326
3523
  if (typeof component.port === "number" || typeof component.port === "string") {
3524
+ const port = String(component.port);
3525
+ if (!isPort(port)) {
3526
+ throw new TypeError("URI port is malformed.");
3527
+ }
3327
3528
  uriTokens.push(":");
3328
- uriTokens.push(String(component.port));
3529
+ uriTokens.push(port);
3329
3530
  }
3330
3531
  return uriTokens.length ? uriTokens.join("") : undefined;
3331
3532
  }
@@ -3335,6 +3536,11 @@ var require_utils = __commonJS((exports, module) => {
3335
3536
  reescapeHostDelimiters,
3336
3537
  normalizePercentEncoding,
3337
3538
  normalizePathEncoding,
3539
+ serializePathEncoding,
3540
+ normalizeQueryFragmentEncoding,
3541
+ encodeUserinfo,
3542
+ encodeQuery,
3543
+ encodeFragment,
3338
3544
  escapePreservingEscapes,
3339
3545
  removeDotSegments,
3340
3546
  isIPv4,
@@ -3347,7 +3553,7 @@ var require_utils = __commonJS((exports, module) => {
3347
3553
  // ../../node_modules/fast-uri/lib/schemes.js
3348
3554
  var require_schemes = __commonJS((exports, module) => {
3349
3555
  var { isUUID } = require_utils();
3350
- var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3556
+ var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
3351
3557
  var supportedSchemeNames = [
3352
3558
  "http",
3353
3559
  "https",
@@ -3402,9 +3608,10 @@ var require_schemes = __commonJS((exports, module) => {
3402
3608
  wsComponent.secure = undefined;
3403
3609
  }
3404
3610
  if (wsComponent.resourceName) {
3405
- const [path, query] = wsComponent.resourceName.split("?");
3611
+ const queryIndex = wsComponent.resourceName.indexOf("?");
3612
+ const path = queryIndex === -1 ? wsComponent.resourceName : wsComponent.resourceName.slice(0, queryIndex);
3406
3613
  wsComponent.path = path && path !== "/" ? path : undefined;
3407
- wsComponent.query = query;
3614
+ wsComponent.query = queryIndex === -1 ? undefined : wsComponent.resourceName.slice(queryIndex + 1);
3408
3615
  wsComponent.resourceName = undefined;
3409
3616
  }
3410
3617
  wsComponent.fragment = undefined;
@@ -3416,7 +3623,7 @@ var require_schemes = __commonJS((exports, module) => {
3416
3623
  return urnComponent;
3417
3624
  }
3418
3625
  const matches = urnComponent.path.match(URN_REG);
3419
- if (matches) {
3626
+ if (matches && matches[0] === urnComponent.path) {
3420
3627
  const scheme = options.scheme || urnComponent.scheme || "urn";
3421
3628
  urnComponent.nid = matches[1].toLowerCase();
3422
3629
  urnComponent.nss = matches[2];
@@ -3520,8 +3727,17 @@ var require_schemes = __commonJS((exports, module) => {
3520
3727
 
3521
3728
  // ../../node_modules/fast-uri/index.js
3522
3729
  var require_fast_uri = __commonJS((exports, module) => {
3523
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3730
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3524
3731
  var { SCHEMES, getSchemeHandler } = require_schemes();
3732
+ var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
3733
+ var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
3734
+ function decodeValidScheme(scheme) {
3735
+ const decodedScheme = unescape(String(scheme));
3736
+ if (!VALID_SCHEME.test(decodedScheme)) {
3737
+ throw new TypeError(MALFORMED_SCHEME_ERROR);
3738
+ }
3739
+ return decodedScheme;
3740
+ }
3525
3741
  function normalize(uri, options) {
3526
3742
  if (typeof uri === "string") {
3527
3743
  uri = normalizeString(uri, options);
@@ -3532,12 +3748,34 @@ var require_fast_uri = __commonJS((exports, module) => {
3532
3748
  }
3533
3749
  function resolve(baseURI, relativeURI, options) {
3534
3750
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
3535
- const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
3536
- const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
3537
- if (baseMalformed || relativeMalformed) {
3751
+ const {
3752
+ parsed: baseParsed,
3753
+ malformedAuthorityOrPort: baseMalformed,
3754
+ malformedPercentEncoding: baseMalformedPercentEncoding,
3755
+ malformedSchemeSpecific: baseMalformedSchemeSpecific,
3756
+ malformedHost: baseMalformedHost,
3757
+ malformedScheme: baseMalformedScheme
3758
+ } = parseWithStatus(baseURI, schemelessOptions);
3759
+ const {
3760
+ parsed: relativeParsed,
3761
+ malformedAuthorityOrPort: relativeMalformed,
3762
+ malformedPercentEncoding: relativeMalformedPercentEncoding,
3763
+ malformedSchemeSpecific: relativeMalformedSchemeSpecific,
3764
+ malformedHost: relativeMalformedHost,
3765
+ malformedScheme: relativeMalformedScheme
3766
+ } = parseWithStatus(relativeURI, schemelessOptions);
3767
+ if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
3538
3768
  throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
3539
3769
  }
3540
3770
  const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
3771
+ const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
3772
+ const resolvedHost = resolved.host;
3773
+ const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
3774
+ canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
3775
+ const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
3776
+ if (resolved.error && !encodedASCIIHost) {
3777
+ throw new Error(resolved.error);
3778
+ }
3541
3779
  schemelessOptions.skipEscape = true;
3542
3780
  return serialize(resolved, schemelessOptions);
3543
3781
  }
@@ -3597,7 +3835,7 @@ var require_fast_uri = __commonJS((exports, module) => {
3597
3835
  function equal(uriA, uriB, options) {
3598
3836
  const normalizedA = normalizeComparableURI(uriA, options);
3599
3837
  const normalizedB = normalizeComparableURI(uriB, options);
3600
- return normalizedA !== undefined && normalizedB !== undefined && normalizedA.toLowerCase() === normalizedB.toLowerCase();
3838
+ return normalizedA !== undefined && normalizedB !== undefined && normalizedA === normalizedB;
3601
3839
  }
3602
3840
  function serialize(cmpts, opts) {
3603
3841
  const component = {
@@ -3618,20 +3856,23 @@ var require_fast_uri = __commonJS((exports, module) => {
3618
3856
  };
3619
3857
  const options = Object.assign({}, opts);
3620
3858
  const uriTokens = [];
3859
+ if (component.scheme) {
3860
+ component.scheme = decodeValidScheme(component.scheme);
3861
+ }
3621
3862
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
3622
3863
  if (schemeHandler && schemeHandler.serialize)
3623
3864
  schemeHandler.serialize(component, options);
3865
+ const hasAuthority = component.userinfo !== undefined || component.host !== undefined || component.port !== undefined;
3866
+ const pathNoScheme = !options.skipEscape && component.scheme === undefined && !hasAuthority;
3624
3867
  if (component.path !== undefined) {
3625
3868
  if (!options.skipEscape) {
3626
- component.path = escapePreservingEscapes(component.path);
3627
- if (component.scheme !== undefined) {
3628
- component.path = component.path.split("%3A").join(":");
3629
- }
3869
+ component.path = serializePathEncoding(component.path, pathNoScheme);
3630
3870
  } else {
3631
3871
  component.path = normalizePercentEncoding(component.path);
3632
3872
  }
3633
3873
  }
3634
3874
  if (options.reference !== "suffix" && component.scheme) {
3875
+ component.scheme = decodeValidScheme(component.scheme);
3635
3876
  uriTokens.push(component.scheme, ":");
3636
3877
  }
3637
3878
  const authority = recomposeAuthority(component);
@@ -3649,16 +3890,19 @@ var require_fast_uri = __commonJS((exports, module) => {
3649
3890
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
3650
3891
  s = removeDotSegments(s);
3651
3892
  }
3893
+ if (pathNoScheme) {
3894
+ s = serializePathEncoding(s, true);
3895
+ }
3652
3896
  if (authority === undefined && s[0] === "/" && s[1] === "/") {
3653
3897
  s = "/%2F" + s.slice(2);
3654
3898
  }
3655
3899
  uriTokens.push(s);
3656
3900
  }
3657
3901
  if (component.query !== undefined) {
3658
- uriTokens.push("?", component.query);
3902
+ uriTokens.push("?", encodeQuery(component.query));
3659
3903
  }
3660
3904
  if (component.fragment !== undefined) {
3661
- uriTokens.push("#", component.fragment);
3905
+ uriTokens.push("#", encodeFragment(component.fragment));
3662
3906
  }
3663
3907
  return uriTokens.join("");
3664
3908
  }
@@ -3674,6 +3918,36 @@ var require_fast_uri = __commonJS((exports, module) => {
3674
3918
  }
3675
3919
  return;
3676
3920
  }
3921
+ function hasMalformedPercentEncoding(component) {
3922
+ if (component === undefined)
3923
+ return false;
3924
+ let percent = component.indexOf("%");
3925
+ while (percent !== -1) {
3926
+ if (percent + 2 >= component.length || !/^[\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) {
3927
+ return true;
3928
+ }
3929
+ percent = component.indexOf("%", percent + 3);
3930
+ }
3931
+ return false;
3932
+ }
3933
+ function isIPLiteral(host) {
3934
+ return host[0] === "[" && host[host.length - 1] === "]";
3935
+ }
3936
+ function hasMalformedComponentPercentEncoding(matches) {
3937
+ const host = matches[4];
3938
+ return hasMalformedPercentEncoding(matches[3]) || host !== undefined && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
3939
+ }
3940
+ function canonicalizeHost(parsed, options, schemeHandler, isIP) {
3941
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3942
+ try {
3943
+ parsed.host = new URL("http://" + parsed.host).hostname;
3944
+ } catch (e) {
3945
+ parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
3946
+ return true;
3947
+ }
3948
+ }
3949
+ return false;
3950
+ }
3677
3951
  function parseWithStatus(uri, opts) {
3678
3952
  const options = Object.assign({}, opts);
3679
3953
  const parsed = {
@@ -3686,6 +3960,11 @@ var require_fast_uri = __commonJS((exports, module) => {
3686
3960
  fragment: undefined
3687
3961
  };
3688
3962
  let malformedAuthorityOrPort = false;
3963
+ let malformedPercentEncoding = false;
3964
+ let malformedSchemeSpecific = false;
3965
+ let malformedHost = false;
3966
+ let malformedIPLiteral = false;
3967
+ let malformedScheme = false;
3689
3968
  let isIP = false;
3690
3969
  if (options.reference === "suffix") {
3691
3970
  if (options.scheme) {
@@ -3722,6 +4001,19 @@ var require_fast_uri = __commonJS((exports, module) => {
3722
4001
  parsed.path = matches[6] || "";
3723
4002
  parsed.query = matches[7];
3724
4003
  parsed.fragment = matches[8];
4004
+ if (parsed.scheme !== undefined) {
4005
+ const decodedScheme = unescape(parsed.scheme);
4006
+ if (VALID_SCHEME.test(decodedScheme)) {
4007
+ parsed.scheme = decodedScheme.toLowerCase();
4008
+ } else {
4009
+ parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
4010
+ malformedScheme = true;
4011
+ }
4012
+ }
4013
+ malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches);
4014
+ if (malformedPercentEncoding) {
4015
+ parsed.error = parsed.error || "URI contains malformed percent-encoding.";
4016
+ }
3725
4017
  if (isNaN(parsed.port)) {
3726
4018
  parsed.port = matches[5];
3727
4019
  }
@@ -3733,9 +4025,16 @@ var require_fast_uri = __commonJS((exports, module) => {
3733
4025
  if (parsed.host) {
3734
4026
  const ipv4result = isIPv4(parsed.host);
3735
4027
  if (ipv4result === false) {
4028
+ const bracketedIPLiteral = isIPLiteral(parsed.host);
4029
+ const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
3736
4030
  const ipv6result = normalizeIPv6(parsed.host);
3737
- parsed.host = ipv6result.host.toLowerCase();
3738
- isIP = ipv6result.isIPV6;
4031
+ isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
4032
+ malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
4033
+ parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
4034
+ if (malformedIPLiteral) {
4035
+ parsed.error = parsed.error || "URI host is malformed.";
4036
+ malformedAuthorityOrPort = true;
4037
+ }
3739
4038
  } else {
3740
4039
  isIP = true;
3741
4040
  }
@@ -3753,42 +4052,36 @@ var require_fast_uri = __commonJS((exports, module) => {
3753
4052
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
3754
4053
  }
3755
4054
  const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
3756
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
3757
- if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3758
- try {
3759
- parsed.host = new URL("http://" + parsed.host).hostname;
3760
- } catch (e) {
3761
- parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
3762
- }
3763
- }
4055
+ if (!malformedIPLiteral) {
4056
+ malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
3764
4057
  }
3765
4058
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
3766
4059
  if (uri.indexOf("%") !== -1) {
3767
- if (parsed.scheme !== undefined) {
3768
- parsed.scheme = unescape(parsed.scheme);
3769
- }
3770
- if (parsed.host !== undefined) {
3771
- parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
4060
+ if (parsed.host !== undefined && !malformedIPLiteral) {
4061
+ const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
4062
+ parsed.host = reescapeHostDelimiters(host, isIP);
3772
4063
  }
3773
4064
  }
3774
4065
  if (parsed.path) {
3775
4066
  parsed.path = normalizePathEncoding(parsed.path);
3776
4067
  }
4068
+ if (parsed.query) {
4069
+ parsed.query = normalizeQueryFragmentEncoding(parsed.query);
4070
+ }
3777
4071
  if (parsed.fragment) {
3778
- try {
3779
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
3780
- } catch {
3781
- parsed.error = parsed.error || "URI malformed";
3782
- }
4072
+ parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
3783
4073
  }
3784
4074
  }
3785
4075
  if (schemeHandler && schemeHandler.parse) {
3786
4076
  schemeHandler.parse(parsed, options);
4077
+ if (schemeHandler === SCHEMES.urn && parsed.nid === undefined) {
4078
+ malformedSchemeSpecific = true;
4079
+ }
3787
4080
  }
3788
4081
  } else {
3789
4082
  parsed.error = parsed.error || "URI can not be parsed.";
3790
4083
  }
3791
- return { parsed, malformedAuthorityOrPort };
4084
+ return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
3792
4085
  }
3793
4086
  function parse(uri, opts) {
3794
4087
  return parseWithStatus(uri, opts).parsed;
@@ -3797,20 +4090,28 @@ var require_fast_uri = __commonJS((exports, module) => {
3797
4090
  return normalizeStringWithStatus(uri, opts).normalized;
3798
4091
  }
3799
4092
  function normalizeStringWithStatus(uri, opts) {
3800
- const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
4093
+ const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
3801
4094
  return {
3802
- normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
3803
- malformedAuthorityOrPort
4095
+ normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
4096
+ malformedAuthorityOrPort,
4097
+ malformedPercentEncoding,
4098
+ malformedSchemeSpecific,
4099
+ malformedHost,
4100
+ malformedScheme
3804
4101
  };
3805
4102
  }
3806
4103
  function normalizeComparableURI(uri, opts) {
3807
- if (typeof uri === "string") {
3808
- const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
3809
- return malformedAuthorityOrPort ? undefined : normalized;
4104
+ if (typeof uri !== "string" && typeof uri !== "object") {
4105
+ return;
3810
4106
  }
3811
- if (typeof uri === "object") {
3812
- return serialize(uri, opts);
4107
+ let value;
4108
+ try {
4109
+ value = typeof uri === "string" ? uri : serialize(uri, opts);
4110
+ } catch {
4111
+ return;
3813
4112
  }
4113
+ const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
4114
+ return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? undefined : normalized;
3814
4115
  }
3815
4116
  var fastUri = {
3816
4117
  SCHEMES,
@@ -6855,7 +7156,7 @@ var require_2020 = __commonJS((exports, module) => {
6855
7156
  var package_default = {
6856
7157
  name: "@uipath/api-workflow-tool",
6857
7158
  license: "MIT",
6858
- version: "1.201.0-preview.128",
7159
+ version: "1.201.0-preview.132",
6859
7160
  description: "Run UiPath API Workflows locally.",
6860
7161
  private: false,
6861
7162
  repository: {
@@ -7436,7 +7737,7 @@ class TextApiResponse {
7436
7737
  var package_default2 = {
7437
7738
  name: "@uipath/integrationservice-sdk",
7438
7739
  license: "MIT",
7439
- version: "1.201.0-preview.128",
7740
+ version: "1.201.0-preview.132",
7440
7741
  repository: {
7441
7742
  type: "git",
7442
7743
  url: "https://github.com/UiPath/cli.git",
@@ -14084,7 +14385,7 @@ async function createPackager() {
14084
14385
  logHandler: logger.handleLog
14085
14386
  });
14086
14387
  }
14087
- const { createNodeProjectPackager } = await import("./node-t36b82h7.js");
14388
+ const { createNodeProjectPackager } = await import("./node-7d0ggccm.js");
14088
14389
  return await createNodeProjectPackager({
14089
14390
  logHandler: logger.handleLog
14090
14391
  });
@@ -14106,7 +14407,7 @@ async function setupProject(packager, projectPath) {
14106
14407
  return packager.setupAsync(absPath);
14107
14408
  }
14108
14409
  async function buildBaseOptions() {
14109
- const { ProjectPackOptions } = await import("./index-317g5wvd.js");
14410
+ const { ProjectPackOptions } = await import("./index-94hvfezt.js");
14110
14411
  const sdkLogLevelMap = {
14111
14412
  [0 /* DEBUG */]: "Debug" /* Debug */,
14112
14413
  [1 /* INFO */]: "Information" /* Info */,
@@ -14402,7 +14703,7 @@ function querystringSingleKey3(key, value, keyPrefix = "") {
14402
14703
  var package_default3 = {
14403
14704
  name: "@uipath/solution-sdk",
14404
14705
  license: "MIT",
14405
- version: "1.201.0-preview.128",
14706
+ version: "1.201.0-preview.132",
14406
14707
  repository: {
14407
14708
  type: "git",
14408
14709
  url: "https://github.com/UiPath/cli.git",
@@ -16519,4 +16820,4 @@ var registerCommands = async (program) => {
16519
16820
 
16520
16821
  export { metadata, registerCommands };
16521
16822
 
16522
- //# debugId=F90B6F812500CD8864756E2164756E21
16823
+ //# debugId=631A239503EC049864756E2164756E21
package/dist/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./packager-tool-tve2p4s6.js";
4
+ } from "./packager-tool-8p759ssv.js";
5
5
  import"./packager-tool-1v8fmky0.js";
6
6
  import"./packager-tool-h1tyrbff.js";
7
7
  import"./packager-tool-bprnbg91.js";
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
- "name": "@uipath/api-workflow-tool",
3
- "license": "MIT",
4
- "version": "1.201.0-preview.128",
5
- "description": "Run UiPath API Workflows locally.",
6
- "private": false,
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/UiPath/cli.git",
10
- "directory": "packages/api-workflow-tool"
11
- },
12
- "publishConfig": {
13
- "registry": "https://registry.npmjs.org/"
14
- },
15
- "keywords": [
16
- "cli-tool"
17
- ],
18
- "type": "module",
19
- "main": "./dist/tool.js",
20
- "exports": {
21
- ".": "./dist/tool.js",
22
- "./packager-tool": "./dist/packager-tool.js",
23
- "./executor-tool": "./dist/executor-tool.js"
24
- },
25
- "files": [
26
- "dist"
27
- ],
28
- "gitHead": "a72e454cd7025bbbdac37d6105afef8282138c88"
2
+ "name": "@uipath/api-workflow-tool",
3
+ "license": "MIT",
4
+ "version": "1.201.0-preview.132",
5
+ "description": "Run UiPath API Workflows locally.",
6
+ "private": false,
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/UiPath/cli.git",
10
+ "directory": "packages/api-workflow-tool"
11
+ },
12
+ "publishConfig": {
13
+ "registry": "https://registry.npmjs.org/"
14
+ },
15
+ "keywords": [
16
+ "cli-tool"
17
+ ],
18
+ "type": "module",
19
+ "main": "./dist/tool.js",
20
+ "exports": {
21
+ ".": "./dist/tool.js",
22
+ "./packager-tool": "./dist/packager-tool.js",
23
+ "./executor-tool": "./dist/executor-tool.js"
24
+ },
25
+ "files": [
26
+ "dist"
27
+ ],
28
+ "gitHead": "37388a48f899d8f3e7d590f050c5f00485594638"
29
29
  }