@quilted/create 0.2.44 → 0.2.46

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 (277) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/esm/_virtual/index3.mjs +1 -1
  3. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.mjs +2 -2
  4. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.mjs +12 -10
  5. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.mjs +1 -2
  6. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.mjs +9 -9
  7. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.mjs +14 -14
  8. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.mjs +4 -4
  9. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.mjs +9 -3
  10. package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +0 -2
  11. 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
  12. 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
  13. 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
  14. package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.mjs +101 -0
  15. 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
  16. 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
  17. 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
  18. package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.mjs +79 -0
  19. 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
  20. package/build/esm/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.mjs +4 -4
  21. package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +2 -2
  22. package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.mjs +9 -3
  23. package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.mjs +3 -5
  24. package/build/esm/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.mjs +9 -3
  25. package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/babel.mjs +2448 -3000
  26. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.mjs +6611 -0
  27. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs +22 -0
  28. package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/yaml.mjs +1008 -1007
  29. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.mjs +3878 -0
  30. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.mjs +0 -1
  31. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
  32. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.mjs +0 -1
  33. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
  34. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/compose/compose-collection.mjs +67 -0
  35. 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
  36. 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
  37. 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
  38. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.mjs +1 -1
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.mjs +13 -10
  47. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.mjs +1 -1
  48. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.mjs +1 -0
  49. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.mjs +4 -4
  50. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.mjs +10 -3
  51. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.mjs +1 -1
  52. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.mjs +7 -0
  53. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.mjs +9 -2
  54. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.mjs +2 -2
  55. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.mjs +44 -0
  56. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.mjs +1 -1
  57. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.mjs +2 -1
  58. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +28 -4
  59. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +22 -4
  60. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +53 -0
  61. 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
  62. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.mjs +1 -1
  63. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.mjs +1 -0
  64. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.mjs +34 -21
  65. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.mjs +16 -9
  66. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.mjs +2 -0
  67. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.mjs +2 -3
  68. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.mjs +16 -0
  69. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.mjs +16 -0
  70. 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
  71. 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
  72. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.mjs +20 -9
  73. 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
  74. 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
  75. 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
  76. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +48 -0
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +19 -10
  83. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.mjs +8 -2
  84. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +9 -17
  85. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +1 -1
  86. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +40 -17
  87. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +40 -20
  88. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.mjs +1 -1
  89. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.mjs +2 -1
  90. package/build/esm/package.mjs +1 -1
  91. package/build/esm/shared/package-manager.mjs +1 -2
  92. package/build/esm/shared.mjs +1 -3
  93. package/build/esnext/_virtual/index3.esnext +1 -1
  94. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +1 -1
  95. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +1 -1
  96. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +1 -1
  97. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +1 -1
  98. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +1 -1
  99. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +1 -1
  100. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.esnext +2 -2
  101. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.esnext +10 -9
  102. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.esnext +1 -1
  103. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.esnext +9 -9
  104. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.esnext +14 -14
  105. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.esnext +4 -4
  106. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.esnext +9 -3
  107. 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
  108. 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
  109. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.esnext +92 -0
  110. 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
  111. 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
  112. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.esnext +58 -0
  113. 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
  114. package/build/esnext/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.esnext +4 -4
  115. package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +2 -2
  116. package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.esnext +6 -4
  117. package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.esnext +3 -3
  118. package/build/esnext/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.esnext +8 -3
  119. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/babel.esnext +6956 -0
  120. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.esnext +4320 -0
  121. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.esnext +12888 -0
  122. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/yaml.esnext +4156 -0
  123. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.esnext +2369 -0
  124. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/compose/compose-collection.esnext +60 -0
  125. 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
  126. 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
  127. 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
  128. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.esnext +1 -1
  129. 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
  130. 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
  131. 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
  132. 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
  133. 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
  134. 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
  135. 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
  136. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.esnext +8 -13
  137. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.esnext +1 -1
  138. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.esnext +5 -3
  139. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.esnext +10 -4
  140. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.esnext +1 -1
  141. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.esnext +7 -0
  142. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.esnext +8 -2
  143. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.esnext +2 -2
  144. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.esnext +36 -0
  145. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.esnext +1 -1
  146. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.esnext +2 -1
  147. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +31 -4
  148. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.esnext +20 -4
  149. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +8 -38
  150. 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
  151. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.esnext +1 -1
  152. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.esnext +1 -0
  153. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.esnext +45 -33
  154. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.esnext +12 -9
  155. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.esnext +3 -0
  156. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.esnext +2 -3
  157. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.esnext +17 -0
  158. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.esnext +17 -0
  159. 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
  160. 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
  161. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.esnext +22 -11
  162. 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
  163. 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
  164. 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
  165. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.esnext +50 -0
  166. 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
  167. 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
  168. 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
  169. 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
  170. 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
  171. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.esnext +20 -10
  172. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.esnext +9 -2
  173. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.esnext +20 -28
  174. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.esnext +1 -1
  175. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.esnext +44 -23
  176. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +38 -20
  177. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.esnext +1 -1
  178. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.esnext +2 -1
  179. package/build/esnext/package.esnext +1 -1
  180. package/build/esnext/shared/package-manager.esnext +1 -1
  181. package/build/esnext/shared.esnext +5 -6
  182. package/build/tsconfig.tsbuildinfo +1 -1
  183. package/build/typescript/shared/package-manager.d.ts.map +1 -1
  184. package/build/typescript/shared.d.ts.map +1 -1
  185. package/package.json +7 -7
  186. package/source/shared/package-manager.ts +0 -1
  187. package/source/shared.ts +1 -2
  188. package/templates/workspace/_nvmrc +1 -1
  189. package/templates/workspace/package.json +1 -1
  190. package/build/esm/_virtual/patterns.mjs +0 -3
  191. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +0 -32
  192. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +0 -76
  193. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +0 -45
  194. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +0 -6172
  195. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +0 -29
  196. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +0 -4076
  197. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.mjs +0 -58
  198. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.mjs +0 -7
  199. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +0 -83
  200. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.mjs +0 -37
  201. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.mjs +0 -34
  202. package/build/esnext/_virtual/patterns.esnext +0 -3
  203. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +0 -21
  204. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +0 -71
  205. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +0 -38
  206. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +0 -18
  207. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +0 -37
  208. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +0 -29
  209. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +0 -163
  210. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +0 -36
  211. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.esnext +0 -55
  212. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.esnext +0 -10
  213. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.esnext +0 -41
  214. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.esnext +0 -33
  215. /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
  216. /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
  217. /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
  218. /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
  219. /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
  220. /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
  221. /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
  222. /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
  223. /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
  224. /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
  225. /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
  226. /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
  227. /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
  228. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.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/stream.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/string.mjs +0 -0
  231. /package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.mjs +0 -0
  232. /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
  233. /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
  234. /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
  235. /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
  236. /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
  237. /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
  238. /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
  239. /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
  240. /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
  241. /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
  242. /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
  243. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +0 -0
  244. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +0 -0
  245. /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
  246. /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
  247. /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
  248. /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
  249. /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
  250. /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
  251. /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
  252. /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
  253. /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
  254. /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
  255. /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
  256. /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
  257. /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
  258. /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
  259. /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
  260. /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
  261. /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
  262. /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
  263. /package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.esnext +0 -0
  264. /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
  265. /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
  266. /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
  267. /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
  268. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.esnext +0 -0
  269. /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
  270. /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
  271. /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
  272. /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
  273. /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
  274. /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
  275. /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
  276. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.esnext +0 -0
  277. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.esnext +0 -0
