@windrun-huaiin/dev-scripts 14.1.2 → 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 (242) 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/dist/commands/diaomao-update.d.ts.map +1 -1
  5. package/dist/commands/diaomao-update.js +13 -5
  6. package/dist/commands/diaomao-update.mjs +13 -5
  7. package/dist/config/schema.d.ts.map +1 -1
  8. package/dist/config/schema.js +74 -1
  9. package/dist/config/schema.mjs +74 -1
  10. package/package.json +1 -1
  11. package/dist/_virtual/_commonjsHelpers.js +0 -7
  12. package/dist/_virtual/_commonjsHelpers.mjs +0 -5
  13. package/dist/_virtual/index.js +0 -11
  14. package/dist/_virtual/index.mjs +0 -7
  15. package/dist/_virtual/re.js +0 -5
  16. package/dist/_virtual/re.mjs +0 -3
  17. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js +0 -161
  18. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.mjs +0 -159
  19. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js +0 -576
  20. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.mjs +0 -574
  21. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js +0 -350
  22. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.mjs +0 -348
  23. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js +0 -21
  24. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.mjs +0 -19
  25. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js +0 -72
  26. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.mjs +0 -70
  27. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js +0 -77
  28. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.mjs +0 -75
  29. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js +0 -22
  30. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.mjs +0 -20
  31. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js +0 -18
  32. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.mjs +0 -16
  33. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js +0 -20
  34. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.mjs +0 -18
  35. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js +0 -73
  36. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.mjs +0 -71
  37. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js +0 -18
  38. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.mjs +0 -16
  39. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js +0 -18
  40. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.mjs +0 -16
  41. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js +0 -18
  42. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.mjs +0 -16
  43. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js +0 -34
  44. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.mjs +0 -32
  45. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js +0 -18
  46. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.mjs +0 -16
  47. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js +0 -18
  48. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.mjs +0 -16
  49. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js +0 -18
  50. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.mjs +0 -16
  51. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js +0 -18
  52. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.mjs +0 -16
  53. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js +0 -18
  54. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.mjs +0 -16
  55. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js +0 -31
  56. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.mjs +0 -29
  57. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js +0 -18
  58. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.mjs +0 -16
  59. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js +0 -21
  60. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.mjs +0 -19
  61. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js +0 -18
  62. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.mjs +0 -16
  63. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js +0 -18
  64. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.mjs +0 -16
  65. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js +0 -25
  66. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.mjs +0 -23
  67. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js +0 -18
  68. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.mjs +0 -16
  69. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js +0 -21
  70. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.mjs +0 -19
  71. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js +0 -144
  72. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.mjs +0 -142
  73. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js +0 -48
  74. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.mjs +0 -46
  75. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js +0 -22
  76. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.mjs +0 -20
  77. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js +0 -40
  78. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.mjs +0 -38
  79. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js +0 -53
  80. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.mjs +0 -51
  81. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js +0 -28
  82. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.mjs +0 -26
  83. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js +0 -239
  84. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.mjs +0 -237
  85. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js +0 -19
  86. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.mjs +0 -17
  87. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js +0 -22
  88. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.mjs +0 -20
  89. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js +0 -19
  90. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.mjs +0 -17
  91. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js +0 -41
  92. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.mjs +0 -39
  93. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js +0 -40
  94. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.mjs +0 -38
  95. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js +0 -78
  96. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.mjs +0 -76
  97. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js +0 -102
  98. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.mjs +0 -100
  99. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js +0 -63
  100. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.mjs +0 -61
  101. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js +0 -265
  102. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.mjs +0 -263
  103. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js +0 -23
  104. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.mjs +0 -21
  105. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js +0 -26
  106. package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.mjs +0 -24
  107. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-collection.js +0 -90
  108. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-collection.mjs +0 -88
  109. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-doc.js +0 -45
  110. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-doc.mjs +0 -43
  111. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-node.js +0 -105
  112. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-node.mjs +0 -102
  113. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-scalar.js +0 -88
  114. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-scalar.mjs +0 -86
  115. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/composer.js +0 -219
  116. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/composer.mjs +0 -217
  117. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-map.js +0 -117
  118. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-map.mjs +0 -115
  119. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +0 -200
  120. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-scalar.mjs +0 -198
  121. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +0 -51
  122. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-seq.mjs +0 -49
  123. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-end.js +0 -39
  124. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-end.mjs +0 -37
  125. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +0 -209
  126. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-collection.mjs +0 -207
  127. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +0 -225
  128. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.mjs +0 -223
  129. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-props.js +0 -148
  130. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-props.mjs +0 -146
  131. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-contains-newline.js +0 -36
  132. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-contains-newline.mjs +0 -34
  133. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +0 -28
  134. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.mjs +0 -26
  135. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +0 -17
  136. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-flow-indent-check.mjs +0 -15
  137. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-map-includes.js +0 -15
  138. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-map-includes.mjs +0 -13
  139. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/Document.js +0 -337
  140. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/Document.mjs +0 -335
  141. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/anchors.js +0 -76
  142. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/anchors.mjs +0 -71
  143. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/applyReviver.js +0 -57
  144. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/applyReviver.mjs +0 -55
  145. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/createNode.js +0 -90
  146. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/createNode.mjs +0 -88
  147. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/directives.js +0 -178
  148. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/directives.mjs +0 -176
  149. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/errors.js +0 -62
  150. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/errors.mjs +0 -57
  151. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/log.js +0 -9
  152. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/log.mjs +0 -7
  153. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Alias.js +0 -116
  154. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Alias.mjs +0 -114
  155. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Collection.js +0 -151
  156. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Collection.mjs +0 -147
  157. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Node.js +0 -40
  158. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Node.mjs +0 -38
  159. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Pair.js +0 -39
  160. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Pair.mjs +0 -36
  161. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Scalar.js +0 -27
  162. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Scalar.mjs +0 -24
  163. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLMap.js +0 -147
  164. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +0 -144
  165. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +0 -115
  166. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +0 -113
  167. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +0 -65
  168. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +0 -63
  169. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/identity.js +0 -53
  170. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/identity.mjs +0 -36
  171. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/toJS.js +0 -39
  172. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/toJS.mjs +0 -37
  173. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/cst.js +0 -79
  174. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/cst.mjs +0 -73
  175. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/lexer.js +0 -719
  176. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/lexer.mjs +0 -717
  177. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/line-counter.js +0 -41
  178. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/line-counter.mjs +0 -39
  179. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/parser.js +0 -969
  180. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/parser.mjs +0 -967
  181. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/public-api.js +0 -68
  182. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/public-api.mjs +0 -64
  183. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/Schema.js +0 -39
  184. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/Schema.mjs +0 -37
  185. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/map.js +0 -19
  186. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/map.mjs +0 -17
  187. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/null.js +0 -17
  188. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/null.mjs +0 -15
  189. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/seq.js +0 -19
  190. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/seq.mjs +0 -17
  191. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/string.js +0 -16
  192. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/string.mjs +0 -14
  193. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/bool.js +0 -21
  194. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/bool.mjs +0 -19
  195. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/float.js +0 -47
  196. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/float.mjs +0 -43
  197. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/int.js +0 -42
  198. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/int.mjs +0 -38
  199. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/schema.js +0 -25
  200. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/schema.mjs +0 -23
  201. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/json/schema.js +0 -64
  202. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/json/schema.mjs +0 -62
  203. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/tags.js +0 -99
  204. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/tags.mjs +0 -96
  205. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +0 -60
  206. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.mjs +0 -58
  207. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +0 -29
  208. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.mjs +0 -26
  209. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +0 -50
  210. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/float.mjs +0 -46
  211. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +0 -76
  212. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/int.mjs +0 -71
  213. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +0 -68
  214. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +0 -64
  215. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +0 -77
  216. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +0 -74
  217. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +0 -82
  218. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +0 -78
  219. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +0 -41
  220. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.mjs +0 -39
  221. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +0 -96
  222. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +0 -93
  223. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +0 -105
  224. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.mjs +0 -101
  225. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +0 -151
  226. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +0 -146
  227. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringify.js +0 -131
  228. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringify.mjs +0 -128
  229. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +0 -145
  230. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +0 -143
  231. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyComment.js +0 -24
  232. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +0 -20
  233. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +0 -87
  234. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +0 -85
  235. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +0 -26
  236. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +0 -24
  237. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyPair.js +0 -152
  238. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +0 -150
  239. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyString.js +0 -338
  240. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +0 -336
  241. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/visit.js +0 -148
  242. package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/visit.mjs +0 -146
