@grexx/grexxlinter 0.2.1074 → 0.2.1111

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.
package/cli.js CHANGED
@@ -10434,16 +10434,15 @@ var require_data = __commonJS({
10434
10434
  }
10435
10435
  });
10436
10436
 
10437
- // ../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/lib/utils.js
10437
+ // ../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/utils.js
10438
10438
  var require_utils = __commonJS({
10439
- "../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/lib/utils.js"(exports, module) {
10439
+ "../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/utils.js"(exports, module) {
10440
10440
  "use strict";
10441
10441
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
10442
10442
  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);
10443
10443
  var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
10444
10444
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
10445
10445
  var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
10446
- var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);
10447
10446
  function stringArrayToHexStripped(input) {
10448
10447
  let acc = "";
10449
10448
  let code = 0;
@@ -10586,7 +10585,7 @@ var require_utils = __commonJS({
10586
10585
  continue;
10587
10586
  }
10588
10587
  } else if (input[0] === "/") {
10589
- if (input[1] === ".") {
10588
+ if (input[1] === "." || input[1] === "/") {
10590
10589
  output.push("/");
10591
10590
  break;
10592
10591
  }
@@ -10668,30 +10667,10 @@ var require_utils = __commonJS({
10668
10667
  }
10669
10668
  return output;
10670
10669
  }
10671
- var BYTE_HEX = new Array(256);
10672
- {
10673
- const HEX_DIGITS = "0123456789ABCDEF";
10674
- for (let i = 0; i < 256; i++) {
10675
- BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
10676
- }
10677
- }
10678
- function isEscapeSafe(cp) {
10679
- 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;
10680
- }
10681
- function percentEncodeNonAscii(cp) {
10682
- if (cp < 2048) {
10683
- return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
10684
- }
10685
- if (cp < 65536) {
10686
- return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
10687
- }
10688
- return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
10689
- }
10690
10670
  function normalizePathEncoding(input) {
10691
10671
  let output = "";
10692
10672
  for (let i = 0; i < input.length; i++) {
10693
- const ch = input[i];
10694
- if (ch === "%" && i + 2 < input.length) {
10673
+ if (input[i] === "%" && i + 2 < input.length) {
10695
10674
  const hex = input.slice(i + 1, i + 3);
10696
10675
  if (isHexPair(hex)) {
10697
10676
  const normalizedHex = hex.toUpperCase();
@@ -10705,66 +10684,10 @@ var require_utils = __commonJS({
10705
10684
  continue;
10706
10685
  }
10707
10686
  }
10708
- if (isPathCharacter(ch)) {
10709
- output += ch;
10687
+ if (isPathCharacter(input[i])) {
10688
+ output += input[i];
10710
10689
  } else {
10711
- const code = input.charCodeAt(i);
10712
- if (code < 128) {
10713
- output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
10714
- } else if (code < 55296 || code > 57343) {
10715
- output += percentEncodeNonAscii(code);
10716
- } else if (code <= 56319 && i + 1 < input.length) {
10717
- const low = input.charCodeAt(i + 1);
10718
- if (low >= 56320 && low <= 57343) {
10719
- output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
10720
- i++;
10721
- } else {
10722
- output += percentEncodeNonAscii(65533);
10723
- }
10724
- } else {
10725
- output += percentEncodeNonAscii(65533);
10726
- }
10727
- }
10728
- }
10729
- return output;
10730
- }
10731
- function normalizeQueryFragmentEncoding(input) {
10732
- let output = "";
10733
- for (let i = 0; i < input.length; i++) {
10734
- const ch = input[i];
10735
- if (ch === "%" && i + 2 < input.length) {
10736
- const hex = input.slice(i + 1, i + 3);
10737
- if (isHexPair(hex)) {
10738
- const normalizedHex = hex.toUpperCase();
10739
- const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
10740
- if (isUnreserved(decoded)) {
10741
- output += decoded;
10742
- } else {
10743
- output += "%" + normalizedHex;
10744
- }
10745
- i += 2;
10746
- continue;
10747
- }
10748
- }
10749
- if (isQueryFragmentCharacter(ch)) {
10750
- output += ch;
10751
- } else {
10752
- const code = input.charCodeAt(i);
10753
- if (code < 128) {
10754
- output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
10755
- } else if (code < 55296 || code > 57343) {
10756
- output += percentEncodeNonAscii(code);
10757
- } else if (code <= 56319 && i + 1 < input.length) {
10758
- const low = input.charCodeAt(i + 1);
10759
- if (low >= 56320 && low <= 57343) {
10760
- output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
10761
- i++;
10762
- } else {
10763
- output += percentEncodeNonAscii(65533);
10764
- }
10765
- } else {
10766
- output += percentEncodeNonAscii(65533);
10767
- }
10690
+ output += escape(input[i]);
10768
10691
  }
10769
10692
  }
10770
10693
  return output;
@@ -10772,8 +10695,7 @@ var require_utils = __commonJS({
10772
10695
  function escapePreservingEscapes(input) {
10773
10696
  let output = "";
10774
10697
  for (let i = 0; i < input.length; i++) {
10775
- const ch = input[i];
10776
- if (ch === "%" && i + 2 < input.length) {
10698
+ if (input[i] === "%" && i + 2 < input.length) {
10777
10699
  const hex = input.slice(i + 1, i + 3);
10778
10700
  if (isHexPair(hex)) {
10779
10701
  output += "%" + hex.toUpperCase();
@@ -10781,22 +10703,7 @@ var require_utils = __commonJS({
10781
10703
  continue;
10782
10704
  }
10783
10705
  }
10784
- const code = input.charCodeAt(i);
10785
- if (code < 128) {
10786
- output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
10787
- } else if (code < 55296 || code > 57343) {
10788
- output += percentEncodeNonAscii(code);
10789
- } else if (code <= 56319 && i + 1 < input.length) {
10790
- const low = input.charCodeAt(i + 1);
10791
- if (low >= 56320 && low <= 57343) {
10792
- output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
10793
- i++;
10794
- } else {
10795
- output += percentEncodeNonAscii(65533);
10796
- }
10797
- } else {
10798
- output += percentEncodeNonAscii(65533);
10799
- }
10706
+ output += escape(input[i]);
10800
10707
  }
10801
10708
  return output;
10802
10709
  }
@@ -10830,7 +10737,6 @@ var require_utils = __commonJS({
10830
10737
  reescapeHostDelimiters,
10831
10738
  normalizePercentEncoding,
10832
10739
  normalizePathEncoding,
10833
- normalizeQueryFragmentEncoding,
10834
10740
  escapePreservingEscapes,
10835
10741
  removeDotSegments,
10836
10742
  isIPv4,
@@ -10841,9 +10747,9 @@ var require_utils = __commonJS({
10841
10747
  }
10842
10748
  });
10843
10749
 
10844
- // ../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/lib/schemes.js
10750
+ // ../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/schemes.js
10845
10751
  var require_schemes = __commonJS({
10846
- "../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/lib/schemes.js"(exports, module) {
10752
+ "../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/schemes.js"(exports, module) {
10847
10753
  "use strict";
10848
10754
  var { isUUID } = require_utils();
10849
10755
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
@@ -11051,11 +10957,11 @@ var require_schemes = __commonJS({
11051
10957
  }
11052
10958
  });
11053
10959
 
11054
- // ../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/index.js
10960
+ // ../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/index.js
11055
10961
  var require_fast_uri = __commonJS({
11056
- "../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/index.js"(exports, module) {
10962
+ "../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/index.js"(exports, module) {
11057
10963
  "use strict";
11058
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, normalizeQueryFragmentEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
10964
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
11059
10965
  var { SCHEMES, getSchemeHandler } = require_schemes();
11060
10966
  function normalize(uri, options) {
11061
10967
  if (typeof uri === "string") {
@@ -11251,7 +11157,7 @@ var require_fast_uri = __commonJS({
11251
11157
  }
11252
11158
  const matches = uri.match(URI_PARSE);
11253
11159
  if (matches) {
11254
- parsed.scheme = matches[1] === void 0 ? void 0 : matches[1].toLowerCase();
11160
+ parsed.scheme = matches[1];
11255
11161
  parsed.userinfo = matches[3];
11256
11162
  parsed.host = matches[4];
11257
11163
  parsed.port = parseInt(matches[5], 10);
@@ -11310,11 +11216,12 @@ var require_fast_uri = __commonJS({
11310
11216
  if (parsed.path) {
11311
11217
  parsed.path = normalizePathEncoding(parsed.path);
11312
11218
  }
11313
- if (parsed.query) {
11314
- parsed.query = normalizeQueryFragmentEncoding(parsed.query);
11315
- }
11316
11219
  if (parsed.fragment) {
11317
- parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
11220
+ try {
11221
+ parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
11222
+ } catch {
11223
+ parsed.error = parsed.error || "URI malformed";
11224
+ }
11318
11225
  }
11319
11226
  }
11320
11227
  if (schemeHandler && schemeHandler.parse) {
@@ -15206,7 +15113,7 @@ function isLintableYaml(text) {
15206
15113
  // src/cli.ts
15207
15114
  var PARALLEL_THRESHOLD = 200;
15208
15115
  var MAX_WORKERS = 8;
15209
- var VERSION = true ? "0.2.1074" : "0.0.0-dev";
15116
+ var VERSION = true ? "0.2.1111" : "0.0.0-dev";
15210
15117
  function isNewer(latest, current) {
15211
15118
  const a = latest.split(".").map(Number);
15212
15119
  const b = current.split(".").map(Number);
package/lsp.js CHANGED
@@ -19284,16 +19284,15 @@ var require_data = __commonJS({
19284
19284
  }
19285
19285
  });
19286
19286
 
19287
- // ../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/lib/utils.js
19287
+ // ../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/utils.js
19288
19288
  var require_utils = __commonJS({
19289
- "../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/lib/utils.js"(exports, module) {
19289
+ "../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/utils.js"(exports, module) {
19290
19290
  "use strict";
19291
19291
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
19292
19292
  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);
19293
19293
  var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
19294
19294
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
19295
19295
  var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
19296
- var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);
19297
19296
  function stringArrayToHexStripped(input) {
19298
19297
  let acc = "";
19299
19298
  let code = 0;
@@ -19436,7 +19435,7 @@ var require_utils = __commonJS({
19436
19435
  continue;
19437
19436
  }
19438
19437
  } else if (input[0] === "/") {
19439
- if (input[1] === ".") {
19438
+ if (input[1] === "." || input[1] === "/") {
19440
19439
  output.push("/");
19441
19440
  break;
19442
19441
  }
@@ -19518,30 +19517,10 @@ var require_utils = __commonJS({
19518
19517
  }
19519
19518
  return output;
19520
19519
  }
19521
- var BYTE_HEX = new Array(256);
19522
- {
19523
- const HEX_DIGITS = "0123456789ABCDEF";
19524
- for (let i = 0; i < 256; i++) {
19525
- BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
19526
- }
19527
- }
19528
- function isEscapeSafe(cp) {
19529
- 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;
19530
- }
19531
- function percentEncodeNonAscii(cp) {
19532
- if (cp < 2048) {
19533
- return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
19534
- }
19535
- if (cp < 65536) {
19536
- return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
19537
- }
19538
- return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
19539
- }
19540
19520
  function normalizePathEncoding(input) {
19541
19521
  let output = "";
19542
19522
  for (let i = 0; i < input.length; i++) {
19543
- const ch = input[i];
19544
- if (ch === "%" && i + 2 < input.length) {
19523
+ if (input[i] === "%" && i + 2 < input.length) {
19545
19524
  const hex = input.slice(i + 1, i + 3);
19546
19525
  if (isHexPair(hex)) {
19547
19526
  const normalizedHex = hex.toUpperCase();
@@ -19555,66 +19534,10 @@ var require_utils = __commonJS({
19555
19534
  continue;
19556
19535
  }
19557
19536
  }
19558
- if (isPathCharacter(ch)) {
19559
- output += ch;
19537
+ if (isPathCharacter(input[i])) {
19538
+ output += input[i];
19560
19539
  } else {
19561
- const code = input.charCodeAt(i);
19562
- if (code < 128) {
19563
- output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
19564
- } else if (code < 55296 || code > 57343) {
19565
- output += percentEncodeNonAscii(code);
19566
- } else if (code <= 56319 && i + 1 < input.length) {
19567
- const low = input.charCodeAt(i + 1);
19568
- if (low >= 56320 && low <= 57343) {
19569
- output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
19570
- i++;
19571
- } else {
19572
- output += percentEncodeNonAscii(65533);
19573
- }
19574
- } else {
19575
- output += percentEncodeNonAscii(65533);
19576
- }
19577
- }
19578
- }
19579
- return output;
19580
- }
19581
- function normalizeQueryFragmentEncoding(input) {
19582
- let output = "";
19583
- for (let i = 0; i < input.length; i++) {
19584
- const ch = input[i];
19585
- if (ch === "%" && i + 2 < input.length) {
19586
- const hex = input.slice(i + 1, i + 3);
19587
- if (isHexPair(hex)) {
19588
- const normalizedHex = hex.toUpperCase();
19589
- const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
19590
- if (isUnreserved(decoded)) {
19591
- output += decoded;
19592
- } else {
19593
- output += "%" + normalizedHex;
19594
- }
19595
- i += 2;
19596
- continue;
19597
- }
19598
- }
19599
- if (isQueryFragmentCharacter(ch)) {
19600
- output += ch;
19601
- } else {
19602
- const code = input.charCodeAt(i);
19603
- if (code < 128) {
19604
- output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
19605
- } else if (code < 55296 || code > 57343) {
19606
- output += percentEncodeNonAscii(code);
19607
- } else if (code <= 56319 && i + 1 < input.length) {
19608
- const low = input.charCodeAt(i + 1);
19609
- if (low >= 56320 && low <= 57343) {
19610
- output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
19611
- i++;
19612
- } else {
19613
- output += percentEncodeNonAscii(65533);
19614
- }
19615
- } else {
19616
- output += percentEncodeNonAscii(65533);
19617
- }
19540
+ output += escape(input[i]);
19618
19541
  }
19619
19542
  }
19620
19543
  return output;
@@ -19622,8 +19545,7 @@ var require_utils = __commonJS({
19622
19545
  function escapePreservingEscapes(input) {
19623
19546
  let output = "";
19624
19547
  for (let i = 0; i < input.length; i++) {
19625
- const ch = input[i];
19626
- if (ch === "%" && i + 2 < input.length) {
19548
+ if (input[i] === "%" && i + 2 < input.length) {
19627
19549
  const hex = input.slice(i + 1, i + 3);
19628
19550
  if (isHexPair(hex)) {
19629
19551
  output += "%" + hex.toUpperCase();
@@ -19631,22 +19553,7 @@ var require_utils = __commonJS({
19631
19553
  continue;
19632
19554
  }
19633
19555
  }
19634
- const code = input.charCodeAt(i);
19635
- if (code < 128) {
19636
- output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
19637
- } else if (code < 55296 || code > 57343) {
19638
- output += percentEncodeNonAscii(code);
19639
- } else if (code <= 56319 && i + 1 < input.length) {
19640
- const low = input.charCodeAt(i + 1);
19641
- if (low >= 56320 && low <= 57343) {
19642
- output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
19643
- i++;
19644
- } else {
19645
- output += percentEncodeNonAscii(65533);
19646
- }
19647
- } else {
19648
- output += percentEncodeNonAscii(65533);
19649
- }
19556
+ output += escape(input[i]);
19650
19557
  }
19651
19558
  return output;
19652
19559
  }
@@ -19680,7 +19587,6 @@ var require_utils = __commonJS({
19680
19587
  reescapeHostDelimiters,
19681
19588
  normalizePercentEncoding,
19682
19589
  normalizePathEncoding,
19683
- normalizeQueryFragmentEncoding,
19684
19590
  escapePreservingEscapes,
19685
19591
  removeDotSegments,
19686
19592
  isIPv4,
@@ -19691,9 +19597,9 @@ var require_utils = __commonJS({
19691
19597
  }
19692
19598
  });
19693
19599
 
19694
- // ../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/lib/schemes.js
19600
+ // ../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/schemes.js
19695
19601
  var require_schemes = __commonJS({
19696
- "../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/lib/schemes.js"(exports, module) {
19602
+ "../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/schemes.js"(exports, module) {
19697
19603
  "use strict";
19698
19604
  var { isUUID } = require_utils();
19699
19605
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
@@ -19901,11 +19807,11 @@ var require_schemes = __commonJS({
19901
19807
  }
19902
19808
  });
19903
19809
 
19904
- // ../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/index.js
19810
+ // ../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/index.js
19905
19811
  var require_fast_uri = __commonJS({
19906
- "../../node_modules/.pnpm/fast-uri@4.1.2/node_modules/fast-uri/index.js"(exports, module) {
19812
+ "../../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/index.js"(exports, module) {
19907
19813
  "use strict";
19908
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, normalizeQueryFragmentEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
19814
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
19909
19815
  var { SCHEMES, getSchemeHandler } = require_schemes();
19910
19816
  function normalize(uri, options) {
19911
19817
  if (typeof uri === "string") {
@@ -20101,7 +20007,7 @@ var require_fast_uri = __commonJS({
20101
20007
  }
20102
20008
  const matches = uri.match(URI_PARSE);
20103
20009
  if (matches) {
20104
- parsed.scheme = matches[1] === void 0 ? void 0 : matches[1].toLowerCase();
20010
+ parsed.scheme = matches[1];
20105
20011
  parsed.userinfo = matches[3];
20106
20012
  parsed.host = matches[4];
20107
20013
  parsed.port = parseInt(matches[5], 10);
@@ -20160,11 +20066,12 @@ var require_fast_uri = __commonJS({
20160
20066
  if (parsed.path) {
20161
20067
  parsed.path = normalizePathEncoding(parsed.path);
20162
20068
  }
20163
- if (parsed.query) {
20164
- parsed.query = normalizeQueryFragmentEncoding(parsed.query);
20165
- }
20166
20069
  if (parsed.fragment) {
20167
- parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
20070
+ try {
20071
+ parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
20072
+ } catch {
20073
+ parsed.error = parsed.error || "URI malformed";
20074
+ }
20168
20075
  }
20169
20076
  }
20170
20077
  if (schemeHandler && schemeHandler.parse) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grexx/grexxlinter",
3
- "version": "0.2.1074",
3
+ "version": "0.2.1111",
4
4
  "description": "Lint Grexx Studio casetype YAML against the studio JSON Schemas.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -107,16 +107,90 @@
107
107
  "activityAttribute"
108
108
  ]
109
109
  },
110
+ "datasetCondition": {
111
+ "column": [
112
+ "datasetColumn"
113
+ ]
114
+ },
115
+ "forEach": {
116
+ "forDataset": [
117
+ "dataset"
118
+ ],
119
+ "for": [
120
+ "attribute"
121
+ ]
122
+ },
110
123
  "form": {
111
124
  "dataset": [
112
125
  "dataset"
113
126
  ]
114
127
  },
128
+ "formAction": {
129
+ "datafield": [
130
+ "attribute",
131
+ "platformAttribute"
132
+ ],
133
+ "formField": [
134
+ "formfield"
135
+ ],
136
+ "formButton": [
137
+ "formButton"
138
+ ],
139
+ "formGroup": [
140
+ "formGroup"
141
+ ],
142
+ "picklist": [
143
+ "picklist"
144
+ ],
145
+ "relatedPlugin": [
146
+ "plugin"
147
+ ]
148
+ },
149
+ "formfield": {
150
+ "addActivity": [
151
+ "activity"
152
+ ],
153
+ "attribute": [
154
+ "attribute",
155
+ "platformAttribute"
156
+ ],
157
+ "column": [
158
+ "datasetColumn"
159
+ ],
160
+ "dateProfile": [
161
+ "dateProfile"
162
+ ],
163
+ "multitaskPlatformAttribute": [
164
+ "platformAttribute"
165
+ ],
166
+ "picklist": [
167
+ "picklist"
168
+ ]
169
+ },
170
+ "gridColumn": {
171
+ "column": [
172
+ "datasetColumn"
173
+ ]
174
+ },
115
175
  "hasRoleCondition": {
116
176
  "roleName": [
117
177
  "roleName"
118
178
  ]
119
179
  },
180
+ "picklist": {
181
+ "deleteActivity": [
182
+ "activity"
183
+ ],
184
+ "editActivity": [
185
+ "activity"
186
+ ],
187
+ "dataset": [
188
+ "dataset"
189
+ ],
190
+ "template": [
191
+ "template"
192
+ ]
193
+ },
120
194
  "platformAttribute": {
121
195
  "attributeDataretentionProfiles": [
122
196
  "dataRetentionProfile"
@@ -131,6 +205,23 @@
131
205
  "casetype"
132
206
  ]
133
207
  },
208
+ "platformRole": {
209
+ "aiAgents": [
210
+ "agent"
211
+ ],
212
+ "attribute": [
213
+ "attribute"
214
+ ],
215
+ "indirectPlatformRole": [
216
+ "platformRole"
217
+ ],
218
+ "page": [
219
+ "casetype"
220
+ ],
221
+ "securityprofile": [
222
+ "securityProfile"
223
+ ]
224
+ },
134
225
  "plugin": {
135
226
  "pluginLibrary": [
136
227
  "pluginLibrary"
@@ -155,11 +246,47 @@
155
246
  "securityRequirement"
156
247
  ]
157
248
  },
249
+ "simpleCondition": {
250
+ "leftField": [
251
+ "formfield"
252
+ ],
253
+ "leftActivityAttribute": [
254
+ "activityAttribute"
255
+ ],
256
+ "rightField": [
257
+ "attribute",
258
+ "formfield"
259
+ ],
260
+ "rightActivityAttribute": [
261
+ "activityAttribute"
262
+ ]
263
+ },
158
264
  "taskQueue": {
159
265
  "rateLimitPerHourAttribute": [
160
266
  "attribute"
161
267
  ]
162
268
  },
269
+ "trigger": {
270
+ "activityTo": [
271
+ "activity"
272
+ ],
273
+ "activityTag": [
274
+ "tag"
275
+ ],
276
+ "caseTo": [
277
+ "attribute",
278
+ "platformAttribute"
279
+ ],
280
+ "datasetTo": [
281
+ "dataset"
282
+ ],
283
+ "forEachTo": [
284
+ "forEach"
285
+ ],
286
+ "toPage": [
287
+ "casetype"
288
+ ]
289
+ },
163
290
  "view": {
164
291
  "css": [
165
292
  "template"
@@ -185,5 +312,46 @@
185
312
  "topNavigationItems": [
186
313
  "menuItem"
187
314
  ]
315
+ },
316
+ "widget": {
317
+ "activities": [
318
+ "activity"
319
+ ],
320
+ "widgetAgent": [
321
+ "agent"
322
+ ],
323
+ "caseAttribute": [
324
+ "attribute"
325
+ ],
326
+ "dataset": [
327
+ "dataset"
328
+ ],
329
+ "form": [
330
+ "form"
331
+ ],
332
+ "selectionTemplate": [
333
+ "template"
334
+ ],
335
+ "activity": [
336
+ "activity"
337
+ ],
338
+ "masterWidget": [
339
+ "widget"
340
+ ],
341
+ "platformWidget": [
342
+ "widget"
343
+ ],
344
+ "widgetPlugin": [
345
+ "plugin"
346
+ ],
347
+ "template": [
348
+ "template"
349
+ ],
350
+ "templateOnEmpty": [
351
+ "template"
352
+ ],
353
+ "view": [
354
+ "view"
355
+ ]
188
356
  }
189
357
  }