rahad-media-downloader 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/nix/binary-cache-v6.sqlite +0 -0
- package/.cache/nix/binary-cache-v6.sqlite-journal +0 -0
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/modules/nodejs-20:v32-20240401-269b323.res +1 -0
- package/.cache/replit/modules/replit:v8-20240329-787bc7d.res +1 -0
- package/.cache/replit/modules.stamp +0 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.cache/typescript/5.0/node_modules/.package-lock.json +12 -0
- package/.cache/typescript/5.0/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.0/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.0/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.0/package-lock.json +17 -0
- package/.cache/typescript/5.0/package.json +1 -0
- package/.cache/typescript/5.3/node_modules/.package-lock.json +181 -0
- package/.cache/typescript/5.3/node_modules/@types/caseless/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/caseless/README.md +48 -0
- package/.cache/typescript/5.3/node_modules/@types/caseless/index.d.ts +29 -0
- package/.cache/typescript/5.3/node_modules/@types/caseless/package.json +35 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/index.d.ts +318 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/package.json +71 -0
- package/.cache/typescript/5.3/node_modules/@types/jsdom/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/jsdom/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/jsdom/base.d.ts +456 -0
- package/.cache/typescript/5.3/node_modules/@types/jsdom/index.d.ts +18 -0
- package/.cache/typescript/5.3/node_modules/@types/jsdom/package.json +45 -0
- package/.cache/typescript/5.3/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.3/node_modules/@types/node/assert.d.ts +996 -0
- package/.cache/typescript/5.3/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/buffer.d.ts +2362 -0
- package/.cache/typescript/5.3/node_modules/@types/node/child_process.d.ts +1540 -0
- package/.cache/typescript/5.3/node_modules/@types/node/cluster.d.ts +432 -0
- package/.cache/typescript/5.3/node_modules/@types/node/console.d.ts +415 -0
- package/.cache/typescript/5.3/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/@types/node/crypto.d.ts +4456 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dgram.d.ts +586 -0
- package/.cache/typescript/5.3/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dns.d.ts +809 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dom-events.d.ts +122 -0
- package/.cache/typescript/5.3/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.3/node_modules/@types/node/events.d.ts +879 -0
- package/.cache/typescript/5.3/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.3/node_modules/@types/node/fs.d.ts +4291 -0
- package/.cache/typescript/5.3/node_modules/@types/node/globals.d.ts +385 -0
- package/.cache/typescript/5.3/node_modules/@types/node/globals.global.d.ts +1 -0
- package/.cache/typescript/5.3/node_modules/@types/node/http.d.ts +1888 -0
- package/.cache/typescript/5.3/node_modules/@types/node/http2.d.ts +2382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/https.d.ts +550 -0
- package/.cache/typescript/5.3/node_modules/@types/node/index.d.ts +88 -0
- package/.cache/typescript/5.3/node_modules/@types/node/inspector.d.ts +2747 -0
- package/.cache/typescript/5.3/node_modules/@types/node/module.d.ts +301 -0
- package/.cache/typescript/5.3/node_modules/@types/node/net.d.ts +949 -0
- package/.cache/typescript/5.3/node_modules/@types/node/os.d.ts +478 -0
- package/.cache/typescript/5.3/node_modules/@types/node/package.json +230 -0
- package/.cache/typescript/5.3/node_modules/@types/node/path.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.3/node_modules/@types/node/process.d.ts +1539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.3/node_modules/@types/node/querystring.d.ts +141 -0
- package/.cache/typescript/5.3/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.3/node_modules/@types/node/readline.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream/web.d.ts +350 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream.d.ts +1701 -0
- package/.cache/typescript/5.3/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.3/node_modules/@types/node/test.d.ts +1382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.3/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.3/node_modules/@types/node/tls.d.ts +1210 -0
- package/.cache/typescript/5.3/node_modules/@types/node/trace_events.d.ts +182 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/crypto.d.ts +4455 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/fs.d.ts +4291 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/globals.d.ts +385 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/http.d.ts +1888 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/module.d.ts +301 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/process.d.ts +1539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/web.d.ts +350 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/test.d.ts +1382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/.cache/typescript/5.3/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.3/node_modules/@types/node/url.d.ts +927 -0
- package/.cache/typescript/5.3/node_modules/@types/node/util.d.ts +2183 -0
- package/.cache/typescript/5.3/node_modules/@types/node/v8.d.ts +635 -0
- package/.cache/typescript/5.3/node_modules/@types/node/vm.d.ts +903 -0
- package/.cache/typescript/5.3/node_modules/@types/node/wasi.d.ts +158 -0
- package/.cache/typescript/5.3/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.3/node_modules/@types/node/zlib.d.ts +517 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/externals.d.ts +32 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/index.d.ts +214 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/package.json +83 -0
- package/.cache/typescript/5.3/node_modules/@types/request/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/request/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/request/index.d.ts +395 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/License +19 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/README.md +350 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/README.md.bak +350 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/index.d.ts +51 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/lib/browser.js +2 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/lib/form_data.js +483 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/lib/populate.js +10 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/package.json +68 -0
- package/.cache/typescript/5.3/node_modules/@types/request/package.json +70 -0
- package/.cache/typescript/5.3/node_modules/@types/tough-cookie/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/tough-cookie/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/tough-cookie/index.d.ts +321 -0
- package/.cache/typescript/5.3/node_modules/@types/tough-cookie/package.json +35 -0
- package/.cache/typescript/5.3/node_modules/asynckit/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/asynckit/README.md +233 -0
- package/.cache/typescript/5.3/node_modules/asynckit/bench.js +76 -0
- package/.cache/typescript/5.3/node_modules/asynckit/index.js +6 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/abort.js +29 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/async.js +34 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/defer.js +26 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/iterate.js +75 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/state.js +37 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/streamify.js +141 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/terminator.js +29 -0
- package/.cache/typescript/5.3/node_modules/asynckit/package.json +63 -0
- package/.cache/typescript/5.3/node_modules/asynckit/parallel.js +43 -0
- package/.cache/typescript/5.3/node_modules/asynckit/serial.js +17 -0
- package/.cache/typescript/5.3/node_modules/asynckit/serialOrdered.js +75 -0
- package/.cache/typescript/5.3/node_modules/asynckit/stream.js +21 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/License +19 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/Readme.md +138 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/package.json +25 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/yarn.lock +17 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/License +19 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/Makefile +7 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/Readme.md +141 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/package.json +27 -0
- package/.cache/typescript/5.3/node_modules/entities/LICENSE +11 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode.d.ts +211 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode.js +536 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/encode.d.ts +22 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/encode.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/encode.js +77 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/encode.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/escape.d.ts +43 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/escape.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/escape.js +122 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/escape.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode.js +496 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/encode.js +69 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/escape.js +116 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/index.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/index.js +99 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/index.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/package.json +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/encode-html.js +12 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/index.d.ts +96 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/index.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/index.js +126 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/index.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/package.json +90 -0
- package/.cache/typescript/5.3/node_modules/entities/readme.md +122 -0
- package/.cache/typescript/5.3/node_modules/form-data/License +19 -0
- package/.cache/typescript/5.3/node_modules/form-data/README.md.bak +358 -0
- package/.cache/typescript/5.3/node_modules/form-data/Readme.md +358 -0
- package/.cache/typescript/5.3/node_modules/form-data/index.d.ts +62 -0
- package/.cache/typescript/5.3/node_modules/form-data/lib/browser.js +2 -0
- package/.cache/typescript/5.3/node_modules/form-data/lib/form_data.js +501 -0
- package/.cache/typescript/5.3/node_modules/form-data/lib/populate.js +10 -0
- package/.cache/typescript/5.3/node_modules/form-data/package.json +68 -0
- package/.cache/typescript/5.3/node_modules/mime-db/HISTORY.md +507 -0
- package/.cache/typescript/5.3/node_modules/mime-db/LICENSE +23 -0
- package/.cache/typescript/5.3/node_modules/mime-db/README.md +100 -0
- package/.cache/typescript/5.3/node_modules/mime-db/db.json +8519 -0
- package/.cache/typescript/5.3/node_modules/mime-db/index.js +12 -0
- package/.cache/typescript/5.3/node_modules/mime-db/package.json +60 -0
- package/.cache/typescript/5.3/node_modules/mime-types/HISTORY.md +397 -0
- package/.cache/typescript/5.3/node_modules/mime-types/LICENSE +23 -0
- package/.cache/typescript/5.3/node_modules/mime-types/README.md +113 -0
- package/.cache/typescript/5.3/node_modules/mime-types/index.js +188 -0
- package/.cache/typescript/5.3/node_modules/mime-types/package.json +44 -0
- package/.cache/typescript/5.3/node_modules/parse5/LICENSE +19 -0
- package/.cache/typescript/5.3/node_modules/parse5/README.md +38 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/doctype.js +120 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/error-codes.js +67 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/foreign-content.js +239 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/html.d.ts +288 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/html.js +529 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/token.d.ts +85 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/token.js +25 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/unicode.js +77 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/index.d.ts +60 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/index.js +57 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/package.json +1 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +115 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/index.d.ts +157 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/index.js +3163 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/open-element-stack.js +316 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/serializer/index.js +173 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tokenizer/index.js +2908 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +199 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tree-adapters/default.js +177 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tree-adapters/interface.js +3 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/doctype.js +115 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/error-codes.js +64 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/foreign-content.js +230 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/html.d.ts +288 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/html.js +523 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/token.d.ts +85 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/token.js +21 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/unicode.js +69 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/index.d.ts +60 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/index.js +45 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/formatting-element-list.js +111 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/index.d.ts +157 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/index.js +3168 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/open-element-stack.js +312 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/serializer/index.js +168 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tokenizer/index.js +2904 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tokenizer/preprocessor.js +195 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tree-adapters/default.js +174 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tree-adapters/interface.js +2 -0
- package/.cache/typescript/5.3/node_modules/parse5/package.json +50 -0
- package/.cache/typescript/5.3/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.3/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.3/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.3/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.3/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.3/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.3/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/.cache/typescript/5.3/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.3/node_modules/undici-types/client.d.ts +97 -0
- package/.cache/typescript/5.3/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.3/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.3/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.3/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/.cache/typescript/5.3/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/.cache/typescript/5.3/node_modules/undici-types/errors.d.ts +128 -0
- package/.cache/typescript/5.3/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.3/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.3/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.3/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.3/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.3/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.3/node_modules/undici-types/handlers.d.ts +9 -0
- package/.cache/typescript/5.3/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.3/node_modules/undici-types/index.d.ts +63 -0
- package/.cache/typescript/5.3/node_modules/undici-types/interceptors.d.ts +5 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.3/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.3/node_modules/undici-types/patch.d.ts +71 -0
- package/.cache/typescript/5.3/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/undici-types/pool.d.ts +28 -0
- package/.cache/typescript/5.3/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/.cache/typescript/5.3/node_modules/undici-types/readable.d.ts +61 -0
- package/.cache/typescript/5.3/node_modules/undici-types/webidl.d.ts +220 -0
- package/.cache/typescript/5.3/node_modules/undici-types/websocket.d.ts +131 -0
- package/.cache/typescript/5.3/package-lock.json +192 -0
- package/.cache/typescript/5.3/package.json +1 -0
- package/.replit +17 -0
- package/README.md +130 -0
- package/index.js +1 -0
- package/package.json +28 -0
- package/replit.nix +3 -0
@@ -0,0 +1,188 @@
|
|
1
|
+
/*!
|
2
|
+
* mime-types
|
3
|
+
* Copyright(c) 2014 Jonathan Ong
|
4
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
5
|
+
* MIT Licensed
|
6
|
+
*/
|
7
|
+
|
8
|
+
'use strict'
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Module dependencies.
|
12
|
+
* @private
|
13
|
+
*/
|
14
|
+
|
15
|
+
var db = require('mime-db')
|
16
|
+
var extname = require('path').extname
|
17
|
+
|
18
|
+
/**
|
19
|
+
* Module variables.
|
20
|
+
* @private
|
21
|
+
*/
|
22
|
+
|
23
|
+
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/
|
24
|
+
var TEXT_TYPE_REGEXP = /^text\//i
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Module exports.
|
28
|
+
* @public
|
29
|
+
*/
|
30
|
+
|
31
|
+
exports.charset = charset
|
32
|
+
exports.charsets = { lookup: charset }
|
33
|
+
exports.contentType = contentType
|
34
|
+
exports.extension = extension
|
35
|
+
exports.extensions = Object.create(null)
|
36
|
+
exports.lookup = lookup
|
37
|
+
exports.types = Object.create(null)
|
38
|
+
|
39
|
+
// Populate the extensions/types maps
|
40
|
+
populateMaps(exports.extensions, exports.types)
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Get the default charset for a MIME type.
|
44
|
+
*
|
45
|
+
* @param {string} type
|
46
|
+
* @return {boolean|string}
|
47
|
+
*/
|
48
|
+
|
49
|
+
function charset (type) {
|
50
|
+
if (!type || typeof type !== 'string') {
|
51
|
+
return false
|
52
|
+
}
|
53
|
+
|
54
|
+
// TODO: use media-typer
|
55
|
+
var match = EXTRACT_TYPE_REGEXP.exec(type)
|
56
|
+
var mime = match && db[match[1].toLowerCase()]
|
57
|
+
|
58
|
+
if (mime && mime.charset) {
|
59
|
+
return mime.charset
|
60
|
+
}
|
61
|
+
|
62
|
+
// default text/* to utf-8
|
63
|
+
if (match && TEXT_TYPE_REGEXP.test(match[1])) {
|
64
|
+
return 'UTF-8'
|
65
|
+
}
|
66
|
+
|
67
|
+
return false
|
68
|
+
}
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Create a full Content-Type header given a MIME type or extension.
|
72
|
+
*
|
73
|
+
* @param {string} str
|
74
|
+
* @return {boolean|string}
|
75
|
+
*/
|
76
|
+
|
77
|
+
function contentType (str) {
|
78
|
+
// TODO: should this even be in this module?
|
79
|
+
if (!str || typeof str !== 'string') {
|
80
|
+
return false
|
81
|
+
}
|
82
|
+
|
83
|
+
var mime = str.indexOf('/') === -1
|
84
|
+
? exports.lookup(str)
|
85
|
+
: str
|
86
|
+
|
87
|
+
if (!mime) {
|
88
|
+
return false
|
89
|
+
}
|
90
|
+
|
91
|
+
// TODO: use content-type or other module
|
92
|
+
if (mime.indexOf('charset') === -1) {
|
93
|
+
var charset = exports.charset(mime)
|
94
|
+
if (charset) mime += '; charset=' + charset.toLowerCase()
|
95
|
+
}
|
96
|
+
|
97
|
+
return mime
|
98
|
+
}
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Get the default extension for a MIME type.
|
102
|
+
*
|
103
|
+
* @param {string} type
|
104
|
+
* @return {boolean|string}
|
105
|
+
*/
|
106
|
+
|
107
|
+
function extension (type) {
|
108
|
+
if (!type || typeof type !== 'string') {
|
109
|
+
return false
|
110
|
+
}
|
111
|
+
|
112
|
+
// TODO: use media-typer
|
113
|
+
var match = EXTRACT_TYPE_REGEXP.exec(type)
|
114
|
+
|
115
|
+
// get extensions
|
116
|
+
var exts = match && exports.extensions[match[1].toLowerCase()]
|
117
|
+
|
118
|
+
if (!exts || !exts.length) {
|
119
|
+
return false
|
120
|
+
}
|
121
|
+
|
122
|
+
return exts[0]
|
123
|
+
}
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Lookup the MIME type for a file path/extension.
|
127
|
+
*
|
128
|
+
* @param {string} path
|
129
|
+
* @return {boolean|string}
|
130
|
+
*/
|
131
|
+
|
132
|
+
function lookup (path) {
|
133
|
+
if (!path || typeof path !== 'string') {
|
134
|
+
return false
|
135
|
+
}
|
136
|
+
|
137
|
+
// get the extension ("ext" or ".ext" or full path)
|
138
|
+
var extension = extname('x.' + path)
|
139
|
+
.toLowerCase()
|
140
|
+
.substr(1)
|
141
|
+
|
142
|
+
if (!extension) {
|
143
|
+
return false
|
144
|
+
}
|
145
|
+
|
146
|
+
return exports.types[extension] || false
|
147
|
+
}
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Populate the extensions and types maps.
|
151
|
+
* @private
|
152
|
+
*/
|
153
|
+
|
154
|
+
function populateMaps (extensions, types) {
|
155
|
+
// source preference (least -> most)
|
156
|
+
var preference = ['nginx', 'apache', undefined, 'iana']
|
157
|
+
|
158
|
+
Object.keys(db).forEach(function forEachMimeType (type) {
|
159
|
+
var mime = db[type]
|
160
|
+
var exts = mime.extensions
|
161
|
+
|
162
|
+
if (!exts || !exts.length) {
|
163
|
+
return
|
164
|
+
}
|
165
|
+
|
166
|
+
// mime -> extensions
|
167
|
+
extensions[type] = exts
|
168
|
+
|
169
|
+
// extension -> mime
|
170
|
+
for (var i = 0; i < exts.length; i++) {
|
171
|
+
var extension = exts[i]
|
172
|
+
|
173
|
+
if (types[extension]) {
|
174
|
+
var from = preference.indexOf(db[types[extension]].source)
|
175
|
+
var to = preference.indexOf(mime.source)
|
176
|
+
|
177
|
+
if (types[extension] !== 'application/octet-stream' &&
|
178
|
+
(from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) {
|
179
|
+
// skip the remapping
|
180
|
+
continue
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
// set the extension -> mime
|
185
|
+
types[extension] = type
|
186
|
+
}
|
187
|
+
})
|
188
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
{
|
2
|
+
"name": "mime-types",
|
3
|
+
"description": "The ultimate javascript content-type utility.",
|
4
|
+
"version": "2.1.35",
|
5
|
+
"contributors": [
|
6
|
+
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
7
|
+
"Jeremiah Senkpiel <fishrock123@rocketmail.com> (https://searchbeam.jit.su)",
|
8
|
+
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
|
9
|
+
],
|
10
|
+
"license": "MIT",
|
11
|
+
"keywords": [
|
12
|
+
"mime",
|
13
|
+
"types"
|
14
|
+
],
|
15
|
+
"repository": "jshttp/mime-types",
|
16
|
+
"dependencies": {
|
17
|
+
"mime-db": "1.52.0"
|
18
|
+
},
|
19
|
+
"devDependencies": {
|
20
|
+
"eslint": "7.32.0",
|
21
|
+
"eslint-config-standard": "14.1.1",
|
22
|
+
"eslint-plugin-import": "2.25.4",
|
23
|
+
"eslint-plugin-markdown": "2.2.1",
|
24
|
+
"eslint-plugin-node": "11.1.0",
|
25
|
+
"eslint-plugin-promise": "5.2.0",
|
26
|
+
"eslint-plugin-standard": "4.1.0",
|
27
|
+
"mocha": "9.2.2",
|
28
|
+
"nyc": "15.1.0"
|
29
|
+
},
|
30
|
+
"files": [
|
31
|
+
"HISTORY.md",
|
32
|
+
"LICENSE",
|
33
|
+
"index.js"
|
34
|
+
],
|
35
|
+
"engines": {
|
36
|
+
"node": ">= 0.6"
|
37
|
+
},
|
38
|
+
"scripts": {
|
39
|
+
"lint": "eslint .",
|
40
|
+
"test": "mocha --reporter spec test/test.js",
|
41
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
42
|
+
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<p align="center">
|
2
|
+
<a href="https://github.com/inikulin/parse5">
|
3
|
+
<img src="https://raw.github.com/inikulin/parse5/master/media/logo.png" alt="parse5" />
|
4
|
+
</a>
|
5
|
+
</p>
|
6
|
+
|
7
|
+
<div align="center">
|
8
|
+
<h1>parse5</h1>
|
9
|
+
<i><b>HTML parser and serializer.</b></i>
|
10
|
+
</div>
|
11
|
+
<br>
|
12
|
+
|
13
|
+
<div align="center">
|
14
|
+
<code>npm install --save parse5</code>
|
15
|
+
</div>
|
16
|
+
<br>
|
17
|
+
|
18
|
+
<p align="center">
|
19
|
+
📖 <a href="https://parse5.js.org/modules/parse5.html"><b>Documentation</b></a> 📖
|
20
|
+
</p>
|
21
|
+
|
22
|
+
---
|
23
|
+
|
24
|
+
<p align="center">
|
25
|
+
<a href="https://github.com/inikulin/parse5/tree/master/docs/list-of-packages.md">List of parse5 toolset packages</a>
|
26
|
+
</p>
|
27
|
+
|
28
|
+
<p align="center">
|
29
|
+
<a href="https://github.com/inikulin/parse5">GitHub</a>
|
30
|
+
</p>
|
31
|
+
|
32
|
+
<p align="center">
|
33
|
+
<a href="http://astexplorer.net/#/1CHlCXc4n4">Online playground</a>
|
34
|
+
</p>
|
35
|
+
|
36
|
+
<p align="center">
|
37
|
+
<a href="https://github.com/inikulin/parse5/releases">Changelog</a>
|
38
|
+
</p>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { DOCUMENT_MODE } from './html.js';
|
2
|
+
import type { DoctypeToken } from './token.js';
|
3
|
+
export declare function isConforming(token: DoctypeToken): boolean;
|
4
|
+
export declare function getDocumentMode(token: DoctypeToken): DOCUMENT_MODE;
|
5
|
+
//# sourceMappingURL=doctype.d.ts.map
|
@@ -0,0 +1,120 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getDocumentMode = exports.isConforming = void 0;
|
4
|
+
const html_js_1 = require("./html.js");
|
5
|
+
//Const
|
6
|
+
const VALID_DOCTYPE_NAME = 'html';
|
7
|
+
const VALID_SYSTEM_ID = 'about:legacy-compat';
|
8
|
+
const QUIRKS_MODE_SYSTEM_ID = 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd';
|
9
|
+
const QUIRKS_MODE_PUBLIC_ID_PREFIXES = [
|
10
|
+
'+//silmaril//dtd html pro v0r11 19970101//',
|
11
|
+
'-//as//dtd html 3.0 aswedit + extensions//',
|
12
|
+
'-//advasoft ltd//dtd html 3.0 aswedit + extensions//',
|
13
|
+
'-//ietf//dtd html 2.0 level 1//',
|
14
|
+
'-//ietf//dtd html 2.0 level 2//',
|
15
|
+
'-//ietf//dtd html 2.0 strict level 1//',
|
16
|
+
'-//ietf//dtd html 2.0 strict level 2//',
|
17
|
+
'-//ietf//dtd html 2.0 strict//',
|
18
|
+
'-//ietf//dtd html 2.0//',
|
19
|
+
'-//ietf//dtd html 2.1e//',
|
20
|
+
'-//ietf//dtd html 3.0//',
|
21
|
+
'-//ietf//dtd html 3.2 final//',
|
22
|
+
'-//ietf//dtd html 3.2//',
|
23
|
+
'-//ietf//dtd html 3//',
|
24
|
+
'-//ietf//dtd html level 0//',
|
25
|
+
'-//ietf//dtd html level 1//',
|
26
|
+
'-//ietf//dtd html level 2//',
|
27
|
+
'-//ietf//dtd html level 3//',
|
28
|
+
'-//ietf//dtd html strict level 0//',
|
29
|
+
'-//ietf//dtd html strict level 1//',
|
30
|
+
'-//ietf//dtd html strict level 2//',
|
31
|
+
'-//ietf//dtd html strict level 3//',
|
32
|
+
'-//ietf//dtd html strict//',
|
33
|
+
'-//ietf//dtd html//',
|
34
|
+
'-//metrius//dtd metrius presentational//',
|
35
|
+
'-//microsoft//dtd internet explorer 2.0 html strict//',
|
36
|
+
'-//microsoft//dtd internet explorer 2.0 html//',
|
37
|
+
'-//microsoft//dtd internet explorer 2.0 tables//',
|
38
|
+
'-//microsoft//dtd internet explorer 3.0 html strict//',
|
39
|
+
'-//microsoft//dtd internet explorer 3.0 html//',
|
40
|
+
'-//microsoft//dtd internet explorer 3.0 tables//',
|
41
|
+
'-//netscape comm. corp.//dtd html//',
|
42
|
+
'-//netscape comm. corp.//dtd strict html//',
|
43
|
+
"-//o'reilly and associates//dtd html 2.0//",
|
44
|
+
"-//o'reilly and associates//dtd html extended 1.0//",
|
45
|
+
"-//o'reilly and associates//dtd html extended relaxed 1.0//",
|
46
|
+
'-//sq//dtd html 2.0 hotmetal + extensions//',
|
47
|
+
'-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//',
|
48
|
+
'-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//',
|
49
|
+
'-//spyglass//dtd html 2.0 extended//',
|
50
|
+
'-//sun microsystems corp.//dtd hotjava html//',
|
51
|
+
'-//sun microsystems corp.//dtd hotjava strict html//',
|
52
|
+
'-//w3c//dtd html 3 1995-03-24//',
|
53
|
+
'-//w3c//dtd html 3.2 draft//',
|
54
|
+
'-//w3c//dtd html 3.2 final//',
|
55
|
+
'-//w3c//dtd html 3.2//',
|
56
|
+
'-//w3c//dtd html 3.2s draft//',
|
57
|
+
'-//w3c//dtd html 4.0 frameset//',
|
58
|
+
'-//w3c//dtd html 4.0 transitional//',
|
59
|
+
'-//w3c//dtd html experimental 19960712//',
|
60
|
+
'-//w3c//dtd html experimental 970421//',
|
61
|
+
'-//w3c//dtd w3 html//',
|
62
|
+
'-//w3o//dtd w3 html 3.0//',
|
63
|
+
'-//webtechs//dtd mozilla html 2.0//',
|
64
|
+
'-//webtechs//dtd mozilla html//',
|
65
|
+
];
|
66
|
+
const QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES = [
|
67
|
+
...QUIRKS_MODE_PUBLIC_ID_PREFIXES,
|
68
|
+
'-//w3c//dtd html 4.01 frameset//',
|
69
|
+
'-//w3c//dtd html 4.01 transitional//',
|
70
|
+
];
|
71
|
+
const QUIRKS_MODE_PUBLIC_IDS = new Set([
|
72
|
+
'-//w3o//dtd w3 html strict 3.0//en//',
|
73
|
+
'-/w3c/dtd html 4.0 transitional/en',
|
74
|
+
'html',
|
75
|
+
]);
|
76
|
+
const LIMITED_QUIRKS_PUBLIC_ID_PREFIXES = ['-//w3c//dtd xhtml 1.0 frameset//', '-//w3c//dtd xhtml 1.0 transitional//'];
|
77
|
+
const LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES = [
|
78
|
+
...LIMITED_QUIRKS_PUBLIC_ID_PREFIXES,
|
79
|
+
'-//w3c//dtd html 4.01 frameset//',
|
80
|
+
'-//w3c//dtd html 4.01 transitional//',
|
81
|
+
];
|
82
|
+
//Utils
|
83
|
+
function hasPrefix(publicId, prefixes) {
|
84
|
+
return prefixes.some((prefix) => publicId.startsWith(prefix));
|
85
|
+
}
|
86
|
+
//API
|
87
|
+
function isConforming(token) {
|
88
|
+
return (token.name === VALID_DOCTYPE_NAME &&
|
89
|
+
token.publicId === null &&
|
90
|
+
(token.systemId === null || token.systemId === VALID_SYSTEM_ID));
|
91
|
+
}
|
92
|
+
exports.isConforming = isConforming;
|
93
|
+
function getDocumentMode(token) {
|
94
|
+
if (token.name !== VALID_DOCTYPE_NAME) {
|
95
|
+
return html_js_1.DOCUMENT_MODE.QUIRKS;
|
96
|
+
}
|
97
|
+
const { systemId } = token;
|
98
|
+
if (systemId && systemId.toLowerCase() === QUIRKS_MODE_SYSTEM_ID) {
|
99
|
+
return html_js_1.DOCUMENT_MODE.QUIRKS;
|
100
|
+
}
|
101
|
+
let { publicId } = token;
|
102
|
+
if (publicId !== null) {
|
103
|
+
publicId = publicId.toLowerCase();
|
104
|
+
if (QUIRKS_MODE_PUBLIC_IDS.has(publicId)) {
|
105
|
+
return html_js_1.DOCUMENT_MODE.QUIRKS;
|
106
|
+
}
|
107
|
+
let prefixes = systemId === null ? QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES : QUIRKS_MODE_PUBLIC_ID_PREFIXES;
|
108
|
+
if (hasPrefix(publicId, prefixes)) {
|
109
|
+
return html_js_1.DOCUMENT_MODE.QUIRKS;
|
110
|
+
}
|
111
|
+
prefixes =
|
112
|
+
systemId === null ? LIMITED_QUIRKS_PUBLIC_ID_PREFIXES : LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES;
|
113
|
+
if (hasPrefix(publicId, prefixes)) {
|
114
|
+
return html_js_1.DOCUMENT_MODE.LIMITED_QUIRKS;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
return html_js_1.DOCUMENT_MODE.NO_QUIRKS;
|
118
|
+
}
|
119
|
+
exports.getDocumentMode = getDocumentMode;
|
120
|
+
//# sourceMappingURL=doctype.js.map
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import type { Location } from './token.js';
|
2
|
+
export interface ParserError extends Location {
|
3
|
+
code: ERR;
|
4
|
+
}
|
5
|
+
export type ParserErrorHandler = (error: ParserError) => void;
|
6
|
+
export declare enum ERR {
|
7
|
+
controlCharacterInInputStream = "control-character-in-input-stream",
|
8
|
+
noncharacterInInputStream = "noncharacter-in-input-stream",
|
9
|
+
surrogateInInputStream = "surrogate-in-input-stream",
|
10
|
+
nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus",
|
11
|
+
endTagWithAttributes = "end-tag-with-attributes",
|
12
|
+
endTagWithTrailingSolidus = "end-tag-with-trailing-solidus",
|
13
|
+
unexpectedSolidusInTag = "unexpected-solidus-in-tag",
|
14
|
+
unexpectedNullCharacter = "unexpected-null-character",
|
15
|
+
unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name",
|
16
|
+
invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name",
|
17
|
+
unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name",
|
18
|
+
missingEndTagName = "missing-end-tag-name",
|
19
|
+
unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name",
|
20
|
+
unknownNamedCharacterReference = "unknown-named-character-reference",
|
21
|
+
missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference",
|
22
|
+
unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier",
|
23
|
+
unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value",
|
24
|
+
eofBeforeTagName = "eof-before-tag-name",
|
25
|
+
eofInTag = "eof-in-tag",
|
26
|
+
missingAttributeValue = "missing-attribute-value",
|
27
|
+
missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes",
|
28
|
+
missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword",
|
29
|
+
missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers",
|
30
|
+
missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword",
|
31
|
+
missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier",
|
32
|
+
missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier",
|
33
|
+
missingDoctypePublicIdentifier = "missing-doctype-public-identifier",
|
34
|
+
missingDoctypeSystemIdentifier = "missing-doctype-system-identifier",
|
35
|
+
abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier",
|
36
|
+
abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier",
|
37
|
+
cdataInHtmlContent = "cdata-in-html-content",
|
38
|
+
incorrectlyOpenedComment = "incorrectly-opened-comment",
|
39
|
+
eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text",
|
40
|
+
eofInDoctype = "eof-in-doctype",
|
41
|
+
nestedComment = "nested-comment",
|
42
|
+
abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment",
|
43
|
+
eofInComment = "eof-in-comment",
|
44
|
+
incorrectlyClosedComment = "incorrectly-closed-comment",
|
45
|
+
eofInCdata = "eof-in-cdata",
|
46
|
+
absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference",
|
47
|
+
nullCharacterReference = "null-character-reference",
|
48
|
+
surrogateCharacterReference = "surrogate-character-reference",
|
49
|
+
characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range",
|
50
|
+
controlCharacterReference = "control-character-reference",
|
51
|
+
noncharacterCharacterReference = "noncharacter-character-reference",
|
52
|
+
missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name",
|
53
|
+
missingDoctypeName = "missing-doctype-name",
|
54
|
+
invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name",
|
55
|
+
duplicateAttribute = "duplicate-attribute",
|
56
|
+
nonConformingDoctype = "non-conforming-doctype",
|
57
|
+
missingDoctype = "missing-doctype",
|
58
|
+
misplacedDoctype = "misplaced-doctype",
|
59
|
+
endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element",
|
60
|
+
closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements",
|
61
|
+
disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head",
|
62
|
+
openElementsLeftAfterEof = "open-elements-left-after-eof",
|
63
|
+
abandonedHeadElementChild = "abandoned-head-element-child",
|
64
|
+
misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element",
|
65
|
+
nestedNoscriptInHead = "nested-noscript-in-head",
|
66
|
+
eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text"
|
67
|
+
}
|
68
|
+
//# sourceMappingURL=error-codes.d.ts.map
|
@@ -0,0 +1,67 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ERR = void 0;
|
4
|
+
var ERR;
|
5
|
+
(function (ERR) {
|
6
|
+
ERR["controlCharacterInInputStream"] = "control-character-in-input-stream";
|
7
|
+
ERR["noncharacterInInputStream"] = "noncharacter-in-input-stream";
|
8
|
+
ERR["surrogateInInputStream"] = "surrogate-in-input-stream";
|
9
|
+
ERR["nonVoidHtmlElementStartTagWithTrailingSolidus"] = "non-void-html-element-start-tag-with-trailing-solidus";
|
10
|
+
ERR["endTagWithAttributes"] = "end-tag-with-attributes";
|
11
|
+
ERR["endTagWithTrailingSolidus"] = "end-tag-with-trailing-solidus";
|
12
|
+
ERR["unexpectedSolidusInTag"] = "unexpected-solidus-in-tag";
|
13
|
+
ERR["unexpectedNullCharacter"] = "unexpected-null-character";
|
14
|
+
ERR["unexpectedQuestionMarkInsteadOfTagName"] = "unexpected-question-mark-instead-of-tag-name";
|
15
|
+
ERR["invalidFirstCharacterOfTagName"] = "invalid-first-character-of-tag-name";
|
16
|
+
ERR["unexpectedEqualsSignBeforeAttributeName"] = "unexpected-equals-sign-before-attribute-name";
|
17
|
+
ERR["missingEndTagName"] = "missing-end-tag-name";
|
18
|
+
ERR["unexpectedCharacterInAttributeName"] = "unexpected-character-in-attribute-name";
|
19
|
+
ERR["unknownNamedCharacterReference"] = "unknown-named-character-reference";
|
20
|
+
ERR["missingSemicolonAfterCharacterReference"] = "missing-semicolon-after-character-reference";
|
21
|
+
ERR["unexpectedCharacterAfterDoctypeSystemIdentifier"] = "unexpected-character-after-doctype-system-identifier";
|
22
|
+
ERR["unexpectedCharacterInUnquotedAttributeValue"] = "unexpected-character-in-unquoted-attribute-value";
|
23
|
+
ERR["eofBeforeTagName"] = "eof-before-tag-name";
|
24
|
+
ERR["eofInTag"] = "eof-in-tag";
|
25
|
+
ERR["missingAttributeValue"] = "missing-attribute-value";
|
26
|
+
ERR["missingWhitespaceBetweenAttributes"] = "missing-whitespace-between-attributes";
|
27
|
+
ERR["missingWhitespaceAfterDoctypePublicKeyword"] = "missing-whitespace-after-doctype-public-keyword";
|
28
|
+
ERR["missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers"] = "missing-whitespace-between-doctype-public-and-system-identifiers";
|
29
|
+
ERR["missingWhitespaceAfterDoctypeSystemKeyword"] = "missing-whitespace-after-doctype-system-keyword";
|
30
|
+
ERR["missingQuoteBeforeDoctypePublicIdentifier"] = "missing-quote-before-doctype-public-identifier";
|
31
|
+
ERR["missingQuoteBeforeDoctypeSystemIdentifier"] = "missing-quote-before-doctype-system-identifier";
|
32
|
+
ERR["missingDoctypePublicIdentifier"] = "missing-doctype-public-identifier";
|
33
|
+
ERR["missingDoctypeSystemIdentifier"] = "missing-doctype-system-identifier";
|
34
|
+
ERR["abruptDoctypePublicIdentifier"] = "abrupt-doctype-public-identifier";
|
35
|
+
ERR["abruptDoctypeSystemIdentifier"] = "abrupt-doctype-system-identifier";
|
36
|
+
ERR["cdataInHtmlContent"] = "cdata-in-html-content";
|
37
|
+
ERR["incorrectlyOpenedComment"] = "incorrectly-opened-comment";
|
38
|
+
ERR["eofInScriptHtmlCommentLikeText"] = "eof-in-script-html-comment-like-text";
|
39
|
+
ERR["eofInDoctype"] = "eof-in-doctype";
|
40
|
+
ERR["nestedComment"] = "nested-comment";
|
41
|
+
ERR["abruptClosingOfEmptyComment"] = "abrupt-closing-of-empty-comment";
|
42
|
+
ERR["eofInComment"] = "eof-in-comment";
|
43
|
+
ERR["incorrectlyClosedComment"] = "incorrectly-closed-comment";
|
44
|
+
ERR["eofInCdata"] = "eof-in-cdata";
|
45
|
+
ERR["absenceOfDigitsInNumericCharacterReference"] = "absence-of-digits-in-numeric-character-reference";
|
46
|
+
ERR["nullCharacterReference"] = "null-character-reference";
|
47
|
+
ERR["surrogateCharacterReference"] = "surrogate-character-reference";
|
48
|
+
ERR["characterReferenceOutsideUnicodeRange"] = "character-reference-outside-unicode-range";
|
49
|
+
ERR["controlCharacterReference"] = "control-character-reference";
|
50
|
+
ERR["noncharacterCharacterReference"] = "noncharacter-character-reference";
|
51
|
+
ERR["missingWhitespaceBeforeDoctypeName"] = "missing-whitespace-before-doctype-name";
|
52
|
+
ERR["missingDoctypeName"] = "missing-doctype-name";
|
53
|
+
ERR["invalidCharacterSequenceAfterDoctypeName"] = "invalid-character-sequence-after-doctype-name";
|
54
|
+
ERR["duplicateAttribute"] = "duplicate-attribute";
|
55
|
+
ERR["nonConformingDoctype"] = "non-conforming-doctype";
|
56
|
+
ERR["missingDoctype"] = "missing-doctype";
|
57
|
+
ERR["misplacedDoctype"] = "misplaced-doctype";
|
58
|
+
ERR["endTagWithoutMatchingOpenElement"] = "end-tag-without-matching-open-element";
|
59
|
+
ERR["closingOfElementWithOpenChildElements"] = "closing-of-element-with-open-child-elements";
|
60
|
+
ERR["disallowedContentInNoscriptInHead"] = "disallowed-content-in-noscript-in-head";
|
61
|
+
ERR["openElementsLeftAfterEof"] = "open-elements-left-after-eof";
|
62
|
+
ERR["abandonedHeadElementChild"] = "abandoned-head-element-child";
|
63
|
+
ERR["misplacedStartTagForHeadElement"] = "misplaced-start-tag-for-head-element";
|
64
|
+
ERR["nestedNoscriptInHead"] = "nested-noscript-in-head";
|
65
|
+
ERR["eofInElementThatCanContainOnlyText"] = "eof-in-element-that-can-contain-only-text";
|
66
|
+
})(ERR = exports.ERR || (exports.ERR = {}));
|
67
|
+
//# sourceMappingURL=error-codes.js.map
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { TAG_ID as $, NS } from './html.js';
|
2
|
+
import type { TagToken, Attribute } from './token.js';
|
3
|
+
export declare const SVG_TAG_NAMES_ADJUSTMENT_MAP: Map<string, string>;
|
4
|
+
export declare function causesExit(startTagToken: TagToken): boolean;
|
5
|
+
export declare function adjustTokenMathMLAttrs(token: TagToken): void;
|
6
|
+
export declare function adjustTokenSVGAttrs(token: TagToken): void;
|
7
|
+
export declare function adjustTokenXMLAttrs(token: TagToken): void;
|
8
|
+
export declare function adjustTokenSVGTagName(token: TagToken): void;
|
9
|
+
export declare function isIntegrationPoint(tn: $, ns: NS, attrs: Attribute[], foreignNS?: NS): boolean;
|
10
|
+
//# sourceMappingURL=foreign-content.d.ts.map
|