index.cjs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. "use strict";
  2. var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
  3. if (k2 === undefined) k2 = k;
  4. var desc = Object.getOwnPropertyDescriptor(m, k);
  5. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  6. desc = {
  7. enumerable: true,
  8. get: function () {
  9. return m[k];
  10. }
  11. };
  12. }
  13. Object.defineProperty(o, k2, desc);
  14. } : function (o, m, k, k2) {
  15. if (k2 === undefined) k2 = k;
  16. o[k2] = m[k];
  17. });
  18. var __exportStar = this && this.__exportStar || function (m, exports) {
  19. for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
  20. };
  21. Object.defineProperty(exports, "__esModule", {
  22. value: true
  23. });
  24. exports.util = exports.tokenizers = exports.transforms = exports.inspect = exports.stringify = exports.parse = void 0;
  25. const index_js_1 = require("./parser/index.cjs");
  26. const description_js_1 = require("./parser/tokenizers/description.cjs");
  27. const name_js_1 = require("./parser/tokenizers/name.cjs");
  28. const tag_js_1 = require("./parser/tokenizers/tag.cjs");
  29. const type_js_1 = require("./parser/tokenizers/type.cjs");
  30. const index_js_2 = require("./stringifier/index.cjs");
  31. const align_js_1 = require("./transforms/align.cjs");
  32. const indent_js_1 = require("./transforms/indent.cjs");
  33. const crlf_js_1 = require("./transforms/crlf.cjs");
  34. const index_js_3 = require("./transforms/index.cjs");
  35. const util_js_1 = require("./util.cjs");
  36. __exportStar(require("./primitives.cjs"), exports);
  37. function parse(source, options = {}) {
  38. return (0, index_js_1.default)(options)(source);
  39. }
  40. exports.parse = parse;
  41. exports.stringify = (0, index_js_2.default)();
  42. var inspect_js_1 = require("./stringifier/inspect.cjs");
  43. Object.defineProperty(exports, "inspect", {
  44. enumerable: true,
  45. get: function () {
  46. return inspect_js_1.default;
  47. }
  48. });
  49. exports.transforms = {
  50. flow: index_js_3.flow,
  51. align: align_js_1.default,
  52. indent: indent_js_1.default,
  53. crlf: crlf_js_1.default
  54. };
  55. exports.tokenizers = {
  56. tag: tag_js_1.default,
  57. type: type_js_1.default,
  58. name: name_js_1.default,
  59. description: description_js_1.default
  60. };
  61. exports.util = {
  62. rewireSpecs: util_js_1.rewireSpecs,
  63. rewireSource: util_js_1.rewireSource,
  64. seedBlock: util_js_1.seedBlock,
  65. seedTokens: util_js_1.seedTokens
  66. };
  67. //# sourceMappingURL=index.cjs.map