valley-baileys 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -0
- package/node_modules/@borewit/text-codec/LICENSE.txt +9 -0
- package/node_modules/@borewit/text-codec/README.md +87 -0
- package/node_modules/@borewit/text-codec/lib/index.d.ts +6 -0
- package/node_modules/@borewit/text-codec/lib/index.js +380 -0
- package/node_modules/@borewit/text-codec/package.json +70 -0
- package/node_modules/@cacheable/memory/LICENSE +19 -0
- package/node_modules/@cacheable/memory/README.md +340 -0
- package/node_modules/@cacheable/memory/dist/index.cjs +830 -0
- package/node_modules/@cacheable/memory/dist/index.d.cts +310 -0
- package/node_modules/@cacheable/memory/dist/index.d.ts +310 -0
- package/node_modules/@cacheable/memory/dist/index.js +807 -0
- package/node_modules/@cacheable/memory/package.json +65 -0
- package/node_modules/@cacheable/node-cache/LICENSE +19 -0
- package/node_modules/@cacheable/node-cache/README.md +352 -0
- package/node_modules/@cacheable/node-cache/dist/index.cjs +567 -0
- package/node_modules/@cacheable/node-cache/dist/index.d.cts +335 -0
- package/node_modules/@cacheable/node-cache/dist/index.d.ts +335 -0
- package/node_modules/@cacheable/node-cache/dist/index.js +540 -0
- package/node_modules/@cacheable/node-cache/package.json +69 -0
- package/node_modules/@cacheable/utils/LICENSE +19 -0
- package/node_modules/@cacheable/utils/README.md +520 -0
- package/node_modules/@cacheable/utils/dist/index.cjs +677 -0
- package/node_modules/@cacheable/utils/dist/index.d.cts +307 -0
- package/node_modules/@cacheable/utils/dist/index.d.ts +307 -0
- package/node_modules/@cacheable/utils/dist/index.js +630 -0
- package/node_modules/@cacheable/utils/package.json +56 -0
- package/node_modules/@hapi/boom/LICENSE.md +10 -0
- package/node_modules/@hapi/boom/README.md +17 -0
- package/node_modules/@hapi/boom/lib/index.d.ts +549 -0
- package/node_modules/@hapi/boom/lib/index.js +469 -0
- package/node_modules/@hapi/boom/package.json +28 -0
- package/node_modules/@hapi/hoek/LICENSE.md +12 -0
- package/node_modules/@hapi/hoek/README.md +19 -0
- package/node_modules/@hapi/hoek/lib/applyToDefaults.js +102 -0
- package/node_modules/@hapi/hoek/lib/assert.js +22 -0
- package/node_modules/@hapi/hoek/lib/bench.js +29 -0
- package/node_modules/@hapi/hoek/lib/block.js +12 -0
- package/node_modules/@hapi/hoek/lib/clone.js +176 -0
- package/node_modules/@hapi/hoek/lib/contain.js +307 -0
- package/node_modules/@hapi/hoek/lib/deepEqual.js +317 -0
- package/node_modules/@hapi/hoek/lib/error.js +26 -0
- package/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js +16 -0
- package/node_modules/@hapi/hoek/lib/escapeHtml.js +87 -0
- package/node_modules/@hapi/hoek/lib/escapeJson.js +28 -0
- package/node_modules/@hapi/hoek/lib/escapeRegex.js +11 -0
- package/node_modules/@hapi/hoek/lib/flatten.js +20 -0
- package/node_modules/@hapi/hoek/lib/ignore.js +6 -0
- package/node_modules/@hapi/hoek/lib/index.d.ts +471 -0
- package/node_modules/@hapi/hoek/lib/index.js +45 -0
- package/node_modules/@hapi/hoek/lib/intersect.js +41 -0
- package/node_modules/@hapi/hoek/lib/isPromise.js +9 -0
- package/node_modules/@hapi/hoek/lib/merge.js +78 -0
- package/node_modules/@hapi/hoek/lib/once.js +25 -0
- package/node_modules/@hapi/hoek/lib/reach.js +76 -0
- package/node_modules/@hapi/hoek/lib/reachTemplate.js +16 -0
- package/node_modules/@hapi/hoek/lib/stringify.js +14 -0
- package/node_modules/@hapi/hoek/lib/types.js +55 -0
- package/node_modules/@hapi/hoek/lib/utils.js +9 -0
- package/node_modules/@hapi/hoek/lib/wait.js +37 -0
- package/node_modules/@hapi/hoek/package.json +31 -0
- package/node_modules/@keyv/bigmap/LICENSE +21 -0
- package/node_modules/@keyv/bigmap/README.md +624 -0
- package/node_modules/@keyv/bigmap/dist/index.cjs +268 -0
- package/node_modules/@keyv/bigmap/dist/index.d.cts +157 -0
- package/node_modules/@keyv/bigmap/dist/index.d.ts +157 -0
- package/node_modules/@keyv/bigmap/dist/index.js +239 -0
- package/node_modules/@keyv/bigmap/package.json +73 -0
- package/node_modules/@keyv/serialize/LICENSE +22 -0
- package/node_modules/@keyv/serialize/README.md +15 -0
- package/node_modules/@keyv/serialize/dist/index.cjs +84 -0
- package/node_modules/@keyv/serialize/dist/index.d.cts +4 -0
- package/node_modules/@keyv/serialize/dist/index.d.ts +4 -0
- package/node_modules/@keyv/serialize/dist/index.js +58 -0
- package/node_modules/@keyv/serialize/package.json +55 -0
- package/node_modules/@pinojs/redact/.github/dependabot.yml +13 -0
- package/node_modules/@pinojs/redact/.github/workflows/ci.yml +48 -0
- package/node_modules/@pinojs/redact/.github/workflows/publish-release.yml +43 -0
- package/node_modules/@pinojs/redact/LICENSE +21 -0
- package/node_modules/@pinojs/redact/README.md +350 -0
- package/node_modules/@pinojs/redact/benchmarks/basic.js +184 -0
- package/node_modules/@pinojs/redact/eslint.config.js +1 -0
- package/node_modules/@pinojs/redact/index.d.ts +52 -0
- package/node_modules/@pinojs/redact/index.js +529 -0
- package/node_modules/@pinojs/redact/index.test-d.ts +22 -0
- package/node_modules/@pinojs/redact/package.json +37 -0
- package/node_modules/@pinojs/redact/scripts/sync-version.mjs +20 -0
- package/node_modules/@pinojs/redact/test/actual-redact-comparison.test.js +211 -0
- package/node_modules/@pinojs/redact/test/index.test.js +824 -0
- package/node_modules/@pinojs/redact/test/integration.test.js +390 -0
- package/node_modules/@pinojs/redact/test/multiple-wildcards.test.js +227 -0
- package/node_modules/@pinojs/redact/test/prototype-pollution.test.js +223 -0
- package/node_modules/@pinojs/redact/test/selective-clone.test.js +115 -0
- package/node_modules/@pinojs/redact/tsconfig.json +19 -0
- package/node_modules/@protobufjs/aspromise/LICENSE +26 -0
- package/node_modules/@protobufjs/aspromise/README.md +13 -0
- package/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
- package/node_modules/@protobufjs/aspromise/index.js +52 -0
- package/node_modules/@protobufjs/aspromise/package.json +21 -0
- package/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
- package/node_modules/@protobufjs/base64/LICENSE +26 -0
- package/node_modules/@protobufjs/base64/README.md +19 -0
- package/node_modules/@protobufjs/base64/index.d.ts +32 -0
- package/node_modules/@protobufjs/base64/index.js +139 -0
- package/node_modules/@protobufjs/base64/package.json +21 -0
- package/node_modules/@protobufjs/base64/tests/index.js +46 -0
- package/node_modules/@protobufjs/codegen/LICENSE +26 -0
- package/node_modules/@protobufjs/codegen/README.md +49 -0
- package/node_modules/@protobufjs/codegen/index.d.ts +31 -0
- package/node_modules/@protobufjs/codegen/index.js +112 -0
- package/node_modules/@protobufjs/codegen/package.json +13 -0
- package/node_modules/@protobufjs/codegen/tests/index.js +13 -0
- package/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
- package/node_modules/@protobufjs/eventemitter/README.md +22 -0
- package/node_modules/@protobufjs/eventemitter/index.d.ts +45 -0
- package/node_modules/@protobufjs/eventemitter/index.js +86 -0
- package/node_modules/@protobufjs/eventemitter/package.json +21 -0
- package/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
- package/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/fetch/LICENSE +26 -0
- package/node_modules/@protobufjs/fetch/README.md +13 -0
- package/node_modules/@protobufjs/fetch/index.d.ts +56 -0
- package/node_modules/@protobufjs/fetch/index.js +112 -0
- package/node_modules/@protobufjs/fetch/package.json +27 -0
- package/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
- package/node_modules/@protobufjs/fetch/tests/index.js +158 -0
- package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
- package/node_modules/@protobufjs/float/LICENSE +26 -0
- package/node_modules/@protobufjs/float/README.md +102 -0
- package/node_modules/@protobufjs/float/bench/index.js +87 -0
- package/node_modules/@protobufjs/float/bench/suite.js +46 -0
- package/node_modules/@protobufjs/float/index.d.ts +83 -0
- package/node_modules/@protobufjs/float/index.js +335 -0
- package/node_modules/@protobufjs/float/package.json +26 -0
- package/node_modules/@protobufjs/float/tests/index.js +100 -0
- package/node_modules/@protobufjs/path/LICENSE +26 -0
- package/node_modules/@protobufjs/path/README.md +19 -0
- package/node_modules/@protobufjs/path/index.d.ts +22 -0
- package/node_modules/@protobufjs/path/index.js +65 -0
- package/node_modules/@protobufjs/path/package.json +21 -0
- package/node_modules/@protobufjs/path/tests/index.js +60 -0
- package/node_modules/@protobufjs/pool/.npmignore +3 -0
- package/node_modules/@protobufjs/pool/LICENSE +26 -0
- package/node_modules/@protobufjs/pool/README.md +13 -0
- package/node_modules/@protobufjs/pool/index.d.ts +32 -0
- package/node_modules/@protobufjs/pool/index.js +48 -0
- package/node_modules/@protobufjs/pool/package.json +21 -0
- package/node_modules/@protobufjs/pool/tests/index.js +33 -0
- package/node_modules/@protobufjs/utf8/LICENSE +26 -0
- package/node_modules/@protobufjs/utf8/README.md +20 -0
- package/node_modules/@protobufjs/utf8/index.d.ts +24 -0
- package/node_modules/@protobufjs/utf8/index.js +104 -0
- package/node_modules/@protobufjs/utf8/package.json +21 -0
- package/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
- package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
- package/node_modules/@protobufjs/utf8/tests/index.js +74 -0
- package/node_modules/@tokenizer/inflate/LICENSE +15 -0
- package/node_modules/@tokenizer/inflate/README.md +114 -0
- package/node_modules/@tokenizer/inflate/lib/GzipHandler.d.ts +6 -0
- package/node_modules/@tokenizer/inflate/lib/GzipHandler.js +19 -0
- package/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +26 -0
- package/node_modules/@tokenizer/inflate/lib/ZipHandler.js +233 -0
- package/node_modules/@tokenizer/inflate/lib/ZipToken.d.ts +94 -0
- package/node_modules/@tokenizer/inflate/lib/ZipToken.js +117 -0
- package/node_modules/@tokenizer/inflate/lib/index.d.ts +3 -0
- package/node_modules/@tokenizer/inflate/lib/index.js +2 -0
- package/node_modules/@tokenizer/inflate/package.json +76 -0
- package/node_modules/@tokenizer/token/README.md +19 -0
- package/node_modules/@tokenizer/token/index.d.ts +30 -0
- package/node_modules/@tokenizer/token/package.json +33 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +68 -0
- package/node_modules/@types/node/assert.d.ts +1077 -0
- package/node_modules/@types/node/async_hooks.d.ts +711 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +466 -0
- package/node_modules/@types/node/buffer.d.ts +1760 -0
- package/node_modules/@types/node/child_process.d.ts +1362 -0
- package/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@types/node/console.d.ts +93 -0
- package/node_modules/@types/node/constants.d.ts +14 -0
- package/node_modules/@types/node/crypto.d.ts +3941 -0
- package/node_modules/@types/node/dgram.d.ts +537 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +563 -0
- package/node_modules/@types/node/dns/promises.d.ts +497 -0
- package/node_modules/@types/node/dns.d.ts +876 -0
- package/node_modules/@types/node/domain.d.ts +150 -0
- package/node_modules/@types/node/events.d.ts +1008 -0
- package/node_modules/@types/node/fs/promises.d.ts +1468 -0
- package/node_modules/@types/node/fs.d.ts +4771 -0
- package/node_modules/@types/node/globals.d.ts +150 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/node_modules/@types/node/http.d.ts +2147 -0
- package/node_modules/@types/node/http2.d.ts +2489 -0
- package/node_modules/@types/node/https.d.ts +400 -0
- package/node_modules/@types/node/index.d.ts +114 -0
- package/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@types/node/inspector.d.ts +264 -0
- package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
- package/node_modules/@types/node/module.d.ts +726 -0
- package/node_modules/@types/node/net.d.ts +970 -0
- package/node_modules/@types/node/os.d.ts +498 -0
- package/node_modules/@types/node/package.json +155 -0
- package/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/node/path.d.ts +178 -0
- package/node_modules/@types/node/perf_hooks.d.ts +604 -0
- package/node_modules/@types/node/process.d.ts +2204 -0
- package/node_modules/@types/node/punycode.d.ts +89 -0
- package/node_modules/@types/node/querystring.d.ts +139 -0
- package/node_modules/@types/node/quic.d.ts +897 -0
- package/node_modules/@types/node/readline/promises.d.ts +158 -0
- package/node_modules/@types/node/readline.d.ts +508 -0
- package/node_modules/@types/node/repl.d.ts +420 -0
- package/node_modules/@types/node/sea.d.ts +47 -0
- package/node_modules/@types/node/sqlite.d.ts +1068 -0
- package/node_modules/@types/node/stream/consumers.d.ts +114 -0
- package/node_modules/@types/node/stream/iter.d.ts +301 -0
- package/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/node_modules/@types/node/stream/web.d.ts +300 -0
- package/node_modules/@types/node/stream.d.ts +1774 -0
- package/node_modules/@types/node/string_decoder.d.ts +27 -0
- package/node_modules/@types/node/test/reporters.d.ts +59 -0
- package/node_modules/@types/node/test.d.ts +2279 -0
- package/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/timers.d.ts +149 -0
- package/node_modules/@types/node/tls.d.ts +1193 -0
- package/node_modules/@types/node/trace_events.d.ts +103 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +116 -0
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +116 -0
- package/node_modules/@types/node/tty.d.ts +225 -0
- package/node_modules/@types/node/url.d.ts +556 -0
- package/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/node/util.d.ts +1660 -0
- package/node_modules/@types/node/v8.d.ts +980 -0
- package/node_modules/@types/node/vm.d.ts +1136 -0
- package/node_modules/@types/node/wasi.d.ts +131 -0
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +83 -0
- package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +115 -0
- package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +668 -0
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@types/node/zlib.d.ts +589 -0
- package/node_modules/@whiskeysockets/baileys/LICENSE +21 -0
- package/node_modules/@whiskeysockets/baileys/README.md +1312 -0
- package/node_modules/@whiskeysockets/baileys/WAProto/GenerateStatics.sh +3 -0
- package/node_modules/@whiskeysockets/baileys/WAProto/WAProto.proto +5479 -0
- package/node_modules/@whiskeysockets/baileys/WAProto/fix-imports.js +85 -0
- package/node_modules/@whiskeysockets/baileys/WAProto/index.d.ts +14017 -0
- package/node_modules/@whiskeysockets/baileys/WAProto/index.js +97691 -0
- package/node_modules/@whiskeysockets/baileys/engine-requirements.js +10 -0
- package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.d.ts +75 -0
- package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.js +129 -0
- package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.d.ts +10 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.js +12 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.d.ts +15 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.js +30 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.d.ts +17 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.js +82 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.d.ts +12 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.js +12 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.d.ts +11 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.js +18 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.d.ts +14 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.js +26 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.js +63 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.d.ts +19 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.js +66 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.d.ts +18 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.js +48 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.d.ts +31 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.js +41 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.d.ts +39 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.js +84 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.d.ts +12 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.js +26 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.d.ts +5 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.js +431 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.d.ts +23 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.js +277 -0
- package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.d.ts +3 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.js +3 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.d.ts +16 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.js +11 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.d.ts +13 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.js +54 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/business.d.ts +217 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/business.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/business.js +379 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/business.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.d.ts +124 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js +1193 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.d.ts +273 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.js +431 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.d.ts +161 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js +347 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/index.d.ts +260 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/index.js +13 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.d.ts +203 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.js +1772 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.d.ts +199 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js +1145 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.d.ts +3 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.js +42 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.d.ts +170 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.js +181 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.d.ts +59 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js +967 -0
- package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.d.ts +117 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.js +2 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.d.ts +25 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.js +2 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Call.d.ts +15 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Call.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Call.js +2 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Call.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.d.ts +124 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.js +8 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.d.ts +26 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.js +2 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Events.d.ts +256 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Events.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Events.js +2 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Events.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.d.ts +71 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.js +2 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Label.d.ts +47 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Label.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Label.js +25 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Label.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.d.ts +30 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.js +7 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Message.d.ts +320 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Message.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Message.js +11 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Message.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.d.ts +141 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.js +37 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Product.d.ts +79 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Product.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Product.js +2 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Product.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.d.ts +87 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.js +2 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.d.ts +136 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.js +3 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/State.d.ts +97 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/State.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/State.js +56 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/State.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/USync.d.ts +26 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/USync.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/USync.js +2 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/USync.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/index.d.ts +65 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/index.js +26 -0
- package/node_modules/@whiskeysockets/baileys/lib/Types/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.d.ts +24 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js +302 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.d.ts +4 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.js +28 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/business.d.ts +23 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/business.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/business.js +231 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/business.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.d.ts +100 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.js +872 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.d.ts +17 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.js +35 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.d.ts +37 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.js +118 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.d.ts +66 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.js +317 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.d.ts +36 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.js +622 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.d.ts +91 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js +393 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/history.d.ts +24 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/history.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/history.js +134 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/history.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.d.ts +44 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.js +50 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/index.d.ts +22 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/index.js +22 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.d.ts +21 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.js +85 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.d.ts +12 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.js +3 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.d.ts +8 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.js +8 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.d.ts +9 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.js +33 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.d.ts +115 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.js +265 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.d.ts +133 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js +788 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.d.ts +91 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js +893 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.d.ts +20 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js +201 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.d.ts +17 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.js +40 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.d.ts +28 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.js +106 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.d.ts +60 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.js +630 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.d.ts +11 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.js +258 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.d.ts +47 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.js +201 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.d.ts +11 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.js +38 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.d.ts +19 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.js +49 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.d.ts +37 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.js +163 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.d.ts +13 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.js +121 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.d.ts +11 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.js +203 -0
- package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.d.ts +28 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.js +1301 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.d.ts +7 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.js +262 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.d.ts +3 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.js +220 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.d.ts +15 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.js +113 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.d.ts +6 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.js +6 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.d.ts +48 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.js +96 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.d.ts +19 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.js +2 -0
- package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.d.ts +9 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.js +10 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.d.ts +40 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.js +22853 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.d.ts +3 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.js +150 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/index.d.ts +4 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/index.js +4 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAM/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +10 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.js +52 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +23 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.js +54 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +13 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +27 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +13 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.js +38 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +10 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.js +25 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +26 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +51 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +10 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.js +29 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.d.ts +6 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.js +6 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.d.ts +30 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.js +98 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.d.ts +17 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.js +31 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.d.ts +4 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.js +4 -0
- package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/index.d.ts +12 -0
- package/node_modules/@whiskeysockets/baileys/lib/index.d.ts.map +1 -0
- package/node_modules/@whiskeysockets/baileys/lib/index.js +11 -0
- package/node_modules/@whiskeysockets/baileys/lib/index.js.map +1 -0
- package/node_modules/@whiskeysockets/baileys/package.json +139 -0
- package/node_modules/async-mutex/LICENSE +21 -0
- package/node_modules/async-mutex/README.md +540 -0
- package/node_modules/async-mutex/es6/Mutex.js +41 -0
- package/node_modules/async-mutex/es6/MutexInterface.js +1 -0
- package/node_modules/async-mutex/es6/Semaphore.js +153 -0
- package/node_modules/async-mutex/es6/SemaphoreInterface.js +1 -0
- package/node_modules/async-mutex/es6/errors.js +3 -0
- package/node_modules/async-mutex/es6/index.js +5 -0
- package/node_modules/async-mutex/es6/tryAcquire.js +8 -0
- package/node_modules/async-mutex/es6/withTimeout.js +124 -0
- package/node_modules/async-mutex/index.mjs +291 -0
- package/node_modules/async-mutex/lib/Mutex.d.ts +12 -0
- package/node_modules/async-mutex/lib/Mutex.js +43 -0
- package/node_modules/async-mutex/lib/MutexInterface.d.ts +17 -0
- package/node_modules/async-mutex/lib/MutexInterface.js +2 -0
- package/node_modules/async-mutex/lib/Semaphore.d.ts +22 -0
- package/node_modules/async-mutex/lib/Semaphore.js +155 -0
- package/node_modules/async-mutex/lib/SemaphoreInterface.d.ts +19 -0
- package/node_modules/async-mutex/lib/SemaphoreInterface.js +2 -0
- package/node_modules/async-mutex/lib/errors.d.ts +3 -0
- package/node_modules/async-mutex/lib/errors.js +6 -0
- package/node_modules/async-mutex/lib/index.d.ts +7 -0
- package/node_modules/async-mutex/lib/index.js +13 -0
- package/node_modules/async-mutex/lib/tryAcquire.d.ts +4 -0
- package/node_modules/async-mutex/lib/tryAcquire.js +12 -0
- package/node_modules/async-mutex/lib/withTimeout.d.ts +4 -0
- package/node_modules/async-mutex/lib/withTimeout.js +128 -0
- package/node_modules/async-mutex/package.json +88 -0
- package/node_modules/atomic-sleep/.travis.yml +11 -0
- package/node_modules/atomic-sleep/LICENSE +22 -0
- package/node_modules/atomic-sleep/index.js +38 -0
- package/node_modules/atomic-sleep/package.json +37 -0
- package/node_modules/atomic-sleep/readme.md +58 -0
- package/node_modules/atomic-sleep/test.js +47 -0
- package/node_modules/cacheable/LICENSE +19 -0
- package/node_modules/cacheable/README.md +846 -0
- package/node_modules/cacheable/dist/index.cjs +1157 -0
- package/node_modules/cacheable/dist/index.d.cts +494 -0
- package/node_modules/cacheable/dist/index.d.ts +494 -0
- package/node_modules/cacheable/dist/index.js +1141 -0
- package/node_modules/cacheable/package.json +81 -0
- package/node_modules/content-type/LICENSE +22 -0
- package/node_modules/content-type/README.md +69 -0
- package/node_modules/content-type/dist/index.d.ts +26 -0
- package/node_modules/content-type/dist/index.js +170 -0
- package/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/content-type/package.json +52 -0
- package/node_modules/curve25519-js/.prettierrc +6 -0
- package/node_modules/curve25519-js/LICENSE +19 -0
- package/node_modules/curve25519-js/README.md +111 -0
- package/node_modules/curve25519-js/lib/index.d.ts +69 -0
- package/node_modules/curve25519-js/lib/index.js +1669 -0
- package/node_modules/curve25519-js/package.json +34 -0
- package/node_modules/curve25519-js/tsconfig.json +20 -0
- package/node_modules/curve25519-js/tslint.json +10 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/eventemitter3/LICENSE +21 -0
- package/node_modules/eventemitter3/README.md +85 -0
- package/node_modules/eventemitter3/dist/eventemitter3.esm.js +355 -0
- package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -0
- package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -0
- package/node_modules/eventemitter3/dist/eventemitter3.umd.js +363 -0
- package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -0
- package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -0
- package/node_modules/eventemitter3/index.d.ts +135 -0
- package/node_modules/eventemitter3/index.js +336 -0
- package/node_modules/eventemitter3/index.mjs +4 -0
- package/node_modules/eventemitter3/package.json +62 -0
- package/node_modules/file-type/core.d.ts +253 -0
- package/node_modules/file-type/core.js +2899 -0
- package/node_modules/file-type/index.d.ts +98 -0
- package/node_modules/file-type/index.js +163 -0
- package/node_modules/file-type/license +9 -0
- package/node_modules/file-type/package.json +290 -0
- package/node_modules/file-type/readme.md +667 -0
- package/node_modules/file-type/supported.js +360 -0
- package/node_modules/file-type/util.js +60 -0
- package/node_modules/hashery/LICENSE +21 -0
- package/node_modules/hashery/README.md +1373 -0
- package/node_modules/hashery/dist/browser/index.global.js +8 -0
- package/node_modules/hashery/dist/browser/index.global.js.map +1 -0
- package/node_modules/hashery/dist/browser/index.js +3 -0
- package/node_modules/hashery/dist/browser/index.js.map +1 -0
- package/node_modules/hashery/dist/node/index.cjs +989 -0
- package/node_modules/hashery/dist/node/index.d.cts +935 -0
- package/node_modules/hashery/dist/node/index.d.ts +935 -0
- package/node_modules/hashery/dist/node/index.js +957 -0
- package/node_modules/hashery/package.json +92 -0
- package/node_modules/hookified/LICENSE +19 -0
- package/node_modules/hookified/README.md +1424 -0
- package/node_modules/hookified/dist/browser/index.global.js +693 -0
- package/node_modules/hookified/dist/browser/index.global.js.map +1 -0
- package/node_modules/hookified/dist/browser/index.js +694 -0
- package/node_modules/hookified/dist/browser/index.js.map +1 -0
- package/node_modules/hookified/dist/node/index.cjs +717 -0
- package/node_modules/hookified/dist/node/index.d.cts +543 -0
- package/node_modules/hookified/dist/node/index.d.ts +543 -0
- package/node_modules/hookified/dist/node/index.js +689 -0
- package/node_modules/hookified/package.json +92 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/keyv/LICENSE +22 -0
- package/node_modules/keyv/README.md +828 -0
- package/node_modules/keyv/dist/index.cjs +990 -0
- package/node_modules/keyv/dist/index.d.cts +378 -0
- package/node_modules/keyv/dist/index.d.ts +378 -0
- package/node_modules/keyv/dist/index.js +964 -0
- package/node_modules/keyv/package.json +88 -0
- package/node_modules/libsignal/LICENSE +621 -0
- package/node_modules/libsignal/README.md +64 -0
- package/node_modules/libsignal/index.d.ts +55 -0
- package/node_modules/libsignal/index.js +10 -0
- package/node_modules/libsignal/package.json +34 -0
- package/node_modules/libsignal/src/.eslintrc.json +31 -0
- package/node_modules/libsignal/src/WhisperTextProtocol.js +933 -0
- package/node_modules/libsignal/src/base_key_type.js +7 -0
- package/node_modules/libsignal/src/chain_type.js +6 -0
- package/node_modules/libsignal/src/crypto.d.ts +19 -0
- package/node_modules/libsignal/src/crypto.js +98 -0
- package/node_modules/libsignal/src/curve.d.ts +22 -0
- package/node_modules/libsignal/src/curve.js +142 -0
- package/node_modules/libsignal/src/errors.js +33 -0
- package/node_modules/libsignal/src/keyhelper.js +45 -0
- package/node_modules/libsignal/src/numeric_fingerprint.js +72 -0
- package/node_modules/libsignal/src/protobufs.js +10 -0
- package/node_modules/libsignal/src/protocol_address.js +40 -0
- package/node_modules/libsignal/src/queue_job.js +69 -0
- package/node_modules/libsignal/src/session_builder.js +164 -0
- package/node_modules/libsignal/src/session_cipher.js +336 -0
- package/node_modules/libsignal/src/session_record.js +316 -0
- package/node_modules/long/LICENSE +202 -0
- package/node_modules/long/README.md +286 -0
- package/node_modules/long/index.d.ts +2 -0
- package/node_modules/long/index.js +1581 -0
- package/node_modules/long/package.json +58 -0
- package/node_modules/long/types.d.ts +474 -0
- package/node_modules/long/umd/index.d.ts +3 -0
- package/node_modules/long/umd/index.js +1622 -0
- package/node_modules/long/umd/package.json +3 -0
- package/node_modules/long/umd/types.d.ts +474 -0
- package/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/lru-cache/README.md +469 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
- package/node_modules/lru-cache/package.json +154 -0
- package/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/media-typer/README.md +79 -0
- package/node_modules/media-typer/dist/index.d.ts +29 -0
- package/node_modules/media-typer/dist/index.js +64 -0
- package/node_modules/media-typer/dist/index.js.map +1 -0
- package/node_modules/media-typer/package.json +48 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/music-metadata/LICENSE.txt +9 -0
- package/node_modules/music-metadata/README.md +878 -0
- package/node_modules/music-metadata/lib/ParseError.d.ts +87 -0
- package/node_modules/music-metadata/lib/ParseError.js +38 -0
- package/node_modules/music-metadata/lib/ParserFactory.d.ts +44 -0
- package/node_modules/music-metadata/lib/ParserFactory.js +141 -0
- package/node_modules/music-metadata/lib/aiff/AiffLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/aiff/AiffLoader.js +8 -0
- package/node_modules/music-metadata/lib/aiff/AiffParser.d.ts +15 -0
- package/node_modules/music-metadata/lib/aiff/AiffParser.js +104 -0
- package/node_modules/music-metadata/lib/aiff/AiffTagMap.d.ts +4 -0
- package/node_modules/music-metadata/lib/aiff/AiffTagMap.js +15 -0
- package/node_modules/music-metadata/lib/aiff/AiffToken.d.ts +48 -0
- package/node_modules/music-metadata/lib/aiff/AiffToken.js +58 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Parser.d.ts +46 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Parser.js +176 -0
- package/node_modules/music-metadata/lib/apev2/APEv2TagMapper.d.ts +4 -0
- package/node_modules/music-metadata/lib/apev2/APEv2TagMapper.js +83 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Token.d.ts +99 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Token.js +116 -0
- package/node_modules/music-metadata/lib/apev2/Apev2Loader.d.ts +2 -0
- package/node_modules/music-metadata/lib/apev2/Apev2Loader.js +8 -0
- package/node_modules/music-metadata/lib/asf/AsfGuid.d.ts +83 -0
- package/node_modules/music-metadata/lib/asf/AsfGuid.js +109 -0
- package/node_modules/music-metadata/lib/asf/AsfLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/asf/AsfLoader.js +8 -0
- package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +325 -0
- package/node_modules/music-metadata/lib/asf/AsfObject.js +347 -0
- package/node_modules/music-metadata/lib/asf/AsfParser.d.ts +17 -0
- package/node_modules/music-metadata/lib/asf/AsfParser.js +134 -0
- package/node_modules/music-metadata/lib/asf/AsfTagMapper.d.ts +7 -0
- package/node_modules/music-metadata/lib/asf/AsfTagMapper.js +92 -0
- package/node_modules/music-metadata/lib/asf/AsfUtil.d.ts +4 -0
- package/node_modules/music-metadata/lib/asf/AsfUtil.js +32 -0
- package/node_modules/music-metadata/lib/common/BasicParser.d.ts +17 -0
- package/node_modules/music-metadata/lib/common/BasicParser.js +13 -0
- package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.d.ts +10 -0
- package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.js +17 -0
- package/node_modules/music-metadata/lib/common/CombinedTagMapper.d.ts +19 -0
- package/node_modules/music-metadata/lib/common/CombinedTagMapper.js +50 -0
- package/node_modules/music-metadata/lib/common/FourCC.d.ts +6 -0
- package/node_modules/music-metadata/lib/common/FourCC.js +25 -0
- package/node_modules/music-metadata/lib/common/GenericTagMapper.d.ts +51 -0
- package/node_modules/music-metadata/lib/common/GenericTagMapper.js +51 -0
- package/node_modules/music-metadata/lib/common/GenericTagTypes.d.ts +34 -0
- package/node_modules/music-metadata/lib/common/GenericTagTypes.js +133 -0
- package/node_modules/music-metadata/lib/common/MetadataCollector.d.ts +86 -0
- package/node_modules/music-metadata/lib/common/MetadataCollector.js +307 -0
- package/node_modules/music-metadata/lib/common/Util.d.ts +56 -0
- package/node_modules/music-metadata/lib/common/Util.js +152 -0
- package/node_modules/music-metadata/lib/core.d.ts +75 -0
- package/node_modules/music-metadata/lib/core.js +126 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffLoader.js +8 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.d.ts +29 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.js +154 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffToken.d.ts +9 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffToken.js +18 -0
- package/node_modules/music-metadata/lib/dsf/DsfChunk.d.ts +87 -0
- package/node_modules/music-metadata/lib/dsf/DsfChunk.js +50 -0
- package/node_modules/music-metadata/lib/dsf/DsfLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/dsf/DsfLoader.js +8 -0
- package/node_modules/music-metadata/lib/dsf/DsfParser.d.ts +24 -0
- package/node_modules/music-metadata/lib/dsf/DsfParser.js +57 -0
- package/node_modules/music-metadata/lib/ebml/EbmlIterator.d.ts +67 -0
- package/node_modules/music-metadata/lib/ebml/EbmlIterator.js +218 -0
- package/node_modules/music-metadata/lib/ebml/types.d.ts +37 -0
- package/node_modules/music-metadata/lib/ebml/types.js +8 -0
- package/node_modules/music-metadata/lib/flac/FlacLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/flac/FlacLoader.js +8 -0
- package/node_modules/music-metadata/lib/flac/FlacParser.d.ts +29 -0
- package/node_modules/music-metadata/lib/flac/FlacParser.js +125 -0
- package/node_modules/music-metadata/lib/flac/FlacToken.d.ts +45 -0
- package/node_modules/music-metadata/lib/flac/FlacToken.js +63 -0
- package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.d.ts +17 -0
- package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.js +137 -0
- package/node_modules/music-metadata/lib/id3v1/ID3v1TagMap.d.ts +4 -0
- package/node_modules/music-metadata/lib/id3v1/ID3v1TagMap.js +18 -0
- package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.d.ts +17 -0
- package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.js +56 -0
- package/node_modules/music-metadata/lib/id3v2/FrameHeader.d.ts +31 -0
- package/node_modules/music-metadata/lib/id3v2/FrameHeader.js +73 -0
- package/node_modules/music-metadata/lib/id3v2/FrameParser.d.ts +92 -0
- package/node_modules/music-metadata/lib/id3v2/FrameParser.js +470 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.d.ts +9 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.js +46 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.d.ts +14 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.js +195 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2ChapterToken.d.ts +11 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2ChapterToken.js +17 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.d.ts +33 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js +169 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2Token.d.ts +111 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2Token.js +146 -0
- package/node_modules/music-metadata/lib/iff/index.d.ts +33 -0
- package/node_modules/music-metadata/lib/iff/index.js +16 -0
- package/node_modules/music-metadata/lib/index.d.ts +22 -0
- package/node_modules/music-metadata/lib/index.js +53 -0
- package/node_modules/music-metadata/lib/lrc/LyricsParser.d.ts +9 -0
- package/node_modules/music-metadata/lib/lrc/LyricsParser.js +45 -0
- package/node_modules/music-metadata/lib/lyrics3/Lyrics3.d.ts +3 -0
- package/node_modules/music-metadata/lib/lyrics3/Lyrics3.js +17 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaDtd.d.ts +8 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaDtd.js +283 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaLoader.js +8 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaParser.d.ts +19 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaParser.js +143 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaTagMapper.d.ts +4 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaTagMapper.js +32 -0
- package/node_modules/music-metadata/lib/matroska/types.d.ts +142 -0
- package/node_modules/music-metadata/lib/matroska/types.js +27 -0
- package/node_modules/music-metadata/lib/mp4/Atom.d.ts +16 -0
- package/node_modules/music-metadata/lib/mp4/Atom.js +65 -0
- package/node_modules/music-metadata/lib/mp4/AtomToken.d.ts +487 -0
- package/node_modules/music-metadata/lib/mp4/AtomToken.js +576 -0
- package/node_modules/music-metadata/lib/mp4/MP4Parser.d.ts +32 -0
- package/node_modules/music-metadata/lib/mp4/MP4Parser.js +647 -0
- package/node_modules/music-metadata/lib/mp4/MP4TagMapper.d.ts +8 -0
- package/node_modules/music-metadata/lib/mp4/MP4TagMapper.js +123 -0
- package/node_modules/music-metadata/lib/mp4/Mp4Loader.d.ts +2 -0
- package/node_modules/music-metadata/lib/mp4/Mp4Loader.js +8 -0
- package/node_modules/music-metadata/lib/mpeg/ExtendedLameHeader.d.ts +27 -0
- package/node_modules/music-metadata/lib/mpeg/ExtendedLameHeader.js +28 -0
- package/node_modules/music-metadata/lib/mpeg/MpegLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/mpeg/MpegLoader.js +8 -0
- package/node_modules/music-metadata/lib/mpeg/MpegParser.d.ts +62 -0
- package/node_modules/music-metadata/lib/mpeg/MpegParser.js +569 -0
- package/node_modules/music-metadata/lib/mpeg/ReplayGainDataFormat.d.ts +57 -0
- package/node_modules/music-metadata/lib/mpeg/ReplayGainDataFormat.js +64 -0
- package/node_modules/music-metadata/lib/mpeg/XingTag.d.ts +44 -0
- package/node_modules/music-metadata/lib/mpeg/XingTag.js +65 -0
- package/node_modules/music-metadata/lib/musepack/MusepackConentError.d.ts +15 -0
- package/node_modules/music-metadata/lib/musepack/MusepackConentError.js +3 -0
- package/node_modules/music-metadata/lib/musepack/MusepackLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/musepack/MusepackLoader.js +8 -0
- package/node_modules/music-metadata/lib/musepack/MusepackParser.d.ts +4 -0
- package/node_modules/music-metadata/lib/musepack/MusepackParser.js +30 -0
- package/node_modules/music-metadata/lib/musepack/sv7/BitReader.d.ts +13 -0
- package/node_modules/music-metadata/lib/musepack/sv7/BitReader.js +46 -0
- package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.d.ts +8 -0
- package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.js +47 -0
- package/node_modules/music-metadata/lib/musepack/sv7/StreamVersion7.d.ts +28 -0
- package/node_modules/music-metadata/lib/musepack/sv7/StreamVersion7.js +39 -0
- package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.d.ts +6 -0
- package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.js +56 -0
- package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.d.ts +42 -0
- package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.js +82 -0
- package/node_modules/music-metadata/lib/ogg/OggLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/ogg/OggLoader.js +8 -0
- package/node_modules/music-metadata/lib/ogg/OggParser.d.ts +27 -0
- package/node_modules/music-metadata/lib/ogg/OggParser.js +125 -0
- package/node_modules/music-metadata/lib/ogg/OggToken.d.ts +83 -0
- package/node_modules/music-metadata/lib/ogg/OggToken.js +41 -0
- package/node_modules/music-metadata/lib/ogg/flac/FlacStream.d.ts +29 -0
- package/node_modules/music-metadata/lib/ogg/flac/FlacStream.js +74 -0
- package/node_modules/music-metadata/lib/ogg/opus/Opus.d.ts +63 -0
- package/node_modules/music-metadata/lib/ogg/opus/Opus.js +27 -0
- package/node_modules/music-metadata/lib/ogg/opus/OpusStream.d.ts +24 -0
- package/node_modules/music-metadata/lib/ogg/opus/OpusStream.js +56 -0
- package/node_modules/music-metadata/lib/ogg/speex/Speex.d.ts +36 -0
- package/node_modules/music-metadata/lib/ogg/speex/Speex.js +28 -0
- package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.d.ts +20 -0
- package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +31 -0
- package/node_modules/music-metadata/lib/ogg/theora/Theora.d.ts +20 -0
- package/node_modules/music-metadata/lib/ogg/theora/Theora.js +20 -0
- package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.d.ts +25 -0
- package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.js +39 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.d.ts +68 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.js +83 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.d.ts +12 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.js +29 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.d.ts +53 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.js +136 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.d.ts +7 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.js +133 -0
- package/node_modules/music-metadata/lib/riff/RiffChunk.d.ts +16 -0
- package/node_modules/music-metadata/lib/riff/RiffChunk.js +28 -0
- package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.d.ts +10 -0
- package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.js +34 -0
- package/node_modules/music-metadata/lib/type.d.ts +661 -0
- package/node_modules/music-metadata/lib/type.js +2 -0
- package/node_modules/music-metadata/lib/wav/BwfChunk.d.ts +17 -0
- package/node_modules/music-metadata/lib/wav/BwfChunk.js +26 -0
- package/node_modules/music-metadata/lib/wav/WaveChunk.d.ts +104 -0
- package/node_modules/music-metadata/lib/wav/WaveChunk.js +88 -0
- package/node_modules/music-metadata/lib/wav/WaveLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/wav/WaveLoader.js +8 -0
- package/node_modules/music-metadata/lib/wav/WaveParser.d.ts +25 -0
- package/node_modules/music-metadata/lib/wav/WaveParser.js +171 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackLoader.js +8 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackParser.d.ts +30 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackParser.js +109 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackToken.d.ts +60 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackToken.js +70 -0
- package/node_modules/music-metadata/package.json +156 -0
- package/node_modules/on-exit-leak-free/.github/dependabot.yml +12 -0
- package/node_modules/on-exit-leak-free/.github/workflows/ci.yml +46 -0
- package/node_modules/on-exit-leak-free/LICENSE +21 -0
- package/node_modules/on-exit-leak-free/README.md +54 -0
- package/node_modules/on-exit-leak-free/index.js +108 -0
- package/node_modules/on-exit-leak-free/package.json +37 -0
- package/node_modules/on-exit-leak-free/test/base.test.js +30 -0
- package/node_modules/on-exit-leak-free/test/event-emitter-leak.test.js +23 -0
- package/node_modules/on-exit-leak-free/test/fixtures/beforeExit.js +33 -0
- package/node_modules/on-exit-leak-free/test/fixtures/close.js +21 -0
- package/node_modules/on-exit-leak-free/test/fixtures/gc-not-close.js +24 -0
- package/node_modules/on-exit-leak-free/test/fixtures/unregister.js +24 -0
- package/node_modules/p-queue/dist/index.d.ts +263 -0
- package/node_modules/p-queue/dist/index.js +796 -0
- package/node_modules/p-queue/dist/lower-bound.d.ts +1 -0
- package/node_modules/p-queue/dist/lower-bound.js +18 -0
- package/node_modules/p-queue/dist/options.d.ts +137 -0
- package/node_modules/p-queue/dist/options.js +1 -0
- package/node_modules/p-queue/dist/priority-queue.d.ts +15 -0
- package/node_modules/p-queue/dist/priority-queue.js +94 -0
- package/node_modules/p-queue/dist/queue.d.ts +9 -0
- package/node_modules/p-queue/dist/queue.js +1 -0
- package/node_modules/p-queue/license +9 -0
- package/node_modules/p-queue/package.json +81 -0
- package/node_modules/p-queue/readme.md +1079 -0
- package/node_modules/p-timeout/index.d.ts +149 -0
- package/node_modules/p-timeout/index.js +95 -0
- package/node_modules/p-timeout/license +9 -0
- package/node_modules/p-timeout/package.json +52 -0
- package/node_modules/p-timeout/readme.md +192 -0
- package/node_modules/pino/.eslintignore +2 -0
- package/node_modules/pino/.eslintrc +8 -0
- package/node_modules/pino/.github/dependabot.yml +13 -0
- package/node_modules/pino/.github/workflows/bench.yml +61 -0
- package/node_modules/pino/.github/workflows/ci.yml +90 -0
- package/node_modules/pino/.github/workflows/lock-threads.yml +30 -0
- package/node_modules/pino/.github/workflows/publish-release.yml +43 -0
- package/node_modules/pino/.github/workflows/target-main.yml +23 -0
- package/node_modules/pino/.nojekyll +0 -0
- package/node_modules/pino/.prettierignore +1 -0
- package/node_modules/pino/.taprc.yaml +8 -0
- package/node_modules/pino/CNAME +1 -0
- package/node_modules/pino/CONTRIBUTING.md +30 -0
- package/node_modules/pino/LICENSE +21 -0
- package/node_modules/pino/README.md +177 -0
- package/node_modules/pino/SECURITY.md +68 -0
- package/node_modules/pino/benchmarks/basic.bench.js +95 -0
- package/node_modules/pino/benchmarks/child-child.bench.js +52 -0
- package/node_modules/pino/benchmarks/child-creation.bench.js +73 -0
- package/node_modules/pino/benchmarks/child.bench.js +62 -0
- package/node_modules/pino/benchmarks/deep-object.bench.js +88 -0
- package/node_modules/pino/benchmarks/formatters.bench.js +50 -0
- package/node_modules/pino/benchmarks/internal/custom-levels.js +67 -0
- package/node_modules/pino/benchmarks/internal/just-pino-heavy.bench.js +76 -0
- package/node_modules/pino/benchmarks/internal/just-pino.bench.js +182 -0
- package/node_modules/pino/benchmarks/internal/parent-vs-child.bench.js +75 -0
- package/node_modules/pino/benchmarks/internal/redact.bench.js +86 -0
- package/node_modules/pino/benchmarks/long-string.bench.js +81 -0
- package/node_modules/pino/benchmarks/multi-arg.bench.js +193 -0
- package/node_modules/pino/benchmarks/multistream.js +98 -0
- package/node_modules/pino/benchmarks/object.bench.js +82 -0
- package/node_modules/pino/benchmarks/utils/generate-benchmark-doc.js +36 -0
- package/node_modules/pino/benchmarks/utils/runbench.js +138 -0
- package/node_modules/pino/benchmarks/utils/wrap-log-level.js +55 -0
- package/node_modules/pino/bin.js +6 -0
- package/node_modules/pino/browser.js +505 -0
- package/node_modules/pino/build/sync-version.js +25 -0
- package/node_modules/pino/docs/api.md +1588 -0
- package/node_modules/pino/docs/asynchronous.md +40 -0
- package/node_modules/pino/docs/benchmarks.md +55 -0
- package/node_modules/pino/docs/browser.md +242 -0
- package/node_modules/pino/docs/bundling.md +40 -0
- package/node_modules/pino/docs/child-loggers.md +95 -0
- package/node_modules/pino/docs/diagnostics.md +16 -0
- package/node_modules/pino/docs/ecosystem.md +86 -0
- package/node_modules/pino/docs/help.md +345 -0
- package/node_modules/pino/docs/lts.md +64 -0
- package/node_modules/pino/docs/pretty.md +35 -0
- package/node_modules/pino/docs/redaction.md +135 -0
- package/node_modules/pino/docs/transports.md +1263 -0
- package/node_modules/pino/docs/web.md +309 -0
- package/node_modules/pino/docsify/sidebar.md +26 -0
- package/node_modules/pino/examples/basic.js +43 -0
- package/node_modules/pino/examples/transport.js +68 -0
- package/node_modules/pino/favicon-16x16.png +0 -0
- package/node_modules/pino/favicon-32x32.png +0 -0
- package/node_modules/pino/favicon.ico +0 -0
- package/node_modules/pino/file.js +12 -0
- package/node_modules/pino/inc-version.sh +42 -0
- package/node_modules/pino/index.html +55 -0
- package/node_modules/pino/lib/caller.js +30 -0
- package/node_modules/pino/lib/constants.js +28 -0
- package/node_modules/pino/lib/deprecations.js +8 -0
- package/node_modules/pino/lib/levels.js +241 -0
- package/node_modules/pino/lib/meta.js +3 -0
- package/node_modules/pino/lib/multistream.js +203 -0
- package/node_modules/pino/lib/proto.js +260 -0
- package/node_modules/pino/lib/redaction.js +114 -0
- package/node_modules/pino/lib/symbols.js +74 -0
- package/node_modules/pino/lib/time.js +39 -0
- package/node_modules/pino/lib/tools.js +436 -0
- package/node_modules/pino/lib/transport-stream.js +56 -0
- package/node_modules/pino/lib/transport.js +167 -0
- package/node_modules/pino/lib/worker.js +194 -0
- package/node_modules/pino/package.json +122 -0
- package/node_modules/pino/pino-banner.png +0 -0
- package/node_modules/pino/pino-logo-hire.png +0 -0
- package/node_modules/pino/pino-tree.png +0 -0
- package/node_modules/pino/pino.d.ts +904 -0
- package/node_modules/pino/pino.js +234 -0
- package/node_modules/pino/pretty-demo.png +0 -0
- package/node_modules/pino/test/basic.test.js +876 -0
- package/node_modules/pino/test/broken-pipe.test.js +57 -0
- package/node_modules/pino/test/browser-child.test.js +132 -0
- package/node_modules/pino/test/browser-disabled.test.js +87 -0
- package/node_modules/pino/test/browser-early-console-freeze.test.js +12 -0
- package/node_modules/pino/test/browser-is-level-enabled.test.js +104 -0
- package/node_modules/pino/test/browser-levels.test.js +241 -0
- package/node_modules/pino/test/browser-serializers.test.js +352 -0
- package/node_modules/pino/test/browser-timestamp.test.js +88 -0
- package/node_modules/pino/test/browser-transmit.test.js +417 -0
- package/node_modules/pino/test/browser.test.js +679 -0
- package/node_modules/pino/test/complex-objects.test.js +34 -0
- package/node_modules/pino/test/crlf.test.js +32 -0
- package/node_modules/pino/test/custom-levels.test.js +253 -0
- package/node_modules/pino/test/diagnostics.test.js +107 -0
- package/node_modules/pino/test/error.test.js +398 -0
- package/node_modules/pino/test/errorKey.test.js +34 -0
- package/node_modules/pino/test/escaping.test.js +91 -0
- package/node_modules/pino/test/esm/esm.mjs +12 -0
- package/node_modules/pino/test/esm/index.test.js +34 -0
- package/node_modules/pino/test/esm/named-exports.mjs +27 -0
- package/node_modules/pino/test/exit.test.js +77 -0
- package/node_modules/pino/test/fixtures/broken-pipe/basic.js +9 -0
- package/node_modules/pino/test/fixtures/broken-pipe/destination.js +10 -0
- package/node_modules/pino/test/fixtures/broken-pipe/syncfalse.js +12 -0
- package/node_modules/pino/test/fixtures/console-transport.js +13 -0
- package/node_modules/pino/test/fixtures/crashing-transport.js +13 -0
- package/node_modules/pino/test/fixtures/default-exit.js +8 -0
- package/node_modules/pino/test/fixtures/destination-exit.js +8 -0
- package/node_modules/pino/test/fixtures/eval/index.js +13 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/14-files.js +3 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/2-files.js +3 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file1.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file10.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file11.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file12.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file13.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file14.js +11 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file2.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file3.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file4.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file5.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file6.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file7.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file8.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file9.js +5 -0
- package/node_modules/pino/test/fixtures/noop-transport.js +10 -0
- package/node_modules/pino/test/fixtures/pretty/null-prototype.js +8 -0
- package/node_modules/pino/test/fixtures/stdout-hack-protection.js +11 -0
- package/node_modules/pino/test/fixtures/syncfalse-child.js +6 -0
- package/node_modules/pino/test/fixtures/syncfalse-exit.js +9 -0
- package/node_modules/pino/test/fixtures/syncfalse-flush-exit.js +10 -0
- package/node_modules/pino/test/fixtures/syncfalse.js +6 -0
- package/node_modules/pino/test/fixtures/syntax-error-esm.mjs +2 -0
- package/node_modules/pino/test/fixtures/to-file-transport-with-transform.js +20 -0
- package/node_modules/pino/test/fixtures/to-file-transport.js +13 -0
- package/node_modules/pino/test/fixtures/to-file-transport.mjs +8 -0
- package/node_modules/pino/test/fixtures/transport/index.js +12 -0
- package/node_modules/pino/test/fixtures/transport/package.json +5 -0
- package/node_modules/pino/test/fixtures/transport-exit-immediately-with-async-dest.js +16 -0
- package/node_modules/pino/test/fixtures/transport-exit-immediately.js +11 -0
- package/node_modules/pino/test/fixtures/transport-exit-on-ready.js +12 -0
- package/node_modules/pino/test/fixtures/transport-main.js +9 -0
- package/node_modules/pino/test/fixtures/transport-many-lines.js +29 -0
- package/node_modules/pino/test/fixtures/transport-string-stdout.js +9 -0
- package/node_modules/pino/test/fixtures/transport-transform.js +21 -0
- package/node_modules/pino/test/fixtures/transport-uses-pino-config.js +33 -0
- package/node_modules/pino/test/fixtures/transport-with-on-exit.js +12 -0
- package/node_modules/pino/test/fixtures/transport-worker-data.js +19 -0
- package/node_modules/pino/test/fixtures/transport-worker.js +15 -0
- package/node_modules/pino/test/fixtures/transport-wrong-export-type.js +3 -0
- package/node_modules/pino/test/fixtures/ts/to-file-transport-with-transform.ts +18 -0
- package/node_modules/pino/test/fixtures/ts/to-file-transport.ts +11 -0
- package/node_modules/pino/test/fixtures/ts/transpile.cjs +36 -0
- package/node_modules/pino/test/fixtures/ts/transport-exit-immediately-with-async-dest.ts +15 -0
- package/node_modules/pino/test/fixtures/ts/transport-exit-immediately.ts +10 -0
- package/node_modules/pino/test/fixtures/ts/transport-exit-on-ready.ts +11 -0
- package/node_modules/pino/test/fixtures/ts/transport-main.ts +8 -0
- package/node_modules/pino/test/fixtures/ts/transport-string-stdout.ts +8 -0
- package/node_modules/pino/test/fixtures/ts/transport-worker.ts +14 -0
- package/node_modules/pino/test/formatters.test.js +355 -0
- package/node_modules/pino/test/helper.d.ts +4 -0
- package/node_modules/pino/test/helper.js +128 -0
- package/node_modules/pino/test/hooks.test.js +118 -0
- package/node_modules/pino/test/http.test.js +242 -0
- package/node_modules/pino/test/internals/version.test.js +15 -0
- package/node_modules/pino/test/is-level-enabled.test.js +185 -0
- package/node_modules/pino/test/jest/basic.spec.js +10 -0
- package/node_modules/pino/test/levels.test.js +772 -0
- package/node_modules/pino/test/metadata.test.js +106 -0
- package/node_modules/pino/test/mixin-merge-strategy.test.js +55 -0
- package/node_modules/pino/test/mixin.test.js +218 -0
- package/node_modules/pino/test/multistream.test.js +723 -0
- package/node_modules/pino/test/pkg/index.js +46 -0
- package/node_modules/pino/test/pkg/pkg.config.json +16 -0
- package/node_modules/pino/test/pkg/pkg.test.js +58 -0
- package/node_modules/pino/test/redact.test.js +847 -0
- package/node_modules/pino/test/serializers.test.js +253 -0
- package/node_modules/pino/test/sinon-child-logger.test.js +75 -0
- package/node_modules/pino/test/stdout-protection.test.js +39 -0
- package/node_modules/pino/test/syncfalse.test.js +188 -0
- package/node_modules/pino/test/timestamp-nano.test.js +35 -0
- package/node_modules/pino/test/timestamp.test.js +122 -0
- package/node_modules/pino/test/transport/big.test.js +43 -0
- package/node_modules/pino/test/transport/bundlers-support.test.js +97 -0
- package/node_modules/pino/test/transport/caller.test.js +23 -0
- package/node_modules/pino/test/transport/core.test.js +643 -0
- package/node_modules/pino/test/transport/core.test.ts +236 -0
- package/node_modules/pino/test/transport/core.transpiled.test.ts +112 -0
- package/node_modules/pino/test/transport/crash.test.js +34 -0
- package/node_modules/pino/test/transport/module-link.test.js +239 -0
- package/node_modules/pino/test/transport/pipeline.test.js +135 -0
- package/node_modules/pino/test/transport/repl.test.js +14 -0
- package/node_modules/pino/test/transport/syncTrue.test.js +55 -0
- package/node_modules/pino/test/transport/syncfalse.test.js +68 -0
- package/node_modules/pino/test/transport/targets.test.js +44 -0
- package/node_modules/pino/test/transport/uses-pino-config.test.js +167 -0
- package/node_modules/pino/test/transport-stream.test.js +26 -0
- package/node_modules/pino/test/types/pino-import.test-d.cts +29 -0
- package/node_modules/pino/test/types/pino-multistream.test-d.ts +28 -0
- package/node_modules/pino/test/types/pino-top-export.test-d.ts +36 -0
- package/node_modules/pino/test/types/pino-transport.test-d.ts +145 -0
- package/node_modules/pino/test/types/pino-type-only.test-d.ts +66 -0
- package/node_modules/pino/test/types/pino.test-d.ts +585 -0
- package/node_modules/pino/test/types/pino.ts +90 -0
- package/node_modules/pino/tsconfig.json +14 -0
- package/node_modules/pino-abstract-transport/.github/dependabot.yml +13 -0
- package/node_modules/pino-abstract-transport/.github/workflows/ci.yml +97 -0
- package/node_modules/pino-abstract-transport/.husky/pre-commit +4 -0
- package/node_modules/pino-abstract-transport/LICENSE +21 -0
- package/node_modules/pino-abstract-transport/README.md +172 -0
- package/node_modules/pino-abstract-transport/index.d.ts +122 -0
- package/node_modules/pino-abstract-transport/index.js +128 -0
- package/node_modules/pino-abstract-transport/package.json +40 -0
- package/node_modules/pino-abstract-transport/test/base.test.js +445 -0
- package/node_modules/pino-abstract-transport/test/fixtures/transport-async-iteration.js +22 -0
- package/node_modules/pino-abstract-transport/test/fixtures/transport-on-data.js +22 -0
- package/node_modules/pino-abstract-transport/test/fixtures/transport-transform.js +24 -0
- package/node_modules/pino-abstract-transport/test/fixtures/worker-pipeline.js +15 -0
- package/node_modules/pino-abstract-transport/test/types/index.test-d.ts +31 -0
- package/node_modules/pino-abstract-transport/test/worker.test.js +357 -0
- package/node_modules/pino-std-serializers/.editorconfig +13 -0
- package/node_modules/pino-std-serializers/.github/dependabot.yml +13 -0
- package/node_modules/pino-std-serializers/.github/workflows/ci.yml +81 -0
- package/node_modules/pino-std-serializers/LICENSE +7 -0
- package/node_modules/pino-std-serializers/Readme.md +182 -0
- package/node_modules/pino-std-serializers/eslint.config.js +7 -0
- package/node_modules/pino-std-serializers/index.d.ts +145 -0
- package/node_modules/pino-std-serializers/index.js +36 -0
- package/node_modules/pino-std-serializers/lib/err-helpers.js +118 -0
- package/node_modules/pino-std-serializers/lib/err-proto.js +48 -0
- package/node_modules/pino-std-serializers/lib/err-with-cause.js +48 -0
- package/node_modules/pino-std-serializers/lib/err.js +45 -0
- package/node_modules/pino-std-serializers/lib/req.js +100 -0
- package/node_modules/pino-std-serializers/lib/res.js +47 -0
- package/node_modules/pino-std-serializers/package.json +42 -0
- package/node_modules/pino-std-serializers/test/err-with-cause.test.js +187 -0
- package/node_modules/pino-std-serializers/test/err.test.js +200 -0
- package/node_modules/pino-std-serializers/test/req.test.js +477 -0
- package/node_modules/pino-std-serializers/test/res.test.js +120 -0
- package/node_modules/pino-std-serializers/test/types/index.test-d.ts +71 -0
- package/node_modules/pino-std-serializers/tsconfig.json +13 -0
- package/node_modules/process-warning/.gitattributes +2 -0
- package/node_modules/process-warning/.github/dependabot.yml +13 -0
- package/node_modules/process-warning/.github/workflows/ci.yml +22 -0
- package/node_modules/process-warning/LICENSE +21 -0
- package/node_modules/process-warning/README.md +118 -0
- package/node_modules/process-warning/benchmarks/warn.js +25 -0
- package/node_modules/process-warning/eslint.config.js +6 -0
- package/node_modules/process-warning/examples/example.js +11 -0
- package/node_modules/process-warning/index.js +124 -0
- package/node_modules/process-warning/package.json +73 -0
- package/node_modules/process-warning/test/emit-interpolated-string.test.js +34 -0
- package/node_modules/process-warning/test/emit-once-only.test.js +33 -0
- package/node_modules/process-warning/test/emit-reset.test.js +40 -0
- package/node_modules/process-warning/test/emit-set.test.js +35 -0
- package/node_modules/process-warning/test/emit-unlimited.test.js +42 -0
- package/node_modules/process-warning/test/index.test.js +99 -0
- package/node_modules/process-warning/test/issue-88.test.js +38 -0
- package/node_modules/process-warning/test/jest.test.js +24 -0
- package/node_modules/process-warning/test/no-warnings.test.js +80 -0
- package/node_modules/process-warning/test/promise.js +10 -0
- package/node_modules/process-warning/types/index.d.ts +37 -0
- package/node_modules/process-warning/types/index.test-d.ts +36 -0
- package/node_modules/protobufjs/LICENSE +39 -0
- package/node_modules/protobufjs/README.md +727 -0
- package/node_modules/protobufjs/dist/light/protobuf.js +8041 -0
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
- package/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2791 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
- package/node_modules/protobufjs/dist/protobuf.js +9865 -0
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -0
- package/node_modules/protobufjs/dist/protobuf.min.js +8 -0
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
- package/node_modules/protobufjs/ext/debug/README.md +4 -0
- package/node_modules/protobufjs/ext/debug/index.js +71 -0
- package/node_modules/protobufjs/ext/descriptor/README.md +72 -0
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +195 -0
- package/node_modules/protobufjs/ext/descriptor/index.js +1186 -0
- package/node_modules/protobufjs/ext/descriptor/test.js +54 -0
- package/node_modules/protobufjs/google/LICENSE +27 -0
- package/node_modules/protobufjs/google/README.md +1 -0
- package/node_modules/protobufjs/google/api/annotations.json +83 -0
- package/node_modules/protobufjs/google/api/annotations.proto +11 -0
- package/node_modules/protobufjs/google/api/http.json +86 -0
- package/node_modules/protobufjs/google/api/http.proto +31 -0
- package/node_modules/protobufjs/google/protobuf/api.json +118 -0
- package/node_modules/protobufjs/google/protobuf/api.proto +34 -0
- package/node_modules/protobufjs/google/protobuf/descriptor.json +1382 -0
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +535 -0
- package/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
- package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
- package/node_modules/protobufjs/google/protobuf/type.json +202 -0
- package/node_modules/protobufjs/google/protobuf/type.proto +89 -0
- package/node_modules/protobufjs/index.d.ts +2832 -0
- package/node_modules/protobufjs/index.js +4 -0
- package/node_modules/protobufjs/light.d.ts +2 -0
- package/node_modules/protobufjs/light.js +4 -0
- package/node_modules/protobufjs/minimal.d.ts +2 -0
- package/node_modules/protobufjs/minimal.js +4 -0
- package/node_modules/protobufjs/package.json +119 -0
- package/node_modules/protobufjs/scripts/postinstall.js +32 -0
- package/node_modules/protobufjs/src/common.js +399 -0
- package/node_modules/protobufjs/src/converter.js +318 -0
- package/node_modules/protobufjs/src/decoder.js +135 -0
- package/node_modules/protobufjs/src/encoder.js +103 -0
- package/node_modules/protobufjs/src/enum.js +226 -0
- package/node_modules/protobufjs/src/field.js +453 -0
- package/node_modules/protobufjs/src/index-light.js +104 -0
- package/node_modules/protobufjs/src/index-minimal.js +36 -0
- package/node_modules/protobufjs/src/index.js +12 -0
- package/node_modules/protobufjs/src/mapfield.js +126 -0
- package/node_modules/protobufjs/src/message.js +143 -0
- package/node_modules/protobufjs/src/method.js +160 -0
- package/node_modules/protobufjs/src/namespace.js +558 -0
- package/node_modules/protobufjs/src/object.js +382 -0
- package/node_modules/protobufjs/src/oneof.js +222 -0
- package/node_modules/protobufjs/src/parse.js +989 -0
- package/node_modules/protobufjs/src/reader.js +426 -0
- package/node_modules/protobufjs/src/reader_buffer.js +51 -0
- package/node_modules/protobufjs/src/root.js +412 -0
- package/node_modules/protobufjs/src/roots.js +18 -0
- package/node_modules/protobufjs/src/rpc/service.js +142 -0
- package/node_modules/protobufjs/src/rpc.js +36 -0
- package/node_modules/protobufjs/src/service.js +193 -0
- package/node_modules/protobufjs/src/tokenize.js +416 -0
- package/node_modules/protobufjs/src/type.js +632 -0
- package/node_modules/protobufjs/src/types.js +196 -0
- package/node_modules/protobufjs/src/typescript.jsdoc +15 -0
- package/node_modules/protobufjs/src/util/fs.js +11 -0
- package/node_modules/protobufjs/src/util/longbits.js +200 -0
- package/node_modules/protobufjs/src/util/minimal.js +491 -0
- package/node_modules/protobufjs/src/util/patterns.js +7 -0
- package/node_modules/protobufjs/src/util.js +230 -0
- package/node_modules/protobufjs/src/verifier.js +180 -0
- package/node_modules/protobufjs/src/wrappers.js +107 -0
- package/node_modules/protobufjs/src/writer.js +467 -0
- package/node_modules/protobufjs/src/writer_buffer.js +85 -0
- package/node_modules/protobufjs/tsconfig.json +8 -0
- package/node_modules/qified/LICENSE +19 -0
- package/node_modules/qified/README.md +677 -0
- package/node_modules/qified/dist/index.cjs +662 -0
- package/node_modules/qified/dist/index.d.cts +626 -0
- package/node_modules/qified/dist/index.d.mts +626 -0
- package/node_modules/qified/dist/index.mjs +657 -0
- package/node_modules/qified/node_modules/hookified/LICENSE +19 -0
- package/node_modules/qified/node_modules/hookified/README.md +1792 -0
- package/node_modules/qified/node_modules/hookified/dist/browser/index.global.js +951 -0
- package/node_modules/qified/node_modules/hookified/dist/browser/index.global.js.map +1 -0
- package/node_modules/qified/node_modules/hookified/dist/browser/index.js +943 -0
- package/node_modules/qified/node_modules/hookified/dist/browser/index.js.map +1 -0
- package/node_modules/qified/node_modules/hookified/dist/node/index.cjs +908 -0
- package/node_modules/qified/node_modules/hookified/dist/node/index.d.cts +771 -0
- package/node_modules/qified/node_modules/hookified/dist/node/index.d.ts +771 -0
- package/node_modules/qified/node_modules/hookified/dist/node/index.js +903 -0
- package/node_modules/qified/node_modules/hookified/package.json +94 -0
- package/node_modules/qified/package.json +50 -0
- package/node_modules/quick-format-unescaped/.github/workflows/ci.yml +21 -0
- package/node_modules/quick-format-unescaped/LICENSE +21 -0
- package/node_modules/quick-format-unescaped/benchmark.js +24 -0
- package/node_modules/quick-format-unescaped/index.js +109 -0
- package/node_modules/quick-format-unescaped/package.json +29 -0
- package/node_modules/quick-format-unescaped/readme.md +66 -0
- package/node_modules/quick-format-unescaped/test/index.js +136 -0
- package/node_modules/real-require/LICENSE.md +21 -0
- package/node_modules/real-require/README.md +51 -0
- package/node_modules/real-require/package.json +49 -0
- package/node_modules/real-require/src/index.js +14 -0
- package/node_modules/safe-stable-stringify/LICENSE +21 -0
- package/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/node_modules/safe-stable-stringify/index.d.ts +22 -0
- package/node_modules/safe-stable-stringify/index.js +625 -0
- package/node_modules/safe-stable-stringify/package.json +65 -0
- package/node_modules/safe-stable-stringify/readme.md +179 -0
- package/node_modules/sonic-boom/.eslintignore +2 -0
- package/node_modules/sonic-boom/.taprc +3 -0
- package/node_modules/sonic-boom/LICENSE +21 -0
- package/node_modules/sonic-boom/README.md +153 -0
- package/node_modules/sonic-boom/bench.js +98 -0
- package/node_modules/sonic-boom/check.js +18 -0
- package/node_modules/sonic-boom/example.js +8 -0
- package/node_modules/sonic-boom/fixtures/firehose.js +22 -0
- package/node_modules/sonic-boom/index.js +733 -0
- package/node_modules/sonic-boom/package.json +52 -0
- package/node_modules/sonic-boom/test/destroy.test.js +49 -0
- package/node_modules/sonic-boom/test/end.test.js +98 -0
- package/node_modules/sonic-boom/test/flush-sync.test.js +140 -0
- package/node_modules/sonic-boom/test/flush.test.js +419 -0
- package/node_modules/sonic-boom/test/fsync.test.js +63 -0
- package/node_modules/sonic-boom/test/helper.js +42 -0
- package/node_modules/sonic-boom/test/minlength.test.js +35 -0
- package/node_modules/sonic-boom/test/mode.test.js +116 -0
- package/node_modules/sonic-boom/test/periodicflush.test.js +61 -0
- package/node_modules/sonic-boom/test/reopen.test.js +239 -0
- package/node_modules/sonic-boom/test/retry.test.js +414 -0
- package/node_modules/sonic-boom/test/sync.test.js +261 -0
- package/node_modules/sonic-boom/test/write.test.js +515 -0
- package/node_modules/sonic-boom/types/index.d.ts +63 -0
- package/node_modules/sonic-boom/types/tests/test.ts +4 -0
- package/node_modules/split2/LICENSE +13 -0
- package/node_modules/split2/README.md +85 -0
- package/node_modules/split2/bench.js +27 -0
- package/node_modules/split2/index.js +141 -0
- package/node_modules/split2/package.json +39 -0
- package/node_modules/split2/test.js +409 -0
- package/node_modules/strtok3/LICENSE.txt +21 -0
- package/node_modules/strtok3/README.md +399 -0
- package/node_modules/strtok3/lib/AbstractTokenizer.d.ts +76 -0
- package/node_modules/strtok3/lib/AbstractTokenizer.js +111 -0
- package/node_modules/strtok3/lib/BlobTokenizer.d.ts +29 -0
- package/node_modules/strtok3/lib/BlobTokenizer.js +53 -0
- package/node_modules/strtok3/lib/BufferTokenizer.d.ts +29 -0
- package/node_modules/strtok3/lib/BufferTokenizer.js +52 -0
- package/node_modules/strtok3/lib/FileTokenizer.d.ts +37 -0
- package/node_modules/strtok3/lib/FileTokenizer.js +61 -0
- package/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +34 -0
- package/node_modules/strtok3/lib/ReadStreamTokenizer.js +107 -0
- package/node_modules/strtok3/lib/core.d.ts +40 -0
- package/node_modules/strtok3/lib/core.js +62 -0
- package/node_modules/strtok3/lib/index.d.ts +16 -0
- package/node_modules/strtok3/lib/index.js +22 -0
- package/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +54 -0
- package/node_modules/strtok3/lib/stream/AbstractStreamReader.js +71 -0
- package/node_modules/strtok3/lib/stream/Deferred.d.ts +6 -0
- package/node_modules/strtok3/lib/stream/Deferred.js +10 -0
- package/node_modules/strtok3/lib/stream/Errors.d.ts +10 -0
- package/node_modules/strtok3/lib/stream/Errors.js +16 -0
- package/node_modules/strtok3/lib/stream/StreamReader.d.ts +29 -0
- package/node_modules/strtok3/lib/stream/StreamReader.js +83 -0
- package/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +14 -0
- package/node_modules/strtok3/lib/stream/WebStreamByobReader.js +27 -0
- package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +19 -0
- package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +62 -0
- package/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +14 -0
- package/node_modules/strtok3/lib/stream/WebStreamReader.js +13 -0
- package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +5 -0
- package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +19 -0
- package/node_modules/strtok3/lib/stream/index.d.ts +6 -0
- package/node_modules/strtok3/lib/stream/index.js +5 -0
- package/node_modules/strtok3/lib/types.d.ts +139 -0
- package/node_modules/strtok3/lib/types.js +1 -0
- package/node_modules/strtok3/package.json +94 -0
- package/node_modules/thread-stream/.claude/settings.local.json +15 -0
- package/node_modules/thread-stream/.github/dependabot.yml +13 -0
- package/node_modules/thread-stream/.github/workflows/ci.yml +94 -0
- package/node_modules/thread-stream/.husky/pre-commit +4 -0
- package/node_modules/thread-stream/.taprc +4 -0
- package/node_modules/thread-stream/CLAUDE.md +64 -0
- package/node_modules/thread-stream/LICENSE +21 -0
- package/node_modules/thread-stream/README.md +136 -0
- package/node_modules/thread-stream/bench.js +85 -0
- package/node_modules/thread-stream/index.d.ts +92 -0
- package/node_modules/thread-stream/index.js +565 -0
- package/node_modules/thread-stream/lib/indexes.js +11 -0
- package/node_modules/thread-stream/lib/wait.js +61 -0
- package/node_modules/thread-stream/lib/worker.js +186 -0
- package/node_modules/thread-stream/package.json +57 -0
- package/node_modules/thread-stream/test/base.test.js +258 -0
- package/node_modules/thread-stream/test/bench.test.js +38 -0
- package/node_modules/thread-stream/test/bundlers.test.js +60 -0
- package/node_modules/thread-stream/test/close-on-gc.js +37 -0
- package/node_modules/thread-stream/test/commonjs-fallback.test.js +80 -0
- package/node_modules/thread-stream/test/context.test.js +21 -0
- package/node_modules/thread-stream/test/create-and-exit.js +16 -0
- package/node_modules/thread-stream/test/custom-worker.js +9 -0
- package/node_modules/thread-stream/test/dir with spaces/test-package.zip +0 -0
- package/node_modules/thread-stream/test/emit-event.js +22 -0
- package/node_modules/thread-stream/test/end.test.js +61 -0
- package/node_modules/thread-stream/test/error.js +14 -0
- package/node_modules/thread-stream/test/esm.test.mjs +47 -0
- package/node_modules/thread-stream/test/event.test.js +23 -0
- package/node_modules/thread-stream/test/exit.js +14 -0
- package/node_modules/thread-stream/test/get-context.js +22 -0
- package/node_modules/thread-stream/test/helper.d.ts +1 -0
- package/node_modules/thread-stream/test/helper.js +35 -0
- package/node_modules/thread-stream/test/indexes.test.js +11 -0
- package/node_modules/thread-stream/test/message-without-code.js +19 -0
- package/node_modules/thread-stream/test/multibyte-chars.test.mjs +74 -0
- package/node_modules/thread-stream/test/never-drain.test.js +57 -0
- package/node_modules/thread-stream/test/on-message.js +18 -0
- package/node_modules/thread-stream/test/pkg/index.js +37 -0
- package/node_modules/thread-stream/test/pkg/pkg.config.json +15 -0
- package/node_modules/thread-stream/test/pkg/pkg.test.js +46 -0
- package/node_modules/thread-stream/test/port.js +16 -0
- package/node_modules/thread-stream/test/post-message.test.js +24 -0
- package/node_modules/thread-stream/test/string-limit-2.test.js +41 -0
- package/node_modules/thread-stream/test/string-limit.test.js +42 -0
- package/node_modules/thread-stream/test/syntax-error.mjs +2 -0
- package/node_modules/thread-stream/test/thread-management.test.js +121 -0
- package/node_modules/thread-stream/test/to-file-on-destroy.js +23 -0
- package/node_modules/thread-stream/test/to-file-on-final.js +24 -0
- package/node_modules/thread-stream/test/to-file.js +12 -0
- package/node_modules/thread-stream/test/to-file.mjs +8 -0
- package/node_modules/thread-stream/test/to-next.js +9 -0
- package/node_modules/thread-stream/test/transpiled.test.js +30 -0
- package/node_modules/thread-stream/test/ts/to-file.ts +10 -0
- package/node_modules/thread-stream/test/ts/transpile.sh +19 -0
- package/node_modules/thread-stream/test/ts-commonjs-default-export.zip +0 -0
- package/node_modules/thread-stream/test/ts.test.ts +33 -0
- package/node_modules/thread-stream/test/uncaughtException.js +21 -0
- package/node_modules/thread-stream/test/unhandledRejection.js +21 -0
- package/node_modules/thread-stream/test/watch-mode.test.js +28 -0
- package/node_modules/thread-stream/test/yarnrc.yml +7 -0
- package/node_modules/thread-stream/tsconfig.json +8 -0
- package/node_modules/token-types/LICENSE.txt +9 -0
- package/node_modules/token-types/README.md +120 -0
- package/node_modules/token-types/lib/index.d.ts +135 -0
- package/node_modules/token-types/lib/index.js +401 -0
- package/node_modules/token-types/package.json +81 -0
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +38 -0
- package/node_modules/tslib/modules/index.js +70 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +460 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +402 -0
- package/node_modules/tslib/tslib.es6.mjs +401 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +484 -0
- package/node_modules/uint8array-extras/index.d.ts +331 -0
- package/node_modules/uint8array-extras/index.js +318 -0
- package/node_modules/uint8array-extras/license +9 -0
- package/node_modules/uint8array-extras/package.json +54 -0
- package/node_modules/uint8array-extras/readme.md +318 -0
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +30 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +129 -0
- package/node_modules/undici-types/connector.d.ts +36 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +30 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/node_modules/undici-types/dispatcher.d.ts +253 -0
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici-types/errors.d.ts +177 -0
- package/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/undici-types/fetch.d.ts +231 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +14 -0
- package/node_modules/undici-types/header.d.ts +165 -0
- package/node_modules/undici-types/index.d.ts +93 -0
- package/node_modules/undici-types/interceptors.d.ts +80 -0
- package/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +27 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
- package/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +29 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/undici-types/proxy-agent.d.ts +29 -0
- package/node_modules/undici-types/readable.d.ts +68 -0
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +346 -0
- package/node_modules/undici-types/websocket.d.ts +188 -0
- package/node_modules/whatsapp-rust-bridge/README.md +19 -0
- package/node_modules/whatsapp-rust-bridge/dist/index.d.ts +2 -0
- package/node_modules/whatsapp-rust-bridge/dist/index.js +2015 -0
- package/node_modules/whatsapp-rust-bridge/package.json +45 -0
- package/node_modules/whatsapp-rust-bridge/pkg/whatsapp_rust_bridge.d.ts +446 -0
- package/node_modules/win-guid/LICENSE.txt +9 -0
- package/node_modules/win-guid/README.md +113 -0
- package/node_modules/win-guid/lib/guid.d.ts +20 -0
- package/node_modules/win-guid/lib/guid.js +107 -0
- package/node_modules/win-guid/package.json +55 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +22 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +19 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/node_modules/ws/lib/receiver.js +760 -0
- package/node_modules/ws/lib/sender.js +607 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +562 -0
- package/node_modules/ws/lib/websocket.js +1571 -0
- package/node_modules/ws/package.json +70 -0
- package/node_modules/ws/wrapper.mjs +21 -0
- package/package.json +28 -0
|
@@ -0,0 +1,1157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
Cacheable: () => Cacheable,
|
|
24
|
+
CacheableEvents: () => CacheableEvents,
|
|
25
|
+
CacheableHooks: () => CacheableHooks,
|
|
26
|
+
CacheableMemory: () => import_memory2.CacheableMemory,
|
|
27
|
+
CacheableStats: () => import_utils2.Stats,
|
|
28
|
+
CacheableSync: () => CacheableSync,
|
|
29
|
+
CacheableSyncEvents: () => CacheableSyncEvents,
|
|
30
|
+
HashAlgorithm: () => import_utils2.HashAlgorithm,
|
|
31
|
+
Keyv: () => import_keyv2.Keyv,
|
|
32
|
+
KeyvCacheableMemory: () => import_memory2.KeyvCacheableMemory,
|
|
33
|
+
KeyvHooks: () => import_keyv2.KeyvHooks,
|
|
34
|
+
calculateTtlFromExpiration: () => import_utils2.calculateTtlFromExpiration,
|
|
35
|
+
createKeyv: () => import_memory2.createKeyv,
|
|
36
|
+
getCascadingTtl: () => import_utils2.getCascadingTtl,
|
|
37
|
+
getOrSet: () => import_utils2.getOrSet,
|
|
38
|
+
hash: () => import_utils2.hash,
|
|
39
|
+
shorthandToMilliseconds: () => import_utils2.shorthandToMilliseconds,
|
|
40
|
+
shorthandToTime: () => import_utils2.shorthandToTime,
|
|
41
|
+
wrap: () => import_utils2.wrap,
|
|
42
|
+
wrapSync: () => import_utils2.wrapSync
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(index_exports);
|
|
45
|
+
var import_memory = require("@cacheable/memory");
|
|
46
|
+
var import_utils = require("@cacheable/utils");
|
|
47
|
+
var import_hookified2 = require("hookified");
|
|
48
|
+
var import_keyv = require("keyv");
|
|
49
|
+
|
|
50
|
+
// src/enums.ts
|
|
51
|
+
var CacheableHooks = /* @__PURE__ */ ((CacheableHooks2) => {
|
|
52
|
+
CacheableHooks2["BEFORE_SET"] = "BEFORE_SET";
|
|
53
|
+
CacheableHooks2["AFTER_SET"] = "AFTER_SET";
|
|
54
|
+
CacheableHooks2["BEFORE_SET_MANY"] = "BEFORE_SET_MANY";
|
|
55
|
+
CacheableHooks2["AFTER_SET_MANY"] = "AFTER_SET_MANY";
|
|
56
|
+
CacheableHooks2["BEFORE_GET"] = "BEFORE_GET";
|
|
57
|
+
CacheableHooks2["AFTER_GET"] = "AFTER_GET";
|
|
58
|
+
CacheableHooks2["BEFORE_GET_MANY"] = "BEFORE_GET_MANY";
|
|
59
|
+
CacheableHooks2["AFTER_GET_MANY"] = "AFTER_GET_MANY";
|
|
60
|
+
CacheableHooks2["BEFORE_SECONDARY_SETS_PRIMARY"] = "BEFORE_SECONDARY_SETS_PRIMARY";
|
|
61
|
+
return CacheableHooks2;
|
|
62
|
+
})(CacheableHooks || {});
|
|
63
|
+
var CacheableEvents = /* @__PURE__ */ ((CacheableEvents2) => {
|
|
64
|
+
CacheableEvents2["ERROR"] = "error";
|
|
65
|
+
CacheableEvents2["CACHE_HIT"] = "cache:hit";
|
|
66
|
+
CacheableEvents2["CACHE_MISS"] = "cache:miss";
|
|
67
|
+
return CacheableEvents2;
|
|
68
|
+
})(CacheableEvents || {});
|
|
69
|
+
|
|
70
|
+
// src/sync.ts
|
|
71
|
+
var import_hookified = require("hookified");
|
|
72
|
+
var import_qified = require("qified");
|
|
73
|
+
var CacheableSyncEvents = /* @__PURE__ */ ((CacheableSyncEvents2) => {
|
|
74
|
+
CacheableSyncEvents2["ERROR"] = "error";
|
|
75
|
+
CacheableSyncEvents2["SET"] = "cache:set";
|
|
76
|
+
CacheableSyncEvents2["DELETE"] = "cache:delete";
|
|
77
|
+
return CacheableSyncEvents2;
|
|
78
|
+
})(CacheableSyncEvents || {});
|
|
79
|
+
var CacheableSync = class extends import_hookified.Hookified {
|
|
80
|
+
_qified = new import_qified.Qified();
|
|
81
|
+
_namespace;
|
|
82
|
+
_storage;
|
|
83
|
+
_cacheId;
|
|
84
|
+
/**
|
|
85
|
+
* Creates an instance of CacheableSync
|
|
86
|
+
* @param options - Configuration options for CacheableSync
|
|
87
|
+
*/
|
|
88
|
+
constructor(options) {
|
|
89
|
+
super(options);
|
|
90
|
+
this._namespace = options.namespace;
|
|
91
|
+
this._qified = this.createQified(options.qified);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Gets the Qified instance used for synchronization
|
|
95
|
+
* @returns The Qified instance
|
|
96
|
+
*/
|
|
97
|
+
get qified() {
|
|
98
|
+
return this._qified;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Sets the Qified instance used for synchronization
|
|
102
|
+
* @param value - Either an existing Qified instance or MessageProvider(s)
|
|
103
|
+
*/
|
|
104
|
+
set qified(value) {
|
|
105
|
+
this._qified = this.createQified(value);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Gets the namespace for sync events
|
|
109
|
+
* @returns The namespace or undefined if not set
|
|
110
|
+
*/
|
|
111
|
+
get namespace() {
|
|
112
|
+
return this._namespace;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Sets the namespace for sync events and resubscribes if needed
|
|
116
|
+
* @param namespace - The namespace string or function
|
|
117
|
+
*/
|
|
118
|
+
set namespace(namespace) {
|
|
119
|
+
if (this._storage && this._cacheId) {
|
|
120
|
+
const oldSetEvent = this.getPrefixedEvent("cache:set" /* SET */);
|
|
121
|
+
const oldDeleteEvent = this.getPrefixedEvent("cache:delete" /* DELETE */);
|
|
122
|
+
void this._qified.unsubscribeMessage(oldSetEvent);
|
|
123
|
+
void this._qified.unsubscribeMessage(oldDeleteEvent);
|
|
124
|
+
}
|
|
125
|
+
this._namespace = namespace;
|
|
126
|
+
if (this._storage && this._cacheId) {
|
|
127
|
+
this.subscribe(this._storage, this._cacheId);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Publishes a cache event to all the cache instances
|
|
132
|
+
* @param data - The cache item data containing cacheId, key, value, and optional ttl
|
|
133
|
+
*/
|
|
134
|
+
async publish(event, data) {
|
|
135
|
+
const eventName = this.getPrefixedEvent(event);
|
|
136
|
+
await this._qified.publish(eventName, {
|
|
137
|
+
id: crypto.randomUUID(),
|
|
138
|
+
data
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Subscribes to sync events and updates the provided storage
|
|
143
|
+
* @param storage - The Keyv storage instance to update
|
|
144
|
+
* @param cacheId - The cache ID to identify this instance
|
|
145
|
+
*/
|
|
146
|
+
subscribe(storage, cacheId) {
|
|
147
|
+
this._storage = storage;
|
|
148
|
+
this._cacheId = cacheId;
|
|
149
|
+
const setEvent = this.getPrefixedEvent("cache:set" /* SET */);
|
|
150
|
+
const deleteEvent = this.getPrefixedEvent("cache:delete" /* DELETE */);
|
|
151
|
+
this._qified.subscribe(setEvent, {
|
|
152
|
+
handler: async (message) => {
|
|
153
|
+
const data = message.data;
|
|
154
|
+
if (data.cacheId !== cacheId) {
|
|
155
|
+
await storage.set(data.key, data.value, data.ttl);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
this._qified.subscribe(deleteEvent, {
|
|
160
|
+
handler: async (message) => {
|
|
161
|
+
const data = message.data;
|
|
162
|
+
if (data.cacheId !== cacheId) {
|
|
163
|
+
await storage.delete(data.key);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Creates or returns a Qified instance from the provided value
|
|
170
|
+
* @param value - Either an existing Qified instance or MessageProvider(s)
|
|
171
|
+
* @returns A Qified instance configured with the provided message provider(s)
|
|
172
|
+
*/
|
|
173
|
+
createQified(value) {
|
|
174
|
+
if (value instanceof import_qified.Qified) {
|
|
175
|
+
return value;
|
|
176
|
+
}
|
|
177
|
+
const providers = Array.isArray(value) ? value : [value];
|
|
178
|
+
return new import_qified.Qified({ messageProviders: providers });
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Gets the namespace prefix to use for event names
|
|
182
|
+
* @returns The resolved namespace string or undefined
|
|
183
|
+
*/
|
|
184
|
+
getNamespace() {
|
|
185
|
+
if (typeof this._namespace === "function") {
|
|
186
|
+
return this._namespace();
|
|
187
|
+
}
|
|
188
|
+
return this._namespace;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Prefixes an event name with the namespace if one is set
|
|
192
|
+
* @param event - The event to prefix
|
|
193
|
+
* @returns The prefixed event name or the original event
|
|
194
|
+
*/
|
|
195
|
+
getPrefixedEvent(event) {
|
|
196
|
+
const ns = this.getNamespace();
|
|
197
|
+
return ns ? `${ns}::${event}` : event;
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// src/index.ts
|
|
202
|
+
var import_memory2 = require("@cacheable/memory");
|
|
203
|
+
var import_utils2 = require("@cacheable/utils");
|
|
204
|
+
var import_keyv2 = require("keyv");
|
|
205
|
+
var Cacheable = class extends import_hookified2.Hookified {
|
|
206
|
+
_primary = (0, import_memory.createKeyv)();
|
|
207
|
+
_secondary;
|
|
208
|
+
_nonBlocking = false;
|
|
209
|
+
_ttl;
|
|
210
|
+
_stats = new import_utils.Stats({ enabled: false });
|
|
211
|
+
_namespace;
|
|
212
|
+
_cacheId = Math.random().toString(36).slice(2);
|
|
213
|
+
_sync;
|
|
214
|
+
/**
|
|
215
|
+
* Creates a new cacheable instance
|
|
216
|
+
* @param {CacheableOptions} [options] The options for the cacheable instance
|
|
217
|
+
*/
|
|
218
|
+
constructor(options) {
|
|
219
|
+
super();
|
|
220
|
+
if (options?.primary) {
|
|
221
|
+
this.setPrimary(options.primary);
|
|
222
|
+
}
|
|
223
|
+
if (options?.secondary) {
|
|
224
|
+
this.setSecondary(options.secondary);
|
|
225
|
+
}
|
|
226
|
+
if (options?.nonBlocking) {
|
|
227
|
+
this._nonBlocking = options.nonBlocking;
|
|
228
|
+
}
|
|
229
|
+
if (options?.stats) {
|
|
230
|
+
this._stats.enabled = options.stats;
|
|
231
|
+
}
|
|
232
|
+
if (options?.ttl) {
|
|
233
|
+
this.setTtl(options.ttl);
|
|
234
|
+
}
|
|
235
|
+
if (options?.cacheId) {
|
|
236
|
+
this._cacheId = options.cacheId;
|
|
237
|
+
}
|
|
238
|
+
if (options?.namespace) {
|
|
239
|
+
this._namespace = options.namespace;
|
|
240
|
+
this._primary.namespace = this.getNameSpace();
|
|
241
|
+
if (this._secondary) {
|
|
242
|
+
this._secondary.namespace = this.getNameSpace();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
if (options?.sync) {
|
|
246
|
+
this._sync = options.sync instanceof CacheableSync ? options.sync : new CacheableSync({
|
|
247
|
+
...options.sync,
|
|
248
|
+
namespace: options.namespace
|
|
249
|
+
});
|
|
250
|
+
this._sync.subscribe(this._primary, this._cacheId);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* The namespace for the cacheable instance
|
|
255
|
+
* @returns {string | (() => string) | undefined} The namespace for the cacheable instance
|
|
256
|
+
*/
|
|
257
|
+
get namespace() {
|
|
258
|
+
return this._namespace;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Sets the namespace for the cacheable instance
|
|
262
|
+
* @param {string | (() => string) | undefined} namespace The namespace for the cacheable instance
|
|
263
|
+
* @returns {void}
|
|
264
|
+
*/
|
|
265
|
+
set namespace(namespace) {
|
|
266
|
+
this._namespace = namespace;
|
|
267
|
+
this._primary.namespace = this.getNameSpace();
|
|
268
|
+
if (this._secondary) {
|
|
269
|
+
this._secondary.namespace = this.getNameSpace();
|
|
270
|
+
}
|
|
271
|
+
if (this._sync) {
|
|
272
|
+
this._sync.namespace = namespace;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* The statistics for the cacheable instance
|
|
277
|
+
* @returns {CacheableStats} The statistics for the cacheable instance
|
|
278
|
+
*/
|
|
279
|
+
get stats() {
|
|
280
|
+
return this._stats;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* The primary store for the cacheable instance
|
|
284
|
+
* @returns {Keyv} The primary store for the cacheable instance
|
|
285
|
+
*/
|
|
286
|
+
get primary() {
|
|
287
|
+
return this._primary;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Sets the primary store for the cacheable instance
|
|
291
|
+
* @param {Keyv} primary The primary store for the cacheable instance
|
|
292
|
+
*/
|
|
293
|
+
set primary(primary) {
|
|
294
|
+
this._primary = primary;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* The secondary store for the cacheable instance
|
|
298
|
+
* @returns {Keyv | undefined} The secondary store for the cacheable instance
|
|
299
|
+
*/
|
|
300
|
+
get secondary() {
|
|
301
|
+
return this._secondary;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Sets the secondary store for the cacheable instance. If it is set to undefined then the secondary store is disabled.
|
|
305
|
+
* @param {Keyv | undefined} secondary The secondary store for the cacheable instance
|
|
306
|
+
* @returns {void}
|
|
307
|
+
*/
|
|
308
|
+
set secondary(secondary) {
|
|
309
|
+
this._secondary = secondary;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Gets whether the secondary store is non-blocking mode. It is set to false by default.
|
|
313
|
+
* If it is set to true then the secondary store will not block the primary store.
|
|
314
|
+
*
|
|
315
|
+
* [Learn more about non-blocking mode](https://cacheable.org/docs/cacheable/#non-blocking-operations).
|
|
316
|
+
*
|
|
317
|
+
* @returns {boolean} Whether the cacheable instance is non-blocking
|
|
318
|
+
*/
|
|
319
|
+
get nonBlocking() {
|
|
320
|
+
return this._nonBlocking;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Sets whether the secondary store is non-blocking mode. It is set to false by default.
|
|
324
|
+
* If it is set to true then the secondary store will not block the primary store.
|
|
325
|
+
*
|
|
326
|
+
* [Learn more about non-blocking mode](https://cacheable.org/docs/cacheable/#non-blocking-operations).
|
|
327
|
+
*
|
|
328
|
+
* @param {boolean} nonBlocking Whether the cacheable instance is non-blocking
|
|
329
|
+
* @returns {void}
|
|
330
|
+
*/
|
|
331
|
+
set nonBlocking(nonBlocking) {
|
|
332
|
+
this._nonBlocking = nonBlocking;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* The time-to-live for the cacheable instance and will be used as the default value.
|
|
336
|
+
* can be a number in milliseconds or a human-readable format such as `1s` for 1 second or `1h` for 1 hour
|
|
337
|
+
* or undefined if there is no time-to-live.
|
|
338
|
+
*
|
|
339
|
+
* [Learn more about time-to-live](https://cacheable.org/docs/cacheable/#shorthand-for-time-to-live-ttl).
|
|
340
|
+
*
|
|
341
|
+
* @returns {number | string | undefined} The time-to-live for the cacheable instance in milliseconds, human-readable format or undefined
|
|
342
|
+
* @example
|
|
343
|
+
* ```typescript
|
|
344
|
+
* const cacheable = new Cacheable({ ttl: '1h' });
|
|
345
|
+
* console.log(cacheable.ttl); // 1h
|
|
346
|
+
* ```
|
|
347
|
+
*/
|
|
348
|
+
get ttl() {
|
|
349
|
+
return this._ttl;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Sets the time-to-live for the cacheable instance and will be used as the default value.
|
|
353
|
+
* If you set a number it is miliseconds, if you set a string it is a human-readable
|
|
354
|
+
* format such as `1s` for 1 second or `1h` for 1 hour. Setting undefined means that
|
|
355
|
+
* there is no time-to-live.
|
|
356
|
+
*
|
|
357
|
+
* [Learn more about time-to-live](https://cacheable.org/docs/cacheable/#shorthand-for-time-to-live-ttl).
|
|
358
|
+
*
|
|
359
|
+
* @param {number | string | undefined} ttl The time-to-live for the cacheable instance
|
|
360
|
+
* @example
|
|
361
|
+
* ```typescript
|
|
362
|
+
* const cacheable = new Cacheable();
|
|
363
|
+
* cacheable.ttl = '1h'; // Set the time-to-live to 1 hour
|
|
364
|
+
* ```
|
|
365
|
+
* or setting the time-to-live in milliseconds
|
|
366
|
+
* ```typescript
|
|
367
|
+
* const cacheable = new Cacheable();
|
|
368
|
+
* cacheable.ttl = 3600000; // Set the time-to-live to 1 hour
|
|
369
|
+
* ```
|
|
370
|
+
*/
|
|
371
|
+
set ttl(ttl) {
|
|
372
|
+
this.setTtl(ttl);
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* The cacheId for the cacheable instance. This is primarily used for the wrap function to not have conflicts.
|
|
376
|
+
* If it is not set then it will be a random string that is generated
|
|
377
|
+
* @returns {string} The cacheId for the cacheable instance
|
|
378
|
+
*/
|
|
379
|
+
get cacheId() {
|
|
380
|
+
return this._cacheId;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Sets the cacheId for the cacheable instance. This is primarily used for the wrap function to not have conflicts.
|
|
384
|
+
* If it is not set then it will be a random string that is generated
|
|
385
|
+
* @param {string} cacheId The cacheId for the cacheable instance
|
|
386
|
+
*/
|
|
387
|
+
set cacheId(cacheId) {
|
|
388
|
+
this._cacheId = cacheId;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Gets the sync instance for the cacheable instance
|
|
392
|
+
* @returns {CacheableSync | undefined} The sync instance for the cacheable instance
|
|
393
|
+
*/
|
|
394
|
+
get sync() {
|
|
395
|
+
return this._sync;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Sets the sync instance for the cacheable instance
|
|
399
|
+
* @param {CacheableSync | undefined} sync The sync instance for the cacheable instance
|
|
400
|
+
*/
|
|
401
|
+
set sync(sync) {
|
|
402
|
+
this._sync = sync;
|
|
403
|
+
if (this._sync) {
|
|
404
|
+
this._sync.subscribe(this._primary, this._cacheId);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Sets the primary store for the cacheable instance
|
|
409
|
+
* @param {Keyv | KeyvStoreAdapter} primary The primary store for the cacheable instance
|
|
410
|
+
* @returns {void}
|
|
411
|
+
*/
|
|
412
|
+
setPrimary(primary) {
|
|
413
|
+
if ((0, import_utils.isKeyvInstance)(primary)) {
|
|
414
|
+
this._primary = primary;
|
|
415
|
+
} else {
|
|
416
|
+
this._primary = new import_keyv.Keyv(primary);
|
|
417
|
+
}
|
|
418
|
+
this._primary.on("error", (error) => {
|
|
419
|
+
this.emit("error" /* ERROR */, error);
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Sets the secondary store for the cacheable instance. If it is set to undefined then the secondary store is disabled.
|
|
424
|
+
* @param {Keyv | KeyvStoreAdapter} secondary The secondary store for the cacheable instance
|
|
425
|
+
* @returns {void}
|
|
426
|
+
*/
|
|
427
|
+
setSecondary(secondary) {
|
|
428
|
+
if ((0, import_utils.isKeyvInstance)(secondary)) {
|
|
429
|
+
this._secondary = secondary;
|
|
430
|
+
} else {
|
|
431
|
+
this._secondary = new import_keyv.Keyv(secondary);
|
|
432
|
+
}
|
|
433
|
+
this._secondary.on("error", (error) => {
|
|
434
|
+
this.emit("error" /* ERROR */, error);
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
getNameSpace() {
|
|
438
|
+
if (typeof this._namespace === "function") {
|
|
439
|
+
return this._namespace();
|
|
440
|
+
}
|
|
441
|
+
return this._namespace;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Retrieves an entry from the cache.
|
|
445
|
+
*
|
|
446
|
+
* Checks the primary store first; if not found and a secondary store is configured,
|
|
447
|
+
* it will fetch from the secondary, repopulate the primary, and return the result.
|
|
448
|
+
*
|
|
449
|
+
* @typeParam T - The expected type of the stored value.
|
|
450
|
+
* @param {string} key - The cache key to retrieve.
|
|
451
|
+
* @param {GetOptions} - options such as to bypass `nonBlocking` for this call
|
|
452
|
+
* @returns {Promise<T | undefined>}
|
|
453
|
+
* A promise that resolves to the cached value if found, or `undefined`.
|
|
454
|
+
*/
|
|
455
|
+
async get(key, options) {
|
|
456
|
+
const result = await this.getRaw(key, options);
|
|
457
|
+
return result?.value;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Retrieves the raw entry from the cache including metadata like expiration.
|
|
461
|
+
*
|
|
462
|
+
* Checks the primary store first; if not found and a secondary store is configured,
|
|
463
|
+
* it will fetch from the secondary, repopulate the primary, and return the result.
|
|
464
|
+
*
|
|
465
|
+
* @typeParam T - The expected type of the stored value.
|
|
466
|
+
* @param {string} key - The cache key to retrieve.
|
|
467
|
+
* @param {GetOptions} - options such as to bypass `nonBlocking` for this call
|
|
468
|
+
* @returns {Promise<StoredDataRaw<T>>}
|
|
469
|
+
* A promise that resolves to the full raw data object if found, or undefined.
|
|
470
|
+
*/
|
|
471
|
+
async getRaw(key, options) {
|
|
472
|
+
let result;
|
|
473
|
+
try {
|
|
474
|
+
await this.hook("BEFORE_GET" /* BEFORE_GET */, key);
|
|
475
|
+
result = await this._primary.getRaw(key);
|
|
476
|
+
let ttl;
|
|
477
|
+
if (result) {
|
|
478
|
+
this.emit("cache:hit" /* CACHE_HIT */, {
|
|
479
|
+
key,
|
|
480
|
+
value: result.value,
|
|
481
|
+
store: "primary"
|
|
482
|
+
});
|
|
483
|
+
} else {
|
|
484
|
+
this.emit("cache:miss" /* CACHE_MISS */, { key, store: "primary" });
|
|
485
|
+
}
|
|
486
|
+
const nonBlocking = options?.nonBlocking ?? this._nonBlocking;
|
|
487
|
+
if (!result && this._secondary) {
|
|
488
|
+
let secondaryProcessResult;
|
|
489
|
+
if (nonBlocking) {
|
|
490
|
+
secondaryProcessResult = await this.processSecondaryForGetRawNonBlocking(
|
|
491
|
+
this._primary,
|
|
492
|
+
this._secondary,
|
|
493
|
+
key
|
|
494
|
+
);
|
|
495
|
+
} else {
|
|
496
|
+
secondaryProcessResult = await this.processSecondaryForGetRaw(
|
|
497
|
+
this._primary,
|
|
498
|
+
this._secondary,
|
|
499
|
+
key
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
if (secondaryProcessResult) {
|
|
503
|
+
result = secondaryProcessResult.result;
|
|
504
|
+
ttl = secondaryProcessResult.ttl;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
await this.hook("AFTER_GET" /* AFTER_GET */, { key, result, ttl });
|
|
508
|
+
} catch (error) {
|
|
509
|
+
this.emit("error" /* ERROR */, error);
|
|
510
|
+
}
|
|
511
|
+
if (this.stats.enabled) {
|
|
512
|
+
if (result) {
|
|
513
|
+
this._stats.incrementHits();
|
|
514
|
+
} else {
|
|
515
|
+
this._stats.incrementMisses();
|
|
516
|
+
}
|
|
517
|
+
this.stats.incrementGets();
|
|
518
|
+
}
|
|
519
|
+
return result;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Retrieves multiple raw entries from the cache including metadata like expiration.
|
|
523
|
+
*
|
|
524
|
+
* Checks the primary store for each key; if a key is missing and a secondary store is configured,
|
|
525
|
+
* it will fetch from the secondary store, repopulate the primary store, and return the results.
|
|
526
|
+
*
|
|
527
|
+
* @typeParam T - The expected type of the stored values.
|
|
528
|
+
* @param {string[]} keys - The cache keys to retrieve.
|
|
529
|
+
* @param {GetOptions} - options such as to bypass `nonBlocking` on this call
|
|
530
|
+
* @returns {Promise<Array<StoredDataRaw<T>>>}
|
|
531
|
+
* A promise that resolves to an array of raw data objects.
|
|
532
|
+
*/
|
|
533
|
+
async getManyRaw(keys, options) {
|
|
534
|
+
let result = [];
|
|
535
|
+
try {
|
|
536
|
+
await this.hook("BEFORE_GET_MANY" /* BEFORE_GET_MANY */, keys);
|
|
537
|
+
result = await this._primary.getManyRaw(keys);
|
|
538
|
+
for (const [i, key] of keys.entries()) {
|
|
539
|
+
if (result[i]) {
|
|
540
|
+
this.emit("cache:hit" /* CACHE_HIT */, {
|
|
541
|
+
key,
|
|
542
|
+
value: result[i].value,
|
|
543
|
+
store: "primary"
|
|
544
|
+
});
|
|
545
|
+
} else {
|
|
546
|
+
this.emit("cache:miss" /* CACHE_MISS */, { key, store: "primary" });
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
const nonBlocking = options?.nonBlocking ?? this._nonBlocking;
|
|
550
|
+
if (this._secondary) {
|
|
551
|
+
if (nonBlocking) {
|
|
552
|
+
await this.processSecondaryForGetManyRawNonBlocking(
|
|
553
|
+
this._primary,
|
|
554
|
+
this._secondary,
|
|
555
|
+
keys,
|
|
556
|
+
result
|
|
557
|
+
);
|
|
558
|
+
} else {
|
|
559
|
+
await this.processSecondaryForGetManyRaw(
|
|
560
|
+
this._primary,
|
|
561
|
+
this._secondary,
|
|
562
|
+
keys,
|
|
563
|
+
result
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
await this.hook("AFTER_GET_MANY" /* AFTER_GET_MANY */, { keys, result });
|
|
568
|
+
} catch (error) {
|
|
569
|
+
this.emit("error" /* ERROR */, error);
|
|
570
|
+
}
|
|
571
|
+
if (this.stats.enabled) {
|
|
572
|
+
for (const item of result) {
|
|
573
|
+
if (item) {
|
|
574
|
+
this._stats.incrementHits();
|
|
575
|
+
} else {
|
|
576
|
+
this._stats.incrementMisses();
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
this.stats.incrementGets();
|
|
580
|
+
}
|
|
581
|
+
return result;
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* Retrieves multiple entries from the cache.
|
|
585
|
+
* Checks the primary store for each key; if a key is missing and a secondary store is configured,
|
|
586
|
+
* it will fetch from the secondary store, repopulate the primary store, and return the results.
|
|
587
|
+
*
|
|
588
|
+
* @typeParam T - The expected type of the stored values.
|
|
589
|
+
* @param {string[]} keys - The cache keys to retrieve.
|
|
590
|
+
* @param {GetOptions} - options such as to bypass `nonBlocking` on this call
|
|
591
|
+
* @returns {Promise<Array<T | undefined>>}
|
|
592
|
+
* A promise that resolves to an array of cached values or `undefined` for misses.
|
|
593
|
+
*/
|
|
594
|
+
async getMany(keys, options) {
|
|
595
|
+
const result = await this.getManyRaw(keys, options);
|
|
596
|
+
return result.map((item) => item?.value);
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* Sets the value of the key. If the secondary store is set then it will also set the value in the secondary store.
|
|
600
|
+
* @param {string} key the key to set the value of
|
|
601
|
+
* @param {T} value The value to set
|
|
602
|
+
* @param {number | string} [ttl] set a number it is miliseconds, set a string it is a human-readable
|
|
603
|
+
* format such as `1s` for 1 second or `1h` for 1 hour. Setting undefined means that it will use the default time-to-live.
|
|
604
|
+
* @returns {boolean} Whether the value was set
|
|
605
|
+
*/
|
|
606
|
+
async set(key, value, ttl) {
|
|
607
|
+
let result = false;
|
|
608
|
+
const explicitTtl = (0, import_utils.shorthandToMilliseconds)(ttl);
|
|
609
|
+
try {
|
|
610
|
+
const primaryTtl = (0, import_utils.getCascadingTtl)(
|
|
611
|
+
this._ttl,
|
|
612
|
+
this._primary.ttl,
|
|
613
|
+
explicitTtl
|
|
614
|
+
);
|
|
615
|
+
const item = { key, value, ttl: primaryTtl };
|
|
616
|
+
await this.hook("BEFORE_SET" /* BEFORE_SET */, item);
|
|
617
|
+
const hookOverridden = item.ttl !== primaryTtl;
|
|
618
|
+
const promises = [];
|
|
619
|
+
promises.push(this._primary.set(item.key, item.value, item.ttl));
|
|
620
|
+
if (this._secondary) {
|
|
621
|
+
const secondaryTtl = hookOverridden ? item.ttl : (0, import_utils.getCascadingTtl)(this._ttl, this._secondary.ttl, explicitTtl);
|
|
622
|
+
promises.push(this._secondary.set(item.key, item.value, secondaryTtl));
|
|
623
|
+
}
|
|
624
|
+
if (this._nonBlocking) {
|
|
625
|
+
result = await Promise.race(promises);
|
|
626
|
+
for (const promise of promises) {
|
|
627
|
+
promise.catch((error) => {
|
|
628
|
+
this.emit("error" /* ERROR */, error);
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
} else {
|
|
632
|
+
const results = await Promise.all(promises);
|
|
633
|
+
result = results[0];
|
|
634
|
+
}
|
|
635
|
+
await this.hook("AFTER_SET" /* AFTER_SET */, item);
|
|
636
|
+
if (this._sync && result) {
|
|
637
|
+
await this._sync.publish("cache:set" /* SET */, {
|
|
638
|
+
cacheId: this._cacheId,
|
|
639
|
+
key: item.key,
|
|
640
|
+
value: item.value,
|
|
641
|
+
ttl: item.ttl
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
} catch (error) {
|
|
645
|
+
this.emit("error" /* ERROR */, error);
|
|
646
|
+
}
|
|
647
|
+
if (this.stats.enabled) {
|
|
648
|
+
this.stats.incrementKSize(key);
|
|
649
|
+
this.stats.incrementCount();
|
|
650
|
+
this.stats.incrementVSize(value);
|
|
651
|
+
this.stats.incrementSets();
|
|
652
|
+
}
|
|
653
|
+
return result;
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Sets the values of the keys. If the secondary store is set then it will also set the values in the secondary store.
|
|
657
|
+
* @param {CacheableItem[]} items The items to set
|
|
658
|
+
* @returns {boolean} Whether the values were set
|
|
659
|
+
*/
|
|
660
|
+
async setMany(items) {
|
|
661
|
+
let result = false;
|
|
662
|
+
try {
|
|
663
|
+
await this.hook("BEFORE_SET_MANY" /* BEFORE_SET_MANY */, items);
|
|
664
|
+
result = await this.setManyKeyv(this._primary, items);
|
|
665
|
+
if (this._secondary) {
|
|
666
|
+
if (this._nonBlocking) {
|
|
667
|
+
this.setManyKeyv(this._secondary, items).catch((error) => {
|
|
668
|
+
this.emit("error" /* ERROR */, error);
|
|
669
|
+
});
|
|
670
|
+
} else {
|
|
671
|
+
await this.setManyKeyv(this._secondary, items);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
await this.hook("AFTER_SET_MANY" /* AFTER_SET_MANY */, items);
|
|
675
|
+
if (this._sync && result) {
|
|
676
|
+
for (const item of items) {
|
|
677
|
+
await this._sync.publish("cache:set" /* SET */, {
|
|
678
|
+
cacheId: this._cacheId,
|
|
679
|
+
key: item.key,
|
|
680
|
+
value: item.value,
|
|
681
|
+
ttl: (0, import_utils.shorthandToMilliseconds)(item.ttl)
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
} catch (error) {
|
|
686
|
+
this.emit("error" /* ERROR */, error);
|
|
687
|
+
}
|
|
688
|
+
if (this.stats.enabled) {
|
|
689
|
+
for (const item of items) {
|
|
690
|
+
this.stats.incrementKSize(item.key);
|
|
691
|
+
this.stats.incrementCount();
|
|
692
|
+
this.stats.incrementVSize(item.value);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
return result;
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Takes the value of the key and deletes the key. If the key does not exist then it will return undefined.
|
|
699
|
+
* @param {string} key The key to take the value of
|
|
700
|
+
* @returns {Promise<T | undefined>} The value of the key or undefined if the key does not exist
|
|
701
|
+
*/
|
|
702
|
+
async take(key) {
|
|
703
|
+
const result = await this.get(key);
|
|
704
|
+
await this.delete(key);
|
|
705
|
+
return result;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Takes the values of the keys and deletes the keys. If the key does not exist then it will return undefined.
|
|
709
|
+
* @param {string[]} keys The keys to take the values of
|
|
710
|
+
* @returns {Promise<Array<T | undefined>>} The values of the keys or undefined if the key does not exist
|
|
711
|
+
*/
|
|
712
|
+
async takeMany(keys) {
|
|
713
|
+
const result = await this.getMany(keys);
|
|
714
|
+
await this.deleteMany(keys);
|
|
715
|
+
return result;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Checks if the key exists in the primary store. If it does not exist then it will check the secondary store.
|
|
719
|
+
* @param {string} key The key to check
|
|
720
|
+
* @returns {Promise<boolean>} Whether the key exists
|
|
721
|
+
*/
|
|
722
|
+
async has(key) {
|
|
723
|
+
const promises = [];
|
|
724
|
+
promises.push(this._primary.has(key));
|
|
725
|
+
if (this._secondary) {
|
|
726
|
+
promises.push(this._secondary.has(key));
|
|
727
|
+
}
|
|
728
|
+
const resultAll = await Promise.all(promises);
|
|
729
|
+
for (const result of resultAll) {
|
|
730
|
+
if (result) {
|
|
731
|
+
return true;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
return false;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Checks if the keys exist in the primary store. If it does not exist then it will check the secondary store.
|
|
738
|
+
* @param {string[]} keys The keys to check
|
|
739
|
+
* @returns {Promise<boolean[]>} Whether the keys exist
|
|
740
|
+
*/
|
|
741
|
+
async hasMany(keys) {
|
|
742
|
+
const result = await this._primary.hasMany(keys);
|
|
743
|
+
const missingKeys = [];
|
|
744
|
+
for (const [i, key] of keys.entries()) {
|
|
745
|
+
if (!result[i] && this._secondary) {
|
|
746
|
+
missingKeys.push(key);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
if (missingKeys.length > 0 && this._secondary) {
|
|
750
|
+
const secondary = await this._secondary.hasMany(keys);
|
|
751
|
+
for (const [i, _key] of keys.entries()) {
|
|
752
|
+
if (!result[i] && secondary[i]) {
|
|
753
|
+
result[i] = secondary[i];
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
return result;
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Deletes the key from the primary store. If the secondary store is set then it will also delete the key from the secondary store.
|
|
761
|
+
* @param {string} key The key to delete
|
|
762
|
+
* @returns {Promise<boolean>} Whether the key was deleted
|
|
763
|
+
*/
|
|
764
|
+
async delete(key) {
|
|
765
|
+
let result = false;
|
|
766
|
+
const promises = [];
|
|
767
|
+
if (this.stats.enabled) {
|
|
768
|
+
const statResult = await this._primary.get(key);
|
|
769
|
+
if (statResult) {
|
|
770
|
+
this.stats.decreaseKSize(key);
|
|
771
|
+
this.stats.decreaseVSize(statResult);
|
|
772
|
+
this.stats.decreaseCount();
|
|
773
|
+
this.stats.incrementDeletes();
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
promises.push(this._primary.delete(key));
|
|
777
|
+
if (this._secondary) {
|
|
778
|
+
promises.push(this._secondary.delete(key));
|
|
779
|
+
}
|
|
780
|
+
if (this.nonBlocking) {
|
|
781
|
+
result = await Promise.race(promises);
|
|
782
|
+
for (const promise of promises) {
|
|
783
|
+
promise.catch((error) => {
|
|
784
|
+
this.emit("error" /* ERROR */, error);
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
} else {
|
|
788
|
+
const resultAll = await Promise.all(promises);
|
|
789
|
+
result = resultAll[0];
|
|
790
|
+
}
|
|
791
|
+
if (this._sync && result) {
|
|
792
|
+
await this._sync.publish("cache:delete" /* DELETE */, {
|
|
793
|
+
cacheId: this._cacheId,
|
|
794
|
+
key
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
return result;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Deletes the keys from the primary store. If the secondary store is set then it will also delete the keys from the secondary store.
|
|
801
|
+
* @param {string[]} keys The keys to delete
|
|
802
|
+
* @returns {Promise<boolean>} Whether the keys were deleted
|
|
803
|
+
*/
|
|
804
|
+
async deleteMany(keys) {
|
|
805
|
+
if (this.stats.enabled) {
|
|
806
|
+
const statResult = await this._primary.get(keys);
|
|
807
|
+
for (const key of keys) {
|
|
808
|
+
this.stats.decreaseKSize(key);
|
|
809
|
+
this.stats.decreaseVSize(statResult);
|
|
810
|
+
this.stats.decreaseCount();
|
|
811
|
+
this.stats.incrementDeletes();
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
const result = await this._primary.deleteMany(keys);
|
|
815
|
+
if (this._secondary) {
|
|
816
|
+
if (this._nonBlocking) {
|
|
817
|
+
this._secondary.deleteMany(keys).catch((error) => {
|
|
818
|
+
this.emit("error" /* ERROR */, error);
|
|
819
|
+
});
|
|
820
|
+
} else {
|
|
821
|
+
await this._secondary.deleteMany(keys);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
if (this._sync && result) {
|
|
825
|
+
for (const key of keys) {
|
|
826
|
+
await this._sync.publish("cache:delete" /* DELETE */, {
|
|
827
|
+
cacheId: this._cacheId,
|
|
828
|
+
key
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
return result;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Clears the primary store. If the secondary store is set then it will also clear the secondary store.
|
|
836
|
+
* @returns {Promise<void>}
|
|
837
|
+
*/
|
|
838
|
+
async clear() {
|
|
839
|
+
const promises = [];
|
|
840
|
+
promises.push(this._primary.clear());
|
|
841
|
+
if (this._secondary) {
|
|
842
|
+
promises.push(this._secondary.clear());
|
|
843
|
+
}
|
|
844
|
+
await (this._nonBlocking ? Promise.race(promises) : Promise.all(promises));
|
|
845
|
+
if (this.stats.enabled) {
|
|
846
|
+
this._stats.resetStoreValues();
|
|
847
|
+
this._stats.incrementClears();
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Disconnects the primary store. If the secondary store is set then it will also disconnect the secondary store.
|
|
852
|
+
* @returns {Promise<void>}
|
|
853
|
+
*/
|
|
854
|
+
async disconnect() {
|
|
855
|
+
const promises = [];
|
|
856
|
+
promises.push(this._primary.disconnect());
|
|
857
|
+
if (this._secondary) {
|
|
858
|
+
promises.push(this._secondary.disconnect());
|
|
859
|
+
}
|
|
860
|
+
promises.push(this._sync?.qified.disconnect());
|
|
861
|
+
await (this._nonBlocking ? Promise.race(promises) : Promise.all(promises));
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Wraps a function with caching
|
|
865
|
+
*
|
|
866
|
+
* [Learn more about wrapping functions](https://cacheable.org/docs/cacheable/#wrap--memoization-for-sync-and-async-functions).
|
|
867
|
+
* @param {Function} function_ The function to wrap
|
|
868
|
+
* @param {WrapOptions} [options] The options for the wrap function
|
|
869
|
+
* @returns {Function} The wrapped function
|
|
870
|
+
*/
|
|
871
|
+
// biome-ignore lint/suspicious/noExplicitAny: type format
|
|
872
|
+
wrap(function_, options) {
|
|
873
|
+
const cacheAdapter = {
|
|
874
|
+
get: async (key) => this.get(key),
|
|
875
|
+
/* v8 ignore next -- @preserve */
|
|
876
|
+
has: async (key) => this.has(key),
|
|
877
|
+
set: async (key, value, ttl) => {
|
|
878
|
+
await this.set(key, value, ttl);
|
|
879
|
+
},
|
|
880
|
+
/* v8 ignore next -- @preserve */
|
|
881
|
+
on: (event, listener) => {
|
|
882
|
+
this.on(event, listener);
|
|
883
|
+
},
|
|
884
|
+
/* v8 ignore next -- @preserve */
|
|
885
|
+
emit: (event, ...args) => this.emit(event, ...args)
|
|
886
|
+
};
|
|
887
|
+
const wrapOptions = {
|
|
888
|
+
ttl: options?.ttl ?? this._ttl,
|
|
889
|
+
keyPrefix: options?.keyPrefix,
|
|
890
|
+
createKey: options?.createKey,
|
|
891
|
+
cacheErrors: options?.cacheErrors,
|
|
892
|
+
cache: cacheAdapter,
|
|
893
|
+
cacheId: this._cacheId,
|
|
894
|
+
serialize: options?.serialize
|
|
895
|
+
};
|
|
896
|
+
return (0, import_utils.wrap)(function_, wrapOptions);
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* Retrieves the value associated with the given key from the cache. If the key is not found,
|
|
900
|
+
* invokes the provided function to calculate the value, stores it in the cache, and then returns it.
|
|
901
|
+
*
|
|
902
|
+
* @param {GetOrSetKey} key - The key to retrieve or set in the cache. This can also be a function that returns a string key.
|
|
903
|
+
* If a function is provided, it will be called with the cache options to generate the key.
|
|
904
|
+
* @param {() => Promise<T>} function_ - The asynchronous function that computes the value to be cached if the key does not exist.
|
|
905
|
+
* @param {GetOrSetFunctionOptions} [options] - Optional settings for caching, such as the time to live (TTL) or whether to cache errors.
|
|
906
|
+
* @return {Promise<T | undefined>} - A promise that resolves to the cached or newly computed value, or undefined if an error occurs and caching is not configured for errors.
|
|
907
|
+
*/
|
|
908
|
+
async getOrSet(key, function_, options) {
|
|
909
|
+
const getOptions = options?.nonBlocking === void 0 ? void 0 : { nonBlocking: options.nonBlocking };
|
|
910
|
+
const cacheAdapter = {
|
|
911
|
+
get: async (key2) => this.get(key2, getOptions),
|
|
912
|
+
/* v8 ignore next -- @preserve */
|
|
913
|
+
has: async (key2) => this.has(key2),
|
|
914
|
+
set: async (key2, value, ttl) => {
|
|
915
|
+
await this.set(key2, value, ttl);
|
|
916
|
+
},
|
|
917
|
+
/* v8 ignore next -- @preserve */
|
|
918
|
+
on: (event, listener) => {
|
|
919
|
+
this.on(event, listener);
|
|
920
|
+
},
|
|
921
|
+
emit: (event, ...args) => this.emit(event, ...args)
|
|
922
|
+
};
|
|
923
|
+
const getOrSetOptions = {
|
|
924
|
+
cache: cacheAdapter,
|
|
925
|
+
cacheId: this._cacheId,
|
|
926
|
+
ttl: options?.ttl ?? this._ttl,
|
|
927
|
+
cacheErrors: options?.cacheErrors,
|
|
928
|
+
throwErrors: options?.throwErrors,
|
|
929
|
+
nonBlocking: options?.nonBlocking
|
|
930
|
+
};
|
|
931
|
+
return (0, import_utils.getOrSet)(key, function_, getOrSetOptions);
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Will hash an object asynchronously using the specified cryptographic algorithm.
|
|
935
|
+
* Use this for cryptographic algorithms (SHA-256, SHA-384, SHA-512).
|
|
936
|
+
* For non-cryptographic algorithms, use hashSync() for better performance.
|
|
937
|
+
* @param {any} object the object to hash
|
|
938
|
+
* @param {string} algorithm the hash algorithm to use. The default is 'SHA-256'
|
|
939
|
+
* @returns {Promise<string>} the hash of the object
|
|
940
|
+
*/
|
|
941
|
+
async hash(object, algorithm = import_utils.HashAlgorithm.SHA256) {
|
|
942
|
+
return (0, import_utils.hash)(object, { algorithm });
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* Will hash an object synchronously using the specified non-cryptographic algorithm.
|
|
946
|
+
* Use this for non-cryptographic algorithms (DJB2, FNV1, MURMER, CRC32).
|
|
947
|
+
* For cryptographic algorithms, use hash() instead.
|
|
948
|
+
* @param {any} object the object to hash
|
|
949
|
+
* @param {string} algorithm the hash algorithm to use. The default is 'djb2'
|
|
950
|
+
* @returns {string} the hash of the object
|
|
951
|
+
*/
|
|
952
|
+
hashSync(object, algorithm = import_utils.HashAlgorithm.DJB2) {
|
|
953
|
+
return (0, import_utils.hashSync)(object, { algorithm });
|
|
954
|
+
}
|
|
955
|
+
async setManyKeyv(keyv, items) {
|
|
956
|
+
const entries = [];
|
|
957
|
+
for (const item of items) {
|
|
958
|
+
const finalTtl = (0, import_utils.getCascadingTtl)(
|
|
959
|
+
this._ttl,
|
|
960
|
+
keyv.ttl,
|
|
961
|
+
(0, import_utils.shorthandToMilliseconds)(item.ttl)
|
|
962
|
+
);
|
|
963
|
+
entries.push({ key: item.key, value: item.value, ttl: finalTtl });
|
|
964
|
+
}
|
|
965
|
+
await keyv.setMany(entries);
|
|
966
|
+
return true;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Processes a single key from secondary store for getRaw operation
|
|
970
|
+
* @param primary - the primary store to use
|
|
971
|
+
* @param secondary - the secondary store to use
|
|
972
|
+
* @param key - The key to retrieve from secondary store
|
|
973
|
+
* @returns Promise containing the result and TTL information
|
|
974
|
+
*/
|
|
975
|
+
async processSecondaryForGetRaw(primary, secondary, key) {
|
|
976
|
+
const secondaryResult = await secondary.getRaw(key);
|
|
977
|
+
if (secondaryResult?.value) {
|
|
978
|
+
this.emit("cache:hit" /* CACHE_HIT */, {
|
|
979
|
+
key,
|
|
980
|
+
value: secondaryResult.value,
|
|
981
|
+
store: "secondary"
|
|
982
|
+
});
|
|
983
|
+
const cascadeTtl = (0, import_utils.getCascadingTtl)(this._ttl, this._primary.ttl);
|
|
984
|
+
const expires = secondaryResult.expires ?? void 0;
|
|
985
|
+
const ttl = (0, import_utils.calculateTtlFromExpiration)(cascadeTtl, expires);
|
|
986
|
+
const setItem = { key, value: secondaryResult.value, ttl };
|
|
987
|
+
await this.hook("BEFORE_SECONDARY_SETS_PRIMARY" /* BEFORE_SECONDARY_SETS_PRIMARY */, setItem);
|
|
988
|
+
await primary.set(setItem.key, setItem.value, setItem.ttl);
|
|
989
|
+
return { result: secondaryResult, ttl };
|
|
990
|
+
} else {
|
|
991
|
+
this.emit("cache:miss" /* CACHE_MISS */, { key, store: "secondary" });
|
|
992
|
+
return void 0;
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* Processes a single key from secondary store for getRaw operation in non-blocking mode
|
|
997
|
+
* Non-blocking mode means we don't wait for secondary operations that update primary store
|
|
998
|
+
* @param primary - the primary store to use
|
|
999
|
+
* @param secondary - the secondary store to use
|
|
1000
|
+
* @param key - The key to retrieve from secondary store
|
|
1001
|
+
* @returns Promise containing the result and TTL information
|
|
1002
|
+
*/
|
|
1003
|
+
async processSecondaryForGetRawNonBlocking(primary, secondary, key) {
|
|
1004
|
+
const secondaryResult = await secondary.getRaw(key);
|
|
1005
|
+
if (secondaryResult?.value) {
|
|
1006
|
+
this.emit("cache:hit" /* CACHE_HIT */, {
|
|
1007
|
+
key,
|
|
1008
|
+
value: secondaryResult.value,
|
|
1009
|
+
store: "secondary"
|
|
1010
|
+
});
|
|
1011
|
+
const cascadeTtl = (0, import_utils.getCascadingTtl)(this._ttl, this._primary.ttl);
|
|
1012
|
+
const expires = secondaryResult.expires ?? void 0;
|
|
1013
|
+
const ttl = (0, import_utils.calculateTtlFromExpiration)(cascadeTtl, expires);
|
|
1014
|
+
const setItem = { key, value: secondaryResult.value, ttl };
|
|
1015
|
+
this.hook("BEFORE_SECONDARY_SETS_PRIMARY" /* BEFORE_SECONDARY_SETS_PRIMARY */, setItem).then(async () => {
|
|
1016
|
+
await primary.set(setItem.key, setItem.value, setItem.ttl);
|
|
1017
|
+
}).catch((error) => {
|
|
1018
|
+
this.emit("error" /* ERROR */, error);
|
|
1019
|
+
});
|
|
1020
|
+
return { result: secondaryResult, ttl };
|
|
1021
|
+
} else {
|
|
1022
|
+
this.emit("cache:miss" /* CACHE_MISS */, { key, store: "secondary" });
|
|
1023
|
+
return void 0;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* Processes missing keys from secondary store for getManyRaw operation
|
|
1028
|
+
* @param primary - the primary store to use
|
|
1029
|
+
* @param secondary - the secondary store to use
|
|
1030
|
+
* @param keys - The original array of keys requested
|
|
1031
|
+
* @param result - The result array from primary store (will be modified)
|
|
1032
|
+
* @returns Promise<void>
|
|
1033
|
+
*/
|
|
1034
|
+
async processSecondaryForGetManyRaw(primary, secondary, keys, result) {
|
|
1035
|
+
const missingKeys = [];
|
|
1036
|
+
for (const [i, key] of keys.entries()) {
|
|
1037
|
+
if (!result[i]) {
|
|
1038
|
+
missingKeys.push(key);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
const secondaryResults = await secondary.getManyRaw(missingKeys);
|
|
1042
|
+
let secondaryIndex = 0;
|
|
1043
|
+
for await (const [i, key] of keys.entries()) {
|
|
1044
|
+
if (!result[i]) {
|
|
1045
|
+
const secondaryResult = secondaryResults[secondaryIndex];
|
|
1046
|
+
if (secondaryResult && secondaryResult.value !== void 0) {
|
|
1047
|
+
result[i] = secondaryResult;
|
|
1048
|
+
this.emit("cache:hit" /* CACHE_HIT */, {
|
|
1049
|
+
key,
|
|
1050
|
+
value: secondaryResult.value,
|
|
1051
|
+
store: "secondary"
|
|
1052
|
+
});
|
|
1053
|
+
const cascadeTtl = (0, import_utils.getCascadingTtl)(this._ttl, this._primary.ttl);
|
|
1054
|
+
let { expires } = secondaryResult;
|
|
1055
|
+
if (expires === null) {
|
|
1056
|
+
expires = void 0;
|
|
1057
|
+
}
|
|
1058
|
+
const ttl = (0, import_utils.calculateTtlFromExpiration)(cascadeTtl, expires);
|
|
1059
|
+
const setItem = { key, value: secondaryResult.value, ttl };
|
|
1060
|
+
await this.hook(
|
|
1061
|
+
"BEFORE_SECONDARY_SETS_PRIMARY" /* BEFORE_SECONDARY_SETS_PRIMARY */,
|
|
1062
|
+
setItem
|
|
1063
|
+
);
|
|
1064
|
+
await primary.set(setItem.key, setItem.value, setItem.ttl);
|
|
1065
|
+
} else {
|
|
1066
|
+
this.emit("cache:miss" /* CACHE_MISS */, {
|
|
1067
|
+
key,
|
|
1068
|
+
store: "secondary"
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
secondaryIndex++;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* Processes missing keys from secondary store for getManyRaw operation in non-blocking mode
|
|
1077
|
+
* Non-blocking mode means we don't wait for secondary operations that update primary store
|
|
1078
|
+
* @param secondary - the secondary store to use
|
|
1079
|
+
* @param keys - The original array of keys requested
|
|
1080
|
+
* @param result - The result array from primary store (will be modified)
|
|
1081
|
+
* @returns Promise<void>
|
|
1082
|
+
*/
|
|
1083
|
+
async processSecondaryForGetManyRawNonBlocking(primary, secondary, keys, result) {
|
|
1084
|
+
const missingKeys = [];
|
|
1085
|
+
for (const [i, key] of keys.entries()) {
|
|
1086
|
+
if (!result[i]) {
|
|
1087
|
+
missingKeys.push(key);
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
const secondaryResults = await secondary.getManyRaw(missingKeys);
|
|
1091
|
+
let secondaryIndex = 0;
|
|
1092
|
+
for await (const [i, key] of keys.entries()) {
|
|
1093
|
+
if (!result[i]) {
|
|
1094
|
+
const secondaryResult = secondaryResults[secondaryIndex];
|
|
1095
|
+
if (secondaryResult && secondaryResult.value !== void 0) {
|
|
1096
|
+
result[i] = secondaryResult;
|
|
1097
|
+
this.emit("cache:hit" /* CACHE_HIT */, {
|
|
1098
|
+
key,
|
|
1099
|
+
value: secondaryResult.value,
|
|
1100
|
+
store: "secondary"
|
|
1101
|
+
});
|
|
1102
|
+
const cascadeTtl = (0, import_utils.getCascadingTtl)(this._ttl, this._primary.ttl);
|
|
1103
|
+
let { expires } = secondaryResult;
|
|
1104
|
+
if (expires === null) {
|
|
1105
|
+
expires = void 0;
|
|
1106
|
+
}
|
|
1107
|
+
const ttl = (0, import_utils.calculateTtlFromExpiration)(cascadeTtl, expires);
|
|
1108
|
+
const setItem = { key, value: secondaryResult.value, ttl };
|
|
1109
|
+
this.hook("BEFORE_SECONDARY_SETS_PRIMARY" /* BEFORE_SECONDARY_SETS_PRIMARY */, setItem).then(async () => {
|
|
1110
|
+
await primary.set(setItem.key, setItem.value, setItem.ttl);
|
|
1111
|
+
}).catch((error) => {
|
|
1112
|
+
this.emit("error" /* ERROR */, error);
|
|
1113
|
+
});
|
|
1114
|
+
} else {
|
|
1115
|
+
this.emit("cache:miss" /* CACHE_MISS */, {
|
|
1116
|
+
key,
|
|
1117
|
+
store: "secondary"
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
secondaryIndex++;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
setTtl(ttl) {
|
|
1125
|
+
if (typeof ttl === "string" || ttl === void 0) {
|
|
1126
|
+
this._ttl = ttl;
|
|
1127
|
+
} else if (ttl > 0) {
|
|
1128
|
+
this._ttl = ttl;
|
|
1129
|
+
} else {
|
|
1130
|
+
this._ttl = void 0;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
};
|
|
1134
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1135
|
+
0 && (module.exports = {
|
|
1136
|
+
Cacheable,
|
|
1137
|
+
CacheableEvents,
|
|
1138
|
+
CacheableHooks,
|
|
1139
|
+
CacheableMemory,
|
|
1140
|
+
CacheableStats,
|
|
1141
|
+
CacheableSync,
|
|
1142
|
+
CacheableSyncEvents,
|
|
1143
|
+
HashAlgorithm,
|
|
1144
|
+
Keyv,
|
|
1145
|
+
KeyvCacheableMemory,
|
|
1146
|
+
KeyvHooks,
|
|
1147
|
+
calculateTtlFromExpiration,
|
|
1148
|
+
createKeyv,
|
|
1149
|
+
getCascadingTtl,
|
|
1150
|
+
getOrSet,
|
|
1151
|
+
hash,
|
|
1152
|
+
shorthandToMilliseconds,
|
|
1153
|
+
shorthandToTime,
|
|
1154
|
+
wrap,
|
|
1155
|
+
wrapSync
|
|
1156
|
+
});
|
|
1157
|
+
/* v8 ignore next -- @preserve */
|