@@ -1,64 +0,0 @@
1
- 'use strict';
2
-
3
- var Scalar = require('../../nodes/Scalar.js');
4
- var map = require('../common/map.js');
5
- var seq = require('../common/seq.js');
6
-
7
- function intIdentify(value) {
8
- return typeof value === 'bigint' || Number.isInteger(value);
9
- }
10
- const stringifyJSON = ({ value }) => JSON.stringify(value);
11
- const jsonScalars = [
12
- {
13
- identify: value => typeof value === 'string',
14
- default: true,
15
- tag: 'tag:yaml.org,2002:str',
16
- resolve: str => str,
17
- stringify: stringifyJSON
18
- },
19
- {
20
- identify: value => value == null,
21
- createNode: () => new Scalar.Scalar(null),
22
- default: true,
23
- tag: 'tag:yaml.org,2002:null',
24
- test: /^null$/,
25
- resolve: () => null,
26
- stringify: stringifyJSON
27
- },
28
- {
29
- identify: value => typeof value === 'boolean',
30
- default: true,
31
- tag: 'tag:yaml.org,2002:bool',
32
- test: /^true$|^false$/,
33
- resolve: str => str === 'true',
34
- stringify: stringifyJSON
35
- },
36
- {
37
- identify: intIdentify,
38
- default: true,
39
- tag: 'tag:yaml.org,2002:int',
40
- test: /^-?(?:0|[1-9][0-9]*)$/,
41
- resolve: (str, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str, 10),
42
- stringify: ({ value }) => intIdentify(value) ? value.toString() : JSON.stringify(value)
43
- },
44
- {
45
- identify: value => typeof value === 'number',
46
- default: true,
47
- tag: 'tag:yaml.org,2002:float',
48
- test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
49
- resolve: str => parseFloat(str),
50
- stringify: stringifyJSON
51
- }
52
- ];
53
- const jsonError = {
54
- default: true,
55
- tag: '',
56
- test: /^/,
57
- resolve(str, onError) {
58
- onError(`Unresolved plain scalar ${JSON.stringify(str)}`);
59
- return str;
60
- }
61
- };
62
- const schema = [map.map, seq.seq].concat(jsonScalars, jsonError);
63
-
64
- exports.schema = schema;
@@ -1,62 +0,0 @@
1
- import { Scalar } from '../../nodes/Scalar.mjs';
2
- import { map } from '../common/map.mjs';
3
- import { seq } from '../common/seq.mjs';
4
-
5
- function intIdentify(value) {
6
- return typeof value === 'bigint' || Number.isInteger(value);
7
- }
8
- const stringifyJSON = ({ value }) => JSON.stringify(value);
9
- const jsonScalars = [
10
- {
11
- identify: value => typeof value === 'string',
12
- default: true,
13
- tag: 'tag:yaml.org,2002:str',
14
- resolve: str => str,
15
- stringify: stringifyJSON
16
- },
17
- {
18
- identify: value => value == null,
19
- createNode: () => new Scalar(null),
20
- default: true,
21
- tag: 'tag:yaml.org,2002:null',
22
- test: /^null$/,
23
- resolve: () => null,
24
- stringify: stringifyJSON
25
- },
26
- {
27
- identify: value => typeof value === 'boolean',
28
- default: true,
29
- tag: 'tag:yaml.org,2002:bool',
30
- test: /^true$|^false$/,
31
- resolve: str => str === 'true',
32
- stringify: stringifyJSON
33
- },
34
- {
35
- identify: intIdentify,
36
- default: true,
37
- tag: 'tag:yaml.org,2002:int',
38
- test: /^-?(?:0|[1-9][0-9]*)$/,
39
- resolve: (str, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str, 10),
40
- stringify: ({ value }) => intIdentify(value) ? value.toString() : JSON.stringify(value)
41
- },
42
- {
43
- identify: value => typeof value === 'number',
44
- default: true,
45
- tag: 'tag:yaml.org,2002:float',
46
- test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
47
- resolve: str => parseFloat(str),
48
- stringify: stringifyJSON
49
- }
50
- ];
51
- const jsonError = {
52
- default: true,
53
- tag: '',
54
- test: /^/,
55
- resolve(str, onError) {
56
- onError(`Unresolved plain scalar ${JSON.stringify(str)}`);
57
- return str;
58
- }
59
- };
60
- const schema = [map, seq].concat(jsonScalars, jsonError);
61
-
62
- export { schema };
@@ -1,99 +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('./core/bool.js');
8
- var float = require('./core/float.js');
9
- var int = require('./core/int.js');
10
- var schema = require('./core/schema.js');
11
- var schema$1 = require('./json/schema.js');
12
- var binary = require('./yaml-1.1/binary.js');
13
- var merge = require('./yaml-1.1/merge.js');
14
- var omap = require('./yaml-1.1/omap.js');
15
- var pairs = require('./yaml-1.1/pairs.js');
16
- var schema$2 = require('./yaml-1.1/schema.js');
17
- var set = require('./yaml-1.1/set.js');
18
- var timestamp = require('./yaml-1.1/timestamp.js');
19
-
20
- const schemas = new Map([
21
- ['core', schema.schema],
22
- ['failsafe', [map.map, seq.seq, string.string]],
23
- ['json', schema$1.schema],
24
- ['yaml11', schema$2.schema],
25
- ['yaml-1.1', schema$2.schema]
26
- ]);
27
- const tagsByName = {
28
- binary: binary.binary,
29
- bool: bool.boolTag,
30
- float: float.float,
31
- floatExp: float.floatExp,
32
- floatNaN: float.floatNaN,
33
- floatTime: timestamp.floatTime,
34
- int: int.int,
35
- intHex: int.intHex,
36
- intOct: int.intOct,
37
- intTime: timestamp.intTime,
38
- map: map.map,
39
- merge: merge.merge,
40
- null: _null.nullTag,
41
- omap: omap.omap,
42
- pairs: pairs.pairs,
43
- seq: seq.seq,
44
- set: set.set,
45
- timestamp: timestamp.timestamp
46
- };
47
- const coreKnownTags = {
48
- 'tag:yaml.org,2002:binary': binary.binary,
49
- 'tag:yaml.org,2002:merge': merge.merge,
50
- 'tag:yaml.org,2002:omap': omap.omap,
51
- 'tag:yaml.org,2002:pairs': pairs.pairs,
52
- 'tag:yaml.org,2002:set': set.set,
53
- 'tag:yaml.org,2002:timestamp': timestamp.timestamp
54
- };
55
- function getTags(customTags, schemaName, addMergeTag) {
56
- const schemaTags = schemas.get(schemaName);
57
- if (schemaTags && !customTags) {
58
- return addMergeTag && !schemaTags.includes(merge.merge)
59
- ? schemaTags.concat(merge.merge)
60
- : schemaTags.slice();
61
- }
62
- let tags = schemaTags;
63
- if (!tags) {
64
- if (Array.isArray(customTags))
65
- tags = [];
66
- else {
67
- const keys = Array.from(schemas.keys())
68
- .filter(key => key !== 'yaml11')
69
- .map(key => JSON.stringify(key))
70
- .join(', ');
71
- throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
72
- }
73
- }
74
- if (Array.isArray(customTags)) {
75
- for (const tag of customTags)
76
- tags = tags.concat(tag);
77
- }
78
- else if (typeof customTags === 'function') {
79
- tags = customTags(tags.slice());
80
- }
81
- if (addMergeTag)
82
- tags = tags.concat(merge.merge);
83
- return tags.reduce((tags, tag) => {
84
- const tagObj = typeof tag === 'string' ? tagsByName[tag] : tag;
85
- if (!tagObj) {
86
- const tagName = JSON.stringify(tag);
87
- const keys = Object.keys(tagsByName)
88
- .map(key => JSON.stringify(key))
89
- .join(', ');
90
- throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
91
- }
92
- if (!tags.includes(tagObj))
93
- tags.push(tagObj);
94
- return tags;
95
- }, []);
96
- }
97
-
98
- exports.coreKnownTags = coreKnownTags;
99
- exports.getTags = getTags;
@@ -1,96 +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 './core/bool.mjs';
6
- import { floatNaN, floatExp, float } from './core/float.mjs';
7
- import { intOct, intHex, int } from './core/int.mjs';
8
- import { schema } from './core/schema.mjs';
9
- import { schema as schema$1 } from './json/schema.mjs';
10
- import { binary } from './yaml-1.1/binary.mjs';
11
- import { merge } from './yaml-1.1/merge.mjs';
12
- import { omap } from './yaml-1.1/omap.mjs';
13
- import { pairs } from './yaml-1.1/pairs.mjs';
14
- import { schema as schema$2 } from './yaml-1.1/schema.mjs';
15
- import { set } from './yaml-1.1/set.mjs';
16
- import { timestamp, intTime, floatTime } from './yaml-1.1/timestamp.mjs';
17
-
18
- const schemas = new Map([
19
- ['core', schema],
20
- ['failsafe', [map, seq, string]],
21
- ['json', schema$1],
22
- ['yaml11', schema$2],
23
- ['yaml-1.1', schema$2]
24
- ]);
25
- const tagsByName = {
26
- binary,
27
- bool: boolTag,
28
- float,
29
- floatExp,
30
- floatNaN,
31
- floatTime,
32
- int,
33
- intHex,
34
- intOct,
35
- intTime,
36
- map,
37
- merge,
38
- null: nullTag,
39
- omap,
40
- pairs,
41
- seq,
42
- set,
43
- timestamp
44
- };
45
- const coreKnownTags = {
46
- 'tag:yaml.org,2002:binary': binary,
47
- 'tag:yaml.org,2002:merge': merge,
48
- 'tag:yaml.org,2002:omap': omap,
49
- 'tag:yaml.org,2002:pairs': pairs,
50
- 'tag:yaml.org,2002:set': set,
51
- 'tag:yaml.org,2002:timestamp': timestamp
52
- };
53
- function getTags(customTags, schemaName, addMergeTag) {
54
- const schemaTags = schemas.get(schemaName);
55
- if (schemaTags && !customTags) {
56
- return addMergeTag && !schemaTags.includes(merge)
57
- ? schemaTags.concat(merge)
58
- : schemaTags.slice();
59
- }
60
- let tags = schemaTags;
61
- if (!tags) {
62
- if (Array.isArray(customTags))
63
- tags = [];
64
- else {
65
- const keys = Array.from(schemas.keys())
66
- .filter(key => key !== 'yaml11')
67
- .map(key => JSON.stringify(key))
68
- .join(', ');
69
- throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
70
- }
71
- }
72
- if (Array.isArray(customTags)) {
73
- for (const tag of customTags)
74
- tags = tags.concat(tag);
75
- }
76
- else if (typeof customTags === 'function') {
77
- tags = customTags(tags.slice());
78
- }
79
- if (addMergeTag)
80
- tags = tags.concat(merge);
81
- return tags.reduce((tags, tag) => {
82
- const tagObj = typeof tag === 'string' ? tagsByName[tag] : tag;
83
- if (!tagObj) {
84
- const tagName = JSON.stringify(tag);
85
- const keys = Object.keys(tagsByName)
86
- .map(key => JSON.stringify(key))
87
- .join(', ');
88
- throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
89
- }
90
- if (!tags.includes(tagObj))
91
- tags.push(tagObj);
92
- return tags;
93
- }, []);
94
- }
95
-
96
- export { coreKnownTags, getTags };
@@ -1,60 +0,0 @@
1
- 'use strict';
2
-
3
- var Scalar = require('../../nodes/Scalar.js');
4
- var stringifyString = require('../../stringify/stringifyString.js');
5
-
6
- const binary = {
7
- identify: value => value instanceof Uint8Array, // Buffer inherits from Uint8Array
8
- default: false,
9
- tag: 'tag:yaml.org,2002:binary',
10
- /**
11
- * Returns a Buffer in node and an Uint8Array in browsers
12
- *
13
- * To use the resulting buffer as an image, you'll want to do something like:
14
- *
15
- * const blob = new Blob([buffer], { type: 'image/jpeg' })
16
- * document.querySelector('#photo').src = URL.createObjectURL(blob)
17
- */
18
- resolve(src, onError) {
19
- if (typeof atob === 'function') {
20
- // On IE 11, atob() can't handle newlines
21
- const str = atob(src.replace(/[\n\r]/g, ''));
22
- const buffer = new Uint8Array(str.length);
23
- for (let i = 0; i < str.length; ++i)
24
- buffer[i] = str.charCodeAt(i);
25
- return buffer;
26
- }
27
- else {
28
- onError('This environment does not support reading binary tags; either Buffer or atob is required');
29
- return src;
30
- }
31
- },
32
- stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
33
- if (!value)
34
- return '';
35
- const buf = value; // checked earlier by binary.identify()
36
- let str;
37
- if (typeof btoa === 'function') {
38
- let s = '';
39
- for (let i = 0; i < buf.length; ++i)
40
- s += String.fromCharCode(buf[i]);
41
- str = btoa(s);
42
- }
43
- else {
44
- throw new Error('This environment does not support writing binary tags; either Buffer or btoa is required');
45
- }
46
- type ?? (type = Scalar.Scalar.BLOCK_LITERAL);
47
- if (type !== Scalar.Scalar.QUOTE_DOUBLE) {
48
- const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth);
49
- const n = Math.ceil(str.length / lineWidth);
50
- const lines = new Array(n);
51
- for (let i = 0, o = 0; i < n; ++i, o += lineWidth) {
52
- lines[i] = str.substr(o, lineWidth);
53
- }
54
- str = lines.join(type === Scalar.Scalar.BLOCK_LITERAL ? '\n' : ' ');
55
- }
56
- return stringifyString.stringifyString({ comment, type, value: str }, ctx, onComment, onChompKeep);
57
- }
58
- };
59
-
60
- exports.binary = binary;
@@ -1,58 +0,0 @@
1
- import { Scalar } from '../../nodes/Scalar.mjs';
2
- import { stringifyString } from '../../stringify/stringifyString.mjs';
3
-
4
- const binary = {
5
- identify: value => value instanceof Uint8Array, // Buffer inherits from Uint8Array
6
- default: false,
7
- tag: 'tag:yaml.org,2002:binary',
8
- /**
9
- * Returns a Buffer in node and an Uint8Array in browsers
10
- *
11
- * To use the resulting buffer as an image, you'll want to do something like:
12
- *
13
- * const blob = new Blob([buffer], { type: 'image/jpeg' })
14
- * document.querySelector('#photo').src = URL.createObjectURL(blob)
15
- */
16
- resolve(src, onError) {
17
- if (typeof atob === 'function') {
18
- // On IE 11, atob() can't handle newlines
19
- const str = atob(src.replace(/[\n\r]/g, ''));
20
- const buffer = new Uint8Array(str.length);
21
- for (let i = 0; i < str.length; ++i)
22
- buffer[i] = str.charCodeAt(i);
23
- return buffer;
24
- }
25
- else {
26
- onError('This environment does not support reading binary tags; either Buffer or atob is required');
27
- return src;
28
- }
29
- },
30
- stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
31
- if (!value)
32
- return '';
33
- const buf = value; // checked earlier by binary.identify()
34
- let str;
35
- if (typeof btoa === 'function') {
36
- let s = '';
37
- for (let i = 0; i < buf.length; ++i)
38
- s += String.fromCharCode(buf[i]);
39
- str = btoa(s);
40
- }
41
- else {
42
- throw new Error('This environment does not support writing binary tags; either Buffer or btoa is required');
43
- }
44
- type ?? (type = Scalar.BLOCK_LITERAL);
45
- if (type !== Scalar.QUOTE_DOUBLE) {
46
- const lineWidth = Math.max(ctx.options.lineWidth - ctx.indent.length, ctx.options.minContentWidth);
47
- const n = Math.ceil(str.length / lineWidth);
48
- const lines = new Array(n);
49
- for (let i = 0, o = 0; i < n; ++i, o += lineWidth) {
50
- lines[i] = str.substr(o, lineWidth);
51
- }
52
- str = lines.join(type === Scalar.BLOCK_LITERAL ? '\n' : ' ');
53
- }
54
- return stringifyString({ comment, type, value: str }, ctx, onComment, onChompKeep);
55
- }
56
- };
57
-
58
- export { binary };
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- var Scalar = require('../../nodes/Scalar.js');
4
-
5
- function boolStringify({ value, source }, ctx) {
6
- const boolObj = value ? trueTag : falseTag;
7
- if (source && boolObj.test.test(source))
8
- return source;
9
- return value ? ctx.options.trueStr : ctx.options.falseStr;
10
- }
11
- const trueTag = {
12
- identify: value => value === true,
13
- default: true,
14
- tag: 'tag:yaml.org,2002:bool',
15
- test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
16
- resolve: () => new Scalar.Scalar(true),
17
- stringify: boolStringify
18
- };
19
- const falseTag = {
20
- identify: value => value === false,
21
- default: true,
22
- tag: 'tag:yaml.org,2002:bool',
23
- test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
24
- resolve: () => new Scalar.Scalar(false),
25
- stringify: boolStringify
26
- };
27
-
28
- exports.falseTag = falseTag;
29
- exports.trueTag = trueTag;
@@ -1,26 +0,0 @@
1
- import { Scalar } from '../../nodes/Scalar.mjs';
2
-
3
- function boolStringify({ value, source }, ctx) {
4
- const boolObj = value ? trueTag : falseTag;
5
- if (source && boolObj.test.test(source))
6
- return source;
7
- return value ? ctx.options.trueStr : ctx.options.falseStr;
8
- }
9
- const trueTag = {
10
- identify: value => value === true,
11
- default: true,
12
- tag: 'tag:yaml.org,2002:bool',
13
- test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
14
- resolve: () => new Scalar(true),
15
- stringify: boolStringify
16
- };
17
- const falseTag = {
18
- identify: value => value === false,
19
- default: true,
20
- tag: 'tag:yaml.org,2002:bool',
21
- test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
22
- resolve: () => new Scalar(false),
23
- stringify: boolStringify
24
- };
25
-
26
- export { falseTag, trueTag };
@@ -1,50 +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.replace(/_/g, '')),
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.replace(/_/g, '')));
37
- const dot = str.indexOf('.');
38
- if (dot !== -1) {
39
- const f = str.substring(dot + 1).replace(/_/g, '');
40
- if (f[f.length - 1] === '0')
41
- node.minFractionDigits = f.length;
42
- }
43
- return node;
44
- },
45
- stringify: stringifyNumber.stringifyNumber
46
- };
47
-
48
- exports.float = float;
49
- exports.floatExp = floatExp;
50
- exports.floatNaN = floatNaN;
@@ -1,46 +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.replace(/_/g, '')),
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.replace(/_/g, '')));
35
- const dot = str.indexOf('.');
36
- if (dot !== -1) {
37
- const f = str.substring(dot + 1).replace(/_/g, '');
38
- if (f[f.length - 1] === '0')
39
- node.minFractionDigits = f.length;
40
- }
41
- return node;
42
- },
43
- stringify: stringifyNumber
44
- };
45
-
46
- export { float, floatExp, floatNaN };
@@ -1,76 +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
- function intResolve(str, offset, radix, { intAsBigInt }) {
7
- const sign = str[0];
8
- if (sign === '-' || sign === '+')
9
- offset += 1;
10
- str = str.substring(offset).replace(/_/g, '');
11
- if (intAsBigInt) {
12
- switch (radix) {
13
- case 2:
14
- str = `0b${str}`;
15
- break;
16
- case 8:
17
- str = `0o${str}`;
18
- break;
19
- case 16:
20
- str = `0x${str}`;
21
- break;
22
- }
23
- const n = BigInt(str);
24
- return sign === '-' ? BigInt(-1) * n : n;
25
- }
26
- const n = parseInt(str, radix);
27
- return sign === '-' ? -1 * n : n;
28
- }
29
- function intStringify(node, radix, prefix) {
30
- const { value } = node;
31
- if (intIdentify(value)) {
32
- const str = value.toString(radix);
33
- return value < 0 ? '-' + prefix + str.substr(1) : prefix + str;
34
- }
35
- return stringifyNumber.stringifyNumber(node);
36
- }
37
- const intBin = {
38
- identify: intIdentify,
39
- default: true,
40
- tag: 'tag:yaml.org,2002:int',
41
- format: 'BIN',
42
- test: /^[-+]?0b[0-1_]+$/,
43
- resolve: (str, _onError, opt) => intResolve(str, 2, 2, opt),
44
- stringify: node => intStringify(node, 2, '0b')
45
- };
46
- const intOct = {
47
- identify: intIdentify,
48
- default: true,
49
- tag: 'tag:yaml.org,2002:int',
50
- format: 'OCT',
51
- test: /^[-+]?0[0-7_]+$/,
52
- resolve: (str, _onError, opt) => intResolve(str, 1, 8, opt),
53
- stringify: node => intStringify(node, 8, '0')
54
- };
55
- const int = {
56
- identify: intIdentify,
57
- default: true,
58
- tag: 'tag:yaml.org,2002:int',
59
- test: /^[-+]?[0-9][0-9_]*$/,
60
- resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
61
- stringify: stringifyNumber.stringifyNumber
62
- };
63
- const intHex = {
64
- identify: intIdentify,
65
- default: true,
66
- tag: 'tag:yaml.org,2002:int',
67
- format: 'HEX',
68
- test: /^[-+]?0x[0-9a-fA-F_]+$/,
69
- resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
70
- stringify: node => intStringify(node, 16, '0x')
71
- };
72
-
73
- exports.int = int;
74
- exports.intBin = intBin;
75
- exports.intHex = intHex;
76
- exports.intOct = intOct;