houdini 1.2.10 → 1.2.11

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 (36) hide show
  1. package/build/cmd-cjs/index.js +24 -18
  2. package/build/cmd-esm/index.js +26 -20
  3. package/build/codegen-cjs/index.js +22 -16
  4. package/build/codegen-esm/index.js +24 -18
  5. package/build/lib/index.d.ts +1 -1
  6. package/build/lib/types.d.ts +1 -1
  7. package/build/lib-cjs/index.js +272 -17
  8. package/build/lib-esm/index.js +272 -19
  9. package/build/{lib/router → router}/conventions.d.ts +1 -1
  10. package/build/{lib/router → router}/index.d.ts +1 -0
  11. package/build/{lib/router → router}/manifest.d.ts +1 -1
  12. package/build/{lib/router → router}/types.d.ts +1 -1
  13. package/build/router-cjs/index.js +72353 -0
  14. package/build/router-cjs/package.json +1 -0
  15. package/build/router-esm/index.js +72345 -0
  16. package/build/router-esm/package.json +1 -0
  17. package/build/runtime/router/cookies.d.ts +41 -0
  18. package/build/runtime/router/jwt.d.ts +117 -0
  19. package/build/runtime/router/server.d.ts +25 -0
  20. package/build/runtime-cjs/router/cookies.d.ts +41 -0
  21. package/build/runtime-cjs/router/cookies.js +168 -0
  22. package/build/runtime-cjs/router/jwt.d.ts +117 -0
  23. package/build/runtime-cjs/router/jwt.js +181 -0
  24. package/build/runtime-cjs/router/server.d.ts +25 -0
  25. package/build/runtime-cjs/router/server.js +78 -0
  26. package/build/runtime-esm/router/cookies.d.ts +41 -0
  27. package/build/runtime-esm/router/cookies.js +143 -0
  28. package/build/runtime-esm/router/jwt.d.ts +117 -0
  29. package/build/runtime-esm/router/jwt.js +155 -0
  30. package/build/runtime-esm/router/server.d.ts +25 -0
  31. package/build/runtime-esm/router/server.js +53 -0
  32. package/build/test-cjs/index.js +22 -16
  33. package/build/test-esm/index.js +24 -18
  34. package/build/vite-cjs/index.js +38 -30
  35. package/build/vite-esm/index.js +40 -32
  36. package/package.json +9 -1
