@quilted/create 0.2.42 → 0.2.44

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 (285) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/build/esm/_virtual/index.mjs +6 -2
  3. package/build/esm/_virtual/index10.mjs +3 -0
  4. package/build/esm/_virtual/index11.mjs +3 -0
  5. package/build/esm/_virtual/index12.mjs +3 -0
  6. package/build/esm/_virtual/index13.mjs +3 -0
  7. package/build/esm/_virtual/index2.mjs +2 -2
  8. package/build/esm/_virtual/index3.mjs +6 -2
  9. package/build/esm/_virtual/index4.mjs +6 -2
  10. package/build/esm/_virtual/index5.mjs +6 -2
  11. package/build/esm/_virtual/index6.mjs +6 -2
  12. package/build/esm/_virtual/index8.mjs +3 -0
  13. package/build/esm/_virtual/index9.mjs +3 -0
  14. package/build/esm/_virtual/minimatch.mjs +12 -0
  15. package/build/esm/app.mjs +2 -2
  16. package/build/esm/cli.mjs +1 -1
  17. package/build/esm/module.mjs +2 -2
  18. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.mjs +29 -21
  19. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.mjs +24 -18
  20. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs +35 -32
  21. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.mjs +103 -101
  22. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.mjs +19 -13
  23. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.mjs +63 -61
  24. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.mjs +33 -27
  25. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.mjs +25 -19
  26. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.mjs +15 -10
  27. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.mjs +27 -19
  28. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.mjs +35 -32
  29. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.mjs +39 -33
  30. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +26 -20
  31. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.mjs +24 -17
  32. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.mjs +44 -42
  33. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.mjs +37 -30
  34. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.mjs +41 -34
  35. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.mjs +22 -15
  36. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.mjs +103 -98
  37. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.mjs +35 -29
  38. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.mjs +19 -12
  39. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.mjs +64 -59
  40. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +34 -27
  41. package/build/esm/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.mjs +116 -112
  42. package/build/esm/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.mjs +54 -47
  43. package/build/esm/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.mjs +144 -137
  44. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.mjs +173 -166
  45. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.mjs +57 -51
  46. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.mjs +102 -94
  47. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.mjs +89 -83
  48. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.mjs +312 -305
  49. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.mjs +30 -24
  50. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.mjs +116 -108
  51. package/build/esm/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.mjs +1 -3
  52. package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +63 -61
  53. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.mjs +75 -77
  54. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +28 -22
  55. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.mjs +83 -78
  56. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.mjs +31 -25
  57. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.mjs +66 -60
  58. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +66 -59
  59. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.mjs +23 -16
  60. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.mjs +55 -48
  61. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.mjs +40 -33
  62. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.mjs +59 -55
  63. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.mjs +38 -32
  64. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.mjs +31 -25
  65. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.mjs +33 -26
  66. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.mjs +43 -38
  67. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.mjs +41 -35
  68. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.mjs +60 -55
  69. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.mjs +48 -43
  70. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.mjs +65 -57
  71. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.mjs +26 -20
  72. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.mjs +14 -8
  73. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.mjs +25 -19
  74. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.mjs +33 -34
  75. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +39 -33
  76. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.mjs +170 -164
  77. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.mjs +24 -18
  78. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.mjs +18 -12
  79. package/build/esm/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.mjs +227 -221
  80. package/build/esm/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.mjs +207 -200
  81. package/build/esm/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.mjs +1 -6
  82. package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +51 -44
  83. package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.mjs +2 -2
  84. package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.mjs +3 -3
  85. package/build/esm/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.mjs +443 -439
  86. package/build/esm/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.mjs +18 -11
  87. package/build/esm/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.mjs +116 -109
  88. package/build/esm/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.mjs +17 -10
  89. package/build/esm/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.mjs +117 -110
  90. package/build/esm/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.mjs +457 -451
  91. package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.mjs +14 -7
  92. package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.mjs +770 -770
  93. package/build/esm/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.mjs +40 -34
  94. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.mjs +10 -3
  95. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.mjs +227 -220
  96. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.mjs +941 -935
  97. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.mjs +331 -325
  98. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.mjs +303 -297
  99. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.mjs +65 -57
  100. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.mjs +605 -605
  101. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +378 -394
  102. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +15 -15
  103. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.mjs +281 -294
  104. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +155 -155
  105. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.mjs +1 -1
  106. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
  107. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.mjs +1 -1
  108. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.mjs +17 -12
  109. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
  110. package/build/esm/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.mjs +14 -7
  111. package/build/esm/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.mjs +29 -22
  112. package/build/esm/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.mjs +49 -42
  113. package/build/esm/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.mjs +231 -224
  114. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +1 -1
  115. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +1 -1
  116. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.mjs +3 -3
  117. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +2 -2
  118. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +1 -1
  119. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +2 -2
  120. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +1 -1
  121. package/build/esm/package.mjs +2 -2
  122. package/build/esm/packages/cli-kit/build/esnext/prompt.esnext.mjs +1 -1
  123. package/build/esm/server.mjs +5 -9
  124. package/build/esm/shared/package-manager.mjs +1 -1
  125. package/build/esm/shared/prompts.mjs +1 -1
  126. package/build/esnext/_virtual/index.esnext +6 -2
  127. package/build/esnext/_virtual/index10.esnext +3 -0
  128. package/build/esnext/_virtual/index11.esnext +3 -0
  129. package/build/esnext/_virtual/index12.esnext +3 -0
  130. package/build/esnext/_virtual/index13.esnext +3 -0
  131. package/build/esnext/_virtual/index2.esnext +2 -2
  132. package/build/esnext/_virtual/index3.esnext +6 -2
  133. package/build/esnext/_virtual/index4.esnext +6 -2
  134. package/build/esnext/_virtual/index5.esnext +6 -2
  135. package/build/esnext/_virtual/index6.esnext +6 -2
  136. package/build/esnext/_virtual/index8.esnext +3 -0
  137. package/build/esnext/_virtual/index9.esnext +3 -0
  138. package/build/esnext/_virtual/minimatch.esnext +12 -0
  139. package/build/esnext/app.esnext +2 -2
  140. package/build/esnext/module.esnext +2 -2
  141. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.esnext +27 -19
  142. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.esnext +19 -13
  143. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.esnext +33 -30
  144. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.esnext +99 -97
  145. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.esnext +14 -8
  146. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.esnext +59 -57
  147. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.esnext +31 -25
  148. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.esnext +23 -17
  149. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.esnext +13 -8
  150. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.esnext +25 -17
  151. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.esnext +33 -30
  152. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +38 -32
  153. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +25 -19
  154. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +23 -16
  155. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.esnext +42 -40
  156. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +36 -29
  157. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.esnext +40 -33
  158. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +21 -14
  159. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.esnext +98 -93
  160. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.esnext +30 -24
  161. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.esnext +17 -10
  162. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.esnext +59 -54
  163. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +33 -26
  164. package/build/esnext/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.esnext +132 -128
  165. package/build/esnext/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.esnext +54 -47
  166. package/build/esnext/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.esnext +137 -130
  167. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.esnext +66 -59
  168. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.esnext +53 -47
  169. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.esnext +102 -95
  170. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +89 -83
  171. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +217 -210
  172. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.esnext +30 -24
  173. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +75 -67
  174. package/build/esnext/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.esnext +1 -3
  175. package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +63 -61
  176. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.esnext +68 -70
  177. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +17 -11
  178. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.esnext +81 -76
  179. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.esnext +29 -23
  180. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.esnext +61 -55
  181. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +61 -54
  182. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.esnext +21 -14
  183. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.esnext +49 -42
  184. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.esnext +31 -24
  185. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.esnext +57 -53
  186. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.esnext +34 -28
  187. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.esnext +29 -23
  188. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.esnext +29 -22
  189. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.esnext +40 -35
  190. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.esnext +39 -33
  191. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.esnext +56 -51
  192. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.esnext +46 -41
  193. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.esnext +59 -51
  194. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.esnext +24 -18
  195. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.esnext +12 -6
  196. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.esnext +23 -17
  197. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.esnext +31 -32
  198. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +32 -26
  199. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.esnext +135 -129
  200. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.esnext +23 -17
  201. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.esnext +16 -10
  202. package/build/esnext/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.esnext +220 -215
  203. package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +193 -186
  204. package/build/esnext/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.esnext +1 -6
  205. package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +31 -24
  206. package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.esnext +2 -2
  207. package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.esnext +3 -3
  208. package/build/esnext/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.esnext +357 -353
  209. package/build/esnext/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.esnext +18 -11
  210. package/build/esnext/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.esnext +111 -104
  211. package/build/esnext/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.esnext +17 -10
  212. package/build/esnext/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.esnext +103 -96
  213. package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +147 -141
  214. package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.esnext +10 -3
  215. package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext +495 -491
  216. package/build/esnext/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.esnext +38 -32
  217. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.esnext +10 -3
  218. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.esnext +198 -191
  219. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.esnext +683 -677
  220. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.esnext +137 -131
  221. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.esnext +279 -273
  222. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.esnext +65 -57
  223. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +9 -9
  224. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +20 -20
  225. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +15 -15
  226. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +64 -64
  227. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +19 -19
  228. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.esnext +1 -1
  229. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.esnext +1 -1
  230. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.esnext +16 -11
  231. package/build/esnext/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.esnext +12 -5
  232. package/build/esnext/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.esnext +29 -22
  233. package/build/esnext/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.esnext +47 -40
  234. package/build/esnext/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.esnext +196 -189
  235. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +2 -0
  236. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +2 -0
  237. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-props.esnext +1 -0
  238. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +1 -1
  239. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +1 -1
  240. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/lexer.esnext +5 -0
  241. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/parser.esnext +4 -0
  242. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.esnext +3 -3
  243. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +2 -2
  244. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +1 -1
  245. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +2 -2
  246. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +1 -1
  247. package/build/esnext/package.esnext +2 -2
  248. package/build/esnext/packages/cli-kit/build/esnext/prompt.esnext.esnext +1 -1
  249. package/build/esnext/server.esnext +5 -9
  250. package/build/esnext/shared/package-manager.esnext +1 -1
  251. package/build/esnext/shared/prompts.esnext +1 -1
  252. package/build/tsconfig.tsbuildinfo +1 -1
  253. package/package.json +3 -3
  254. package/source/shared/prompts.ts +1 -1
  255. package/templates/app-basic/App.tsx +3 -4
  256. package/templates/app-basic/browser.tsx +5 -1
  257. package/templates/app-basic/foundation/html/Head.test.tsx +42 -0
  258. package/templates/app-basic/foundation/html/Head.tsx +34 -0
  259. package/templates/app-basic/foundation/html.ts +1 -1
  260. package/templates/app-basic/package.json +4 -4
  261. package/templates/app-basic/server.tsx +89 -3
  262. package/templates/app-empty/package.json +3 -3
  263. package/templates/app-empty/server.tsx +4 -3
  264. package/templates/app-graphql/App.tsx +3 -4
  265. package/templates/app-graphql/browser.tsx +5 -1
  266. package/templates/app-graphql/foundation/html/Head.test.tsx +42 -0
  267. package/templates/app-graphql/foundation/html/Head.tsx +34 -0
  268. package/templates/app-graphql/foundation/html.ts +1 -1
  269. package/templates/app-graphql/package.json +4 -4
  270. package/templates/app-graphql/server.tsx +93 -9
  271. package/templates/app-trpc/App.tsx +3 -4
  272. package/templates/app-trpc/browser.tsx +5 -1
  273. package/templates/app-trpc/foundation/html/Head.test.tsx +42 -0
  274. package/templates/app-trpc/foundation/html/Head.tsx +34 -0
  275. package/templates/app-trpc/foundation/html.ts +1 -1
  276. package/templates/app-trpc/package.json +4 -4
  277. package/templates/app-trpc/server.tsx +93 -8
  278. package/templates/package/package.json +3 -3
  279. package/templates/workspace/package.json +4 -4
  280. package/templates/app-basic/foundation/html/HTML.test.tsx +0 -46
  281. package/templates/app-basic/foundation/html/HTML.tsx +0 -159
  282. package/templates/app-graphql/foundation/html/HTML.test.tsx +0 -46
  283. package/templates/app-graphql/foundation/html/HTML.tsx +0 -159
  284. package/templates/app-trpc/foundation/html/HTML.test.tsx +0 -46
  285. package/templates/app-trpc/foundation/html/HTML.tsx +0 -159
