@quilted/create 0.2.44 → 0.2.45

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 (278) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/esm/_virtual/index3.mjs +1 -1
  3. package/build/esm/_virtual/index7.mjs +2 -2
  4. package/build/esm/_virtual/index8.mjs +2 -2
  5. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.mjs +2 -2
  6. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.mjs +12 -10
  7. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.mjs +1 -2
  8. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.mjs +9 -9
  9. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.mjs +14 -14
  10. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.mjs +4 -4
  11. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.mjs +9 -3
  12. package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +1 -3
  13. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/index.mjs +39 -8
  14. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/managers/tasks.mjs +40 -10
  15. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/deep.mjs +2 -2
  16. package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.mjs +101 -0
  17. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/matcher.mjs +1 -6
  18. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/partial.mjs +6 -6
  19. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/settings.mjs +7 -5
  20. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.mjs +1 -1
  21. package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.mjs +79 -0
  22. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/pattern.mjs +69 -29
  23. package/build/esm/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.mjs +4 -4
  24. package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +2 -2
  25. package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.mjs +9 -3
  26. package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.mjs +3 -5
  27. package/build/esm/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.mjs +9 -3
  28. package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/babel.mjs +2448 -3000
  29. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.mjs +6611 -0
  30. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs +22 -0
  31. package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/yaml.mjs +1008 -1007
  32. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.mjs +3878 -0
  33. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.mjs +0 -1
  34. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
  35. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.mjs +0 -1
  36. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
  37. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/compose/compose-collection.mjs +67 -0
  38. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.mjs +3 -0
  39. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.mjs +13 -3
  40. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.mjs +8 -4
  41. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.mjs +1 -1
  42. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.mjs +12 -5
  43. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.mjs +6 -2
  44. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.mjs +10 -7
  45. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.mjs +11 -3
  46. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.mjs +14 -1
  47. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.mjs +20 -7
  48. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.mjs +2 -2
  49. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.mjs +13 -10
  50. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.mjs +1 -1
  51. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.mjs +1 -0
  52. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.mjs +4 -4
  53. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.mjs +10 -3
  54. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.mjs +1 -1
  55. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.mjs +7 -0
  56. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.mjs +9 -2
  57. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.mjs +2 -2
  58. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.mjs +44 -0
  59. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.mjs +1 -1
  60. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.mjs +2 -1
  61. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +28 -4
  62. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +22 -4
  63. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +53 -0
  64. package/build/esm/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.mjs → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.mjs} +1 -14
  65. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.mjs +1 -1
  66. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.mjs +1 -0
  67. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.mjs +34 -21
  68. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.mjs +16 -9
  69. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.mjs +2 -0
  70. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.mjs +2 -3
  71. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.mjs +16 -0
  72. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.mjs +16 -0
  73. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.mjs +1 -1
  74. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.mjs +1 -1
  75. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.mjs +20 -9
  76. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.mjs +3 -6
  77. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.mjs +1 -1
  78. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.mjs +1 -1
  79. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +48 -0
  80. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +10 -9
  81. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +4 -2
  82. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.mjs +2 -1
  83. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +15 -14
  84. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.mjs +2 -4
  85. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +19 -10
  86. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.mjs +8 -2
  87. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +9 -17
  88. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +1 -1
  89. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +40 -17
  90. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +40 -20
  91. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.mjs +1 -1
  92. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.mjs +2 -1
  93. package/build/esm/package.mjs +1 -1
  94. package/build/esm/shared/package-manager.mjs +1 -2
  95. package/build/esm/shared.mjs +1 -3
  96. package/build/esnext/_virtual/index3.esnext +1 -1
  97. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +1 -1
  98. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +1 -1
  99. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +1 -1
  100. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +1 -1
  101. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +1 -1
  102. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +1 -1
  103. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.esnext +2 -2
  104. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.esnext +10 -9
  105. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.esnext +1 -1
  106. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.esnext +9 -9
  107. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.esnext +14 -14
  108. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.esnext +4 -4
  109. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.esnext +9 -3
  110. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/index.esnext +35 -4
  111. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/managers/tasks.esnext +14 -2
  112. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.esnext +92 -0
  113. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/matcher.esnext +1 -2
  114. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/settings.esnext +3 -2
  115. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.esnext +58 -0
  116. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/pattern.esnext +27 -6
  117. package/build/esnext/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.esnext +4 -4
  118. package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +2 -2
  119. package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.esnext +6 -4
  120. package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.esnext +3 -3
  121. package/build/esnext/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.esnext +8 -3
  122. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/babel.esnext +6956 -0
  123. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.esnext +4320 -0
  124. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.esnext +12888 -0
  125. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/yaml.esnext +4156 -0
  126. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.esnext +2369 -0
  127. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/compose/compose-collection.esnext +60 -0
  128. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.esnext +2 -0
  129. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.esnext +11 -3
  130. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.esnext +13 -5
  131. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.esnext +1 -1
  132. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.esnext +13 -4
  133. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +6 -2
  134. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.esnext +11 -6
  135. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.esnext +12 -3
  136. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +14 -1
  137. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.esnext +20 -9
  138. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.esnext +2 -2
  139. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.esnext +8 -13
  140. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.esnext +1 -1
  141. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.esnext +5 -3
  142. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.esnext +10 -4
  143. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.esnext +1 -1
  144. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.esnext +7 -0
  145. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.esnext +8 -2
  146. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.esnext +2 -2
  147. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.esnext +36 -0
  148. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.esnext +1 -1
  149. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.esnext +2 -1
  150. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +31 -4
  151. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.esnext +20 -4
  152. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +8 -38
  153. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.esnext → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.esnext} +1 -13
  154. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.esnext +1 -1
  155. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.esnext +1 -0
  156. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.esnext +45 -33
  157. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.esnext +12 -9
  158. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.esnext +3 -0
  159. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.esnext +2 -3
  160. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.esnext +17 -0
  161. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.esnext +17 -0
  162. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.esnext +1 -1
  163. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.esnext +1 -1
  164. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.esnext +22 -11
  165. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.esnext +3 -6
  166. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.esnext +1 -1
  167. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.esnext +1 -1
  168. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.esnext +50 -0
  169. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +10 -9
  170. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +4 -3
  171. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.esnext +2 -0
  172. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +15 -14
  173. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.esnext +2 -2
  174. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.esnext +20 -10
  175. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.esnext +9 -2
  176. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.esnext +20 -28
  177. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.esnext +1 -1
  178. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.esnext +44 -23
  179. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +38 -20
  180. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.esnext +1 -1
  181. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.esnext +2 -1
  182. package/build/esnext/package.esnext +1 -1
  183. package/build/esnext/shared/package-manager.esnext +1 -1
  184. package/build/esnext/shared.esnext +5 -6
  185. package/build/tsconfig.tsbuildinfo +1 -1
  186. package/build/typescript/shared/package-manager.d.ts.map +1 -1
  187. package/build/typescript/shared.d.ts.map +1 -1
  188. package/package.json +7 -7
  189. package/source/shared/package-manager.ts +0 -1
  190. package/source/shared.ts +1 -2
  191. package/templates/workspace/_nvmrc +1 -1
  192. package/build/esm/_virtual/patterns.mjs +0 -3
  193. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +0 -32
  194. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +0 -76
  195. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +0 -45
  196. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +0 -6172
  197. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +0 -29
  198. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +0 -4076
  199. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.mjs +0 -58
  200. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.mjs +0 -7
  201. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +0 -83
  202. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.mjs +0 -37
  203. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.mjs +0 -34
  204. package/build/esnext/_virtual/patterns.esnext +0 -3
  205. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +0 -21
  206. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +0 -71
  207. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +0 -38
  208. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +0 -18
  209. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +0 -37
  210. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +0 -29
  211. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +0 -163
  212. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +0 -36
  213. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.esnext +0 -55
  214. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.esnext +0 -10
  215. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.esnext +0 -41
  216. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.esnext +0 -33
  217. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/async.mjs +0 -0
  218. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/error.mjs +0 -0
  219. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/provider.mjs +0 -0
  220. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/stream.mjs +0 -0
  221. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/sync.mjs +0 -0
  222. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/transformers/entry.mjs +0 -0
  223. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/async.mjs +0 -0
  224. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/reader.mjs +0 -0
  225. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/stream.mjs +0 -0
  226. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/sync.mjs +0 -0
  227. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/array.mjs +0 -0
  228. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/errno.mjs +0 -0
  229. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/fs.mjs +0 -0
  230. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/stream.mjs +0 -0
  231. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/string.mjs +0 -0
  232. /package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.mjs +0 -0
  233. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.mjs +0 -0
  234. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.mjs +0 -0
  235. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.mjs +0 -0
  236. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.mjs +0 -0
  237. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.mjs +0 -0
  238. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.mjs +0 -0
  239. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.mjs +0 -0
  240. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.mjs +0 -0
  241. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.mjs +0 -0
  242. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.mjs +0 -0
  243. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.mjs +0 -0
  244. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +0 -0
  245. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +0 -0
  246. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/async.esnext +0 -0
  247. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/deep.esnext +0 -0
  248. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/error.esnext +0 -0
  249. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/partial.esnext +0 -0
  250. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/provider.esnext +0 -0
  251. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/stream.esnext +0 -0
  252. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/sync.esnext +0 -0
  253. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/transformers/entry.esnext +0 -0
  254. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/async.esnext +0 -0
  255. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/reader.esnext +0 -0
  256. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/stream.esnext +0 -0
  257. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/sync.esnext +0 -0
  258. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/array.esnext +0 -0
  259. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/errno.esnext +0 -0
  260. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/fs.esnext +0 -0
  261. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.esnext +0 -0
  262. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/stream.esnext +0 -0
  263. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/string.esnext +0 -0
  264. /package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.esnext +0 -0
  265. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.esnext +0 -0
  266. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.esnext +0 -0
  267. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.esnext +0 -0
  268. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.esnext +0 -0
  269. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.esnext +0 -0
  270. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.esnext +0 -0
  271. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.esnext +0 -0
  272. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.esnext +0 -0
  273. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.esnext +0 -0
  274. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.esnext +0 -0
  275. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.esnext +0 -0
  276. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.esnext +0 -0
  277. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.esnext +0 -0
  278. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.esnext +0 -0