@@ -42,7 +42,7 @@ const prettifyError = (src, lc) => (error) => {
42
42
  let count = 1;
43
43
  const end = error.linePos[1];
44
44
  if (end && end.line === line && end.col > col) {
45
- count = Math.min(end.col - col, 80 - ci);
45
+ count = Math.max(1, Math.min(end.col - col, 80 - ci));
46
46
  }
47
47
  const pointer = " ".repeat(ci) + "^".repeat(count);
48
48
  error.message += `:
@@ -0,0 +1,7 @@
1
+ function warn(logLevel, warning) {
2
+ if (logLevel === "debug" || logLevel === "warn") {
3
+ console.warn(warning);
4
+ }
5
+ }
6
+
7
+ export { warn };
@@ -1,6 +1,8 @@
1
1
  import { anchorIsValid } from '../doc/anchors.esnext';
2
2
  import { visit } from '../visit.esnext';
3
- import { NodeBase, ALIAS, isAlias, isCollection, isPair } from './Node.esnext';
3
+ import { ALIAS, isAlias, isCollection, isPair } from './identity.esnext';
4
+ import { NodeBase } from './Node.esnext';
5
+ import { toJS } from './toJS.esnext';
4
6
 
5
7
  class Alias extends NodeBase {
6
8
  constructor(source) {
@@ -37,7 +39,11 @@ class Alias extends NodeBase {
37
39
  const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
38
40
  throw new ReferenceError(msg);
39
41
  }
40
- const data = anchors.get(source);
42
+ let data = anchors.get(source);
43
+ if (!data) {
44
+ toJS(source, null, ctx);
45
+ data = anchors.get(source);
46
+ }
41
47
  if (!data || data.res === void 0) {
42
48
  const msg = "This should not happen: Alias anchor was not resolved?";
43
49
  throw new ReferenceError(msg);
@@ -1,5 +1,6 @@
1
1
  import { createNode } from '../doc/createNode.esnext';
2
- import { NodeBase, isNode, isPair, isCollection, isScalar } from './Node.esnext';
2
+ import { isNode, isPair, isCollection, isScalar } from './identity.esnext';
3
+ import { NodeBase } from './Node.esnext';
3
4
 
4
5
  function collectionFromPath(schema, path, value) {
5
6
  let v = value;
@@ -131,6 +132,5 @@ class Collection extends NodeBase {
131
132
  }
132
133
  }
133
134
  }
134
- Collection.maxFlowStringSingleLineLength = 60;
135
135
 
136
136
  export { Collection, collectionFromPath, isEmptyPath };
@@ -0,0 +1,36 @@
1
+ import { applyReviver } from '../doc/applyReviver.esnext';
2
+ import { NODE_TYPE, isDocument } from './identity.esnext';
3
+ import { toJS } from './toJS.esnext';
4
+
5
+ class NodeBase {
6
+ constructor(type) {
7
+ Object.defineProperty(this, NODE_TYPE, { value: type });
8
+ }
9
+ /** Create a copy of this node. */
10
+ clone() {
11
+ const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
12
+ if (this.range)
13
+ copy.range = this.range.slice();
14
+ return copy;
15
+ }
16
+ /** A plain JavaScript representation of this node. */
17
+ toJS(doc, { mapAsMap, maxAliasCount, onAnchor, reviver } = {}) {
18
+ if (!isDocument(doc))
19
+ throw new TypeError("A document argument is required");
20
+ const ctx = {
21
+ anchors: /* @__PURE__ */ new Map(),
22
+ doc,
23
+ keep: true,
24
+ mapAsMap: mapAsMap === true,
25
+ mapKeyWarned: false,
26
+ maxAliasCount: typeof maxAliasCount === "number" ? maxAliasCount : 100
27
+ };
28
+ const res = toJS(this, "", ctx);
29
+ if (typeof onAnchor === "function")
30
+ for (const { count, res: res2 } of ctx.anchors.values())
31
+ onAnchor(res2, count);
32
+ return typeof reviver === "function" ? applyReviver(reviver, { "": res }, "", res) : res;
33
+ }
34
+ }
35
+
36
+ export { NodeBase };
@@ -1,7 +1,7 @@
1
1
  import { createNode } from '../doc/createNode.esnext';
2
2
  import { stringifyPair } from '../stringify/stringifyPair.esnext';
3
3
  import { addPairToJSMap } from './addPairToJSMap.esnext';
4
- import { NODE_TYPE, PAIR, isNode } from './Node.esnext';
4
+ import { NODE_TYPE, PAIR, isNode } from './identity.esnext';
5
5
 
6
6
  function createPair(key, value, ctx) {
7
7
  const k = createNode(key, void 0, ctx);
@@ -1,4 +1,5 @@
1
- import { NodeBase, SCALAR } from './Node.esnext';
1
+ import { SCALAR } from './identity.esnext';
2
+ import { NodeBase } from './Node.esnext';
2
3
  import { toJS } from './toJS.esnext';
3
4
 
4
5
  const isScalarValue = (value) => !value || typeof value !== "function" && typeof value !== "object";
@@ -1,8 +1,8 @@
1
1
  import { stringifyCollection } from '../stringify/stringifyCollection.esnext';
2
2
  import { addPairToJSMap } from './addPairToJSMap.esnext';
3
3
  import { Collection } from './Collection.esnext';
4
- import { MAP, isPair, isScalar } from './Node.esnext';
5
- import { Pair } from './Pair.esnext';
4
+ import { MAP, isPair, isScalar } from './identity.esnext';
5
+ import { Pair, createPair } from './Pair.esnext';
6
6
  import { isScalarValue } from './Scalar.esnext';
7
7
 
8
8
  function findPair(items, key) {
@@ -18,12 +18,39 @@ function findPair(items, key) {
18
18
  return void 0;
19
19
  }
20
20
  class YAMLMap extends Collection {
21
+ static get tagName() {
22
+ return "tag:yaml.org,2002:map";
23
+ }
21
24
  constructor(schema) {
22
25
  super(MAP, schema);
23
26
  this.items = [];
24
27
  }
25
- static get tagName() {
26
- return "tag:yaml.org,2002:map";
28
+ /**
29
+ * A generic collection parsing method that can be extended
30
+ * to other node classes that inherit from YAMLMap
31
+ */
32
+ static from(schema, obj, ctx) {
33
+ const { keepUndefined, replacer } = ctx;
34
+ const map = new this(schema);
35
+ const add = (key, value) => {
36
+ if (typeof replacer === "function")
37
+ value = replacer.call(obj, key, value);
38
+ else if (Array.isArray(replacer) && !replacer.includes(key))
39
+ return;
40
+ if (value !== void 0 || keepUndefined)
41
+ map.items.push(createPair(key, value, ctx));
42
+ };
43
+ if (obj instanceof Map) {
44
+ for (const [key, value] of obj)
45
+ add(key, value);
46
+ } else if (obj && typeof obj === "object") {
47
+ for (const key of Object.keys(obj))
48
+ add(key, obj[key]);
49
+ }
50
+ if (typeof schema.sortMapEntries === "function") {
51
+ map.items.sort(schema.sortMapEntries);
52
+ }
53
+ return map;
27
54
  }
28
55
  /**
29
56
  * Adds a value to the collection.
@@ -1,17 +1,18 @@
1
+ import { createNode } from '../doc/createNode.esnext';
1
2
  import { stringifyCollection } from '../stringify/stringifyCollection.esnext';
2
3
  import { Collection } from './Collection.esnext';
3
- import { SEQ, isScalar } from './Node.esnext';
4
+ import { SEQ, isScalar } from './identity.esnext';
4
5
  import { isScalarValue } from './Scalar.esnext';
5
6
  import { toJS } from './toJS.esnext';
6
7
 
7
8
  class YAMLSeq extends Collection {
9
+ static get tagName() {
10
+ return "tag:yaml.org,2002:seq";
11
+ }
8
12
  constructor(schema) {
9
13
  super(SEQ, schema);
10
14
  this.items = [];
11
15
  }
12
- static get tagName() {
13
- return "tag:yaml.org,2002:seq";
14
- }
15
16
  add(value) {
16
17
  this.items.push(value);
17
18
  }
@@ -84,6 +85,21 @@ class YAMLSeq extends Collection {
84
85
  onComment
85
86
  });
86
87
  }
88
+ static from(schema, obj, ctx) {
89
+ const { replacer } = ctx;
90
+ const seq = new this(schema);
91
+ if (obj && Symbol.iterator in Object(obj)) {
92
+ let i = 0;
93
+ for (let it of obj) {
94
+ if (typeof replacer === "function") {
95
+ const key = obj instanceof Set ? it : String(i++);
96
+ it = replacer.call(obj, key, it);
97
+ }
98
+ seq.items.push(createNode(it, void 0, ctx));
99
+ }
100
+ }
101
+ return seq;
102
+ }
87
103
  }
88
104
  function asItemIndex(key) {
89
105
  let idx = isScalar(key) ? key.value : key;
@@ -1,22 +1,15 @@
1
1
  import { warn } from '../log.esnext';
2
+ import { isMergeKey, addMergeToJSMap } from '../schema/yaml-1.1/merge.esnext';
2
3
  import { createStringifyContext } from '../stringify/stringify.esnext';
3
- import { isScalar, isAlias, isSeq, isMap, isNode } from './Node.esnext';
4
- import { Scalar } from './Scalar.esnext';
4
+ import { isNode } from './identity.esnext';
5
5
  import { toJS } from './toJS.esnext';
6
6
 
7
- const MERGE_KEY = "<<";
8
7
  function addPairToJSMap(ctx, map, { key, value }) {
9
- if (ctx?.doc.schema.merge && isMergeKey(key)) {
10
- value = isAlias(value) ? value.resolve(ctx.doc) : value;
11
- if (isSeq(value))
12
- for (const it of value.items)
13
- mergeToJSMap(ctx, map, it);
14
- else if (Array.isArray(value))
15
- for (const it of value)
16
- mergeToJSMap(ctx, map, it);
17
- else
18
- mergeToJSMap(ctx, map, value);
19
- } else {
8
+ if (isNode(key) && key.addToJSMap)
9
+ key.addToJSMap(ctx, map, value);
10
+ else if (isMergeKey(ctx, key))
11
+ addMergeToJSMap(ctx, map, value);
12
+ else {
20
13
  const jsKey = toJS(key, "", ctx);
21
14
  if (map instanceof Map) {
22
15
  map.set(jsKey, toJS(value, jsKey, ctx));
@@ -38,35 +31,12 @@ function addPairToJSMap(ctx, map, { key, value }) {
38
31
  }
39
32
  return map;
40
33
  }
41
- const isMergeKey = (key) => key === MERGE_KEY || isScalar(key) && key.value === MERGE_KEY && (!key.type || key.type === Scalar.PLAIN);
42
- function mergeToJSMap(ctx, map, value) {
43
- const source = ctx && isAlias(value) ? value.resolve(ctx.doc) : value;
44
- if (!isMap(source))
45
- throw new Error("Merge sources must be maps or map aliases");
46
- const srcMap = source.toJSON(null, ctx, Map);
47
- for (const [key, value2] of srcMap) {
48
- if (map instanceof Map) {
49
- if (!map.has(key))
50
- map.set(key, value2);
51
- } else if (map instanceof Set) {
52
- map.add(key);
53
- } else if (!Object.prototype.hasOwnProperty.call(map, key)) {
54
- Object.defineProperty(map, key, {
55
- value: value2,
56
- writable: true,
57
- enumerable: true,
58
- configurable: true
59
- });
60
- }
61
- }
62
- return map;
63
- }
64
34
  function stringifyKey(key, jsKey, ctx) {
65
35
  if (jsKey === null)
66
36
  return "";
67
37
  if (typeof jsKey !== "object")
68
38
  return String(jsKey);
69
- if (isNode(key) && ctx && ctx.doc) {
39
+ if (isNode(key) && ctx?.doc) {
70
40
  const strCtx = createStringifyContext(ctx.doc, {});
71
41
  strCtx.anchors = /* @__PURE__ */ new Set();
72
42
  for (const node of ctx.anchors.keys())
@@ -32,17 +32,5 @@ function isNode(node) {
32
32
  return false;
33
33
  }
34
34
  const hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor;
35
- class NodeBase {
36
- constructor(type) {
37
- Object.defineProperty(this, NODE_TYPE, { value: type });
38
- }
39
- /** Create a copy of this node. */
40
- clone() {
41
- const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
42
- if (this.range)
43
- copy.range = this.range.slice();
44
- return copy;
45
- }
46
- }
47
35
 
48
- export { ALIAS, DOC, MAP, NODE_TYPE, NodeBase, PAIR, SCALAR, SEQ, hasAnchor, isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq };
36
+ export { ALIAS, DOC, MAP, NODE_TYPE, PAIR, SCALAR, SEQ, hasAnchor, isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq };
@@ -1,4 +1,4 @@
1
- import { hasAnchor } from './Node.esnext';
1
+ import { hasAnchor } from './identity.esnext';
2
2
 
3
3
  function toJS(value, arg, ctx) {
4
4
  if (Array.isArray(value))
@@ -1,4 +1,5 @@
1
1
  import '../nodes/Scalar.esnext';
2
+ import '../stringify/stringifyString.esnext';
2
3
 
3
4
  const BOM = "\uFEFF";
4
5
  const DOCUMENT = "";
@@ -12,11 +12,11 @@ function isEmpty(ch) {
12
12
  return false;
13
13
  }
14
14
  }
15
- const hexDigits = "0123456789ABCDEFabcdef".split("");
16
- const tagChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split("");
17
- const invalidFlowScalarChars = ",[]{}".split("");
18
- const invalidAnchorChars = " ,[]{}\n\r ".split("");
19
- const isNotAnchorChar = (ch) => !ch || invalidAnchorChars.includes(ch);
15
+ const hexDigits = new Set("0123456789ABCDEFabcdef");
16
+ const tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
17
+ const flowIndicatorChars = new Set(",[]{}");
18
+ const invalidAnchorChars = new Set(" ,[]{}\n\r ");
19
+ const isNotAnchorChar = (ch) => !ch || invalidAnchorChars.has(ch);
20
20
  class Lexer {
21
21
  constructor() {
22
22
  this.atEnd = false;
@@ -39,6 +39,8 @@ class Lexer {
39
39
  */
40
40
  *lex(source, incomplete = false) {
41
41
  if (source) {
42
+ if (typeof source !== "string")
43
+ throw TypeError("source is not a string");
42
44
  this.buffer = this.buffer ? this.buffer + source : source;
43
45
  this.lineEndPos = null;
44
46
  }
@@ -136,11 +138,15 @@ class Lexer {
136
138
  }
137
139
  if (line[0] === "%") {
138
140
  let dirEnd = line.length;
139
- const cs = line.indexOf("#");
140
- if (cs !== -1) {
141
+ let cs = line.indexOf("#");
142
+ while (cs !== -1) {
141
143
  const ch = line[cs - 1];
142
- if (ch === " " || ch === " ")
144
+ if (ch === " " || ch === " ") {
143
145
  dirEnd = cs - 1;
146
+ break;
147
+ } else {
148
+ cs = line.indexOf("#", cs + 1);
149
+ }
144
150
  }
145
151
  while (true) {
146
152
  const ch = line[dirEnd - 1];
@@ -171,14 +177,11 @@ class Lexer {
171
177
  if (!this.atEnd && !this.hasChars(4))
172
178
  return this.setNext("line-start");
173
179
  const s = this.peek(3);
174
- if (s === "---" && isEmpty(this.charAt(3))) {
180
+ if ((s === "---" || s === "...") && isEmpty(this.charAt(3))) {
175
181
  yield* this.pushCount(3);
176
182
  this.indentValue = 0;
177
183
  this.indentNext = 0;
178
- return "doc";
179
- } else if (s === "..." && isEmpty(this.charAt(3))) {
180
- yield* this.pushCount(3);
181
- return "stream";
184
+ return s === "---" ? "doc" : "stream";
182
185
  }
183
186
  }
184
187
  this.indentValue = yield* this.pushSpaces(false);
@@ -365,17 +368,17 @@ class Lexer {
365
368
  let nl = this.pos - 1;
366
369
  let indent = 0;
367
370
  let ch;
368
- loop: for (let i = this.pos; ch = this.buffer[i]; ++i) {
371
+ loop: for (let i2 = this.pos; ch = this.buffer[i2]; ++i2) {
369
372
  switch (ch) {
370
373
  case " ":
371
374
  indent += 1;
372
375
  break;
373
376
  case "\n":
374
- nl = i;
377
+ nl = i2;
375
378
  indent = 0;
376
379
  break;
377
380
  case "\r": {
378
- const next = this.buffer[i + 1];
381
+ const next = this.buffer[i2 + 1];
379
382
  if (!next && !this.atEnd)
380
383
  return this.setNext("block-scalar");
381
384
  if (next === "\n")
@@ -391,8 +394,9 @@ class Lexer {
391
394
  if (indent >= this.indentNext) {
392
395
  if (this.blockScalarIndent === -1)
393
396
  this.indentNext = indent;
394
- else
395
- this.indentNext += this.blockScalarIndent;
397
+ else {
398
+ this.indentNext = this.blockScalarIndent + (this.indentNext === 0 ? 1 : this.indentNext);
399
+ }
396
400
  do {
397
401
  const cs = this.continueScalar(nl + 1);
398
402
  if (cs === -1)
@@ -405,17 +409,25 @@ class Lexer {
405
409
  nl = this.buffer.length;
406
410
  }
407
411
  }
408
- if (!this.blockScalarKeep) {
412
+ let i = nl + 1;
413
+ ch = this.buffer[i];
414
+ while (ch === " ")
415
+ ch = this.buffer[++i];
416
+ if (ch === " ") {
417
+ while (ch === " " || ch === " " || ch === "\r" || ch === "\n")
418
+ ch = this.buffer[++i];
419
+ nl = i - 1;
420
+ } else if (!this.blockScalarKeep) {
409
421
  do {
410
- let i = nl - 1;
411
- let ch2 = this.buffer[i];
422
+ let i2 = nl - 1;
423
+ let ch2 = this.buffer[i2];
412
424
  if (ch2 === "\r")
413
- ch2 = this.buffer[--i];
414
- const lastChar = i;
415
- while (ch2 === " " || ch2 === " ")
416
- ch2 = this.buffer[--i];
417
- if (ch2 === "\n" && i >= this.pos && i + 1 + indent > lastChar)
418
- nl = i;
425
+ ch2 = this.buffer[--i2];
426
+ const lastChar = i2;
427
+ while (ch2 === " ")
428
+ ch2 = this.buffer[--i2];
429
+ if (ch2 === "\n" && i2 >= this.pos && i2 + 1 + indent > lastChar)
430
+ nl = i2;
419
431
  else
420
432
  break;
421
433
  } while (true);
@@ -432,7 +444,7 @@ class Lexer {
432
444
  while (ch = this.buffer[++i]) {
433
445
  if (ch === ":") {
434
446
  const next = this.buffer[i + 1];
435
- if (isEmpty(next) || inFlow && next === ",")
447
+ if (isEmpty(next) || inFlow && flowIndicatorChars.has(next))
436
448
  break;
437
449
  end = i;
438
450
  } else if (isEmpty(ch)) {
@@ -445,7 +457,7 @@ class Lexer {
445
457
  } else
446
458
  end = i;
447
459
  }
448
- if (next === "#" || inFlow && invalidFlowScalarChars.includes(next))
460
+ if (next === "#" || inFlow && flowIndicatorChars.has(next))
449
461
  break;
450
462
  if (ch === "\n") {
451
463
  const cs = this.continueScalar(i + 1);
@@ -454,7 +466,7 @@ class Lexer {
454
466
  i = Math.max(i, cs - 2);
455
467
  }
456
468
  } else {
457
- if (inFlow && invalidFlowScalarChars.includes(ch))
469
+ if (inFlow && flowIndicatorChars.has(ch))
458
470
  break;
459
471
  end = i;
460
472
  }
@@ -496,7 +508,7 @@ class Lexer {
496
508
  case ":": {
497
509
  const inFlow = this.flowLevel > 0;
498
510
  const ch1 = this.charAt(1);
499
- if (isEmpty(ch1) || inFlow && invalidFlowScalarChars.includes(ch1)) {
511
+ if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
500
512
  if (!inFlow)
501
513
  this.indentNext = this.indentValue + 1;
502
514
  else if (this.flowKey)
@@ -518,9 +530,9 @@ class Lexer {
518
530
  let i = this.pos + 1;
519
531
  let ch = this.buffer[i];
520
532
  while (ch) {
521
- if (tagChars.includes(ch))
533
+ if (tagChars.has(ch))
522
534
  ch = this.buffer[++i];
523
- else if (ch === "%" && hexDigits.includes(this.buffer[i + 1]) && hexDigits.includes(this.buffer[i + 2])) {
535
+ else if (ch === "%" && hexDigits.has(this.buffer[i + 1]) && hexDigits.has(this.buffer[i + 2])) {
524
536
  ch = this.buffer[i += 3];
525
537
  } else
526
538
  break;
@@ -251,7 +251,7 @@ class Parser {
251
251
  it.value = token;
252
252
  } else {
253
253
  Object.assign(it, { key: token, sep: [] });
254
- this.onKeyLine = !includesToken(it.start, "explicit-key-ind");
254
+ this.onKeyLine = !it.explicitKey;
255
255
  return;
256
256
  }
257
257
  break;
@@ -442,7 +442,8 @@ class Parser {
442
442
  return;
443
443
  }
444
444
  if (this.indent >= map.indent) {
445
- const atNextItem = !this.onKeyLine && this.indent === map.indent && it.sep;
445
+ const atMapIndent = !this.onKeyLine && this.indent === map.indent;
446
+ const atNextItem = atMapIndent && (it.sep || it.explicitKey) && this.type !== "seq-item-ind";
446
447
  let start = [];
447
448
  if (atNextItem && it.sep && !it.value) {
448
449
  const nl = [];
@@ -479,23 +480,24 @@ class Parser {
479
480
  }
480
481
  return;
481
482
  case "explicit-key-ind":
482
- if (!it.sep && !includesToken(it.start, "explicit-key-ind")) {
483
+ if (!it.sep && !it.explicitKey) {
483
484
  it.start.push(this.sourceToken);
485
+ it.explicitKey = true;
484
486
  } else if (atNextItem || it.value) {
485
487
  start.push(this.sourceToken);
486
- map.items.push({ start });
488
+ map.items.push({ start, explicitKey: true });
487
489
  } else {
488
490
  this.stack.push({
489
491
  type: "block-map",
490
492
  offset: this.offset,
491
493
  indent: this.indent,
492
- items: [{ start: [this.sourceToken] }]
494
+ items: [{ start: [this.sourceToken], explicitKey: true }]
493
495
  });
494
496
  }
495
497
  this.onKeyLine = true;
496
498
  return;
497
499
  case "map-value-ind":
498
- if (includesToken(it.start, "explicit-key-ind")) {
500
+ if (it.explicitKey) {
499
501
  if (!it.sep) {
500
502
  if (includesToken(it.start, "newline")) {
501
503
  Object.assign(it, { key: null, sep: [this.sourceToken] });
@@ -522,7 +524,8 @@ class Parser {
522
524
  const key = it.key;
523
525
  const sep = it.sep;
524
526
  sep.push(this.sourceToken);
525
- delete it.key, delete it.sep;
527
+ delete it.key;
528
+ delete it.sep;
526
529
  this.stack.push({
527
530
  type: "block-map",
528
531
  offset: this.offset,
@@ -571,7 +574,7 @@ class Parser {
571
574
  default: {
572
575
  const bv = this.startBlockValue(map);
573
576
  if (bv) {
574
- if (atNextItem && bv.type !== "block-seq" && includesToken(it.start, "explicit-key-ind")) {
577
+ if (atMapIndent && bv.type !== "block-seq") {
575
578
  map.items.push({ start });
576
579
  }
577
580
  this.stack.push(bv);
@@ -782,7 +785,7 @@ class Parser {
782
785
  type: "block-map",
783
786
  offset: this.offset,
784
787
  indent: this.indent,
785
- items: [{ start }]
788
+ items: [{ start, explicitKey: true }]
786
789
  };
787
790
  }
788
791
  case "map-value-ind": {
@@ -2,6 +2,7 @@ import { Composer } from './compose/composer.esnext';
2
2
  import { Document } from './doc/Document.esnext';
3
3
  import { prettifyError, YAMLParseError } from './errors.esnext';
4
4
  import { warn } from './log.esnext';
5
+ import { isDocument } from './nodes/identity.esnext';
5
6
  import { LineCounter } from './parse/line-counter.esnext';
6
7
  import { Parser } from './parse/parser.esnext';
7
8
 
@@ -66,6 +67,8 @@ function stringify(value, replacer, options) {
66
67
  if (!keepUndefined)
67
68
  return void 0;
68
69
  }
70
+ if (isDocument(value) && !_replacer)
71
+ return value.toString(options);
69
72
  return new Document(value, _replacer, options).toString(options);
70
73
  }
71
74
 
@@ -1,4 +1,4 @@
1
- import { MAP, SCALAR, SEQ } from '../nodes/Node.esnext';
1
+ import { MAP, SCALAR, SEQ } from '../nodes/identity.esnext';
2
2
  import { map } from './common/map.esnext';
3
3
  import { seq } from './common/seq.esnext';
4
4
  import { string } from './common/string.esnext';
@@ -8,10 +8,9 @@ const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0
8
8
  class Schema {
9
9
  constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
10
10
  this.compat = Array.isArray(compat) ? getTags(compat, "compat") : compat ? getTags(null, compat) : null;
11
- this.merge = !!merge;
12
11
  this.name = typeof schema === "string" && schema || "core";
13
12
  this.knownTags = resolveKnownTags ? coreKnownTags : {};
14
- this.tags = getTags(customTags, this.name);
13
+ this.tags = getTags(customTags, this.name, merge);
15
14
  this.toStringOptions = toStringDefaults ?? null;
16
15
  Object.defineProperty(this, MAP, { value: map });
17
16
  Object.defineProperty(this, SCALAR, { value: string });
@@ -0,0 +1,17 @@
1
+ import { isMap } from '../../nodes/identity.esnext';
2
+ import { YAMLMap } from '../../nodes/YAMLMap.esnext';
3
+
4
+ const map = {
5
+ collection: "map",
6
+ default: true,
7
+ nodeClass: YAMLMap,
8
+ tag: "tag:yaml.org,2002:map",
9
+ resolve(map2, onError) {
10
+ if (!isMap(map2))
11
+ onError("Expected a mapping for this tag");
12
+ return map2;
13
+ },
14
+ createNode: (schema, obj, ctx) => YAMLMap.from(schema, obj, ctx)
15
+ };
16
+
17
+ export { map };
@@ -0,0 +1,17 @@
1
+ import { isSeq } from '../../nodes/identity.esnext';
2
+ import { YAMLSeq } from '../../nodes/YAMLSeq.esnext';
3
+
4
+ const seq = {
5
+ collection: "seq",
6
+ default: true,
7
+ nodeClass: YAMLSeq,
8
+ tag: "tag:yaml.org,2002:seq",
9
+ resolve(seq2, onError) {
10
+ if (!isSeq(seq2))
11
+ onError("Expected a sequence for this tag");
12
+ return seq2;
13
+ },
14
+ createNode: (schema, obj, ctx) => YAMLSeq.from(schema, obj, ctx)
15
+ };
16
+
17
+ export { seq };
@@ -5,7 +5,7 @@ const floatNaN = {
5
5
  identify: (value) => typeof value === "number",
6
6
  default: true,
7
7
  tag: "tag:yaml.org,2002:float",
8
- test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,
8
+ test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
9
9
  resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
10
10
  stringify: stringifyNumber
11
11
  };
@@ -27,7 +27,7 @@ const jsonScalars = [
27
27
  identify: (value) => typeof value === "boolean",
28
28
  default: true,
29
29
  tag: "tag:yaml.org,2002:bool",
30
- test: /^true|false$/,
30
+ test: /^true$|^false$/,
31
31
  resolve: (str) => str === "true",
32
32
  stringify: stringifyJSON
33
33
  },