From 141b3292470b1e1495c29ab474a836437f3b6aa5 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Mon, 6 Sep 2021 19:34:49 +1000 Subject: [PATCH 1/2] ignore node_modules --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 74421db..5672704 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ website/secrets.js +node_modules/* \ No newline at end of file From acf74d493573ab271ebe245654c9909710a5f352 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Mon, 6 Sep 2021 19:49:00 +1000 Subject: [PATCH 2/2] remove unecessary npm files --- .gitignore | 3 +- node_modules/.bin/css-beautify | 1 - node_modules/.bin/editorconfig | 1 - node_modules/.bin/html-beautify | 1 - node_modules/.bin/js-beautify | 1 - node_modules/.bin/nopt | 1 - node_modules/.bin/semver | 1 - node_modules/abbrev/LICENSE | 46 - node_modules/abbrev/README.md | 23 - node_modules/abbrev/abbrev.js | 61 - node_modules/abbrev/package.json | 56 - .../balanced-match/.github/FUNDING.yml | 2 - node_modules/balanced-match/LICENSE.md | 21 - node_modules/balanced-match/README.md | 97 - node_modules/balanced-match/index.js | 62 - node_modules/balanced-match/package.json | 76 - node_modules/boolbase/README.md | 10 - node_modules/boolbase/index.js | 8 - node_modules/boolbase/package.json | 52 - node_modules/brace-expansion/LICENSE | 21 - node_modules/brace-expansion/README.md | 129 - node_modules/brace-expansion/index.js | 201 - node_modules/brace-expansion/package.json | 75 - node_modules/cheerio-select/LICENSE | 11 - node_modules/cheerio-select/README.md | 18 - node_modules/cheerio-select/lib/helpers.d.ts | 5 - .../cheerio-select/lib/helpers.d.ts.map | 1 - node_modules/cheerio-select/lib/helpers.js | 25 - node_modules/cheerio-select/lib/index.d.ts | 12 - .../cheerio-select/lib/index.d.ts.map | 1 - node_modules/cheerio-select/lib/index.js | 296 - .../cheerio-select/lib/positionals.d.ts | 10 - .../cheerio-select/lib/positionals.d.ts.map | 1 - .../cheerio-select/lib/positionals.js | 42 - node_modules/cheerio-select/package.json | 95 - node_modules/cheerio/LICENSE | 21 - node_modules/cheerio/Readme.md | 319 - node_modules/cheerio/lib/api/attributes.d.ts | 317 - .../cheerio/lib/api/attributes.d.ts.map | 1 - node_modules/cheerio/lib/api/attributes.js | 591 -- node_modules/cheerio/lib/api/css.d.ts | 41 - node_modules/cheerio/lib/api/css.d.ts.map | 1 - node_modules/cheerio/lib/api/css.js | 95 - node_modules/cheerio/lib/api/forms.d.ts | 31 - node_modules/cheerio/lib/api/forms.d.ts.map | 1 - node_modules/cheerio/lib/api/forms.js | 84 - .../cheerio/lib/api/manipulation.d.ts | 496 -- .../cheerio/lib/api/manipulation.d.ts.map | 1 - node_modules/cheerio/lib/api/manipulation.js | 852 --- node_modules/cheerio/lib/api/traversing.d.ts | 644 -- .../cheerio/lib/api/traversing.d.ts.map | 1 - node_modules/cheerio/lib/api/traversing.js | 866 --- node_modules/cheerio/lib/cheerio.d.ts | 53 - node_modules/cheerio/lib/cheerio.d.ts.map | 1 - node_modules/cheerio/lib/cheerio.js | 115 - node_modules/cheerio/lib/index.d.ts | 91 - node_modules/cheerio/lib/index.d.ts.map | 1 - node_modules/cheerio/lib/index.js | 81 - node_modules/cheerio/lib/load.d.ts | 73 - node_modules/cheerio/lib/load.d.ts.map | 1 - node_modules/cheerio/lib/load.js | 53 - node_modules/cheerio/lib/options.d.ts | 31 - node_modules/cheerio/lib/options.d.ts.map | 1 - node_modules/cheerio/lib/options.js | 22 - node_modules/cheerio/lib/parse.d.ts | 13 - node_modules/cheerio/lib/parse.d.ts.map | 1 - node_modules/cheerio/lib/parse.js | 67 - .../lib/parsers/htmlparser2-adapter.d.ts | 3 - .../lib/parsers/htmlparser2-adapter.d.ts.map | 1 - .../lib/parsers/htmlparser2-adapter.js | 10 - .../cheerio/lib/parsers/parse5-adapter.d.ts | 9 - .../lib/parsers/parse5-adapter.d.ts.map | 1 - .../cheerio/lib/parsers/parse5-adapter.js | 41 - node_modules/cheerio/lib/static.d.ts | 88 - node_modules/cheerio/lib/static.d.ts.map | 1 - node_modules/cheerio/lib/static.js | 207 - node_modules/cheerio/lib/types.d.ts | 20 - node_modules/cheerio/lib/types.d.ts.map | 1 - node_modules/cheerio/lib/types.js | 2 - node_modules/cheerio/lib/utils.d.ts | 73 - node_modules/cheerio/lib/utils.d.ts.map | 1 - node_modules/cheerio/lib/utils.js | 111 - node_modules/cheerio/package.json | 146 - node_modules/commander/CHANGELOG.md | 419 -- node_modules/commander/LICENSE | 22 - node_modules/commander/Readme.md | 428 -- node_modules/commander/index.js | 1224 ---- node_modules/commander/package.json | 70 - node_modules/commander/typings/index.d.ts | 310 - node_modules/concat-map/.travis.yml | 4 - node_modules/concat-map/LICENSE | 18 - node_modules/concat-map/README.markdown | 62 - node_modules/concat-map/example/map.js | 6 - node_modules/concat-map/index.js | 13 - node_modules/concat-map/package.json | 88 - node_modules/concat-map/test/map.js | 39 - node_modules/condense-newlines/LICENSE | 21 - node_modules/condense-newlines/README.md | 105 - node_modules/condense-newlines/index.js | 60 - node_modules/condense-newlines/package.json | 95 - node_modules/config-chain/LICENCE | 22 - node_modules/config-chain/index.js | 282 - node_modules/config-chain/package.json | 60 - node_modules/config-chain/readme.markdown | 257 - node_modules/css-select/LICENSE | 11 - node_modules/css-select/README.md | 247 - node_modules/css-select/lib/attributes.d.ts | 7 - .../css-select/lib/attributes.d.ts.map | 1 - node_modules/css-select/lib/attributes.js | 171 - node_modules/css-select/lib/compile.d.ts | 14 - node_modules/css-select/lib/compile.d.ts.map | 1 - node_modules/css-select/lib/compile.js | 115 - node_modules/css-select/lib/general.d.ts | 3 - node_modules/css-select/lib/general.d.ts.map | 1 - node_modules/css-select/lib/general.js | 104 - node_modules/css-select/lib/index.d.ts | 49 - node_modules/css-select/lib/index.d.ts.map | 1 - node_modules/css-select/lib/index.js | 144 - node_modules/css-select/lib/procedure.d.ts | 5 - .../css-select/lib/procedure.d.ts.map | 1 - node_modules/css-select/lib/procedure.js | 20 - .../lib/pseudo-selectors/aliases.d.ts | 5 - .../lib/pseudo-selectors/aliases.d.ts.map | 1 - .../lib/pseudo-selectors/aliases.js | 33 - .../lib/pseudo-selectors/filters.d.ts | 4 - .../lib/pseudo-selectors/filters.d.ts.map | 1 - .../lib/pseudo-selectors/filters.js | 156 - .../lib/pseudo-selectors/index.d.ts | 8 - .../lib/pseudo-selectors/index.d.ts.map | 1 - .../css-select/lib/pseudo-selectors/index.js | 54 - .../lib/pseudo-selectors/pseudos.d.ts | 6 - .../lib/pseudo-selectors/pseudos.d.ts.map | 1 - .../lib/pseudo-selectors/pseudos.js | 89 - .../lib/pseudo-selectors/subselects.d.ts | 10 - .../lib/pseudo-selectors/subselects.d.ts.map | 1 - .../lib/pseudo-selectors/subselects.js | 105 - node_modules/css-select/lib/sort.d.ts | 10 - node_modules/css-select/lib/sort.d.ts.map | 1 - node_modules/css-select/lib/sort.js | 84 - node_modules/css-select/lib/types.d.ts | 120 - node_modules/css-select/lib/types.d.ts.map | 1 - node_modules/css-select/lib/types.js | 2 - node_modules/css-select/package.json | 103 - node_modules/css-what/LICENSE | 11 - node_modules/css-what/lib/index.d.ts | 4 - node_modules/css-what/lib/index.d.ts.map | 1 - node_modules/css-what/lib/index.js | 21 - node_modules/css-what/lib/parse.d.ts | 71 - node_modules/css-what/lib/parse.d.ts.map | 1 - node_modules/css-what/lib/parse.js | 428 -- node_modules/css-what/lib/stringify.d.ts | 8 - node_modules/css-what/lib/stringify.d.ts.map | 1 - node_modules/css-what/lib/stringify.js | 101 - node_modules/css-what/package.json | 90 - node_modules/css-what/readme.md | 70 - node_modules/dom-serializer/LICENSE | 11 - node_modules/dom-serializer/README.md | 97 - .../dom-serializer/lib/foreignNames.d.ts | 3 - .../dom-serializer/lib/foreignNames.d.ts.map | 1 - .../dom-serializer/lib/foreignNames.js | 103 - node_modules/dom-serializer/lib/index.d.ts | 43 - .../dom-serializer/lib/index.d.ts.map | 1 - node_modules/dom-serializer/lib/index.js | 211 - node_modules/dom-serializer/package.json | 88 - node_modules/domelementtype/LICENSE | 11 - node_modules/domelementtype/lib/index.d.ts | 48 - .../domelementtype/lib/index.d.ts.map | 1 - node_modules/domelementtype/lib/index.js | 55 - node_modules/domelementtype/package.json | 81 - node_modules/domelementtype/readme.md | 1 - node_modules/domhandler/LICENSE | 11 - node_modules/domhandler/lib/index.d.ts | 85 - node_modules/domhandler/lib/index.d.ts.map | 1 - node_modules/domhandler/lib/index.js | 172 - node_modules/domhandler/lib/node.d.ts | 169 - node_modules/domhandler/lib/node.d.ts.map | 1 - node_modules/domhandler/lib/node.js | 408 -- node_modules/domhandler/package.json | 95 - node_modules/domhandler/readme.md | 163 - node_modules/domutils/LICENSE | 11 - node_modules/domutils/lib/feeds.d.ts | 45 - node_modules/domutils/lib/feeds.d.ts.map | 1 - node_modules/domutils/lib/feeds.js | 190 - node_modules/domutils/lib/helpers.d.ts | 51 - node_modules/domutils/lib/helpers.d.ts.map | 1 - node_modules/domutils/lib/helpers.js | 125 - node_modules/domutils/lib/index.d.ts | 10 - node_modules/domutils/lib/index.d.ts.map | 1 - node_modules/domutils/lib/index.js | 28 - node_modules/domutils/lib/legacy.d.ts | 47 - node_modules/domutils/lib/legacy.d.ts.map | 1 - node_modules/domutils/lib/legacy.js | 124 - node_modules/domutils/lib/manipulation.d.ts | 43 - .../domutils/lib/manipulation.d.ts.map | 1 - node_modules/domutils/lib/manipulation.js | 129 - node_modules/domutils/lib/querying.d.ts | 55 - node_modules/domutils/lib/querying.d.ts.map | 1 - node_modules/domutils/lib/querying.js | 126 - node_modules/domutils/lib/stringify.d.ts | 41 - node_modules/domutils/lib/stringify.d.ts.map | 1 - node_modules/domutils/lib/stringify.js | 86 - node_modules/domutils/lib/traversal.d.ts | 59 - node_modules/domutils/lib/traversal.d.ts.map | 1 - node_modules/domutils/lib/traversal.js | 117 - node_modules/domutils/package.json | 99 - node_modules/domutils/readme.md | 31 - node_modules/editorconfig/CHANGELOG.md | 14 - node_modules/editorconfig/LICENSE | 19 - node_modules/editorconfig/README.md | 206 - node_modules/editorconfig/bin/editorconfig | 3 - node_modules/editorconfig/package.json | 101 - node_modules/editorconfig/src/cli.d.ts | 1 - node_modules/editorconfig/src/cli.js | 53 - node_modules/editorconfig/src/index.d.ts | 29 - node_modules/editorconfig/src/index.js | 261 - .../editorconfig/src/lib/fnmatch.d.ts | 214 - node_modules/editorconfig/src/lib/fnmatch.js | 1047 --- node_modules/editorconfig/src/lib/ini.d.ts | 14 - node_modules/editorconfig/src/lib/ini.js | 106 - node_modules/entities/LICENSE | 11 - node_modules/entities/lib/decode.d.ts | 5 - node_modules/entities/lib/decode.d.ts.map | 1 - node_modules/entities/lib/decode.js | 53 - .../entities/lib/decode_codepoint.d.ts | 2 - .../entities/lib/decode_codepoint.d.ts.map | 1 - node_modules/entities/lib/decode_codepoint.js | 30 - node_modules/entities/lib/encode.d.ts | 47 - node_modules/entities/lib/encode.d.ts.map | 1 - node_modules/entities/lib/encode.js | 136 - node_modules/entities/lib/index.d.ts | 27 - node_modules/entities/lib/index.d.ts.map | 1 - node_modules/entities/lib/index.js | 57 - node_modules/entities/lib/maps/decode.json | 1 - node_modules/entities/lib/maps/entities.json | 1 - node_modules/entities/lib/maps/legacy.json | 1 - node_modules/entities/lib/maps/xml.json | 1 - node_modules/entities/package.json | 97 - node_modules/entities/readme.md | 57 - node_modules/extend-shallow/LICENSE | 21 - node_modules/extend-shallow/README.md | 61 - node_modules/extend-shallow/index.js | 33 - node_modules/extend-shallow/package.json | 88 - node_modules/fs.realpath/LICENSE | 43 - node_modules/fs.realpath/README.md | 33 - node_modules/fs.realpath/index.js | 66 - node_modules/fs.realpath/old.js | 303 - node_modules/fs.realpath/package.json | 59 - node_modules/glob/LICENSE | 21 - node_modules/glob/README.md | 375 -- node_modules/glob/changelog.md | 67 - node_modules/glob/common.js | 234 - node_modules/glob/glob.js | 788 --- node_modules/glob/package.json | 84 - node_modules/glob/sync.js | 484 -- node_modules/htmlparser2/LICENSE | 18 - node_modules/htmlparser2/README.md | 164 - .../htmlparser2/lib/CollectingHandler.d.ts | 10 - .../lib/CollectingHandler.d.ts.map | 1 - .../htmlparser2/lib/CollectingHandler.js | 60 - node_modules/htmlparser2/lib/FeedHandler.d.ts | 67 - .../htmlparser2/lib/FeedHandler.d.ts.map | 1 - node_modules/htmlparser2/lib/FeedHandler.js | 235 - .../htmlparser2/lib/MultiplexHandler.d.ts | 28 - .../htmlparser2/lib/MultiplexHandler.d.ts.map | 1 - .../htmlparser2/lib/MultiplexHandler.js | 57 - node_modules/htmlparser2/lib/Parser.d.ts | 159 - node_modules/htmlparser2/lib/Parser.d.ts.map | 1 - node_modules/htmlparser2/lib/Parser.js | 381 -- node_modules/htmlparser2/lib/Tokenizer.d.ts | 182 - .../htmlparser2/lib/Tokenizer.d.ts.map | 1 - node_modules/htmlparser2/lib/Tokenizer.js | 909 --- .../htmlparser2/lib/WritableStream.d.ts | 16 - .../htmlparser2/lib/WritableStream.d.ts.map | 1 - .../htmlparser2/lib/WritableStream.js | 53 - node_modules/htmlparser2/lib/index.d.ts | 39 - node_modules/htmlparser2/lib/index.d.ts.map | 1 - node_modules/htmlparser2/lib/index.js | 84 - node_modules/htmlparser2/package.json | 106 - node_modules/inflight/LICENSE | 15 - node_modules/inflight/README.md | 37 - node_modules/inflight/inflight.js | 54 - node_modules/inflight/package.json | 58 - node_modules/inherits/LICENSE | 16 - node_modules/inherits/README.md | 42 - node_modules/inherits/inherits.js | 9 - node_modules/inherits/inherits_browser.js | 27 - node_modules/inherits/package.json | 61 - node_modules/ini/LICENSE | 15 - node_modules/ini/README.md | 102 - node_modules/ini/ini.js | 206 - node_modules/ini/package.json | 66 - node_modules/is-buffer/LICENSE | 21 - node_modules/is-buffer/README.md | 53 - node_modules/is-buffer/index.js | 21 - node_modules/is-buffer/package.json | 77 - node_modules/is-buffer/test/basic.js | 24 - node_modules/is-extendable/LICENSE | 21 - node_modules/is-extendable/README.md | 72 - node_modules/is-extendable/index.js | 13 - node_modules/is-extendable/package.json | 82 - node_modules/is-whitespace/LICENSE | 21 - node_modules/is-whitespace/README.md | 47 - node_modules/is-whitespace/index.js | 19 - node_modules/is-whitespace/package.json | 72 - node_modules/js-beautify/LICENSE | 9 - node_modules/js-beautify/README.md | 407 -- .../js-beautify/js/bin/css-beautify.js | 4 - .../js-beautify/js/bin/html-beautify.js | 4 - .../js-beautify/js/bin/js-beautify.js | 4 - node_modules/js-beautify/js/index.js | 86 - node_modules/js-beautify/js/lib/beautifier.js | 5906 ----------------- .../js-beautify/js/lib/beautifier.min.js | 2 - .../js-beautify/js/lib/beautify-css.js | 1626 ----- .../js-beautify/js/lib/beautify-html.js | 3123 --------- node_modules/js-beautify/js/lib/beautify.js | 4006 ----------- node_modules/js-beautify/js/lib/cli.js | 692 -- .../javascriptobfuscator_unpacker.js | 132 - .../js/lib/unpackers/myobfuscate_unpacker.js | 119 - .../js/lib/unpackers/p_a_c_k_e_r_unpacker.js | 119 - .../js/lib/unpackers/urlencode_unpacker.js | 104 - node_modules/js-beautify/js/src/cli.js | 692 -- .../js-beautify/js/src/core/directives.js | 62 - .../js-beautify/js/src/core/inputscanner.js | 192 - .../js-beautify/js/src/core/options.js | 193 - .../js-beautify/js/src/core/output.js | 419 -- .../js-beautify/js/src/core/pattern.js | 94 - .../js/src/core/templatablepattern.js | 211 - node_modules/js-beautify/js/src/core/token.js | 54 - .../js-beautify/js/src/core/tokenizer.js | 140 - .../js-beautify/js/src/core/tokenstream.js | 78 - .../js/src/core/whitespacepattern.js | 105 - .../js-beautify/js/src/css/beautifier.js | 480 -- node_modules/js-beautify/js/src/css/index.js | 42 - .../js-beautify/js/src/css/options.js | 56 - .../js-beautify/js/src/css/tokenizer.js | 29 - .../js-beautify/js/src/html/beautifier.js | 865 --- node_modules/js-beautify/js/src/html/index.js | 42 - .../js-beautify/js/src/html/options.js | 91 - .../js-beautify/js/src/html/tokenizer.js | 332 - node_modules/js-beautify/js/src/index.js | 44 - .../js-beautify/js/src/javascript/acorn.js | 57 - .../js/src/javascript/beautifier.js | 1459 ---- .../js-beautify/js/src/javascript/index.js | 42 - .../js-beautify/js/src/javascript/options.js | 93 - .../js/src/javascript/tokenizer.js | 566 -- .../javascriptobfuscator_unpacker.js | 132 - .../js/src/unpackers/myobfuscate_unpacker.js | 119 - .../js/src/unpackers/p_a_c_k_e_r_unpacker.js | 119 - .../js/src/unpackers/urlencode_unpacker.js | 104 - node_modules/js-beautify/package.json | 127 - node_modules/kind-of/LICENSE | 21 - node_modules/kind-of/README.md | 261 - node_modules/kind-of/index.js | 116 - node_modules/kind-of/package.json | 139 - node_modules/lru-cache/LICENSE | 15 - node_modules/lru-cache/README.md | 158 - node_modules/lru-cache/index.js | 468 -- node_modules/lru-cache/package.json | 71 - node_modules/minimatch/LICENSE | 15 - node_modules/minimatch/README.md | 209 - node_modules/minimatch/minimatch.js | 923 --- node_modules/minimatch/package.json | 63 - node_modules/nopt/CHANGELOG.md | 58 - node_modules/nopt/LICENSE | 15 - node_modules/nopt/README.md | 213 - node_modules/nopt/bin/nopt.js | 54 - node_modules/nopt/lib/nopt.js | 441 -- node_modules/nopt/package.json | 67 - node_modules/nth-check/LICENSE | 11 - node_modules/nth-check/README.md | 80 - node_modules/nth-check/lib/compile.d.ts | 19 - node_modules/nth-check/lib/compile.d.ts.map | 1 - node_modules/nth-check/lib/compile.js | 55 - node_modules/nth-check/lib/index.d.ts | 28 - node_modules/nth-check/lib/index.d.ts.map | 1 - node_modules/nth-check/lib/index.js | 34 - node_modules/nth-check/lib/parse.d.ts | 9 - node_modules/nth-check/lib/parse.d.ts.map | 1 - node_modules/nth-check/lib/parse.js | 39 - node_modules/nth-check/package.json | 95 - node_modules/once/LICENSE | 15 - node_modules/once/README.md | 79 - node_modules/once/once.js | 42 - node_modules/once/package.json | 67 - .../parse5-htmlparser2-tree-adapter/LICENSE | 19 - .../parse5-htmlparser2-tree-adapter/README.md | 34 - .../lib/index.js | 348 - .../package.json | 59 - node_modules/parse5/LICENSE | 19 - node_modules/parse5/README.md | 38 - node_modules/parse5/lib/common/doctype.js | 162 - node_modules/parse5/lib/common/error-codes.js | 65 - .../parse5/lib/common/foreign-content.js | 265 - node_modules/parse5/lib/common/html.js | 272 - node_modules/parse5/lib/common/unicode.js | 109 - .../extensions/error-reporting/mixin-base.js | 43 - .../error-reporting/parser-mixin.js | 52 - .../error-reporting/preprocessor-mixin.js | 24 - .../error-reporting/tokenizer-mixin.js | 17 - .../location-info/open-element-stack-mixin.js | 35 - .../extensions/location-info/parser-mixin.js | 223 - .../location-info/tokenizer-mixin.js | 146 - .../position-tracking/preprocessor-mixin.js | 64 - node_modules/parse5/lib/index.js | 29 - .../lib/parser/formatting-element-list.js | 181 - node_modules/parse5/lib/parser/index.js | 2956 --------- .../parse5/lib/parser/open-element-stack.js | 482 -- node_modules/parse5/lib/serializer/index.js | 176 - node_modules/parse5/lib/tokenizer/index.js | 2196 ------ .../parse5/lib/tokenizer/named-entity-data.js | 5 - .../parse5/lib/tokenizer/preprocessor.js | 159 - .../parse5/lib/tree-adapters/default.js | 221 - .../parse5/lib/utils/merge-options.js | 13 - node_modules/parse5/lib/utils/mixin.js | 39 - node_modules/parse5/package.json | 68 - node_modules/path-is-absolute/index.js | 20 - node_modules/path-is-absolute/license | 21 - node_modules/path-is-absolute/package.json | 75 - node_modules/path-is-absolute/readme.md | 59 - node_modules/pretty/LICENSE | 21 - node_modules/pretty/README.md | 105 - node_modules/pretty/index.js | 45 - node_modules/pretty/package.json | 86 - node_modules/proto-list/LICENSE | 15 - node_modules/proto-list/README.md | 3 - node_modules/proto-list/package.json | 51 - node_modules/proto-list/proto-list.js | 88 - node_modules/proto-list/test/basic.js | 61 - node_modules/pseudomap/LICENSE | 15 - node_modules/pseudomap/README.md | 60 - node_modules/pseudomap/map.js | 9 - node_modules/pseudomap/package.json | 54 - node_modules/pseudomap/pseudomap.js | 113 - node_modules/pseudomap/test/basic.js | 86 - node_modules/semver/CHANGELOG.md | 39 - node_modules/semver/LICENSE | 15 - node_modules/semver/README.md | 412 -- node_modules/semver/bin/semver | 160 - node_modules/semver/package.json | 60 - node_modules/semver/range.bnf | 16 - node_modules/semver/semver.js | 1483 ----- node_modules/sigmund/LICENSE | 15 - node_modules/sigmund/README.md | 53 - node_modules/sigmund/bench.js | 283 - node_modules/sigmund/package.json | 63 - node_modules/sigmund/sigmund.js | 39 - node_modules/sigmund/test/basic.js | 24 - node_modules/tslib/CopyrightNotice.txt | 15 - node_modules/tslib/LICENSE.txt | 12 - node_modules/tslib/README.md | 164 - node_modules/tslib/modules/index.js | 53 - node_modules/tslib/modules/package.json | 3 - node_modules/tslib/package.json | 64 - node_modules/tslib/tslib.d.ts | 130 - node_modules/tslib/tslib.es6.html | 1 - node_modules/tslib/tslib.es6.js | 239 - node_modules/tslib/tslib.html | 1 - node_modules/tslib/tslib.js | 306 - node_modules/wrappy/LICENSE | 15 - node_modules/wrappy/README.md | 36 - node_modules/wrappy/package.json | 59 - node_modules/wrappy/wrappy.js | 33 - node_modules/yallist/LICENSE | 15 - node_modules/yallist/README.md | 204 - node_modules/yallist/iterator.js | 7 - node_modules/yallist/package.json | 62 - node_modules/yallist/yallist.js | 370 -- package-lock.json | 345 - 468 files changed, 1 insertion(+), 67285 deletions(-) delete mode 120000 node_modules/.bin/css-beautify delete mode 120000 node_modules/.bin/editorconfig delete mode 120000 node_modules/.bin/html-beautify delete mode 120000 node_modules/.bin/js-beautify delete mode 120000 node_modules/.bin/nopt delete mode 120000 node_modules/.bin/semver delete mode 100644 node_modules/abbrev/LICENSE delete mode 100644 node_modules/abbrev/README.md delete mode 100644 node_modules/abbrev/abbrev.js delete mode 100644 node_modules/abbrev/package.json delete mode 100644 node_modules/balanced-match/.github/FUNDING.yml delete mode 100644 node_modules/balanced-match/LICENSE.md delete mode 100644 node_modules/balanced-match/README.md delete mode 100644 node_modules/balanced-match/index.js delete mode 100644 node_modules/balanced-match/package.json delete mode 100644 node_modules/boolbase/README.md delete mode 100644 node_modules/boolbase/index.js delete mode 100644 node_modules/boolbase/package.json delete mode 100644 node_modules/brace-expansion/LICENSE delete mode 100644 node_modules/brace-expansion/README.md delete mode 100644 node_modules/brace-expansion/index.js delete mode 100644 node_modules/brace-expansion/package.json delete mode 100644 node_modules/cheerio-select/LICENSE delete mode 100644 node_modules/cheerio-select/README.md delete mode 100644 node_modules/cheerio-select/lib/helpers.d.ts delete mode 100644 node_modules/cheerio-select/lib/helpers.d.ts.map delete mode 100644 node_modules/cheerio-select/lib/helpers.js delete mode 100644 node_modules/cheerio-select/lib/index.d.ts delete mode 100644 node_modules/cheerio-select/lib/index.d.ts.map delete mode 100644 node_modules/cheerio-select/lib/index.js delete mode 100644 node_modules/cheerio-select/lib/positionals.d.ts delete mode 100644 node_modules/cheerio-select/lib/positionals.d.ts.map delete mode 100644 node_modules/cheerio-select/lib/positionals.js delete mode 100644 node_modules/cheerio-select/package.json delete mode 100644 node_modules/cheerio/LICENSE delete mode 100644 node_modules/cheerio/Readme.md delete mode 100644 node_modules/cheerio/lib/api/attributes.d.ts delete mode 100644 node_modules/cheerio/lib/api/attributes.d.ts.map delete mode 100644 node_modules/cheerio/lib/api/attributes.js delete mode 100644 node_modules/cheerio/lib/api/css.d.ts delete mode 100644 node_modules/cheerio/lib/api/css.d.ts.map delete mode 100644 node_modules/cheerio/lib/api/css.js delete mode 100644 node_modules/cheerio/lib/api/forms.d.ts delete mode 100644 node_modules/cheerio/lib/api/forms.d.ts.map delete mode 100644 node_modules/cheerio/lib/api/forms.js delete mode 100644 node_modules/cheerio/lib/api/manipulation.d.ts delete mode 100644 node_modules/cheerio/lib/api/manipulation.d.ts.map delete mode 100644 node_modules/cheerio/lib/api/manipulation.js delete mode 100644 node_modules/cheerio/lib/api/traversing.d.ts delete mode 100644 node_modules/cheerio/lib/api/traversing.d.ts.map delete mode 100644 node_modules/cheerio/lib/api/traversing.js delete mode 100644 node_modules/cheerio/lib/cheerio.d.ts delete mode 100644 node_modules/cheerio/lib/cheerio.d.ts.map delete mode 100644 node_modules/cheerio/lib/cheerio.js delete mode 100644 node_modules/cheerio/lib/index.d.ts delete mode 100644 node_modules/cheerio/lib/index.d.ts.map delete mode 100644 node_modules/cheerio/lib/index.js delete mode 100644 node_modules/cheerio/lib/load.d.ts delete mode 100644 node_modules/cheerio/lib/load.d.ts.map delete mode 100644 node_modules/cheerio/lib/load.js delete mode 100644 node_modules/cheerio/lib/options.d.ts delete mode 100644 node_modules/cheerio/lib/options.d.ts.map delete mode 100644 node_modules/cheerio/lib/options.js delete mode 100644 node_modules/cheerio/lib/parse.d.ts delete mode 100644 node_modules/cheerio/lib/parse.d.ts.map delete mode 100644 node_modules/cheerio/lib/parse.js delete mode 100644 node_modules/cheerio/lib/parsers/htmlparser2-adapter.d.ts delete mode 100644 node_modules/cheerio/lib/parsers/htmlparser2-adapter.d.ts.map delete mode 100644 node_modules/cheerio/lib/parsers/htmlparser2-adapter.js delete mode 100644 node_modules/cheerio/lib/parsers/parse5-adapter.d.ts delete mode 100644 node_modules/cheerio/lib/parsers/parse5-adapter.d.ts.map delete mode 100644 node_modules/cheerio/lib/parsers/parse5-adapter.js delete mode 100644 node_modules/cheerio/lib/static.d.ts delete mode 100644 node_modules/cheerio/lib/static.d.ts.map delete mode 100644 node_modules/cheerio/lib/static.js delete mode 100644 node_modules/cheerio/lib/types.d.ts delete mode 100644 node_modules/cheerio/lib/types.d.ts.map delete mode 100644 node_modules/cheerio/lib/types.js delete mode 100644 node_modules/cheerio/lib/utils.d.ts delete mode 100644 node_modules/cheerio/lib/utils.d.ts.map delete mode 100644 node_modules/cheerio/lib/utils.js delete mode 100644 node_modules/cheerio/package.json delete mode 100644 node_modules/commander/CHANGELOG.md delete mode 100644 node_modules/commander/LICENSE delete mode 100644 node_modules/commander/Readme.md delete mode 100644 node_modules/commander/index.js delete mode 100644 node_modules/commander/package.json delete mode 100644 node_modules/commander/typings/index.d.ts delete mode 100644 node_modules/concat-map/.travis.yml delete mode 100644 node_modules/concat-map/LICENSE delete mode 100644 node_modules/concat-map/README.markdown delete mode 100644 node_modules/concat-map/example/map.js delete mode 100644 node_modules/concat-map/index.js delete mode 100644 node_modules/concat-map/package.json delete mode 100644 node_modules/concat-map/test/map.js delete mode 100644 node_modules/condense-newlines/LICENSE delete mode 100644 node_modules/condense-newlines/README.md delete mode 100644 node_modules/condense-newlines/index.js delete mode 100644 node_modules/condense-newlines/package.json delete mode 100644 node_modules/config-chain/LICENCE delete mode 100755 node_modules/config-chain/index.js delete mode 100644 node_modules/config-chain/package.json delete mode 100644 node_modules/config-chain/readme.markdown delete mode 100644 node_modules/css-select/LICENSE delete mode 100644 node_modules/css-select/README.md delete mode 100644 node_modules/css-select/lib/attributes.d.ts delete mode 100644 node_modules/css-select/lib/attributes.d.ts.map delete mode 100644 node_modules/css-select/lib/attributes.js delete mode 100644 node_modules/css-select/lib/compile.d.ts delete mode 100644 node_modules/css-select/lib/compile.d.ts.map delete mode 100644 node_modules/css-select/lib/compile.js delete mode 100644 node_modules/css-select/lib/general.d.ts delete mode 100644 node_modules/css-select/lib/general.d.ts.map delete mode 100644 node_modules/css-select/lib/general.js delete mode 100644 node_modules/css-select/lib/index.d.ts delete mode 100644 node_modules/css-select/lib/index.d.ts.map delete mode 100644 node_modules/css-select/lib/index.js delete mode 100644 node_modules/css-select/lib/procedure.d.ts delete mode 100644 node_modules/css-select/lib/procedure.d.ts.map delete mode 100644 node_modules/css-select/lib/procedure.js delete mode 100644 node_modules/css-select/lib/pseudo-selectors/aliases.d.ts delete mode 100644 node_modules/css-select/lib/pseudo-selectors/aliases.d.ts.map delete mode 100644 node_modules/css-select/lib/pseudo-selectors/aliases.js delete mode 100644 node_modules/css-select/lib/pseudo-selectors/filters.d.ts delete mode 100644 node_modules/css-select/lib/pseudo-selectors/filters.d.ts.map delete mode 100644 node_modules/css-select/lib/pseudo-selectors/filters.js delete mode 100644 node_modules/css-select/lib/pseudo-selectors/index.d.ts delete mode 100644 node_modules/css-select/lib/pseudo-selectors/index.d.ts.map delete mode 100644 node_modules/css-select/lib/pseudo-selectors/index.js delete mode 100644 node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts delete mode 100644 node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts.map delete mode 100644 node_modules/css-select/lib/pseudo-selectors/pseudos.js delete mode 100644 node_modules/css-select/lib/pseudo-selectors/subselects.d.ts delete mode 100644 node_modules/css-select/lib/pseudo-selectors/subselects.d.ts.map delete mode 100644 node_modules/css-select/lib/pseudo-selectors/subselects.js delete mode 100644 node_modules/css-select/lib/sort.d.ts delete mode 100644 node_modules/css-select/lib/sort.d.ts.map delete mode 100644 node_modules/css-select/lib/sort.js delete mode 100644 node_modules/css-select/lib/types.d.ts delete mode 100644 node_modules/css-select/lib/types.d.ts.map delete mode 100644 node_modules/css-select/lib/types.js delete mode 100644 node_modules/css-select/package.json delete mode 100644 node_modules/css-what/LICENSE delete mode 100644 node_modules/css-what/lib/index.d.ts delete mode 100644 node_modules/css-what/lib/index.d.ts.map delete mode 100644 node_modules/css-what/lib/index.js delete mode 100644 node_modules/css-what/lib/parse.d.ts delete mode 100644 node_modules/css-what/lib/parse.d.ts.map delete mode 100644 node_modules/css-what/lib/parse.js delete mode 100644 node_modules/css-what/lib/stringify.d.ts delete mode 100644 node_modules/css-what/lib/stringify.d.ts.map delete mode 100644 node_modules/css-what/lib/stringify.js delete mode 100644 node_modules/css-what/package.json delete mode 100644 node_modules/css-what/readme.md delete mode 100644 node_modules/dom-serializer/LICENSE delete mode 100644 node_modules/dom-serializer/README.md delete mode 100644 node_modules/dom-serializer/lib/foreignNames.d.ts delete mode 100644 node_modules/dom-serializer/lib/foreignNames.d.ts.map delete mode 100644 node_modules/dom-serializer/lib/foreignNames.js delete mode 100644 node_modules/dom-serializer/lib/index.d.ts delete mode 100644 node_modules/dom-serializer/lib/index.d.ts.map delete mode 100644 node_modules/dom-serializer/lib/index.js delete mode 100644 node_modules/dom-serializer/package.json delete mode 100644 node_modules/domelementtype/LICENSE delete mode 100644 node_modules/domelementtype/lib/index.d.ts delete mode 100644 node_modules/domelementtype/lib/index.d.ts.map delete mode 100644 node_modules/domelementtype/lib/index.js delete mode 100644 node_modules/domelementtype/package.json delete mode 100644 node_modules/domelementtype/readme.md delete mode 100644 node_modules/domhandler/LICENSE delete mode 100644 node_modules/domhandler/lib/index.d.ts delete mode 100644 node_modules/domhandler/lib/index.d.ts.map delete mode 100644 node_modules/domhandler/lib/index.js delete mode 100644 node_modules/domhandler/lib/node.d.ts delete mode 100644 node_modules/domhandler/lib/node.d.ts.map delete mode 100644 node_modules/domhandler/lib/node.js delete mode 100644 node_modules/domhandler/package.json delete mode 100644 node_modules/domhandler/readme.md delete mode 100644 node_modules/domutils/LICENSE delete mode 100644 node_modules/domutils/lib/feeds.d.ts delete mode 100644 node_modules/domutils/lib/feeds.d.ts.map delete mode 100644 node_modules/domutils/lib/feeds.js delete mode 100644 node_modules/domutils/lib/helpers.d.ts delete mode 100644 node_modules/domutils/lib/helpers.d.ts.map delete mode 100644 node_modules/domutils/lib/helpers.js delete mode 100644 node_modules/domutils/lib/index.d.ts delete mode 100644 node_modules/domutils/lib/index.d.ts.map delete mode 100644 node_modules/domutils/lib/index.js delete mode 100644 node_modules/domutils/lib/legacy.d.ts delete mode 100644 node_modules/domutils/lib/legacy.d.ts.map delete mode 100644 node_modules/domutils/lib/legacy.js delete mode 100644 node_modules/domutils/lib/manipulation.d.ts delete mode 100644 node_modules/domutils/lib/manipulation.d.ts.map delete mode 100644 node_modules/domutils/lib/manipulation.js delete mode 100644 node_modules/domutils/lib/querying.d.ts delete mode 100644 node_modules/domutils/lib/querying.d.ts.map delete mode 100644 node_modules/domutils/lib/querying.js delete mode 100644 node_modules/domutils/lib/stringify.d.ts delete mode 100644 node_modules/domutils/lib/stringify.d.ts.map delete mode 100644 node_modules/domutils/lib/stringify.js delete mode 100644 node_modules/domutils/lib/traversal.d.ts delete mode 100644 node_modules/domutils/lib/traversal.d.ts.map delete mode 100644 node_modules/domutils/lib/traversal.js delete mode 100644 node_modules/domutils/package.json delete mode 100644 node_modules/domutils/readme.md delete mode 100644 node_modules/editorconfig/CHANGELOG.md delete mode 100644 node_modules/editorconfig/LICENSE delete mode 100644 node_modules/editorconfig/README.md delete mode 100755 node_modules/editorconfig/bin/editorconfig delete mode 100644 node_modules/editorconfig/package.json delete mode 100644 node_modules/editorconfig/src/cli.d.ts delete mode 100644 node_modules/editorconfig/src/cli.js delete mode 100644 node_modules/editorconfig/src/index.d.ts delete mode 100644 node_modules/editorconfig/src/index.js delete mode 100644 node_modules/editorconfig/src/lib/fnmatch.d.ts delete mode 100644 node_modules/editorconfig/src/lib/fnmatch.js delete mode 100644 node_modules/editorconfig/src/lib/ini.d.ts delete mode 100644 node_modules/editorconfig/src/lib/ini.js delete mode 100644 node_modules/entities/LICENSE delete mode 100644 node_modules/entities/lib/decode.d.ts delete mode 100644 node_modules/entities/lib/decode.d.ts.map delete mode 100644 node_modules/entities/lib/decode.js delete mode 100644 node_modules/entities/lib/decode_codepoint.d.ts delete mode 100644 node_modules/entities/lib/decode_codepoint.d.ts.map delete mode 100644 node_modules/entities/lib/decode_codepoint.js delete mode 100644 node_modules/entities/lib/encode.d.ts delete mode 100644 node_modules/entities/lib/encode.d.ts.map delete mode 100644 node_modules/entities/lib/encode.js delete mode 100644 node_modules/entities/lib/index.d.ts delete mode 100644 node_modules/entities/lib/index.d.ts.map delete mode 100644 node_modules/entities/lib/index.js delete mode 100644 node_modules/entities/lib/maps/decode.json delete mode 100644 node_modules/entities/lib/maps/entities.json delete mode 100644 node_modules/entities/lib/maps/legacy.json delete mode 100644 node_modules/entities/lib/maps/xml.json delete mode 100644 node_modules/entities/package.json delete mode 100644 node_modules/entities/readme.md delete mode 100644 node_modules/extend-shallow/LICENSE delete mode 100644 node_modules/extend-shallow/README.md delete mode 100644 node_modules/extend-shallow/index.js delete mode 100644 node_modules/extend-shallow/package.json delete mode 100644 node_modules/fs.realpath/LICENSE delete mode 100644 node_modules/fs.realpath/README.md delete mode 100644 node_modules/fs.realpath/index.js delete mode 100644 node_modules/fs.realpath/old.js delete mode 100644 node_modules/fs.realpath/package.json delete mode 100644 node_modules/glob/LICENSE delete mode 100644 node_modules/glob/README.md delete mode 100644 node_modules/glob/changelog.md delete mode 100644 node_modules/glob/common.js delete mode 100644 node_modules/glob/glob.js delete mode 100644 node_modules/glob/package.json delete mode 100644 node_modules/glob/sync.js delete mode 100644 node_modules/htmlparser2/LICENSE delete mode 100644 node_modules/htmlparser2/README.md delete mode 100644 node_modules/htmlparser2/lib/CollectingHandler.d.ts delete mode 100644 node_modules/htmlparser2/lib/CollectingHandler.d.ts.map delete mode 100644 node_modules/htmlparser2/lib/CollectingHandler.js delete mode 100644 node_modules/htmlparser2/lib/FeedHandler.d.ts delete mode 100644 node_modules/htmlparser2/lib/FeedHandler.d.ts.map delete mode 100644 node_modules/htmlparser2/lib/FeedHandler.js delete mode 100644 node_modules/htmlparser2/lib/MultiplexHandler.d.ts delete mode 100644 node_modules/htmlparser2/lib/MultiplexHandler.d.ts.map delete mode 100644 node_modules/htmlparser2/lib/MultiplexHandler.js delete mode 100644 node_modules/htmlparser2/lib/Parser.d.ts delete mode 100644 node_modules/htmlparser2/lib/Parser.d.ts.map delete mode 100644 node_modules/htmlparser2/lib/Parser.js delete mode 100644 node_modules/htmlparser2/lib/Tokenizer.d.ts delete mode 100644 node_modules/htmlparser2/lib/Tokenizer.d.ts.map delete mode 100644 node_modules/htmlparser2/lib/Tokenizer.js delete mode 100644 node_modules/htmlparser2/lib/WritableStream.d.ts delete mode 100644 node_modules/htmlparser2/lib/WritableStream.d.ts.map delete mode 100644 node_modules/htmlparser2/lib/WritableStream.js delete mode 100644 node_modules/htmlparser2/lib/index.d.ts delete mode 100644 node_modules/htmlparser2/lib/index.d.ts.map delete mode 100644 node_modules/htmlparser2/lib/index.js delete mode 100644 node_modules/htmlparser2/package.json delete mode 100644 node_modules/inflight/LICENSE delete mode 100644 node_modules/inflight/README.md delete mode 100644 node_modules/inflight/inflight.js delete mode 100644 node_modules/inflight/package.json delete mode 100644 node_modules/inherits/LICENSE delete mode 100644 node_modules/inherits/README.md delete mode 100644 node_modules/inherits/inherits.js delete mode 100644 node_modules/inherits/inherits_browser.js delete mode 100644 node_modules/inherits/package.json delete mode 100644 node_modules/ini/LICENSE delete mode 100644 node_modules/ini/README.md delete mode 100644 node_modules/ini/ini.js delete mode 100644 node_modules/ini/package.json delete mode 100644 node_modules/is-buffer/LICENSE delete mode 100644 node_modules/is-buffer/README.md delete mode 100644 node_modules/is-buffer/index.js delete mode 100644 node_modules/is-buffer/package.json delete mode 100644 node_modules/is-buffer/test/basic.js delete mode 100644 node_modules/is-extendable/LICENSE delete mode 100644 node_modules/is-extendable/README.md delete mode 100644 node_modules/is-extendable/index.js delete mode 100644 node_modules/is-extendable/package.json delete mode 100644 node_modules/is-whitespace/LICENSE delete mode 100644 node_modules/is-whitespace/README.md delete mode 100644 node_modules/is-whitespace/index.js delete mode 100644 node_modules/is-whitespace/package.json delete mode 100644 node_modules/js-beautify/LICENSE delete mode 100644 node_modules/js-beautify/README.md delete mode 100755 node_modules/js-beautify/js/bin/css-beautify.js delete mode 100755 node_modules/js-beautify/js/bin/html-beautify.js delete mode 100755 node_modules/js-beautify/js/bin/js-beautify.js delete mode 100644 node_modules/js-beautify/js/index.js delete mode 100644 node_modules/js-beautify/js/lib/beautifier.js delete mode 100644 node_modules/js-beautify/js/lib/beautifier.min.js delete mode 100644 node_modules/js-beautify/js/lib/beautify-css.js delete mode 100644 node_modules/js-beautify/js/lib/beautify-html.js delete mode 100644 node_modules/js-beautify/js/lib/beautify.js delete mode 100755 node_modules/js-beautify/js/lib/cli.js delete mode 100644 node_modules/js-beautify/js/lib/unpackers/javascriptobfuscator_unpacker.js delete mode 100644 node_modules/js-beautify/js/lib/unpackers/myobfuscate_unpacker.js delete mode 100644 node_modules/js-beautify/js/lib/unpackers/p_a_c_k_e_r_unpacker.js delete mode 100644 node_modules/js-beautify/js/lib/unpackers/urlencode_unpacker.js delete mode 100755 node_modules/js-beautify/js/src/cli.js delete mode 100644 node_modules/js-beautify/js/src/core/directives.js delete mode 100644 node_modules/js-beautify/js/src/core/inputscanner.js delete mode 100644 node_modules/js-beautify/js/src/core/options.js delete mode 100644 node_modules/js-beautify/js/src/core/output.js delete mode 100644 node_modules/js-beautify/js/src/core/pattern.js delete mode 100644 node_modules/js-beautify/js/src/core/templatablepattern.js delete mode 100644 node_modules/js-beautify/js/src/core/token.js delete mode 100644 node_modules/js-beautify/js/src/core/tokenizer.js delete mode 100644 node_modules/js-beautify/js/src/core/tokenstream.js delete mode 100644 node_modules/js-beautify/js/src/core/whitespacepattern.js delete mode 100644 node_modules/js-beautify/js/src/css/beautifier.js delete mode 100644 node_modules/js-beautify/js/src/css/index.js delete mode 100644 node_modules/js-beautify/js/src/css/options.js delete mode 100644 node_modules/js-beautify/js/src/css/tokenizer.js delete mode 100644 node_modules/js-beautify/js/src/html/beautifier.js delete mode 100644 node_modules/js-beautify/js/src/html/index.js delete mode 100644 node_modules/js-beautify/js/src/html/options.js delete mode 100644 node_modules/js-beautify/js/src/html/tokenizer.js delete mode 100644 node_modules/js-beautify/js/src/index.js delete mode 100644 node_modules/js-beautify/js/src/javascript/acorn.js delete mode 100644 node_modules/js-beautify/js/src/javascript/beautifier.js delete mode 100644 node_modules/js-beautify/js/src/javascript/index.js delete mode 100644 node_modules/js-beautify/js/src/javascript/options.js delete mode 100644 node_modules/js-beautify/js/src/javascript/tokenizer.js delete mode 100644 node_modules/js-beautify/js/src/unpackers/javascriptobfuscator_unpacker.js delete mode 100644 node_modules/js-beautify/js/src/unpackers/myobfuscate_unpacker.js delete mode 100644 node_modules/js-beautify/js/src/unpackers/p_a_c_k_e_r_unpacker.js delete mode 100644 node_modules/js-beautify/js/src/unpackers/urlencode_unpacker.js delete mode 100644 node_modules/js-beautify/package.json delete mode 100644 node_modules/kind-of/LICENSE delete mode 100644 node_modules/kind-of/README.md delete mode 100644 node_modules/kind-of/index.js delete mode 100644 node_modules/kind-of/package.json delete mode 100644 node_modules/lru-cache/LICENSE delete mode 100644 node_modules/lru-cache/README.md delete mode 100644 node_modules/lru-cache/index.js delete mode 100644 node_modules/lru-cache/package.json delete mode 100644 node_modules/minimatch/LICENSE delete mode 100644 node_modules/minimatch/README.md delete mode 100644 node_modules/minimatch/minimatch.js delete mode 100644 node_modules/minimatch/package.json delete mode 100644 node_modules/nopt/CHANGELOG.md delete mode 100644 node_modules/nopt/LICENSE delete mode 100644 node_modules/nopt/README.md delete mode 100755 node_modules/nopt/bin/nopt.js delete mode 100644 node_modules/nopt/lib/nopt.js delete mode 100644 node_modules/nopt/package.json delete mode 100644 node_modules/nth-check/LICENSE delete mode 100644 node_modules/nth-check/README.md delete mode 100644 node_modules/nth-check/lib/compile.d.ts delete mode 100644 node_modules/nth-check/lib/compile.d.ts.map delete mode 100644 node_modules/nth-check/lib/compile.js delete mode 100644 node_modules/nth-check/lib/index.d.ts delete mode 100644 node_modules/nth-check/lib/index.d.ts.map delete mode 100644 node_modules/nth-check/lib/index.js delete mode 100644 node_modules/nth-check/lib/parse.d.ts delete mode 100644 node_modules/nth-check/lib/parse.d.ts.map delete mode 100644 node_modules/nth-check/lib/parse.js delete mode 100644 node_modules/nth-check/package.json delete mode 100644 node_modules/once/LICENSE delete mode 100644 node_modules/once/README.md delete mode 100644 node_modules/once/once.js delete mode 100644 node_modules/once/package.json delete mode 100644 node_modules/parse5-htmlparser2-tree-adapter/LICENSE delete mode 100644 node_modules/parse5-htmlparser2-tree-adapter/README.md delete mode 100644 node_modules/parse5-htmlparser2-tree-adapter/lib/index.js delete mode 100644 node_modules/parse5-htmlparser2-tree-adapter/package.json delete mode 100644 node_modules/parse5/LICENSE delete mode 100644 node_modules/parse5/README.md delete mode 100644 node_modules/parse5/lib/common/doctype.js delete mode 100644 node_modules/parse5/lib/common/error-codes.js delete mode 100644 node_modules/parse5/lib/common/foreign-content.js delete mode 100644 node_modules/parse5/lib/common/html.js delete mode 100644 node_modules/parse5/lib/common/unicode.js delete mode 100644 node_modules/parse5/lib/extensions/error-reporting/mixin-base.js delete mode 100644 node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js delete mode 100644 node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js delete mode 100644 node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js delete mode 100644 node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js delete mode 100644 node_modules/parse5/lib/extensions/location-info/parser-mixin.js delete mode 100644 node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js delete mode 100644 node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js delete mode 100644 node_modules/parse5/lib/index.js delete mode 100644 node_modules/parse5/lib/parser/formatting-element-list.js delete mode 100644 node_modules/parse5/lib/parser/index.js delete mode 100644 node_modules/parse5/lib/parser/open-element-stack.js delete mode 100644 node_modules/parse5/lib/serializer/index.js delete mode 100644 node_modules/parse5/lib/tokenizer/index.js delete mode 100644 node_modules/parse5/lib/tokenizer/named-entity-data.js delete mode 100644 node_modules/parse5/lib/tokenizer/preprocessor.js delete mode 100644 node_modules/parse5/lib/tree-adapters/default.js delete mode 100644 node_modules/parse5/lib/utils/merge-options.js delete mode 100644 node_modules/parse5/lib/utils/mixin.js delete mode 100644 node_modules/parse5/package.json delete mode 100644 node_modules/path-is-absolute/index.js delete mode 100644 node_modules/path-is-absolute/license delete mode 100644 node_modules/path-is-absolute/package.json delete mode 100644 node_modules/path-is-absolute/readme.md delete mode 100644 node_modules/pretty/LICENSE delete mode 100644 node_modules/pretty/README.md delete mode 100644 node_modules/pretty/index.js delete mode 100644 node_modules/pretty/package.json delete mode 100644 node_modules/proto-list/LICENSE delete mode 100644 node_modules/proto-list/README.md delete mode 100644 node_modules/proto-list/package.json delete mode 100644 node_modules/proto-list/proto-list.js delete mode 100644 node_modules/proto-list/test/basic.js delete mode 100644 node_modules/pseudomap/LICENSE delete mode 100644 node_modules/pseudomap/README.md delete mode 100644 node_modules/pseudomap/map.js delete mode 100644 node_modules/pseudomap/package.json delete mode 100644 node_modules/pseudomap/pseudomap.js delete mode 100644 node_modules/pseudomap/test/basic.js delete mode 100644 node_modules/semver/CHANGELOG.md delete mode 100644 node_modules/semver/LICENSE delete mode 100644 node_modules/semver/README.md delete mode 100755 node_modules/semver/bin/semver delete mode 100644 node_modules/semver/package.json delete mode 100644 node_modules/semver/range.bnf delete mode 100644 node_modules/semver/semver.js delete mode 100644 node_modules/sigmund/LICENSE delete mode 100644 node_modules/sigmund/README.md delete mode 100644 node_modules/sigmund/bench.js delete mode 100644 node_modules/sigmund/package.json delete mode 100644 node_modules/sigmund/sigmund.js delete mode 100644 node_modules/sigmund/test/basic.js delete mode 100644 node_modules/tslib/CopyrightNotice.txt delete mode 100644 node_modules/tslib/LICENSE.txt delete mode 100644 node_modules/tslib/README.md delete mode 100644 node_modules/tslib/modules/index.js delete mode 100644 node_modules/tslib/modules/package.json delete mode 100644 node_modules/tslib/package.json delete mode 100644 node_modules/tslib/tslib.d.ts delete mode 100644 node_modules/tslib/tslib.es6.html delete mode 100644 node_modules/tslib/tslib.es6.js delete mode 100644 node_modules/tslib/tslib.html delete mode 100644 node_modules/tslib/tslib.js delete mode 100644 node_modules/wrappy/LICENSE delete mode 100644 node_modules/wrappy/README.md delete mode 100644 node_modules/wrappy/package.json delete mode 100644 node_modules/wrappy/wrappy.js delete mode 100644 node_modules/yallist/LICENSE delete mode 100644 node_modules/yallist/README.md delete mode 100644 node_modules/yallist/iterator.js delete mode 100644 node_modules/yallist/package.json delete mode 100644 node_modules/yallist/yallist.js delete mode 100644 package-lock.json diff --git a/.gitignore b/.gitignore index 5672704..f9baf6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -website/secrets.js -node_modules/* \ No newline at end of file +website/secrets.js \ No newline at end of file diff --git a/node_modules/.bin/css-beautify b/node_modules/.bin/css-beautify deleted file mode 120000 index d9b8ee2..0000000 --- a/node_modules/.bin/css-beautify +++ /dev/null @@ -1 +0,0 @@ -../js-beautify/js/bin/css-beautify.js \ No newline at end of file diff --git a/node_modules/.bin/editorconfig b/node_modules/.bin/editorconfig deleted file mode 120000 index a151e0b..0000000 --- a/node_modules/.bin/editorconfig +++ /dev/null @@ -1 +0,0 @@ -../editorconfig/bin/editorconfig \ No newline at end of file diff --git a/node_modules/.bin/html-beautify b/node_modules/.bin/html-beautify deleted file mode 120000 index c17c69c..0000000 --- a/node_modules/.bin/html-beautify +++ /dev/null @@ -1 +0,0 @@ -../js-beautify/js/bin/html-beautify.js \ No newline at end of file diff --git a/node_modules/.bin/js-beautify b/node_modules/.bin/js-beautify deleted file mode 120000 index 548ddf4..0000000 --- a/node_modules/.bin/js-beautify +++ /dev/null @@ -1 +0,0 @@ -../js-beautify/js/bin/js-beautify.js \ No newline at end of file diff --git a/node_modules/.bin/nopt b/node_modules/.bin/nopt deleted file mode 120000 index 6b6566e..0000000 --- a/node_modules/.bin/nopt +++ /dev/null @@ -1 +0,0 @@ -../nopt/bin/nopt.js \ No newline at end of file diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver deleted file mode 120000 index 317eb29..0000000 --- a/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../semver/bin/semver \ No newline at end of file diff --git a/node_modules/abbrev/LICENSE b/node_modules/abbrev/LICENSE deleted file mode 100644 index 9bcfa9d..0000000 --- a/node_modules/abbrev/LICENSE +++ /dev/null @@ -1,46 +0,0 @@ -This software is dual-licensed under the ISC and MIT licenses. -You may use this software under EITHER of the following licenses. - ----------- - -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ----------- - -Copyright Isaac Z. Schlueter and Contributors -All rights reserved. - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/abbrev/README.md b/node_modules/abbrev/README.md deleted file mode 100644 index 99746fe..0000000 --- a/node_modules/abbrev/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# abbrev-js - -Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev). - -Usage: - - var abbrev = require("abbrev"); - abbrev("foo", "fool", "folding", "flop"); - - // returns: - { fl: 'flop' - , flo: 'flop' - , flop: 'flop' - , fol: 'folding' - , fold: 'folding' - , foldi: 'folding' - , foldin: 'folding' - , folding: 'folding' - , foo: 'foo' - , fool: 'fool' - } - -This is handy for command-line scripts, or other cases where you want to be able to accept shorthands. diff --git a/node_modules/abbrev/abbrev.js b/node_modules/abbrev/abbrev.js deleted file mode 100644 index 7b1dc5d..0000000 --- a/node_modules/abbrev/abbrev.js +++ /dev/null @@ -1,61 +0,0 @@ -module.exports = exports = abbrev.abbrev = abbrev - -abbrev.monkeyPatch = monkeyPatch - -function monkeyPatch () { - Object.defineProperty(Array.prototype, 'abbrev', { - value: function () { return abbrev(this) }, - enumerable: false, configurable: true, writable: true - }) - - Object.defineProperty(Object.prototype, 'abbrev', { - value: function () { return abbrev(Object.keys(this)) }, - enumerable: false, configurable: true, writable: true - }) -} - -function abbrev (list) { - if (arguments.length !== 1 || !Array.isArray(list)) { - list = Array.prototype.slice.call(arguments, 0) - } - for (var i = 0, l = list.length, args = [] ; i < l ; i ++) { - args[i] = typeof list[i] === "string" ? list[i] : String(list[i]) - } - - // sort them lexicographically, so that they're next to their nearest kin - args = args.sort(lexSort) - - // walk through each, seeing how much it has in common with the next and previous - var abbrevs = {} - , prev = "" - for (var i = 0, l = args.length ; i < l ; i ++) { - var current = args[i] - , next = args[i + 1] || "" - , nextMatches = true - , prevMatches = true - if (current === next) continue - for (var j = 0, cl = current.length ; j < cl ; j ++) { - var curChar = current.charAt(j) - nextMatches = nextMatches && curChar === next.charAt(j) - prevMatches = prevMatches && curChar === prev.charAt(j) - if (!nextMatches && !prevMatches) { - j ++ - break - } - } - prev = current - if (j === cl) { - abbrevs[current] = current - continue - } - for (var a = current.substr(0, j) ; j <= cl ; j ++) { - abbrevs[a] = current - a += current.charAt(j) - } - } - return abbrevs -} - -function lexSort (a, b) { - return a === b ? 0 : a > b ? 1 : -1 -} diff --git a/node_modules/abbrev/package.json b/node_modules/abbrev/package.json deleted file mode 100644 index 473098e..0000000 --- a/node_modules/abbrev/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "_from": "abbrev@1", - "_id": "abbrev@1.1.1", - "_inBundle": false, - "_integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "_location": "/abbrev", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "abbrev@1", - "name": "abbrev", - "escapedName": "abbrev", - "rawSpec": "1", - "saveSpec": null, - "fetchSpec": "1" - }, - "_requiredBy": [ - "/nopt" - ], - "_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "_shasum": "f8f2c887ad10bf67f634f005b6987fed3179aac8", - "_spec": "abbrev@1", - "_where": "/home/runner/work/public_library_map/public_library_map/node_modules/nopt", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me" - }, - "bugs": { - "url": "https://github.com/isaacs/abbrev-js/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Like ruby's abbrev module, but in js", - "devDependencies": { - "tap": "^10.1" - }, - "files": [ - "abbrev.js" - ], - "homepage": "https://github.com/isaacs/abbrev-js#readme", - "license": "ISC", - "main": "abbrev.js", - "name": "abbrev", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/isaacs/abbrev-js.git" - }, - "scripts": { - "postpublish": "git push origin --all; git push origin --tags", - "postversion": "npm publish", - "preversion": "npm test", - "test": "tap test.js --100" - }, - "version": "1.1.1" -} diff --git a/node_modules/balanced-match/.github/FUNDING.yml b/node_modules/balanced-match/.github/FUNDING.yml deleted file mode 100644 index cea8b16..0000000 --- a/node_modules/balanced-match/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -tidelift: "npm/balanced-match" -patreon: juliangruber diff --git a/node_modules/balanced-match/LICENSE.md b/node_modules/balanced-match/LICENSE.md deleted file mode 100644 index 2cdc8e4..0000000 --- a/node_modules/balanced-match/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/balanced-match/README.md b/node_modules/balanced-match/README.md deleted file mode 100644 index d2a48b6..0000000 --- a/node_modules/balanced-match/README.md +++ /dev/null @@ -1,97 +0,0 @@ -# balanced-match - -Match balanced string pairs, like `{` and `}` or `` and ``. Supports regular expressions as well! - -[![build status](https://secure.travis-ci.org/juliangruber/balanced-match.svg)](http://travis-ci.org/juliangruber/balanced-match) -[![downloads](https://img.shields.io/npm/dm/balanced-match.svg)](https://www.npmjs.org/package/balanced-match) - -[![testling badge](https://ci.testling.com/juliangruber/balanced-match.png)](https://ci.testling.com/juliangruber/balanced-match) - -## Example - -Get the first matching pair of braces: - -```js -var balanced = require('balanced-match'); - -console.log(balanced('{', '}', 'pre{in{nested}}post')); -console.log(balanced('{', '}', 'pre{first}between{second}post')); -console.log(balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre { in{nest} } post')); -``` - -The matches are: - -```bash -$ node example.js -{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' } -{ start: 3, - end: 9, - pre: 'pre', - body: 'first', - post: 'between{second}post' } -{ start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' } -``` - -## API - -### var m = balanced(a, b, str) - -For the first non-nested matching pair of `a` and `b` in `str`, return an -object with those keys: - -* **start** the index of the first match of `a` -* **end** the index of the matching `b` -* **pre** the preamble, `a` and `b` not included -* **body** the match, `a` and `b` not included -* **post** the postscript, `a` and `b` not included - -If there's no match, `undefined` will be returned. - -If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`. - -### var r = balanced.range(a, b, str) - -For the first non-nested matching pair of `a` and `b` in `str`, return an -array with indexes: `[ , ]`. - -If there's no match, `undefined` will be returned. - -If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`. - -## Installation - -With [npm](https://npmjs.org) do: - -```bash -npm install balanced-match -``` - -## Security contact information - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/balanced-match/index.js b/node_modules/balanced-match/index.js deleted file mode 100644 index c67a646..0000000 --- a/node_modules/balanced-match/index.js +++ /dev/null @@ -1,62 +0,0 @@ -'use strict'; -module.exports = balanced; -function balanced(a, b, str) { - if (a instanceof RegExp) a = maybeMatch(a, str); - if (b instanceof RegExp) b = maybeMatch(b, str); - - var r = range(a, b, str); - - return r && { - start: r[0], - end: r[1], - pre: str.slice(0, r[0]), - body: str.slice(r[0] + a.length, r[1]), - post: str.slice(r[1] + b.length) - }; -} - -function maybeMatch(reg, str) { - var m = str.match(reg); - return m ? m[0] : null; -} - -balanced.range = range; -function range(a, b, str) { - var begs, beg, left, right, result; - var ai = str.indexOf(a); - var bi = str.indexOf(b, ai + 1); - var i = ai; - - if (ai >= 0 && bi > 0) { - if(a===b) { - return [ai, bi]; - } - begs = []; - left = str.length; - - while (i >= 0 && !result) { - if (i == ai) { - begs.push(i); - ai = str.indexOf(a, i + 1); - } else if (begs.length == 1) { - result = [ begs.pop(), bi ]; - } else { - beg = begs.pop(); - if (beg < left) { - left = beg; - right = bi; - } - - bi = str.indexOf(b, i + 1); - } - - i = ai < bi && ai >= 0 ? ai : bi; - } - - if (begs.length) { - result = [ left, right ]; - } - } - - return result; -} diff --git a/node_modules/balanced-match/package.json b/node_modules/balanced-match/package.json deleted file mode 100644 index 739a18a..0000000 --- a/node_modules/balanced-match/package.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "_from": "balanced-match@^1.0.0", - "_id": "balanced-match@1.0.2", - "_inBundle": false, - "_integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "_location": "/balanced-match", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "balanced-match@^1.0.0", - "name": "balanced-match", - "escapedName": "balanced-match", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/brace-expansion" - ], - "_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "_shasum": "e83e3a7e3f300b34cb9d87f615fa0cbf357690ee", - "_spec": "balanced-match@^1.0.0", - "_where": "/home/runner/work/public_library_map/public_library_map/node_modules/brace-expansion", - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "bugs": { - "url": "https://github.com/juliangruber/balanced-match/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Match balanced character pairs, like \"{\" and \"}\"", - "devDependencies": { - "matcha": "^0.7.0", - "tape": "^4.6.0" - }, - "homepage": "https://github.com/juliangruber/balanced-match", - "keywords": [ - "match", - "regexp", - "test", - "balanced", - "parse" - ], - "license": "MIT", - "main": "index.js", - "name": "balanced-match", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/balanced-match.git" - }, - "scripts": { - "bench": "matcha test/bench.js", - "test": "tape test/test.js" - }, - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/20..latest", - "firefox/nightly", - "chrome/25..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - }, - "version": "1.0.2" -} diff --git a/node_modules/boolbase/README.md b/node_modules/boolbase/README.md deleted file mode 100644 index 85eefa5..0000000 --- a/node_modules/boolbase/README.md +++ /dev/null @@ -1,10 +0,0 @@ -#boolbase -This very simple module provides two basic functions, one that always returns true (`trueFunc`) and one that always returns false (`falseFunc`). - -###WTF? - -By having only a single instance of these functions around, it's possible to do some nice optimizations. Eg. [`CSSselect`](https://github.com/fb55/CSSselect) uses these functions to determine whether a selector won't match any elements. If that's the case, the DOM doesn't even have to be touched. - -###And why is this a separate module? - -I'm trying to modularize `CSSselect` and most modules depend on these functions. IMHO, having a separate module is the easiest solution to this problem. \ No newline at end of file diff --git a/node_modules/boolbase/index.js b/node_modules/boolbase/index.js deleted file mode 100644 index 8799fd9..0000000 --- a/node_modules/boolbase/index.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = { - trueFunc: function trueFunc(){ - return true; - }, - falseFunc: function falseFunc(){ - return false; - } -}; \ No newline at end of file diff --git a/node_modules/boolbase/package.json b/node_modules/boolbase/package.json deleted file mode 100644 index 350b673..0000000 --- a/node_modules/boolbase/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "_from": "boolbase@^1.0.0", - "_id": "boolbase@1.0.0", - "_inBundle": false, - "_integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", - "_location": "/boolbase", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "boolbase@^1.0.0", - "name": "boolbase", - "escapedName": "boolbase", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/css-select", - "/nth-check" - ], - "_resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "_shasum": "68dff5fbe60c51eb37725ea9e3ed310dcc1e776e", - "_spec": "boolbase@^1.0.0", - "_where": "/home/runner/work/public_library_map/public_library_map/node_modules/css-select", - "author": { - "name": "Felix Boehm", - "email": "me@feedic.com" - }, - "bugs": { - "url": "https://github.com/fb55/boolbase/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "two functions: One that returns true, one that returns false", - "homepage": "https://github.com/fb55/boolbase", - "keywords": [ - "boolean", - "function" - ], - "license": "ISC", - "main": "index.js", - "name": "boolbase", - "repository": { - "type": "git", - "url": "git+https://github.com/fb55/boolbase.git" - }, - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "version": "1.0.0" -} diff --git a/node_modules/brace-expansion/LICENSE b/node_modules/brace-expansion/LICENSE deleted file mode 100644 index de32266..0000000 --- a/node_modules/brace-expansion/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2013 Julian Gruber - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/brace-expansion/README.md b/node_modules/brace-expansion/README.md deleted file mode 100644 index 6b4e0e1..0000000 --- a/node_modules/brace-expansion/README.md +++ /dev/null @@ -1,129 +0,0 @@ -# brace-expansion - -[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html), -as known from sh/bash, in JavaScript. - -[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion) -[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion) -[![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/) - -[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion) - -## Example - -```js -var expand = require('brace-expansion'); - -expand('file-{a,b,c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('-v{,,}') -// => ['-v', '-v', '-v'] - -expand('file{0..2}.jpg') -// => ['file0.jpg', 'file1.jpg', 'file2.jpg'] - -expand('file-{a..c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('file{2..0}.jpg') -// => ['file2.jpg', 'file1.jpg', 'file0.jpg'] - -expand('file{0..4..2}.jpg') -// => ['file0.jpg', 'file2.jpg', 'file4.jpg'] - -expand('file-{a..e..2}.jpg') -// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg'] - -expand('file{00..10..5}.jpg') -// => ['file00.jpg', 'file05.jpg', 'file10.jpg'] - -expand('{{A..C},{a..c}}') -// => ['A', 'B', 'C', 'a', 'b', 'c'] - -expand('ppp{,config,oe{,conf}}') -// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf'] -``` - -## API - -```js -var expand = require('brace-expansion'); -``` - -### var expanded = expand(str) - -Return an array of all possible and valid expansions of `str`. If none are -found, `[str]` is returned. - -Valid expansions are: - -```js -/^(.*,)+(.+)?$/ -// {a,b,...} -``` - -A comma separated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -A numeric sequence from `x` to `y` inclusive, with optional increment. -If `x` or `y` start with a leading `0`, all the numbers will be padded -to have equal length. Negative numbers and backwards iteration work too. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -An alphabetic sequence from `x` to `y` inclusive, with optional increment. -`x` and `y` must be exactly one character, and if given, `incr` must be a -number. - -For compatibility reasons, the string `${` is not eligible for brace expansion. - -## Installation - -With [npm](https://npmjs.org) do: - -```bash -npm install brace-expansion -``` - -## Contributors - -- [Julian Gruber](https://github.com/juliangruber) -- [Isaac Z. Schlueter](https://github.com/isaacs) - -## Sponsors - -This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)! - -Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)! - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/brace-expansion/index.js b/node_modules/brace-expansion/index.js deleted file mode 100644 index 0478be8..0000000 --- a/node_modules/brace-expansion/index.js +++ /dev/null @@ -1,201 +0,0 @@ -var concatMap = require('concat-map'); -var balanced = require('balanced-match'); - -module.exports = expandTop; - -var escSlash = '\0SLASH'+Math.random()+'\0'; -var escOpen = '\0OPEN'+Math.random()+'\0'; -var escClose = '\0CLOSE'+Math.random()+'\0'; -var escComma = '\0COMMA'+Math.random()+'\0'; -var escPeriod = '\0PERIOD'+Math.random()+'\0'; - -function numeric(str) { - return parseInt(str, 10) == str - ? parseInt(str, 10) - : str.charCodeAt(0); -} - -function escapeBraces(str) { - return str.split('\\\\').join(escSlash) - .split('\\{').join(escOpen) - .split('\\}').join(escClose) - .split('\\,').join(escComma) - .split('\\.').join(escPeriod); -} - -function unescapeBraces(str) { - return str.split(escSlash).join('\\') - .split(escOpen).join('{') - .split(escClose).join('}') - .split(escComma).join(',') - .split(escPeriod).join('.'); -} - - -// Basically just str.split(","), but handling cases -// where we have nested braced sections, which should be -// treated as individual members, like {a,{b,c},d} -function parseCommaParts(str) { - if (!str) - return ['']; - - var parts = []; - var m = balanced('{', '}', str); - - if (!m) - return str.split(','); - - var pre = m.pre; - var body = m.body; - var post = m.post; - var p = pre.split(','); - - p[p.length-1] += '{' + body + '}'; - var postParts = parseCommaParts(post); - if (post.length) { - p[p.length-1] += postParts.shift(); - p.push.apply(p, postParts); - } - - parts.push.apply(parts, p); - - return parts; -} - -function expandTop(str) { - if (!str) - return []; - - // I don't know why Bash 4.3 does this, but it does. - // Anything starting with {} will have the first two bytes preserved - // but *only* at the top level, so {},a}b will not expand to anything, - // but a{},b}c will be expanded to [a}c,abc]. - // One could argue that this is a bug in Bash, but since the goal of - // this module is to match Bash's rules, we escape a leading {} - if (str.substr(0, 2) === '{}') { - str = '\\{\\}' + str.substr(2); - } - - return expand(escapeBraces(str), true).map(unescapeBraces); -} - -function identity(e) { - return e; -} - -function embrace(str) { - return '{' + str + '}'; -} -function isPadded(el) { - return /^-?0\d/.test(el); -} - -function lte(i, y) { - return i <= y; -} -function gte(i, y) { - return i >= y; -} - -function expand(str, isTop) { - var expansions = []; - - var m = balanced('{', '}', str); - if (!m || /\$$/.test(m.pre)) return [str]; - - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); - var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m.body.indexOf(',') >= 0; - if (!isSequence && !isOptions) { - // {a},b} - if (m.post.match(/,.*\}/)) { - str = m.pre + '{' + m.body + escClose + m.post; - return expand(str); - } - return [str]; - } - - var n; - if (isSequence) { - n = m.body.split(/\.\./); - } else { - n = parseCommaParts(m.body); - if (n.length === 1) { - // x{{a,b}}y ==> x{a}y x{b}y - n = expand(n[0], false).map(embrace); - if (n.length === 1) { - var post = m.post.length - ? expand(m.post, false) - : ['']; - return post.map(function(p) { - return m.pre + n[0] + p; - }); - } - } - } - - // at this point, n is the parts, and we know it's not a comma set - // with a single entry. - - // no need to expand pre, since it is guaranteed to be free of brace-sets - var pre = m.pre; - var post = m.post.length - ? expand(m.post, false) - : ['']; - - var N; - - if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); - var width = Math.max(n[0].length, n[1].length) - var incr = n.length == 3 - ? Math.abs(numeric(n[2])) - : 1; - var test = lte; - var reverse = y < x; - if (reverse) { - incr *= -1; - test = gte; - } - var pad = n.some(isPadded); - - N = []; - - for (var i = x; test(i, y); i += incr) { - var c; - if (isAlphaSequence) { - c = String.fromCharCode(i); - if (c === '\\') - c = ''; - } else { - c = String(i); - if (pad) { - var need = width - c.length; - if (need > 0) { - var z = new Array(need + 1).join('0'); - if (i < 0) - c = '-' + z + c.slice(1); - else - c = z + c; - } - } - } - N.push(c); - } - } else { - N = concatMap(n, function(el) { return expand(el, false) }); - } - - for (var j = 0; j < N.length; j++) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k]; - if (!isTop || isSequence || expansion) - expansions.push(expansion); - } - } - - return expansions; -} - diff --git a/node_modules/brace-expansion/package.json b/node_modules/brace-expansion/package.json deleted file mode 100644 index 2b86117..0000000 --- a/node_modules/brace-expansion/package.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "_from": "brace-expansion@^1.1.7", - "_id": "brace-expansion@1.1.11", - "_inBundle": false, - "_integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "_location": "/brace-expansion", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "brace-expansion@^1.1.7", - "name": "brace-expansion", - "escapedName": "brace-expansion", - "rawSpec": "^1.1.7", - "saveSpec": null, - "fetchSpec": "^1.1.7" - }, - "_requiredBy": [ - "/minimatch" - ], - "_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "_shasum": "3c7fcbf529d87226f3d2f52b966ff5271eb441dd", - "_spec": "brace-expansion@^1.1.7", - "_where": "/home/runner/work/public_library_map/public_library_map/node_modules/minimatch", - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "bugs": { - "url": "https://github.com/juliangruber/brace-expansion/issues" - }, - "bundleDependencies": false, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - }, - "deprecated": false, - "description": "Brace expansion as known from sh/bash", - "devDependencies": { - "matcha": "^0.7.0", - "tape": "^4.6.0" - }, - "homepage": "https://github.com/juliangruber/brace-expansion", - "keywords": [], - "license": "MIT", - "main": "index.js", - "name": "brace-expansion", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/brace-expansion.git" - }, - "scripts": { - "bench": "matcha test/perf/bench.js", - "gentest": "bash test/generate.sh", - "test": "tape test/*.js" - }, - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/20..latest", - "firefox/nightly", - "chrome/25..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - }, - "version": "1.1.11" -} diff --git a/node_modules/cheerio-select/LICENSE b/node_modules/cheerio-select/LICENSE deleted file mode 100644 index c464f86..0000000 --- a/node_modules/cheerio-select/LICENSE +++ /dev/null @@ -1,11 +0,0 @@ -Copyright (c) Felix Böhm -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - -Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - -THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/cheerio-select/README.md b/node_modules/cheerio-select/README.md deleted file mode 100644 index 140a661..0000000 --- a/node_modules/cheerio-select/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# cheerio-select [![NPM version](http://img.shields.io/npm/v/cheerio-select.svg)](https://npmjs.org/package/cheerio-select) [![Build Status](https://travis-ci.org/cheeriojs/cheerio-select.svg?branch=master)](http://travis-ci.org/cheeriojs/cheerio-select) [![Downloads](https://img.shields.io/npm/dm/cheerio-select.svg)](https://npmjs.org/package/cheerio-select) [![Coverage](https://coveralls.io/repos/cheeriojs/cheerio-select/badge.svg?branch=master)](https://coveralls.io/r/cheeriojs/cheerio-select) - -CSS selector engine supporting jQuery selectors, based on [`css-select`](https://github.com/fb55/css-select). - -Supports all jQuery positional pseudo-selectors: - -- `:first` -- `:last` -- `:eq` -- `:nth` -- `:gt` -- `:lt` -- `:even` -- `:odd` -- `:not(:positional)`, where `:positional` is any of the above. - -This library is a thin wrapper around [`css-select`](https://github.com/fb55/css-select). -Only use this module if you will actually use jQuery positional selectors. diff --git a/node_modules/cheerio-select/lib/helpers.d.ts b/node_modules/cheerio-select/lib/helpers.d.ts deleted file mode 100644 index 4e9a298..0000000 --- a/node_modules/cheerio-select/lib/helpers.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { Node } from "domhandler"; -import type { Selector } from "css-what"; -export declare function getDocumentRoot(node: Node): Node; -export declare function groupSelectors(selectors: Selector[][]): [plain: Selector[][], filtered: Selector[][]]; -//# sourceMappingURL=helpers.d.ts.map \ No newline at end of file diff --git a/node_modules/cheerio-select/lib/helpers.d.ts.map b/node_modules/cheerio-select/lib/helpers.d.ts.map deleted file mode 100644 index 43d0e80..0000000 --- a/node_modules/cheerio-select/lib/helpers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAGhD;AAED,wBAAgB,cAAc,CAC1B,SAAS,EAAE,QAAQ,EAAE,EAAE,GACxB,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,CAAC,CAa/C"} \ No newline at end of file diff --git a/node_modules/cheerio-select/lib/helpers.js b/node_modules/cheerio-select/lib/helpers.js deleted file mode 100644 index 1954691..0000000 --- a/node_modules/cheerio-select/lib/helpers.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.groupSelectors = exports.getDocumentRoot = void 0; -var positionals_1 = require("./positionals"); -function getDocumentRoot(node) { - while (node.parent) - node = node.parent; - return node; -} -exports.getDocumentRoot = getDocumentRoot; -function groupSelectors(selectors) { - var filteredSelectors = []; - var plainSelectors = []; - for (var _i = 0, selectors_1 = selectors; _i < selectors_1.length; _i++) { - var selector = selectors_1[_i]; - if (selector.some(positionals_1.isFilter)) { - filteredSelectors.push(selector); - } - else { - plainSelectors.push(selector); - } - } - return [plainSelectors, filteredSelectors]; -} -exports.groupSelectors = groupSelectors; diff --git a/node_modules/cheerio-select/lib/index.d.ts b/node_modules/cheerio-select/lib/index.d.ts deleted file mode 100644 index 4ecf774..0000000 --- a/node_modules/cheerio-select/lib/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Options as CSSSelectOptions } from "css-select"; -import type { Element, Node, Document } from "domhandler"; -export { filters, pseudos, aliases } from "css-select"; -export interface Options extends CSSSelectOptions { - /** Optional reference to the root of the document. If not set, this will be computed when needed. */ - root?: Document; -} -export declare function is(element: Element, selector: string | ((el: Element) => boolean), options?: Options): boolean; -export declare function some(elements: Element[], selector: string | ((el: Element) => boolean), options?: Options): boolean; -export declare function filter(selector: string, elements: Node[], options?: Options): Element[]; -export declare function select(selector: string | ((el: Element) => boolean), root: Node | Node[], options?: Options): Element[]; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/cheerio-select/lib/index.d.ts.map b/node_modules/cheerio-select/lib/index.d.ts.map deleted file mode 100644 index c53a9da..0000000 --- a/node_modules/cheerio-select/lib/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,OAAO,IAAI,gBAAgB,EAE9B,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAK1D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAYvD,MAAM,WAAW,OAAQ,SAAQ,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC;IAC5D,qGAAqG;IACrG,IAAI,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED,wBAAgB,EAAE,CACd,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,KAAK,OAAO,CAAC,EAC7C,OAAO,GAAE,OAAY,GACtB,OAAO,CAET;AAED,wBAAgB,IAAI,CAChB,QAAQ,EAAE,OAAO,EAAE,EACnB,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,KAAK,OAAO,CAAC,EAC7C,OAAO,GAAE,OAAY,GACtB,OAAO,CAWT;AAsCD,wBAAgB,MAAM,CAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,IAAI,EAAE,EAChB,OAAO,GAAE,OAAY,GACtB,OAAO,EAAE,CAEX;AA6FD,wBAAgB,MAAM,CAClB,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,KAAK,OAAO,CAAC,EAC7C,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,EACnB,OAAO,GAAE,OAAY,GACtB,OAAO,EAAE,CAuBX"} \ No newline at end of file diff --git a/node_modules/cheerio-select/lib/index.js b/node_modules/cheerio-select/lib/index.js deleted file mode 100644 index facd2ba..0000000 --- a/node_modules/cheerio-select/lib/index.js +++ /dev/null @@ -1,296 +0,0 @@ -"use strict"; -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.select = exports.filter = exports.some = exports.is = exports.aliases = exports.pseudos = exports.filters = void 0; -var css_what_1 = require("css-what"); -var css_select_1 = require("css-select"); -var DomUtils = __importStar(require("domutils")); -var helpers_1 = require("./helpers"); -var positionals_1 = require("./positionals"); -// Re-export pseudo extension points -var css_select_2 = require("css-select"); -Object.defineProperty(exports, "filters", { enumerable: true, get: function () { return css_select_2.filters; } }); -Object.defineProperty(exports, "pseudos", { enumerable: true, get: function () { return css_select_2.pseudos; } }); -Object.defineProperty(exports, "aliases", { enumerable: true, get: function () { return css_select_2.aliases; } }); -/** Used to indicate a scope should be filtered. Might be ignored when filtering. */ -var SCOPE_PSEUDO = { - type: "pseudo", - name: "scope", - data: null, -}; -/** Used for actually filtering for scope. */ -var CUSTOM_SCOPE_PSEUDO = __assign({}, SCOPE_PSEUDO); -var UNIVERSAL_SELECTOR = { type: "universal", namespace: null }; -function is(element, selector, options) { - if (options === void 0) { options = {}; } - return some([element], selector, options); -} -exports.is = is; -function some(elements, selector, options) { - if (options === void 0) { options = {}; } - if (typeof selector === "function") - return elements.some(selector); - var _a = helpers_1.groupSelectors(css_what_1.parse(selector, options)), plain = _a[0], filtered = _a[1]; - return ((plain.length > 0 && elements.some(css_select_1._compileToken(plain, options))) || - filtered.some(function (sel) { return filterBySelector(sel, elements, options).length > 0; })); -} -exports.some = some; -function filterByPosition(filter, elems, data, options) { - var num = typeof data === "string" ? parseInt(data, 10) : NaN; - switch (filter) { - case "first": - case "lt": - // Already done in `getLimit` - return elems; - case "last": - return elems.length > 0 ? [elems[elems.length - 1]] : elems; - case "nth": - case "eq": - return isFinite(num) && Math.abs(num) < elems.length - ? [num < 0 ? elems[elems.length + num] : elems[num]] - : []; - case "gt": - return isFinite(num) ? elems.slice(num + 1) : []; - case "even": - return elems.filter(function (_, i) { return i % 2 === 0; }); - case "odd": - return elems.filter(function (_, i) { return i % 2 === 1; }); - case "not": { - var filtered_1 = new Set(filterParsed(data, elems, options)); - return elems.filter(function (e) { return !filtered_1.has(e); }); - } - } -} -function filter(selector, elements, options) { - if (options === void 0) { options = {}; } - return filterParsed(css_what_1.parse(selector, options), elements, options); -} -exports.filter = filter; -/** - * Filter a set of elements by a selector. - * - * Will return elements in the original order. - * - * @param selector Selector to filter by. - * @param elements Elements to filter. - * @param options Options for selector. - */ -function filterParsed(selector, elements, options) { - if (elements.length === 0) - return []; - var _a = helpers_1.groupSelectors(selector), plainSelectors = _a[0], filteredSelectors = _a[1]; - var found; - if (plainSelectors.length) { - var filtered = filterElements(elements, plainSelectors, options); - // If there are no filters, just return - if (filteredSelectors.length === 0) { - return filtered; - } - // Otherwise, we have to do some filtering - if (filtered.length) { - found = new Set(filtered); - } - } - for (var i = 0; i < filteredSelectors.length && (found === null || found === void 0 ? void 0 : found.size) !== elements.length; i++) { - var filteredSelector = filteredSelectors[i]; - var missing = found - ? elements.filter(function (e) { return DomUtils.isTag(e) && !found.has(e); }) - : elements; - if (missing.length === 0) - break; - var filtered = filterBySelector(filteredSelector, elements, options); - if (filtered.length) { - if (!found) { - /* - * If we haven't found anything before the last selector, - * just return what we found now. - */ - if (i === filteredSelectors.length - 1) { - return filtered; - } - found = new Set(filtered); - } - else { - filtered.forEach(function (el) { return found.add(el); }); - } - } - } - return typeof found !== "undefined" - ? (found.size === elements.length - ? elements - : // Filter elements to preserve order - elements.filter(function (el) { - return found.has(el); - })) - : []; -} -function filterBySelector(selector, elements, options) { - var _a; - if (selector.some(css_what_1.isTraversal)) { - /* - * Get root node, run selector with the scope - * set to all of our nodes. - */ - var root = (_a = options.root) !== null && _a !== void 0 ? _a : helpers_1.getDocumentRoot(elements[0]); - var sel = __spreadArray(__spreadArray([], selector), [CUSTOM_SCOPE_PSEUDO]); - return findFilterElements(root, sel, options, true, elements); - } - // Performance optimization: If we don't have to traverse, just filter set. - return findFilterElements(elements, selector, options, false); -} -function select(selector, root, options) { - if (options === void 0) { options = {}; } - if (typeof selector === "function") { - return find(root, selector); - } - var _a = helpers_1.groupSelectors(css_what_1.parse(selector, options)), plain = _a[0], filtered = _a[1]; - var results = filtered.map(function (sel) { - return findFilterElements(root, sel, options, true); - }); - // Plain selectors can be queried in a single go - if (plain.length) { - results.push(findElements(root, plain, options, Infinity)); - } - // If there was only a single selector, just return the result - if (results.length === 1) { - return results[0]; - } - // Sort results, filtering for duplicates - return DomUtils.uniqueSort(results.reduce(function (a, b) { return __spreadArray(__spreadArray([], a), b); })); -} -exports.select = select; -// Traversals that are treated differently in css-select. -var specialTraversal = new Set(["descendant", "adjacent"]); -function includesScopePseudo(t) { - return (t !== SCOPE_PSEUDO && - t.type === "pseudo" && - (t.name === "scope" || - (Array.isArray(t.data) && - t.data.some(function (data) { return data.some(includesScopePseudo); })))); -} -function addContextIfScope(selector, options, scopeContext) { - return scopeContext && selector.some(includesScopePseudo) - ? __assign(__assign({}, options), { context: scopeContext }) : options; -} -/** - * - * @param root Element(s) to search from. - * @param selector Selector to look for. - * @param options Options for querying. - * @param queryForSelector Query multiple levels deep for the initial selector, even if it doesn't contain a traversal. - * @param scopeContext Optional context for a :scope. - */ -function findFilterElements(root, selector, options, queryForSelector, scopeContext) { - var filterIndex = selector.findIndex(positionals_1.isFilter); - var sub = selector.slice(0, filterIndex); - var filter = selector[filterIndex]; - /* - * Set the number of elements to retrieve. - * Eg. for :first, we only have to get a single element. - */ - var limit = positionals_1.getLimit(filter.name, filter.data); - if (limit === 0) - return []; - var subOpts = addContextIfScope(sub, options, scopeContext); - /* - * Skip `findElements` call if our selector starts with a positional - * pseudo. - */ - var elemsNoLimit = sub.length === 0 && !Array.isArray(root) - ? DomUtils.getChildren(root).filter(DomUtils.isTag) - : sub.length === 0 || (sub.length === 1 && sub[0] === SCOPE_PSEUDO) - ? (Array.isArray(root) ? root : [root]).filter(DomUtils.isTag) - : queryForSelector || sub.some(css_what_1.isTraversal) - ? findElements(root, [sub], subOpts, limit) - : filterElements(root, [sub], subOpts); - var elems = elemsNoLimit.slice(0, limit); - var result = filterByPosition(filter.name, elems, filter.data, options); - if (result.length === 0 || selector.length === filterIndex + 1) { - return result; - } - var remainingSelector = selector.slice(filterIndex + 1); - var remainingHasTraversal = remainingSelector.some(css_what_1.isTraversal); - var remainingOpts = addContextIfScope(remainingSelector, options, scopeContext); - if (remainingHasTraversal) { - /* - * Some types of traversals have special logic when they start a selector - * in css-select. If this is the case, add a universal selector in front of - * the selector to avoid this behavior. - */ - if (specialTraversal.has(remainingSelector[0].type)) { - remainingSelector.unshift(UNIVERSAL_SELECTOR); - } - /* - * Add a scope token in front of the remaining selector, - * to make sure traversals don't match elements that aren't a - * part of the considered tree. - */ - remainingSelector.unshift(SCOPE_PSEUDO); - } - /* - * If we have another filter, recursively call `findFilterElements`, - * with the `recursive` flag disabled. We only have to look for more - * elements when we see a traversal. - * - * Otherwise, - */ - return remainingSelector.some(positionals_1.isFilter) - ? findFilterElements(result, remainingSelector, options, false, scopeContext) - : remainingHasTraversal - ? // Query existing elements to resolve traversal. - findElements(result, [remainingSelector], remainingOpts, Infinity) - : // If we don't have any more traversals, simply filter elements. - filterElements(result, [remainingSelector], remainingOpts); -} -function findElements(root, sel, options, limit) { - if (limit === 0) - return []; - var query = css_select_1._compileToken(sel, options, root); - return find(root, query, limit); -} -function find(root, query, limit) { - if (limit === void 0) { limit = Infinity; } - var elems = css_select_1.prepareContext(root, DomUtils, query.shouldTestNextSiblings); - return DomUtils.find(function (node) { return DomUtils.isTag(node) && query(node); }, elems, true, limit); -} -function filterElements(elements, sel, options) { - var els = (Array.isArray(elements) ? elements : [elements]).filter(DomUtils.isTag); - if (els.length === 0) - return els; - var query = css_select_1._compileToken(sel, options); - return els.filter(query); -} diff --git a/node_modules/cheerio-select/lib/positionals.d.ts b/node_modules/cheerio-select/lib/positionals.d.ts deleted file mode 100644 index 9e581d3..0000000 --- a/node_modules/cheerio-select/lib/positionals.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { Selector, PseudoSelector } from "css-what"; -export declare type Filter = "first" | "last" | "eq" | "nth" | "gt" | "lt" | "even" | "odd" | "not"; -export declare const filterNames: Set; -export interface CheerioSelector extends PseudoSelector { - name: Filter; - data: string | null; -} -export declare function isFilter(s: Selector): s is CheerioSelector; -export declare function getLimit(filter: Filter, data: string | null): number; -//# sourceMappingURL=positionals.d.ts.map \ No newline at end of file diff --git a/node_modules/cheerio-select/lib/positionals.d.ts.map b/node_modules/cheerio-select/lib/positionals.d.ts.map deleted file mode 100644 index 0d755cc..0000000 --- a/node_modules/cheerio-select/lib/positionals.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"positionals.d.ts","sourceRoot":"","sources":["../src/positionals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEzD,oBAAY,MAAM,GACZ,OAAO,GACP,MAAM,GACN,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,MAAM,GACN,KAAK,GACL,KAAK,CAAC;AACZ,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,MAAM,CASlC,CAAC;AAEH,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,QAAQ,GAAG,CAAC,IAAI,eAAe,CAS1D;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAgBpE"} \ No newline at end of file diff --git a/node_modules/cheerio-select/lib/positionals.js b/node_modules/cheerio-select/lib/positionals.js deleted file mode 100644 index a2ccaa7..0000000 --- a/node_modules/cheerio-select/lib/positionals.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getLimit = exports.isFilter = exports.filterNames = void 0; -exports.filterNames = new Set([ - "first", - "last", - "eq", - "gt", - "nth", - "lt", - "even", - "odd", -]); -function isFilter(s) { - if (s.type !== "pseudo") - return false; - if (exports.filterNames.has(s.name)) - return true; - if (s.name === "not" && Array.isArray(s.data)) { - // Only consider `:not` with embedded filters - return s.data.some(function (s) { return s.some(isFilter); }); - } - return false; -} -exports.isFilter = isFilter; -function getLimit(filter, data) { - var num = data != null ? parseInt(data, 10) : NaN; - switch (filter) { - case "first": - return 1; - case "nth": - case "eq": - return isFinite(num) ? (num >= 0 ? num + 1 : Infinity) : 0; - case "lt": - return isFinite(num) ? (num >= 0 ? num : Infinity) : 0; - case "gt": - return isFinite(num) ? Infinity : 0; - default: - return Infinity; - } -} -exports.getLimit = getLimit; diff --git a/node_modules/cheerio-select/package.json b/node_modules/cheerio-select/package.json deleted file mode 100644 index b3ebdfa..0000000 --- a/node_modules/cheerio-select/package.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "_from": "cheerio-select@^1.5.0", - "_id": "cheerio-select@1.5.0", - "_inBundle": false, - "_integrity": "sha512-qocaHPv5ypefh6YNxvnbABM07KMxExbtbfuJoIie3iZXX1ERwYmJcIiRrr9H05ucQP1k28dav8rpdDgjQd8drg==", - "_location": "/cheerio-select", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "cheerio-select@^1.5.0", - "name": "cheerio-select", - "escapedName": "cheerio-select", - "rawSpec": "^1.5.0", - "saveSpec": null, - "fetchSpec": "^1.5.0" - }, - "_requiredBy": [ - "/cheerio" - ], - "_resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.5.0.tgz", - "_shasum": "faf3daeb31b17c5e1a9dabcee288aaf8aafa5823", - "_spec": "cheerio-select@^1.5.0", - "_where": "/home/runner/work/public_library_map/public_library_map/node_modules/cheerio", - "author": { - "name": "Felix Boehm", - "email": "me@feedic.com" - }, - "bugs": { - "url": "https://github.com/cheeriojs/cheerio-select/issues" - }, - "bundleDependencies": false, - "dependencies": { - "css-select": "^4.1.3", - "css-what": "^5.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0", - "domutils": "^2.7.0" - }, - "deprecated": false, - "description": "CSS selector engine supporting jQuery selectors", - "devDependencies": { - "@types/jest": "^26.0.23", - "@typescript-eslint/eslint-plugin": "^4.26.0", - "@typescript-eslint/parser": "^4.26.0", - "coveralls": "^3.1.0", - "eslint": "^7.28.0", - "eslint-config-prettier": "^8.3.0", - "htmlparser2": "^6.1.0", - "jest": "^27.0.4", - "prettier": "^2.3.1", - "ts-jest": "^27.0.3", - "typescript": "^4.3.2" - }, - "directories": { - "lib": "lib/" - }, - "files": [ - "lib/**/*" - ], - "funding": { - "url": "https://github.com/sponsors/fb55" - }, - "homepage": "https://github.com/cheeriojs/cheerio-select#readme", - "jest": { - "preset": "ts-jest", - "testEnvironment": "node" - }, - "license": "BSD-2-Clause", - "main": "lib/index.js", - "name": "cheerio-select", - "prettier": { - "tabWidth": 4 - }, - "repository": { - "type": "git", - "url": "git://github.com/cheeriojs/cheerio-select.git" - }, - "scripts": { - "build": "tsc", - "coverage": "cat coverage/lcov.info | coveralls", - "format": "npm run format:es && npm run format:prettier", - "format:es": "npm run lint:es -- --fix", - "format:prettier": "npm run format:prettier:raw -- --write", - "format:prettier:raw": "prettier '**/*.{ts,md,json,yml}'", - "lint": "npm run lint:es && npm run lint:prettier", - "lint:es": "eslint src", - "lint:prettier": "npm run format:prettier:raw -- --check", - "prepare": "npm run build", - "test": "jest --coverage && npm run lint" - }, - "sideEffects": false, - "types": "lib/index.d.ts", - "version": "1.5.0" -} diff --git a/node_modules/cheerio/LICENSE b/node_modules/cheerio/LICENSE deleted file mode 100644 index 40b9100..0000000 --- a/node_modules/cheerio/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2016 Matt Mueller - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/node_modules/cheerio/Readme.md b/node_modules/cheerio/Readme.md deleted file mode 100644 index 449d371..0000000 --- a/node_modules/cheerio/Readme.md +++ /dev/null @@ -1,319 +0,0 @@ -