@@ -1,8 +1,8 @@
1
1
  import { Scalar } from '../nodes/Scalar.mjs';
2
2
  import { foldFlowLines, FOLD_FLOW, FOLD_QUOTED, FOLD_BLOCK } from './foldFlowLines.mjs';
3
3
 
4
- const getFoldOptions = ctx => ({
5
- indentAtStart: ctx.indentAtStart,
4
+ const getFoldOptions = (ctx, isBlock) => ({
5
+ indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart,
6
6
  lineWidth: ctx.options.lineWidth,
7
7
  minContentWidth: ctx.options.minContentWidth
8
8
  });
@@ -100,14 +100,14 @@ function doubleQuotedString(value, ctx) {
100
100
  }
101
101
  }
102
102
  str = start ? str + json.slice(start) : json;
103
- return implicitKey ? str : foldFlowLines(str, indent, FOLD_QUOTED, getFoldOptions(ctx));
103
+ return implicitKey ? str : foldFlowLines(str, indent, FOLD_QUOTED, getFoldOptions(ctx, false));
104
104
  }
105
105
  function singleQuotedString(value, ctx) {
106
106
  if (ctx.options.singleQuote === false || ctx.implicitKey && value.includes('\n') || /[ \t]\n|\n[ \t]/.test(value) // single quoted string can't have leading or trailing whitespace around newline
107
107
  ) return doubleQuotedString(value, ctx);
108
108
  const indent = ctx.indent || (containsDocumentMarker(value) ? ' ' : '');
109
109
  const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&\n${indent}`) + "'";
110
- return ctx.implicitKey ? res : foldFlowLines(res, indent, FOLD_FLOW, getFoldOptions(ctx));
110
+ return ctx.implicitKey ? res : foldFlowLines(res, indent, FOLD_FLOW, getFoldOptions(ctx, false));
111
111
  }
112
112
  function quotedString(value, ctx) {
113
113
  const {
@@ -121,6 +121,14 @@ function quotedString(value, ctx) {
121
121
  }
122
122
  return qs(value, ctx);
123
123
  }
124
+ // The negative lookbehind avoids a polynomial search,
125
+ // but isn't supported yet on Safari: https://caniuse.com/js-regexp-lookbehind
126
+ let blockEndNewlines;
127
+ try {
128
+ blockEndNewlines = new RegExp('(^|(?<!\n))\n+(?!\n|$)', 'g');
129
+ } catch {
130
+ blockEndNewlines = /\n+(?!\n|$)/g;
131
+ }
124
132
  function blockString({
125
133
  comment,
126
134
  type,
@@ -156,11 +164,10 @@ function blockString({
156
164
  } else {
157
165
  chomp = ''; // clip
158
166
  }
159
-
160
167
  if (end) {
161
168
  value = value.slice(0, -end.length);
162
169
  if (end[end.length - 1] === '\n') end = end.slice(0, -1);
163
- end = end.replace(/\n+(?!\n|$)/g, `$&${indent}`);
170
+ end = end.replace(blockEndNewlines, `$&${indent}`);
164
171
  }
165
172
  // determine indent indicator from whitespace at value start
166
173
  let startWithSpace = false;
@@ -176,20 +183,28 @@ function blockString({
176
183
  start = start.replace(/\n+/g, `$&${indent}`);
177
184
  }
178
185
  const indentSize = indent ? '2' : '1'; // root is at -1
179
- let header = (literal ? '|' : '>') + (startWithSpace ? indentSize : '') + chomp;
186
+ // Leading | or > is added later
187
+ let header = (startWithSpace ? indentSize : '') + chomp;
180
188
  if (comment) {
181
189
  header += ' ' + commentString(comment.replace(/ ?[\r\n]+/g, ' '));
182
190
  if (onComment) onComment();
183
191
  }
184
- if (literal) {
185
- value = value.replace(/\n+/g, `$&${indent}`);
186
- return `${header}\n${indent}${start}${value}${end}`;
192
+ if (!literal) {
193
+ const foldedValue = value.replace(/\n+/g, '\n$&').replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded
194
+ // ^ more-ind. ^ empty ^ capture next empty lines only at end of indent
195
+ .replace(/\n+/g, `$&${indent}`);
196
+ let literalFallback = false;
197
+ const foldOptions = getFoldOptions(ctx, true);
198
+ if (blockQuote !== 'folded' && type !== Scalar.BLOCK_FOLDED) {
199
+ foldOptions.onOverflow = () => {
200
+ literalFallback = true;
201
+ };
202
+ }
203
+ const body = foldFlowLines(`${start}${foldedValue}${end}`, indent, FOLD_BLOCK, foldOptions);
204
+ if (!literalFallback) return `>${header}\n${indent}${body}`;
187
205
  }
188
- value = value.replace(/\n+/g, '\n$&').replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded
189
- // ^ more-ind. ^ empty ^ capture next empty lines only at end of indent
190
- .replace(/\n+/g, `$&${indent}`);
191
- const body = foldFlowLines(`${start}${value}${end}`, indent, FOLD_BLOCK, getFoldOptions(ctx));
192
- return `${header}\n${indent}${body}`;
206
+ value = value.replace(/\n+/g, `$&${indent}`);
207
+ return `|${header}\n${indent}${start}${value}${end}`;
193
208
  }
194
209
  function plainString(item, ctx, onComment, onChompKeep) {
195
210
  const {
@@ -200,9 +215,10 @@ function plainString(item, ctx, onComment, onChompKeep) {
200
215
  actualString,
201
216
  implicitKey,
202
217
  indent,
218
+ indentStep,
203
219
  inFlow
204
220
  } = ctx;
205
- if (implicitKey && /[\n[\]{},]/.test(value) || inFlow && /[[\]{},]/.test(value)) {
221
+ if (implicitKey && value.includes('\n') || inFlow && /[[\]{},]/.test(value)) {
206
222
  return quotedString(value, ctx);
207
223
  }
208
224
  if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
@@ -218,9 +234,13 @@ function plainString(item, ctx, onComment, onChompKeep) {
218
234
  // Where allowed & type not set explicitly, prefer block style for multiline strings
219
235
  return blockString(item, ctx, onComment, onChompKeep);
220
236
  }
221
- if (indent === '' && containsDocumentMarker(value)) {
222
- ctx.forceBlockIndent = true;
223
- return blockString(item, ctx, onComment, onChompKeep);
237
+ if (containsDocumentMarker(value)) {
238
+ if (indent === '') {
239
+ ctx.forceBlockIndent = true;
240
+ return blockString(item, ctx, onComment, onChompKeep);
241
+ } else if (implicitKey && indent === indentStep) {
242
+ return quotedString(value, ctx);
243
+ }
224
244
  }
225
245
  const str = value.replace(/\n+/g, `$&\n${indent}`);
226
246
  // Verify that output will be parsed as a string, as e.g. plain numbers and
@@ -234,7 +254,7 @@ function plainString(item, ctx, onComment, onChompKeep) {
234
254
  } = ctx.doc.schema;
235
255
  if (tags.some(test) || compat?.some(test)) return quotedString(value, ctx);
236
256
  }
237
- return implicitKey ? str : foldFlowLines(str, indent, FOLD_FLOW, getFoldOptions(ctx));
257
+ return implicitKey ? str : foldFlowLines(str, indent, FOLD_FLOW, getFoldOptions(ctx, false));
238
258
  }
239
259
  function stringifyString(item, ctx, onComment, onChompKeep) {
240
260
  const {
@@ -1,4 +1,4 @@
1
- import { isDocument, isNode, isPair, isCollection, isMap, isSeq, isScalar, isAlias } from './nodes/Node.mjs';
1
+ import { isDocument, isNode, isPair, isCollection, isMap, isSeq, isScalar, isAlias } from './nodes/identity.mjs';
2
2
 
3
3
  const BREAK = Symbol('break visit');
4
4
  const SKIP = Symbol('skip children');
@@ -3,11 +3,12 @@ export { Document } from './dist/doc/Document.mjs';
3
3
  export { Schema } from './dist/schema/Schema.mjs';
4
4
  export { YAMLError, YAMLParseError, YAMLWarning } from './dist/errors.mjs';
5
5
  export { Alias } from './dist/nodes/Alias.mjs';
6
- export { isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq } from './dist/nodes/Node.mjs';
6
+ export { isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq } from './dist/nodes/identity.mjs';
7
7
  export { Pair } from './dist/nodes/Pair.mjs';
8
8
  export { Scalar } from './dist/nodes/Scalar.mjs';
9
9
  export { YAMLMap } from './dist/nodes/YAMLMap.mjs';
10
10
  export { YAMLSeq } from './dist/nodes/YAMLSeq.mjs';
11
+ import './dist/stringify/stringifyString.mjs';
11
12
  export { Lexer } from './dist/parse/lexer.mjs';
12
13
  export { LineCounter } from './dist/parse/line-counter.mjs';
13
14
  export { Parser } from './dist/parse/parser.mjs';
@@ -339,7 +339,7 @@ async function getRepository(args, {
339
339
  if (!inWorkspace) return;
340
340
  const {
341
341
  globby
342
- } = await import('./node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.mjs');
342
+ } = await import('./node_modules/.pnpm/globby@13.2.2/node_modules/globby/index.mjs');
343
343
  const files = await globby('**/package.json', {
344
344
  ignore: ['**/node_modules']
345
345
  });
@@ -3,11 +3,10 @@ import { format, relativeDirectoryForDisplay } from '../shared.mjs';
3
3
 
4
4
  async function addToPackageManagerWorkspaces(directory, output, packageManager) {
5
5
  if (packageManager === 'pnpm') {
6
- // @ts-expect-error Yaml doesn’t implement `exports.types`
7
6
  const {
8
7
  parse,
9
8
  stringify
10
- } = await import('../node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/index.mjs');
9
+ } = await import('../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/index.mjs');
11
10
  const workspaceYaml = parse(await output.read('pnpm-workspace.yaml'));
12
11
  workspaceYaml.packages = await addToWorkspaces(relative(output.root, directory), workspaceYaml.packages ?? []);
13
12
  await output.write('pnpm-workspace.yaml', await format(stringify(workspaceYaml), {
@@ -111,9 +111,7 @@ async function format(content, {
111
111
  const [{
112
112
  format: rootFormat,
113
113
  default: prettier
114
- }, babel, typescript, yaml, estree] = await Promise.all([import('./node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs'), import('./node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.mjs'), import('./node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs'), import('./node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.mjs'),
115
- // @ts-expect-error Types are not generated correctly for this entry
116
- import('./node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs')]);
114
+ }, babel, typescript, yaml, estree] = await Promise.all([import('./node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.mjs'), import('./node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/babel.mjs'), import('./node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs'), import('./node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/yaml.mjs'), import('./node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.mjs')]);
117
115
 
118
116
  // CJS workaround
119
117
  const format = rootFormat ?? prettier.format;
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.esnext';
2
- import { __require as requireOut } from '../node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.esnext';
2
+ import { __require as requireOut } from '../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.esnext';
3
3
 
4
4
  var outExports = requireOut();
5
5
  const fastGlob = /*@__PURE__*/getDefaultExportFromCjs(outExports);
@@ -1,4 +1,4 @@
1
- import { __exports as async } from '../../../../../../../../_virtual/async3.esnext';
1
+ import { __exports as async } from '../../../../../../../../_virtual/async4.esnext';
2
2
 
3
3
  var hasRequiredAsync;
4
4
  function requireAsync() {
@@ -1,4 +1,4 @@
1
- import { __exports as sync } from '../../../../../../../../_virtual/sync3.esnext';
1
+ import { __exports as sync } from '../../../../../../../../_virtual/sync4.esnext';
2
2
 
3
3
  var hasRequiredSync;
4
4
  function requireSync() {
@@ -1,4 +1,4 @@
1
- import { __exports as settings } from '../../../../../../../_virtual/settings2.esnext';
1
+ import { __exports as settings } from '../../../../../../../_virtual/settings3.esnext';
2
2
  import { __require as requireFs } from './adapters/fs.esnext';
3
3
 
4
4
  var hasRequiredSettings;
@@ -1,4 +1,4 @@
1
- import { __exports as async } from '../../../../../../../../_virtual/async4.esnext';
1
+ import { __exports as async } from '../../../../../../../../_virtual/async3.esnext';
2
2
  import { __require as requireAsync$1 } from '../readers/async.esnext';
3
3
 
4
4
  var hasRequiredAsync;
@@ -1,4 +1,4 @@
1
- import { __exports as sync } from '../../../../../../../../_virtual/sync4.esnext';
1
+ import { __exports as sync } from '../../../../../../../../_virtual/sync3.esnext';
2
2
  import { __require as requireSync$1 } from '../readers/sync.esnext';
3
3
 
4
4
  var hasRequiredSync;
@@ -1,4 +1,4 @@
1
- import { __exports as settings } from '../../../../../../../_virtual/settings3.esnext';
1
+ import { __exports as settings } from '../../../../../../../_virtual/settings2.esnext';
2
2
  import path__default from 'node:path';
3
3
  import { __require as requireOut } from '../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.esnext';
4
4
 
@@ -15,8 +15,8 @@ function requireBraces() {
15
15
  const braces = (input, options = {}) => {
16
16
  let output = [];
17
17
  if (Array.isArray(input)) {
18
- for (let pattern of input) {
19
- let result = braces.create(pattern, options);
18
+ for (const pattern of input) {
19
+ const result = braces.create(pattern, options);
20
20
  if (Array.isArray(result)) {
21
21
  output.push(...result);
22
22
  } else {
@@ -1,4 +1,4 @@
1
- import { __require as requireFillRange } from '../../../../fill-range@7.0.1/node_modules/fill-range/index.esnext';
1
+ import { __require as requireFillRange } from '../../../../fill-range@7.1.1/node_modules/fill-range/index.esnext';
2
2
  import { __require as requireUtils } from './utils.esnext';
3
3
 
4
4
  var compile_1;
@@ -9,16 +9,17 @@ function requireCompile() {
9
9
  const fill = requireFillRange();
10
10
  const utils = requireUtils();
11
11
  const compile = (ast, options = {}) => {
12
- let walk = (node, parent = {}) => {
13
- let invalidBlock = utils.isInvalidBrace(parent);
14
- let invalidNode = node.invalid === true && options.escapeInvalid === true;
15
- let invalid = invalidBlock === true || invalidNode === true;
16
- let prefix = options.escapeInvalid === true ? "\\" : "";
12
+ const walk = (node, parent = {}) => {
13
+ const invalidBlock = utils.isInvalidBrace(parent);
14
+ const invalidNode = node.invalid === true && options.escapeInvalid === true;
15
+ const invalid = invalidBlock === true || invalidNode === true;
16
+ const prefix = options.escapeInvalid === true ? "\\" : "";
17
17
  let output = "";
18
18
  if (node.isOpen === true) {
19
19
  return prefix + node.value;
20
20
  }
21
21
  if (node.isClose === true) {
22
+ console.log("node.isClose", prefix, node.value);
22
23
  return prefix + node.value;
23
24
  }
24
25
  if (node.type === "open") {
@@ -34,14 +35,14 @@ function requireCompile() {
34
35
  return node.value;
35
36
  }
36
37
  if (node.nodes && node.ranges > 0) {
37
- let args = utils.reduce(node.nodes);
38
- let range = fill(...args, { ...options, wrap: false, toRegex: true });
38
+ const args = utils.reduce(node.nodes);
39
+ const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
39
40
  if (range.length !== 0) {
40
41
  return args.length > 1 && range.length > 1 ? `(${range})` : range;
41
42
  }
42
43
  }
43
44
  if (node.nodes) {
44
- for (let child of node.nodes) {
45
+ for (const child of node.nodes) {
45
46
  output += walk(child, node);
46
47
  }
47
48
  }
@@ -4,7 +4,7 @@ function requireConstants() {
4
4
  if (hasRequiredConstants) return constants;
5
5
  hasRequiredConstants = 1;
6
6
  constants = {
7
- MAX_LENGTH: 1024 * 64,
7
+ MAX_LENGTH: 1e4,
8
8
  // Digits
9
9
  CHAR_0: "0",
10
10
  /* 0 */
@@ -1,4 +1,4 @@
1
- import { __require as requireFillRange } from '../../../../fill-range@7.0.1/node_modules/fill-range/index.esnext';
1
+ import { __require as requireFillRange } from '../../../../fill-range@7.1.1/node_modules/fill-range/index.esnext';
2
2
  import { __require as requireStringify } from './stringify.esnext';
3
3
  import { __require as requireUtils } from './utils.esnext';
4
4
 
@@ -11,16 +11,16 @@ function requireExpand() {
11
11
  const stringify = requireStringify();
12
12
  const utils = requireUtils();
13
13
  const append = (queue = "", stash = "", enclose = false) => {
14
- let result = [];
14
+ const result = [];
15
15
  queue = [].concat(queue);
16
16
  stash = [].concat(stash);
17
17
  if (!stash.length) return queue;
18
18
  if (!queue.length) {
19
19
  return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
20
20
  }
21
- for (let item of queue) {
21
+ for (const item of queue) {
22
22
  if (Array.isArray(item)) {
23
- for (let value of item) {
23
+ for (const value of item) {
24
24
  result.push(append(value, stash, enclose));
25
25
  }
26
26
  } else {
@@ -33,8 +33,8 @@ function requireExpand() {
33
33
  return utils.flatten(result);
34
34
  };
35
35
  const expand = (ast, options = {}) => {
36
- let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
37
- let walk = (node, parent = {}) => {
36
+ const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
37
+ const walk = (node, parent = {}) => {
38
38
  node.queue = [];
39
39
  let p = parent;
40
40
  let q = parent.queue;
@@ -51,7 +51,7 @@ function requireExpand() {
51
51
  return;
52
52
  }
53
53
  if (node.nodes && node.ranges > 0) {
54
- let args = utils.reduce(node.nodes);
54
+ const args = utils.reduce(node.nodes);
55
55
  if (utils.exceedsLimit(...args, options.step, rangeLimit)) {
56
56
  throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
57
57
  }
@@ -63,7 +63,7 @@ function requireExpand() {
63
63
  node.nodes = [];
64
64
  return;
65
65
  }
66
- let enclose = utils.encloseBrace(node);
66
+ const enclose = utils.encloseBrace(node);
67
67
  let queue = node.queue;
68
68
  let block = node;
69
69
  while (block.type !== "brace" && block.type !== "root" && block.parent) {
@@ -71,7 +71,7 @@ function requireExpand() {
71
71
  queue = block.queue;
72
72
  }
73
73
  for (let i = 0; i < node.nodes.length; i++) {
74
- let child = node.nodes[i];
74
+ const child = node.nodes[i];
75
75
  if (child.type === "comma" && node.type === "brace") {
76
76
  if (i === 1) queue.push("");
77
77
  queue.push("");
@@ -40,17 +40,17 @@ function requireParse() {
40
40
  if (typeof input !== "string") {
41
41
  throw new TypeError("Expected a string");
42
42
  }
43
- let opts = options || {};
44
- let max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
43
+ const opts = options || {};
44
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
45
45
  if (input.length > max) {
46
46
  throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
47
47
  }
48
- let ast = { type: "root", input, nodes: [] };
49
- let stack = [ast];
48
+ const ast = { type: "root", input, nodes: [] };
49
+ const stack = [ast];
50
50
  let block = ast;
51
51
  let prev = ast;
52
52
  let brackets = 0;
53
- let length = input.length;
53
+ const length = input.length;
54
54
  let index = 0;
55
55
  let depth = 0;
56
56
  let value;
@@ -124,7 +124,7 @@ function requireParse() {
124
124
  continue;
125
125
  }
126
126
  if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
127
- let open = value;
127
+ const open = value;
128
128
  let next;
129
129
  if (options.keepQuotes !== true) {
130
130
  value = "";
@@ -145,8 +145,8 @@ function requireParse() {
145
145
  }
146
146
  if (value === CHAR_LEFT_CURLY_BRACE) {
147
147
  depth++;
148
- let dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
149
- let brace = {
148
+ const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
149
+ const brace = {
150
150
  type: "brace",
151
151
  open: true,
152
152
  close: false,
@@ -166,7 +166,7 @@ function requireParse() {
166
166
  push({ type: "text", value });
167
167
  continue;
168
168
  }
169
- let type = "close";
169
+ const type = "close";
170
170
  block = stack.pop();
171
171
  block.close = true;
172
172
  push({ type, value });
@@ -177,7 +177,7 @@ function requireParse() {
177
177
  if (value === CHAR_COMMA && depth > 0) {
178
178
  if (block.ranges > 0) {
179
179
  block.ranges = 0;
180
- let open = block.nodes.shift();
180
+ const open = block.nodes.shift();
181
181
  block.nodes = [open, { type: "text", value: stringify(block) }];
182
182
  }
183
183
  push({ type: "comma", value });
@@ -185,7 +185,7 @@ function requireParse() {
185
185
  continue;
186
186
  }
187
187
  if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
188
- let siblings = block.nodes;
188
+ const siblings = block.nodes;
189
189
  if (depth === 0 || siblings.length === 0) {
190
190
  push({ type: "text", value });
191
191
  continue;
@@ -206,7 +206,7 @@ function requireParse() {
206
206
  }
207
207
  if (prev.type === "range") {
208
208
  siblings.pop();
209
- let before = siblings[siblings.length - 1];
209
+ const before = siblings[siblings.length - 1];
210
210
  before.value += prev.value + value;
211
211
  prev = before;
212
212
  block.ranges--;
@@ -228,8 +228,8 @@ function requireParse() {
228
228
  node.invalid = true;
229
229
  }
230
230
  });
231
- let parent = stack[stack.length - 1];
232
- let index2 = parent.nodes.indexOf(block);
231
+ const parent = stack[stack.length - 1];
232
+ const index2 = parent.nodes.indexOf(block);
233
233
  parent.nodes.splice(index2, 1, ...block.nodes);
234
234
  }
235
235
  } while (stack.length > 0);
@@ -7,9 +7,9 @@ function requireStringify() {
7
7
  hasRequiredStringify = 1;
8
8
  const utils = requireUtils();
9
9
  stringify = (ast, options = {}) => {
10
- let stringify2 = (node, parent = {}) => {
11
- let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
12
- let invalidNode = node.invalid === true && options.escapeInvalid === true;
10
+ const stringify2 = (node, parent = {}) => {
11
+ const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
12
+ const invalidNode = node.invalid === true && options.escapeInvalid === true;
13
13
  let output = "";
14
14
  if (node.value) {
15
15
  if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
@@ -21,7 +21,7 @@ function requireStringify() {
21
21
  return node.value;
22
22
  }
23
23
  if (node.nodes) {
24
- for (let child of node.nodes) {
24
+ for (const child of node.nodes) {
25
25
  output += stringify2(child);
26
26
  }
27
27
  }
@@ -21,7 +21,7 @@ function requireUtils() {
21
21
  return (Number(max) - Number(min)) / Number(step) >= limit;
22
22
  };
23
23
  exports.escapeNode = (block, n = 0, type) => {
24
- let node = block.nodes[n];
24
+ const node = block.nodes[n];
25
25
  if (!node) return;
26
26
  if (type && node.type === type || node.type === "open" || node.type === "close") {
27
27
  if (node.escaped !== true) {
@@ -66,8 +66,14 @@ function requireUtils() {
66
66
  const result = [];
67
67
  const flat = (arr) => {
68
68
  for (let i = 0; i < arr.length; i++) {
69
- let ele = arr[i];
70
- Array.isArray(ele) ? flat(ele) : ele !== void 0 && result.push(ele);
69
+ const ele = arr[i];
70
+ if (Array.isArray(ele)) {
71
+ flat(ele);
72
+ continue;
73
+ }
74
+ if (ele !== void 0) {
75
+ result.push(ele);
76
+ }
71
77
  }
72
78
  return result;
73
79
  };
@@ -1,5 +1,4 @@
1
1
  import { __require as requireTasks } from './managers/tasks.esnext';
2
- import { __require as requirePatterns } from './managers/patterns.esnext';
3
2
  import { __require as requireAsync } from './providers/async.esnext';
4
3
  import { __require as requireStream } from './providers/stream.esnext';
5
4
  import { __require as requireSync } from './providers/sync.esnext';
@@ -12,7 +11,6 @@ function requireOut() {
12
11
  if (hasRequiredOut) return out;
13
12
  hasRequiredOut = 1;
14
13
  const taskManager = requireTasks();
15
- const patternManager = requirePatterns();
16
14
  const async_1 = requireAsync();
17
15
  const stream_1 = requireStream();
18
16
  const sync_1 = requireSync();
@@ -25,6 +23,10 @@ function requireOut() {
25
23
  return utils.array.flatten(result);
26
24
  }
27
25
  (function(FastGlob2) {
26
+ FastGlob2.glob = FastGlob2;
27
+ FastGlob2.globSync = sync;
28
+ FastGlob2.globStream = stream;
29
+ FastGlob2.async = FastGlob2;
28
30
  function sync(source, options) {
29
31
  assertPatternsInput(source);
30
32
  const works = getWorks(source, sync_1.default, options);
@@ -39,7 +41,7 @@ function requireOut() {
39
41
  FastGlob2.stream = stream;
40
42
  function generateTasks(source, options) {
41
43
  assertPatternsInput(source);
42
- const patterns = patternManager.transform([].concat(source));
44
+ const patterns = [].concat(source);
43
45
  const settings = new settings_1.default(options);
44
46
  return taskManager.generate(patterns, settings);
45
47
  }
@@ -55,9 +57,38 @@ function requireOut() {
55
57
  return utils.path.escape(source);
56
58
  }
57
59
  FastGlob2.escapePath = escapePath;
60
+ function convertPathToPattern(source) {
61
+ assertPatternsInput(source);
62
+ return utils.path.convertPathToPattern(source);
63
+ }
64
+ FastGlob2.convertPathToPattern = convertPathToPattern;
65
+ (function(posix2) {
66
+ function escapePath2(source) {
67
+ assertPatternsInput(source);
68
+ return utils.path.escapePosixPath(source);
69
+ }
70
+ posix2.escapePath = escapePath2;
71
+ function convertPathToPattern2(source) {
72
+ assertPatternsInput(source);
73
+ return utils.path.convertPosixPathToPattern(source);
74
+ }
75
+ posix2.convertPathToPattern = convertPathToPattern2;
76
+ })(FastGlob2.posix || (FastGlob2.posix = {}));
77
+ (function(win322) {
78
+ function escapePath2(source) {
79
+ assertPatternsInput(source);
80
+ return utils.path.escapeWindowsPath(source);
81
+ }
82
+ win322.escapePath = escapePath2;
83
+ function convertPathToPattern2(source) {
84
+ assertPatternsInput(source);
85
+ return utils.path.convertWindowsPathToPattern(source);
86
+ }
87
+ win322.convertPathToPattern = convertPathToPattern2;
88
+ })(FastGlob2.win32 || (FastGlob2.win32 = {}));
58
89
  })(FastGlob || (FastGlob = {}));
59
90
  function getWorks(source, _Provider, options) {
60
- const patterns = patternManager.transform([].concat(source));
91
+ const patterns = [].concat(source);
61
92
  const settings = new settings_1.default(options);
62
93
  const tasks = taskManager.generate(patterns, settings);
63
94
  const provider = new _Provider(settings);
@@ -8,9 +8,11 @@ function requireTasks() {
8
8
  Object.defineProperty(tasks, "__esModule", { value: true });
9
9
  tasks.convertPatternGroupToTask = tasks.convertPatternGroupsToTasks = tasks.groupPatternsByBaseDirectory = tasks.getNegativePatternsAsPositive = tasks.getPositivePatterns = tasks.convertPatternsToTasks = tasks.generate = void 0;
10
10
  const utils = requireUtils();
11
- function generate(patterns, settings) {
11
+ function generate(input, settings) {
12
+ const patterns = processPatterns(input, settings);
13
+ const ignore = processPatterns(settings.ignore, settings);
12
14
  const positivePatterns = getPositivePatterns(patterns);
13
- const negativePatterns = getNegativePatternsAsPositive(patterns, settings.ignore);
15
+ const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
14
16
  const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
15
17
  const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
16
18
  const staticTasks = convertPatternsToTasks(
@@ -28,6 +30,16 @@ function requireTasks() {
28
30
  return staticTasks.concat(dynamicTasks);
29
31
  }
30
32
  tasks.generate = generate;
33
+ function processPatterns(input, settings) {
34
+ let patterns = input;
35
+ if (settings.braceExpansion) {
36
+ patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
37
+ }
38
+ if (settings.baseNameMatch) {
39
+ patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`);
40
+ }
41
+ return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
42
+ }
31
43
  function convertPatternsToTasks(positive, negative, dynamic) {
32
44
  const tasks2 = [];
33
45
  const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);