@@ -1,367 +1,374 @@
1
- import { stringify as stringify$1 } from './stringify.mjs';
2
- import { constants } from './constants.mjs';
3
-
4
- const stringify = stringify$1;
5
-
6
- /**
7
- * Constants
8
- */
9
-
10
- const {
11
- MAX_LENGTH,
12
- CHAR_BACKSLASH,
13
- /* \ */
14
- CHAR_BACKTICK,
15
- /* ` */
16
- CHAR_COMMA,
17
- /* , */
18
- CHAR_DOT,
19
- /* . */
20
- CHAR_LEFT_PARENTHESES,
21
- /* ( */
22
- CHAR_RIGHT_PARENTHESES,
23
- /* ) */
24
- CHAR_LEFT_CURLY_BRACE,
25
- /* { */
26
- CHAR_RIGHT_CURLY_BRACE,
27
- /* } */
28
- CHAR_LEFT_SQUARE_BRACKET,
29
- /* [ */
30
- CHAR_RIGHT_SQUARE_BRACKET,
31
- /* ] */
32
- CHAR_DOUBLE_QUOTE,
33
- /* " */
34
- CHAR_SINGLE_QUOTE,
35
- /* ' */
36
- CHAR_NO_BREAK_SPACE,
37
- CHAR_ZERO_WIDTH_NOBREAK_SPACE
38
- } = constants;
39
-
40
- /**
41
- * parse
42
- */
43
-
44
- const parse = (input, options = {}) => {
45
- if (typeof input !== 'string') {
46
- throw new TypeError('Expected a string');
47
- }
48
- let opts = options || {};
49
- let max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
50
- if (input.length > max) {
51
- throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
52
- }
53
- let ast = {
54
- type: 'root',
55
- input,
56
- nodes: []
57
- };
58
- let stack = [ast];
59
- let block = ast;
60
- let prev = ast;
61
- let brackets = 0;
62
- let length = input.length;
63
- let index = 0;
64
- let depth = 0;
65
- let value;
1
+ import { __require as requireStringify } from './stringify.mjs';
2
+ import { __require as requireConstants } from './constants.mjs';
3
+
4
+ var parse_1;
5
+ var hasRequiredParse;
6
+ function requireParse() {
7
+ if (hasRequiredParse) return parse_1;
8
+ hasRequiredParse = 1;
9
+ const stringify = requireStringify();
66
10
 
67
11
  /**
68
- * Helpers
12
+ * Constants
69
13
  */
70
14
 
71
- const advance = () => input[index++];
72
- const push = node => {
73
- if (node.type === 'text' && prev.type === 'dot') {
74
- prev.type = 'text';
75
- }
76
- if (prev && prev.type === 'text' && node.type === 'text') {
77
- prev.value += node.value;
78
- return;
79
- }
80
- block.nodes.push(node);
81
- node.parent = block;
82
- node.prev = prev;
83
- prev = node;
84
- return node;
85
- };
86
- push({
87
- type: 'bos'
88
- });
89
- while (index < length) {
90
- block = stack[stack.length - 1];
91
- value = advance();
15
+ const {
16
+ MAX_LENGTH,
17
+ CHAR_BACKSLASH,
18
+ /* \ */
19
+ CHAR_BACKTICK,
20
+ /* ` */
21
+ CHAR_COMMA,
22
+ /* , */
23
+ CHAR_DOT,
24
+ /* . */
25
+ CHAR_LEFT_PARENTHESES,
26
+ /* ( */
27
+ CHAR_RIGHT_PARENTHESES,
28
+ /* ) */
29
+ CHAR_LEFT_CURLY_BRACE,
30
+ /* { */
31
+ CHAR_RIGHT_CURLY_BRACE,
32
+ /* } */
33
+ CHAR_LEFT_SQUARE_BRACKET,
34
+ /* [ */
35
+ CHAR_RIGHT_SQUARE_BRACKET,
36
+ /* ] */
37
+ CHAR_DOUBLE_QUOTE,
38
+ /* " */
39
+ CHAR_SINGLE_QUOTE,
40
+ /* ' */
41
+ CHAR_NO_BREAK_SPACE,
42
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE
43
+ } = requireConstants();
92
44
 
93
- /**
94
- * Invalid chars
95
- */
45
+ /**
46
+ * parse
47
+ */
96
48
 
97
- if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) {
98
- continue;
49
+ const parse = (input, options = {}) => {
50
+ if (typeof input !== 'string') {
51
+ throw new TypeError('Expected a string');
52
+ }
53
+ let opts = options || {};
54
+ let max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
55
+ if (input.length > max) {
56
+ throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
99
57
  }
58
+ let ast = {
59
+ type: 'root',
60
+ input,
61
+ nodes: []
62
+ };
63
+ let stack = [ast];
64
+ let block = ast;
65
+ let prev = ast;
66
+ let brackets = 0;
67
+ let length = input.length;
68
+ let index = 0;
69
+ let depth = 0;
70
+ let value;
100
71
 
101
72
  /**
102
- * Escaped chars
73
+ * Helpers
103
74
  */
104
75
 
105
- if (value === CHAR_BACKSLASH) {
106
- push({
107
- type: 'text',
108
- value: (options.keepEscaping ? value : '') + advance()
109
- });
110
- continue;
111
- }
76
+ const advance = () => input[index++];
77
+ const push = node => {
78
+ if (node.type === 'text' && prev.type === 'dot') {
79
+ prev.type = 'text';
80
+ }
81
+ if (prev && prev.type === 'text' && node.type === 'text') {
82
+ prev.value += node.value;
83
+ return;
84
+ }
85
+ block.nodes.push(node);
86
+ node.parent = block;
87
+ node.prev = prev;
88
+ prev = node;
89
+ return node;
90
+ };
91
+ push({
92
+ type: 'bos'
93
+ });
94
+ while (index < length) {
95
+ block = stack[stack.length - 1];
96
+ value = advance();
112
97
 
113
- /**
114
- * Right square bracket (literal): ']'
115
- */
98
+ /**
99
+ * Invalid chars
100
+ */
116
101
 
117
- if (value === CHAR_RIGHT_SQUARE_BRACKET) {
118
- push({
119
- type: 'text',
120
- value: '\\' + value
121
- });
122
- continue;
123
- }
102
+ if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) {
103
+ continue;
104
+ }
124
105
 
125
- /**
126
- * Left square bracket: '['
127
- */
106
+ /**
107
+ * Escaped chars
108
+ */
128
109
 
129
- if (value === CHAR_LEFT_SQUARE_BRACKET) {
130
- brackets++;
131
- let next;
132
- while (index < length && (next = advance())) {
133
- value += next;
134
- if (next === CHAR_LEFT_SQUARE_BRACKET) {
135
- brackets++;
136
- continue;
137
- }
138
- if (next === CHAR_BACKSLASH) {
139
- value += advance();
140
- continue;
141
- }
142
- if (next === CHAR_RIGHT_SQUARE_BRACKET) {
143
- brackets--;
144
- if (brackets === 0) {
145
- break;
146
- }
147
- }
110
+ if (value === CHAR_BACKSLASH) {
111
+ push({
112
+ type: 'text',
113
+ value: (options.keepEscaping ? value : '') + advance()
114
+ });
115
+ continue;
148
116
  }
149
- push({
150
- type: 'text',
151
- value
152
- });
153
- continue;
154
- }
155
117
 
156
- /**
157
- * Parentheses
158
- */
118
+ /**
119
+ * Right square bracket (literal): ']'
120
+ */
159
121
 
160
- if (value === CHAR_LEFT_PARENTHESES) {
161
- block = push({
162
- type: 'paren',
163
- nodes: []
164
- });
165
- stack.push(block);
166
- push({
167
- type: 'text',
168
- value
169
- });
170
- continue;
171
- }
172
- if (value === CHAR_RIGHT_PARENTHESES) {
173
- if (block.type !== 'paren') {
122
+ if (value === CHAR_RIGHT_SQUARE_BRACKET) {
123
+ push({
124
+ type: 'text',
125
+ value: '\\' + value
126
+ });
127
+ continue;
128
+ }
129
+
130
+ /**
131
+ * Left square bracket: '['
132
+ */
133
+
134
+ if (value === CHAR_LEFT_SQUARE_BRACKET) {
135
+ brackets++;
136
+ let next;
137
+ while (index < length && (next = advance())) {
138
+ value += next;
139
+ if (next === CHAR_LEFT_SQUARE_BRACKET) {
140
+ brackets++;
141
+ continue;
142
+ }
143
+ if (next === CHAR_BACKSLASH) {
144
+ value += advance();
145
+ continue;
146
+ }
147
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
148
+ brackets--;
149
+ if (brackets === 0) {
150
+ break;
151
+ }
152
+ }
153
+ }
174
154
  push({
175
155
  type: 'text',
176
156
  value
177
157
  });
178
158
  continue;
179
159
  }
180
- block = stack.pop();
181
- push({
182
- type: 'text',
183
- value
184
- });
185
- block = stack[stack.length - 1];
186
- continue;
187
- }
188
160
 
189
- /**
190
- * Quotes: '|"|`
191
- */
161
+ /**
162
+ * Parentheses
163
+ */
192
164
 
193
- if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
194
- let open = value;
195
- let next;
196
- if (options.keepQuotes !== true) {
197
- value = '';
165
+ if (value === CHAR_LEFT_PARENTHESES) {
166
+ block = push({
167
+ type: 'paren',
168
+ nodes: []
169
+ });
170
+ stack.push(block);
171
+ push({
172
+ type: 'text',
173
+ value
174
+ });
175
+ continue;
198
176
  }
199
- while (index < length && (next = advance())) {
200
- if (next === CHAR_BACKSLASH) {
201
- value += next + advance();
177
+ if (value === CHAR_RIGHT_PARENTHESES) {
178
+ if (block.type !== 'paren') {
179
+ push({
180
+ type: 'text',
181
+ value
182
+ });
202
183
  continue;
203
184
  }
204
- if (next === open) {
205
- if (options.keepQuotes === true) value += next;
206
- break;
207
- }
208
- value += next;
185
+ block = stack.pop();
186
+ push({
187
+ type: 'text',
188
+ value
189
+ });
190
+ block = stack[stack.length - 1];
191
+ continue;
209
192
  }
210
- push({
211
- type: 'text',
212
- value
213
- });
214
- continue;
215
- }
216
193
 
217
- /**
218
- * Left curly brace: '{'
219
- */
220
-
221
- if (value === CHAR_LEFT_CURLY_BRACE) {
222
- depth++;
223
- let dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true;
224
- let brace = {
225
- type: 'brace',
226
- open: true,
227
- close: false,
228
- dollar,
229
- depth,
230
- commas: 0,
231
- ranges: 0,
232
- nodes: []
233
- };
234
- block = push(brace);
235
- stack.push(block);
236
- push({
237
- type: 'open',
238
- value
239
- });
240
- continue;
241
- }
242
-
243
- /**
244
- * Right curly brace: '}'
245
- */
194
+ /**
195
+ * Quotes: '|"|`
196
+ */
246
197
 
247
- if (value === CHAR_RIGHT_CURLY_BRACE) {
248
- if (block.type !== 'brace') {
198
+ if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
199
+ let open = value;
200
+ let next;
201
+ if (options.keepQuotes !== true) {
202
+ value = '';
203
+ }
204
+ while (index < length && (next = advance())) {
205
+ if (next === CHAR_BACKSLASH) {
206
+ value += next + advance();
207
+ continue;
208
+ }
209
+ if (next === open) {
210
+ if (options.keepQuotes === true) value += next;
211
+ break;
212
+ }
213
+ value += next;
214
+ }
249
215
  push({
250
216
  type: 'text',
251
217
  value
252
218
  });
253
219
  continue;
254
220
  }
255
- let type = 'close';
256
- block = stack.pop();
257
- block.close = true;
258
- push({
259
- type,
260
- value
261
- });
262
- depth--;
263
- block = stack[stack.length - 1];
264
- continue;
265
- }
266
221
 
267
- /**
268
- * Comma: ','
269
- */
270
-
271
- if (value === CHAR_COMMA && depth > 0) {
272
- if (block.ranges > 0) {
273
- block.ranges = 0;
274
- let open = block.nodes.shift();
275
- block.nodes = [open, {
276
- type: 'text',
277
- value: stringify(block)
278
- }];
222
+ /**
223
+ * Left curly brace: '{'
224
+ */
225
+
226
+ if (value === CHAR_LEFT_CURLY_BRACE) {
227
+ depth++;
228
+ let dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true;
229
+ let brace = {
230
+ type: 'brace',
231
+ open: true,
232
+ close: false,
233
+ dollar,
234
+ depth,
235
+ commas: 0,
236
+ ranges: 0,
237
+ nodes: []
238
+ };
239
+ block = push(brace);
240
+ stack.push(block);
241
+ push({
242
+ type: 'open',
243
+ value
244
+ });
245
+ continue;
279
246
  }
280
- push({
281
- type: 'comma',
282
- value
283
- });
284
- block.commas++;
285
- continue;
286
- }
287
247
 
288
- /**
289
- * Dot: '.'
290
- */
248
+ /**
249
+ * Right curly brace: '}'
250
+ */
291
251
 
292
- if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
293
- let siblings = block.nodes;
294
- if (depth === 0 || siblings.length === 0) {
252
+ if (value === CHAR_RIGHT_CURLY_BRACE) {
253
+ if (block.type !== 'brace') {
254
+ push({
255
+ type: 'text',
256
+ value
257
+ });
258
+ continue;
259
+ }
260
+ let type = 'close';
261
+ block = stack.pop();
262
+ block.close = true;
295
263
  push({
296
- type: 'text',
264
+ type,
297
265
  value
298
266
  });
267
+ depth--;
268
+ block = stack[stack.length - 1];
299
269
  continue;
300
270
  }
301
- if (prev.type === 'dot') {
302
- block.range = [];
303
- prev.value += value;
304
- prev.type = 'range';
305
- if (block.nodes.length !== 3 && block.nodes.length !== 5) {
306
- block.invalid = true;
271
+
272
+ /**
273
+ * Comma: ','
274
+ */
275
+
276
+ if (value === CHAR_COMMA && depth > 0) {
277
+ if (block.ranges > 0) {
307
278
  block.ranges = 0;
308
- prev.type = 'text';
309
- continue;
279
+ let open = block.nodes.shift();
280
+ block.nodes = [open, {
281
+ type: 'text',
282
+ value: stringify(block)
283
+ }];
310
284
  }
311
- block.ranges++;
312
- block.args = [];
285
+ push({
286
+ type: 'comma',
287
+ value
288
+ });
289
+ block.commas++;
313
290
  continue;
314
291
  }
315
- if (prev.type === 'range') {
316
- siblings.pop();
317
- let before = siblings[siblings.length - 1];
318
- before.value += prev.value + value;
319
- prev = before;
320
- block.ranges--;
292
+
293
+ /**
294
+ * Dot: '.'
295
+ */
296
+
297
+ if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
298
+ let siblings = block.nodes;
299
+ if (depth === 0 || siblings.length === 0) {
300
+ push({
301
+ type: 'text',
302
+ value
303
+ });
304
+ continue;
305
+ }
306
+ if (prev.type === 'dot') {
307
+ block.range = [];
308
+ prev.value += value;
309
+ prev.type = 'range';
310
+ if (block.nodes.length !== 3 && block.nodes.length !== 5) {
311
+ block.invalid = true;
312
+ block.ranges = 0;
313
+ prev.type = 'text';
314
+ continue;
315
+ }
316
+ block.ranges++;
317
+ block.args = [];
318
+ continue;
319
+ }
320
+ if (prev.type === 'range') {
321
+ siblings.pop();
322
+ let before = siblings[siblings.length - 1];
323
+ before.value += prev.value + value;
324
+ prev = before;
325
+ block.ranges--;
326
+ continue;
327
+ }
328
+ push({
329
+ type: 'dot',
330
+ value
331
+ });
321
332
  continue;
322
333
  }
334
+
335
+ /**
336
+ * Text
337
+ */
338
+
323
339
  push({
324
- type: 'dot',
340
+ type: 'text',
325
341
  value
326
342
  });
327
- continue;
328
343
  }
329
344
 
330
- /**
331
- * Text
332
- */
345
+ // Mark imbalanced braces and brackets as invalid
346
+ do {
347
+ block = stack.pop();
348
+ if (block.type !== 'root') {
349
+ block.nodes.forEach(node => {
350
+ if (!node.nodes) {
351
+ if (node.type === 'open') node.isOpen = true;
352
+ if (node.type === 'close') node.isClose = true;
353
+ if (!node.nodes) node.type = 'text';
354
+ node.invalid = true;
355
+ }
356
+ });
333
357
 
358
+ // get the location of the block on parent.nodes (block's siblings)
359
+ let parent = stack[stack.length - 1];
360
+ let index = parent.nodes.indexOf(block);
361
+ // replace the (invalid) block with it's nodes
362
+ parent.nodes.splice(index, 1, ...block.nodes);
363
+ }
364
+ } while (stack.length > 0);
334
365
  push({
335
- type: 'text',
336
- value
366
+ type: 'eos'
337
367
  });
338
- }
339
-
340
- // Mark imbalanced braces and brackets as invalid
341
- do {
342
- block = stack.pop();
343
- if (block.type !== 'root') {
344
- block.nodes.forEach(node => {
345
- if (!node.nodes) {
346
- if (node.type === 'open') node.isOpen = true;
347
- if (node.type === 'close') node.isClose = true;
348
- if (!node.nodes) node.type = 'text';
349
- node.invalid = true;
350
- }
351
- });
368
+ return ast;
369
+ };
370
+ parse_1 = parse;
371
+ return parse_1;
372
+ }
352
373
 
353
- // get the location of the block on parent.nodes (block's siblings)
354
- let parent = stack[stack.length - 1];
355
- let index = parent.nodes.indexOf(block);
356
- // replace the (invalid) block with it's nodes
357
- parent.nodes.splice(index, 1, ...block.nodes);
358
- }
359
- } while (stack.length > 0);
360
- push({
361
- type: 'eos'
362
- });
363
- return ast;
364
- };
365
- var parse_1 = parse;
366
-
367
- export { parse_1 };
374
+ export { requireParse as __require };