@windrun-huaiin/dev-scripts 14.1.3 → 14.1.4

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 (236) hide show
  1. package/dist/commands/create-diaomao-app.d.ts.map +1 -1
  2. package/dist/commands/create-diaomao-app.js +2 -0
  3. package/dist/commands/create-diaomao-app.mjs +2 -0
  4. package/package.json +1 -1
  5. package/dist/_virtual/_commonjsHelpers.js +0 -7
  6. package/dist/_virtual/_commonjsHelpers.mjs +0 -5
  7. package/dist/_virtual/index.js +0 -11
  8. package/dist/_virtual/index.mjs +0 -7
  9. package/dist/_virtual/re.js +0 -5
  10. package/dist/_virtual/re.mjs +0 -3
  11. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js +0 -161
  12. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.mjs +0 -159
  13. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js +0 -576
  14. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.mjs +0 -574
  15. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js +0 -350
  16. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.mjs +0 -348
  17. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js +0 -21
  18. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.mjs +0 -19
  19. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js +0 -72
  20. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.mjs +0 -70
  21. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js +0 -77
  22. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.mjs +0 -75
  23. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js +0 -22
  24. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.mjs +0 -20
  25. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js +0 -18
  26. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.mjs +0 -16
  27. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js +0 -20
  28. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.mjs +0 -18
  29. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js +0 -73
  30. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.mjs +0 -71
  31. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js +0 -18
  32. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.mjs +0 -16
  33. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js +0 -18
  34. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.mjs +0 -16
  35. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js +0 -18
  36. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.mjs +0 -16
  37. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js +0 -34
  38. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.mjs +0 -32
  39. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js +0 -18
  40. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.mjs +0 -16
  41. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js +0 -18
  42. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.mjs +0 -16
  43. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js +0 -18
  44. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.mjs +0 -16
  45. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js +0 -18
  46. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.mjs +0 -16
  47. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js +0 -18
  48. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.mjs +0 -16
  49. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js +0 -31
  50. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.mjs +0 -29
  51. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js +0 -18
  52. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.mjs +0 -16
  53. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js +0 -21
  54. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.mjs +0 -19
  55. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js +0 -18
  56. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.mjs +0 -16
  57. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js +0 -18
  58. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.mjs +0 -16
  59. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js +0 -25
  60. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.mjs +0 -23
  61. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js +0 -18
  62. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.mjs +0 -16
  63. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js +0 -21
  64. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.mjs +0 -19
  65. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js +0 -144
  66. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.mjs +0 -142
  67. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js +0 -48
  68. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.mjs +0 -46
  69. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js +0 -22
  70. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.mjs +0 -20
  71. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js +0 -40
  72. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.mjs +0 -38
  73. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js +0 -53
  74. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.mjs +0 -51
  75. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js +0 -28
  76. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.mjs +0 -26
  77. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js +0 -239
  78. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.mjs +0 -237
  79. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js +0 -19
  80. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.mjs +0 -17
  81. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js +0 -22
  82. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.mjs +0 -20
  83. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js +0 -19
  84. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.mjs +0 -17
  85. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js +0 -41
  86. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.mjs +0 -39
  87. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js +0 -40
  88. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.mjs +0 -38
  89. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js +0 -78
  90. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.mjs +0 -76
  91. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js +0 -102
  92. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.mjs +0 -100
  93. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js +0 -63
  94. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.mjs +0 -61
  95. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js +0 -265
  96. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.mjs +0 -263
  97. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js +0 -23
  98. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.mjs +0 -21
  99. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js +0 -26
  100. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.mjs +0 -24
  101. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-collection.js +0 -90
  102. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-collection.mjs +0 -88
  103. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-doc.js +0 -45
  104. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-doc.mjs +0 -43
  105. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-node.js +0 -105
  106. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-node.mjs +0 -102
  107. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-scalar.js +0 -88
  108. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-scalar.mjs +0 -86
  109. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/composer.js +0 -219
  110. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/composer.mjs +0 -217
  111. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-map.js +0 -117
  112. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-map.mjs +0 -115
  113. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +0 -200
  114. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-scalar.mjs +0 -198
  115. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +0 -51
  116. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-seq.mjs +0 -49
  117. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-end.js +0 -39
  118. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-end.mjs +0 -37
  119. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +0 -209
  120. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-collection.mjs +0 -207
  121. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +0 -225
  122. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.mjs +0 -223
  123. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-props.js +0 -148
  124. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-props.mjs +0 -146
  125. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-contains-newline.js +0 -36
  126. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-contains-newline.mjs +0 -34
  127. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +0 -28
  128. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.mjs +0 -26
  129. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +0 -17
  130. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-flow-indent-check.mjs +0 -15
  131. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-map-includes.js +0 -15
  132. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-map-includes.mjs +0 -13
  133. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/Document.js +0 -337
  134. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/Document.mjs +0 -335
  135. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/anchors.js +0 -76
  136. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/anchors.mjs +0 -71
  137. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/applyReviver.js +0 -57
  138. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/applyReviver.mjs +0 -55
  139. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/createNode.js +0 -90
  140. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/createNode.mjs +0 -88
  141. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/directives.js +0 -178
  142. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/directives.mjs +0 -176
  143. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/errors.js +0 -62
  144. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/errors.mjs +0 -57
  145. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/log.js +0 -9
  146. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/log.mjs +0 -7
  147. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Alias.js +0 -116
  148. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Alias.mjs +0 -114
  149. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Collection.js +0 -151
  150. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Collection.mjs +0 -147
  151. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Node.js +0 -40
  152. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Node.mjs +0 -38
  153. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Pair.js +0 -39
  154. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Pair.mjs +0 -36
  155. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Scalar.js +0 -27
  156. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Scalar.mjs +0 -24
  157. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLMap.js +0 -147
  158. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +0 -144
  159. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +0 -115
  160. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +0 -113
  161. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +0 -65
  162. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +0 -63
  163. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/identity.js +0 -53
  164. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/identity.mjs +0 -36
  165. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/toJS.js +0 -39
  166. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/toJS.mjs +0 -37
  167. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/cst.js +0 -79
  168. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/cst.mjs +0 -73
  169. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/lexer.js +0 -719
  170. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/lexer.mjs +0 -717
  171. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/line-counter.js +0 -41
  172. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/line-counter.mjs +0 -39
  173. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/parser.js +0 -969
  174. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/parser.mjs +0 -967
  175. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/public-api.js +0 -68
  176. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/public-api.mjs +0 -64
  177. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/Schema.js +0 -39
  178. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/Schema.mjs +0 -37
  179. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/map.js +0 -19
  180. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/map.mjs +0 -17
  181. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/null.js +0 -17
  182. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/null.mjs +0 -15
  183. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/seq.js +0 -19
  184. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/seq.mjs +0 -17
  185. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/string.js +0 -16
  186. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/string.mjs +0 -14
  187. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/bool.js +0 -21
  188. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/bool.mjs +0 -19
  189. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/float.js +0 -47
  190. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/float.mjs +0 -43
  191. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/int.js +0 -42
  192. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/int.mjs +0 -38
  193. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/schema.js +0 -25
  194. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/schema.mjs +0 -23
  195. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/json/schema.js +0 -64
  196. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/json/schema.mjs +0 -62
  197. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/tags.js +0 -99
  198. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/tags.mjs +0 -96
  199. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +0 -60
  200. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.mjs +0 -58
  201. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +0 -29
  202. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.mjs +0 -26
  203. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +0 -50
  204. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/float.mjs +0 -46
  205. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +0 -76
  206. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/int.mjs +0 -71
  207. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +0 -68
  208. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +0 -64
  209. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +0 -77
  210. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +0 -74
  211. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +0 -82
  212. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +0 -78
  213. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +0 -41
  214. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.mjs +0 -39
  215. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +0 -96
  216. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +0 -93
  217. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +0 -105
  218. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.mjs +0 -101
  219. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +0 -151
  220. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +0 -146
  221. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringify.js +0 -131
  222. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringify.mjs +0 -128
  223. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +0 -145
  224. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +0 -143
  225. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyComment.js +0 -24
  226. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +0 -20
  227. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +0 -87
  228. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +0 -85
  229. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +0 -26
  230. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +0 -24
  231. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyPair.js +0 -152
  232. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +0 -150
  233. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyString.js +0 -338
  234. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +0 -336
  235. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/visit.js +0 -148
  236. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/visit.mjs +0 -146
