@uipath/docsai-tool 1.199.0-preview.108 → 1.199.0-preview.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/tool.js +26 -7
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -24741,7 +24741,12 @@ var require_fast_uri = __commonJS((exports, module) => {
24741
24741
  }
24742
24742
  function resolve2(baseURI, relativeURI, options) {
24743
24743
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
24744
- const resolved = resolveComponent(parse5(baseURI, schemelessOptions), parse5(relativeURI, schemelessOptions), schemelessOptions, true);
24744
+ const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
24745
+ const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
24746
+ if (baseMalformed || relativeMalformed) {
24747
+ throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
24748
+ }
24749
+ const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
24745
24750
  schemelessOptions.skipEscape = true;
24746
24751
  return serialize(resolved, schemelessOptions);
24747
24752
  }
@@ -24868,6 +24873,7 @@ var require_fast_uri = __commonJS((exports, module) => {
24868
24873
  }
24869
24874
  var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
24870
24875
  var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
24876
+ var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
24871
24877
  function getParseError(parsed, matches) {
24872
24878
  if (matches[2] !== undefined && parsed.path && parsed.path[0] !== "/") {
24873
24879
  return 'URI path must start with "/" when authority is present.';
@@ -24902,6 +24908,20 @@ var require_fast_uri = __commonJS((exports, module) => {
24902
24908
  parsed.error = "URI authority must not contain a literal backslash.";
24903
24909
  malformedAuthorityOrPort = true;
24904
24910
  }
24911
+ const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
24912
+ if (introducerMatch !== null) {
24913
+ const region = introducerMatch[1];
24914
+ const normalizedRegion = region.replace(/[\t\n\r]/g, "");
24915
+ if (normalizedRegion.length >= 2) {
24916
+ if (normalizedRegion.slice(0, 2) !== "//") {
24917
+ parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
24918
+ malformedAuthorityOrPort = true;
24919
+ } else if (region.length !== normalizedRegion.length) {
24920
+ parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
24921
+ malformedAuthorityOrPort = true;
24922
+ }
24923
+ }
24924
+ }
24905
24925
  const matches = uri.match(URI_PARSE);
24906
24926
  if (matches) {
24907
24927
  parsed.scheme = matches[1];
@@ -27808,7 +27828,7 @@ var require_dist2 = __commonJS((exports, module) => {
27808
27828
  var package_default = {
27809
27829
  name: "@uipath/docsai-tool",
27810
27830
  license: "MIT",
27811
- version: "1.199.0-preview.108",
27831
+ version: "1.199.0-preview.111",
27812
27832
  description: "Search UiPath documentation with AI-powered answers.",
27813
27833
  private: false,
27814
27834
  repository: {
@@ -30869,7 +30889,7 @@ function requireOmap() {
30869
30889
  function resolveYamlOmap(data) {
30870
30890
  if (data === null)
30871
30891
  return true;
30872
- const objectKeys = [];
30892
+ const objectKeys = {};
30873
30893
  const object = data;
30874
30894
  for (let index = 0, length = object.length;index < length; index += 1) {
30875
30895
  const pair = object[index];
@@ -30887,10 +30907,9 @@ function requireOmap() {
30887
30907
  }
30888
30908
  if (!pairHasKey)
30889
30909
  return false;
30890
- if (objectKeys.indexOf(pairKey) === -1)
30891
- objectKeys.push(pairKey);
30892
- else
30910
+ if (_hasOwnProperty.call(objectKeys, pairKey))
30893
30911
  return false;
30912
+ Object.defineProperty(objectKeys, pairKey, { value: true });
30894
30913
  }
30895
30914
  return true;
30896
30915
  }
@@ -45501,4 +45520,4 @@ export {
45501
45520
  metadata
45502
45521
  };
45503
45522
 
45504
- //# debugId=4A987EE2A256E56664756E2164756E21
45523
+ //# debugId=BD649597F6AD474E64756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/docsai-tool",
3
3
  "license": "MIT",
4
- "version": "1.199.0-preview.108",
4
+ "version": "1.199.0-preview.111",
5
5
  "description": "Search UiPath documentation with AI-powered answers.",
6
6
  "private": false,
7
7
  "repository": {
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "171f68daab68809916e8df10ea198c259f688ede"
29
+ "gitHead": "1a86625f94b9abd4d02444b8c5deec7e9d08d210"
30
30
  }