@uipath/api-workflow-tool 1.205.0-preview.268 → 1.205.0-preview.274

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.
@@ -20,7 +20,7 @@ those licences require.
20
20
  - define-lazy-prop@3.0.0 — MIT
21
21
  - fast-deep-equal@3.1.3 — MIT
22
22
  - fast-redact@3.5.0 — MIT
23
- - fast-uri@3.1.8 — BSD-3-Clause
23
+ - fast-uri@3.1.9 — BSD-3-Clause
24
24
  - fflate@0.8.3 — MIT
25
25
  - ignore@5.3.2 — MIT
26
26
  - is-docker@3.0.0 — MIT
@@ -509,7 +509,7 @@ SOFTWARE.
509
509
 
510
510
  ---
511
511
 
512
- ## fast-uri@3.1.8
512
+ ## fast-uri@3.1.9
513
513
 
514
514
  SPDX: BSD-3-Clause
515
515
 
@@ -27,7 +27,7 @@ import {
27
27
  resolveProducedNupkgsAsync,
28
28
  setGlobalLogHandler,
29
29
  signNupkgsAsync
30
- } from "./packager-tool-ya8d2xhg.js";
30
+ } from "./packager-tool-vqnrnf4f.js";
31
31
  import"./packager-tool-f7zta1kg.js";
32
32
  import {
33
33
  BrowserContextStorage,
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  metadata,
4
4
  registerCommands
5
- } from "./packager-tool-19qckxzb.js";
5
+ } from "./packager-tool-d0mjhs5p.js";
6
6
  import"./packager-tool-bgy9gdsp.js";
7
7
  import"./packager-tool-f7zta1kg.js";
8
8
  import"./packager-tool-kh3aq9n7.js";
