aizryu.js 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/__replit_disk_meta.json +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 +156 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/index.d.ts +95 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/package.json +58 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/index.d.ts +91 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/package.json +32 -0
- package/.cache/typescript/5.0/node_modules/@types/express/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/express/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/express/index.d.ts +128 -0
- package/.cache/typescript/5.0/node_modules/@types/express/package.json +45 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/index.d.ts +1261 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/package.json +55 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/index.d.ts +77 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/package.json +30 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/base.d.ts +456 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/index.d.ts +18 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/package.json +45 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/Mime.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/index.d.ts +31 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/lite.d.ts +7 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/package.json +30 -0
- package/.cache/typescript/5.0/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/@types/node/assert.d.ts +996 -0
- package/.cache/typescript/5.0/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/buffer.d.ts +2362 -0
- package/.cache/typescript/5.0/node_modules/@types/node/child_process.d.ts +1540 -0
- package/.cache/typescript/5.0/node_modules/@types/node/cluster.d.ts +432 -0
- package/.cache/typescript/5.0/node_modules/@types/node/console.d.ts +415 -0
- package/.cache/typescript/5.0/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/@types/node/crypto.d.ts +4456 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dgram.d.ts +586 -0
- package/.cache/typescript/5.0/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dns.d.ts +809 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dom-events.d.ts +122 -0
- package/.cache/typescript/5.0/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.0/node_modules/@types/node/events.d.ts +879 -0
- package/.cache/typescript/5.0/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.0/node_modules/@types/node/fs.d.ts +4291 -0
- package/.cache/typescript/5.0/node_modules/@types/node/globals.d.ts +381 -0
- package/.cache/typescript/5.0/node_modules/@types/node/globals.global.d.ts +1 -0
- package/.cache/typescript/5.0/node_modules/@types/node/http.d.ts +1888 -0
- package/.cache/typescript/5.0/node_modules/@types/node/http2.d.ts +2382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/https.d.ts +550 -0
- package/.cache/typescript/5.0/node_modules/@types/node/index.d.ts +88 -0
- package/.cache/typescript/5.0/node_modules/@types/node/inspector.d.ts +2747 -0
- package/.cache/typescript/5.0/node_modules/@types/node/module.d.ts +301 -0
- package/.cache/typescript/5.0/node_modules/@types/node/net.d.ts +949 -0
- package/.cache/typescript/5.0/node_modules/@types/node/os.d.ts +478 -0
- package/.cache/typescript/5.0/node_modules/@types/node/package.json +230 -0
- package/.cache/typescript/5.0/node_modules/@types/node/path.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.0/node_modules/@types/node/process.d.ts +1532 -0
- package/.cache/typescript/5.0/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.0/node_modules/@types/node/querystring.d.ts +141 -0
- package/.cache/typescript/5.0/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.0/node_modules/@types/node/readline.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/web.d.ts +350 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream.d.ts +1701 -0
- package/.cache/typescript/5.0/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/@types/node/test.d.ts +1382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.0/node_modules/@types/node/tls.d.ts +1210 -0
- package/.cache/typescript/5.0/node_modules/@types/node/trace_events.d.ts +182 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/crypto.d.ts +4455 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/fs.d.ts +4291 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/globals.d.ts +381 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/http.d.ts +1888 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/module.d.ts +301 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/process.d.ts +1532 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/web.d.ts +350 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/test.d.ts +1382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/util.d.ts +2186 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/.cache/typescript/5.0/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.0/node_modules/@types/node/url.d.ts +927 -0
- package/.cache/typescript/5.0/node_modules/@types/node/util.d.ts +2186 -0
- package/.cache/typescript/5.0/node_modules/@types/node/v8.d.ts +635 -0
- package/.cache/typescript/5.0/node_modules/@types/node/vm.d.ts +903 -0
- package/.cache/typescript/5.0/node_modules/@types/node/wasi.d.ts +158 -0
- package/.cache/typescript/5.0/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.0/node_modules/@types/node/zlib.d.ts +517 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/README.md +75 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/index.d.ts +56 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/README.md +53 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/index.d.ts +34 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/package.json +25 -0
- package/.cache/typescript/5.0/node_modules/@types/send/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/send/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/send/index.d.ts +225 -0
- package/.cache/typescript/5.0/node_modules/@types/send/package.json +33 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/index.d.ts +107 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/package.json +39 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/index.d.ts +321 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/package.json +35 -0
- package/.cache/typescript/5.0/node_modules/entities/LICENSE +11 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.d.ts +211 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.js +536 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.d.ts +22 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.js +77 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.js +122 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.js +496 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.js +69 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.js +116 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.js +99 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/package.json +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.js +12 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.d.ts +96 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.js +126 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/package.json +90 -0
- package/.cache/typescript/5.0/node_modules/entities/readme.md +122 -0
- package/.cache/typescript/5.0/node_modules/parse5/LICENSE +19 -0
- package/.cache/typescript/5.0/node_modules/parse5/README.md +38 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/doctype.js +120 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/error-codes.js +67 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/foreign-content.js +239 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/html.d.ts +288 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/html.js +529 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/token.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/token.js +25 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/unicode.js +77 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/index.d.ts +60 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/index.js +57 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/package.json +1 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +115 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/index.d.ts +157 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/index.js +3163 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/open-element-stack.js +316 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/serializer/index.js +173 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/index.js +2908 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +199 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/default.js +177 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/interface.js +3 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/doctype.js +115 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/error-codes.js +64 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/foreign-content.js +230 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/html.d.ts +288 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/html.js +523 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/token.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/token.js +21 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/unicode.js +69 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/index.d.ts +60 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/index.js +45 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/formatting-element-list.js +111 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/index.d.ts +157 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/index.js +3168 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/open-element-stack.js +312 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/serializer/index.js +168 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/index.js +2904 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/preprocessor.js +195 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/default.js +174 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/interface.js +2 -0
- package/.cache/typescript/5.0/node_modules/parse5/package.json +50 -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/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.0/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.0/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/.cache/typescript/5.0/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.0/node_modules/undici-types/client.d.ts +97 -0
- package/.cache/typescript/5.0/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.0/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.0/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.0/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/.cache/typescript/5.0/node_modules/undici-types/errors.d.ts +128 -0
- package/.cache/typescript/5.0/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.0/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.0/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.0/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.0/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.0/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.0/node_modules/undici-types/handlers.d.ts +9 -0
- package/.cache/typescript/5.0/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.0/node_modules/undici-types/index.d.ts +63 -0
- package/.cache/typescript/5.0/node_modules/undici-types/interceptors.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.0/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.0/node_modules/undici-types/patch.d.ts +71 -0
- package/.cache/typescript/5.0/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/undici-types/pool.d.ts +28 -0
- package/.cache/typescript/5.0/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/.cache/typescript/5.0/node_modules/undici-types/readable.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/undici-types/webidl.d.ts +220 -0
- package/.cache/typescript/5.0/node_modules/undici-types/websocket.d.ts +131 -0
- package/.cache/typescript/5.0/package-lock.json +166 -0
- package/.cache/typescript/5.0/package.json +1 -0
- package/.replit +14 -0
- package/.upm/store.json +1 -0
- package/README.md +24 -0
- package/index.js +1 -0
- package/package.json +21 -0
@@ -0,0 +1,517 @@
|
|
1
|
+
/**
|
2
|
+
* The `node:zlib` module provides compression functionality implemented using
|
3
|
+
* Gzip, Deflate/Inflate, and Brotli.
|
4
|
+
*
|
5
|
+
* To access it:
|
6
|
+
*
|
7
|
+
* ```js
|
8
|
+
* const zlib = require('node:zlib');
|
9
|
+
* ```
|
10
|
+
*
|
11
|
+
* Compression and decompression are built around the Node.js `Streams API`.
|
12
|
+
*
|
13
|
+
* Compressing or decompressing a stream (such as a file) can be accomplished by
|
14
|
+
* piping the source stream through a `zlib` `Transform` stream into a destination
|
15
|
+
* stream:
|
16
|
+
*
|
17
|
+
* ```js
|
18
|
+
* const { createGzip } = require('node:zlib');
|
19
|
+
* const { pipeline } = require('node:stream');
|
20
|
+
* const {
|
21
|
+
* createReadStream,
|
22
|
+
* createWriteStream,
|
23
|
+
* } = require('node:fs');
|
24
|
+
*
|
25
|
+
* const gzip = createGzip();
|
26
|
+
* const source = createReadStream('input.txt');
|
27
|
+
* const destination = createWriteStream('input.txt.gz');
|
28
|
+
*
|
29
|
+
* pipeline(source, gzip, destination, (err) => {
|
30
|
+
* if (err) {
|
31
|
+
* console.error('An error occurred:', err);
|
32
|
+
* process.exitCode = 1;
|
33
|
+
* }
|
34
|
+
* });
|
35
|
+
*
|
36
|
+
* // Or, Promisified
|
37
|
+
*
|
38
|
+
* const { promisify } = require('node:util');
|
39
|
+
* const pipe = promisify(pipeline);
|
40
|
+
*
|
41
|
+
* async function do_gzip(input, output) {
|
42
|
+
* const gzip = createGzip();
|
43
|
+
* const source = createReadStream(input);
|
44
|
+
* const destination = createWriteStream(output);
|
45
|
+
* await pipe(source, gzip, destination);
|
46
|
+
* }
|
47
|
+
*
|
48
|
+
* do_gzip('input.txt', 'input.txt.gz')
|
49
|
+
* .catch((err) => {
|
50
|
+
* console.error('An error occurred:', err);
|
51
|
+
* process.exitCode = 1;
|
52
|
+
* });
|
53
|
+
* ```
|
54
|
+
*
|
55
|
+
* It is also possible to compress or decompress data in a single step:
|
56
|
+
*
|
57
|
+
* ```js
|
58
|
+
* const { deflate, unzip } = require('node:zlib');
|
59
|
+
*
|
60
|
+
* const input = '.................................';
|
61
|
+
* deflate(input, (err, buffer) => {
|
62
|
+
* if (err) {
|
63
|
+
* console.error('An error occurred:', err);
|
64
|
+
* process.exitCode = 1;
|
65
|
+
* }
|
66
|
+
* console.log(buffer.toString('base64'));
|
67
|
+
* });
|
68
|
+
*
|
69
|
+
* const buffer = Buffer.from('eJzT0yMAAGTvBe8=', 'base64');
|
70
|
+
* unzip(buffer, (err, buffer) => {
|
71
|
+
* if (err) {
|
72
|
+
* console.error('An error occurred:', err);
|
73
|
+
* process.exitCode = 1;
|
74
|
+
* }
|
75
|
+
* console.log(buffer.toString());
|
76
|
+
* });
|
77
|
+
*
|
78
|
+
* // Or, Promisified
|
79
|
+
*
|
80
|
+
* const { promisify } = require('node:util');
|
81
|
+
* const do_unzip = promisify(unzip);
|
82
|
+
*
|
83
|
+
* do_unzip(buffer)
|
84
|
+
* .then((buf) => console.log(buf.toString()))
|
85
|
+
* .catch((err) => {
|
86
|
+
* console.error('An error occurred:', err);
|
87
|
+
* process.exitCode = 1;
|
88
|
+
* });
|
89
|
+
* ```
|
90
|
+
* @since v0.5.8
|
91
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/zlib.js)
|
92
|
+
*/
|
93
|
+
declare module "zlib" {
|
94
|
+
import * as stream from "node:stream";
|
95
|
+
interface ZlibOptions {
|
96
|
+
/**
|
97
|
+
* @default constants.Z_NO_FLUSH
|
98
|
+
*/
|
99
|
+
flush?: number | undefined;
|
100
|
+
/**
|
101
|
+
* @default constants.Z_FINISH
|
102
|
+
*/
|
103
|
+
finishFlush?: number | undefined;
|
104
|
+
/**
|
105
|
+
* @default 16*1024
|
106
|
+
*/
|
107
|
+
chunkSize?: number | undefined;
|
108
|
+
windowBits?: number | undefined;
|
109
|
+
level?: number | undefined; // compression only
|
110
|
+
memLevel?: number | undefined; // compression only
|
111
|
+
strategy?: number | undefined; // compression only
|
112
|
+
dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined; // deflate/inflate only, empty dictionary by default
|
113
|
+
info?: boolean | undefined;
|
114
|
+
maxOutputLength?: number | undefined;
|
115
|
+
}
|
116
|
+
interface BrotliOptions {
|
117
|
+
/**
|
118
|
+
* @default constants.BROTLI_OPERATION_PROCESS
|
119
|
+
*/
|
120
|
+
flush?: number | undefined;
|
121
|
+
/**
|
122
|
+
* @default constants.BROTLI_OPERATION_FINISH
|
123
|
+
*/
|
124
|
+
finishFlush?: number | undefined;
|
125
|
+
/**
|
126
|
+
* @default 16*1024
|
127
|
+
*/
|
128
|
+
chunkSize?: number | undefined;
|
129
|
+
params?:
|
130
|
+
| {
|
131
|
+
/**
|
132
|
+
* Each key is a `constants.BROTLI_*` constant.
|
133
|
+
*/
|
134
|
+
[key: number]: boolean | number;
|
135
|
+
}
|
136
|
+
| undefined;
|
137
|
+
maxOutputLength?: number | undefined;
|
138
|
+
}
|
139
|
+
interface Zlib {
|
140
|
+
/** @deprecated Use bytesWritten instead. */
|
141
|
+
readonly bytesRead: number;
|
142
|
+
readonly bytesWritten: number;
|
143
|
+
shell?: boolean | string | undefined;
|
144
|
+
close(callback?: () => void): void;
|
145
|
+
flush(kind?: number, callback?: () => void): void;
|
146
|
+
flush(callback?: () => void): void;
|
147
|
+
}
|
148
|
+
interface ZlibParams {
|
149
|
+
params(level: number, strategy: number, callback: () => void): void;
|
150
|
+
}
|
151
|
+
interface ZlibReset {
|
152
|
+
reset(): void;
|
153
|
+
}
|
154
|
+
interface BrotliCompress extends stream.Transform, Zlib {}
|
155
|
+
interface BrotliDecompress extends stream.Transform, Zlib {}
|
156
|
+
interface Gzip extends stream.Transform, Zlib {}
|
157
|
+
interface Gunzip extends stream.Transform, Zlib {}
|
158
|
+
interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
|
159
|
+
interface Inflate extends stream.Transform, Zlib, ZlibReset {}
|
160
|
+
interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
|
161
|
+
interface InflateRaw extends stream.Transform, Zlib, ZlibReset {}
|
162
|
+
interface Unzip extends stream.Transform, Zlib {}
|
163
|
+
/**
|
164
|
+
* Creates and returns a new `BrotliCompress` object.
|
165
|
+
* @since v11.7.0, v10.16.0
|
166
|
+
*/
|
167
|
+
function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
|
168
|
+
/**
|
169
|
+
* Creates and returns a new `BrotliDecompress` object.
|
170
|
+
* @since v11.7.0, v10.16.0
|
171
|
+
*/
|
172
|
+
function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
|
173
|
+
/**
|
174
|
+
* Creates and returns a new `Gzip` object.
|
175
|
+
* See `example`.
|
176
|
+
* @since v0.5.8
|
177
|
+
*/
|
178
|
+
function createGzip(options?: ZlibOptions): Gzip;
|
179
|
+
/**
|
180
|
+
* Creates and returns a new `Gunzip` object.
|
181
|
+
* @since v0.5.8
|
182
|
+
*/
|
183
|
+
function createGunzip(options?: ZlibOptions): Gunzip;
|
184
|
+
/**
|
185
|
+
* Creates and returns a new `Deflate` object.
|
186
|
+
* @since v0.5.8
|
187
|
+
*/
|
188
|
+
function createDeflate(options?: ZlibOptions): Deflate;
|
189
|
+
/**
|
190
|
+
* Creates and returns a new `Inflate` object.
|
191
|
+
* @since v0.5.8
|
192
|
+
*/
|
193
|
+
function createInflate(options?: ZlibOptions): Inflate;
|
194
|
+
/**
|
195
|
+
* Creates and returns a new `DeflateRaw` object.
|
196
|
+
*
|
197
|
+
* An upgrade of zlib from 1.2.8 to 1.2.11 changed behavior when `windowBits`is set to 8 for raw deflate streams. zlib would automatically set `windowBits`to 9 if was initially set to 8\. Newer
|
198
|
+
* versions of zlib will throw an exception,
|
199
|
+
* so Node.js restored the original behavior of upgrading a value of 8 to 9,
|
200
|
+
* since passing `windowBits = 9` to zlib actually results in a compressed stream
|
201
|
+
* that effectively uses an 8-bit window only.
|
202
|
+
* @since v0.5.8
|
203
|
+
*/
|
204
|
+
function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
|
205
|
+
/**
|
206
|
+
* Creates and returns a new `InflateRaw` object.
|
207
|
+
* @since v0.5.8
|
208
|
+
*/
|
209
|
+
function createInflateRaw(options?: ZlibOptions): InflateRaw;
|
210
|
+
/**
|
211
|
+
* Creates and returns a new `Unzip` object.
|
212
|
+
* @since v0.5.8
|
213
|
+
*/
|
214
|
+
function createUnzip(options?: ZlibOptions): Unzip;
|
215
|
+
type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
|
216
|
+
type CompressCallback = (error: Error | null, result: Buffer) => void;
|
217
|
+
/**
|
218
|
+
* @since v11.7.0, v10.16.0
|
219
|
+
*/
|
220
|
+
function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
221
|
+
function brotliCompress(buf: InputType, callback: CompressCallback): void;
|
222
|
+
namespace brotliCompress {
|
223
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
|
224
|
+
}
|
225
|
+
/**
|
226
|
+
* Compress a chunk of data with `BrotliCompress`.
|
227
|
+
* @since v11.7.0, v10.16.0
|
228
|
+
*/
|
229
|
+
function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
|
230
|
+
/**
|
231
|
+
* @since v11.7.0, v10.16.0
|
232
|
+
*/
|
233
|
+
function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
234
|
+
function brotliDecompress(buf: InputType, callback: CompressCallback): void;
|
235
|
+
namespace brotliDecompress {
|
236
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
|
237
|
+
}
|
238
|
+
/**
|
239
|
+
* Decompress a chunk of data with `BrotliDecompress`.
|
240
|
+
* @since v11.7.0, v10.16.0
|
241
|
+
*/
|
242
|
+
function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
|
243
|
+
/**
|
244
|
+
* @since v0.6.0
|
245
|
+
*/
|
246
|
+
function deflate(buf: InputType, callback: CompressCallback): void;
|
247
|
+
function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
248
|
+
namespace deflate {
|
249
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
250
|
+
}
|
251
|
+
/**
|
252
|
+
* Compress a chunk of data with `Deflate`.
|
253
|
+
* @since v0.11.12
|
254
|
+
*/
|
255
|
+
function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
|
256
|
+
/**
|
257
|
+
* @since v0.6.0
|
258
|
+
*/
|
259
|
+
function deflateRaw(buf: InputType, callback: CompressCallback): void;
|
260
|
+
function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
261
|
+
namespace deflateRaw {
|
262
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
263
|
+
}
|
264
|
+
/**
|
265
|
+
* Compress a chunk of data with `DeflateRaw`.
|
266
|
+
* @since v0.11.12
|
267
|
+
*/
|
268
|
+
function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
|
269
|
+
/**
|
270
|
+
* @since v0.6.0
|
271
|
+
*/
|
272
|
+
function gzip(buf: InputType, callback: CompressCallback): void;
|
273
|
+
function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
274
|
+
namespace gzip {
|
275
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
276
|
+
}
|
277
|
+
/**
|
278
|
+
* Compress a chunk of data with `Gzip`.
|
279
|
+
* @since v0.11.12
|
280
|
+
*/
|
281
|
+
function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
282
|
+
/**
|
283
|
+
* @since v0.6.0
|
284
|
+
*/
|
285
|
+
function gunzip(buf: InputType, callback: CompressCallback): void;
|
286
|
+
function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
287
|
+
namespace gunzip {
|
288
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
289
|
+
}
|
290
|
+
/**
|
291
|
+
* Decompress a chunk of data with `Gunzip`.
|
292
|
+
* @since v0.11.12
|
293
|
+
*/
|
294
|
+
function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
295
|
+
/**
|
296
|
+
* @since v0.6.0
|
297
|
+
*/
|
298
|
+
function inflate(buf: InputType, callback: CompressCallback): void;
|
299
|
+
function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
300
|
+
namespace inflate {
|
301
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
302
|
+
}
|
303
|
+
/**
|
304
|
+
* Decompress a chunk of data with `Inflate`.
|
305
|
+
* @since v0.11.12
|
306
|
+
*/
|
307
|
+
function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
|
308
|
+
/**
|
309
|
+
* @since v0.6.0
|
310
|
+
*/
|
311
|
+
function inflateRaw(buf: InputType, callback: CompressCallback): void;
|
312
|
+
function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
313
|
+
namespace inflateRaw {
|
314
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
315
|
+
}
|
316
|
+
/**
|
317
|
+
* Decompress a chunk of data with `InflateRaw`.
|
318
|
+
* @since v0.11.12
|
319
|
+
*/
|
320
|
+
function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
|
321
|
+
/**
|
322
|
+
* @since v0.6.0
|
323
|
+
*/
|
324
|
+
function unzip(buf: InputType, callback: CompressCallback): void;
|
325
|
+
function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
326
|
+
namespace unzip {
|
327
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
328
|
+
}
|
329
|
+
/**
|
330
|
+
* Decompress a chunk of data with `Unzip`.
|
331
|
+
* @since v0.11.12
|
332
|
+
*/
|
333
|
+
function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
334
|
+
namespace constants {
|
335
|
+
const BROTLI_DECODE: number;
|
336
|
+
const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
|
337
|
+
const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: number;
|
338
|
+
const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: number;
|
339
|
+
const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: number;
|
340
|
+
const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: number;
|
341
|
+
const BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: number;
|
342
|
+
const BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: number;
|
343
|
+
const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: number;
|
344
|
+
const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: number;
|
345
|
+
const BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: number;
|
346
|
+
const BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: number;
|
347
|
+
const BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: number;
|
348
|
+
const BROTLI_DECODER_ERROR_FORMAT_DISTANCE: number;
|
349
|
+
const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: number;
|
350
|
+
const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: number;
|
351
|
+
const BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: number;
|
352
|
+
const BROTLI_DECODER_ERROR_FORMAT_PADDING_1: number;
|
353
|
+
const BROTLI_DECODER_ERROR_FORMAT_PADDING_2: number;
|
354
|
+
const BROTLI_DECODER_ERROR_FORMAT_RESERVED: number;
|
355
|
+
const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: number;
|
356
|
+
const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: number;
|
357
|
+
const BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: number;
|
358
|
+
const BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: number;
|
359
|
+
const BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: number;
|
360
|
+
const BROTLI_DECODER_ERROR_UNREACHABLE: number;
|
361
|
+
const BROTLI_DECODER_NEEDS_MORE_INPUT: number;
|
362
|
+
const BROTLI_DECODER_NEEDS_MORE_OUTPUT: number;
|
363
|
+
const BROTLI_DECODER_NO_ERROR: number;
|
364
|
+
const BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: number;
|
365
|
+
const BROTLI_DECODER_PARAM_LARGE_WINDOW: number;
|
366
|
+
const BROTLI_DECODER_RESULT_ERROR: number;
|
367
|
+
const BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: number;
|
368
|
+
const BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: number;
|
369
|
+
const BROTLI_DECODER_RESULT_SUCCESS: number;
|
370
|
+
const BROTLI_DECODER_SUCCESS: number;
|
371
|
+
const BROTLI_DEFAULT_MODE: number;
|
372
|
+
const BROTLI_DEFAULT_QUALITY: number;
|
373
|
+
const BROTLI_DEFAULT_WINDOW: number;
|
374
|
+
const BROTLI_ENCODE: number;
|
375
|
+
const BROTLI_LARGE_MAX_WINDOW_BITS: number;
|
376
|
+
const BROTLI_MAX_INPUT_BLOCK_BITS: number;
|
377
|
+
const BROTLI_MAX_QUALITY: number;
|
378
|
+
const BROTLI_MAX_WINDOW_BITS: number;
|
379
|
+
const BROTLI_MIN_INPUT_BLOCK_BITS: number;
|
380
|
+
const BROTLI_MIN_QUALITY: number;
|
381
|
+
const BROTLI_MIN_WINDOW_BITS: number;
|
382
|
+
const BROTLI_MODE_FONT: number;
|
383
|
+
const BROTLI_MODE_GENERIC: number;
|
384
|
+
const BROTLI_MODE_TEXT: number;
|
385
|
+
const BROTLI_OPERATION_EMIT_METADATA: number;
|
386
|
+
const BROTLI_OPERATION_FINISH: number;
|
387
|
+
const BROTLI_OPERATION_FLUSH: number;
|
388
|
+
const BROTLI_OPERATION_PROCESS: number;
|
389
|
+
const BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: number;
|
390
|
+
const BROTLI_PARAM_LARGE_WINDOW: number;
|
391
|
+
const BROTLI_PARAM_LGBLOCK: number;
|
392
|
+
const BROTLI_PARAM_LGWIN: number;
|
393
|
+
const BROTLI_PARAM_MODE: number;
|
394
|
+
const BROTLI_PARAM_NDIRECT: number;
|
395
|
+
const BROTLI_PARAM_NPOSTFIX: number;
|
396
|
+
const BROTLI_PARAM_QUALITY: number;
|
397
|
+
const BROTLI_PARAM_SIZE_HINT: number;
|
398
|
+
const DEFLATE: number;
|
399
|
+
const DEFLATERAW: number;
|
400
|
+
const GUNZIP: number;
|
401
|
+
const GZIP: number;
|
402
|
+
const INFLATE: number;
|
403
|
+
const INFLATERAW: number;
|
404
|
+
const UNZIP: number;
|
405
|
+
// Allowed flush values.
|
406
|
+
const Z_NO_FLUSH: number;
|
407
|
+
const Z_PARTIAL_FLUSH: number;
|
408
|
+
const Z_SYNC_FLUSH: number;
|
409
|
+
const Z_FULL_FLUSH: number;
|
410
|
+
const Z_FINISH: number;
|
411
|
+
const Z_BLOCK: number;
|
412
|
+
const Z_TREES: number;
|
413
|
+
// Return codes for the compression/decompression functions.
|
414
|
+
// Negative values are errors, positive values are used for special but normal events.
|
415
|
+
const Z_OK: number;
|
416
|
+
const Z_STREAM_END: number;
|
417
|
+
const Z_NEED_DICT: number;
|
418
|
+
const Z_ERRNO: number;
|
419
|
+
const Z_STREAM_ERROR: number;
|
420
|
+
const Z_DATA_ERROR: number;
|
421
|
+
const Z_MEM_ERROR: number;
|
422
|
+
const Z_BUF_ERROR: number;
|
423
|
+
const Z_VERSION_ERROR: number;
|
424
|
+
// Compression levels.
|
425
|
+
const Z_NO_COMPRESSION: number;
|
426
|
+
const Z_BEST_SPEED: number;
|
427
|
+
const Z_BEST_COMPRESSION: number;
|
428
|
+
const Z_DEFAULT_COMPRESSION: number;
|
429
|
+
// Compression strategy.
|
430
|
+
const Z_FILTERED: number;
|
431
|
+
const Z_HUFFMAN_ONLY: number;
|
432
|
+
const Z_RLE: number;
|
433
|
+
const Z_FIXED: number;
|
434
|
+
const Z_DEFAULT_STRATEGY: number;
|
435
|
+
const Z_DEFAULT_WINDOWBITS: number;
|
436
|
+
const Z_MIN_WINDOWBITS: number;
|
437
|
+
const Z_MAX_WINDOWBITS: number;
|
438
|
+
const Z_MIN_CHUNK: number;
|
439
|
+
const Z_MAX_CHUNK: number;
|
440
|
+
const Z_DEFAULT_CHUNK: number;
|
441
|
+
const Z_MIN_MEMLEVEL: number;
|
442
|
+
const Z_MAX_MEMLEVEL: number;
|
443
|
+
const Z_DEFAULT_MEMLEVEL: number;
|
444
|
+
const Z_MIN_LEVEL: number;
|
445
|
+
const Z_MAX_LEVEL: number;
|
446
|
+
const Z_DEFAULT_LEVEL: number;
|
447
|
+
const ZLIB_VERNUM: number;
|
448
|
+
}
|
449
|
+
// Allowed flush values.
|
450
|
+
/** @deprecated Use `constants.Z_NO_FLUSH` */
|
451
|
+
const Z_NO_FLUSH: number;
|
452
|
+
/** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
|
453
|
+
const Z_PARTIAL_FLUSH: number;
|
454
|
+
/** @deprecated Use `constants.Z_SYNC_FLUSH` */
|
455
|
+
const Z_SYNC_FLUSH: number;
|
456
|
+
/** @deprecated Use `constants.Z_FULL_FLUSH` */
|
457
|
+
const Z_FULL_FLUSH: number;
|
458
|
+
/** @deprecated Use `constants.Z_FINISH` */
|
459
|
+
const Z_FINISH: number;
|
460
|
+
/** @deprecated Use `constants.Z_BLOCK` */
|
461
|
+
const Z_BLOCK: number;
|
462
|
+
/** @deprecated Use `constants.Z_TREES` */
|
463
|
+
const Z_TREES: number;
|
464
|
+
// Return codes for the compression/decompression functions.
|
465
|
+
// Negative values are errors, positive values are used for special but normal events.
|
466
|
+
/** @deprecated Use `constants.Z_OK` */
|
467
|
+
const Z_OK: number;
|
468
|
+
/** @deprecated Use `constants.Z_STREAM_END` */
|
469
|
+
const Z_STREAM_END: number;
|
470
|
+
/** @deprecated Use `constants.Z_NEED_DICT` */
|
471
|
+
const Z_NEED_DICT: number;
|
472
|
+
/** @deprecated Use `constants.Z_ERRNO` */
|
473
|
+
const Z_ERRNO: number;
|
474
|
+
/** @deprecated Use `constants.Z_STREAM_ERROR` */
|
475
|
+
const Z_STREAM_ERROR: number;
|
476
|
+
/** @deprecated Use `constants.Z_DATA_ERROR` */
|
477
|
+
const Z_DATA_ERROR: number;
|
478
|
+
/** @deprecated Use `constants.Z_MEM_ERROR` */
|
479
|
+
const Z_MEM_ERROR: number;
|
480
|
+
/** @deprecated Use `constants.Z_BUF_ERROR` */
|
481
|
+
const Z_BUF_ERROR: number;
|
482
|
+
/** @deprecated Use `constants.Z_VERSION_ERROR` */
|
483
|
+
const Z_VERSION_ERROR: number;
|
484
|
+
// Compression levels.
|
485
|
+
/** @deprecated Use `constants.Z_NO_COMPRESSION` */
|
486
|
+
const Z_NO_COMPRESSION: number;
|
487
|
+
/** @deprecated Use `constants.Z_BEST_SPEED` */
|
488
|
+
const Z_BEST_SPEED: number;
|
489
|
+
/** @deprecated Use `constants.Z_BEST_COMPRESSION` */
|
490
|
+
const Z_BEST_COMPRESSION: number;
|
491
|
+
/** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
|
492
|
+
const Z_DEFAULT_COMPRESSION: number;
|
493
|
+
// Compression strategy.
|
494
|
+
/** @deprecated Use `constants.Z_FILTERED` */
|
495
|
+
const Z_FILTERED: number;
|
496
|
+
/** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
|
497
|
+
const Z_HUFFMAN_ONLY: number;
|
498
|
+
/** @deprecated Use `constants.Z_RLE` */
|
499
|
+
const Z_RLE: number;
|
500
|
+
/** @deprecated Use `constants.Z_FIXED` */
|
501
|
+
const Z_FIXED: number;
|
502
|
+
/** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
|
503
|
+
const Z_DEFAULT_STRATEGY: number;
|
504
|
+
/** @deprecated */
|
505
|
+
const Z_BINARY: number;
|
506
|
+
/** @deprecated */
|
507
|
+
const Z_TEXT: number;
|
508
|
+
/** @deprecated */
|
509
|
+
const Z_ASCII: number;
|
510
|
+
/** @deprecated */
|
511
|
+
const Z_UNKNOWN: number;
|
512
|
+
/** @deprecated */
|
513
|
+
const Z_DEFLATED: number;
|
514
|
+
}
|
515
|
+
declare module "node:zlib" {
|
516
|
+
export * from "zlib";
|
517
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# Installation
|
2
|
+
> `npm install --save @types/qs`
|
3
|
+
|
4
|
+
# Summary
|
5
|
+
This package contains type definitions for qs (https://github.com/ljharb/qs).
|
6
|
+
|
7
|
+
# Details
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs.
|
9
|
+
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs/index.d.ts)
|
10
|
+
````ts
|
11
|
+
export = QueryString;
|
12
|
+
export as namespace qs;
|
13
|
+
|
14
|
+
declare namespace QueryString {
|
15
|
+
type defaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string;
|
16
|
+
type defaultDecoder = (str: string, decoder?: any, charset?: string) => string;
|
17
|
+
|
18
|
+
interface IStringifyOptions {
|
19
|
+
delimiter?: string | undefined;
|
20
|
+
strictNullHandling?: boolean | undefined;
|
21
|
+
skipNulls?: boolean | undefined;
|
22
|
+
encode?: boolean | undefined;
|
23
|
+
encoder?:
|
24
|
+
| ((str: any, defaultEncoder: defaultEncoder, charset: string, type: "key" | "value") => string)
|
25
|
+
| undefined;
|
26
|
+
filter?: Array<string | number> | ((prefix: string, value: any) => any) | undefined;
|
27
|
+
arrayFormat?: "indices" | "brackets" | "repeat" | "comma" | undefined;
|
28
|
+
indices?: boolean | undefined;
|
29
|
+
sort?: ((a: any, b: any) => number) | undefined;
|
30
|
+
serializeDate?: ((d: Date) => string) | undefined;
|
31
|
+
format?: "RFC1738" | "RFC3986" | undefined;
|
32
|
+
encodeValuesOnly?: boolean | undefined;
|
33
|
+
addQueryPrefix?: boolean | undefined;
|
34
|
+
allowDots?: boolean | undefined;
|
35
|
+
charset?: "utf-8" | "iso-8859-1" | undefined;
|
36
|
+
charsetSentinel?: boolean | undefined;
|
37
|
+
}
|
38
|
+
|
39
|
+
interface IParseOptions {
|
40
|
+
comma?: boolean | undefined;
|
41
|
+
delimiter?: string | RegExp | undefined;
|
42
|
+
depth?: number | false | undefined;
|
43
|
+
decoder?:
|
44
|
+
| ((str: string, defaultDecoder: defaultDecoder, charset: string, type: "key" | "value") => any)
|
45
|
+
| undefined;
|
46
|
+
arrayLimit?: number | undefined;
|
47
|
+
parseArrays?: boolean | undefined;
|
48
|
+
allowDots?: boolean | undefined;
|
49
|
+
plainObjects?: boolean | undefined;
|
50
|
+
allowPrototypes?: boolean | undefined;
|
51
|
+
parameterLimit?: number | undefined;
|
52
|
+
strictNullHandling?: boolean | undefined;
|
53
|
+
ignoreQueryPrefix?: boolean | undefined;
|
54
|
+
charset?: "utf-8" | "iso-8859-1" | undefined;
|
55
|
+
charsetSentinel?: boolean | undefined;
|
56
|
+
interpretNumericEntities?: boolean | undefined;
|
57
|
+
}
|
58
|
+
|
59
|
+
interface ParsedQs {
|
60
|
+
[key: string]: undefined | string | string[] | ParsedQs | ParsedQs[];
|
61
|
+
}
|
62
|
+
|
63
|
+
function stringify(obj: any, options?: IStringifyOptions): string;
|
64
|
+
function parse(str: string, options?: IParseOptions & { decoder?: never | undefined }): ParsedQs;
|
65
|
+
function parse(str: string | Record<string, string>, options?: IParseOptions): { [key: string]: unknown };
|
66
|
+
}
|
67
|
+
|
68
|
+
````
|
69
|
+
|
70
|
+
### Additional Details
|
71
|
+
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
|
72
|
+
* Dependencies: none
|
73
|
+
|
74
|
+
# Credits
|
75
|
+
These definitions were written by [Roman Korneev](https://github.com/RWander), [Leon Yu](https://github.com/leonyu), [Belinda Teh](https://github.com/tehbelinda), [Melvin Lee](https://github.com/zyml), [Arturs Vonda](https://github.com/artursvonda), [Carlos Bonetti](https://github.com/CarlosBonetti), [Dan Smith](https://github.com/dpsmith3), [Hunter Perrin](https://github.com/hperrin), and [Jordan Harband](https://github.com/ljharb).
|
@@ -0,0 +1,56 @@
|
|
1
|
+
export = QueryString;
|
2
|
+
export as namespace qs;
|
3
|
+
|
4
|
+
declare namespace QueryString {
|
5
|
+
type defaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string;
|
6
|
+
type defaultDecoder = (str: string, decoder?: any, charset?: string) => string;
|
7
|
+
|
8
|
+
interface IStringifyOptions {
|
9
|
+
delimiter?: string | undefined;
|
10
|
+
strictNullHandling?: boolean | undefined;
|
11
|
+
skipNulls?: boolean | undefined;
|
12
|
+
encode?: boolean | undefined;
|
13
|
+
encoder?:
|
14
|
+
| ((str: any, defaultEncoder: defaultEncoder, charset: string, type: "key" | "value") => string)
|
15
|
+
| undefined;
|
16
|
+
filter?: Array<string | number> | ((prefix: string, value: any) => any) | undefined;
|
17
|
+
arrayFormat?: "indices" | "brackets" | "repeat" | "comma" | undefined;
|
18
|
+
indices?: boolean | undefined;
|
19
|
+
sort?: ((a: any, b: any) => number) | undefined;
|
20
|
+
serializeDate?: ((d: Date) => string) | undefined;
|
21
|
+
format?: "RFC1738" | "RFC3986" | undefined;
|
22
|
+
encodeValuesOnly?: boolean | undefined;
|
23
|
+
addQueryPrefix?: boolean | undefined;
|
24
|
+
allowDots?: boolean | undefined;
|
25
|
+
charset?: "utf-8" | "iso-8859-1" | undefined;
|
26
|
+
charsetSentinel?: boolean | undefined;
|
27
|
+
}
|
28
|
+
|
29
|
+
interface IParseOptions {
|
30
|
+
comma?: boolean | undefined;
|
31
|
+
delimiter?: string | RegExp | undefined;
|
32
|
+
depth?: number | false | undefined;
|
33
|
+
decoder?:
|
34
|
+
| ((str: string, defaultDecoder: defaultDecoder, charset: string, type: "key" | "value") => any)
|
35
|
+
| undefined;
|
36
|
+
arrayLimit?: number | undefined;
|
37
|
+
parseArrays?: boolean | undefined;
|
38
|
+
allowDots?: boolean | undefined;
|
39
|
+
plainObjects?: boolean | undefined;
|
40
|
+
allowPrototypes?: boolean | undefined;
|
41
|
+
parameterLimit?: number | undefined;
|
42
|
+
strictNullHandling?: boolean | undefined;
|
43
|
+
ignoreQueryPrefix?: boolean | undefined;
|
44
|
+
charset?: "utf-8" | "iso-8859-1" | undefined;
|
45
|
+
charsetSentinel?: boolean | undefined;
|
46
|
+
interpretNumericEntities?: boolean | undefined;
|
47
|
+
}
|
48
|
+
|
49
|
+
interface ParsedQs {
|
50
|
+
[key: string]: undefined | string | string[] | ParsedQs | ParsedQs[];
|
51
|
+
}
|
52
|
+
|
53
|
+
function stringify(obj: any, options?: IStringifyOptions): string;
|
54
|
+
function parse(str: string, options?: IParseOptions & { decoder?: never | undefined }): ParsedQs;
|
55
|
+
function parse(str: string | Record<string, string>, options?: IParseOptions): { [key: string]: unknown };
|
56
|
+
}
|