@uipath/case-tool 1.201.0-preview.128 → 1.201.0-preview.131

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.
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  VALID_PACKAGE_NAME_REGEX,
7
7
  loadCaseSchemaAsync
8
- } from "./packager-tool-0a2qqe1h.js";
8
+ } from "./packager-tool-yt11dhyp.js";
9
9
  import"./packager-tool-we1phz71.js";
10
10
  import"./packager-tool-zqa5k9f7.js";
11
11
  import {
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  metadata,
4
4
  registerCommands
5
- } from "./packager-tool-wdw1ngb6.js";
6
- import"./packager-tool-0a2qqe1h.js";
5
+ } from "./packager-tool-7c9y9jce.js";
6
+ import"./packager-tool-yt11dhyp.js";
7
7
  import"./packager-tool-we1phz71.js";
8
8
  import"./packager-tool-w3h8xrnv.js";
9
9
  import"./packager-tool-zqa5k9f7.js";
@@ -27,7 +27,7 @@ import {
27
27
  registerSharedProcessesCommands,
28
28
  uploadAndDebugSolution,
29
29
  validateIntSvcNode
30
- } from "./packager-tool-0a2qqe1h.js";
30
+ } from "./packager-tool-yt11dhyp.js";
31
31
  import {
32
32
  findSolutionFile,
33
33
  prepareProjectLocation,
@@ -72,7 +72,7 @@ import {
72
72
  var package_default = {
73
73
  name: "@uipath/case-tool",
74
74
  license: "MIT",
75
- version: "1.201.0-preview.128",
75
+ version: "1.201.0-preview.131",
76
76
  description: "Manage Case Management instances, processes, and incidents.",
77
77
  private: false,
78
78
  repository: {
@@ -1115,7 +1115,7 @@ function querystringSingleKey(key, value, keyPrefix = "") {
1115
1115
  var package_default2 = {
1116
1116
  name: "@uipath/solution-sdk",
1117
1117
  license: "MIT",
1118
- version: "1.201.0-preview.128",
1118
+ version: "1.201.0-preview.131",
1119
1119
  repository: {
1120
1120
  type: "git",
1121
1121
  url: "https://github.com/UiPath/cli.git",
@@ -3160,7 +3160,7 @@ var CASE_PACK_EXAMPLES = [
3160
3160
  var registerPackCommand = (program) => {
3161
3161
  const command = program.command("pack").description("Pack a Case project into a .nupkg file").argument("<project-path>", "Path to the Case project directory").argument("<output-path>", "Output directory where the .nupkg will be saved").option("-n, --name <name>", "Package name (default: project folder name)").option("-v, --version <version>", "Package version (default: 1.0.0)", "1.0.0");
3162
3162
  registerPackageMetadataOptions(command).examples(CASE_PACK_EXAMPLES).trackedAction(processContext, async (projectPath, outputPath, options) => {
3163
- const { CasePackService } = await import("./case-pack-service-bs82bcjb.js");
3163
+ const { CasePackService } = await import("./case-pack-service-6dvh40eb.js");
3164
3164
  const service = new CasePackService;
3165
3165
  const [error, result] = await catchError(service.execute(projectPath, {
3166
3166
  output: outputPath,
@@ -13604,4 +13604,4 @@ var registerCommands = async (program) => {
13604
13604
 
13605
13605
  export { metadata, registerCommands };
13606
13606
 
13607
- //# debugId=8E22FCDDB598D63564756E2164756E21
13607
+ //# debugId=BA993BB6DE949E1164756E2164756E21
@@ -3050,9 +3050,28 @@ var require_data = __commonJS((exports, module) => {
3050
3050
  var require_utils = __commonJS((exports, module) => {
3051
3051
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3052
3052
  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);
3053
+ var isPort = RegExp.prototype.test.bind(/^\d*$/u);
3053
3054
  var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
3054
3055
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
3055
- var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
3056
+ var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
3057
+ var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
3058
+ var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
3059
+ var BYTE_HEX = new Array(256);
3060
+ {
3061
+ const HEX_DIGITS = "0123456789ABCDEF";
3062
+ for (let i = 0;i < 256; i++) {
3063
+ BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
3064
+ }
3065
+ }
3066
+ function percentEncodeNonAscii(cp) {
3067
+ if (cp < 2048) {
3068
+ return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
3069
+ }
3070
+ if (cp < 65536) {
3071
+ return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
3072
+ }
3073
+ return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
3074
+ }
3056
3075
  function stringArrayToHexStripped(input) {
3057
3076
  let acc = "";
3058
3077
  let code = 0;
@@ -3077,91 +3096,122 @@ var require_utils = __commonJS((exports, module) => {
3077
3096
  }
3078
3097
  return acc;
3079
3098
  }
3099
+ var isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
3100
+ var isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
3101
+ var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
3080
3102
  var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
3081
- function consumeIsZone(buffer) {
3082
- buffer.length = 0;
3083
- return true;
3084
- }
3085
- function consumeHextets(buffer, address, output) {
3086
- if (buffer.length) {
3087
- const hex3 = stringArrayToHexStripped(buffer);
3088
- if (hex3 !== "") {
3089
- address.push(hex3);
3090
- } else {
3091
- output.error = true;
3092
- return false;
3103
+ function isZoneIdentifier(zone) {
3104
+ if (zone.length === 0)
3105
+ return false;
3106
+ for (let i = 0;i < zone.length; i++) {
3107
+ if (isZoneCharacter(zone[i]))
3108
+ continue;
3109
+ if (zone[i] === "%" && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {
3110
+ i += 2;
3111
+ continue;
3093
3112
  }
3094
- buffer.length = 0;
3113
+ return false;
3095
3114
  }
3096
3115
  return true;
3097
3116
  }
3098
- function getIPV6(input) {
3099
- let tokenCount = 0;
3100
- const output = { error: false, address: "", zone: "" };
3101
- const address = [];
3102
- const buffer = [];
3103
- let endipv6Encountered = false;
3104
- let endIpv6 = false;
3105
- let consume = consumeHextets;
3106
- for (let i = 0;i < input.length; i++) {
3107
- const cursor = input[i];
3108
- if (cursor === "[" || cursor === "]") {
3109
- continue;
3110
- }
3111
- if (cursor === ":") {
3112
- if (endipv6Encountered === true) {
3113
- endIpv6 = true;
3114
- }
3115
- if (!consume(buffer, address, output)) {
3116
- break;
3117
- }
3118
- if (++tokenCount > 7) {
3119
- output.error = true;
3120
- break;
3121
- }
3122
- if (i > 0 && input[i - 1] === ":") {
3123
- endipv6Encountered = true;
3124
- }
3125
- address.push(":");
3126
- continue;
3127
- } else if (cursor === "%") {
3128
- if (!consume(buffer, address, output)) {
3129
- break;
3117
+ function compressIPv6ZeroRun(hextets) {
3118
+ let bestStart = -1;
3119
+ let bestLength = 0;
3120
+ let runStart = -1;
3121
+ let runLength = 0;
3122
+ for (let i = 0;i < hextets.length; i++) {
3123
+ if (hextets[i] === "0") {
3124
+ if (runStart === -1)
3125
+ runStart = i;
3126
+ runLength++;
3127
+ if (runLength > bestLength) {
3128
+ bestLength = runLength;
3129
+ bestStart = runStart;
3130
3130
  }
3131
- consume = consumeIsZone;
3132
3131
  } else {
3133
- buffer.push(cursor);
3134
- continue;
3132
+ runStart = -1;
3133
+ runLength = 0;
3135
3134
  }
3136
3135
  }
3137
- if (buffer.length) {
3138
- if (consume === consumeIsZone) {
3139
- output.zone = buffer.join("");
3140
- } else if (endIpv6) {
3141
- address.push(buffer.join(""));
3142
- } else {
3143
- address.push(stringArrayToHexStripped(buffer));
3136
+ if (bestLength < 2)
3137
+ return hextets.join(":");
3138
+ const head = hextets.slice(0, bestStart).join(":");
3139
+ const tail = hextets.slice(bestStart + bestLength).join(":");
3140
+ return head + "::" + tail;
3141
+ }
3142
+ function normalizeIPv6Address(input) {
3143
+ const compression = input.indexOf("::");
3144
+ if (compression !== -1 && input.indexOf("::", compression + 1) !== -1)
3145
+ return;
3146
+ const left = compression === -1 ? input.split(":") : input.slice(0, compression).split(":");
3147
+ const right = compression === -1 ? [] : input.slice(compression + 2).split(":");
3148
+ if (compression !== -1) {
3149
+ if (left.length === 1 && left[0] === "")
3150
+ left.length = 0;
3151
+ if (right.length === 1 && right[0] === "")
3152
+ right.length = 0;
3153
+ }
3154
+ const parts = left.concat(right);
3155
+ let hextetCount = 0;
3156
+ for (let i = 0;i < parts.length; i++) {
3157
+ const part = parts[i];
3158
+ if (part === "")
3159
+ return;
3160
+ if (part.indexOf(".") !== -1) {
3161
+ if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv4(part))
3162
+ return;
3163
+ hextetCount += 2;
3164
+ continue;
3144
3165
  }
3166
+ if (!isHextet(part))
3167
+ return;
3168
+ parts[i] = parseInt(part, 16).toString(16);
3169
+ hextetCount++;
3145
3170
  }
3146
- output.address = address.join("");
3147
- return output;
3171
+ if (compression === -1) {
3172
+ if (hextetCount !== 8)
3173
+ return;
3174
+ return compressIPv6ZeroRun(parts);
3175
+ }
3176
+ if (hextetCount >= 8)
3177
+ return;
3178
+ const expanded = parts.slice(0, left.length);
3179
+ for (let i = hextetCount;i < 8; i++)
3180
+ expanded.push("0");
3181
+ for (let i = left.length;i < parts.length; i++)
3182
+ expanded.push(parts[i]);
3183
+ return compressIPv6ZeroRun(expanded);
3148
3184
  }
3149
3185
  function normalizeIPv6(host) {
3150
- if (findToken(host, ":") < 2) {
3151
- return { host, isIPV6: false };
3152
- }
3153
- const ipv63 = getIPV6(host);
3154
- if (!ipv63.error) {
3155
- let newHost = ipv63.address;
3156
- let escapedHost = ipv63.address;
3157
- if (ipv63.zone) {
3158
- newHost += "%" + ipv63.zone;
3159
- escapedHost += "%25" + ipv63.zone;
3160
- }
3161
- return { host: newHost, isIPV6: true, escapedHost };
3162
- } else {
3163
- return { host, isIPV6: false };
3164
- }
3186
+ const bracketed = host[0] === "[" && host[host.length - 1] === "]";
3187
+ const hasBracket = host[0] === "[" || host[host.length - 1] === "]";
3188
+ if (hasBracket && !bracketed)
3189
+ return { host, isIPV6: false, error: true };
3190
+ let input = bracketed ? host.slice(1, -1) : host;
3191
+ if (bracketed && isIPvFuture(input)) {
3192
+ input = input.toLowerCase();
3193
+ return { host: `[${input}]`, escapedHost: input, isIPV6: false, isIPVFuture: true };
3194
+ }
3195
+ if (findToken(input, ":") < 2) {
3196
+ return { host, isIPV6: false, error: bracketed };
3197
+ }
3198
+ let zoneIdentifier = "";
3199
+ const zoneSeparator = input.indexOf("%");
3200
+ if (zoneSeparator !== -1) {
3201
+ const separatorLength = input.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === "%25" ? 3 : 1;
3202
+ zoneIdentifier = input.slice(zoneSeparator + separatorLength);
3203
+ if (!isZoneIdentifier(zoneIdentifier))
3204
+ return { host, isIPV6: false, error: true };
3205
+ input = input.slice(0, zoneSeparator);
3206
+ }
3207
+ const address = normalizeIPv6Address(input);
3208
+ if (address === undefined)
3209
+ return { host, isIPV6: false, error: true };
3210
+ return {
3211
+ host: address + (zoneIdentifier ? "%" + zoneIdentifier : ""),
3212
+ escapedHost: address + (zoneIdentifier ? "%25" + zoneIdentifier : ""),
3213
+ isIPV6: true
3214
+ };
3165
3215
  }
3166
3216
  function findToken(str, token) {
3167
3217
  let ind = 0;
@@ -3281,7 +3331,8 @@ var require_utils = __commonJS((exports, module) => {
3281
3331
  function normalizePathEncoding(input) {
3282
3332
  let output = "";
3283
3333
  for (let i = 0;i < input.length; i++) {
3284
- if (input[i] === "%" && i + 2 < input.length) {
3334
+ const ch = input[i];
3335
+ if (ch === "%" && i + 2 < input.length) {
3285
3336
  const hex3 = input.slice(i + 1, i + 3);
3286
3337
  if (isHexPair(hex3)) {
3287
3338
  const normalizedHex = hex3.toUpperCase();
@@ -3295,10 +3346,152 @@ var require_utils = __commonJS((exports, module) => {
3295
3346
  continue;
3296
3347
  }
3297
3348
  }
3298
- if (isPathCharacter(input[i])) {
3299
- output += input[i];
3349
+ if (isPathCharacter(ch)) {
3350
+ output += ch;
3300
3351
  } else {
3301
- output += escape(input[i]);
3352
+ const code = input.charCodeAt(i);
3353
+ if (code < 128) {
3354
+ output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
3355
+ } else if (code < 55296 || code > 57343) {
3356
+ output += percentEncodeNonAscii(code);
3357
+ } else if (code <= 56319 && i + 1 < input.length) {
3358
+ const low = input.charCodeAt(i + 1);
3359
+ if (low >= 56320 && low <= 57343) {
3360
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3361
+ i++;
3362
+ } else {
3363
+ output += percentEncodeNonAscii(65533);
3364
+ }
3365
+ } else {
3366
+ output += percentEncodeNonAscii(65533);
3367
+ }
3368
+ }
3369
+ }
3370
+ return output;
3371
+ }
3372
+ function serializePathEncoding(input, pathNoScheme = false) {
3373
+ let output = "";
3374
+ let firstSegment = pathNoScheme && input[0] !== "/";
3375
+ for (let i = 0;i < input.length; i++) {
3376
+ const ch = input[i];
3377
+ if (ch === "%" && i + 2 < input.length) {
3378
+ const hex3 = input.slice(i + 1, i + 3);
3379
+ if (isHexPair(hex3)) {
3380
+ output += "%" + hex3.toUpperCase();
3381
+ i += 2;
3382
+ continue;
3383
+ }
3384
+ }
3385
+ if (ch === "/") {
3386
+ firstSegment = false;
3387
+ }
3388
+ if (isPathCharacter(ch) && (ch !== ":" || !firstSegment)) {
3389
+ output += ch;
3390
+ } else {
3391
+ const code = input.charCodeAt(i);
3392
+ if (code < 128) {
3393
+ output += BYTE_HEX[code];
3394
+ } else if (code < 55296 || code > 57343) {
3395
+ output += percentEncodeNonAscii(code);
3396
+ } else if (code <= 56319 && i + 1 < input.length) {
3397
+ const low = input.charCodeAt(i + 1);
3398
+ if (low >= 56320 && low <= 57343) {
3399
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3400
+ i++;
3401
+ } else {
3402
+ output += percentEncodeNonAscii(65533);
3403
+ }
3404
+ } else {
3405
+ output += percentEncodeNonAscii(65533);
3406
+ }
3407
+ }
3408
+ }
3409
+ return output;
3410
+ }
3411
+ function encodeComponent(input, isAllowed) {
3412
+ let output = "";
3413
+ for (let i = 0;i < input.length; i++) {
3414
+ const ch = input[i];
3415
+ if (ch === "%" && i + 2 < input.length) {
3416
+ const hex3 = input.slice(i + 1, i + 3);
3417
+ if (isHexPair(hex3)) {
3418
+ output += "%" + hex3.toUpperCase();
3419
+ i += 2;
3420
+ continue;
3421
+ }
3422
+ }
3423
+ if (isAllowed(ch)) {
3424
+ output += ch;
3425
+ } else {
3426
+ const code = input.charCodeAt(i);
3427
+ if (code < 128) {
3428
+ output += BYTE_HEX[code];
3429
+ } else if (code < 55296 || code > 57343) {
3430
+ output += percentEncodeNonAscii(code);
3431
+ } else if (code <= 56319 && i + 1 < input.length) {
3432
+ const low = input.charCodeAt(i + 1);
3433
+ if (low >= 56320 && low <= 57343) {
3434
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3435
+ i++;
3436
+ } else {
3437
+ output += percentEncodeNonAscii(65533);
3438
+ }
3439
+ } else {
3440
+ output += percentEncodeNonAscii(65533);
3441
+ }
3442
+ }
3443
+ }
3444
+ return output;
3445
+ }
3446
+ function encodeUserinfo(input) {
3447
+ return encodeComponent(input, isUserinfoCharacter);
3448
+ }
3449
+ function encodeQuery(input) {
3450
+ return encodeComponent(input, isQueryFragmentCharacter);
3451
+ }
3452
+ function encodeFragment(input) {
3453
+ return encodeComponent(input, isQueryFragmentCharacter);
3454
+ }
3455
+ function isEscapeSafe(cp) {
3456
+ 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;
3457
+ }
3458
+ function normalizeQueryFragmentEncoding(input) {
3459
+ let output = "";
3460
+ for (let i = 0;i < input.length; i++) {
3461
+ const ch = input[i];
3462
+ if (ch === "%" && i + 2 < input.length) {
3463
+ const hex3 = input.slice(i + 1, i + 3);
3464
+ if (isHexPair(hex3)) {
3465
+ const normalizedHex = hex3.toUpperCase();
3466
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3467
+ if (isUnreserved(decoded)) {
3468
+ output += decoded;
3469
+ } else {
3470
+ output += "%" + normalizedHex;
3471
+ }
3472
+ i += 2;
3473
+ continue;
3474
+ }
3475
+ }
3476
+ if (isQueryFragmentCharacter(ch)) {
3477
+ output += ch;
3478
+ } else {
3479
+ const code = input.charCodeAt(i);
3480
+ if (code < 128) {
3481
+ output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
3482
+ } else if (code < 55296 || code > 57343) {
3483
+ output += percentEncodeNonAscii(code);
3484
+ } else if (code <= 56319 && i + 1 < input.length) {
3485
+ const low = input.charCodeAt(i + 1);
3486
+ if (low >= 56320 && low <= 57343) {
3487
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3488
+ i++;
3489
+ } else {
3490
+ output += percentEncodeNonAscii(65533);
3491
+ }
3492
+ } else {
3493
+ output += percentEncodeNonAscii(65533);
3494
+ }
3302
3495
  }
3303
3496
  }
3304
3497
  return output;
@@ -3321,14 +3514,18 @@ var require_utils = __commonJS((exports, module) => {
3321
3514
  function recomposeAuthority(component) {
3322
3515
  const uriTokens = [];
3323
3516
  if (component.userinfo !== undefined) {
3324
- uriTokens.push(component.userinfo);
3517
+ uriTokens.push(encodeUserinfo(component.userinfo));
3325
3518
  uriTokens.push("@");
3326
3519
  }
3327
3520
  if (component.host !== undefined) {
3328
- let host = unescape(component.host);
3521
+ let host = component.host;
3329
3522
  if (!isIPv4(host)) {
3330
- const ipV6res = normalizeIPv6(host);
3331
- if (ipV6res.isIPV6 === true) {
3523
+ let ipV6res = normalizeIPv6(host);
3524
+ if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
3525
+ host = normalizePercentEncoding(host, true);
3526
+ ipV6res = normalizeIPv6(host);
3527
+ }
3528
+ if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
3332
3529
  host = `[${ipV6res.escapedHost}]`;
3333
3530
  } else {
3334
3531
  host = reescapeHostDelimiters(host, false);
@@ -3337,8 +3534,12 @@ var require_utils = __commonJS((exports, module) => {
3337
3534
  uriTokens.push(host);
3338
3535
  }
3339
3536
  if (typeof component.port === "number" || typeof component.port === "string") {
3537
+ const port = String(component.port);
3538
+ if (!isPort(port)) {
3539
+ throw new TypeError("URI port is malformed.");
3540
+ }
3340
3541
  uriTokens.push(":");
3341
- uriTokens.push(String(component.port));
3542
+ uriTokens.push(port);
3342
3543
  }
3343
3544
  return uriTokens.length ? uriTokens.join("") : undefined;
3344
3545
  }
@@ -3348,6 +3549,11 @@ var require_utils = __commonJS((exports, module) => {
3348
3549
  reescapeHostDelimiters,
3349
3550
  normalizePercentEncoding,
3350
3551
  normalizePathEncoding,
3552
+ serializePathEncoding,
3553
+ normalizeQueryFragmentEncoding,
3554
+ encodeUserinfo,
3555
+ encodeQuery,
3556
+ encodeFragment,
3351
3557
  escapePreservingEscapes,
3352
3558
  removeDotSegments,
3353
3559
  isIPv4,
@@ -3360,7 +3566,7 @@ var require_utils = __commonJS((exports, module) => {
3360
3566
  // ../../node_modules/fast-uri/lib/schemes.js
3361
3567
  var require_schemes = __commonJS((exports, module) => {
3362
3568
  var { isUUID } = require_utils();
3363
- var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3569
+ var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
3364
3570
  var supportedSchemeNames = [
3365
3571
  "http",
3366
3572
  "https",
@@ -3415,9 +3621,10 @@ var require_schemes = __commonJS((exports, module) => {
3415
3621
  wsComponent.secure = undefined;
3416
3622
  }
3417
3623
  if (wsComponent.resourceName) {
3418
- const [path, query] = wsComponent.resourceName.split("?");
3624
+ const queryIndex = wsComponent.resourceName.indexOf("?");
3625
+ const path = queryIndex === -1 ? wsComponent.resourceName : wsComponent.resourceName.slice(0, queryIndex);
3419
3626
  wsComponent.path = path && path !== "/" ? path : undefined;
3420
- wsComponent.query = query;
3627
+ wsComponent.query = queryIndex === -1 ? undefined : wsComponent.resourceName.slice(queryIndex + 1);
3421
3628
  wsComponent.resourceName = undefined;
3422
3629
  }
3423
3630
  wsComponent.fragment = undefined;
@@ -3429,7 +3636,7 @@ var require_schemes = __commonJS((exports, module) => {
3429
3636
  return urnComponent;
3430
3637
  }
3431
3638
  const matches = urnComponent.path.match(URN_REG);
3432
- if (matches) {
3639
+ if (matches && matches[0] === urnComponent.path) {
3433
3640
  const scheme = options.scheme || urnComponent.scheme || "urn";
3434
3641
  urnComponent.nid = matches[1].toLowerCase();
3435
3642
  urnComponent.nss = matches[2];
@@ -3533,8 +3740,17 @@ var require_schemes = __commonJS((exports, module) => {
3533
3740
 
3534
3741
  // ../../node_modules/fast-uri/index.js
3535
3742
  var require_fast_uri = __commonJS((exports, module) => {
3536
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3743
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3537
3744
  var { SCHEMES, getSchemeHandler } = require_schemes();
3745
+ var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
3746
+ var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
3747
+ function decodeValidScheme(scheme) {
3748
+ const decodedScheme = unescape(String(scheme));
3749
+ if (!VALID_SCHEME.test(decodedScheme)) {
3750
+ throw new TypeError(MALFORMED_SCHEME_ERROR);
3751
+ }
3752
+ return decodedScheme;
3753
+ }
3538
3754
  function normalize(uri, options) {
3539
3755
  if (typeof uri === "string") {
3540
3756
  uri = normalizeString(uri, options);
@@ -3545,12 +3761,34 @@ var require_fast_uri = __commonJS((exports, module) => {
3545
3761
  }
3546
3762
  function resolve(baseURI, relativeURI, options) {
3547
3763
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
3548
- const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
3549
- const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
3550
- if (baseMalformed || relativeMalformed) {
3764
+ const {
3765
+ parsed: baseParsed,
3766
+ malformedAuthorityOrPort: baseMalformed,
3767
+ malformedPercentEncoding: baseMalformedPercentEncoding,
3768
+ malformedSchemeSpecific: baseMalformedSchemeSpecific,
3769
+ malformedHost: baseMalformedHost,
3770
+ malformedScheme: baseMalformedScheme
3771
+ } = parseWithStatus(baseURI, schemelessOptions);
3772
+ const {
3773
+ parsed: relativeParsed,
3774
+ malformedAuthorityOrPort: relativeMalformed,
3775
+ malformedPercentEncoding: relativeMalformedPercentEncoding,
3776
+ malformedSchemeSpecific: relativeMalformedSchemeSpecific,
3777
+ malformedHost: relativeMalformedHost,
3778
+ malformedScheme: relativeMalformedScheme
3779
+ } = parseWithStatus(relativeURI, schemelessOptions);
3780
+ if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
3551
3781
  throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
3552
3782
  }
3553
3783
  const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
3784
+ const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
3785
+ const resolvedHost = resolved.host;
3786
+ const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
3787
+ canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
3788
+ const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
3789
+ if (resolved.error && !encodedASCIIHost) {
3790
+ throw new Error(resolved.error);
3791
+ }
3554
3792
  schemelessOptions.skipEscape = true;
3555
3793
  return serialize(resolved, schemelessOptions);
3556
3794
  }
@@ -3610,7 +3848,7 @@ var require_fast_uri = __commonJS((exports, module) => {
3610
3848
  function equal(uriA, uriB, options) {
3611
3849
  const normalizedA = normalizeComparableURI(uriA, options);
3612
3850
  const normalizedB = normalizeComparableURI(uriB, options);
3613
- return normalizedA !== undefined && normalizedB !== undefined && normalizedA.toLowerCase() === normalizedB.toLowerCase();
3851
+ return normalizedA !== undefined && normalizedB !== undefined && normalizedA === normalizedB;
3614
3852
  }
3615
3853
  function serialize(cmpts, opts) {
3616
3854
  const component = {
@@ -3631,20 +3869,23 @@ var require_fast_uri = __commonJS((exports, module) => {
3631
3869
  };
3632
3870
  const options = Object.assign({}, opts);
3633
3871
  const uriTokens = [];
3872
+ if (component.scheme) {
3873
+ component.scheme = decodeValidScheme(component.scheme);
3874
+ }
3634
3875
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
3635
3876
  if (schemeHandler && schemeHandler.serialize)
3636
3877
  schemeHandler.serialize(component, options);
3878
+ const hasAuthority = component.userinfo !== undefined || component.host !== undefined || component.port !== undefined;
3879
+ const pathNoScheme = !options.skipEscape && component.scheme === undefined && !hasAuthority;
3637
3880
  if (component.path !== undefined) {
3638
3881
  if (!options.skipEscape) {
3639
- component.path = escapePreservingEscapes(component.path);
3640
- if (component.scheme !== undefined) {
3641
- component.path = component.path.split("%3A").join(":");
3642
- }
3882
+ component.path = serializePathEncoding(component.path, pathNoScheme);
3643
3883
  } else {
3644
3884
  component.path = normalizePercentEncoding(component.path);
3645
3885
  }
3646
3886
  }
3647
3887
  if (options.reference !== "suffix" && component.scheme) {
3888
+ component.scheme = decodeValidScheme(component.scheme);
3648
3889
  uriTokens.push(component.scheme, ":");
3649
3890
  }
3650
3891
  const authority = recomposeAuthority(component);
@@ -3662,16 +3903,19 @@ var require_fast_uri = __commonJS((exports, module) => {
3662
3903
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
3663
3904
  s = removeDotSegments(s);
3664
3905
  }
3906
+ if (pathNoScheme) {
3907
+ s = serializePathEncoding(s, true);
3908
+ }
3665
3909
  if (authority === undefined && s[0] === "/" && s[1] === "/") {
3666
3910
  s = "/%2F" + s.slice(2);
3667
3911
  }
3668
3912
  uriTokens.push(s);
3669
3913
  }
3670
3914
  if (component.query !== undefined) {
3671
- uriTokens.push("?", component.query);
3915
+ uriTokens.push("?", encodeQuery(component.query));
3672
3916
  }
3673
3917
  if (component.fragment !== undefined) {
3674
- uriTokens.push("#", component.fragment);
3918
+ uriTokens.push("#", encodeFragment(component.fragment));
3675
3919
  }
3676
3920
  return uriTokens.join("");
3677
3921
  }
@@ -3687,6 +3931,36 @@ var require_fast_uri = __commonJS((exports, module) => {
3687
3931
  }
3688
3932
  return;
3689
3933
  }
3934
+ function hasMalformedPercentEncoding(component) {
3935
+ if (component === undefined)
3936
+ return false;
3937
+ let percent = component.indexOf("%");
3938
+ while (percent !== -1) {
3939
+ if (percent + 2 >= component.length || !/^[\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) {
3940
+ return true;
3941
+ }
3942
+ percent = component.indexOf("%", percent + 3);
3943
+ }
3944
+ return false;
3945
+ }
3946
+ function isIPLiteral(host) {
3947
+ return host[0] === "[" && host[host.length - 1] === "]";
3948
+ }
3949
+ function hasMalformedComponentPercentEncoding(matches) {
3950
+ const host = matches[4];
3951
+ return hasMalformedPercentEncoding(matches[3]) || host !== undefined && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
3952
+ }
3953
+ function canonicalizeHost(parsed, options, schemeHandler, isIP) {
3954
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3955
+ try {
3956
+ parsed.host = new URL("http://" + parsed.host).hostname;
3957
+ } catch (e) {
3958
+ parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
3959
+ return true;
3960
+ }
3961
+ }
3962
+ return false;
3963
+ }
3690
3964
  function parseWithStatus(uri, opts) {
3691
3965
  const options = Object.assign({}, opts);
3692
3966
  const parsed = {
@@ -3699,6 +3973,11 @@ var require_fast_uri = __commonJS((exports, module) => {
3699
3973
  fragment: undefined
3700
3974
  };
3701
3975
  let malformedAuthorityOrPort = false;
3976
+ let malformedPercentEncoding = false;
3977
+ let malformedSchemeSpecific = false;
3978
+ let malformedHost = false;
3979
+ let malformedIPLiteral = false;
3980
+ let malformedScheme = false;
3702
3981
  let isIP = false;
3703
3982
  if (options.reference === "suffix") {
3704
3983
  if (options.scheme) {
@@ -3735,6 +4014,19 @@ var require_fast_uri = __commonJS((exports, module) => {
3735
4014
  parsed.path = matches[6] || "";
3736
4015
  parsed.query = matches[7];
3737
4016
  parsed.fragment = matches[8];
4017
+ if (parsed.scheme !== undefined) {
4018
+ const decodedScheme = unescape(parsed.scheme);
4019
+ if (VALID_SCHEME.test(decodedScheme)) {
4020
+ parsed.scheme = decodedScheme.toLowerCase();
4021
+ } else {
4022
+ parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
4023
+ malformedScheme = true;
4024
+ }
4025
+ }
4026
+ malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches);
4027
+ if (malformedPercentEncoding) {
4028
+ parsed.error = parsed.error || "URI contains malformed percent-encoding.";
4029
+ }
3738
4030
  if (isNaN(parsed.port)) {
3739
4031
  parsed.port = matches[5];
3740
4032
  }
@@ -3746,9 +4038,16 @@ var require_fast_uri = __commonJS((exports, module) => {
3746
4038
  if (parsed.host) {
3747
4039
  const ipv4result = isIPv4(parsed.host);
3748
4040
  if (ipv4result === false) {
4041
+ const bracketedIPLiteral = isIPLiteral(parsed.host);
4042
+ const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
3749
4043
  const ipv6result = normalizeIPv6(parsed.host);
3750
- parsed.host = ipv6result.host.toLowerCase();
3751
- isIP = ipv6result.isIPV6;
4044
+ isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
4045
+ malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
4046
+ parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
4047
+ if (malformedIPLiteral) {
4048
+ parsed.error = parsed.error || "URI host is malformed.";
4049
+ malformedAuthorityOrPort = true;
4050
+ }
3752
4051
  } else {
3753
4052
  isIP = true;
3754
4053
  }
@@ -3766,42 +4065,36 @@ var require_fast_uri = __commonJS((exports, module) => {
3766
4065
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
3767
4066
  }
3768
4067
  const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
3769
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
3770
- if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3771
- try {
3772
- parsed.host = new URL("http://" + parsed.host).hostname;
3773
- } catch (e) {
3774
- parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
3775
- }
3776
- }
4068
+ if (!malformedIPLiteral) {
4069
+ malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
3777
4070
  }
3778
4071
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
3779
4072
  if (uri.indexOf("%") !== -1) {
3780
- if (parsed.scheme !== undefined) {
3781
- parsed.scheme = unescape(parsed.scheme);
3782
- }
3783
- if (parsed.host !== undefined) {
3784
- parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
4073
+ if (parsed.host !== undefined && !malformedIPLiteral) {
4074
+ const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
4075
+ parsed.host = reescapeHostDelimiters(host, isIP);
3785
4076
  }
3786
4077
  }
3787
4078
  if (parsed.path) {
3788
4079
  parsed.path = normalizePathEncoding(parsed.path);
3789
4080
  }
4081
+ if (parsed.query) {
4082
+ parsed.query = normalizeQueryFragmentEncoding(parsed.query);
4083
+ }
3790
4084
  if (parsed.fragment) {
3791
- try {
3792
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
3793
- } catch {
3794
- parsed.error = parsed.error || "URI malformed";
3795
- }
4085
+ parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
3796
4086
  }
3797
4087
  }
3798
4088
  if (schemeHandler && schemeHandler.parse) {
3799
4089
  schemeHandler.parse(parsed, options);
4090
+ if (schemeHandler === SCHEMES.urn && parsed.nid === undefined) {
4091
+ malformedSchemeSpecific = true;
4092
+ }
3800
4093
  }
3801
4094
  } else {
3802
4095
  parsed.error = parsed.error || "URI can not be parsed.";
3803
4096
  }
3804
- return { parsed, malformedAuthorityOrPort };
4097
+ return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
3805
4098
  }
3806
4099
  function parse5(uri, opts) {
3807
4100
  return parseWithStatus(uri, opts).parsed;
@@ -3810,20 +4103,28 @@ var require_fast_uri = __commonJS((exports, module) => {
3810
4103
  return normalizeStringWithStatus(uri, opts).normalized;
3811
4104
  }
3812
4105
  function normalizeStringWithStatus(uri, opts) {
3813
- const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
4106
+ const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
3814
4107
  return {
3815
- normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
3816
- malformedAuthorityOrPort
4108
+ normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
4109
+ malformedAuthorityOrPort,
4110
+ malformedPercentEncoding,
4111
+ malformedSchemeSpecific,
4112
+ malformedHost,
4113
+ malformedScheme
3817
4114
  };
3818
4115
  }
3819
4116
  function normalizeComparableURI(uri, opts) {
3820
- if (typeof uri === "string") {
3821
- const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
3822
- return malformedAuthorityOrPort ? undefined : normalized;
4117
+ if (typeof uri !== "string" && typeof uri !== "object") {
4118
+ return;
3823
4119
  }
3824
- if (typeof uri === "object") {
3825
- return serialize(uri, opts);
4120
+ let value;
4121
+ try {
4122
+ value = typeof uri === "string" ? uri : serialize(uri, opts);
4123
+ } catch {
4124
+ return;
3826
4125
  }
4126
+ const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
4127
+ return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? undefined : normalized;
3827
4128
  }
3828
4129
  var fastUri = {
3829
4130
  SCHEMES,
@@ -86218,7 +86519,7 @@ class TextApiResponse {
86218
86519
  var package_default = {
86219
86520
  name: "@uipath/integrationservice-sdk",
86220
86521
  license: "MIT",
86221
- version: "1.201.0-preview.128",
86522
+ version: "1.201.0-preview.131",
86222
86523
  repository: {
86223
86524
  type: "git",
86224
86525
  url: "https://github.com/UiPath/cli.git",
@@ -93563,4 +93864,4 @@ function loadCaseSchemaAsync() {
93563
93864
 
93564
93865
  export { extractStartEventId, uploadAndDebugSolution, VALID_PROJECT_NAME_REGEX, VALID_PACKAGE_NAME_REGEX, formatTraceLine, parseJsonInputOrFile, ConnectionOperationsApi, ConnectorsApi, ElementsApi, createApiClient, getEventOperationObjects, buildActivityEssentialConfiguration, createConfiguredActivityClient, assertActivityMetadataResolved, extractMultipartParameters, buildInputMetadata, validateIntSvcNode, extractTriggerEventParameters, extractTriggerFilterFields, extractActivityFilterFields, fetchConnectorTriggerMetadata, fetchConnectionInfo, fetchConnectorMetadata, findSolutionFromCwd, registerSharedIncidentCommands, registerSharedInstanceCommands, registerSharedProcessCommands, registerSharedProcessesCommands, loadCaseSchemaAsync };
93565
93866
 
93566
- //# debugId=80C428FA83B0E7D964756E2164756E21
93867
+ //# debugId=7FFCA35F86ED15E564756E2164756E21
package/dist/tool.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./packager-tool-wdw1ngb6.js";
5
- import"./packager-tool-0a2qqe1h.js";
4
+ } from "./packager-tool-7c9y9jce.js";
5
+ import"./packager-tool-yt11dhyp.js";
6
6
  import"./packager-tool-we1phz71.js";
7
7
  import"./packager-tool-w3h8xrnv.js";
8
8
  import"./packager-tool-zqa5k9f7.js";
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
- "name": "@uipath/case-tool",
3
- "license": "MIT",
4
- "version": "1.201.0-preview.128",
5
- "description": "Manage Case Management instances, processes, and incidents.",
6
- "private": false,
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/UiPath/cli.git",
10
- "directory": "packages/case-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
- },
24
- "bin": {
25
- "case-tool": "./dist/index.js"
26
- },
27
- "files": [
28
- "dist"
29
- ],
30
- "gitHead": "a72e454cd7025bbbdac37d6105afef8282138c88"
2
+ "name": "@uipath/case-tool",
3
+ "license": "MIT",
4
+ "version": "1.201.0-preview.131",
5
+ "description": "Manage Case Management instances, processes, and incidents.",
6
+ "private": false,
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/UiPath/cli.git",
10
+ "directory": "packages/case-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
+ },
24
+ "bin": {
25
+ "case-tool": "./dist/index.js"
26
+ },
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "gitHead": "5b0a03e4ee4be352459ac9fd82341ff77bc82ee6"
31
31
  }