cheerio

- -
Fast, flexible & lean implementation of core jQuery designed specifically for the server.
- -
- -
- -[中文文档 (Chinese Readme)](https://github.com/cheeriojs/cheerio/wiki/Chinese-README) - -```js -const cheerio = require('cheerio'); -const $ = cheerio.load('

Hello world

'); - -$('h2.title').text('Hello there!'); -$('h2').addClass('welcome'); - -$.html(); -//=>

Hello there!

-``` - -## Note - -We are currently working on the 1.0.0 release of cheerio on the `main` branch. The source code for the last published version, `0.22.0`, can be found [here](https://github.com/cheeriojs/cheerio/tree/aa90399c9c02f12432bfff97b8f1c7d8ece7c307). - -## Installation - -`npm install cheerio` - -## Features - -**❤ Familiar syntax:** -Cheerio implements a subset of core jQuery. Cheerio removes all the DOM inconsistencies and browser cruft from the jQuery library, revealing its truly gorgeous API. - -**ϟ Blazingly fast:** -Cheerio works with a very simple, consistent DOM model. As a result parsing, manipulating, and rendering are incredibly efficient. - -**❁ Incredibly flexible:** -Cheerio wraps around [parse5](https://github.com/inikulin/parse5) parser and can optionally use @FB55's forgiving [htmlparser2](https://github.com/fb55/htmlparser2/). Cheerio can parse nearly any HTML or XML document. - -## Cheerio is not a web browser - -Cheerio parses markup and provides an API for traversing/manipulating the resulting data structure. It does not interpret the result as a web browser does. Specifically, it does _not_ produce a visual rendering, apply CSS, load external resources, or execute JavaScript. This makes Cheerio **much, much faster than other solutions**. If your use case requires any of this functionality, you should consider projects like [Puppeteer](https://github.com/puppeteer/puppeteer) or [JSDom](https://github.com/jsdom/jsdom). - -## API - -### Markup example we'll be using: - -```html -
    -
  • Apple
  • -
  • Orange
  • -
  • Pear
  • -
-``` - -This is the HTML markup we will be using in all of the API examples. - -### Loading - -First you need to load in the HTML. This step in jQuery is implicit, since jQuery operates on the one, baked-in DOM. With Cheerio, we need to pass in the HTML document. - -This is the _preferred_ method: - -```js -// ES6 or TypeScript: -import * as cheerio from 'cheerio'; - -// In other environments: -const cheerio = require('cheerio'); - -const $ = cheerio.load('
    ...
'); - -$.html(); -//=>
    ...
-``` - -Similar to web browser contexts, `load` will introduce ``, ``, and `` elements if they are not already present. You can set `load`'s third argument to `false` to disable this. - -```js -const $ = cheerio.load('
    ...
', null, false); - -$.html(); -//=> '
    ...
' -``` - -Optionally, you can also load in the HTML by passing the string as the context: - -```js -$('ul', '
    ...
'); -``` - -Or as the root: - -```js -$('li', 'ul', '
    ...
'); -``` - -If you need to modify parsing options for XML input, you may pass an extra -object to `.load()`: - -```js -const $ = cheerio.load('
    ...
', { - xml: { - normalizeWhitespace: true, - }, -}); -``` - -The options in the `xml` object are taken directly from [htmlparser2](https://github.com/fb55/htmlparser2/wiki/Parser-options), therefore any options that can be used in `htmlparser2` are valid in cheerio as well. When `xml` is set, the default options are: - -```js -{ - xmlMode: true, - decodeEntities: true, // Decode HTML entities. - withStartIndices: false, // Add a `startIndex` property to nodes. - withEndIndices: false, // Add an `endIndex` property to nodes. -} -``` - -For a full list of options and their effects, see [domhandler](https://github.com/fb55/DomHandler) and -[htmlparser2's options](https://github.com/fb55/htmlparser2/wiki/Parser-options). - -Some users may wish to parse markup with the `htmlparser2` library, and -traverse/manipulate the resulting structure with Cheerio. This may be the case -for those upgrading from pre-1.0 releases of Cheerio (which relied on -`htmlparser2`), for those dealing with invalid markup (because `htmlparser2` is -more forgiving), or for those operating in performance-critical situations -(because `htmlparser2` may be faster in some cases). Note that "more forgiving" -means `htmlparser2` has error-correcting mechanisms that aren't always a match -for the standards observed by web browsers. This behavior may be useful when -parsing non-HTML content. - -To support these cases, `load` also accepts a `htmlparser2`-compatible data -structure as its first argument. Users may install `htmlparser2`, use it to -parse input, and pass the result to `load`: - -```js -// Usage as of htmlparser2 version 6: -const htmlparser2 = require('htmlparser2'); -const dom = htmlparser2.parseDocument(document, options); - -const $ = cheerio.load(dom); -``` - -### Selectors - -Cheerio's selector implementation is nearly identical to jQuery's, so the API is very similar. - -#### \$( selector, [context], [root] ) - -`selector` searches within the `context` scope which searches within the `root` scope. `selector` and `context` can be a string expression, DOM Element, array of DOM elements, or cheerio object. `root` is typically the HTML document string. - -This selector method is the starting point for traversing and manipulating the document. Like jQuery, it's the primary method for selecting elements in the document. - -```js -$('.apple', '#fruits').text(); -//=> Apple - -$('ul .pear').attr('class'); -//=> pear - -$('li[class=orange]').html(); -//=> Orange -``` - -##### XML Namespaces - -You can select with XML Namespaces but [due to the CSS specification](https://www.w3.org/TR/2011/REC-css3-selectors-20110929/#attribute-selectors), the colon (`:`) needs to be escaped for the selector to be valid. - -```js -$('[xml\\:id="main"'); -``` - -### Rendering - -When you're ready to render the document, you can call the `html` method on the "root" selection: - -```js -$.root().html(); -//=> -// -// -//
    -//
  • Apple
  • -//
  • Orange
  • -//
  • Pear
  • -//
-// -// -``` - -If you want to render the [`outerHTML`](https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML) of a selection, you can use the `html` utility functon: - -```js -cheerio.html($('.pear')); -//=>
  • Pear
  • -``` - -By default, `html` will leave some tags open. Sometimes you may instead want to render a valid XML document. For example, you might parse the following XML snippet: - -```js -const $ = cheerio.load( - '' -); -``` - -... and later want to render to XML. To do this, you can use the 'xml' utility function: - -```js -$.xml(); -//=> -``` - -You may also render the text content of a Cheerio object using the `text` static method: - -```js -const $ = cheerio.load('This is content.'); -cheerio.text($('body')); -//=> This is content. -``` - -### Plugins - -Once you have loaded a document, you may extend the prototype or the equivalent `fn` property with custom plugin methods: - -```js -const $ = cheerio.load('Hello, world!'); -$.prototype.logHtml = function () { - console.log(this.html()); -}; - -$('body').logHtml(); // logs "Hello, world!" to the console -``` - -If you're using TypeScript, you should also add a type definition for your new method: - -```ts -declare module 'cheerio' { - interface Cheerio { - logHtml(this: Cheerio): void; - } -} -``` - -### The "DOM Node" object - -Cheerio collections are made up of objects that bear some resemblance to [browser-based DOM nodes](https://developer.mozilla.org/en-US/docs/Web/API/Node). You can expect them to define the following properties: - -- `tagName` -- `parentNode` -- `previousSibling` -- `nextSibling` -- `nodeValue` -- `firstChild` -- `childNodes` -- `lastChild` - -## Screencasts - -[https://vimeo.com/31950192](https://vimeo.com/31950192) - -> This video tutorial is a follow-up to Nettut's "How to Scrape Web Pages with Node.js and jQuery", using cheerio instead of JSDOM + jQuery. This video shows how easy it is to use cheerio and how much faster cheerio is than JSDOM + jQuery. - -## Cheerio in the real world - -Are you using cheerio in production? Add it to the [wiki](https://github.com/cheeriojs/cheerio/wiki/Cheerio-in-Production)! - -## Sponsors - -Does your company use Cheerio in production? Please consider [sponsoring this project](https://github.com/cheeriojs/cheerio?sponsor=1)! Your help will allow maintainers to dedicate more time and resources to its development and support. - - - -![Substack](https://avatars.githubusercontent.com/u/53023767?v=4&s=128) -![Airbnb](https://images.opencollective.com/airbnb/d327d66/logo.png) - - - -## Backers - -[Become a backer](https://github.com/cheeriojs/cheerio?sponsor=1) to show your support for Cheerio and help us maintain and improve this open source project. - - - -![Espen Klem](https://images.opencollective.com/espenklem/6075b19/avatar.png) -![Nishant Singh](https://avatars.githubusercontent.com/u/10304344?u=9cd1389a1a8211b64979ca3693f96d90f5bf0be9&v=4&s=128) - - - -## Special Thanks - -This library stands on the shoulders of some incredible developers. A special thanks to: - -**• @FB55 for node-htmlparser2 & CSSSelect:** -Felix has a knack for writing speedy parsing engines. He completely re-wrote both @tautologistic's `node-htmlparser` and @harry's `node-soupselect` from the ground up, making both of them much faster and more flexible. Cheerio would not be possible without his foundational work - -**• @jQuery team for jQuery:** -The core API is the best of its class and despite dealing with all the browser inconsistencies the code base is extremely clean and easy to follow. Much of cheerio's implementation and documentation is from jQuery. Thanks guys. - -**• @visionmedia:** -The style, the structure, the open-source"-ness" of this library comes from studying TJ's style and using many of his libraries. This dude consistently pumps out high-quality libraries and has always been more than willing to help or answer questions. You rock TJ. - -## License - -MIT diff --git a/node_modules/cheerio/lib/api/attributes.d.ts b/node_modules/cheerio/lib/api/attributes.d.ts deleted file mode 100644 index 208b0c7..0000000 --- a/node_modules/cheerio/lib/api/attributes.d.ts +++ /dev/null @@ -1,317 +0,0 @@ -/** - * Methods for getting and modifying attributes. - * - * @module cheerio/attributes - */ -import type { Node, Element } from 'domhandler'; -import type { Cheerio } from '../cheerio'; -/** - * Method for getting attributes. Gets the attribute value for only the first - * element in the matched set. - * - * @category Attributes - * @example - * - * ```js - * $('ul').attr('id'); - * //=> fruits - * ``` - * - * @param name - Name of the attribute. - * @returns The attribute's value. - * @see {@link https://api.jquery.com/attr/} - */ -export declare function attr(this: Cheerio, name: string): string | undefined; -/** - * Method for getting all attributes and their values of the first element in - * the matched set. - * - * @category Attributes - * @example - * - * ```js - * $('ul').attr(); - * //=> { id: 'fruits' } - * ``` - * - * @returns The attribute's values. - * @see {@link https://api.jquery.com/attr/} - */ -export declare function attr(this: Cheerio): Record; -/** - * Method for setting attributes. Sets the attribute value for only the first - * element in the matched set. If you set an attribute's value to `null`, you - * remove that attribute. You may also pass a `map` and `function`. - * - * @category Attributes - * @example - * - * ```js - * $('.apple').attr('id', 'favorite').html(); - * //=>
  • Apple
  • - * ``` - * - * @param name - Name of the attribute. - * @param value - The new value of the attribute. - * @returns The instance itself. - * @see {@link https://api.jquery.com/attr/} - */ -export declare function attr(this: Cheerio, name: string, value?: string | null | ((this: Element, i: number, attrib: string) => string | null)): Cheerio; -/** - * Method for setting multiple attributes at once. Sets the attribute value for - * only the first element in the matched set. If you set an attribute's value to - * `null`, you remove that attribute. - * - * @category Attributes - * @example - * - * ```js - * $('.apple').attr({ id: 'favorite' }).html(); - * //=>
  • Apple
  • - * ``` - * - * @param values - Map of attribute names and values. - * @returns The instance itself. - * @see {@link https://api.jquery.com/attr/} - */ -export declare function attr(this: Cheerio, values: Record): Cheerio; -interface StyleProp { - length: number; - [key: string]: string | number; - [index: number]: string; -} -/** - * Method for getting and setting properties. Gets the property value for only - * the first element in the matched set. - * - * @category Attributes - * @example - * - * ```js - * $('input[type="checkbox"]').prop('checked'); - * //=> false - * - * $('input[type="checkbox"]').prop('checked', true).val(); - * //=> ok - * ``` - * - * @param name - Name of the property. - * @param value - If specified set the property to this. - * @returns If `value` is specified the instance itself, otherwise the prop's value. - * @see {@link https://api.jquery.com/prop/} - */ -export declare function prop(this: Cheerio, name: 'tagName' | 'nodeName'): T extends Element ? string : undefined; -export declare function prop(this: Cheerio, name: 'innerHTML' | 'outerHTML'): string | null; -export declare function prop(this: Cheerio, name: 'style'): StyleProp; -export declare function prop(this: Cheerio, name: K): Element[K]; -export declare function prop(this: Cheerio, name: K, value: Element[K] | ((this: Element, i: number, prop: K) => Element[keyof Element])): Cheerio; -export declare function prop(this: Cheerio, name: Record): Cheerio; -export declare function prop(this: Cheerio, name: string, value: string | boolean | null | ((this: Element, i: number, prop: string) => string | boolean)): Cheerio; -export declare function prop(this: Cheerio, name: string): string; -/** - * Method for getting data attributes, for only the first element in the matched set. - * - * @category Attributes - * @example - * - * ```js - * $('
    ').data('apple-color'); - * //=> 'red' - * ``` - * - * @param name - Name of the data attribute. - * @returns The data attribute's value. - * @see {@link https://api.jquery.com/data/} - */ -export declare function data(this: Cheerio, name: string): unknown | undefined; -/** - * Method for getting all of an element's data attributes, for only the first - * element in the matched set. - * - * @category Attributes - * @example - * - * ```js - * $('
    ').data(); - * //=> { appleColor: 'red' } - * ``` - * - * @returns The data attribute's values. - * @see {@link https://api.jquery.com/data/} - */ -export declare function data(this: Cheerio): Record; -/** - * Method for setting data attributes, for only the first element in the matched set. - * - * @category Attributes - * @example - * - * ```js - * const apple = $('.apple').data('kind', 'mac'); - * - * apple.data('kind'); - * //=> 'mac' - * ``` - * - * @param name - Name of the data attribute. - * @param value - The new value. - * @returns The instance itself. - * @see {@link https://api.jquery.com/data/} - */ -export declare function data(this: Cheerio, name: string, value: unknown): Cheerio; -/** - * Method for setting multiple data attributes at once, for only the first - * element in the matched set. - * - * @category Attributes - * @example - * - * ```js - * const apple = $('.apple').data({ kind: 'mac' }); - * - * apple.data('kind'); - * //=> 'mac' - * ``` - * - * @param values - Map of names to values. - * @returns The instance itself. - * @see {@link https://api.jquery.com/data/} - */ -export declare function data(this: Cheerio, values: Record): Cheerio; -/** - * Method for getting the value of input, select, and textarea. Note: Support - * for `map`, and `function` has not been added yet. - * - * @category Attributes - * @example - * - * ```js - * $('input[type="text"]').val(); - * //=> input_text - * ``` - * - * @returns The value. - * @see {@link https://api.jquery.com/val/} - */ -export declare function val(this: Cheerio): string | undefined | string[]; -/** - * Method for setting the value of input, select, and textarea. Note: Support - * for `map`, and `function` has not been added yet. - * - * @category Attributes - * @example - * - * ```js - * $('input[type="text"]').val('test').html(); - * //=> - * ``` - * - * @param value - The new value. - * @returns The instance itself. - * @see {@link https://api.jquery.com/val/} - */ -export declare function val(this: Cheerio, value: string | string[]): Cheerio; -/** - * Method for removing attributes by `name`. - * - * @category Attributes - * @example - * - * ```js - * $('.pear').removeAttr('class').html(); - * //=>
  • Pear
  • - * - * $('.apple').attr('id', 'favorite'); - * $('.apple').removeAttr('id class').html(); - * //=>
  • Apple
  • - * ``` - * - * @param name - Name of the attribute. - * @returns The instance itself. - * @see {@link https://api.jquery.com/removeAttr/} - */ -export declare function removeAttr(this: Cheerio, name: string): Cheerio; -/** - * Check to see if *any* of the matched elements have the given `className`. - * - * @category Attributes - * @example - * - * ```js - * $('.pear').hasClass('pear'); - * //=> true - * - * $('apple').hasClass('fruit'); - * //=> false - * - * $('li').hasClass('pear'); - * //=> true - * ``` - * - * @param className - Name of the class. - * @returns Indicates if an element has the given `className`. - * @see {@link https://api.jquery.com/hasClass/} - */ -export declare function hasClass(this: Cheerio, className: string): boolean; -/** - * Adds class(es) to all of the matched elements. Also accepts a `function`. - * - * @category Attributes - * @example - * - * ```js - * $('.pear').addClass('fruit').html(); - * //=>
  • Pear
  • - * - * $('.apple').addClass('fruit red').html(); - * //=>
  • Apple
  • - * ``` - * - * @param value - Name of new class. - * @returns The instance itself. - * @see {@link https://api.jquery.com/addClass/} - */ -export declare function addClass>(this: R, value?: string | ((this: Element, i: number, className: string) => string | undefined)): R; -/** - * Removes one or more space-separated classes from the selected elements. If no - * `className` is defined, all classes will be removed. Also accepts a `function`. - * - * @category Attributes - * @example - * - * ```js - * $('.pear').removeClass('pear').html(); - * //=>
  • Pear
  • - * - * $('.apple').addClass('red').removeClass().html(); - * //=>
  • Apple
  • - * ``` - * - * @param name - Name of the class. If not specified, removes all elements. - * @returns The instance itself. - * @see {@link https://api.jquery.com/removeClass/} - */ -export declare function removeClass>(this: R, name?: string | ((this: Element, i: number, className: string) => string | undefined)): R; -/** - * Add or remove class(es) from the matched elements, depending on either the - * class's presence or the value of the switch argument. Also accepts a `function`. - * - * @category Attributes - * @example - * - * ```js - * $('.apple.green').toggleClass('fruit green red').html(); - * //=>
  • Apple
  • - * - * $('.apple.green').toggleClass('fruit green red', true).html(); - * //=>
  • Apple
  • - * ``` - * - * @param value - Name of the class. Can also be a function. - * @param stateVal - If specified the state of the class. - * @returns The instance itself. - * @see {@link https://api.jquery.com/toggleClass/} - */ -export declare function toggleClass>(this: R, value?: string | ((this: Element, i: number, className: string, stateVal?: boolean) => string), stateVal?: boolean): R; -export {}; -//# sourceMappingURL=attributes.d.ts.map \ No newline at end of file diff --git a/node_modules/cheerio/lib/api/attributes.d.ts.map b/node_modules/cheerio/lib/api/attributes.d.ts.map deleted file mode 100644 index c0b4fee..0000000 --- a/node_modules/cheerio/lib/api/attributes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../src/api/attributes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AA6F1C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,MAAM,GACX,MAAM,GAAG,SAAS,CAAC;AACtB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EACF,MAAM,GACN,IAAI,GACJ,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC,GAChE,OAAO,CAAC,CAAC,CAAC,CAAC;AACd;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,GACpC,OAAO,CAAC,CAAC,CAAC,CAAC;AAqFd,UAAU,SAAS;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC/B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,SAAS,GAAG,UAAU,GAC3B,CAAC,SAAS,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAC1C,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,WAAW,GAAG,WAAW,GAC9B,MAAM,GAAG,IAAI,CAAC;AACjB,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,OAAO,GACZ,SAAS,CAAC;AACb,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC,SAAS,MAAM,OAAO,EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,CAAC,GACN,OAAO,CAAC,CAAC,CAAC,CAAC;AACd,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC,SAAS,MAAM,OAAO,EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,CAAC,EACP,KAAK,EACD,OAAO,CAAC,CAAC,CAAC,GACV,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC,GAClE,OAAO,CAAC,CAAC,CAAC,CAAC;AACd,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,OAAO,CAAC,GAAG,OAAO,CAAC,GAC9D,OAAO,CAAC,CAAC,CAAC,CAAC;AACd,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EACD,MAAM,GACN,OAAO,GACP,IAAI,GACJ,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,OAAO,CAAC,GACjE,OAAO,CAAC,CAAC,CAAC,CAAC;AACd,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;AA8J7E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,MAAM,GACX,OAAO,GAAG,SAAS,CAAC;AACvB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAChF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,CAAC,CAAC,CAAC;AACd;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,IAAI,EACjC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,CAAC,CAAC,CAAC;AAkCd;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,IAAI,EAChC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GACf,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CAAC;AACjC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,IAAI,EAChC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GACvB,OAAO,CAAC,CAAC,CAAC,CAAC;AAoEd;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,IAAI,EACvC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAUZ;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,IAAI,EACrC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,SAAS,EAAE,MAAM,GAChB,OAAO,CAoBT;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,EAC7D,IAAI,EAAE,CAAC,EACP,KAAK,CAAC,EACF,MAAM,GACN,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,GACxE,CAAC,CAyCH;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,EAChE,IAAI,EAAE,CAAC,EACP,IAAI,CAAC,EACD,MAAM,GACN,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,GACxE,CAAC,CA0CH;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,EAChE,IAAI,EAAE,CAAC,EACP,KAAK,CAAC,EACF,MAAM,GACN,CAAC,CACC,IAAI,EAAE,OAAO,EACb,CAAC,EAAE,MAAM,EACT,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,OAAO,KACf,MAAM,CAAC,EAChB,QAAQ,CAAC,EAAE,OAAO,GACjB,CAAC,CA+CH"} \ No newline at end of file diff --git a/node_modules/cheerio/lib/api/attributes.js b/node_modules/cheerio/lib/api/attributes.js deleted file mode 100644 index d67d310..0000000 --- a/node_modules/cheerio/lib/api/attributes.js +++ /dev/null @@ -1,591 +0,0 @@ -"use strict"; -/** - * Methods for getting and modifying attributes. - * - * @module cheerio/attributes - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toggleClass = exports.removeClass = exports.addClass = exports.hasClass = exports.removeAttr = exports.val = exports.data = exports.prop = exports.attr = void 0; -var static_1 = require("../static"); -var utils_1 = require("../utils"); -var hasOwn = Object.prototype.hasOwnProperty; -var rspace = /\s+/; -var dataAttrPrefix = 'data-'; -/* - * Lookup table for coercing string data-* attributes to their corresponding - * JavaScript primitives - */ -var primitives = { - null: null, - true: true, - false: false, -}; -// Attributes that are booleans -var rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i; -// Matches strings that look like JSON objects or arrays -var rbrace = /^{[^]*}$|^\[[^]*]$/; -function getAttr(elem, name, xmlMode) { - var _a; - if (!elem || !utils_1.isTag(elem)) - return undefined; - (_a = elem.attribs) !== null && _a !== void 0 ? _a : (elem.attribs = {}); - // Return the entire attribs object if no attribute specified - if (!name) { - return elem.attribs; - } - if (hasOwn.call(elem.attribs, name)) { - // Get the (decoded) attribute - return !xmlMode && rboolean.test(name) ? name : elem.attribs[name]; - } - // Mimic the DOM and return text content as value for `option's` - if (elem.name === 'option' && name === 'value') { - return static_1.text(elem.children); - } - // Mimic DOM with default value for radios/checkboxes - if (elem.name === 'input' && - (elem.attribs.type === 'radio' || elem.attribs.type === 'checkbox') && - name === 'value') { - return 'on'; - } - return undefined; -} -/** - * Sets the value of an attribute. The attribute will be deleted if the value is `null`. - * - * @private - * @param el - The element to set the attribute on. - * @param name - The attribute's name. - * @param value - The attribute's value. - */ -function setAttr(el, name, value) { - if (value === null) { - removeAttribute(el, name); - } - else { - el.attribs[name] = "" + value; - } -} -function attr(name, value) { - // Set the value (with attr map support) - if (typeof name === 'object' || value !== undefined) { - if (typeof value === 'function') { - if (typeof name !== 'string') { - { - throw new Error('Bad combination of arguments.'); - } - } - return utils_1.domEach(this, function (el, i) { - if (utils_1.isTag(el)) - setAttr(el, name, value.call(el, i, el.attribs[name])); - }); - } - return utils_1.domEach(this, function (el) { - if (!utils_1.isTag(el)) - return; - if (typeof name === 'object') { - Object.keys(name).forEach(function (objName) { - var objValue = name[objName]; - setAttr(el, objName, objValue); - }); - } - else { - setAttr(el, name, value); - } - }); - } - return arguments.length > 1 - ? this - : getAttr(this[0], name, this.options.xmlMode); -} -exports.attr = attr; -/** - * Gets a node's prop. - * - * @private - * @category Attributes - * @param el - Elenent to get the prop of. - * @param name - Name of the prop. - * @returns The prop's value. - */ -function getProp(el, name, xmlMode) { - if (!el || !utils_1.isTag(el)) - return; - return name in el - ? // @ts-expect-error TS doesn't like us accessing the value directly here. - el[name] - : !xmlMode && rboolean.test(name) - ? getAttr(el, name, false) !== undefined - : getAttr(el, name, xmlMode); -} -/** - * Sets the value of a prop. - * - * @private - * @param el - The element to set the prop on. - * @param name - The prop's name. - * @param value - The prop's value. - */ -function setProp(el, name, value, xmlMode) { - if (name in el) { - // @ts-expect-error Overriding value - el[name] = value; - } - else { - setAttr(el, name, !xmlMode && rboolean.test(name) ? (value ? '' : null) : "" + value); - } -} -function prop(name, value) { - var _this = this; - if (typeof name === 'string' && value === undefined) { - switch (name) { - case 'style': { - var property_1 = this.css(); - var keys = Object.keys(property_1); - keys.forEach(function (p, i) { - property_1[i] = p; - }); - property_1.length = keys.length; - return property_1; - } - case 'tagName': - case 'nodeName': { - var el = this[0]; - return utils_1.isTag(el) ? el.name.toUpperCase() : undefined; - } - case 'outerHTML': - return this.clone().wrap('').parent().html(); - case 'innerHTML': - return this.html(); - default: - return getProp(this[0], name, this.options.xmlMode); - } - } - if (typeof name === 'object' || value !== undefined) { - if (typeof value === 'function') { - if (typeof name === 'object') { - throw new Error('Bad combination of arguments.'); - } - return utils_1.domEach(this, function (el, i) { - if (utils_1.isTag(el)) - setProp(el, name, value.call(el, i, getProp(el, name, _this.options.xmlMode)), _this.options.xmlMode); - }); - } - return utils_1.domEach(this, function (el) { - if (!utils_1.isTag(el)) - return; - if (typeof name === 'object') { - Object.keys(name).forEach(function (key) { - var val = name[key]; - setProp(el, key, val, _this.options.xmlMode); - }); - } - else { - setProp(el, name, value, _this.options.xmlMode); - } - }); - } - return undefined; -} -exports.prop = prop; -/** - * Sets the value of a data attribute. - * - * @private - * @param el - The element to set the data attribute on. - * @param name - The data attribute's name. - * @param value - The data attribute's value. - */ -function setData(el, name, value) { - var _a; - var elem = el; - (_a = elem.data) !== null && _a !== void 0 ? _a : (elem.data = {}); - if (typeof name === 'object') - Object.assign(elem.data, name); - else if (typeof name === 'string' && value !== undefined) { - elem.data[name] = value; - } -} -/** - * Read the specified attribute from the equivalent HTML5 `data-*` attribute, - * and (if present) cache the value in the node's internal data store. If no - * attribute name is specified, read *all* HTML5 `data-*` attributes in this manner. - * - * @private - * @category Attributes - * @param el - Elenent to get the data attribute of. - * @param name - Name of the data attribute. - * @returns The data attribute's value, or a map with all of the data attribute. - */ -function readData(el, name) { - var domNames; - var jsNames; - var value; - if (name == null) { - domNames = Object.keys(el.attribs).filter(function (attrName) { - return attrName.startsWith(dataAttrPrefix); - }); - jsNames = domNames.map(function (domName) { - return utils_1.camelCase(domName.slice(dataAttrPrefix.length)); - }); - } - else { - domNames = [dataAttrPrefix + utils_1.cssCase(name)]; - jsNames = [name]; - } - for (var idx = 0; idx < domNames.length; ++idx) { - var domName = domNames[idx]; - var jsName = jsNames[idx]; - if (hasOwn.call(el.attribs, domName) && - !hasOwn.call(el.data, jsName)) { - value = el.attribs[domName]; - if (hasOwn.call(primitives, value)) { - value = primitives[value]; - } - else if (value === String(Number(value))) { - value = Number(value); - } - else if (rbrace.test(value)) { - try { - value = JSON.parse(value); - } - catch (e) { - /* Ignore */ - } - } - el.data[jsName] = value; - } - } - return name == null ? el.data : value; -} -function data(name, value) { - var _a; - var elem = this[0]; - if (!elem || !utils_1.isTag(elem)) - return; - var dataEl = elem; - (_a = dataEl.data) !== null && _a !== void 0 ? _a : (dataEl.data = {}); - // Return the entire data object if no data specified - if (!name) { - return readData(dataEl); - } - // Set the value (with attr map support) - if (typeof name === 'object' || value !== undefined) { - utils_1.domEach(this, function (el) { - if (utils_1.isTag(el)) - if (typeof name === 'object') - setData(el, name); - else - setData(el, name, value); - }); - return this; - } - if (hasOwn.call(dataEl.data, name)) { - return dataEl.data[name]; - } - return readData(dataEl, name); -} -exports.data = data; -function val(value) { - var querying = arguments.length === 0; - var element = this[0]; - if (!element || !utils_1.isTag(element)) - return querying ? undefined : this; - switch (element.name) { - case 'textarea': - return this.text(value); - case 'select': { - var option = this.find('option:selected'); - if (!querying) { - if (this.attr('multiple') == null && typeof value === 'object') { - return this; - } - this.find('option').removeAttr('selected'); - var values = typeof value !== 'object' ? [value] : value; - for (var i = 0; i < values.length; i++) { - this.find("option[value=\"" + values[i] + "\"]").attr('selected', ''); - } - return this; - } - return this.attr('multiple') - ? option.toArray().map(function (el) { return static_1.text(el.children); }) - : option.attr('value'); - } - case 'input': - case 'option': - return querying - ? this.attr('value') - : this.attr('value', value); - } - return undefined; -} -exports.val = val; -/** - * Remove an attribute. - * - * @private - * @param elem - Node to remove attribute from. - * @param name - Name of the attribute to remove. - */ -function removeAttribute(elem, name) { - if (!elem.attribs || !hasOwn.call(elem.attribs, name)) - return; - delete elem.attribs[name]; -} -/** - * Splits a space-separated list of names to individual names. - * - * @category Attributes - * @param names - Names to split. - * @returns - Split names. - */ -function splitNames(names) { - return names ? names.trim().split(rspace) : []; -} -/** - * Method for removing attributes by `name`. - * - * @category Attributes - * @example - * - * ```js - * $('.pear').removeAttr('class').html(); - * //=>
  • Pear
  • - * - * $('.apple').attr('id', 'favorite'); - * $('.apple').removeAttr('id class').html(); - * //=>
  • Apple
  • - * ``` - * - * @param name - Name of the attribute. - * @returns The instance itself. - * @see {@link https://api.jquery.com/removeAttr/} - */ -function removeAttr(name) { - var attrNames = splitNames(name); - var _loop_1 = function (i) { - utils_1.domEach(this_1, function (elem) { - if (utils_1.isTag(elem)) - removeAttribute(elem, attrNames[i]); - }); - }; - var this_1 = this; - for (var i = 0; i < attrNames.length; i++) { - _loop_1(i); - } - return this; -} -exports.removeAttr = removeAttr; -/** - * Check to see if *any* of the matched elements have the given `className`. - * - * @category Attributes - * @example - * - * ```js - * $('.pear').hasClass('pear'); - * //=> true - * - * $('apple').hasClass('fruit'); - * //=> false - * - * $('li').hasClass('pear'); - * //=> true - * ``` - * - * @param className - Name of the class. - * @returns Indicates if an element has the given `className`. - * @see {@link https://api.jquery.com/hasClass/} - */ -function hasClass(className) { - return this.toArray().some(function (elem) { - var clazz = utils_1.isTag(elem) && elem.attribs.class; - var idx = -1; - if (clazz && className.length) { - while ((idx = clazz.indexOf(className, idx + 1)) > -1) { - var end = idx + className.length; - if ((idx === 0 || rspace.test(clazz[idx - 1])) && - (end === clazz.length || rspace.test(clazz[end]))) { - return true; - } - } - } - return false; - }); -} -exports.hasClass = hasClass; -/** - * Adds class(es) to all of the matched elements. Also accepts a `function`. - * - * @category Attributes - * @example - * - * ```js - * $('.pear').addClass('fruit').html(); - * //=>
  • Pear
  • - * - * $('.apple').addClass('fruit red').html(); - * //=>
  • Apple
  • - * ``` - * - * @param value - Name of new class. - * @returns The instance itself. - * @see {@link https://api.jquery.com/addClass/} - */ -function addClass(value) { - // Support functions - if (typeof value === 'function') { - return utils_1.domEach(this, function (el, i) { - if (utils_1.isTag(el)) { - var className = el.attribs.class || ''; - addClass.call([el], value.call(el, i, className)); - } - }); - } - // Return if no value or not a string or function - if (!value || typeof value !== 'string') - return this; - var classNames = value.split(rspace); - var numElements = this.length; - for (var i = 0; i < numElements; i++) { - var el = this[i]; - // If selected element isn't a tag, move on - if (!utils_1.isTag(el)) - continue; - // If we don't already have classes — always set xmlMode to false here, as it doesn't matter for classes - var className = getAttr(el, 'class', false); - if (!className) { - setAttr(el, 'class', classNames.join(' ').trim()); - } - else { - var setClass = " " + className + " "; - // Check if class already exists - for (var j = 0; j < classNames.length; j++) { - var appendClass = classNames[j] + " "; - if (!setClass.includes(" " + appendClass)) - setClass += appendClass; - } - setAttr(el, 'class', setClass.trim()); - } - } - return this; -} -exports.addClass = addClass; -/** - * Removes one or more space-separated classes from the selected elements. If no - * `className` is defined, all classes will be removed. Also accepts a `function`. - * - * @category Attributes - * @example - * - * ```js - * $('.pear').removeClass('pear').html(); - * //=>
  • Pear
  • - * - * $('.apple').addClass('red').removeClass().html(); - * //=>
  • Apple
  • - * ``` - * - * @param name - Name of the class. If not specified, removes all elements. - * @returns The instance itself. - * @see {@link https://api.jquery.com/removeClass/} - */ -function removeClass(name) { - // Handle if value is a function - if (typeof name === 'function') { - return utils_1.domEach(this, function (el, i) { - if (utils_1.isTag(el)) - removeClass.call([el], name.call(el, i, el.attribs.class || '')); - }); - } - var classes = splitNames(name); - var numClasses = classes.length; - var removeAll = arguments.length === 0; - return utils_1.domEach(this, function (el) { - if (!utils_1.isTag(el)) - return; - if (removeAll) { - // Short circuit the remove all case as this is the nice one - el.attribs.class = ''; - } - else { - var elClasses = splitNames(el.attribs.class); - var changed = false; - for (var j = 0; j < numClasses; j++) { - var index = elClasses.indexOf(classes[j]); - if (index >= 0) { - elClasses.splice(index, 1); - changed = true; - /* - * We have to do another pass to ensure that there are not duplicate - * classes listed - */ - j--; - } - } - if (changed) { - el.attribs.class = elClasses.join(' '); - } - } - }); -} -exports.removeClass = removeClass; -/** - * Add or remove class(es) from the matched elements, depending on either the - * class's presence or the value of the switch argument. Also accepts a `function`. - * - * @category Attributes - * @example - * - * ```js - * $('.apple.green').toggleClass('fruit green red').html(); - * //=>
  • Apple
  • - * - * $('.apple.green').toggleClass('fruit green red', true).html(); - * //=>
  • Apple
  • - * ``` - * - * @param value - Name of the class. Can also be a function. - * @param stateVal - If specified the state of the class. - * @returns The instance itself. - * @see {@link https://api.jquery.com/toggleClass/} - */ -function toggleClass(value, stateVal) { - // Support functions - if (typeof value === 'function') { - return utils_1.domEach(this, function (el, i) { - if (utils_1.isTag(el)) { - toggleClass.call([el], value.call(el, i, el.attribs.class || '', stateVal), stateVal); - } - }); - } - // Return if no value or not a string or function - if (!value || typeof value !== 'string') - return this; - var classNames = value.split(rspace); - var numClasses = classNames.length; - var state = typeof stateVal === 'boolean' ? (stateVal ? 1 : -1) : 0; - var numElements = this.length; - for (var i = 0; i < numElements; i++) { - var el = this[i]; - // If selected element isn't a tag, move on - if (!utils_1.isTag(el)) - continue; - var elementClasses = splitNames(el.attribs.class); - // Check if class already exists - for (var j = 0; j < numClasses; j++) { - // Check if the class name is currently defined - var index = elementClasses.indexOf(classNames[j]); - // Add if stateValue === true or we are toggling and there is no value - if (state >= 0 && index < 0) { - elementClasses.push(classNames[j]); - } - else if (state <= 0 && index >= 0) { - // Otherwise remove but only if the item exists - elementClasses.splice(index, 1); - } - } - el.attribs.class = elementClasses.join(' '); - } - return this; -} -exports.toggleClass = toggleClass; diff --git a/node_modules/cheerio/lib/api/css.d.ts b/node_modules/cheerio/lib/api/css.d.ts deleted file mode 100644 index f63d3b4..0000000 --- a/node_modules/cheerio/lib/api/css.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import type { Element, Node } from 'domhandler'; -import type { Cheerio } from '../cheerio'; -/** - * Get the value of a style property for the first element in the set of matched elements. - * - * @category CSS - * @param names - Optionally the names of the property of interest. - * @returns A map of all of the style properties. - * @see {@link https://api.jquery.com/css/} - */ -export declare function css(this: Cheerio, names?: string[]): Record; -/** - * Get the value of a style property for the first element in the set of matched elements. - * - * @category CSS - * @param names - The name of the property. - * @returns The property value for the given name. - * @see {@link https://api.jquery.com/css/} - */ -export declare function css(this: Cheerio, name: string): string | undefined; -/** - * Set one CSS property for every matched element. - * - * @category CSS - * @param prop - The name of the property. - * @param val - The new value. - * @returns The instance itself. - * @see {@link https://api.jquery.com/css/} - */ -export declare function css(this: Cheerio, prop: string, val: string | ((this: Element, i: number, style: string) => string | undefined)): Cheerio; -/** - * Set multiple CSS properties for every matched element. - * - * @category CSS - * @param prop - The name of the property. - * @param val - The new value. - * @returns The instance itself. - * @see {@link https://api.jquery.com/css/} - */ -export declare function css(this: Cheerio, prop: Record): Cheerio; -//# sourceMappingURL=css.d.ts.map \ No newline at end of file diff --git a/node_modules/cheerio/lib/api/css.d.ts.map b/node_modules/cheerio/lib/api/css.d.ts.map deleted file mode 100644 index 8d2e7d4..0000000 --- a/node_modules/cheerio/lib/api/css.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/api/css.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;;;;GAOG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,IAAI,EAChC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,KAAK,CAAC,EAAE,MAAM,EAAE,GACf,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1B;;;;;;;GAOG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,IAAI,EAChC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,MAAM,GACX,MAAM,GAAG,SAAS,CAAC;AACtB;;;;;;;;GAQG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,IAAI,EAChC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,MAAM,EACZ,GAAG,EACC,MAAM,GACN,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,GACpE,OAAO,CAAC,CAAC,CAAC,CAAC;AACd;;;;;;;;GAQG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,IAAI,EAChC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3B,OAAO,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/cheerio/lib/api/css.js b/node_modules/cheerio/lib/api/css.js deleted file mode 100644 index aa7ad09..0000000 --- a/node_modules/cheerio/lib/api/css.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.css = void 0; -var utils_1 = require("../utils"); -function css(prop, val) { - if ((prop != null && val != null) || - // When `prop` is a "plain" object - (typeof prop === 'object' && !Array.isArray(prop))) { - return utils_1.domEach(this, function (el, i) { - if (utils_1.isTag(el)) { - // `prop` can't be an array here anymore. - setCss(el, prop, val, i); - } - }); - } - return getCss(this[0], prop); -} -exports.css = css; -/** - * Set styles of all elements. - * - * @private - * @param el - Element to set style of. - * @param prop - Name of property. - * @param value - Value to set property to. - * @param idx - Optional index within the selection. - */ -function setCss(el, prop, value, idx) { - if (typeof prop === 'string') { - var styles = getCss(el); - var val = typeof value === 'function' ? value.call(el, idx, styles[prop]) : value; - if (val === '') { - delete styles[prop]; - } - else if (val != null) { - styles[prop] = val; - } - el.attribs.style = stringify(styles); - } - else if (typeof prop === 'object') { - Object.keys(prop).forEach(function (k, i) { - setCss(el, k, prop[k], i); - }); - } -} -function getCss(el, prop) { - if (!el || !utils_1.isTag(el)) - return; - var styles = parse(el.attribs.style); - if (typeof prop === 'string') { - return styles[prop]; - } - if (Array.isArray(prop)) { - var newStyles_1 = {}; - prop.forEach(function (item) { - if (styles[item] != null) { - newStyles_1[item] = styles[item]; - } - }); - return newStyles_1; - } - return styles; -} -/** - * Stringify `obj` to styles. - * - * @private - * @category CSS - * @param obj - Object to stringify. - * @returns The serialized styles. - */ -function stringify(obj) { - return Object.keys(obj).reduce(function (str, prop) { return "" + str + (str ? ' ' : '') + prop + ": " + obj[prop] + ";"; }, ''); -} -/** - * Parse `styles`. - * - * @private - * @category CSS - * @param styles - Styles to be parsed. - * @returns The parsed styles. - */ -function parse(styles) { - styles = (styles || '').trim(); - if (!styles) - return {}; - return styles.split(';').reduce(function (obj, str) { - var n = str.indexOf(':'); - // Skip if there is no :, or if it is the first/last character - if (n < 1 || n === str.length - 1) - return obj; - obj[str.slice(0, n).trim()] = str.slice(n + 1).trim(); - return obj; - }, {}); -} diff --git a/node_modules/cheerio/lib/api/forms.d.ts b/node_modules/cheerio/lib/api/forms.d.ts deleted file mode 100644 index 32f8739..0000000 --- a/node_modules/cheerio/lib/api/forms.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { Node } from 'domhandler'; -import type { Cheerio } from '../cheerio'; -/** - * Encode a set of form elements as a string for submission. - * - * @category Forms - * @returns The serialized form. - * @see {@link https://api.jquery.com/serialize/} - */ -export declare function serialize(this: Cheerio): string; -interface SerializedField { - name: string; - value: string; -} -/** - * Encode a set of form elements as an array of names and values. - * - * @category Forms - * @example - * - * ```js - * $('
    ').serializeArray(); - * //=> [ { name: 'foo', value: 'bar' } ] - * ``` - * - * @returns The serialized form. - * @see {@link https://api.jquery.com/serializeArray/} - */ -export declare function serializeArray(this: Cheerio): SerializedField[]; -export {}; -//# sourceMappingURL=forms.d.ts.map \ No newline at end of file diff --git a/node_modules/cheerio/lib/api/forms.d.ts.map b/node_modules/cheerio/lib/api/forms.d.ts.map deleted file mode 100644 index ee25744..0000000 --- a/node_modules/cheerio/lib/api/forms.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/api/forms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAW1C;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAYlE;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,IAAI,EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GACf,eAAe,EAAE,CAsCnB"} \ No newline at end of file diff --git a/node_modules/cheerio/lib/api/forms.js b/node_modules/cheerio/lib/api/forms.js deleted file mode 100644 index 2e881c5..0000000 --- a/node_modules/cheerio/lib/api/forms.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.serializeArray = exports.serialize = void 0; -var utils_1 = require("../utils"); -/* - * https://github.com/jquery/jquery/blob/2.1.3/src/manipulation/var/rcheckableType.js - * https://github.com/jquery/jquery/blob/2.1.3/src/serialize.js - */ -var submittableSelector = 'input,select,textarea,keygen'; -var r20 = /%20/g; -var rCRLF = /\r?\n/g; -/** - * Encode a set of form elements as a string for submission. - * - * @category Forms - * @returns The serialized form. - * @see {@link https://api.jquery.com/serialize/} - */ -function serialize() { - // Convert form elements into name/value objects - var arr = this.serializeArray(); - // Serialize each element into a key/value string - var retArr = arr.map(function (data) { - return encodeURIComponent(data.name) + "=" + encodeURIComponent(data.value); - }); - // Return the resulting serialization - return retArr.join('&').replace(r20, '+'); -} -exports.serialize = serialize; -/** - * Encode a set of form elements as an array of names and values. - * - * @category Forms - * @example - * - * ```js - * $('
    ').serializeArray(); - * //=> [ { name: 'foo', value: 'bar' } ] - * ``` - * - * @returns The serialized form. - * @see {@link https://api.jquery.com/serializeArray/} - */ -function serializeArray() { - var _this = this; - // Resolve all form elements from either forms or collections of form elements - return this.map(function (_, elem) { - var $elem = _this._make(elem); - if (utils_1.isTag(elem) && elem.name === 'form') { - return $elem.find(submittableSelector).toArray(); - } - return $elem.filter(submittableSelector).toArray(); - }) - .filter( - // Verify elements have a name (`attr.name`) and are not disabled (`:enabled`) - '[name!=""]:enabled' + - // And cannot be clicked (`[type=submit]`) or are used in `x-www-form-urlencoded` (`[type=file]`) - ':not(:submit, :button, :image, :reset, :file)' + - // And are either checked/don't have a checkable state - ':matches([checked], :not(:checkbox, :radio))' - // Convert each of the elements to its value(s) - ) - .map(function (_, elem) { - var _a; - var $elem = _this._make(elem); - var name = $elem.attr('name'); // We have filtered for elements with a name before. - // If there is no value set (e.g. `undefined`, `null`), then default value to empty - var value = (_a = $elem.val()) !== null && _a !== void 0 ? _a : ''; - // If we have an array of values (e.g. `
    - - Build Status - - - Coverage - - - OpenCollective backers - - - OpenCollective sponsors - -