@prismicio/client 7.7.5-alpha.0 → 7.8.1
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.
- package/dist/index.cjs +0 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/dist/types/api/repository.d.ts +4 -0
- package/package.json +2 -16
- package/src/index.ts +0 -8
- package/src/types/api/repository.ts +5 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs +0 -63
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js +0 -63
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs +0 -12
- package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/index.js +0 -12
- package/dist/_node_modules/@ungap/structured-clone/esm/index.js.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs +0 -127
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js +0 -127
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs +0 -23
- package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/types.js +0 -23
- package/dist/_node_modules/@ungap/structured-clone/esm/types.js.map +0 -1
- package/dist/_node_modules/bail/index.cjs +0 -9
- package/dist/_node_modules/bail/index.cjs.map +0 -1
- package/dist/_node_modules/bail/index.js +0 -9
- package/dist/_node_modules/bail/index.js.map +0 -1
- package/dist/_node_modules/bcp-47-match/index.cjs +0 -74
- package/dist/_node_modules/bcp-47-match/index.cjs.map +0 -1
- package/dist/_node_modules/bcp-47-match/index.js +0 -74
- package/dist/_node_modules/bcp-47-match/index.js.map +0 -1
- package/dist/_node_modules/boolbase/index.cjs +0 -13
- package/dist/_node_modules/boolbase/index.cjs.map +0 -1
- package/dist/_node_modules/boolbase/index.js +0 -14
- package/dist/_node_modules/boolbase/index.js.map +0 -1
- package/dist/_node_modules/ccount/index.cjs +0 -17
- package/dist/_node_modules/ccount/index.cjs.map +0 -1
- package/dist/_node_modules/ccount/index.js +0 -17
- package/dist/_node_modules/ccount/index.js.map +0 -1
- package/dist/_node_modules/character-entities/index.cjs +0 -2131
- package/dist/_node_modules/character-entities/index.cjs.map +0 -1
- package/dist/_node_modules/character-entities/index.js +0 -2131
- package/dist/_node_modules/character-entities/index.js.map +0 -1
- package/dist/_node_modules/character-entities-html4/index.cjs +0 -258
- package/dist/_node_modules/character-entities-html4/index.cjs.map +0 -1
- package/dist/_node_modules/character-entities-html4/index.js +0 -258
- package/dist/_node_modules/character-entities-html4/index.js.map +0 -1
- package/dist/_node_modules/character-entities-legacy/index.cjs +0 -112
- package/dist/_node_modules/character-entities-legacy/index.cjs.map +0 -1
- package/dist/_node_modules/character-entities-legacy/index.js +0 -112
- package/dist/_node_modules/character-entities-legacy/index.js.map +0 -1
- package/dist/_node_modules/comma-separated-tokens/index.cjs +0 -32
- package/dist/_node_modules/comma-separated-tokens/index.cjs.map +0 -1
- package/dist/_node_modules/comma-separated-tokens/index.js +0 -32
- package/dist/_node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/_node_modules/devlop/lib/default.cjs +0 -6
- package/dist/_node_modules/devlop/lib/default.cjs.map +0 -1
- package/dist/_node_modules/devlop/lib/default.js +0 -6
- package/dist/_node_modules/devlop/lib/default.js.map +0 -1
- package/dist/_node_modules/direction/index.cjs +0 -12
- package/dist/_node_modules/direction/index.cjs.map +0 -1
- package/dist/_node_modules/direction/index.js +0 -12
- package/dist/_node_modules/direction/index.js.map +0 -1
- package/dist/_node_modules/extend/index.cjs +0 -89
- package/dist/_node_modules/extend/index.cjs.map +0 -1
- package/dist/_node_modules/extend/index.js +0 -90
- package/dist/_node_modules/extend/index.js.map +0 -1
- package/dist/_node_modules/hast-util-embedded/lib/index.cjs +0 -14
- package/dist/_node_modules/hast-util-embedded/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-embedded/lib/index.js +0 -14
- package/dist/_node_modules/hast-util-embedded/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/errors.cjs +0 -317
- package/dist/_node_modules/hast-util-from-html/lib/errors.cjs.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/errors.js +0 -317
- package/dist/_node_modules/hast-util-from-html/lib/errors.js.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/index.cjs +0 -96
- package/dist/_node_modules/hast-util-from-html/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/index.js +0 -96
- package/dist/_node_modules/hast-util-from-html/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs +0 -187
- package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-from-parse5/lib/index.js +0 -187
- package/dist/_node_modules/hast-util-from-parse5/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-has-property/lib/index.cjs +0 -9
- package/dist/_node_modules/hast-util-has-property/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-has-property/lib/index.js +0 -9
- package/dist/_node_modules/hast-util-has-property/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-is-element/lib/index.cjs +0 -102
- package/dist/_node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-is-element/lib/index.js +0 -102
- package/dist/_node_modules/hast-util-is-element/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs +0 -40
- package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-parse-selector/lib/index.js +0 -40
- package/dist/_node_modules/hast-util-parse-selector/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/attribute.cjs +0 -67
- package/dist/_node_modules/hast-util-select/lib/attribute.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/attribute.js +0 -67
- package/dist/_node_modules/hast-util-select/lib/attribute.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/class-name.cjs +0 -12
- package/dist/_node_modules/hast-util-select/lib/class-name.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/class-name.js +0 -12
- package/dist/_node_modules/hast-util-select/lib/class-name.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/enter-state.cjs +0 -79
- package/dist/_node_modules/hast-util-select/lib/enter-state.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/enter-state.js +0 -79
- package/dist/_node_modules/hast-util-select/lib/enter-state.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/id.cjs +0 -7
- package/dist/_node_modules/hast-util-select/lib/id.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/id.js +0 -7
- package/dist/_node_modules/hast-util-select/lib/id.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/index.cjs +0 -38
- package/dist/_node_modules/hast-util-select/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/index.js +0 -38
- package/dist/_node_modules/hast-util-select/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/name.cjs +0 -7
- package/dist/_node_modules/hast-util-select/lib/name.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/name.js +0 -7
- package/dist/_node_modules/hast-util-select/lib/name.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/parse.cjs +0 -12
- package/dist/_node_modules/hast-util-select/lib/parse.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/parse.js +0 -12
- package/dist/_node_modules/hast-util-select/lib/parse.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/pseudo.cjs +0 -231
- package/dist/_node_modules/hast-util-select/lib/pseudo.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/pseudo.js +0 -231
- package/dist/_node_modules/hast-util-select/lib/pseudo.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/test.cjs +0 -27
- package/dist/_node_modules/hast-util-select/lib/test.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/test.js +0 -27
- package/dist/_node_modules/hast-util-select/lib/test.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/walk.cjs +0 -132
- package/dist/_node_modules/hast-util-select/lib/walk.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/walk.js +0 -132
- package/dist/_node_modules/hast-util-select/lib/walk.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs +0 -137
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.js +0 -137
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs +0 -26
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.js +0 -26
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs +0 -8
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js +0 -8
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.js +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs +0 -14
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.js +0 -14
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/index.cjs +0 -62
- package/dist/_node_modules/hast-util-to-html/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/index.js +0 -62
- package/dist/_node_modules/hast-util-to-html/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs +0 -92
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js +0 -92
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs +0 -11
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js +0 -11
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs +0 -52
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js +0 -52
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js.map +0 -1
- package/dist/_node_modules/hast-util-to-string/lib/index.cjs +0 -24
- package/dist/_node_modules/hast-util-to-string/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-string/lib/index.js +0 -24
- package/dist/_node_modules/hast-util-to-string/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-whitespace/lib/index.cjs +0 -11
- package/dist/_node_modules/hast-util-whitespace/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-whitespace/lib/index.js +0 -11
- package/dist/_node_modules/hast-util-whitespace/lib/index.js.map +0 -1
- package/dist/_node_modules/hastscript/lib/create-h.cjs +0 -159
- package/dist/_node_modules/hastscript/lib/create-h.cjs.map +0 -1
- package/dist/_node_modules/hastscript/lib/create-h.js +0 -159
- package/dist/_node_modules/hastscript/lib/create-h.js.map +0 -1
- package/dist/_node_modules/hastscript/lib/index.cjs +0 -10
- package/dist/_node_modules/hastscript/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hastscript/lib/index.js +0 -10
- package/dist/_node_modules/hastscript/lib/index.js.map +0 -1
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +0 -45
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.map +0 -1
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -45
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js.map +0 -1
- package/dist/_node_modules/html-void-elements/index.cjs +0 -26
- package/dist/_node_modules/html-void-elements/index.cjs.map +0 -1
- package/dist/_node_modules/html-void-elements/index.js +0 -26
- package/dist/_node_modules/html-void-elements/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs +0 -720
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.js +0 -720
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs +0 -116
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.js +0 -116
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs +0 -42
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -42
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs +0 -12
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -12
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs +0 -20
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -20
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs +0 -17
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -17
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs +0 -60
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -60
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs +0 -19
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -19
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs +0 -65
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -65
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs +0 -27
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -27
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs +0 -15
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -15
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs +0 -36
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -36
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs +0 -40
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -40
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs +0 -10
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -10
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/index.js +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs +0 -30
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.js +0 -30
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs +0 -149
- package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/state.js +0 -149
- package/dist/_node_modules/mdast-util-to-hast/lib/state.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-string/lib/index.cjs +0 -39
- package/dist/_node_modules/mdast-util-to-string/lib/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-string/lib/index.js +0 -39
- package/dist/_node_modules/mdast-util-to-string/lib/index.js.map +0 -1
- package/dist/_node_modules/micromark/lib/constructs.cjs +0 -94
- package/dist/_node_modules/micromark/lib/constructs.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/constructs.js +0 -94
- package/dist/_node_modules/micromark/lib/constructs.js.map +0 -1
- package/dist/_node_modules/micromark/lib/create-tokenizer.cjs +0 -316
- package/dist/_node_modules/micromark/lib/create-tokenizer.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/create-tokenizer.js +0 -316
- package/dist/_node_modules/micromark/lib/create-tokenizer.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/content.cjs +0 -58
- package/dist/_node_modules/micromark/lib/initialize/content.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/content.js +0 -58
- package/dist/_node_modules/micromark/lib/initialize/content.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/document.cjs +0 -212
- package/dist/_node_modules/micromark/lib/initialize/document.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/document.js +0 -212
- package/dist/_node_modules/micromark/lib/initialize/document.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/flow.cjs +0 -55
- package/dist/_node_modules/micromark/lib/initialize/flow.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/flow.js +0 -55
- package/dist/_node_modules/micromark/lib/initialize/flow.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/text.cjs +0 -143
- package/dist/_node_modules/micromark/lib/initialize/text.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/text.js +0 -143
- package/dist/_node_modules/micromark/lib/initialize/text.js.map +0 -1
- package/dist/_node_modules/micromark/lib/parse.cjs +0 -35
- package/dist/_node_modules/micromark/lib/parse.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/parse.js +0 -35
- package/dist/_node_modules/micromark/lib/parse.js.map +0 -1
- package/dist/_node_modules/micromark/lib/postprocess.cjs +0 -10
- package/dist/_node_modules/micromark/lib/postprocess.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/postprocess.js +0 -10
- package/dist/_node_modules/micromark/lib/postprocess.js.map +0 -1
- package/dist/_node_modules/micromark/lib/preprocess.cjs +0 -81
- package/dist/_node_modules/micromark/lib/preprocess.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/preprocess.js +0 -81
- package/dist/_node_modules/micromark/lib/preprocess.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs +0 -116
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.js +0 -116
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs +0 -104
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js +0 -104
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs +0 -19
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js +0 -19
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs +0 -62
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js +0 -62
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs +0 -29
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js +0 -29
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs +0 -69
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js +0 -69
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs +0 -187
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -187
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs +0 -68
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js +0 -68
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs +0 -117
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js +0 -117
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs +0 -76
- package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/content.js +0 -76
- package/dist/_node_modules/micromark-core-commonmark/lib/content.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs +0 -95
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.js +0 -95
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs +0 -24
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -24
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs +0 -96
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -96
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs +0 -384
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js +0 -384
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs +0 -310
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js +0 -310
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs +0 -219
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js +0 -219
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs +0 -34
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -34
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs +0 -25
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -25
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs +0 -18
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js +0 -18
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs +0 -136
- package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/list.js +0 -136
- package/dist/_node_modules/micromark-core-commonmark/lib/list.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs +0 -90
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -90
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs +0 -43
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -43
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js.map +0 -1
- package/dist/_node_modules/micromark-factory-destination/index.cjs +0 -95
- package/dist/_node_modules/micromark-factory-destination/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-destination/index.js +0 -95
- package/dist/_node_modules/micromark-factory-destination/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-label/index.cjs +0 -64
- package/dist/_node_modules/micromark-factory-label/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-label/index.js +0 -64
- package/dist/_node_modules/micromark-factory-label/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-space/index.cjs +0 -25
- package/dist/_node_modules/micromark-factory-space/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-space/index.js +0 -25
- package/dist/_node_modules/micromark-factory-space/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-title/index.cjs +0 -66
- package/dist/_node_modules/micromark-factory-title/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-title/index.js +0 -66
- package/dist/_node_modules/micromark-factory-title/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-whitespace/index.cjs +0 -27
- package/dist/_node_modules/micromark-factory-whitespace/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-whitespace/index.js +0 -27
- package/dist/_node_modules/micromark-factory-whitespace/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-character/index.cjs +0 -45
- package/dist/_node_modules/micromark-util-character/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-character/index.js +0 -45
- package/dist/_node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-chunked/index.cjs +0 -37
- package/dist/_node_modules/micromark-util-chunked/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-chunked/index.js +0 -37
- package/dist/_node_modules/micromark-util-chunked/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-classify-character/index.cjs +0 -13
- package/dist/_node_modules/micromark-util-classify-character/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-classify-character/index.js +0 -13
- package/dist/_node_modules/micromark-util-classify-character/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-combine-extensions/index.cjs +0 -42
- package/dist/_node_modules/micromark-util-combine-extensions/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-combine-extensions/index.js +0 -42
- package/dist/_node_modules/micromark-util-combine-extensions/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs +0 -20
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -20
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-decode-string/index.cjs +0 -22
- package/dist/_node_modules/micromark-util-decode-string/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-decode-string/index.js +0 -22
- package/dist/_node_modules/micromark-util-decode-string/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-html-tag-name/index.cjs +0 -70
- package/dist/_node_modules/micromark-util-html-tag-name/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-html-tag-name/index.js +0 -70
- package/dist/_node_modules/micromark-util-html-tag-name/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs +0 -7
- package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-normalize-identifier/index.js +0 -7
- package/dist/_node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-resolve-all/index.cjs +0 -16
- package/dist/_node_modules/micromark-util-resolve-all/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-resolve-all/index.js +0 -16
- package/dist/_node_modules/micromark-util-resolve-all/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs +0 -42
- package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-sanitize-uri/index.js +0 -42
- package/dist/_node_modules/micromark-util-sanitize-uri/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/index.cjs +0 -149
- package/dist/_node_modules/micromark-util-subtokenize/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/index.js +0 -149
- package/dist/_node_modules/micromark-util-subtokenize/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs +0 -195
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -195
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/compile.cjs +0 -20
- package/dist/_node_modules/nth-check/lib/esm/compile.cjs.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/compile.js +0 -20
- package/dist/_node_modules/nth-check/lib/esm/compile.js.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/index.cjs +0 -11
- package/dist/_node_modules/nth-check/lib/esm/index.cjs.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/index.js +0 -11
- package/dist/_node_modules/nth-check/lib/esm/index.js.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/parse.cjs +0 -59
- package/dist/_node_modules/nth-check/lib/esm/parse.cjs.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/parse.js +0 -59
- package/dist/_node_modules/nth-check/lib/esm/parse.js.map +0 -1
- package/dist/_node_modules/property-information/index.cjs +0 -14
- package/dist/_node_modules/property-information/index.cjs.map +0 -1
- package/dist/_node_modules/property-information/index.js +0 -14
- package/dist/_node_modules/property-information/index.js.map +0 -1
- package/dist/_node_modules/property-information/lib/aria.cjs +0 -62
- package/dist/_node_modules/property-information/lib/aria.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/aria.js +0 -62
- package/dist/_node_modules/property-information/lib/aria.js.map +0 -1
- package/dist/_node_modules/property-information/lib/find.cjs +0 -41
- package/dist/_node_modules/property-information/lib/find.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/find.js +0 -41
- package/dist/_node_modules/property-information/lib/find.js.map +0 -1
- package/dist/_node_modules/property-information/lib/html.cjs +0 -369
- package/dist/_node_modules/property-information/lib/html.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/html.js +0 -369
- package/dist/_node_modules/property-information/lib/html.js.map +0 -1
- package/dist/_node_modules/property-information/lib/normalize.cjs +0 -7
- package/dist/_node_modules/property-information/lib/normalize.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/normalize.js +0 -7
- package/dist/_node_modules/property-information/lib/normalize.js.map +0 -1
- package/dist/_node_modules/property-information/lib/svg.cjs +0 -567
- package/dist/_node_modules/property-information/lib/svg.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/svg.js +0 -567
- package/dist/_node_modules/property-information/lib/svg.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -8
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js +0 -8
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -7
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js +0 -7
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/create.cjs +0 -31
- package/dist/_node_modules/property-information/lib/util/create.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/create.js +0 -31
- package/dist/_node_modules/property-information/lib/util/create.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/defined-info.cjs +0 -33
- package/dist/_node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/defined-info.js +0 -33
- package/dist/_node_modules/property-information/lib/util/defined-info.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/info.cjs +0 -25
- package/dist/_node_modules/property-information/lib/util/info.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/info.js +0 -25
- package/dist/_node_modules/property-information/lib/util/info.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/merge.cjs +0 -15
- package/dist/_node_modules/property-information/lib/util/merge.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/merge.js +0 -15
- package/dist/_node_modules/property-information/lib/util/merge.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/schema.cjs +0 -22
- package/dist/_node_modules/property-information/lib/util/schema.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/schema.js +0 -22
- package/dist/_node_modules/property-information/lib/util/schema.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/types.cjs +0 -21
- package/dist/_node_modules/property-information/lib/util/types.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/types.js +0 -21
- package/dist/_node_modules/property-information/lib/util/types.js.map +0 -1
- package/dist/_node_modules/property-information/lib/xlink.cjs +0 -20
- package/dist/_node_modules/property-information/lib/xlink.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/xlink.js +0 -20
- package/dist/_node_modules/property-information/lib/xlink.js.map +0 -1
- package/dist/_node_modules/property-information/lib/xml.cjs +0 -12
- package/dist/_node_modules/property-information/lib/xml.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/xml.js +0 -12
- package/dist/_node_modules/property-information/lib/xml.js.map +0 -1
- package/dist/_node_modules/property-information/lib/xmlns.cjs +0 -12
- package/dist/_node_modules/property-information/lib/xmlns.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/xmlns.js +0 -12
- package/dist/_node_modules/property-information/lib/xmlns.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs +0 -122
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.js +0 -122
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs +0 -11
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.js +0 -11
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs +0 -169
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.js +0 -170
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs +0 -24
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js +0 -24
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js.map +0 -1
- package/dist/_node_modules/rehype-parse/lib/index.cjs +0 -21
- package/dist/_node_modules/rehype-parse/lib/index.cjs.map +0 -1
- package/dist/_node_modules/rehype-parse/lib/index.js +0 -22
- package/dist/_node_modules/rehype-parse/lib/index.js.map +0 -1
- package/dist/_node_modules/remark-parse/lib/index.cjs +0 -19
- package/dist/_node_modules/remark-parse/lib/index.cjs.map +0 -1
- package/dist/_node_modules/remark-parse/lib/index.js +0 -20
- package/dist/_node_modules/remark-parse/lib/index.js.map +0 -1
- package/dist/_node_modules/remark-rehype/lib/index.cjs +0 -21
- package/dist/_node_modules/remark-rehype/lib/index.cjs.map +0 -1
- package/dist/_node_modules/remark-rehype/lib/index.js +0 -22
- package/dist/_node_modules/remark-rehype/lib/index.js.map +0 -1
- package/dist/_node_modules/space-separated-tokens/index.cjs +0 -12
- package/dist/_node_modules/space-separated-tokens/index.cjs.map +0 -1
- package/dist/_node_modules/space-separated-tokens/index.js +0 -12
- package/dist/_node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs +0 -14
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js +0 -14
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/core.cjs +0 -52
- package/dist/_node_modules/stringify-entities/lib/core.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/core.js +0 -52
- package/dist/_node_modules/stringify-entities/lib/core.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/index.cjs +0 -9
- package/dist/_node_modules/stringify-entities/lib/index.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/index.js +0 -9
- package/dist/_node_modules/stringify-entities/lib/index.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs +0 -26
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.js +0 -26
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs +0 -28
- package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-named.js +0 -28
- package/dist/_node_modules/stringify-entities/lib/util/to-named.js.map +0 -1
- package/dist/_node_modules/trim-lines/index.cjs +0 -42
- package/dist/_node_modules/trim-lines/index.cjs.map +0 -1
- package/dist/_node_modules/trim-lines/index.js +0 -42
- package/dist/_node_modules/trim-lines/index.js.map +0 -1
- package/dist/_node_modules/trough/lib/index.cjs +0 -87
- package/dist/_node_modules/trough/lib/index.cjs.map +0 -1
- package/dist/_node_modules/trough/lib/index.js +0 -87
- package/dist/_node_modules/trough/lib/index.js.map +0 -1
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs +0 -10
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs.map +0 -1
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js +0 -11
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js.map +0 -1
- package/dist/_node_modules/unified/lib/callable-instance.cjs +0 -31
- package/dist/_node_modules/unified/lib/callable-instance.cjs.map +0 -1
- package/dist/_node_modules/unified/lib/callable-instance.js +0 -31
- package/dist/_node_modules/unified/lib/callable-instance.js.map +0 -1
- package/dist/_node_modules/unified/lib/index.cjs +0 -637
- package/dist/_node_modules/unified/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unified/lib/index.js +0 -637
- package/dist/_node_modules/unified/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-is/lib/index.cjs +0 -94
- package/dist/_node_modules/unist-util-is/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-is/lib/index.js +0 -94
- package/dist/_node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-position/lib/index.cjs +0 -28
- package/dist/_node_modules/unist-util-position/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-position/lib/index.js +0 -28
- package/dist/_node_modules/unist-util-position/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-remove/lib/index.cjs +0 -39
- package/dist/_node_modules/unist-util-remove/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-remove/lib/index.js +0 -39
- package/dist/_node_modules/unist-util-remove/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs +0 -28
- package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-stringify-position/lib/index.js +0 -28
- package/dist/_node_modules/unist-util-stringify-position/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-visit/lib/index.cjs +0 -28
- package/dist/_node_modules/unist-util-visit/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-visit/lib/index.js +0 -29
- package/dist/_node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs +0 -7
- package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/color.js +0 -7
- package/dist/_node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs +0 -84
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js +0 -84
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/_node_modules/vfile/lib/index.cjs +0 -463
- package/dist/_node_modules/vfile/lib/index.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/index.js +0 -463
- package/dist/_node_modules/vfile/lib/index.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minpath.browser.cjs +0 -215
- package/dist/_node_modules/vfile/lib/minpath.browser.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minpath.browser.js +0 -215
- package/dist/_node_modules/vfile/lib/minpath.browser.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minproc.browser.cjs +0 -8
- package/dist/_node_modules/vfile/lib/minproc.browser.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minproc.browser.js +0 -8
- package/dist/_node_modules/vfile/lib/minproc.browser.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.browser.cjs +0 -47
- package/dist/_node_modules/vfile/lib/minurl.browser.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.browser.js +0 -47
- package/dist/_node_modules/vfile/lib/minurl.browser.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.shared.cjs +0 -10
- package/dist/_node_modules/vfile/lib/minurl.shared.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.shared.js +0 -10
- package/dist/_node_modules/vfile/lib/minurl.shared.js.map +0 -1
- package/dist/_node_modules/vfile-location/lib/index.cjs +0 -50
- package/dist/_node_modules/vfile-location/lib/index.cjs.map +0 -1
- package/dist/_node_modules/vfile-location/lib/index.js +0 -50
- package/dist/_node_modules/vfile-location/lib/index.js.map +0 -1
- package/dist/_node_modules/vfile-message/lib/index.cjs +0 -139
- package/dist/_node_modules/vfile-message/lib/index.cjs.map +0 -1
- package/dist/_node_modules/vfile-message/lib/index.js +0 -139
- package/dist/_node_modules/vfile-message/lib/index.js.map +0 -1
- package/dist/_node_modules/web-namespaces/index.cjs +0 -12
- package/dist/_node_modules/web-namespaces/index.cjs.map +0 -1
- package/dist/_node_modules/web-namespaces/index.js +0 -12
- package/dist/_node_modules/web-namespaces/index.js.map +0 -1
- package/dist/_node_modules/zwitch/index.cjs +0 -23
- package/dist/_node_modules/zwitch/index.cjs.map +0 -1
- package/dist/_node_modules/zwitch/index.js +0 -23
- package/dist/_node_modules/zwitch/index.js.map +0 -1
- package/dist/_virtual/_commonjsHelpers.cjs +0 -7
- package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -7
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/index.cjs +0 -9
- package/dist/_virtual/index.cjs.map +0 -1
- package/dist/_virtual/index.js +0 -9
- package/dist/_virtual/index.js.map +0 -1
- package/dist/errors/PrismicRichTextError.cjs +0 -6
- package/dist/errors/PrismicRichTextError.cjs.map +0 -1
- package/dist/errors/PrismicRichTextError.d.ts +0 -2
- package/dist/errors/PrismicRichTextError.js +0 -6
- package/dist/errors/PrismicRichTextError.js.map +0 -1
- package/dist/errors/PrismicRichTextSerializerError.cjs +0 -7
- package/dist/errors/PrismicRichTextSerializerError.cjs.map +0 -1
- package/dist/errors/PrismicRichTextSerializerError.d.ts +0 -3
- package/dist/errors/PrismicRichTextSerializerError.js +0 -7
- package/dist/errors/PrismicRichTextSerializerError.js.map +0 -1
- package/dist/helpers/unstable_htmlAsRichText.cjs +0 -11
- package/dist/helpers/unstable_htmlAsRichText.cjs.map +0 -1
- package/dist/helpers/unstable_htmlAsRichText.d.ts +0 -81
- package/dist/helpers/unstable_htmlAsRichText.js +0 -11
- package/dist/helpers/unstable_htmlAsRichText.js.map +0 -1
- package/dist/helpers/unstable_markdownAsRichText.cjs +0 -12
- package/dist/helpers/unstable_markdownAsRichText.cjs.map +0 -1
- package/dist/helpers/unstable_markdownAsRichText.d.ts +0 -30
- package/dist/helpers/unstable_markdownAsRichText.js +0 -12
- package/dist/helpers/unstable_markdownAsRichText.js.map +0 -1
- package/dist/lib/RichTextFieldBuilder.cjs +0 -115
- package/dist/lib/RichTextFieldBuilder.cjs.map +0 -1
- package/dist/lib/RichTextFieldBuilder.d.ts +0 -35
- package/dist/lib/RichTextFieldBuilder.js +0 -115
- package/dist/lib/RichTextFieldBuilder.js.map +0 -1
- package/dist/lib/filterRichTextField.cjs +0 -88
- package/dist/lib/filterRichTextField.cjs.map +0 -1
- package/dist/lib/filterRichTextField.d.ts +0 -12
- package/dist/lib/filterRichTextField.js +0 -88
- package/dist/lib/filterRichTextField.js.map +0 -1
- package/dist/lib/hastSerializerHelpers.cjs +0 -96
- package/dist/lib/hastSerializerHelpers.cjs.map +0 -1
- package/dist/lib/hastSerializerHelpers.d.ts +0 -28
- package/dist/lib/hastSerializerHelpers.js +0 -96
- package/dist/lib/hastSerializerHelpers.js.map +0 -1
- package/dist/lib/hastToRichText.cjs +0 -164
- package/dist/lib/hastToRichText.cjs.map +0 -1
- package/dist/lib/hastToRichText.d.ts +0 -30
- package/dist/lib/hastToRichText.js +0 -164
- package/dist/lib/hastToRichText.js.map +0 -1
- package/dist/lib/rehypeRichText.cjs +0 -60
- package/dist/lib/rehypeRichText.cjs.map +0 -1
- package/dist/lib/rehypeRichText.d.ts +0 -66
- package/dist/lib/rehypeRichText.js +0 -60
- package/dist/lib/rehypeRichText.js.map +0 -1
- package/src/errors/PrismicRichTextError.ts +0 -1
- package/src/errors/PrismicRichTextSerializerError.ts +0 -3
- package/src/helpers/unstable_htmlAsRichText.ts +0 -122
- package/src/helpers/unstable_markdownAsRichText.ts +0 -53
- package/src/lib/RichTextFieldBuilder.ts +0 -164
- package/src/lib/filterRichTextField.ts +0 -159
- package/src/lib/hastSerializerHelpers.ts +0 -157
- package/src/lib/hastToRichText.ts +0 -295
- package/src/lib/rehypeRichText.ts +0 -184
|
@@ -1,637 +0,0 @@
|
|
|
1
|
-
import { bail } from "../../bail/index.js";
|
|
2
|
-
import extend from "../../extend/index.js";
|
|
3
|
-
import isPlainObject from './../_node_modules/is-plain-obj/index.js';
|
|
4
|
-
import { CallableInstance } from "./callable-instance.js";
|
|
5
|
-
import { trough } from "../../trough/lib/index.js";
|
|
6
|
-
import { VFile } from "../../vfile/lib/index.js";
|
|
7
|
-
const own = {}.hasOwnProperty;
|
|
8
|
-
class Processor extends CallableInstance {
|
|
9
|
-
/**
|
|
10
|
-
* Create a processor.
|
|
11
|
-
*/
|
|
12
|
-
constructor() {
|
|
13
|
-
super("copy");
|
|
14
|
-
this.Compiler = void 0;
|
|
15
|
-
this.Parser = void 0;
|
|
16
|
-
this.attachers = [];
|
|
17
|
-
this.compiler = void 0;
|
|
18
|
-
this.freezeIndex = -1;
|
|
19
|
-
this.frozen = void 0;
|
|
20
|
-
this.namespace = {};
|
|
21
|
-
this.parser = void 0;
|
|
22
|
-
this.transformers = trough();
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Copy a processor.
|
|
26
|
-
*
|
|
27
|
-
* @deprecated
|
|
28
|
-
* This is a private internal method and should not be used.
|
|
29
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
30
|
-
* New *unfrozen* processor ({@linkcode Processor}) that is
|
|
31
|
-
* configured to work the same as its ancestor.
|
|
32
|
-
* When the descendant processor is configured in the future it does not
|
|
33
|
-
* affect the ancestral processor.
|
|
34
|
-
*/
|
|
35
|
-
copy() {
|
|
36
|
-
const destination = (
|
|
37
|
-
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
38
|
-
new Processor()
|
|
39
|
-
);
|
|
40
|
-
let index = -1;
|
|
41
|
-
while (++index < this.attachers.length) {
|
|
42
|
-
const attacher = this.attachers[index];
|
|
43
|
-
destination.use(...attacher);
|
|
44
|
-
}
|
|
45
|
-
destination.data(extend(true, {}, this.namespace));
|
|
46
|
-
return destination;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Configure the processor with info available to all plugins.
|
|
50
|
-
* Information is stored in an object.
|
|
51
|
-
*
|
|
52
|
-
* Typically, options can be given to a specific plugin, but sometimes it
|
|
53
|
-
* makes sense to have information shared with several plugins.
|
|
54
|
-
* For example, a list of HTML elements that are self-closing, which is
|
|
55
|
-
* needed during all phases.
|
|
56
|
-
*
|
|
57
|
-
* > **Note**: setting information cannot occur on *frozen* processors.
|
|
58
|
-
* > Call the processor first to create a new unfrozen processor.
|
|
59
|
-
*
|
|
60
|
-
* > **Note**: to register custom data in TypeScript, augment the
|
|
61
|
-
* > {@linkcode Data} interface.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* This example show how to get and set info:
|
|
65
|
-
*
|
|
66
|
-
* ```js
|
|
67
|
-
* import {unified} from 'unified'
|
|
68
|
-
*
|
|
69
|
-
* const processor = unified().data('alpha', 'bravo')
|
|
70
|
-
*
|
|
71
|
-
* processor.data('alpha') // => 'bravo'
|
|
72
|
-
*
|
|
73
|
-
* processor.data() // => {alpha: 'bravo'}
|
|
74
|
-
*
|
|
75
|
-
* processor.data({charlie: 'delta'})
|
|
76
|
-
*
|
|
77
|
-
* processor.data() // => {charlie: 'delta'}
|
|
78
|
-
* ```
|
|
79
|
-
*
|
|
80
|
-
* @template {keyof Data} Key
|
|
81
|
-
*
|
|
82
|
-
* @overload
|
|
83
|
-
* @returns {Data}
|
|
84
|
-
*
|
|
85
|
-
* @overload
|
|
86
|
-
* @param {Data} dataset
|
|
87
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
88
|
-
*
|
|
89
|
-
* @overload
|
|
90
|
-
* @param {Key} key
|
|
91
|
-
* @returns {Data[Key]}
|
|
92
|
-
*
|
|
93
|
-
* @overload
|
|
94
|
-
* @param {Key} key
|
|
95
|
-
* @param {Data[Key]} value
|
|
96
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
97
|
-
*
|
|
98
|
-
* @param {Data | Key} [key]
|
|
99
|
-
* Key to get or set, or entire dataset to set, or nothing to get the
|
|
100
|
-
* entire dataset (optional).
|
|
101
|
-
* @param {Data[Key]} [value]
|
|
102
|
-
* Value to set (optional).
|
|
103
|
-
* @returns {unknown}
|
|
104
|
-
* The current processor when setting, the value at `key` when getting, or
|
|
105
|
-
* the entire dataset when getting without key.
|
|
106
|
-
*/
|
|
107
|
-
data(key, value) {
|
|
108
|
-
if (typeof key === "string") {
|
|
109
|
-
if (arguments.length === 2) {
|
|
110
|
-
assertUnfrozen("data", this.frozen);
|
|
111
|
-
this.namespace[key] = value;
|
|
112
|
-
return this;
|
|
113
|
-
}
|
|
114
|
-
return own.call(this.namespace, key) && this.namespace[key] || void 0;
|
|
115
|
-
}
|
|
116
|
-
if (key) {
|
|
117
|
-
assertUnfrozen("data", this.frozen);
|
|
118
|
-
this.namespace = key;
|
|
119
|
-
return this;
|
|
120
|
-
}
|
|
121
|
-
return this.namespace;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Freeze a processor.
|
|
125
|
-
*
|
|
126
|
-
* Frozen processors are meant to be extended and not to be configured
|
|
127
|
-
* directly.
|
|
128
|
-
*
|
|
129
|
-
* When a processor is frozen it cannot be unfrozen.
|
|
130
|
-
* New processors working the same way can be created by calling the
|
|
131
|
-
* processor.
|
|
132
|
-
*
|
|
133
|
-
* It’s possible to freeze processors explicitly by calling `.freeze()`.
|
|
134
|
-
* Processors freeze automatically when `.parse()`, `.run()`, `.runSync()`,
|
|
135
|
-
* `.stringify()`, `.process()`, or `.processSync()` are called.
|
|
136
|
-
*
|
|
137
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
138
|
-
* The current processor.
|
|
139
|
-
*/
|
|
140
|
-
freeze() {
|
|
141
|
-
if (this.frozen) {
|
|
142
|
-
return this;
|
|
143
|
-
}
|
|
144
|
-
const self = (
|
|
145
|
-
/** @type {Processor} */
|
|
146
|
-
/** @type {unknown} */
|
|
147
|
-
this
|
|
148
|
-
);
|
|
149
|
-
while (++this.freezeIndex < this.attachers.length) {
|
|
150
|
-
const [attacher, ...options] = this.attachers[this.freezeIndex];
|
|
151
|
-
if (options[0] === false) {
|
|
152
|
-
continue;
|
|
153
|
-
}
|
|
154
|
-
if (options[0] === true) {
|
|
155
|
-
options[0] = void 0;
|
|
156
|
-
}
|
|
157
|
-
const transformer = attacher.call(self, ...options);
|
|
158
|
-
if (typeof transformer === "function") {
|
|
159
|
-
this.transformers.use(transformer);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
this.frozen = true;
|
|
163
|
-
this.freezeIndex = Number.POSITIVE_INFINITY;
|
|
164
|
-
return this;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Parse text to a syntax tree.
|
|
168
|
-
*
|
|
169
|
-
* > **Note**: `parse` freezes the processor if not already *frozen*.
|
|
170
|
-
*
|
|
171
|
-
* > **Note**: `parse` performs the parse phase, not the run phase or other
|
|
172
|
-
* > phases.
|
|
173
|
-
*
|
|
174
|
-
* @param {Compatible | undefined} [file]
|
|
175
|
-
* file to parse (optional); typically `string` or `VFile`; any value
|
|
176
|
-
* accepted as `x` in `new VFile(x)`.
|
|
177
|
-
* @returns {ParseTree extends undefined ? Node : ParseTree}
|
|
178
|
-
* Syntax tree representing `file`.
|
|
179
|
-
*/
|
|
180
|
-
parse(file) {
|
|
181
|
-
this.freeze();
|
|
182
|
-
const realFile = vfile(file);
|
|
183
|
-
const parser = this.parser || this.Parser;
|
|
184
|
-
assertParser("parse", parser);
|
|
185
|
-
return parser(String(realFile), realFile);
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Process the given file as configured on the processor.
|
|
189
|
-
*
|
|
190
|
-
* > **Note**: `process` freezes the processor if not already *frozen*.
|
|
191
|
-
*
|
|
192
|
-
* > **Note**: `process` performs the parse, run, and stringify phases.
|
|
193
|
-
*
|
|
194
|
-
* @overload
|
|
195
|
-
* @param {Compatible | undefined} file
|
|
196
|
-
* @param {ProcessCallback<VFileWithOutput<CompileResult>>} done
|
|
197
|
-
* @returns {undefined}
|
|
198
|
-
*
|
|
199
|
-
* @overload
|
|
200
|
-
* @param {Compatible | undefined} [file]
|
|
201
|
-
* @returns {Promise<VFileWithOutput<CompileResult>>}
|
|
202
|
-
*
|
|
203
|
-
* @param {Compatible | undefined} [file]
|
|
204
|
-
* File (optional); typically `string` or `VFile`]; any value accepted as
|
|
205
|
-
* `x` in `new VFile(x)`.
|
|
206
|
-
* @param {ProcessCallback<VFileWithOutput<CompileResult>> | undefined} [done]
|
|
207
|
-
* Callback (optional).
|
|
208
|
-
* @returns {Promise<VFile> | undefined}
|
|
209
|
-
* Nothing if `done` is given.
|
|
210
|
-
* Otherwise a promise, rejected with a fatal error or resolved with the
|
|
211
|
-
* processed file.
|
|
212
|
-
*
|
|
213
|
-
* The parsed, transformed, and compiled value is available at
|
|
214
|
-
* `file.value` (see note).
|
|
215
|
-
*
|
|
216
|
-
* > **Note**: unified typically compiles by serializing: most
|
|
217
|
-
* > compilers return `string` (or `Uint8Array`).
|
|
218
|
-
* > Some compilers, such as the one configured with
|
|
219
|
-
* > [`rehype-react`][rehype-react], return other values (in this case, a
|
|
220
|
-
* > React tree).
|
|
221
|
-
* > If you’re using a compiler that doesn’t serialize, expect different
|
|
222
|
-
* > result values.
|
|
223
|
-
* >
|
|
224
|
-
* > To register custom results in TypeScript, add them to
|
|
225
|
-
* > {@linkcode CompileResultMap}.
|
|
226
|
-
*
|
|
227
|
-
* [rehype-react]: https://github.com/rehypejs/rehype-react
|
|
228
|
-
*/
|
|
229
|
-
process(file, done) {
|
|
230
|
-
const self = this;
|
|
231
|
-
this.freeze();
|
|
232
|
-
assertParser("process", this.parser || this.Parser);
|
|
233
|
-
assertCompiler("process", this.compiler || this.Compiler);
|
|
234
|
-
return done ? executor(void 0, done) : new Promise(executor);
|
|
235
|
-
function executor(resolve, reject) {
|
|
236
|
-
const realFile = vfile(file);
|
|
237
|
-
const parseTree = (
|
|
238
|
-
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
239
|
-
/** @type {unknown} */
|
|
240
|
-
self.parse(realFile)
|
|
241
|
-
);
|
|
242
|
-
self.run(parseTree, realFile, function(error, tree, file2) {
|
|
243
|
-
if (error || !tree || !file2) {
|
|
244
|
-
return realDone(error);
|
|
245
|
-
}
|
|
246
|
-
const compileTree = (
|
|
247
|
-
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
248
|
-
/** @type {unknown} */
|
|
249
|
-
tree
|
|
250
|
-
);
|
|
251
|
-
const compileResult = self.stringify(compileTree, file2);
|
|
252
|
-
if (looksLikeAValue(compileResult)) {
|
|
253
|
-
file2.value = compileResult;
|
|
254
|
-
} else {
|
|
255
|
-
file2.result = compileResult;
|
|
256
|
-
}
|
|
257
|
-
realDone(
|
|
258
|
-
error,
|
|
259
|
-
/** @type {VFileWithOutput<CompileResult>} */
|
|
260
|
-
file2
|
|
261
|
-
);
|
|
262
|
-
});
|
|
263
|
-
function realDone(error, file2) {
|
|
264
|
-
if (error || !file2) {
|
|
265
|
-
reject(error);
|
|
266
|
-
} else if (resolve) {
|
|
267
|
-
resolve(file2);
|
|
268
|
-
} else {
|
|
269
|
-
done(void 0, file2);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Process the given file as configured on the processor.
|
|
276
|
-
*
|
|
277
|
-
* An error is thrown if asynchronous transforms are configured.
|
|
278
|
-
*
|
|
279
|
-
* > **Note**: `processSync` freezes the processor if not already *frozen*.
|
|
280
|
-
*
|
|
281
|
-
* > **Note**: `processSync` performs the parse, run, and stringify phases.
|
|
282
|
-
*
|
|
283
|
-
* @param {Compatible | undefined} [file]
|
|
284
|
-
* File (optional); typically `string` or `VFile`; any value accepted as
|
|
285
|
-
* `x` in `new VFile(x)`.
|
|
286
|
-
* @returns {VFileWithOutput<CompileResult>}
|
|
287
|
-
* The processed file.
|
|
288
|
-
*
|
|
289
|
-
* The parsed, transformed, and compiled value is available at
|
|
290
|
-
* `file.value` (see note).
|
|
291
|
-
*
|
|
292
|
-
* > **Note**: unified typically compiles by serializing: most
|
|
293
|
-
* > compilers return `string` (or `Uint8Array`).
|
|
294
|
-
* > Some compilers, such as the one configured with
|
|
295
|
-
* > [`rehype-react`][rehype-react], return other values (in this case, a
|
|
296
|
-
* > React tree).
|
|
297
|
-
* > If you’re using a compiler that doesn’t serialize, expect different
|
|
298
|
-
* > result values.
|
|
299
|
-
* >
|
|
300
|
-
* > To register custom results in TypeScript, add them to
|
|
301
|
-
* > {@linkcode CompileResultMap}.
|
|
302
|
-
*
|
|
303
|
-
* [rehype-react]: https://github.com/rehypejs/rehype-react
|
|
304
|
-
*/
|
|
305
|
-
processSync(file) {
|
|
306
|
-
let complete = false;
|
|
307
|
-
let result;
|
|
308
|
-
this.freeze();
|
|
309
|
-
assertParser("processSync", this.parser || this.Parser);
|
|
310
|
-
assertCompiler("processSync", this.compiler || this.Compiler);
|
|
311
|
-
this.process(file, realDone);
|
|
312
|
-
assertDone("processSync", "process", complete);
|
|
313
|
-
return result;
|
|
314
|
-
function realDone(error, file2) {
|
|
315
|
-
complete = true;
|
|
316
|
-
bail(error);
|
|
317
|
-
result = file2;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* Run *transformers* on a syntax tree.
|
|
322
|
-
*
|
|
323
|
-
* > **Note**: `run` freezes the processor if not already *frozen*.
|
|
324
|
-
*
|
|
325
|
-
* > **Note**: `run` performs the run phase, not other phases.
|
|
326
|
-
*
|
|
327
|
-
* @overload
|
|
328
|
-
* @param {HeadTree extends undefined ? Node : HeadTree} tree
|
|
329
|
-
* @param {RunCallback<TailTree extends undefined ? Node : TailTree>} done
|
|
330
|
-
* @returns {undefined}
|
|
331
|
-
*
|
|
332
|
-
* @overload
|
|
333
|
-
* @param {HeadTree extends undefined ? Node : HeadTree} tree
|
|
334
|
-
* @param {Compatible | undefined} file
|
|
335
|
-
* @param {RunCallback<TailTree extends undefined ? Node : TailTree>} done
|
|
336
|
-
* @returns {undefined}
|
|
337
|
-
*
|
|
338
|
-
* @overload
|
|
339
|
-
* @param {HeadTree extends undefined ? Node : HeadTree} tree
|
|
340
|
-
* @param {Compatible | undefined} [file]
|
|
341
|
-
* @returns {Promise<TailTree extends undefined ? Node : TailTree>}
|
|
342
|
-
*
|
|
343
|
-
* @param {HeadTree extends undefined ? Node : HeadTree} tree
|
|
344
|
-
* Tree to transform and inspect.
|
|
345
|
-
* @param {(
|
|
346
|
-
* RunCallback<TailTree extends undefined ? Node : TailTree> |
|
|
347
|
-
* Compatible
|
|
348
|
-
* )} [file]
|
|
349
|
-
* File associated with `node` (optional); any value accepted as `x` in
|
|
350
|
-
* `new VFile(x)`.
|
|
351
|
-
* @param {RunCallback<TailTree extends undefined ? Node : TailTree>} [done]
|
|
352
|
-
* Callback (optional).
|
|
353
|
-
* @returns {Promise<TailTree extends undefined ? Node : TailTree> | undefined}
|
|
354
|
-
* Nothing if `done` is given.
|
|
355
|
-
* Otherwise, a promise rejected with a fatal error or resolved with the
|
|
356
|
-
* transformed tree.
|
|
357
|
-
*/
|
|
358
|
-
run(tree, file, done) {
|
|
359
|
-
assertNode(tree);
|
|
360
|
-
this.freeze();
|
|
361
|
-
const transformers = this.transformers;
|
|
362
|
-
if (!done && typeof file === "function") {
|
|
363
|
-
done = file;
|
|
364
|
-
file = void 0;
|
|
365
|
-
}
|
|
366
|
-
return done ? executor(void 0, done) : new Promise(executor);
|
|
367
|
-
function executor(resolve, reject) {
|
|
368
|
-
const realFile = vfile(file);
|
|
369
|
-
transformers.run(tree, realFile, realDone);
|
|
370
|
-
function realDone(error, outputTree, file2) {
|
|
371
|
-
const resultingTree = (
|
|
372
|
-
/** @type {TailTree extends undefined ? Node : TailTree} */
|
|
373
|
-
outputTree || tree
|
|
374
|
-
);
|
|
375
|
-
if (error) {
|
|
376
|
-
reject(error);
|
|
377
|
-
} else if (resolve) {
|
|
378
|
-
resolve(resultingTree);
|
|
379
|
-
} else {
|
|
380
|
-
done(void 0, resultingTree, file2);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Run *transformers* on a syntax tree.
|
|
387
|
-
*
|
|
388
|
-
* An error is thrown if asynchronous transforms are configured.
|
|
389
|
-
*
|
|
390
|
-
* > **Note**: `runSync` freezes the processor if not already *frozen*.
|
|
391
|
-
*
|
|
392
|
-
* > **Note**: `runSync` performs the run phase, not other phases.
|
|
393
|
-
*
|
|
394
|
-
* @param {HeadTree extends undefined ? Node : HeadTree} tree
|
|
395
|
-
* Tree to transform and inspect.
|
|
396
|
-
* @param {Compatible | undefined} [file]
|
|
397
|
-
* File associated with `node` (optional); any value accepted as `x` in
|
|
398
|
-
* `new VFile(x)`.
|
|
399
|
-
* @returns {TailTree extends undefined ? Node : TailTree}
|
|
400
|
-
* Transformed tree.
|
|
401
|
-
*/
|
|
402
|
-
runSync(tree, file) {
|
|
403
|
-
let complete = false;
|
|
404
|
-
let result;
|
|
405
|
-
this.run(tree, file, realDone);
|
|
406
|
-
assertDone("runSync", "run", complete);
|
|
407
|
-
return result;
|
|
408
|
-
function realDone(error, tree2) {
|
|
409
|
-
bail(error);
|
|
410
|
-
result = tree2;
|
|
411
|
-
complete = true;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
* Compile a syntax tree.
|
|
416
|
-
*
|
|
417
|
-
* > **Note**: `stringify` freezes the processor if not already *frozen*.
|
|
418
|
-
*
|
|
419
|
-
* > **Note**: `stringify` performs the stringify phase, not the run phase
|
|
420
|
-
* > or other phases.
|
|
421
|
-
*
|
|
422
|
-
* @param {CompileTree extends undefined ? Node : CompileTree} tree
|
|
423
|
-
* Tree to compile.
|
|
424
|
-
* @param {Compatible | undefined} [file]
|
|
425
|
-
* File associated with `node` (optional); any value accepted as `x` in
|
|
426
|
-
* `new VFile(x)`.
|
|
427
|
-
* @returns {CompileResult extends undefined ? Value : CompileResult}
|
|
428
|
-
* Textual representation of the tree (see note).
|
|
429
|
-
*
|
|
430
|
-
* > **Note**: unified typically compiles by serializing: most compilers
|
|
431
|
-
* > return `string` (or `Uint8Array`).
|
|
432
|
-
* > Some compilers, such as the one configured with
|
|
433
|
-
* > [`rehype-react`][rehype-react], return other values (in this case, a
|
|
434
|
-
* > React tree).
|
|
435
|
-
* > If you’re using a compiler that doesn’t serialize, expect different
|
|
436
|
-
* > result values.
|
|
437
|
-
* >
|
|
438
|
-
* > To register custom results in TypeScript, add them to
|
|
439
|
-
* > {@linkcode CompileResultMap}.
|
|
440
|
-
*
|
|
441
|
-
* [rehype-react]: https://github.com/rehypejs/rehype-react
|
|
442
|
-
*/
|
|
443
|
-
stringify(tree, file) {
|
|
444
|
-
this.freeze();
|
|
445
|
-
const realFile = vfile(file);
|
|
446
|
-
const compiler = this.compiler || this.Compiler;
|
|
447
|
-
assertCompiler("stringify", compiler);
|
|
448
|
-
assertNode(tree);
|
|
449
|
-
return compiler(tree, realFile);
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* Configure the processor to use a plugin, a list of usable values, or a
|
|
453
|
-
* preset.
|
|
454
|
-
*
|
|
455
|
-
* If the processor is already using a plugin, the previous plugin
|
|
456
|
-
* configuration is changed based on the options that are passed in.
|
|
457
|
-
* In other words, the plugin is not added a second time.
|
|
458
|
-
*
|
|
459
|
-
* > **Note**: `use` cannot be called on *frozen* processors.
|
|
460
|
-
* > Call the processor first to create a new unfrozen processor.
|
|
461
|
-
*
|
|
462
|
-
* @example
|
|
463
|
-
* There are many ways to pass plugins to `.use()`.
|
|
464
|
-
* This example gives an overview:
|
|
465
|
-
*
|
|
466
|
-
* ```js
|
|
467
|
-
* import {unified} from 'unified'
|
|
468
|
-
*
|
|
469
|
-
* unified()
|
|
470
|
-
* // Plugin with options:
|
|
471
|
-
* .use(pluginA, {x: true, y: true})
|
|
472
|
-
* // Passing the same plugin again merges configuration (to `{x: true, y: false, z: true}`):
|
|
473
|
-
* .use(pluginA, {y: false, z: true})
|
|
474
|
-
* // Plugins:
|
|
475
|
-
* .use([pluginB, pluginC])
|
|
476
|
-
* // Two plugins, the second with options:
|
|
477
|
-
* .use([pluginD, [pluginE, {}]])
|
|
478
|
-
* // Preset with plugins and settings:
|
|
479
|
-
* .use({plugins: [pluginF, [pluginG, {}]], settings: {position: false}})
|
|
480
|
-
* // Settings only:
|
|
481
|
-
* .use({settings: {position: false}})
|
|
482
|
-
* ```
|
|
483
|
-
*
|
|
484
|
-
* @template {Array<unknown>} [Parameters=[]]
|
|
485
|
-
* @template {Node | string | undefined} [Input=undefined]
|
|
486
|
-
* @template [Output=Input]
|
|
487
|
-
*
|
|
488
|
-
* @overload
|
|
489
|
-
* @param {Preset | null | undefined} [preset]
|
|
490
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
491
|
-
*
|
|
492
|
-
* @overload
|
|
493
|
-
* @param {PluggableList} list
|
|
494
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
495
|
-
*
|
|
496
|
-
* @overload
|
|
497
|
-
* @param {Plugin<Parameters, Input, Output>} plugin
|
|
498
|
-
* @param {...(Parameters | [boolean])} parameters
|
|
499
|
-
* @returns {UsePlugin<ParseTree, HeadTree, TailTree, CompileTree, CompileResult, Input, Output>}
|
|
500
|
-
*
|
|
501
|
-
* @param {PluggableList | Plugin | Preset | null | undefined} value
|
|
502
|
-
* Usable value.
|
|
503
|
-
* @param {...unknown} parameters
|
|
504
|
-
* Parameters, when a plugin is given as a usable value.
|
|
505
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
506
|
-
* Current processor.
|
|
507
|
-
*/
|
|
508
|
-
use(value, ...parameters) {
|
|
509
|
-
const attachers = this.attachers;
|
|
510
|
-
const namespace = this.namespace;
|
|
511
|
-
assertUnfrozen("use", this.frozen);
|
|
512
|
-
if (value === null || value === void 0) ;
|
|
513
|
-
else if (typeof value === "function") {
|
|
514
|
-
addPlugin(value, parameters);
|
|
515
|
-
} else if (typeof value === "object") {
|
|
516
|
-
if (Array.isArray(value)) {
|
|
517
|
-
addList(value);
|
|
518
|
-
} else {
|
|
519
|
-
addPreset(value);
|
|
520
|
-
}
|
|
521
|
-
} else {
|
|
522
|
-
throw new TypeError("Expected usable value, not `" + value + "`");
|
|
523
|
-
}
|
|
524
|
-
return this;
|
|
525
|
-
function add(value2) {
|
|
526
|
-
if (typeof value2 === "function") {
|
|
527
|
-
addPlugin(value2, []);
|
|
528
|
-
} else if (typeof value2 === "object") {
|
|
529
|
-
if (Array.isArray(value2)) {
|
|
530
|
-
const [plugin, ...parameters2] = (
|
|
531
|
-
/** @type {PluginTuple<Array<unknown>>} */
|
|
532
|
-
value2
|
|
533
|
-
);
|
|
534
|
-
addPlugin(plugin, parameters2);
|
|
535
|
-
} else {
|
|
536
|
-
addPreset(value2);
|
|
537
|
-
}
|
|
538
|
-
} else {
|
|
539
|
-
throw new TypeError("Expected usable value, not `" + value2 + "`");
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
function addPreset(result) {
|
|
543
|
-
if (!("plugins" in result) && !("settings" in result)) {
|
|
544
|
-
throw new Error(
|
|
545
|
-
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
546
|
-
);
|
|
547
|
-
}
|
|
548
|
-
addList(result.plugins);
|
|
549
|
-
if (result.settings) {
|
|
550
|
-
namespace.settings = extend(true, namespace.settings, result.settings);
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
function addList(plugins) {
|
|
554
|
-
let index = -1;
|
|
555
|
-
if (plugins === null || plugins === void 0) ;
|
|
556
|
-
else if (Array.isArray(plugins)) {
|
|
557
|
-
while (++index < plugins.length) {
|
|
558
|
-
const thing = plugins[index];
|
|
559
|
-
add(thing);
|
|
560
|
-
}
|
|
561
|
-
} else {
|
|
562
|
-
throw new TypeError("Expected a list of plugins, not `" + plugins + "`");
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
function addPlugin(plugin, parameters2) {
|
|
566
|
-
let index = -1;
|
|
567
|
-
let entryIndex = -1;
|
|
568
|
-
while (++index < attachers.length) {
|
|
569
|
-
if (attachers[index][0] === plugin) {
|
|
570
|
-
entryIndex = index;
|
|
571
|
-
break;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
if (entryIndex === -1) {
|
|
575
|
-
attachers.push([plugin, ...parameters2]);
|
|
576
|
-
} else if (parameters2.length > 0) {
|
|
577
|
-
let [primary, ...rest] = parameters2;
|
|
578
|
-
const currentPrimary = attachers[entryIndex][1];
|
|
579
|
-
if (isPlainObject(currentPrimary) && isPlainObject(primary)) {
|
|
580
|
-
primary = extend(true, currentPrimary, primary);
|
|
581
|
-
}
|
|
582
|
-
attachers[entryIndex] = [plugin, primary, ...rest];
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
const unified = new Processor().freeze();
|
|
588
|
-
function assertParser(name, value) {
|
|
589
|
-
if (typeof value !== "function") {
|
|
590
|
-
throw new TypeError("Cannot `" + name + "` without `parser`");
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
function assertCompiler(name, value) {
|
|
594
|
-
if (typeof value !== "function") {
|
|
595
|
-
throw new TypeError("Cannot `" + name + "` without `compiler`");
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
function assertUnfrozen(name, frozen) {
|
|
599
|
-
if (frozen) {
|
|
600
|
-
throw new Error(
|
|
601
|
-
"Cannot call `" + name + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
602
|
-
);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
function assertNode(node) {
|
|
606
|
-
if (!isPlainObject(node) || typeof node.type !== "string") {
|
|
607
|
-
throw new TypeError("Expected node, got `" + node + "`");
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
function assertDone(name, asyncName, complete) {
|
|
611
|
-
if (!complete) {
|
|
612
|
-
throw new Error(
|
|
613
|
-
"`" + name + "` finished async. Use `" + asyncName + "` instead"
|
|
614
|
-
);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
function vfile(value) {
|
|
618
|
-
return looksLikeAVFile(value) ? value : new VFile(value);
|
|
619
|
-
}
|
|
620
|
-
function looksLikeAVFile(value) {
|
|
621
|
-
return Boolean(
|
|
622
|
-
value && typeof value === "object" && "message" in value && "messages" in value
|
|
623
|
-
);
|
|
624
|
-
}
|
|
625
|
-
function looksLikeAValue(value) {
|
|
626
|
-
return typeof value === "string" || isUint8Array(value);
|
|
627
|
-
}
|
|
628
|
-
function isUint8Array(value) {
|
|
629
|
-
return Boolean(
|
|
630
|
-
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
631
|
-
);
|
|
632
|
-
}
|
|
633
|
-
export {
|
|
634
|
-
Processor,
|
|
635
|
-
unified
|
|
636
|
-
};
|
|
637
|
-
//# sourceMappingURL=index.js.map
|