@prismicio/client 7.7.5-alpha.0 → 7.8.0
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/package.json +2 -16
- package/src/index.ts +0 -8
- 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,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const types = require("./types.cjs");
|
|
4
|
-
const EMPTY = "";
|
|
5
|
-
const { toString } = {};
|
|
6
|
-
const { keys } = Object;
|
|
7
|
-
const typeOf = (value) => {
|
|
8
|
-
const type = typeof value;
|
|
9
|
-
if (type !== "object" || !value)
|
|
10
|
-
return [types.PRIMITIVE, type];
|
|
11
|
-
const asString = toString.call(value).slice(8, -1);
|
|
12
|
-
switch (asString) {
|
|
13
|
-
case "Array":
|
|
14
|
-
return [types.ARRAY, EMPTY];
|
|
15
|
-
case "Object":
|
|
16
|
-
return [types.OBJECT, EMPTY];
|
|
17
|
-
case "Date":
|
|
18
|
-
return [types.DATE, EMPTY];
|
|
19
|
-
case "RegExp":
|
|
20
|
-
return [types.REGEXP, EMPTY];
|
|
21
|
-
case "Map":
|
|
22
|
-
return [types.MAP, EMPTY];
|
|
23
|
-
case "Set":
|
|
24
|
-
return [types.SET, EMPTY];
|
|
25
|
-
}
|
|
26
|
-
if (asString.includes("Array"))
|
|
27
|
-
return [types.ARRAY, asString];
|
|
28
|
-
if (asString.includes("Error"))
|
|
29
|
-
return [types.ERROR, asString];
|
|
30
|
-
return [types.OBJECT, asString];
|
|
31
|
-
};
|
|
32
|
-
const shouldSkip = ([TYPE, type]) => TYPE === types.PRIMITIVE && (type === "function" || type === "symbol");
|
|
33
|
-
const serializer = (strict, json, $, _) => {
|
|
34
|
-
const as = (out, value) => {
|
|
35
|
-
const index = _.push(out) - 1;
|
|
36
|
-
$.set(value, index);
|
|
37
|
-
return index;
|
|
38
|
-
};
|
|
39
|
-
const pair = (value) => {
|
|
40
|
-
if ($.has(value))
|
|
41
|
-
return $.get(value);
|
|
42
|
-
let [TYPE, type] = typeOf(value);
|
|
43
|
-
switch (TYPE) {
|
|
44
|
-
case types.PRIMITIVE: {
|
|
45
|
-
let entry = value;
|
|
46
|
-
switch (type) {
|
|
47
|
-
case "bigint":
|
|
48
|
-
TYPE = types.BIGINT;
|
|
49
|
-
entry = value.toString();
|
|
50
|
-
break;
|
|
51
|
-
case "function":
|
|
52
|
-
case "symbol":
|
|
53
|
-
if (strict)
|
|
54
|
-
throw new TypeError("unable to serialize " + type);
|
|
55
|
-
entry = null;
|
|
56
|
-
break;
|
|
57
|
-
case "undefined":
|
|
58
|
-
return as([types.VOID], value);
|
|
59
|
-
}
|
|
60
|
-
return as([TYPE, entry], value);
|
|
61
|
-
}
|
|
62
|
-
case types.ARRAY: {
|
|
63
|
-
if (type)
|
|
64
|
-
return as([type, [...value]], value);
|
|
65
|
-
const arr = [];
|
|
66
|
-
const index = as([TYPE, arr], value);
|
|
67
|
-
for (const entry of value)
|
|
68
|
-
arr.push(pair(entry));
|
|
69
|
-
return index;
|
|
70
|
-
}
|
|
71
|
-
case types.OBJECT: {
|
|
72
|
-
if (type) {
|
|
73
|
-
switch (type) {
|
|
74
|
-
case "BigInt":
|
|
75
|
-
return as([type, value.toString()], value);
|
|
76
|
-
case "Boolean":
|
|
77
|
-
case "Number":
|
|
78
|
-
case "String":
|
|
79
|
-
return as([type, value.valueOf()], value);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
if (json && "toJSON" in value)
|
|
83
|
-
return pair(value.toJSON());
|
|
84
|
-
const entries = [];
|
|
85
|
-
const index = as([TYPE, entries], value);
|
|
86
|
-
for (const key of keys(value)) {
|
|
87
|
-
if (strict || !shouldSkip(typeOf(value[key])))
|
|
88
|
-
entries.push([pair(key), pair(value[key])]);
|
|
89
|
-
}
|
|
90
|
-
return index;
|
|
91
|
-
}
|
|
92
|
-
case types.DATE:
|
|
93
|
-
return as([TYPE, value.toISOString()], value);
|
|
94
|
-
case types.REGEXP: {
|
|
95
|
-
const { source, flags } = value;
|
|
96
|
-
return as([TYPE, { source, flags }], value);
|
|
97
|
-
}
|
|
98
|
-
case types.MAP: {
|
|
99
|
-
const entries = [];
|
|
100
|
-
const index = as([TYPE, entries], value);
|
|
101
|
-
for (const [key, entry] of value) {
|
|
102
|
-
if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
|
|
103
|
-
entries.push([pair(key), pair(entry)]);
|
|
104
|
-
}
|
|
105
|
-
return index;
|
|
106
|
-
}
|
|
107
|
-
case types.SET: {
|
|
108
|
-
const entries = [];
|
|
109
|
-
const index = as([TYPE, entries], value);
|
|
110
|
-
for (const entry of value) {
|
|
111
|
-
if (strict || !shouldSkip(typeOf(entry)))
|
|
112
|
-
entries.push(pair(entry));
|
|
113
|
-
}
|
|
114
|
-
return index;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
const { message } = value;
|
|
118
|
-
return as([TYPE, { name: type, message }], value);
|
|
119
|
-
};
|
|
120
|
-
return pair;
|
|
121
|
-
};
|
|
122
|
-
const serialize = (value, { json, lossy } = {}) => {
|
|
123
|
-
const _ = [];
|
|
124
|
-
return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
|
|
125
|
-
};
|
|
126
|
-
exports.serialize = serialize;
|
|
127
|
-
//# sourceMappingURL=serialize.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.cjs","sources":["../../../../../node_modules/@ungap/structured-clone/esm/serialize.js"],"sourcesContent":["import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (asString.includes('Error'))\n return [ERROR, asString];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type)\n return as([type, [...value]], value);\n \n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n"],"names":["PRIMITIVE","ARRAY","OBJECT","DATE","REGEXP","MAP","SET","ERROR","BIGINT","VOID"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { SET, MAP, REGEXP, DATE, OBJECT, ARRAY, PRIMITIVE, BIGINT, ERROR, VOID } from "./types.js";
|
|
2
|
-
const EMPTY = "";
|
|
3
|
-
const { toString } = {};
|
|
4
|
-
const { keys } = Object;
|
|
5
|
-
const typeOf = (value) => {
|
|
6
|
-
const type = typeof value;
|
|
7
|
-
if (type !== "object" || !value)
|
|
8
|
-
return [PRIMITIVE, type];
|
|
9
|
-
const asString = toString.call(value).slice(8, -1);
|
|
10
|
-
switch (asString) {
|
|
11
|
-
case "Array":
|
|
12
|
-
return [ARRAY, EMPTY];
|
|
13
|
-
case "Object":
|
|
14
|
-
return [OBJECT, EMPTY];
|
|
15
|
-
case "Date":
|
|
16
|
-
return [DATE, EMPTY];
|
|
17
|
-
case "RegExp":
|
|
18
|
-
return [REGEXP, EMPTY];
|
|
19
|
-
case "Map":
|
|
20
|
-
return [MAP, EMPTY];
|
|
21
|
-
case "Set":
|
|
22
|
-
return [SET, EMPTY];
|
|
23
|
-
}
|
|
24
|
-
if (asString.includes("Array"))
|
|
25
|
-
return [ARRAY, asString];
|
|
26
|
-
if (asString.includes("Error"))
|
|
27
|
-
return [ERROR, asString];
|
|
28
|
-
return [OBJECT, asString];
|
|
29
|
-
};
|
|
30
|
-
const shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
|
|
31
|
-
const serializer = (strict, json, $, _) => {
|
|
32
|
-
const as = (out, value) => {
|
|
33
|
-
const index = _.push(out) - 1;
|
|
34
|
-
$.set(value, index);
|
|
35
|
-
return index;
|
|
36
|
-
};
|
|
37
|
-
const pair = (value) => {
|
|
38
|
-
if ($.has(value))
|
|
39
|
-
return $.get(value);
|
|
40
|
-
let [TYPE, type] = typeOf(value);
|
|
41
|
-
switch (TYPE) {
|
|
42
|
-
case PRIMITIVE: {
|
|
43
|
-
let entry = value;
|
|
44
|
-
switch (type) {
|
|
45
|
-
case "bigint":
|
|
46
|
-
TYPE = BIGINT;
|
|
47
|
-
entry = value.toString();
|
|
48
|
-
break;
|
|
49
|
-
case "function":
|
|
50
|
-
case "symbol":
|
|
51
|
-
if (strict)
|
|
52
|
-
throw new TypeError("unable to serialize " + type);
|
|
53
|
-
entry = null;
|
|
54
|
-
break;
|
|
55
|
-
case "undefined":
|
|
56
|
-
return as([VOID], value);
|
|
57
|
-
}
|
|
58
|
-
return as([TYPE, entry], value);
|
|
59
|
-
}
|
|
60
|
-
case ARRAY: {
|
|
61
|
-
if (type)
|
|
62
|
-
return as([type, [...value]], value);
|
|
63
|
-
const arr = [];
|
|
64
|
-
const index = as([TYPE, arr], value);
|
|
65
|
-
for (const entry of value)
|
|
66
|
-
arr.push(pair(entry));
|
|
67
|
-
return index;
|
|
68
|
-
}
|
|
69
|
-
case OBJECT: {
|
|
70
|
-
if (type) {
|
|
71
|
-
switch (type) {
|
|
72
|
-
case "BigInt":
|
|
73
|
-
return as([type, value.toString()], value);
|
|
74
|
-
case "Boolean":
|
|
75
|
-
case "Number":
|
|
76
|
-
case "String":
|
|
77
|
-
return as([type, value.valueOf()], value);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (json && "toJSON" in value)
|
|
81
|
-
return pair(value.toJSON());
|
|
82
|
-
const entries = [];
|
|
83
|
-
const index = as([TYPE, entries], value);
|
|
84
|
-
for (const key of keys(value)) {
|
|
85
|
-
if (strict || !shouldSkip(typeOf(value[key])))
|
|
86
|
-
entries.push([pair(key), pair(value[key])]);
|
|
87
|
-
}
|
|
88
|
-
return index;
|
|
89
|
-
}
|
|
90
|
-
case DATE:
|
|
91
|
-
return as([TYPE, value.toISOString()], value);
|
|
92
|
-
case REGEXP: {
|
|
93
|
-
const { source, flags } = value;
|
|
94
|
-
return as([TYPE, { source, flags }], value);
|
|
95
|
-
}
|
|
96
|
-
case MAP: {
|
|
97
|
-
const entries = [];
|
|
98
|
-
const index = as([TYPE, entries], value);
|
|
99
|
-
for (const [key, entry] of value) {
|
|
100
|
-
if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
|
|
101
|
-
entries.push([pair(key), pair(entry)]);
|
|
102
|
-
}
|
|
103
|
-
return index;
|
|
104
|
-
}
|
|
105
|
-
case SET: {
|
|
106
|
-
const entries = [];
|
|
107
|
-
const index = as([TYPE, entries], value);
|
|
108
|
-
for (const entry of value) {
|
|
109
|
-
if (strict || !shouldSkip(typeOf(entry)))
|
|
110
|
-
entries.push(pair(entry));
|
|
111
|
-
}
|
|
112
|
-
return index;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
const { message } = value;
|
|
116
|
-
return as([TYPE, { name: type, message }], value);
|
|
117
|
-
};
|
|
118
|
-
return pair;
|
|
119
|
-
};
|
|
120
|
-
const serialize = (value, { json, lossy } = {}) => {
|
|
121
|
-
const _ = [];
|
|
122
|
-
return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
|
|
123
|
-
};
|
|
124
|
-
export {
|
|
125
|
-
serialize
|
|
126
|
-
};
|
|
127
|
-
//# sourceMappingURL=serialize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.js","sources":["../../../../../node_modules/@ungap/structured-clone/esm/serialize.js"],"sourcesContent":["import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (asString.includes('Error'))\n return [ERROR, asString];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type)\n return as([type, [...value]], value);\n \n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n"],"names":[],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const VOID = -1;
|
|
4
|
-
const PRIMITIVE = 0;
|
|
5
|
-
const ARRAY = 1;
|
|
6
|
-
const OBJECT = 2;
|
|
7
|
-
const DATE = 3;
|
|
8
|
-
const REGEXP = 4;
|
|
9
|
-
const MAP = 5;
|
|
10
|
-
const SET = 6;
|
|
11
|
-
const ERROR = 7;
|
|
12
|
-
const BIGINT = 8;
|
|
13
|
-
exports.ARRAY = ARRAY;
|
|
14
|
-
exports.BIGINT = BIGINT;
|
|
15
|
-
exports.DATE = DATE;
|
|
16
|
-
exports.ERROR = ERROR;
|
|
17
|
-
exports.MAP = MAP;
|
|
18
|
-
exports.OBJECT = OBJECT;
|
|
19
|
-
exports.PRIMITIVE = PRIMITIVE;
|
|
20
|
-
exports.REGEXP = REGEXP;
|
|
21
|
-
exports.SET = SET;
|
|
22
|
-
exports.VOID = VOID;
|
|
23
|
-
//# sourceMappingURL=types.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","sources":["../../../../../node_modules/@ungap/structured-clone/esm/types.js"],"sourcesContent":["export const VOID = -1;\nexport const PRIMITIVE = 0;\nexport const ARRAY = 1;\nexport const OBJECT = 2;\nexport const DATE = 3;\nexport const REGEXP = 4;\nexport const MAP = 5;\nexport const SET = 6;\nexport const ERROR = 7;\nexport const BIGINT = 8;\n// export const SYMBOL = 9;\n"],"names":[],"mappings":";;AAAY,MAAC,OAAa;AACd,MAAC,YAAa;AACd,MAAC,QAAa;AACd,MAAC,SAAa;AACd,MAAC,OAAa;AACd,MAAC,SAAa;AACd,MAAC,MAAa;AACd,MAAC,MAAa;AACd,MAAC,QAAa;AACd,MAAC,SAAa;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const VOID = -1;
|
|
2
|
-
const PRIMITIVE = 0;
|
|
3
|
-
const ARRAY = 1;
|
|
4
|
-
const OBJECT = 2;
|
|
5
|
-
const DATE = 3;
|
|
6
|
-
const REGEXP = 4;
|
|
7
|
-
const MAP = 5;
|
|
8
|
-
const SET = 6;
|
|
9
|
-
const ERROR = 7;
|
|
10
|
-
const BIGINT = 8;
|
|
11
|
-
export {
|
|
12
|
-
ARRAY,
|
|
13
|
-
BIGINT,
|
|
14
|
-
DATE,
|
|
15
|
-
ERROR,
|
|
16
|
-
MAP,
|
|
17
|
-
OBJECT,
|
|
18
|
-
PRIMITIVE,
|
|
19
|
-
REGEXP,
|
|
20
|
-
SET,
|
|
21
|
-
VOID
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../../../../node_modules/@ungap/structured-clone/esm/types.js"],"sourcesContent":["export const VOID = -1;\nexport const PRIMITIVE = 0;\nexport const ARRAY = 1;\nexport const OBJECT = 2;\nexport const DATE = 3;\nexport const REGEXP = 4;\nexport const MAP = 5;\nexport const SET = 6;\nexport const ERROR = 7;\nexport const BIGINT = 8;\n// export const SYMBOL = 9;\n"],"names":[],"mappings":"AAAY,MAAC,OAAa;AACd,MAAC,YAAa;AACd,MAAC,QAAa;AACd,MAAC,SAAa;AACd,MAAC,OAAa;AACd,MAAC,SAAa;AACd,MAAC,MAAa;AACd,MAAC,MAAa;AACd,MAAC,QAAa;AACd,MAAC,SAAa;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../node_modules/bail/index.js"],"sourcesContent":["/**\n * Throw a given error.\n *\n * @param {Error|null|undefined} [error]\n * Maybe error.\n * @returns {asserts error is null|undefined}\n */\nexport function bail(error) {\n if (error) {\n throw error\n }\n}\n"],"names":[],"mappings":";;AAOO,SAAS,KAAK,OAAO;AAC1B,MAAI,OAAO;AACT,UAAM;AAAA,EACP;AACH;;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../node_modules/bail/index.js"],"sourcesContent":["/**\n * Throw a given error.\n *\n * @param {Error|null|undefined} [error]\n * Maybe error.\n * @returns {asserts error is null|undefined}\n */\nexport function bail(error) {\n if (error) {\n throw error\n }\n}\n"],"names":[],"mappings":"AAOO,SAAS,KAAK,OAAO;AAC1B,MAAI,OAAO;AACT,UAAM;AAAA,EACP;AACH;","x_google_ignoreList":[0]}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
function factory(check, filter) {
|
|
4
|
-
return function(tags, ranges) {
|
|
5
|
-
let left = cast(tags, "tag");
|
|
6
|
-
const right = cast(
|
|
7
|
-
ranges === null || ranges === void 0 ? "*" : ranges,
|
|
8
|
-
"range"
|
|
9
|
-
);
|
|
10
|
-
const matches = [];
|
|
11
|
-
let rightIndex = -1;
|
|
12
|
-
while (++rightIndex < right.length) {
|
|
13
|
-
const range = right[rightIndex].toLowerCase();
|
|
14
|
-
if (!filter && range === "*") continue;
|
|
15
|
-
let leftIndex = -1;
|
|
16
|
-
const next = [];
|
|
17
|
-
while (++leftIndex < left.length) {
|
|
18
|
-
if (check(left[leftIndex].toLowerCase(), range)) {
|
|
19
|
-
if (!filter) {
|
|
20
|
-
return (
|
|
21
|
-
/** @type {IsFilter extends true ? Tags : Tag|undefined} */
|
|
22
|
-
left[leftIndex]
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
matches.push(left[leftIndex]);
|
|
26
|
-
} else {
|
|
27
|
-
next.push(left[leftIndex]);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
left = next;
|
|
31
|
-
}
|
|
32
|
-
return (
|
|
33
|
-
/** @type {IsFilter extends true ? Tags : Tag|undefined} */
|
|
34
|
-
filter ? matches : void 0
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
const extendedFilter = factory(function(tag, range) {
|
|
39
|
-
const left = tag.split("-");
|
|
40
|
-
const right = range.split("-");
|
|
41
|
-
let leftIndex = 0;
|
|
42
|
-
let rightIndex = 0;
|
|
43
|
-
if (right[rightIndex] !== "*" && left[leftIndex] !== right[rightIndex]) {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
leftIndex++;
|
|
47
|
-
rightIndex++;
|
|
48
|
-
while (rightIndex < right.length) {
|
|
49
|
-
if (right[rightIndex] === "*") {
|
|
50
|
-
rightIndex++;
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if (!left[leftIndex]) return false;
|
|
54
|
-
if (left[leftIndex] === right[rightIndex]) {
|
|
55
|
-
leftIndex++;
|
|
56
|
-
rightIndex++;
|
|
57
|
-
continue;
|
|
58
|
-
}
|
|
59
|
-
if (left[leftIndex].length === 1) return false;
|
|
60
|
-
leftIndex++;
|
|
61
|
-
}
|
|
62
|
-
return true;
|
|
63
|
-
}, true);
|
|
64
|
-
function cast(values, name) {
|
|
65
|
-
const value = values && typeof values === "string" ? [values] : values;
|
|
66
|
-
if (!value || typeof value !== "object" || !("length" in value)) {
|
|
67
|
-
throw new Error(
|
|
68
|
-
"Invalid " + name + " `" + value + "`, expected non-empty string"
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
return value;
|
|
72
|
-
}
|
|
73
|
-
exports.extendedFilter = extendedFilter;
|
|
74
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../node_modules/bcp-47-match/index.js"],"sourcesContent":["/**\n * See <https://tools.ietf.org/html/rfc4647#section-3.1>\n * for more info on the algorithms.\n */\n\n/**\n * @typedef {string} Tag\n * BCP-47 tag.\n * @typedef {Array<Tag>} Tags\n * List of BCP-47 tags.\n * @typedef {string} Range\n * RFC 4647 range.\n * @typedef {Array<Range>} Ranges\n * List of RFC 4647 range.\n *\n * @callback Check\n * An internal check.\n * @param {Tag} tag\n * BCP-47 tag.\n * @param {Range} range\n * RFC 4647 range.\n * @returns {boolean}\n * Whether the range matches the tag.\n *\n * @typedef {FilterOrLookup<true>} Filter\n * Filter: yields all tags that match a range.\n * @typedef {FilterOrLookup<false>} Lookup\n * Lookup: yields the best tag that matches a range.\n */\n\n/**\n * @template {boolean} IsFilter\n * Whether to filter or perform a lookup.\n * @callback FilterOrLookup\n * A check.\n * @param {Tag|Tags} tags\n * One or more BCP-47 tags.\n * @param {Range|Ranges|undefined} [ranges='*']\n * One or more RFC 4647 ranges.\n * @returns {IsFilter extends true ? Tags : Tag|undefined}\n * Result.\n */\n\n/**\n * Factory to perform a filter or a lookup.\n *\n * This factory creates a function that accepts a list of tags and a list of\n * ranges, and contains logic to exit early for lookups.\n * `check` just has to deal with one tag and one range.\n * This match function iterates over ranges, and for each range,\n * iterates over tags.\n * That way, earlier ranges matching any tag have precedence over later ranges.\n *\n * @template {boolean} IsFilter\n * @param {Check} check\n * A check.\n * @param {IsFilter} filter\n * Whether to filter or perform a lookup.\n * @returns {FilterOrLookup<IsFilter>}\n * Filter or lookup.\n */\nfunction factory(check, filter) {\n /**\n * @param {Tag|Tags} tags\n * One or more BCP-47 tags.\n * @param {Range|Ranges|undefined} [ranges='*']\n * One or more RFC 4647 ranges.\n * @returns {IsFilter extends true ? Tags : Tag|undefined}\n * Result.\n */\n return function (tags, ranges) {\n let left = cast(tags, 'tag')\n const right = cast(\n ranges === null || ranges === undefined ? '*' : ranges,\n 'range'\n )\n /** @type {Tags} */\n const matches = []\n let rightIndex = -1\n\n while (++rightIndex < right.length) {\n const range = right[rightIndex].toLowerCase()\n\n // Ignore wildcards in lookup mode.\n if (!filter && range === '*') continue\n\n let leftIndex = -1\n /** @type {Tags} */\n const next = []\n\n while (++leftIndex < left.length) {\n if (check(left[leftIndex].toLowerCase(), range)) {\n // Exit if this is a lookup and we have a match.\n if (!filter) {\n return /** @type {IsFilter extends true ? Tags : Tag|undefined} */ (\n left[leftIndex]\n )\n }\n\n matches.push(left[leftIndex])\n } else {\n next.push(left[leftIndex])\n }\n }\n\n left = next\n }\n\n // If this is a filter, return the list. If it’s a lookup, we didn’t find\n // a match, so return `undefined`.\n return /** @type {IsFilter extends true ? Tags : Tag|undefined} */ (\n filter ? matches : undefined\n )\n }\n}\n\n/**\n * Basic Filtering (Section 3.3.1) matches a language priority list consisting\n * of basic language ranges (Section 2.1) to sets of language tags.\n *\n * @param {Tag|Tags} tags\n * One or more BCP-47 tags.\n * @param {Range|Ranges|undefined} [ranges='*']\n * One or more RFC 4647 ranges.\n * @returns {Tags}\n * List of BCP-47 tags.\n */\nexport const basicFilter = factory(function (tag, range) {\n return range === '*' || tag === range || tag.includes(range + '-')\n}, true)\n\n/**\n * Extended Filtering (Section 3.3.2) matches a language priority list\n * consisting of extended language ranges (Section 2.2) to sets of language\n * tags.\n *\n * @param {Tag|Tags} tags\n * One or more BCP-47 tags.\n * @param {Range|Ranges|undefined} [ranges='*']\n * One or more RFC 4647 ranges.\n * @returns {Tags}\n * List of BCP-47 tags.\n */\nexport const extendedFilter = factory(function (tag, range) {\n // 3.3.2.1\n const left = tag.split('-')\n const right = range.split('-')\n let leftIndex = 0\n let rightIndex = 0\n\n // 3.3.2.2\n if (right[rightIndex] !== '*' && left[leftIndex] !== right[rightIndex]) {\n return false\n }\n\n leftIndex++\n rightIndex++\n\n // 3.3.2.3\n while (rightIndex < right.length) {\n // 3.3.2.3.A\n if (right[rightIndex] === '*') {\n rightIndex++\n continue\n }\n\n // 3.3.2.3.B\n if (!left[leftIndex]) return false\n\n // 3.3.2.3.C\n if (left[leftIndex] === right[rightIndex]) {\n leftIndex++\n rightIndex++\n continue\n }\n\n // 3.3.2.3.D\n if (left[leftIndex].length === 1) return false\n\n // 3.3.2.3.E\n leftIndex++\n }\n\n // 3.3.2.4\n return true\n}, true)\n\n/**\n * Lookup (Section 3.4) matches a language priority list consisting of basic\n * language ranges to sets of language tags to find the one exact language tag\n * that best matches the range.\n *\n * @param {Tag|Tags} tags\n * One or more BCP-47 tags.\n * @param {Range|Ranges|undefined} [ranges='*']\n * One or more RFC 4647 ranges.\n * @returns {Tag|undefined}\n * BCP-47 tag.\n */\nexport const lookup = factory(function (tag, range) {\n let right = range\n\n /* eslint-disable-next-line no-constant-condition */\n while (true) {\n if (right === '*' || tag === right) return true\n\n let index = right.lastIndexOf('-')\n\n if (index < 0) return false\n\n if (right.charAt(index - 2) === '-') index -= 2\n\n right = right.slice(0, index)\n }\n}, false)\n\n/**\n * Validate tags or ranges, and cast them to arrays.\n *\n * @param {string|Array<string>} values\n * @param {string} name\n * @returns {Array<string>}\n */\nfunction cast(values, name) {\n const value = values && typeof values === 'string' ? [values] : values\n\n if (!value || typeof value !== 'object' || !('length' in value)) {\n throw new Error(\n 'Invalid ' + name + ' `' + value + '`, expected non-empty string'\n )\n }\n\n return value\n}\n"],"names":[],"mappings":";;AA6DA,SAAS,QAAQ,OAAO,QAAQ;AAS9B,SAAO,SAAU,MAAM,QAAQ;AAC7B,QAAI,OAAO,KAAK,MAAM,KAAK;AAC3B,UAAM,QAAQ;AAAA,MACZ,WAAW,QAAQ,WAAW,SAAY,MAAM;AAAA,MAChD;AAAA,IACD;AAED,UAAM,UAAU,CAAE;AAClB,QAAI,aAAa;AAEjB,WAAO,EAAE,aAAa,MAAM,QAAQ;AAClC,YAAM,QAAQ,MAAM,UAAU,EAAE,YAAa;AAG7C,UAAI,CAAC,UAAU,UAAU,IAAK;AAE9B,UAAI,YAAY;AAEhB,YAAM,OAAO,CAAE;AAEf,aAAO,EAAE,YAAY,KAAK,QAAQ;AAChC,YAAI,MAAM,KAAK,SAAS,EAAE,YAAW,GAAI,KAAK,GAAG;AAE/C,cAAI,CAAC,QAAQ;AACX;AAAA;AAAA,cACE,KAAK,SAAS;AAAA;AAAA,UAEjB;AAED,kBAAQ,KAAK,KAAK,SAAS,CAAC;AAAA,QACtC,OAAe;AACL,eAAK,KAAK,KAAK,SAAS,CAAC;AAAA,QAC1B;AAAA,MACF;AAED,aAAO;AAAA,IACR;AAID;AAAA;AAAA,MACE,SAAS,UAAU;AAAA;AAAA,EAEtB;AACH;AA6BY,MAAC,iBAAiB,QAAQ,SAAU,KAAK,OAAO;AAE1D,QAAM,OAAO,IAAI,MAAM,GAAG;AAC1B,QAAM,QAAQ,MAAM,MAAM,GAAG;AAC7B,MAAI,YAAY;AAChB,MAAI,aAAa;AAGjB,MAAI,MAAM,UAAU,MAAM,OAAO,KAAK,SAAS,MAAM,MAAM,UAAU,GAAG;AACtE,WAAO;AAAA,EACR;AAED;AACA;AAGA,SAAO,aAAa,MAAM,QAAQ;AAEhC,QAAI,MAAM,UAAU,MAAM,KAAK;AAC7B;AACA;AAAA,IACD;AAGD,QAAI,CAAC,KAAK,SAAS,EAAG,QAAO;AAG7B,QAAI,KAAK,SAAS,MAAM,MAAM,UAAU,GAAG;AACzC;AACA;AACA;AAAA,IACD;AAGD,QAAI,KAAK,SAAS,EAAE,WAAW,EAAG,QAAO;AAGzC;AAAA,EACD;AAGD,SAAO;AACT,GAAG,IAAI;AAsCP,SAAS,KAAK,QAAQ,MAAM;AAC1B,QAAM,QAAQ,UAAU,OAAO,WAAW,WAAW,CAAC,MAAM,IAAI;AAEhE,MAAI,CAAC,SAAS,OAAO,UAAU,YAAY,EAAE,YAAY,QAAQ;AAC/D,UAAM,IAAI;AAAA,MACR,aAAa,OAAO,OAAO,QAAQ;AAAA,IACpC;AAAA,EACF;AAED,SAAO;AACT;;","x_google_ignoreList":[0]}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
function factory(check, filter) {
|
|
2
|
-
return function(tags, ranges) {
|
|
3
|
-
let left = cast(tags, "tag");
|
|
4
|
-
const right = cast(
|
|
5
|
-
ranges === null || ranges === void 0 ? "*" : ranges,
|
|
6
|
-
"range"
|
|
7
|
-
);
|
|
8
|
-
const matches = [];
|
|
9
|
-
let rightIndex = -1;
|
|
10
|
-
while (++rightIndex < right.length) {
|
|
11
|
-
const range = right[rightIndex].toLowerCase();
|
|
12
|
-
if (!filter && range === "*") continue;
|
|
13
|
-
let leftIndex = -1;
|
|
14
|
-
const next = [];
|
|
15
|
-
while (++leftIndex < left.length) {
|
|
16
|
-
if (check(left[leftIndex].toLowerCase(), range)) {
|
|
17
|
-
if (!filter) {
|
|
18
|
-
return (
|
|
19
|
-
/** @type {IsFilter extends true ? Tags : Tag|undefined} */
|
|
20
|
-
left[leftIndex]
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
matches.push(left[leftIndex]);
|
|
24
|
-
} else {
|
|
25
|
-
next.push(left[leftIndex]);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
left = next;
|
|
29
|
-
}
|
|
30
|
-
return (
|
|
31
|
-
/** @type {IsFilter extends true ? Tags : Tag|undefined} */
|
|
32
|
-
filter ? matches : void 0
|
|
33
|
-
);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
const extendedFilter = factory(function(tag, range) {
|
|
37
|
-
const left = tag.split("-");
|
|
38
|
-
const right = range.split("-");
|
|
39
|
-
let leftIndex = 0;
|
|
40
|
-
let rightIndex = 0;
|
|
41
|
-
if (right[rightIndex] !== "*" && left[leftIndex] !== right[rightIndex]) {
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
leftIndex++;
|
|
45
|
-
rightIndex++;
|
|
46
|
-
while (rightIndex < right.length) {
|
|
47
|
-
if (right[rightIndex] === "*") {
|
|
48
|
-
rightIndex++;
|
|
49
|
-
continue;
|
|
50
|
-
}
|
|
51
|
-
if (!left[leftIndex]) return false;
|
|
52
|
-
if (left[leftIndex] === right[rightIndex]) {
|
|
53
|
-
leftIndex++;
|
|
54
|
-
rightIndex++;
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
if (left[leftIndex].length === 1) return false;
|
|
58
|
-
leftIndex++;
|
|
59
|
-
}
|
|
60
|
-
return true;
|
|
61
|
-
}, true);
|
|
62
|
-
function cast(values, name) {
|
|
63
|
-
const value = values && typeof values === "string" ? [values] : values;
|
|
64
|
-
if (!value || typeof value !== "object" || !("length" in value)) {
|
|
65
|
-
throw new Error(
|
|
66
|
-
"Invalid " + name + " `" + value + "`, expected non-empty string"
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
return value;
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
extendedFilter
|
|
73
|
-
};
|
|
74
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../node_modules/bcp-47-match/index.js"],"sourcesContent":["/**\n * See <https://tools.ietf.org/html/rfc4647#section-3.1>\n * for more info on the algorithms.\n */\n\n/**\n * @typedef {string} Tag\n * BCP-47 tag.\n * @typedef {Array<Tag>} Tags\n * List of BCP-47 tags.\n * @typedef {string} Range\n * RFC 4647 range.\n * @typedef {Array<Range>} Ranges\n * List of RFC 4647 range.\n *\n * @callback Check\n * An internal check.\n * @param {Tag} tag\n * BCP-47 tag.\n * @param {Range} range\n * RFC 4647 range.\n * @returns {boolean}\n * Whether the range matches the tag.\n *\n * @typedef {FilterOrLookup<true>} Filter\n * Filter: yields all tags that match a range.\n * @typedef {FilterOrLookup<false>} Lookup\n * Lookup: yields the best tag that matches a range.\n */\n\n/**\n * @template {boolean} IsFilter\n * Whether to filter or perform a lookup.\n * @callback FilterOrLookup\n * A check.\n * @param {Tag|Tags} tags\n * One or more BCP-47 tags.\n * @param {Range|Ranges|undefined} [ranges='*']\n * One or more RFC 4647 ranges.\n * @returns {IsFilter extends true ? Tags : Tag|undefined}\n * Result.\n */\n\n/**\n * Factory to perform a filter or a lookup.\n *\n * This factory creates a function that accepts a list of tags and a list of\n * ranges, and contains logic to exit early for lookups.\n * `check` just has to deal with one tag and one range.\n * This match function iterates over ranges, and for each range,\n * iterates over tags.\n * That way, earlier ranges matching any tag have precedence over later ranges.\n *\n * @template {boolean} IsFilter\n * @param {Check} check\n * A check.\n * @param {IsFilter} filter\n * Whether to filter or perform a lookup.\n * @returns {FilterOrLookup<IsFilter>}\n * Filter or lookup.\n */\nfunction factory(check, filter) {\n /**\n * @param {Tag|Tags} tags\n * One or more BCP-47 tags.\n * @param {Range|Ranges|undefined} [ranges='*']\n * One or more RFC 4647 ranges.\n * @returns {IsFilter extends true ? Tags : Tag|undefined}\n * Result.\n */\n return function (tags, ranges) {\n let left = cast(tags, 'tag')\n const right = cast(\n ranges === null || ranges === undefined ? '*' : ranges,\n 'range'\n )\n /** @type {Tags} */\n const matches = []\n let rightIndex = -1\n\n while (++rightIndex < right.length) {\n const range = right[rightIndex].toLowerCase()\n\n // Ignore wildcards in lookup mode.\n if (!filter && range === '*') continue\n\n let leftIndex = -1\n /** @type {Tags} */\n const next = []\n\n while (++leftIndex < left.length) {\n if (check(left[leftIndex].toLowerCase(), range)) {\n // Exit if this is a lookup and we have a match.\n if (!filter) {\n return /** @type {IsFilter extends true ? Tags : Tag|undefined} */ (\n left[leftIndex]\n )\n }\n\n matches.push(left[leftIndex])\n } else {\n next.push(left[leftIndex])\n }\n }\n\n left = next\n }\n\n // If this is a filter, return the list. If it’s a lookup, we didn’t find\n // a match, so return `undefined`.\n return /** @type {IsFilter extends true ? Tags : Tag|undefined} */ (\n filter ? matches : undefined\n )\n }\n}\n\n/**\n * Basic Filtering (Section 3.3.1) matches a language priority list consisting\n * of basic language ranges (Section 2.1) to sets of language tags.\n *\n * @param {Tag|Tags} tags\n * One or more BCP-47 tags.\n * @param {Range|Ranges|undefined} [ranges='*']\n * One or more RFC 4647 ranges.\n * @returns {Tags}\n * List of BCP-47 tags.\n */\nexport const basicFilter = factory(function (tag, range) {\n return range === '*' || tag === range || tag.includes(range + '-')\n}, true)\n\n/**\n * Extended Filtering (Section 3.3.2) matches a language priority list\n * consisting of extended language ranges (Section 2.2) to sets of language\n * tags.\n *\n * @param {Tag|Tags} tags\n * One or more BCP-47 tags.\n * @param {Range|Ranges|undefined} [ranges='*']\n * One or more RFC 4647 ranges.\n * @returns {Tags}\n * List of BCP-47 tags.\n */\nexport const extendedFilter = factory(function (tag, range) {\n // 3.3.2.1\n const left = tag.split('-')\n const right = range.split('-')\n let leftIndex = 0\n let rightIndex = 0\n\n // 3.3.2.2\n if (right[rightIndex] !== '*' && left[leftIndex] !== right[rightIndex]) {\n return false\n }\n\n leftIndex++\n rightIndex++\n\n // 3.3.2.3\n while (rightIndex < right.length) {\n // 3.3.2.3.A\n if (right[rightIndex] === '*') {\n rightIndex++\n continue\n }\n\n // 3.3.2.3.B\n if (!left[leftIndex]) return false\n\n // 3.3.2.3.C\n if (left[leftIndex] === right[rightIndex]) {\n leftIndex++\n rightIndex++\n continue\n }\n\n // 3.3.2.3.D\n if (left[leftIndex].length === 1) return false\n\n // 3.3.2.3.E\n leftIndex++\n }\n\n // 3.3.2.4\n return true\n}, true)\n\n/**\n * Lookup (Section 3.4) matches a language priority list consisting of basic\n * language ranges to sets of language tags to find the one exact language tag\n * that best matches the range.\n *\n * @param {Tag|Tags} tags\n * One or more BCP-47 tags.\n * @param {Range|Ranges|undefined} [ranges='*']\n * One or more RFC 4647 ranges.\n * @returns {Tag|undefined}\n * BCP-47 tag.\n */\nexport const lookup = factory(function (tag, range) {\n let right = range\n\n /* eslint-disable-next-line no-constant-condition */\n while (true) {\n if (right === '*' || tag === right) return true\n\n let index = right.lastIndexOf('-')\n\n if (index < 0) return false\n\n if (right.charAt(index - 2) === '-') index -= 2\n\n right = right.slice(0, index)\n }\n}, false)\n\n/**\n * Validate tags or ranges, and cast them to arrays.\n *\n * @param {string|Array<string>} values\n * @param {string} name\n * @returns {Array<string>}\n */\nfunction cast(values, name) {\n const value = values && typeof values === 'string' ? [values] : values\n\n if (!value || typeof value !== 'object' || !('length' in value)) {\n throw new Error(\n 'Invalid ' + name + ' `' + value + '`, expected non-empty string'\n )\n }\n\n return value\n}\n"],"names":[],"mappings":"AA6DA,SAAS,QAAQ,OAAO,QAAQ;AAS9B,SAAO,SAAU,MAAM,QAAQ;AAC7B,QAAI,OAAO,KAAK,MAAM,KAAK;AAC3B,UAAM,QAAQ;AAAA,MACZ,WAAW,QAAQ,WAAW,SAAY,MAAM;AAAA,MAChD;AAAA,IACD;AAED,UAAM,UAAU,CAAE;AAClB,QAAI,aAAa;AAEjB,WAAO,EAAE,aAAa,MAAM,QAAQ;AAClC,YAAM,QAAQ,MAAM,UAAU,EAAE,YAAa;AAG7C,UAAI,CAAC,UAAU,UAAU,IAAK;AAE9B,UAAI,YAAY;AAEhB,YAAM,OAAO,CAAE;AAEf,aAAO,EAAE,YAAY,KAAK,QAAQ;AAChC,YAAI,MAAM,KAAK,SAAS,EAAE,YAAW,GAAI,KAAK,GAAG;AAE/C,cAAI,CAAC,QAAQ;AACX;AAAA;AAAA,cACE,KAAK,SAAS;AAAA;AAAA,UAEjB;AAED,kBAAQ,KAAK,KAAK,SAAS,CAAC;AAAA,QACtC,OAAe;AACL,eAAK,KAAK,KAAK,SAAS,CAAC;AAAA,QAC1B;AAAA,MACF;AAED,aAAO;AAAA,IACR;AAID;AAAA;AAAA,MACE,SAAS,UAAU;AAAA;AAAA,EAEtB;AACH;AA6BY,MAAC,iBAAiB,QAAQ,SAAU,KAAK,OAAO;AAE1D,QAAM,OAAO,IAAI,MAAM,GAAG;AAC1B,QAAM,QAAQ,MAAM,MAAM,GAAG;AAC7B,MAAI,YAAY;AAChB,MAAI,aAAa;AAGjB,MAAI,MAAM,UAAU,MAAM,OAAO,KAAK,SAAS,MAAM,MAAM,UAAU,GAAG;AACtE,WAAO;AAAA,EACR;AAED;AACA;AAGA,SAAO,aAAa,MAAM,QAAQ;AAEhC,QAAI,MAAM,UAAU,MAAM,KAAK;AAC7B;AACA;AAAA,IACD;AAGD,QAAI,CAAC,KAAK,SAAS,EAAG,QAAO;AAG7B,QAAI,KAAK,SAAS,MAAM,MAAM,UAAU,GAAG;AACzC;AACA;AACA;AAAA,IACD;AAGD,QAAI,KAAK,SAAS,EAAE,WAAW,EAAG,QAAO;AAGzC;AAAA,EACD;AAGD,SAAO;AACT,GAAG,IAAI;AAsCP,SAAS,KAAK,QAAQ,MAAM;AAC1B,QAAM,QAAQ,UAAU,OAAO,WAAW,WAAW,CAAC,MAAM,IAAI;AAEhE,MAAI,CAAC,SAAS,OAAO,UAAU,YAAY,EAAE,YAAY,QAAQ;AAC/D,UAAM,IAAI;AAAA,MACR,aAAa,OAAO,OAAO,QAAQ;AAAA,IACpC;AAAA,EACF;AAED,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
|
|
3
|
-
var boolbase = {
|
|
4
|
-
trueFunc: function trueFunc() {
|
|
5
|
-
return true;
|
|
6
|
-
},
|
|
7
|
-
falseFunc: function falseFunc() {
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
const boolbase$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(boolbase);
|
|
12
|
-
module.exports = boolbase$1;
|
|
13
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../node_modules/boolbase/index.js"],"sourcesContent":["module.exports = {\n\ttrueFunc: function trueFunc(){\n\t\treturn true;\n\t},\n\tfalseFunc: function falseFunc(){\n\t\treturn false;\n\t}\n};"],"names":[],"mappings":";;AAAA,IAAA,WAAiB;AAAA,EAChB,UAAU,SAAS,WAAU;AAC5B,WAAO;AAAA,EACP;AAAA,EACD,WAAW,SAAS,YAAW;AAC9B,WAAO;AAAA,EACP;AACF;;;","x_google_ignoreList":[0]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
var boolbase = {
|
|
3
|
-
trueFunc: function trueFunc() {
|
|
4
|
-
return true;
|
|
5
|
-
},
|
|
6
|
-
falseFunc: function falseFunc() {
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
const boolbase$1 = /* @__PURE__ */ getDefaultExportFromCjs(boolbase);
|
|
11
|
-
export {
|
|
12
|
-
boolbase$1 as default
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../node_modules/boolbase/index.js"],"sourcesContent":["module.exports = {\n\ttrueFunc: function trueFunc(){\n\t\treturn true;\n\t},\n\tfalseFunc: function falseFunc(){\n\t\treturn false;\n\t}\n};"],"names":[],"mappings":";AAAA,IAAA,WAAiB;AAAA,EAChB,UAAU,SAAS,WAAU;AAC5B,WAAO;AAAA,EACP;AAAA,EACD,WAAW,SAAS,YAAW;AAC9B,WAAO;AAAA,EACP;AACF;;","x_google_ignoreList":[0]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
function ccount(value, character) {
|
|
4
|
-
const source = String(value);
|
|
5
|
-
if (typeof character !== "string") {
|
|
6
|
-
throw new TypeError("Expected character");
|
|
7
|
-
}
|
|
8
|
-
let count = 0;
|
|
9
|
-
let index = source.indexOf(character);
|
|
10
|
-
while (index !== -1) {
|
|
11
|
-
count++;
|
|
12
|
-
index = source.indexOf(character, index + character.length);
|
|
13
|
-
}
|
|
14
|
-
return count;
|
|
15
|
-
}
|
|
16
|
-
exports.ccount = ccount;
|
|
17
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../node_modules/ccount/index.js"],"sourcesContent":["/**\n * Count how often a character (or substring) is used in a string.\n *\n * @param {string} value\n * Value to search in.\n * @param {string} character\n * Character (or substring) to look for.\n * @return {number}\n * Number of times `character` occurred in `value`.\n */\nexport function ccount(value, character) {\n const source = String(value)\n\n if (typeof character !== 'string') {\n throw new TypeError('Expected character')\n }\n\n let count = 0\n let index = source.indexOf(character)\n\n while (index !== -1) {\n count++\n index = source.indexOf(character, index + character.length)\n }\n\n return count\n}\n"],"names":[],"mappings":";;AAUO,SAAS,OAAO,OAAO,WAAW;AACvC,QAAM,SAAS,OAAO,KAAK;AAE3B,MAAI,OAAO,cAAc,UAAU;AACjC,UAAM,IAAI,UAAU,oBAAoB;AAAA,EACzC;AAED,MAAI,QAAQ;AACZ,MAAI,QAAQ,OAAO,QAAQ,SAAS;AAEpC,SAAO,UAAU,IAAI;AACnB;AACA,YAAQ,OAAO,QAAQ,WAAW,QAAQ,UAAU,MAAM;AAAA,EAC3D;AAED,SAAO;AACT;;","x_google_ignoreList":[0]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
function ccount(value, character) {
|
|
2
|
-
const source = String(value);
|
|
3
|
-
if (typeof character !== "string") {
|
|
4
|
-
throw new TypeError("Expected character");
|
|
5
|
-
}
|
|
6
|
-
let count = 0;
|
|
7
|
-
let index = source.indexOf(character);
|
|
8
|
-
while (index !== -1) {
|
|
9
|
-
count++;
|
|
10
|
-
index = source.indexOf(character, index + character.length);
|
|
11
|
-
}
|
|
12
|
-
return count;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
ccount
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../node_modules/ccount/index.js"],"sourcesContent":["/**\n * Count how often a character (or substring) is used in a string.\n *\n * @param {string} value\n * Value to search in.\n * @param {string} character\n * Character (or substring) to look for.\n * @return {number}\n * Number of times `character` occurred in `value`.\n */\nexport function ccount(value, character) {\n const source = String(value)\n\n if (typeof character !== 'string') {\n throw new TypeError('Expected character')\n }\n\n let count = 0\n let index = source.indexOf(character)\n\n while (index !== -1) {\n count++\n index = source.indexOf(character, index + character.length)\n }\n\n return count\n}\n"],"names":[],"mappings":"AAUO,SAAS,OAAO,OAAO,WAAW;AACvC,QAAM,SAAS,OAAO,KAAK;AAE3B,MAAI,OAAO,cAAc,UAAU;AACjC,UAAM,IAAI,UAAU,oBAAoB;AAAA,EACzC;AAED,MAAI,QAAQ;AACZ,MAAI,QAAQ,OAAO,QAAQ,SAAS;AAEpC,SAAO,UAAU,IAAI;AACnB;AACA,YAAQ,OAAO,QAAQ,WAAW,QAAQ,UAAU,MAAM;AAAA,EAC3D;AAED,SAAO;AACT;","x_google_ignoreList":[0]}
|