@@ -1475,7 +1475,7 @@ var require_parser = __commonJS({
1475
1475
  Object.defineProperty(exports, "__esModule", {
1476
1476
  value: true
1477
1477
  });
1478
- exports.parse = parse5;
1478
+ exports.parse = parse6;
1479
1479
  exports.parseValue = parseValue;
1480
1480
  exports.parseType = parseType;
1481
1481
  exports.Parser = void 0;
@@ -1486,7 +1486,7 @@ var require_parser = __commonJS({
1486
1486
  var _source = require_source();
1487
1487
  var _directiveLocation = require_directiveLocation();
1488
1488
  var _lexer = require_lexer();
1489
- function parse5(source, options) {
1489
+ function parse6(source, options) {
1490
1490
  var parser = new Parser(source, options);
1491
1491
  return parser.parseDocument();
1492
1492
  }
@@ -28529,14 +28529,14 @@ var require_lib3 = __commonJS({
28529
28529
  super.checkParams(node, false, true);
28530
28530
  this.scope.exit();
28531
28531
  }
28532
- forwardNoArrowParamsConversionAt(node, parse6) {
28532
+ forwardNoArrowParamsConversionAt(node, parse7) {
28533
28533
  let result;
28534
28534
  if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
28535
28535
  this.state.noArrowParamsConversionAt.push(this.state.start);
28536
- result = parse6();
28536
+ result = parse7();
28537
28537
  this.state.noArrowParamsConversionAt.pop();
28538
28538
  } else {
28539
- result = parse6();
28539
+ result = parse7();
28540
28540
  }
28541
28541
  return result;
28542
28542
  }
@@ -37591,7 +37591,7 @@ var require_lib3 = __commonJS({
37591
37591
  }
37592
37592
  return pluginMap;
37593
37593
  }
37594
- function parse5(input, options) {
37594
+ function parse6(input, options) {
37595
37595
  var _options;
37596
37596
  if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
37597
37597
  options = Object.assign({}, options);
@@ -37661,7 +37661,7 @@ var require_lib3 = __commonJS({
37661
37661
  }
37662
37662
  return cls;
37663
37663
  }
37664
- exports.parse = parse5;
37664
+ exports.parse = parse6;
37665
37665
  exports.parseExpression = parseExpression;
37666
37666
  exports.tokTypes = tokTypes;
37667
37667
  }
@@ -43607,7 +43607,7 @@ var require_esprima2 = __commonJS({
43607
43607
  var jsx_parser_1 = __webpack_require__(3);
43608
43608
  var parser_1 = __webpack_require__(8);
43609
43609
  var tokenizer_1 = __webpack_require__(15);
43610
- function parse5(code, options, delegate) {
43610
+ function parse6(code, options, delegate) {
43611
43611
  var commentHandler = null;
43612
43612
  var proxyDelegate = function(node, metadata) {
43613
43613
  if (delegate) {
@@ -43652,17 +43652,17 @@ var require_esprima2 = __commonJS({
43652
43652
  }
43653
43653
  return ast;
43654
43654
  }
43655
- exports2.parse = parse5;
43655
+ exports2.parse = parse6;
43656
43656
  function parseModule(code, options, delegate) {
43657
43657
  var parsingOptions = options || {};
43658
43658
  parsingOptions.sourceType = "module";
43659
- return parse5(code, parsingOptions, delegate);
43659
+ return parse6(code, parsingOptions, delegate);
43660
43660
  }
43661
43661
  exports2.parseModule = parseModule;
43662
43662
  function parseScript(code, options, delegate) {
43663
43663
  var parsingOptions = options || {};
43664
43664
  parsingOptions.sourceType = "script";
43665
- return parse5(code, parsingOptions, delegate);
43665
+ return parse6(code, parsingOptions, delegate);
43666
43666
  }
43667
43667
  exports2.parseScript = parseScript;
43668
43668
  function tokenize(code, options, delegate) {
@@ -49726,7 +49726,7 @@ var require_esprima3 = __commonJS({
49726
49726
  Object.defineProperty(exports, "__esModule", { value: true });
49727
49727
  exports.parse = void 0;
49728
49728
  var util_1 = require_util2();
49729
- function parse5(source, options) {
49729
+ function parse6(source, options) {
49730
49730
  var comments = [];
49731
49731
  var ast = require_esprima2().parse(source, {
49732
49732
  loc: true,
@@ -49744,7 +49744,7 @@ var require_esprima3 = __commonJS({
49744
49744
  }
49745
49745
  return ast;
49746
49746
  }
49747
- exports.parse = parse5;
49747
+ exports.parse = parse6;
49748
49748
  }
49749
49749
  });
49750
49750
 
@@ -50866,7 +50866,7 @@ var require_parser2 = __commonJS({
50866
50866
  var lines_1 = require_lines();
50867
50867
  var comments_1 = require_comments();
50868
50868
  var util = tslib_1.__importStar(require_util2());
50869
- function parse5(source, options) {
50869
+ function parse6(source, options) {
50870
50870
  options = (0, options_1.normalize)(options);
50871
50871
  var lines = (0, lines_1.fromString)(source, options);
50872
50872
  var sourceWithoutTabs = lines.toString({
@@ -50938,7 +50938,7 @@ var require_parser2 = __commonJS({
50938
50938
  (0, comments_1.attach)(comments, program.body.length ? file.program : file, lines);
50939
50939
  return new TreeCopier(lines, tokens).copy(file);
50940
50940
  }
50941
- exports.parse = parse5;
50941
+ exports.parse = parse6;
50942
50942
  var TreeCopier = function TreeCopier2(lines, tokens) {
50943
50943
  assert_1.default.ok(this instanceof TreeCopier2);
50944
50944
  this.lines = lines;
@@ -72636,7 +72636,7 @@ async function cleanupFiles(pathFolder, listOfObj) {
72636
72636
  return allFilesNotInList;
72637
72637
  }
72638
72638
 
72639
- // src/lib/router/manifest.ts
72639
+ // src/router/manifest.ts
72640
72640
  var t = __toESM(require_lib6(), 1);
72641
72641
 
72642
72642
  // src/codegen/generators/artifacts/index.ts
@@ -78885,6 +78885,12 @@ function clearMock() {
78885
78885
  testConfig,
78886
78886
  testConfigFile
78887
78887
  });
78888
+ /*!
78889
+ * cookie
78890
+ * Copyright(c) 2012-2014 Roman Shtylman
78891
+ * Copyright(c) 2015 Douglas Christopher Wilson
78892
+ * MIT Licensed
78893
+ */
78888
78894
  /**
78889
78895
  * Based on implementations by Gary Court and Austin Appleby, 2011, MIT. Copied from https://github.com/facebook/relay
78890
78896
  * @preserve-header
@@ -1480,7 +1480,7 @@ var require_parser = __commonJS({
1480
1480
  Object.defineProperty(exports, "__esModule", {
1481
1481
  value: true
1482
1482
  });
1483
- exports.parse = parse5;
1483
+ exports.parse = parse6;
1484
1484
  exports.parseValue = parseValue;
1485
1485
  exports.parseType = parseType;
1486
1486
  exports.Parser = void 0;
@@ -1491,7 +1491,7 @@ var require_parser = __commonJS({
1491
1491
  var _source = require_source();
1492
1492
  var _directiveLocation = require_directiveLocation();
1493
1493
  var _lexer = require_lexer();
1494
- function parse5(source, options) {
1494
+ function parse6(source, options) {
1495
1495
  var parser = new Parser(source, options);
1496
1496
  return parser.parseDocument();
1497
1497
  }
@@ -28534,14 +28534,14 @@ var require_lib3 = __commonJS({
28534
28534
  super.checkParams(node, false, true);
28535
28535
  this.scope.exit();
28536
28536
  }
28537
- forwardNoArrowParamsConversionAt(node, parse6) {
28537
+ forwardNoArrowParamsConversionAt(node, parse7) {
28538
28538
  let result;
28539
28539
  if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
28540
28540
  this.state.noArrowParamsConversionAt.push(this.state.start);
28541
- result = parse6();
28541
+ result = parse7();
28542
28542
  this.state.noArrowParamsConversionAt.pop();
28543
28543
  } else {
28544
- result = parse6();
28544
+ result = parse7();
28545
28545
  }
28546
28546
  return result;
28547
28547
  }
@@ -37596,7 +37596,7 @@ var require_lib3 = __commonJS({
37596
37596
  }
37597
37597
  return pluginMap;
37598
37598
  }
37599
- function parse5(input, options) {
37599
+ function parse6(input, options) {
37600
37600
  var _options;
37601
37601
  if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
37602
37602
  options = Object.assign({}, options);
@@ -37666,7 +37666,7 @@ var require_lib3 = __commonJS({
37666
37666
  }
37667
37667
  return cls;
37668
37668
  }
37669
- exports.parse = parse5;
37669
+ exports.parse = parse6;
37670
37670
  exports.parseExpression = parseExpression;
37671
37671
  exports.tokTypes = tokTypes;
37672
37672
  }
@@ -43612,7 +43612,7 @@ var require_esprima2 = __commonJS({
43612
43612
  var jsx_parser_1 = __webpack_require__(3);
43613
43613
  var parser_1 = __webpack_require__(8);
43614
43614
  var tokenizer_1 = __webpack_require__(15);
43615
- function parse5(code, options, delegate) {
43615
+ function parse6(code, options, delegate) {
43616
43616
  var commentHandler = null;
43617
43617
  var proxyDelegate = function(node, metadata) {
43618
43618
  if (delegate) {
@@ -43657,17 +43657,17 @@ var require_esprima2 = __commonJS({
43657
43657
  }
43658
43658
  return ast;
43659
43659
  }
43660
- exports2.parse = parse5;
43660
+ exports2.parse = parse6;
43661
43661
  function parseModule(code, options, delegate) {
43662
43662
  var parsingOptions = options || {};
43663
43663
  parsingOptions.sourceType = "module";
43664
- return parse5(code, parsingOptions, delegate);
43664
+ return parse6(code, parsingOptions, delegate);
43665
43665
  }
43666
43666
  exports2.parseModule = parseModule;
43667
43667
  function parseScript(code, options, delegate) {
43668
43668
  var parsingOptions = options || {};
43669
43669
  parsingOptions.sourceType = "script";
43670
- return parse5(code, parsingOptions, delegate);
43670
+ return parse6(code, parsingOptions, delegate);
43671
43671
  }
43672
43672
  exports2.parseScript = parseScript;
43673
43673
  function tokenize(code, options, delegate) {
@@ -49731,7 +49731,7 @@ var require_esprima3 = __commonJS({
49731
49731
  Object.defineProperty(exports, "__esModule", { value: true });
49732
49732
  exports.parse = void 0;
49733
49733
  var util_1 = require_util2();
49734
- function parse5(source, options) {
49734
+ function parse6(source, options) {
49735
49735
  var comments = [];
49736
49736
  var ast = require_esprima2().parse(source, {
49737
49737
  loc: true,
@@ -49749,7 +49749,7 @@ var require_esprima3 = __commonJS({
49749
49749
  }
49750
49750
  return ast;
49751
49751
  }
49752
- exports.parse = parse5;
49752
+ exports.parse = parse6;
49753
49753
  }
49754
49754
  });
49755
49755
 
@@ -50871,7 +50871,7 @@ var require_parser2 = __commonJS({
50871
50871
  var lines_1 = require_lines();
50872
50872
  var comments_1 = require_comments();
50873
50873
  var util = tslib_1.__importStar(require_util2());
50874
- function parse5(source, options) {
50874
+ function parse6(source, options) {
50875
50875
  options = (0, options_1.normalize)(options);
50876
50876
  var lines = (0, lines_1.fromString)(source, options);
50877
50877
  var sourceWithoutTabs = lines.toString({
@@ -50943,7 +50943,7 @@ var require_parser2 = __commonJS({
50943
50943
  (0, comments_1.attach)(comments, program.body.length ? file.program : file, lines);
50944
50944
  return new TreeCopier(lines, tokens).copy(file);
50945
50945
  }
50946
- exports.parse = parse5;
50946
+ exports.parse = parse6;
50947
50947
  var TreeCopier = function TreeCopier2(lines, tokens) {
50948
50948
  assert_1.default.ok(this instanceof TreeCopier2);
50949
50949
  this.lines = lines;
@@ -72389,7 +72389,7 @@ var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
72389
72389
 
72390
72390
  // src/lib/graphql.ts
72391
72391
  var graphql2 = __toESM(require_graphql2(), 1);
72392
- import crypto from "node:crypto";
72392
+ import crypto2 from "node:crypto";
72393
72393
  function getRootType(type) {
72394
72394
  if (graphql2.isNonNullType(type)) {
72395
72395
  return getRootType(type.ofType);
@@ -72406,7 +72406,7 @@ function hashRaw({ document }) {
72406
72406
  return hashDocument(document.artifact?.raw);
72407
72407
  }
72408
72408
  function hashDocument(str) {
72409
- return crypto.createHash("sha256").update(str || "").digest("hex");
72409
+ return crypto2.createHash("sha256").update(str || "").digest("hex");
72410
72410
  }
72411
72411
  function parentField(ancestors) {
72412
72412
  return walkParentField([...ancestors].sort(() => -1));
@@ -72631,7 +72631,7 @@ async function cleanupFiles(pathFolder, listOfObj) {
72631
72631
  return allFilesNotInList;
72632
72632
  }
72633
72633
 
72634
- // src/lib/router/manifest.ts
72634
+ // src/router/manifest.ts
72635
72635
  var t = __toESM(require_lib6(), 1);
72636
72636
 
72637
72637
  // src/codegen/generators/artifacts/index.ts
@@ -78879,6 +78879,12 @@ export {
78879
78879
  testConfig,
78880
78880
  testConfigFile
78881
78881
  };
78882
+ /*!
78883
+ * cookie
78884
+ * Copyright(c) 2012-2014 Roman Shtylman
78885
+ * Copyright(c) 2015 Douglas Christopher Wilson
78886
+ * MIT Licensed
78887
+ */
78882
78888
  /**
78883
78889
  * Based on implementations by Gary Court and Austin Appleby, 2011, MIT. Copied from https://github.com/facebook/relay
78884
78890
  * @preserve-header
@@ -2283,7 +2283,7 @@ var require_parse = __commonJS({
2283
2283
  CHAR_NO_BREAK_SPACE,
2284
2284
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
2285
2285
  } = require_constants();
2286
- var parse7 = (input, options = {}) => {
2286
+ var parse8 = (input, options = {}) => {
2287
2287
  if (typeof input !== "string") {
2288
2288
  throw new TypeError("Expected a string");
2289
2289
  }
@@ -2489,7 +2489,7 @@ var require_parse = __commonJS({
2489
2489
  push({ type: "eos" });
2490
2490
  return ast;
2491
2491
  };
2492
- module2.exports = parse7;
2492
+ module2.exports = parse8;
2493
2493
  }
2494
2494
  });
2495
2495
 
@@ -2500,7 +2500,7 @@ var require_braces = __commonJS({
2500
2500
  var stringify2 = require_stringify();
2501
2501
  var compile2 = require_compile();
2502
2502
  var expand = require_expand();
2503
- var parse7 = require_parse();
2503
+ var parse8 = require_parse();
2504
2504
  var braces = (input, options = {}) => {
2505
2505
  let output = [];
2506
2506
  if (Array.isArray(input)) {
@@ -2520,7 +2520,7 @@ var require_braces = __commonJS({
2520
2520
  }
2521
2521
  return output;
2522
2522
  };
2523
- braces.parse = (input, options = {}) => parse7(input, options);
2523
+ braces.parse = (input, options = {}) => parse8(input, options);
2524
2524
  braces.stringify = (input, options = {}) => {
2525
2525
  if (typeof input === "string") {
2526
2526
  return stringify2(braces.parse(input, options), options);
@@ -3109,7 +3109,7 @@ var require_parse2 = __commonJS({
3109
3109
  var syntaxError = (type, char) => {
3110
3110
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
3111
3111
  };
3112
- var parse7 = (input, options) => {
3112
+ var parse8 = (input, options) => {
3113
3113
  if (typeof input !== "string") {
3114
3114
  throw new TypeError("Expected a string");
3115
3115
  }
@@ -3259,7 +3259,7 @@ var require_parse2 = __commonJS({
3259
3259
  output = token.close = `)$))${extglobStar}`;
3260
3260
  }
3261
3261
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
3262
- const expression = parse7(rest, { ...options, fastpaths: false }).output;
3262
+ const expression = parse8(rest, { ...options, fastpaths: false }).output;
3263
3263
  output = token.close = `)${expression})${extglobStar})`;
3264
3264
  }
3265
3265
  if (token.prev.type === "bos") {
@@ -3788,7 +3788,7 @@ var require_parse2 = __commonJS({
3788
3788
  }
3789
3789
  return state;
3790
3790
  };
3791
- parse7.fastpaths = (input, options) => {
3791
+ parse8.fastpaths = (input, options) => {
3792
3792
  const opts = { ...options };
3793
3793
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
3794
3794
  const len = input.length;
@@ -3857,7 +3857,7 @@ var require_parse2 = __commonJS({
3857
3857
  }
3858
3858
  return source;
3859
3859
  };
3860
- module2.exports = parse7;
3860
+ module2.exports = parse8;
3861
3861
  }
3862
3862
  });
3863
3863
 
@@ -3867,7 +3867,7 @@ var require_picomatch = __commonJS({
3867
3867
  "use strict";
3868
3868
  var path2 = require("path");
3869
3869
  var scan = require_scan();
3870
- var parse7 = require_parse2();
3870
+ var parse8 = require_parse2();
3871
3871
  var utils = require_utils2();
3872
3872
  var constants = require_constants2();
3873
3873
  var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val);
@@ -3957,7 +3957,7 @@ var require_picomatch = __commonJS({
3957
3957
  picomatch.parse = (pattern, options) => {
3958
3958
  if (Array.isArray(pattern))
3959
3959
  return pattern.map((p) => picomatch.parse(p, options));
3960
- return parse7(pattern, { ...options, fastpaths: false });
3960
+ return parse8(pattern, { ...options, fastpaths: false });
3961
3961
  };
3962
3962
  picomatch.scan = (input, options) => scan(input, options);
3963
3963
  picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
@@ -3983,10 +3983,10 @@ var require_picomatch = __commonJS({
3983
3983
  }
3984
3984
  let parsed = { negated: false, fastpaths: true };
3985
3985
  if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
3986
- parsed.output = parse7.fastpaths(input, options);
3986
+ parsed.output = parse8.fastpaths(input, options);
3987
3987
  }
3988
3988
  if (!parsed.output) {
3989
- parsed = parse7(input, options);
3989
+ parsed = parse8(input, options);
3990
3990
  }
3991
3991
  return picomatch.compileRe(parsed, options, returnOutput, returnState);
3992
3992
  };
@@ -5623,7 +5623,7 @@ var require_parser = __commonJS({
5623
5623
  Object.defineProperty(exports, "__esModule", {
5624
5624
  value: true
5625
5625
  });
5626
- exports.parse = parse7;
5626
+ exports.parse = parse8;
5627
5627
  exports.parseValue = parseValue;
5628
5628
  exports.parseType = parseType;
5629
5629
  exports.Parser = void 0;
@@ -5634,7 +5634,7 @@ var require_parser = __commonJS({
5634
5634
  var _source = require_source();
5635
5635
  var _directiveLocation = require_directiveLocation();
5636
5636
  var _lexer = require_lexer();
5637
- function parse7(source, options) {
5637
+ function parse8(source, options) {
5638
5638
  var parser = new Parser(source, options);
5639
5639
  return parser.parseDocument();
5640
5640
  }
@@ -36263,14 +36263,14 @@ var require_lib3 = __commonJS({
36263
36263
  super.checkParams(node, false, true);
36264
36264
  this.scope.exit();
36265
36265
  }
36266
- forwardNoArrowParamsConversionAt(node, parse8) {
36266
+ forwardNoArrowParamsConversionAt(node, parse9) {
36267
36267
  let result;
36268
36268
  if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
36269
36269
  this.state.noArrowParamsConversionAt.push(this.state.start);
36270
- result = parse8();
36270
+ result = parse9();
36271
36271
  this.state.noArrowParamsConversionAt.pop();
36272
36272
  } else {
36273
- result = parse8();
36273
+ result = parse9();
36274
36274
  }
36275
36275
  return result;
36276
36276
  }
@@ -45325,7 +45325,7 @@ var require_lib3 = __commonJS({
45325
45325
  }
45326
45326
  return pluginMap;
45327
45327
  }
45328
- function parse7(input, options) {
45328
+ function parse8(input, options) {
45329
45329
  var _options;
45330
45330
  if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
45331
45331
  options = Object.assign({}, options);
@@ -45395,7 +45395,7 @@ var require_lib3 = __commonJS({
45395
45395
  }
45396
45396
  return cls;
45397
45397
  }
45398
- exports.parse = parse7;
45398
+ exports.parse = parse8;
45399
45399
  exports.parseExpression = parseExpression;
45400
45400
  exports.tokTypes = tokTypes;
45401
45401
  }
@@ -51341,7 +51341,7 @@ var require_esprima2 = __commonJS({
51341
51341
  var jsx_parser_1 = __webpack_require__(3);
51342
51342
  var parser_1 = __webpack_require__(8);
51343
51343
  var tokenizer_1 = __webpack_require__(15);
51344
- function parse7(code, options, delegate) {
51344
+ function parse8(code, options, delegate) {
51345
51345
  var commentHandler = null;
51346
51346
  var proxyDelegate = function(node, metadata) {
51347
51347
  if (delegate) {
@@ -51386,17 +51386,17 @@ var require_esprima2 = __commonJS({
51386
51386
  }
51387
51387
  return ast;
51388
51388
  }
51389
- exports2.parse = parse7;
51389
+ exports2.parse = parse8;
51390
51390
  function parseModule(code, options, delegate) {
51391
51391
  var parsingOptions = options || {};
51392
51392
  parsingOptions.sourceType = "module";
51393
- return parse7(code, parsingOptions, delegate);
51393
+ return parse8(code, parsingOptions, delegate);
51394
51394
  }
51395
51395
  exports2.parseModule = parseModule;
51396
51396
  function parseScript(code, options, delegate) {
51397
51397
  var parsingOptions = options || {};
51398
51398
  parsingOptions.sourceType = "script";
51399
- return parse7(code, parsingOptions, delegate);
51399
+ return parse8(code, parsingOptions, delegate);
51400
51400
  }
51401
51401
  exports2.parseScript = parseScript;
51402
51402
  function tokenize(code, options, delegate) {
@@ -57460,7 +57460,7 @@ var require_esprima3 = __commonJS({
57460
57460
  Object.defineProperty(exports, "__esModule", { value: true });
57461
57461
  exports.parse = void 0;
57462
57462
  var util_1 = require_util2();
57463
- function parse7(source, options) {
57463
+ function parse8(source, options) {
57464
57464
  var comments = [];
57465
57465
  var ast = require_esprima2().parse(source, {
57466
57466
  loc: true,
@@ -57478,7 +57478,7 @@ var require_esprima3 = __commonJS({
57478
57478
  }
57479
57479
  return ast;
57480
57480
  }
57481
- exports.parse = parse7;
57481
+ exports.parse = parse8;
57482
57482
  }
57483
57483
  });
57484
57484
 
@@ -58600,7 +58600,7 @@ var require_parser2 = __commonJS({
58600
58600
  var lines_1 = require_lines();
58601
58601
  var comments_1 = require_comments();
58602
58602
  var util = tslib_1.__importStar(require_util2());
58603
- function parse7(source, options) {
58603
+ function parse8(source, options) {
58604
58604
  options = (0, options_1.normalize)(options);
58605
58605
  var lines = (0, lines_1.fromString)(source, options);
58606
58606
  var sourceWithoutTabs = lines.toString({
@@ -58672,7 +58672,7 @@ var require_parser2 = __commonJS({
58672
58672
  (0, comments_1.attach)(comments, program.body.length ? file.program : file, lines);
58673
58673
  return new TreeCopier(lines, tokens).copy(file);
58674
58674
  }
58675
- exports.parse = parse7;
58675
+ exports.parse = parse8;
58676
58676
  var TreeCopier = function TreeCopier2(lines, tokens) {
58677
58677
  assert_1.default.ok(this instanceof TreeCopier2);
58678
58678
  this.lines = lines;
@@ -85443,7 +85443,7 @@ async function find_graphql(config4, parsedScript, walker) {
85443
85443
  });
85444
85444
  }
85445
85445
 
85446
- // src/lib/router/conventions.ts
85446
+ // src/router/conventions.ts
85447
85447
  var conventions_exports = {};
85448
85448
  __export(conventions_exports, {
85449
85449
  fallback_unit_path: () => fallback_unit_path,
@@ -85561,7 +85561,7 @@ function serialized_manifest_path(config4, base = base_dir(config4)) {
85561
85561
  return path_exports.join(base, "manifest.json");
85562
85562
  }
85563
85563
 
85564
- // src/lib/router/manifest.ts
85564
+ // src/router/manifest.ts
85565
85565
  var t2 = __toESM(require_lib6(), 1);
85566
85566
 
85567
85567
  // src/codegen/generators/artifacts/index.ts
@@ -91646,7 +91646,9 @@ function Plugin(opts = {}) {
91646
91646
  return;
91647
91647
  }
91648
91648
  console.log("\u{1F3A9} Generating Deployment Assets...");
91649
- await fs_exports.rmdir(config3.routerBuildDirectory);
91649
+ if ((await fs_exports.stat(config3.routerBuildDirectory))?.isDirectory()) {
91650
+ await fs_exports.rmdir(config3.routerBuildDirectory);
91651
+ }
91650
91652
  await fs_exports.mkdirp(config3.routerBuildDirectory);
91651
91653
  await opts.adapter({
91652
91654
  config: config3,
@@ -91969,6 +91971,12 @@ function vite_default(opts) {
91969
91971
  find_exported_id,
91970
91972
  find_insert_index
91971
91973
  });
91974
+ /*!
91975
+ * cookie
91976
+ * Copyright(c) 2012-2014 Roman Shtylman
91977
+ * Copyright(c) 2015 Douglas Christopher Wilson
91978
+ * MIT Licensed
91979
+ */
91972
91980
  /*!
91973
91981
  * fill-range <https://github.com/jonschlinkert/fill-range>
91974
91982
  *