@@ -25,7 +25,7 @@ import {
25
25
  resolveProducedNupkgsAsync,
26
26
  setGlobalLogHandler,
27
27
  signNupkgsAsync
28
- } from "./packager-tool-ya8d2xhg.js";
28
+ } from "./packager-tool-vqnrnf4f.js";
29
29
  import {
30
30
  ToolResult,
31
31
  translate
@@ -3547,6 +3547,37 @@ var require_utils = __commonJS(function(exports, module) {
3547
3547
  }
3548
3548
  return output.join("");
3549
3549
  }
3550
+ function removeDotSegmentsRelative(path) {
3551
+ if (path === "" || path[0] === "/") {
3552
+ return removeDotSegments(path);
3553
+ }
3554
+ const segments = path.split("/");
3555
+ const last = segments.length - 1;
3556
+ const output = [];
3557
+ let trailingDirectory = false;
3558
+ for (let i = 0;i <= last; i++) {
3559
+ const segment = segments[i];
3560
+ if (segment === "." || segment === "..") {
3561
+ if (segment === "..") {
3562
+ if (output.length !== 0 && output[output.length - 1] !== "..") {
3563
+ output.pop();
3564
+ } else {
3565
+ output.push("..");
3566
+ }
3567
+ }
3568
+ trailingDirectory = i === last;
3569
+ } else {
3570
+ output.push(segment);
3571
+ }
3572
+ }
3573
+ if (trailingDirectory && output[output.length - 1] !== "..") {
3574
+ output.push("");
3575
+ }
3576
+ if (output.length === 0 || output[0] === "" || output[0].includes(":")) {
3577
+ output.unshift(".");
3578
+ }
3579
+ return output.join("/");
3580
+ }
3550
3581
  var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
3551
3582
  var HOST_DELIM_RE = /[@/?#:]/g;
3552
3583
  var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
@@ -3807,6 +3838,7 @@ var require_utils = __commonJS(function(exports, module) {
3807
3838
  encodeFragment,
3808
3839
  escapePreservingEscapes,
3809
3840
  removeDotSegments,
3841
+ removeDotSegmentsRelative,
3810
3842
  isIPv4,
3811
3843
  isUUID,
3812
3844
  normalizeIPv6,
@@ -3991,16 +4023,18 @@ var require_schemes = __commonJS(function(exports, module) {
3991
4023
 
3992
4024
  // ../../node_modules/fast-uri/index.js
3993
4025
  var require_fast_uri = __commonJS(function(exports, module) {
3994
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
4026
+ var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3995
4027
  var { SCHEMES, getSchemeHandler } = require_schemes();
3996
4028
  var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
3997
4029
  var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
3998
- function decodeValidScheme(scheme) {
3999
- const decodedScheme = unescape(String(scheme));
4000
- if (!VALID_SCHEME.test(decodedScheme)) {
4030
+ var MALFORMED_HOST_ERROR = "URI host is malformed.";
4031
+ var FORBIDDEN_DOMAIN_HOST_CHARACTER = /[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;
4032
+ function validateScheme(scheme) {
4033
+ const stringScheme = String(scheme);
4034
+ if (!VALID_SCHEME.test(stringScheme)) {
4001
4035
  throw new TypeError(MALFORMED_SCHEME_ERROR);
4002
4036
  }
4003
- return decodedScheme;
4037
+ return stringScheme;
4004
4038
  }
4005
4039
  function normalize(uri, options) {
4006
4040
  if (typeof uri === "string") {
@@ -4035,6 +4069,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
4035
4069
  const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
4036
4070
  const resolvedHost = resolved.host;
4037
4071
  const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
4072
+ if (hasForbiddenDomainHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP)) {
4073
+ throw new Error(MALFORMED_HOST_ERROR);
4074
+ }
4038
4075
  canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
4039
4076
  const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
4040
4077
  if (resolved.error && !encodedASCIIHost) {
@@ -4076,14 +4113,15 @@ var require_fast_uri = __commonJS(function(exports, module) {
4076
4113
  if (relative.path[0] === "/") {
4077
4114
  target.path = removeDotSegments(relative.path);
4078
4115
  } else {
4079
- if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
4116
+ const baseHasAuthority = base.userinfo !== undefined || base.host !== undefined || base.port !== undefined;
4117
+ if (baseHasAuthority && !base.path) {
4080
4118
  target.path = "/" + relative.path;
4081
4119
  } else if (!base.path) {
4082
4120
  target.path = relative.path;
4083
4121
  } else {
4084
4122
  target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
4085
4123
  }
4086
- target.path = removeDotSegments(target.path);
4124
+ target.path = base.scheme === undefined && !baseHasAuthority && target.path[0] !== "/" ? removeDotSegmentsRelative(target.path) : removeDotSegments(target.path);
4087
4125
  }
4088
4126
  target.query = relative.query;
4089
4127
  }
@@ -4121,13 +4159,14 @@ var require_fast_uri = __commonJS(function(exports, module) {
4121
4159
  const options = Object.assign({}, opts);
4122
4160
  const uriTokens = [];
4123
4161
  if (component.scheme) {
4124
- component.scheme = decodeValidScheme(component.scheme);
4162
+ component.scheme = validateScheme(component.scheme);
4125
4163
  }
4126
4164
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
4127
4165
  if (schemeHandler && schemeHandler.serialize)
4128
4166
  schemeHandler.serialize(component, options);
4129
4167
  const hasAuthority = component.userinfo !== undefined || component.host !== undefined || component.port !== undefined;
4130
- const pathNoScheme = !options.skipEscape && component.scheme === undefined && !hasAuthority;
4168
+ const schemelessReference = (component.scheme === undefined || options.reference === "suffix") && !hasAuthority;
4169
+ const pathNoScheme = !options.skipEscape && schemelessReference;
4131
4170
  if (component.path !== undefined) {
4132
4171
  if (!options.skipEscape) {
4133
4172
  component.path = serializePathEncoding(component.path, pathNoScheme);
@@ -4136,7 +4175,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
4136
4175
  }
4137
4176
  }
4138
4177
  if (options.reference !== "suffix" && component.scheme) {
4139
- component.scheme = decodeValidScheme(component.scheme);
4178
+ component.scheme = validateScheme(component.scheme);
4140
4179
  uriTokens.push(component.scheme, ":");
4141
4180
  }
4142
4181
  const authority = recomposeAuthority(component);
@@ -4152,9 +4191,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
4152
4191
  if (component.path !== undefined) {
4153
4192
  let s = component.path;
4154
4193
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
4155
- s = removeDotSegments(s);
4194
+ s = schemelessReference && s[0] !== "/" ? removeDotSegmentsRelative(s) : removeDotSegments(s);
4156
4195
  }
4157
- if (pathNoScheme) {
4196
+ if (schemelessReference) {
4158
4197
  s = serializePathEncoding(s, true);
4159
4198
  }
4160
4199
  if (authority === undefined && s[0] === "/" && s[1] === "/") {
@@ -4202,16 +4241,32 @@ var require_fast_uri = __commonJS(function(exports, module) {
4202
4241
  return hasMalformedPercentEncoding(matches[3]) || host !== undefined && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
4203
4242
  }
4204
4243
  function canonicalizeHost(parsed, options, schemeHandler, isIP) {
4244
+ if (hasForbiddenDomainHost(parsed, options, schemeHandler, isIP)) {
4245
+ parsed.error = parsed.error || MALFORMED_HOST_ERROR;
4246
+ return true;
4247
+ }
4205
4248
  if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
4249
+ let url;
4206
4250
  try {
4207
- parsed.host = new URL("http://" + parsed.host).hostname;
4251
+ url = new URL("http://" + parsed.host);
4208
4252
  } catch (e) {
4209
4253
  parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
4210
4254
  return true;
4211
4255
  }
4256
+ if (!isHostOnlyURL(url)) {
4257
+ parsed.error = parsed.error || MALFORMED_HOST_ERROR;
4258
+ return true;
4259
+ }
4260
+ parsed.host = url.hostname;
4212
4261
  }
4213
4262
  return false;
4214
4263
  }
4264
+ function hasForbiddenDomainHost(parsed, options, schemeHandler, isIP) {
4265
+ return Boolean(parsed.host && isIP === false && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && FORBIDDEN_DOMAIN_HOST_CHARACTER.test(parsed.host));
4266
+ }
4267
+ function isHostOnlyURL(url) {
4268
+ return url.username === "" && url.password === "" && url.port === "" && url.pathname === "/" && url.search === "" && url.hash === "" && url.hostname !== "";
4269
+ }
4215
4270
  function parseWithStatus(uri, opts) {
4216
4271
  const options = Object.assign({}, opts);
4217
4272
  const parsed = {
@@ -4266,9 +4321,8 @@ var require_fast_uri = __commonJS(function(exports, module) {
4266
4321
  parsed.query = matches[7];
4267
4322
  parsed.fragment = matches[8];
4268
4323
  if (parsed.scheme !== undefined) {
4269
- const decodedScheme = unescape(parsed.scheme);
4270
- if (VALID_SCHEME.test(decodedScheme)) {
4271
- parsed.scheme = decodedScheme.toLowerCase();
4324
+ if (VALID_SCHEME.test(parsed.scheme)) {
4325
+ parsed.scheme = parsed.scheme.toLowerCase();
4272
4326
  } else {
4273
4327
  parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
4274
4328
  malformedScheme = true;
@@ -4296,7 +4350,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
4296
4350
  malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
4297
4351
  parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
4298
4352
  if (malformedIPLiteral) {
4299
- parsed.error = parsed.error || "URI host is malformed.";
4353
+ parsed.error = parsed.error || MALFORMED_HOST_ERROR;
4300
4354
  malformedAuthorityOrPort = true;
4301
4355
  }
4302
4356
  } else {
@@ -4324,7 +4378,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
4324
4378
  if (!isIP) {
4325
4379
  host = normalizePercentEncoding(host.toLowerCase());
4326
4380
  }
4327
- parsed.host = reescapeHostDelimiters(host, isIP);
4381
+ parsed.host = isIP || options.scheme !== "null" ? reescapeHostDelimiters(host, isIP) : host;
4328
4382
  }
4329
4383
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
4330
4384
  if (parsed.path) {
@@ -7422,7 +7476,7 @@ var package_default = {
7422
7476
  name: "@uipath/api-workflow-tool",
7423
7477
  author: "UiPath",
7424
7478
  license: "SEE LICENSE IN LICENSE.txt",
7425
- version: "1.205.0-preview.268",
7479
+ version: "1.205.0-preview.274",
7426
7480
  description: "Run UiPath API Workflows locally.",
7427
7481
  private: false,
7428
7482
  repository: {
@@ -8006,7 +8060,7 @@ var package_default2 = {
8006
8060
  name: "@uipath/integrationservice-sdk",
8007
8061
  author: "UiPath",
8008
8062
  license: "SEE LICENSE IN LICENSE.txt",
8009
- version: "1.205.0-preview.268",
8063
+ version: "1.205.0-preview.274",
8010
8064
  repository: {
8011
8065
  type: "git",
8012
8066
  url: "https://github.com/UiPath/cli.git",
@@ -15582,7 +15636,7 @@ Subcommands:
15582
15636
  // src/commands/packager-shared.ts
15583
15637
  async function createPackager() {
15584
15638
  registerPackagerFactories();
15585
- const { createNodeProjectPackager } = await import("./node-4d4xnbz7.js");
15639
+ const { createNodeProjectPackager } = await import("./node-kdvsk1a5.js");
15586
15640
  return await createNodeProjectPackager({
15587
15641
  logHandler: logger.handleLog
15588
15642
  });
@@ -15605,7 +15659,7 @@ async function setupProject(packager, projectPath) {
15605
15659
  return packager.setupAsync(absPath);
15606
15660
  }
15607
15661
  async function buildBaseOptions() {
15608
- const { ProjectPackOptions } = await import("./index-90kdabzw.js");
15662
+ const { ProjectPackOptions } = await import("./index-rfydbjk5.js");
15609
15663
  const sdkLogLevelMap = {
15610
15664
  [0 /* DEBUG */]: "Debug" /* Debug */,
15611
15665
  [1 /* INFO */]: "Information" /* Info */,
@@ -15902,7 +15956,7 @@ var package_default3 = {
15902
15956
  name: "@uipath/solution-sdk",
15903
15957
  author: "UiPath",
15904
15958
  license: "SEE LICENSE IN LICENSE.txt",
15905
- version: "1.205.0-preview.268",
15959
+ version: "1.205.0-preview.274",
15906
15960
  repository: {
15907
15961
  type: "git",
15908
15962
  url: "https://github.com/UiPath/cli.git",
@@ -18381,4 +18435,4 @@ var registerCommands = async (program) => {
18381
18435
 
18382
18436
  export { metadata, registerCommands };
18383
18437
 
18384
- //# debugId=A8C204D512D1AB6764756E2164756E21
18438
+ //# debugId=4CFA6702DAC1165F64756E2164756E21
@@ -3162,7 +3162,7 @@ var package_default = {
3162
3162
  name: "@uipath/project-packager",
3163
3163
  author: "UiPath",
3164
3164
  license: "SEE LICENSE IN LICENSE.txt",
3165
- version: "1.205.0-preview.268",
3165
+ version: "1.205.0-preview.274",
3166
3166
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
3167
3167
  type: "module",
3168
3168
  main: "./dist/index.js",
@@ -4636,4 +4636,4 @@ class ProjectPublisher {
4636
4636
 
4637
4637
  export { setGlobalLogHandler, ToolLogger, RulesConfigFileType, PackagerParameters, ProjectRestoreOptions, ProjectValidateOptions, ProjectBuildOptions, ProjectCleanupOptions, ProjectPackOptions, TelemetryNames, resolvePolicyAsync, GovernancePolicyError, GovernancePolicyService, resolveProducedNupkgsAsync, PACKAGE_ID_TOO_LONG, isPackageIdTooLongError, PackService, signNupkgsAsync, PackagerParametersValidator, ProjectBuildOptionsValidator, ProjectLoader, ProjectToolExecutor, ProjectValidateOptionsValidator, ToolsFactory, ProjectPackager, PublishDestinationKind, ProjectPublishOptions, ProjectPublisher };
4638
4638
 
4639
- //# debugId=0D632B0C4335CF5C64756E2164756E21
4639
+ //# debugId=61D1C8C05E39F12E64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./packager-tool-19qckxzb.js";
4
+ } from "./packager-tool-d0mjhs5p.js";
5
5
  import"./packager-tool-bgy9gdsp.js";
6
6
  import"./packager-tool-f7zta1kg.js";
7
7
  import"./packager-tool-kh3aq9n7.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uipath/api-workflow-tool",
3
3
  "author": "UiPath",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "1.205.0-preview.268",
5
+ "version": "1.205.0-preview.274",
6
6
  "description": "Run UiPath API Workflows locally.",
7
7
  "private": false,
8
8
  "repository": {
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "bcffe5a27a64da9a6007b1e039ea8f29636cdefd"
29
+ "gitHead": "3f90028321528882f2f3bfeed0eed6ca004bacfd"
30
30
  }