@@ -1,68 +0,0 @@
1
- 'use strict';
2
-
3
- var composer = require('./compose/composer.js');
4
- var Document = require('./doc/Document.js');
5
- var errors = require('./errors.js');
6
- var log = require('./log.js');
7
- var identity = require('./nodes/identity.js');
8
- var lineCounter = require('./parse/line-counter.js');
9
- var parser = require('./parse/parser.js');
10
-
11
- function parseOptions(options) {
12
- const prettyErrors = options.prettyErrors !== false;
13
- const lineCounter$1 = options.lineCounter || (prettyErrors && new lineCounter.LineCounter()) || null;
14
- return { lineCounter: lineCounter$1, prettyErrors };
15
- }
16
- /** Parse an input string into a single YAML.Document */
17
- function parseDocument(source, options = {}) {
18
- const { lineCounter, prettyErrors } = parseOptions(options);
19
- const parser$1 = new parser.Parser(lineCounter?.addNewLine);
20
- const composer$1 = new composer.Composer(options);
21
- // `doc` is always set by compose.end(true) at the very latest
22
- let doc = null;
23
- for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) {
24
- if (!doc)
25
- doc = _doc;
26
- else if (doc.options.logLevel !== 'silent') {
27
- doc.errors.push(new errors.YAMLParseError(_doc.range.slice(0, 2), 'MULTIPLE_DOCS', 'Source contains multiple documents; please use YAML.parseAllDocuments()'));
28
- break;
29
- }
30
- }
31
- if (prettyErrors && lineCounter) {
32
- doc.errors.forEach(errors.prettifyError(source, lineCounter));
33
- doc.warnings.forEach(errors.prettifyError(source, lineCounter));
34
- }
35
- return doc;
36
- }
37
- function parse(src, reviver, options) {
38
- let _reviver = undefined;
39
- const doc = parseDocument(src, options);
40
- if (!doc)
41
- return null;
42
- doc.warnings.forEach(warning => log.warn(doc.options.logLevel, warning));
43
- if (doc.errors.length > 0) {
44
- if (doc.options.logLevel !== 'silent')
45
- throw doc.errors[0];
46
- else
47
- doc.errors = [];
48
- }
49
- return doc.toJS(Object.assign({ reviver: _reviver }, options));
50
- }
51
- function stringify(value, replacer, options) {
52
- let _replacer = null;
53
- if (Array.isArray(replacer)) {
54
- _replacer = replacer;
55
- }
56
- if (value === undefined) {
57
- const { keepUndefined } = {};
58
- if (!keepUndefined)
59
- return undefined;
60
- }
61
- if (identity.isDocument(value) && !_replacer)
62
- return value.toString(options);
63
- return new Document.Document(value, _replacer, options).toString(options);
64
- }
65
-
66
- exports.parse = parse;
67
- exports.parseDocument = parseDocument;
68
- exports.stringify = stringify;
@@ -1,64 +0,0 @@
1
- import { Composer } from './compose/composer.mjs';
2
- import { Document } from './doc/Document.mjs';
3
- import { prettifyError, YAMLParseError } from './errors.mjs';
4
- import { warn } from './log.mjs';
5
- import { isDocument } from './nodes/identity.mjs';
6
- import { LineCounter } from './parse/line-counter.mjs';
7
- import { Parser } from './parse/parser.mjs';
8
-
9
- function parseOptions(options) {
10
- const prettyErrors = options.prettyErrors !== false;
11
- const lineCounter = options.lineCounter || (prettyErrors && new LineCounter()) || null;
12
- return { lineCounter, prettyErrors };
13
- }
14
- /** Parse an input string into a single YAML.Document */
15
- function parseDocument(source, options = {}) {
16
- const { lineCounter, prettyErrors } = parseOptions(options);
17
- const parser = new Parser(lineCounter?.addNewLine);
18
- const composer = new Composer(options);
19
- // `doc` is always set by compose.end(true) at the very latest
20
- let doc = null;
21
- for (const _doc of composer.compose(parser.parse(source), true, source.length)) {
22
- if (!doc)
23
- doc = _doc;
24
- else if (doc.options.logLevel !== 'silent') {
25
- doc.errors.push(new YAMLParseError(_doc.range.slice(0, 2), 'MULTIPLE_DOCS', 'Source contains multiple documents; please use YAML.parseAllDocuments()'));
26
- break;
27
- }
28
- }
29
- if (prettyErrors && lineCounter) {
30
- doc.errors.forEach(prettifyError(source, lineCounter));
31
- doc.warnings.forEach(prettifyError(source, lineCounter));
32
- }
33
- return doc;
34
- }
35
- function parse(src, reviver, options) {
36
- let _reviver = undefined;
37
- const doc = parseDocument(src, options);
38
- if (!doc)
39
- return null;
40
- doc.warnings.forEach(warning => warn(doc.options.logLevel, warning));
41
- if (doc.errors.length > 0) {
42
- if (doc.options.logLevel !== 'silent')
43
- throw doc.errors[0];
44
- else
45
- doc.errors = [];
46
- }
47
- return doc.toJS(Object.assign({ reviver: _reviver }, options));
48
- }
49
- function stringify(value, replacer, options) {
50
- let _replacer = null;
51
- if (Array.isArray(replacer)) {
52
- _replacer = replacer;
53
- }
54
- if (value === undefined) {
55
- const { keepUndefined } = {};
56
- if (!keepUndefined)
57
- return undefined;
58
- }
59
- if (isDocument(value) && !_replacer)
60
- return value.toString(options);
61
- return new Document(value, _replacer, options).toString(options);
62
- }
63
-
64
- export { parse, parseDocument, stringify };
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- var identity = require('../nodes/identity.js');
4
- var map = require('./common/map.js');
5
- var seq = require('./common/seq.js');
6
- var string = require('./common/string.js');
7
- var tags = require('./tags.js');
8
-
9
- const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
10
- class Schema {
11
- constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
12
- this.compat = Array.isArray(compat)
13
- ? tags.getTags(compat, 'compat')
14
- : compat
15
- ? tags.getTags(null, compat)
16
- : null;
17
- this.name = (typeof schema === 'string' && schema) || 'core';
18
- this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
19
- this.tags = tags.getTags(customTags, this.name, merge);
20
- this.toStringOptions = toStringDefaults ?? null;
21
- Object.defineProperty(this, identity.MAP, { value: map.map });
22
- Object.defineProperty(this, identity.SCALAR, { value: string.string });
23
- Object.defineProperty(this, identity.SEQ, { value: seq.seq });
24
- // Used by createMap()
25
- this.sortMapEntries =
26
- typeof sortMapEntries === 'function'
27
- ? sortMapEntries
28
- : sortMapEntries === true
29
- ? sortMapEntriesByKey
30
- : null;
31
- }
32
- clone() {
33
- const copy = Object.create(Schema.prototype, Object.getOwnPropertyDescriptors(this));
34
- copy.tags = this.tags.slice();
35
- return copy;
36
- }
37
- }
38
-
39
- exports.Schema = Schema;
@@ -1,37 +0,0 @@
1
- import { MAP, SCALAR, SEQ } from '../nodes/identity.mjs';
2
- import { map } from './common/map.mjs';
3
- import { seq } from './common/seq.mjs';
4
- import { string } from './common/string.mjs';
5
- import { getTags, coreKnownTags } from './tags.mjs';
6
-
7
- const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
8
- class Schema {
9
- constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
10
- this.compat = Array.isArray(compat)
11
- ? getTags(compat, 'compat')
12
- : compat
13
- ? getTags(null, compat)
14
- : null;
15
- this.name = (typeof schema === 'string' && schema) || 'core';
16
- this.knownTags = resolveKnownTags ? coreKnownTags : {};
17
- this.tags = getTags(customTags, this.name, merge);
18
- this.toStringOptions = toStringDefaults ?? null;
19
- Object.defineProperty(this, MAP, { value: map });
20
- Object.defineProperty(this, SCALAR, { value: string });
21
- Object.defineProperty(this, SEQ, { value: seq });
22
- // Used by createMap()
23
- this.sortMapEntries =
24
- typeof sortMapEntries === 'function'
25
- ? sortMapEntries
26
- : sortMapEntries === true
27
- ? sortMapEntriesByKey
28
- : null;
29
- }
30
- clone() {
31
- const copy = Object.create(Schema.prototype, Object.getOwnPropertyDescriptors(this));
32
- copy.tags = this.tags.slice();
33
- return copy;
34
- }
35
- }
36
-
37
- export { Schema };
@@ -1,19 +0,0 @@
1
- 'use strict';
2
-
3
- var identity = require('../../nodes/identity.js');
4
- var YAMLMap = require('../../nodes/YAMLMap.js');
5
-
6
- const map = {
7
- collection: 'map',
8
- default: true,
9
- nodeClass: YAMLMap.YAMLMap,
10
- tag: 'tag:yaml.org,2002:map',
11
- resolve(map, onError) {
12
- if (!identity.isMap(map))
13
- onError('Expected a mapping for this tag');
14
- return map;
15
- },
16
- createNode: (schema, obj, ctx) => YAMLMap.YAMLMap.from(schema, obj, ctx)
17
- };
18
-
19
- exports.map = map;
@@ -1,17 +0,0 @@
1
- import { isMap } from '../../nodes/identity.mjs';
2
- import { YAMLMap } from '../../nodes/YAMLMap.mjs';
3
-
4
- const map = {
5
- collection: 'map',
6
- default: true,
7
- nodeClass: YAMLMap,
8
- tag: 'tag:yaml.org,2002:map',
9
- resolve(map, onError) {
10
- if (!isMap(map))
11
- onError('Expected a mapping for this tag');
12
- return map;
13
- },
14
- createNode: (schema, obj, ctx) => YAMLMap.from(schema, obj, ctx)
15
- };
16
-
17
- export { map };
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var Scalar = require('../../nodes/Scalar.js');
4
-
5
- const nullTag = {
6
- identify: value => value == null,
7
- createNode: () => new Scalar.Scalar(null),
8
- default: true,
9
- tag: 'tag:yaml.org,2002:null',
10
- test: /^(?:~|[Nn]ull|NULL)?$/,
11
- resolve: () => new Scalar.Scalar(null),
12
- stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
13
- ? source
14
- : ctx.options.nullStr
15
- };
16
-
17
- exports.nullTag = nullTag;
@@ -1,15 +0,0 @@
1
- import { Scalar } from '../../nodes/Scalar.mjs';
2
-
3
- const nullTag = {
4
- identify: value => value == null,
5
- createNode: () => new Scalar(null),
6
- default: true,
7
- tag: 'tag:yaml.org,2002:null',
8
- test: /^(?:~|[Nn]ull|NULL)?$/,
9
- resolve: () => new Scalar(null),
10
- stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
11
- ? source
12
- : ctx.options.nullStr
13
- };
14
-
15
- export { nullTag };
@@ -1,19 +0,0 @@
1
- 'use strict';
2
-
3
- var identity = require('../../nodes/identity.js');
4
- var YAMLSeq = require('../../nodes/YAMLSeq.js');
5
-
6
- const seq = {
7
- collection: 'seq',
8
- default: true,
9
- nodeClass: YAMLSeq.YAMLSeq,
10
- tag: 'tag:yaml.org,2002:seq',
11
- resolve(seq, onError) {
12
- if (!identity.isSeq(seq))
13
- onError('Expected a sequence for this tag');
14
- return seq;
15
- },
16
- createNode: (schema, obj, ctx) => YAMLSeq.YAMLSeq.from(schema, obj, ctx)
17
- };
18
-
19
- exports.seq = seq;
@@ -1,17 +0,0 @@
1
- import { isSeq } from '../../nodes/identity.mjs';
2
- import { YAMLSeq } from '../../nodes/YAMLSeq.mjs';
3
-
4
- const seq = {
5
- collection: 'seq',
6
- default: true,
7
- nodeClass: YAMLSeq,
8
- tag: 'tag:yaml.org,2002:seq',
9
- resolve(seq, onError) {
10
- if (!isSeq(seq))
11
- onError('Expected a sequence for this tag');
12
- return seq;
13
- },
14
- createNode: (schema, obj, ctx) => YAMLSeq.from(schema, obj, ctx)
15
- };
16
-
17
- export { seq };
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- var stringifyString = require('../../stringify/stringifyString.js');
4
-
5
- const string = {
6
- identify: value => typeof value === 'string',
7
- default: true,
8
- tag: 'tag:yaml.org,2002:str',
9
- resolve: str => str,
10
- stringify(item, ctx, onComment, onChompKeep) {
11
- ctx = Object.assign({ actualString: true }, ctx);
12
- return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
13
- }
14
- };
15
-
16
- exports.string = string;
@@ -1,14 +0,0 @@
1
- import { stringifyString } from '../../stringify/stringifyString.mjs';
2
-
3
- const string = {
4
- identify: value => typeof value === 'string',
5
- default: true,
6
- tag: 'tag:yaml.org,2002:str',
7
- resolve: str => str,
8
- stringify(item, ctx, onComment, onChompKeep) {
9
- ctx = Object.assign({ actualString: true }, ctx);
10
- return stringifyString(item, ctx, onComment, onChompKeep);
11
- }
12
- };
13
-
14
- export { string };
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- var Scalar = require('../../nodes/Scalar.js');
4
-
5
- const boolTag = {
6
- identify: value => typeof value === 'boolean',
7
- default: true,
8
- tag: 'tag:yaml.org,2002:bool',
9
- test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
10
- resolve: str => new Scalar.Scalar(str[0] === 't' || str[0] === 'T'),
11
- stringify({ source, value }, ctx) {
12
- if (source && boolTag.test.test(source)) {
13
- const sv = source[0] === 't' || source[0] === 'T';
14
- if (value === sv)
15
- return source;
16
- }
17
- return value ? ctx.options.trueStr : ctx.options.falseStr;
18
- }
19
- };
20
-
21
- exports.boolTag = boolTag;
@@ -1,19 +0,0 @@
1
- import { Scalar } from '../../nodes/Scalar.mjs';
2
-
3
- const boolTag = {
4
- identify: value => typeof value === 'boolean',
5
- default: true,
6
- tag: 'tag:yaml.org,2002:bool',
7
- test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
8
- resolve: str => new Scalar(str[0] === 't' || str[0] === 'T'),
9
- stringify({ source, value }, ctx) {
10
- if (source && boolTag.test.test(source)) {
11
- const sv = source[0] === 't' || source[0] === 'T';
12
- if (value === sv)
13
- return source;
14
- }
15
- return value ? ctx.options.trueStr : ctx.options.falseStr;
16
- }
17
- };
18
-
19
- export { boolTag };
@@ -1,47 +0,0 @@
1
- 'use strict';
2
-
3
- var Scalar = require('../../nodes/Scalar.js');
4
- var stringifyNumber = require('../../stringify/stringifyNumber.js');
5
-
6
- const floatNaN = {
7
- identify: value => typeof value === 'number',
8
- default: true,
9
- tag: 'tag:yaml.org,2002:float',
10
- test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
11
- resolve: str => str.slice(-3).toLowerCase() === 'nan'
12
- ? NaN
13
- : str[0] === '-'
14
- ? Number.NEGATIVE_INFINITY
15
- : Number.POSITIVE_INFINITY,
16
- stringify: stringifyNumber.stringifyNumber
17
- };
18
- const floatExp = {
19
- identify: value => typeof value === 'number',
20
- default: true,
21
- tag: 'tag:yaml.org,2002:float',
22
- format: 'EXP',
23
- test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
24
- resolve: str => parseFloat(str),
25
- stringify(node) {
26
- const num = Number(node.value);
27
- return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node);
28
- }
29
- };
30
- const float = {
31
- identify: value => typeof value === 'number',
32
- default: true,
33
- tag: 'tag:yaml.org,2002:float',
34
- test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
35
- resolve(str) {
36
- const node = new Scalar.Scalar(parseFloat(str));
37
- const dot = str.indexOf('.');
38
- if (dot !== -1 && str[str.length - 1] === '0')
39
- node.minFractionDigits = str.length - dot - 1;
40
- return node;
41
- },
42
- stringify: stringifyNumber.stringifyNumber
43
- };
44
-
45
- exports.float = float;
46
- exports.floatExp = floatExp;
47
- exports.floatNaN = floatNaN;
@@ -1,43 +0,0 @@
1
- import { Scalar } from '../../nodes/Scalar.mjs';
2
- import { stringifyNumber } from '../../stringify/stringifyNumber.mjs';
3
-
4
- const floatNaN = {
5
- identify: value => typeof value === 'number',
6
- default: true,
7
- tag: 'tag:yaml.org,2002:float',
8
- test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
9
- resolve: str => str.slice(-3).toLowerCase() === 'nan'
10
- ? NaN
11
- : str[0] === '-'
12
- ? Number.NEGATIVE_INFINITY
13
- : Number.POSITIVE_INFINITY,
14
- stringify: stringifyNumber
15
- };
16
- const floatExp = {
17
- identify: value => typeof value === 'number',
18
- default: true,
19
- tag: 'tag:yaml.org,2002:float',
20
- format: 'EXP',
21
- test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
22
- resolve: str => parseFloat(str),
23
- stringify(node) {
24
- const num = Number(node.value);
25
- return isFinite(num) ? num.toExponential() : stringifyNumber(node);
26
- }
27
- };
28
- const float = {
29
- identify: value => typeof value === 'number',
30
- default: true,
31
- tag: 'tag:yaml.org,2002:float',
32
- test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
33
- resolve(str) {
34
- const node = new Scalar(parseFloat(str));
35
- const dot = str.indexOf('.');
36
- if (dot !== -1 && str[str.length - 1] === '0')
37
- node.minFractionDigits = str.length - dot - 1;
38
- return node;
39
- },
40
- stringify: stringifyNumber
41
- };
42
-
43
- export { float, floatExp, floatNaN };
@@ -1,42 +0,0 @@
1
- 'use strict';
2
-
3
- var stringifyNumber = require('../../stringify/stringifyNumber.js');
4
-
5
- const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
6
- const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
7
- function intStringify(node, radix, prefix) {
8
- const { value } = node;
9
- if (intIdentify(value) && value >= 0)
10
- return prefix + value.toString(radix);
11
- return stringifyNumber.stringifyNumber(node);
12
- }
13
- const intOct = {
14
- identify: value => intIdentify(value) && value >= 0,
15
- default: true,
16
- tag: 'tag:yaml.org,2002:int',
17
- format: 'OCT',
18
- test: /^0o[0-7]+$/,
19
- resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt),
20
- stringify: node => intStringify(node, 8, '0o')
21
- };
22
- const int = {
23
- identify: intIdentify,
24
- default: true,
25
- tag: 'tag:yaml.org,2002:int',
26
- test: /^[-+]?[0-9]+$/,
27
- resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
28
- stringify: stringifyNumber.stringifyNumber
29
- };
30
- const intHex = {
31
- identify: value => intIdentify(value) && value >= 0,
32
- default: true,
33
- tag: 'tag:yaml.org,2002:int',
34
- format: 'HEX',
35
- test: /^0x[0-9a-fA-F]+$/,
36
- resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
37
- stringify: node => intStringify(node, 16, '0x')
38
- };
39
-
40
- exports.int = int;
41
- exports.intHex = intHex;
42
- exports.intOct = intOct;
@@ -1,38 +0,0 @@
1
- import { stringifyNumber } from '../../stringify/stringifyNumber.mjs';
2
-
3
- const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
4
- const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
5
- function intStringify(node, radix, prefix) {
6
- const { value } = node;
7
- if (intIdentify(value) && value >= 0)
8
- return prefix + value.toString(radix);
9
- return stringifyNumber(node);
10
- }
11
- const intOct = {
12
- identify: value => intIdentify(value) && value >= 0,
13
- default: true,
14
- tag: 'tag:yaml.org,2002:int',
15
- format: 'OCT',
16
- test: /^0o[0-7]+$/,
17
- resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt),
18
- stringify: node => intStringify(node, 8, '0o')
19
- };
20
- const int = {
21
- identify: intIdentify,
22
- default: true,
23
- tag: 'tag:yaml.org,2002:int',
24
- test: /^[-+]?[0-9]+$/,
25
- resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
26
- stringify: stringifyNumber
27
- };
28
- const intHex = {
29
- identify: value => intIdentify(value) && value >= 0,
30
- default: true,
31
- tag: 'tag:yaml.org,2002:int',
32
- format: 'HEX',
33
- test: /^0x[0-9a-fA-F]+$/,
34
- resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
35
- stringify: node => intStringify(node, 16, '0x')
36
- };
37
-
38
- export { int, intHex, intOct };
@@ -1,25 +0,0 @@
1
- 'use strict';
2
-
3
- var map = require('../common/map.js');
4
- var _null = require('../common/null.js');
5
- var seq = require('../common/seq.js');
6
- var string = require('../common/string.js');
7
- var bool = require('./bool.js');
8
- var float = require('./float.js');
9
- var int = require('./int.js');
10
-
11
- const schema = [
12
- map.map,
13
- seq.seq,
14
- string.string,
15
- _null.nullTag,
16
- bool.boolTag,
17
- int.intOct,
18
- int.int,
19
- int.intHex,
20
- float.floatNaN,
21
- float.floatExp,
22
- float.float
23
- ];
24
-
25
- exports.schema = schema;
@@ -1,23 +0,0 @@
1
- import { map } from '../common/map.mjs';
2
- import { nullTag } from '../common/null.mjs';
3
- import { seq } from '../common/seq.mjs';
4
- import { string } from '../common/string.mjs';
5
- import { boolTag } from './bool.mjs';
6
- import { floatNaN, floatExp, float } from './float.mjs';
7
- import { intOct, int, intHex } from './int.mjs';
8
-
9
- const schema = [
10
- map,
11
- seq,
12
- string,
13
- nullTag,
14
- boolTag,
15
- intOct,
16
- int,
17
- intHex,
18
- floatNaN,
19
- floatExp,
20
- float
21
- ];
22
-
23
- export { schema };