@psnext/slingcli 3.1.20260904-1 → 3.3.20260911-1
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/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-PBNSMEG7.js → chunk-VDBOM5UG.js} +9 -9
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Client.md +25 -8
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/readable.js +33 -43
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/connect.js +16 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/symbols.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h1.js +9 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h2.js +221 -12
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client.js +76 -30
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +37 -8
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +106 -22
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-handler.js +29 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/redirect-handler.js +21 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/retry-handler.js +155 -32
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/cache.js +65 -9
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/decompress.js +115 -13
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dns.js +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-agent.js +13 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-utils.js +217 -27
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/cache.js +43 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/parse.js +150 -147
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js +6 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js +2 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/util.js +6 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/connection.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/websocket.js +22 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/package.json +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +4 -4
- package/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +11 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +11 -10
- package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
- package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
- package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
- package/node_modules/@smithy/core/errors.d.ts +5 -0
- package/node_modules/@smithy/core/errors.js +5 -0
- package/node_modules/@smithy/core/package.json +11 -2
- package/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/node/assert/strict.d.ts +56 -13
- package/node_modules/@types/node/assert.d.ts +190 -189
- package/node_modules/@types/node/async_hooks.d.ts +43 -151
- package/node_modules/@types/node/buffer.buffer.d.ts +13 -12
- package/node_modules/@types/node/buffer.d.ts +237 -102
- package/node_modules/@types/node/child_process.d.ts +154 -39
- package/node_modules/@types/node/cluster.d.ts +384 -238
- package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/node_modules/@types/node/console.d.ts +404 -45
- package/node_modules/@types/node/constants.d.ts +10 -3
- package/node_modules/@types/node/crypto.d.ts +1600 -1007
- package/node_modules/@types/node/dgram.d.ts +81 -133
- package/node_modules/@types/node/diagnostics_channel.d.ts +59 -277
- package/node_modules/@types/node/dns/promises.d.ts +15 -9
- package/node_modules/@types/node/dns.d.ts +183 -136
- package/node_modules/@types/node/domain.d.ts +32 -12
- package/node_modules/@types/node/events.d.ts +696 -728
- package/node_modules/@types/node/fs/promises.d.ts +85 -256
- package/node_modules/@types/node/fs.d.ts +525 -865
- package/node_modules/@types/node/globals.d.ts +34 -12
- package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
- package/node_modules/@types/node/http.d.ts +311 -432
- package/node_modules/@types/node/http2.d.ts +891 -545
- package/node_modules/@types/node/https.d.ts +243 -64
- package/node_modules/@types/node/index.d.ts +7 -25
- package/node_modules/@types/node/inspector.d.ts +58 -70
- package/node_modules/@types/node/inspector.generated.d.ts +411 -765
- package/node_modules/@types/node/module.d.ts +219 -54
- package/node_modules/@types/node/net.d.ts +222 -208
- package/node_modules/@types/node/os.d.ts +49 -41
- package/node_modules/@types/node/package.json +3 -13
- package/node_modules/@types/node/path.d.ts +141 -119
- package/node_modules/@types/node/perf_hooks.d.ts +673 -310
- package/node_modules/@types/node/process.d.ts +205 -389
- package/node_modules/@types/node/punycode.d.ts +31 -3
- package/node_modules/@types/node/querystring.d.ts +16 -3
- package/node_modules/@types/node/readline/promises.d.ts +6 -3
- package/node_modules/@types/node/readline.d.ts +152 -66
- package/node_modules/@types/node/repl.d.ts +109 -101
- package/node_modules/@types/node/sea.d.ts +116 -1
- package/node_modules/@types/node/sqlite.d.ts +68 -486
- package/node_modules/@types/node/stream/consumers.d.ts +15 -91
- package/node_modules/@types/node/stream/promises.d.ts +15 -136
- package/node_modules/@types/node/stream/web.d.ts +456 -179
- package/node_modules/@types/node/stream.d.ts +491 -603
- package/node_modules/@types/node/string_decoder.d.ts +43 -3
- package/node_modules/@types/node/test.d.ts +292 -513
- package/node_modules/@types/node/timers/promises.d.ts +18 -3
- package/node_modules/@types/node/timers.d.ts +141 -3
- package/node_modules/@types/node/tls.d.ts +242 -140
- package/node_modules/@types/node/trace_events.d.ts +97 -3
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +8 -7
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
- package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
- package/node_modules/@types/node/tty.d.ts +43 -61
- package/node_modules/@types/node/url.d.ts +584 -156
- package/node_modules/@types/node/util.d.ts +1110 -181
- package/node_modules/@types/node/v8.d.ts +36 -175
- package/node_modules/@types/node/vm.d.ts +209 -292
- package/node_modules/@types/node/wasi.d.ts +74 -24
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
- package/node_modules/@types/node/web-globals/domexception.d.ts +0 -15
- package/node_modules/@types/node/web-globals/events.d.ts +0 -9
- package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
- package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
- package/node_modules/@types/node/web-globals/streams.d.ts +0 -93
- package/node_modules/@types/node/worker_threads.d.ts +407 -257
- package/node_modules/@types/node/zlib.d.ts +165 -7
- package/node_modules/hono/dist/cjs/client/client.js +4 -4
- package/node_modules/hono/dist/cjs/hono-base.js +7 -6
- package/node_modules/hono/dist/cjs/jsx/base.js +18 -1
- package/node_modules/hono/dist/cjs/jsx/components.js +25 -26
- package/node_modules/hono/dist/cjs/jsx/context.js +5 -5
- package/node_modules/hono/dist/cjs/jsx/dom/server.js +5 -1
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +2 -2
- package/node_modules/hono/dist/cjs/jsx/streaming.js +4 -5
- package/node_modules/hono/dist/client/client.js +4 -4
- package/node_modules/hono/dist/hono-base.js +7 -6
- package/node_modules/hono/dist/jsx/base.js +15 -1
- package/node_modules/hono/dist/jsx/components.js +26 -27
- package/node_modules/hono/dist/jsx/context.js +6 -6
- package/node_modules/hono/dist/jsx/dom/server.js +5 -1
- package/node_modules/hono/dist/jsx/intrinsic-element/components.js +3 -3
- package/node_modules/hono/dist/jsx/streaming.js +5 -6
- package/node_modules/hono/dist/types/context.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/base.d.ts +3 -0
- package/node_modules/hono/package.json +2 -2
- package/node_modules/jose/dist/types/index.d.ts +1 -2
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -11
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +13 -16
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -11
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -19
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +10 -16
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +18 -21
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -1
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +4 -6
- package/node_modules/jose/dist/types/jwks/local.d.ts +5 -4
- package/node_modules/jose/dist/types/jwks/remote.d.ts +20 -21
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +4 -4
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +8 -11
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -5
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +8 -11
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +10 -14
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +11 -17
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +14 -11
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +24 -22
- package/node_modules/jose/dist/types/jwt/sign.d.ts +3 -7
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -6
- package/node_modules/jose/dist/types/jwt/verify.d.ts +13 -6
- package/node_modules/jose/dist/types/key/export.d.ts +6 -6
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +9 -14
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +10 -10
- package/node_modules/jose/dist/types/key/import.d.ts +19 -18
- package/node_modules/jose/dist/types/types.d.ts +152 -247
- package/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +6 -1
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -3
- package/node_modules/jose/dist/types/util/errors.d.ts +29 -40
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +1 -2
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +9 -26
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +3 -3
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +11 -30
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +6 -6
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +33 -57
- package/node_modules/jose/dist/webapi/jwk/embedded.js +3 -4
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +3 -6
- package/node_modules/jose/dist/webapi/jwks/local.js +16 -10
- package/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +2 -4
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +2 -2
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +8 -15
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +4 -14
- package/node_modules/jose/dist/webapi/jws/general/sign.js +4 -11
- package/node_modules/jose/dist/webapi/jws/general/verify.js +5 -7
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +2 -3
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +11 -25
- package/node_modules/jose/dist/webapi/jwt/sign.js +1 -1
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +1 -2
- package/node_modules/jose/dist/webapi/jwt/verify.js +4 -4
- package/node_modules/jose/dist/webapi/key/export.js +12 -16
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +4 -13
- package/node_modules/jose/dist/webapi/key/generate_secret.js +1 -1
- package/node_modules/jose/dist/webapi/key/import.js +5 -9
- package/node_modules/jose/dist/webapi/lib/asn1.js +2 -4
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +35 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +21 -29
- package/node_modules/jose/dist/webapi/lib/deflate.js +9 -19
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -4
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +21 -54
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +26 -59
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +29 -43
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +37 -45
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
- package/node_modules/jose/dist/webapi/lib/key.js +119 -59
- package/node_modules/jose/dist/webapi/lib/key_management.js +45 -80
- package/node_modules/jose/dist/webapi/lib/{options.js → validate.js} +64 -3
- package/node_modules/jose/dist/webapi/util/base64url.js +5 -19
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +1 -1
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +1 -1
- package/node_modules/jose/package.json +1 -1
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
- package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
- package/node_modules/undici/lib/dispatcher/client-h2.js +70 -14
- package/node_modules/undici/lib/dispatcher/client.js +6 -2
- package/node_modules/undici/lib/handler/cache-handler.js +21 -5
- package/node_modules/undici/lib/handler/retry-handler.js +42 -7
- package/node_modules/undici/lib/interceptor/cache.js +20 -1
- package/node_modules/undici/lib/interceptor/decompress.js +146 -14
- package/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +245 -150
- package/node_modules/undici/lib/web/websocket/connection.js +1 -1
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/undici/package.json +1 -1
- package/node_modules/undici/types/interceptors.d.ts +2 -0
- package/node_modules/undici-types/agent.d.ts +13 -12
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +12 -13
- package/node_modules/undici-types/client.d.ts +34 -55
- package/node_modules/undici-types/connector.d.ts +2 -4
- package/node_modules/undici-types/cookies.d.ts +0 -2
- package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
- package/node_modules/undici-types/dispatcher.d.ts +137 -134
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
- package/node_modules/undici-types/errors.d.ts +54 -82
- package/node_modules/undici-types/eventsource.d.ts +4 -9
- package/node_modules/undici-types/fetch.d.ts +24 -46
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/handlers.d.ts +9 -8
- package/node_modules/undici-types/header.d.ts +1 -162
- package/node_modules/undici-types/index.d.ts +47 -69
- package/node_modules/undici-types/interceptors.d.ts +9 -72
- package/node_modules/undici-types/mock-agent.d.ts +18 -36
- package/node_modules/undici-types/mock-client.d.ts +4 -6
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
- package/node_modules/undici-types/mock-pool.d.ts +4 -6
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +4 -0
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +14 -14
- package/node_modules/undici-types/proxy-agent.d.ts +6 -7
- package/node_modules/undici-types/readable.d.ts +16 -19
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +10 -19
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/webidl.d.ts +30 -148
- package/node_modules/undici-types/websocket.d.ts +10 -48
- package/node_modules/zod/compile.cjs +19 -0
- package/node_modules/zod/index.cjs +19 -0
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +8 -7
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v4/classic/checks.ts +0 -1
- package/node_modules/zod/src/v4/classic/external.ts +2 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
- package/node_modules/zod/src/v4/classic/schemas.ts +255 -164
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +59 -9
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +274 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +18 -2
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +225 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +25 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +147 -3
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
- package/node_modules/zod/src/v4/core/api.ts +30 -6
- package/node_modules/zod/src/v4/core/checks.ts +1 -101
- package/node_modules/zod/src/v4/core/compile.ts +202 -88
- package/node_modules/zod/src/v4/core/doc.ts +6 -2
- package/node_modules/zod/src/v4/core/errors.ts +3 -6
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +226 -68
- package/node_modules/zod/src/v4/core/memoizer.ts +78 -28
- package/node_modules/zod/src/v4/core/parse.ts +37 -16
- package/node_modules/zod/src/v4/core/regexes.ts +10 -4
- package/node_modules/zod/src/v4/core/schemas.ts +359 -122
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +222 -2
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +10 -8
- package/node_modules/zod/src/v4/core/util.ts +222 -147
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +11 -0
- package/node_modules/zod/src/v4/locales/ar.ts +1 -0
- package/node_modules/zod/src/v4/locales/az.ts +1 -0
- package/node_modules/zod/src/v4/locales/be.ts +1 -0
- package/node_modules/zod/src/v4/locales/bg.ts +1 -0
- package/node_modules/zod/src/v4/locales/bn.ts +1 -0
- package/node_modules/zod/src/v4/locales/ca.ts +1 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +1 -0
- package/node_modules/zod/src/v4/locales/cs.ts +1 -0
- package/node_modules/zod/src/v4/locales/da.ts +1 -0
- package/node_modules/zod/src/v4/locales/de.ts +1 -0
- package/node_modules/zod/src/v4/locales/el.ts +1 -0
- package/node_modules/zod/src/v4/locales/en.ts +1 -0
- package/node_modules/zod/src/v4/locales/eo.ts +1 -0
- package/node_modules/zod/src/v4/locales/es.ts +1 -0
- package/node_modules/zod/src/v4/locales/fa.ts +1 -0
- package/node_modules/zod/src/v4/locales/fi.ts +1 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +1 -0
- package/node_modules/zod/src/v4/locales/fr.ts +1 -0
- package/node_modules/zod/src/v4/locales/gu.ts +1 -0
- package/node_modules/zod/src/v4/locales/he.ts +1 -0
- package/node_modules/zod/src/v4/locales/hi.ts +1 -0
- package/node_modules/zod/src/v4/locales/hr.ts +1 -0
- package/node_modules/zod/src/v4/locales/hu.ts +1 -0
- package/node_modules/zod/src/v4/locales/hy.ts +1 -0
- package/node_modules/zod/src/v4/locales/id.ts +1 -0
- package/node_modules/zod/src/v4/locales/index.ts +1 -0
- package/node_modules/zod/src/v4/locales/is.ts +1 -0
- package/node_modules/zod/src/v4/locales/it.ts +1 -0
- package/node_modules/zod/src/v4/locales/ja.ts +1 -0
- package/node_modules/zod/src/v4/locales/ka.ts +1 -0
- package/node_modules/zod/src/v4/locales/km.ts +1 -0
- package/node_modules/zod/src/v4/locales/kn.ts +1 -0
- package/node_modules/zod/src/v4/locales/ko.ts +1 -0
- package/node_modules/zod/src/v4/locales/lt.ts +1 -0
- package/node_modules/zod/src/v4/locales/mk.ts +1 -0
- package/node_modules/zod/src/v4/locales/ms.ts +1 -0
- package/node_modules/zod/src/v4/locales/ne.ts +1 -0
- package/node_modules/zod/src/v4/locales/nl.ts +1 -0
- package/node_modules/zod/src/v4/locales/nn.ts +1 -0
- package/node_modules/zod/src/v4/locales/no.ts +1 -0
- package/node_modules/zod/src/v4/locales/ota.ts +1 -0
- package/node_modules/zod/src/v4/locales/pl.ts +1 -0
- package/node_modules/zod/src/v4/locales/ps.ts +1 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +1 -0
- package/node_modules/zod/src/v4/locales/pt.ts +1 -0
- package/node_modules/zod/src/v4/locales/ro.ts +1 -0
- package/node_modules/zod/src/v4/locales/ru.ts +1 -0
- package/node_modules/zod/src/v4/locales/sk.ts +1 -0
- package/node_modules/zod/src/v4/locales/sl.ts +1 -0
- package/node_modules/zod/src/v4/locales/sv.ts +1 -0
- package/node_modules/zod/src/v4/locales/ta.ts +1 -0
- package/node_modules/zod/src/v4/locales/tg.ts +134 -0
- package/node_modules/zod/src/v4/locales/th.ts +1 -0
- package/node_modules/zod/src/v4/locales/tk.ts +1 -0
- package/node_modules/zod/src/v4/locales/tr.ts +1 -0
- package/node_modules/zod/src/v4/locales/uk.ts +1 -0
- package/node_modules/zod/src/v4/locales/ur.ts +1 -0
- package/node_modules/zod/src/v4/locales/uz.ts +1 -0
- package/node_modules/zod/src/v4/locales/vi.ts +1 -0
- package/node_modules/zod/src/v4/locales/yo.ts +1 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +1 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +1 -0
- package/node_modules/zod/src/v4/mini/checks.ts +0 -1
- package/node_modules/zod/src/v4/mini/external.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +39 -3
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +30 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +16 -0
- package/node_modules/zod/v3/ZodError.cjs +19 -0
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +19 -0
- package/node_modules/zod/v4/classic/checks.cjs +20 -2
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
- package/node_modules/zod/v4/classic/errors.cjs +19 -0
- package/node_modules/zod/v4/classic/external.cjs +22 -1
- package/node_modules/zod/v4/classic/external.d.cts +1 -1
- package/node_modules/zod/v4/classic/external.d.ts +1 -1
- package/node_modules/zod/v4/classic/external.js +1 -1
- package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
- package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
- package/node_modules/zod/v4/classic/in-out.cjs +19 -0
- package/node_modules/zod/v4/classic/index.cjs +19 -0
- package/node_modules/zod/v4/classic/iso.cjs +19 -0
- package/node_modules/zod/v4/classic/parse.cjs +19 -0
- package/node_modules/zod/v4/classic/schemas.cjs +100 -31
- package/node_modules/zod/v4/classic/schemas.d.cts +17 -1
- package/node_modules/zod/v4/classic/schemas.d.ts +17 -1
- package/node_modules/zod/v4/classic/schemas.js +77 -29
- package/node_modules/zod/v4/core/api.cjs +37 -2
- package/node_modules/zod/v4/core/api.d.cts +6 -4
- package/node_modules/zod/v4/core/api.d.ts +6 -4
- package/node_modules/zod/v4/core/api.js +17 -2
- package/node_modules/zod/v4/core/checks.cjs +19 -96
- package/node_modules/zod/v4/core/checks.d.cts +1 -1
- package/node_modules/zod/v4/core/checks.d.ts +1 -1
- package/node_modules/zod/v4/core/checks.js +0 -96
- package/node_modules/zod/v4/core/compile.cjs +172 -72
- package/node_modules/zod/v4/core/compile.d.cts +18 -4
- package/node_modules/zod/v4/core/compile.d.ts +18 -4
- package/node_modules/zod/v4/core/compile.js +153 -73
- package/node_modules/zod/v4/core/core.cjs +19 -0
- package/node_modules/zod/v4/core/doc.cjs +26 -2
- package/node_modules/zod/v4/core/doc.js +7 -2
- package/node_modules/zod/v4/core/errors.cjs +21 -5
- package/node_modules/zod/v4/core/errors.js +2 -5
- package/node_modules/zod/v4/core/index.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
- package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +215 -63
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +17 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +17 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +195 -64
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/memoizer.cjs +114 -23
- package/node_modules/zod/v4/core/memoizer.js +72 -23
- package/node_modules/zod/v4/core/parse.cjs +56 -16
- package/node_modules/zod/v4/core/parse.js +37 -16
- package/node_modules/zod/v4/core/regexes.cjs +29 -6
- package/node_modules/zod/v4/core/regexes.d.cts +2 -0
- package/node_modules/zod/v4/core/regexes.d.ts +2 -0
- package/node_modules/zod/v4/core/regexes.js +8 -4
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/schemas.cjs +331 -103
- package/node_modules/zod/v4/core/schemas.d.cts +43 -8
- package/node_modules/zod/v4/core/schemas.d.ts +43 -8
- package/node_modules/zod/v4/core/schemas.js +310 -102
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +29 -7
- package/node_modules/zod/v4/core/to-json-schema.d.cts +7 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +7 -3
- package/node_modules/zod/v4/core/to-json-schema.js +8 -7
- package/node_modules/zod/v4/core/util.cjs +181 -143
- package/node_modules/zod/v4/core/util.d.cts +25 -4
- package/node_modules/zod/v4/core/util.d.ts +25 -4
- package/node_modules/zod/v4/core/util.js +160 -143
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +31 -0
- package/node_modules/zod/v4/core/visit.js +12 -0
- package/node_modules/zod/v4/index.cjs +19 -0
- package/node_modules/zod/v4/locales/ar.cjs +1 -0
- package/node_modules/zod/v4/locales/ar.js +1 -0
- package/node_modules/zod/v4/locales/az.cjs +1 -0
- package/node_modules/zod/v4/locales/az.js +1 -0
- package/node_modules/zod/v4/locales/be.cjs +1 -0
- package/node_modules/zod/v4/locales/be.js +1 -0
- package/node_modules/zod/v4/locales/bg.cjs +1 -0
- package/node_modules/zod/v4/locales/bg.js +1 -0
- package/node_modules/zod/v4/locales/bn.cjs +1 -0
- package/node_modules/zod/v4/locales/bn.js +1 -0
- package/node_modules/zod/v4/locales/ca.cjs +1 -0
- package/node_modules/zod/v4/locales/ca.js +1 -0
- package/node_modules/zod/v4/locales/ckb.cjs +1 -0
- package/node_modules/zod/v4/locales/ckb.js +1 -0
- package/node_modules/zod/v4/locales/cs.cjs +1 -0
- package/node_modules/zod/v4/locales/cs.js +1 -0
- package/node_modules/zod/v4/locales/da.cjs +1 -0
- package/node_modules/zod/v4/locales/da.js +1 -0
- package/node_modules/zod/v4/locales/de.cjs +1 -0
- package/node_modules/zod/v4/locales/de.js +1 -0
- package/node_modules/zod/v4/locales/el.cjs +1 -0
- package/node_modules/zod/v4/locales/el.js +1 -0
- package/node_modules/zod/v4/locales/en.cjs +1 -0
- package/node_modules/zod/v4/locales/en.js +1 -0
- package/node_modules/zod/v4/locales/eo.cjs +1 -0
- package/node_modules/zod/v4/locales/eo.js +1 -0
- package/node_modules/zod/v4/locales/es.cjs +1 -0
- package/node_modules/zod/v4/locales/es.js +1 -0
- package/node_modules/zod/v4/locales/fa.cjs +1 -0
- package/node_modules/zod/v4/locales/fa.js +1 -0
- package/node_modules/zod/v4/locales/fi.cjs +1 -0
- package/node_modules/zod/v4/locales/fi.js +1 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +1 -0
- package/node_modules/zod/v4/locales/fr-CA.js +1 -0
- package/node_modules/zod/v4/locales/fr.cjs +1 -0
- package/node_modules/zod/v4/locales/fr.js +1 -0
- package/node_modules/zod/v4/locales/gu.cjs +1 -0
- package/node_modules/zod/v4/locales/gu.js +1 -0
- package/node_modules/zod/v4/locales/he.cjs +1 -0
- package/node_modules/zod/v4/locales/he.js +1 -0
- package/node_modules/zod/v4/locales/hi.cjs +1 -0
- package/node_modules/zod/v4/locales/hi.js +1 -0
- package/node_modules/zod/v4/locales/hr.cjs +1 -0
- package/node_modules/zod/v4/locales/hr.js +1 -0
- package/node_modules/zod/v4/locales/hu.cjs +1 -0
- package/node_modules/zod/v4/locales/hu.js +1 -0
- package/node_modules/zod/v4/locales/hy.cjs +1 -0
- package/node_modules/zod/v4/locales/hy.js +1 -0
- package/node_modules/zod/v4/locales/id.cjs +1 -0
- package/node_modules/zod/v4/locales/id.js +1 -0
- package/node_modules/zod/v4/locales/index.cjs +22 -1
- package/node_modules/zod/v4/locales/index.d.cts +1 -0
- package/node_modules/zod/v4/locales/index.d.ts +1 -0
- package/node_modules/zod/v4/locales/index.js +1 -0
- package/node_modules/zod/v4/locales/is.cjs +1 -0
- package/node_modules/zod/v4/locales/is.js +1 -0
- package/node_modules/zod/v4/locales/it.cjs +1 -0
- package/node_modules/zod/v4/locales/it.js +1 -0
- package/node_modules/zod/v4/locales/ja.cjs +1 -0
- package/node_modules/zod/v4/locales/ja.js +1 -0
- package/node_modules/zod/v4/locales/ka.cjs +1 -0
- package/node_modules/zod/v4/locales/ka.js +1 -0
- package/node_modules/zod/v4/locales/km.cjs +1 -0
- package/node_modules/zod/v4/locales/km.js +1 -0
- package/node_modules/zod/v4/locales/kn.cjs +1 -0
- package/node_modules/zod/v4/locales/kn.js +1 -0
- package/node_modules/zod/v4/locales/ko.cjs +1 -0
- package/node_modules/zod/v4/locales/ko.js +1 -0
- package/node_modules/zod/v4/locales/lt.cjs +1 -0
- package/node_modules/zod/v4/locales/lt.js +1 -0
- package/node_modules/zod/v4/locales/mk.cjs +1 -0
- package/node_modules/zod/v4/locales/mk.js +1 -0
- package/node_modules/zod/v4/locales/ms.cjs +1 -0
- package/node_modules/zod/v4/locales/ms.js +1 -0
- package/node_modules/zod/v4/locales/ne.cjs +1 -0
- package/node_modules/zod/v4/locales/ne.js +1 -0
- package/node_modules/zod/v4/locales/nl.cjs +1 -0
- package/node_modules/zod/v4/locales/nl.js +1 -0
- package/node_modules/zod/v4/locales/nn.cjs +1 -0
- package/node_modules/zod/v4/locales/nn.js +1 -0
- package/node_modules/zod/v4/locales/no.cjs +1 -0
- package/node_modules/zod/v4/locales/no.js +1 -0
- package/node_modules/zod/v4/locales/ota.cjs +1 -0
- package/node_modules/zod/v4/locales/ota.js +1 -0
- package/node_modules/zod/v4/locales/pl.cjs +1 -0
- package/node_modules/zod/v4/locales/pl.js +1 -0
- package/node_modules/zod/v4/locales/ps.cjs +1 -0
- package/node_modules/zod/v4/locales/ps.js +1 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +1 -0
- package/node_modules/zod/v4/locales/pt-BR.js +1 -0
- package/node_modules/zod/v4/locales/pt.cjs +1 -0
- package/node_modules/zod/v4/locales/pt.js +1 -0
- package/node_modules/zod/v4/locales/ro.cjs +1 -0
- package/node_modules/zod/v4/locales/ro.js +1 -0
- package/node_modules/zod/v4/locales/ru.cjs +1 -0
- package/node_modules/zod/v4/locales/ru.js +1 -0
- package/node_modules/zod/v4/locales/sk.cjs +1 -0
- package/node_modules/zod/v4/locales/sk.js +1 -0
- package/node_modules/zod/v4/locales/sl.cjs +1 -0
- package/node_modules/zod/v4/locales/sl.js +1 -0
- package/node_modules/zod/v4/locales/sv.cjs +1 -0
- package/node_modules/zod/v4/locales/sv.js +1 -0
- package/node_modules/zod/v4/locales/ta.cjs +1 -0
- package/node_modules/zod/v4/locales/ta.js +1 -0
- package/node_modules/zod/v4/locales/tg.cjs +143 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +116 -0
- package/node_modules/zod/v4/locales/th.cjs +1 -0
- package/node_modules/zod/v4/locales/th.js +1 -0
- package/node_modules/zod/v4/locales/tk.cjs +1 -0
- package/node_modules/zod/v4/locales/tk.js +1 -0
- package/node_modules/zod/v4/locales/tr.cjs +1 -0
- package/node_modules/zod/v4/locales/tr.js +1 -0
- package/node_modules/zod/v4/locales/uk.cjs +1 -0
- package/node_modules/zod/v4/locales/uk.js +1 -0
- package/node_modules/zod/v4/locales/ur.cjs +1 -0
- package/node_modules/zod/v4/locales/ur.js +1 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/locales/vi.cjs +1 -0
- package/node_modules/zod/v4/locales/vi.js +1 -0
- package/node_modules/zod/v4/locales/yo.cjs +1 -0
- package/node_modules/zod/v4/locales/yo.js +1 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +1 -0
- package/node_modules/zod/v4/locales/zh-CN.js +1 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +1 -0
- package/node_modules/zod/v4/locales/zh-TW.js +1 -0
- package/node_modules/zod/v4/mini/checks.cjs +20 -2
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
- package/node_modules/zod/v4/mini/external.cjs +22 -1
- package/node_modules/zod/v4/mini/external.d.cts +1 -1
- package/node_modules/zod/v4/mini/external.d.ts +1 -1
- package/node_modules/zod/v4/mini/external.js +1 -1
- package/node_modules/zod/v4/mini/in-out.cjs +19 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +19 -0
- package/node_modules/zod/v4/mini/schemas.cjs +42 -4
- package/node_modules/zod/v4/mini/schemas.d.cts +9 -1
- package/node_modules/zod/v4/mini/schemas.d.ts +9 -1
- package/node_modules/zod/v4/mini/schemas.js +19 -2
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/package.json +2 -2
- package/slingshot/index.js +151 -149
- package/node_modules/@types/node/ffi.d.ts +0 -486
- package/node_modules/@types/node/inspector/promises.d.ts +0 -35
- package/node_modules/@types/node/path/posix.d.ts +0 -8
- package/node_modules/@types/node/path/win32.d.ts +0 -8
- package/node_modules/@types/node/quic.d.ts +0 -2151
- package/node_modules/@types/node/stream/iter.d.ts +0 -452
- package/node_modules/@types/node/test/reporters.d.ts +0 -59
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
- package/node_modules/@types/node/ts5.7/index.d.ts +0 -118
- package/node_modules/@types/node/util/types.d.ts +0 -558
- package/node_modules/@types/node/vfs.d.ts +0 -210
- package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
- package/node_modules/@types/node/web-globals/console.d.ts +0 -9
- package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
- package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
- package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
- package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
- package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
- package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
- package/node_modules/@types/node/web-globals/url.d.ts +0 -24
- package/node_modules/@types/node/zlib/iter.d.ts +0 -131
- package/node_modules/jose/dist/webapi/lib/base64.js +0 -20
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -27
- package/node_modules/jose/dist/webapi/lib/helpers.js +0 -45
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -12
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -19
- package/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -19
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -10
- package/node_modules/jose/dist/webapi/lib/key_options.js +0 -8
- package/node_modules/jose/dist/webapi/lib/signing.js +0 -22
- package/node_modules/jose/dist/webapi/lib/type_checks.js +0 -30
- package/node_modules/undici-types/cache-interceptor.d.ts +0 -179
- package/node_modules/undici-types/client-stats.d.ts +0 -15
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +0 -7
- package/node_modules/undici-types/h2c-client.d.ts +0 -73
- package/node_modules/undici-types/mock-call-history.d.ts +0 -111
- package/node_modules/undici-types/round-robin-pool.d.ts +0 -39
- package/node_modules/undici-types/snapshot-agent.d.ts +0 -113
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +0 -25
- package/node_modules/undici-types/utility.d.ts +0 -7
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `node:sqlite` module facilitates working with SQLite databases.
|
|
3
|
+
* To access it:
|
|
4
|
+
*
|
|
5
|
+
* ```js
|
|
6
|
+
* import sqlite from 'node:sqlite';
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* This module is only available under the `node:` scheme. The following will not
|
|
10
|
+
* work:
|
|
11
|
+
*
|
|
12
|
+
* ```js
|
|
13
|
+
* import sqlite from 'sqlite';
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* The following example shows the basic usage of the `node:sqlite` module to open
|
|
17
|
+
* an in-memory database, write data to the database, and then read the data back.
|
|
18
|
+
*
|
|
19
|
+
* ```js
|
|
20
|
+
* import { DatabaseSync } from 'node:sqlite';
|
|
21
|
+
* const database = new DatabaseSync(':memory:');
|
|
22
|
+
*
|
|
23
|
+
* // Execute SQL statements from strings.
|
|
24
|
+
* database.exec(`
|
|
25
|
+
* CREATE TABLE data(
|
|
26
|
+
* key INTEGER PRIMARY KEY,
|
|
27
|
+
* value TEXT
|
|
28
|
+
* ) STRICT
|
|
29
|
+
* `);
|
|
30
|
+
* // Create a prepared statement to insert data into the database.
|
|
31
|
+
* const insert = database.prepare('INSERT INTO data (key, value) VALUES (?, ?)');
|
|
32
|
+
* // Execute the prepared statement with bound values.
|
|
33
|
+
* insert.run(1, 'hello');
|
|
34
|
+
* insert.run(2, 'world');
|
|
35
|
+
* // Create a prepared statement to read data from the database.
|
|
36
|
+
* const query = database.prepare('SELECT * FROM data ORDER BY key');
|
|
37
|
+
* // Execute the prepared statement and log the result set.
|
|
38
|
+
* console.log(query.all());
|
|
39
|
+
* // Prints: [ { key: 1, value: 'hello' }, { key: 2, value: 'world' } ]
|
|
40
|
+
* ```
|
|
41
|
+
* @since v22.5.0
|
|
42
|
+
* @experimental
|
|
43
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/sqlite.js)
|
|
44
|
+
*/
|
|
1
45
|
declare module "node:sqlite" {
|
|
2
46
|
import { PathLike } from "node:fs";
|
|
3
47
|
type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView;
|
|
@@ -48,68 +92,37 @@ declare module "node:sqlite" {
|
|
|
48
92
|
* The [busy timeout](https://sqlite.org/c3ref/busy_timeout.html) in milliseconds. This is the maximum amount of
|
|
49
93
|
* time that SQLite will wait for a database lock to be released before
|
|
50
94
|
* returning an error.
|
|
51
|
-
* @since
|
|
95
|
+
* @since v22.16.0
|
|
52
96
|
* @default 0
|
|
53
97
|
*/
|
|
54
98
|
timeout?: number | undefined;
|
|
55
99
|
/**
|
|
56
100
|
* If `true`, integer fields are read as JavaScript `BigInt` values. If `false`,
|
|
57
101
|
* integer fields are read as JavaScript numbers.
|
|
58
|
-
* @since
|
|
102
|
+
* @since v22.18.0
|
|
59
103
|
* @default false
|
|
60
104
|
*/
|
|
61
105
|
readBigInts?: boolean | undefined;
|
|
62
106
|
/**
|
|
63
107
|
* If `true`, query results are returned as arrays instead of objects.
|
|
64
|
-
* @since
|
|
108
|
+
* @since v22.18.0
|
|
65
109
|
* @default false
|
|
66
110
|
*/
|
|
67
111
|
returnArrays?: boolean | undefined;
|
|
68
112
|
/**
|
|
69
113
|
* If `true`, allows binding named parameters without the prefix
|
|
70
114
|
* character (e.g., `foo` instead of `:foo`).
|
|
71
|
-
* @since
|
|
115
|
+
* @since v22.18.0
|
|
72
116
|
* @default true
|
|
73
117
|
*/
|
|
74
118
|
allowBareNamedParameters?: boolean | undefined;
|
|
75
119
|
/**
|
|
76
120
|
* If `true`, unknown named parameters are ignored when binding.
|
|
77
121
|
* If `false`, an exception is thrown for unknown named parameters.
|
|
78
|
-
* @since
|
|
122
|
+
* @since v22.18.0
|
|
79
123
|
* @default false
|
|
80
124
|
*/
|
|
81
125
|
allowUnknownNamedParameters?: boolean | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* If `true`, enables the defensive flag. When the defensive flag is enabled,
|
|
84
|
-
* language features that allow ordinary SQL to deliberately corrupt the database file are disabled.
|
|
85
|
-
* The defensive flag can also be set using `enableDefensive()`.
|
|
86
|
-
* @since v25.1.0
|
|
87
|
-
* @default true
|
|
88
|
-
*/
|
|
89
|
-
defensive?: boolean | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* Configuration for various SQLite limits. These limits
|
|
92
|
-
* can be used to prevent excessive resource consumption when handling
|
|
93
|
-
* potentially malicious input. See [Run-Time Limits](https://www.sqlite.org/c3ref/c_limit_attached.html) and [Limit Constants](https://www.sqlite.org/c3ref/limit.html)
|
|
94
|
-
* in the SQLite documentation for details. Default values are determined by
|
|
95
|
-
* SQLite's compile-time defaults and may vary depending on how SQLite was
|
|
96
|
-
* built. The following properties are supported:
|
|
97
|
-
* @since v25.8.0
|
|
98
|
-
*/
|
|
99
|
-
limits?: NodeJS.PartialOptions<DatabaseLimits> | undefined;
|
|
100
|
-
}
|
|
101
|
-
interface DatabaseLimits {
|
|
102
|
-
length: number;
|
|
103
|
-
sqlLength: number;
|
|
104
|
-
column: number;
|
|
105
|
-
exprDepth: number;
|
|
106
|
-
compoundSelect: number;
|
|
107
|
-
vdbeOp: number;
|
|
108
|
-
functionArg: number;
|
|
109
|
-
attach: number;
|
|
110
|
-
likePatternLength: number;
|
|
111
|
-
variableNumber: number;
|
|
112
|
-
triggerDepth: number;
|
|
113
126
|
}
|
|
114
127
|
interface CreateSessionOptions {
|
|
115
128
|
/**
|
|
@@ -127,12 +140,8 @@ declare module "node:sqlite" {
|
|
|
127
140
|
}
|
|
128
141
|
interface ApplyChangesetOptions {
|
|
129
142
|
/**
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* table name as the first argument. If the return value is falsy, then no
|
|
133
|
-
* attempt is made to apply any changes to the table.
|
|
134
|
-
* Otherwise, if the return value is truthy or no `filter` callback is provided,
|
|
135
|
-
* all changes related to the table are attempted.
|
|
143
|
+
* Skip changes that, when targeted table name is supplied to this function, return a truthy value.
|
|
144
|
+
* By default, all changes are attempted.
|
|
136
145
|
* @since v22.12.0
|
|
137
146
|
*/
|
|
138
147
|
filter?: ((tableName: string) => boolean) | undefined;
|
|
@@ -162,13 +171,6 @@ declare module "node:sqlite" {
|
|
|
162
171
|
*/
|
|
163
172
|
onConflict?: ((conflictType: number) => number) | undefined;
|
|
164
173
|
}
|
|
165
|
-
interface DeserializeOptions {
|
|
166
|
-
/**
|
|
167
|
-
* Name of the database to deserialize into.
|
|
168
|
-
* @default 'main'
|
|
169
|
-
*/
|
|
170
|
-
dbName?: string | undefined;
|
|
171
|
-
}
|
|
172
174
|
interface FunctionOptions {
|
|
173
175
|
/**
|
|
174
176
|
* If `true`, the [`SQLITE_DETERMINISTIC`](https://www.sqlite.org/c3ref/c_deterministic.html) flag is
|
|
@@ -223,28 +225,6 @@ declare module "node:sqlite" {
|
|
|
223
225
|
*/
|
|
224
226
|
inverse?: ((accumulator: T, ...args: SQLOutputValue[]) => T) | undefined;
|
|
225
227
|
}
|
|
226
|
-
interface PrepareOptions {
|
|
227
|
-
/**
|
|
228
|
-
* If `true`, integer fields are read as `BigInt`s.
|
|
229
|
-
* @since v25.5.0
|
|
230
|
-
*/
|
|
231
|
-
readBigInts?: boolean | undefined;
|
|
232
|
-
/**
|
|
233
|
-
* If `true`, results are returned as arrays.
|
|
234
|
-
* @since v25.5.0
|
|
235
|
-
*/
|
|
236
|
-
returnArrays?: boolean | undefined;
|
|
237
|
-
/**
|
|
238
|
-
* If `true`, allows binding named parameters without the prefix character.
|
|
239
|
-
* @since v25.5.0
|
|
240
|
-
*/
|
|
241
|
-
allowBareNamedParameters?: boolean | undefined;
|
|
242
|
-
/**
|
|
243
|
-
* If `true`, unknown named parameters are ignored.
|
|
244
|
-
* @since v25.5.0
|
|
245
|
-
*/
|
|
246
|
-
allowUnknownNamedParameters?: boolean | undefined;
|
|
247
|
-
}
|
|
248
228
|
/**
|
|
249
229
|
* This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
|
|
250
230
|
* exposed by this class execute synchronously.
|
|
@@ -286,7 +266,7 @@ declare module "node:sqlite" {
|
|
|
286
266
|
*
|
|
287
267
|
* db.prepare('SELECT sumint(y) as total FROM t3').get(); // { total: 21 }
|
|
288
268
|
* ```
|
|
289
|
-
* @since
|
|
269
|
+
* @since v22.16.0
|
|
290
270
|
* @param name The name of the SQLite function to create.
|
|
291
271
|
* @param options Function configuration settings.
|
|
292
272
|
*/
|
|
@@ -302,23 +282,10 @@ declare module "node:sqlite" {
|
|
|
302
282
|
* Loads a shared library into the database connection. This method is a wrapper
|
|
303
283
|
* around [`sqlite3_load_extension()`](https://www.sqlite.org/c3ref/load_extension.html). It is required to enable the
|
|
304
284
|
* `allowExtension` option when constructing the `DatabaseSync` instance.
|
|
305
|
-
*
|
|
306
|
-
* ```js
|
|
307
|
-
* import { DatabaseSync } from 'node:sqlite';
|
|
308
|
-
* const database = new DatabaseSync(':memory:', { allowExtension: true });
|
|
309
|
-
*
|
|
310
|
-
* // Load using the entry point derived from the filename.
|
|
311
|
-
* database.loadExtension('./decimal.dylib');
|
|
312
|
-
*
|
|
313
|
-
* // Override the entry point when the derived name does not match.
|
|
314
|
-
* database.loadExtension('./base64.dylib', 'sqlite3_base64_init');
|
|
315
285
|
* @since v22.13.0
|
|
316
286
|
* @param path The path to the shared library to load.
|
|
317
|
-
* @param entryPoint The name of the extension's entry-point function. When
|
|
318
|
-
* omitted, SQLite derives the entry point from the shared library's filename;
|
|
319
|
-
* pass this argument explicitly when the derived name does not match.
|
|
320
287
|
*/
|
|
321
|
-
loadExtension(path: string
|
|
288
|
+
loadExtension(path: string): void;
|
|
322
289
|
/**
|
|
323
290
|
* Enables or disables the `loadExtension` SQL function, and the `loadExtension()`
|
|
324
291
|
* method. When `allowExtension` is `false` when constructing, you cannot enable
|
|
@@ -327,17 +294,9 @@ declare module "node:sqlite" {
|
|
|
327
294
|
* @param allow Whether to allow loading extensions.
|
|
328
295
|
*/
|
|
329
296
|
enableLoadExtension(allow: boolean): void;
|
|
330
|
-
/**
|
|
331
|
-
* Enables or disables the defensive flag. When the defensive flag is active,
|
|
332
|
-
* language features that allow ordinary SQL to deliberately corrupt the database file are disabled.
|
|
333
|
-
* See [`SQLITE_DBCONFIG_DEFENSIVE`](https://www.sqlite.org/c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive) in the SQLite documentation for details.
|
|
334
|
-
* @since v25.1.0
|
|
335
|
-
* @param active Whether to set the defensive flag.
|
|
336
|
-
*/
|
|
337
|
-
enableDefensive(active: boolean): void;
|
|
338
297
|
/**
|
|
339
298
|
* This method is a wrapper around [`sqlite3_db_filename()`](https://sqlite.org/c3ref/db_filename.html)
|
|
340
|
-
* @since
|
|
299
|
+
* @since v22.16.0
|
|
341
300
|
* @param dbName Name of the database. This can be `'main'` (the default primary database) or any other
|
|
342
301
|
* database that has been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html) **Default:** `'main'`.
|
|
343
302
|
* @returns The location of the database file. When using an in-memory database,
|
|
@@ -358,75 +317,18 @@ declare module "node:sqlite" {
|
|
|
358
317
|
* @since v22.13.0
|
|
359
318
|
* @param name The name of the SQLite function to create.
|
|
360
319
|
* @param options Optional configuration settings for the function.
|
|
361
|
-
* @param
|
|
362
|
-
* invoked. The return value of this function should be a valid
|
|
363
|
-
*
|
|
364
|
-
*
|
|
320
|
+
* @param func The JavaScript function to call when the SQLite
|
|
321
|
+
* function is invoked. The return value of this function should be a valid
|
|
322
|
+
* SQLite data type: see
|
|
323
|
+
* [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v22.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite).
|
|
324
|
+
* The result defaults to `NULL` if the return value is `undefined`.
|
|
365
325
|
*/
|
|
366
326
|
function(
|
|
367
327
|
name: string,
|
|
368
328
|
options: FunctionOptions,
|
|
369
|
-
|
|
370
|
-
): void;
|
|
371
|
-
function(name: string, fn: (...args: SQLOutputValue[]) => SQLInputValue): void;
|
|
372
|
-
/**
|
|
373
|
-
* Sets an authorizer callback that SQLite will invoke whenever it attempts to
|
|
374
|
-
* access data or modify the database schema through prepared statements.
|
|
375
|
-
* This can be used to implement security policies, audit access, or restrict certain operations.
|
|
376
|
-
* This method is a wrapper around [`sqlite3_set_authorizer()`](https://sqlite.org/c3ref/set_authorizer.html).
|
|
377
|
-
*
|
|
378
|
-
* When invoked, the callback receives five arguments:
|
|
379
|
-
*
|
|
380
|
-
* * `actionCode` {number} The type of operation being performed (e.g.,
|
|
381
|
-
* `SQLITE_INSERT`, `SQLITE_UPDATE`, `SQLITE_SELECT`).
|
|
382
|
-
* * `arg1` {string|null} The first argument (context-dependent, often a table name).
|
|
383
|
-
* * `arg2` {string|null} The second argument (context-dependent, often a column name).
|
|
384
|
-
* * `dbName` {string|null} The name of the database.
|
|
385
|
-
* * `triggerOrView` {string|null} The name of the trigger or view causing the access.
|
|
386
|
-
*
|
|
387
|
-
* The callback must return one of the following constants:
|
|
388
|
-
*
|
|
389
|
-
* * `SQLITE_OK` - Allow the operation.
|
|
390
|
-
* * `SQLITE_DENY` - Deny the operation (causes an error).
|
|
391
|
-
* * `SQLITE_IGNORE` - Ignore the operation (silently skip).
|
|
392
|
-
*
|
|
393
|
-
* ```js
|
|
394
|
-
* import { DatabaseSync, constants } from 'node:sqlite';
|
|
395
|
-
* const db = new DatabaseSync(':memory:');
|
|
396
|
-
*
|
|
397
|
-
* // Set up an authorizer that denies all table creation
|
|
398
|
-
* db.setAuthorizer((actionCode) => {
|
|
399
|
-
* if (actionCode === constants.SQLITE_CREATE_TABLE) {
|
|
400
|
-
* return constants.SQLITE_DENY;
|
|
401
|
-
* }
|
|
402
|
-
* return constants.SQLITE_OK;
|
|
403
|
-
* });
|
|
404
|
-
*
|
|
405
|
-
* // This will work
|
|
406
|
-
* db.prepare('SELECT 1').get();
|
|
407
|
-
*
|
|
408
|
-
* // This will throw an error due to authorization denial
|
|
409
|
-
* try {
|
|
410
|
-
* db.exec('CREATE TABLE blocked (id INTEGER)');
|
|
411
|
-
* } catch (err) {
|
|
412
|
-
* console.log('Operation blocked:', err.message);
|
|
413
|
-
* }
|
|
414
|
-
* ```
|
|
415
|
-
* @since v24.10.0
|
|
416
|
-
* @param callback The authorizer function to set, or `null` to
|
|
417
|
-
* clear the current authorizer.
|
|
418
|
-
*/
|
|
419
|
-
setAuthorizer(
|
|
420
|
-
callback:
|
|
421
|
-
| ((
|
|
422
|
-
actionCode: number,
|
|
423
|
-
arg1: string | null,
|
|
424
|
-
arg2: string | null,
|
|
425
|
-
dbName: string | null,
|
|
426
|
-
triggerOrView: string | null,
|
|
427
|
-
) => number)
|
|
428
|
-
| null,
|
|
329
|
+
func: (...args: SQLOutputValue[]) => SQLInputValue,
|
|
429
330
|
): void;
|
|
331
|
+
function(name: string, func: (...args: SQLOutputValue[]) => SQLInputValue): void;
|
|
430
332
|
/**
|
|
431
333
|
* Whether the database is currently open or not.
|
|
432
334
|
* @since v22.15.0
|
|
@@ -435,191 +337,23 @@ declare module "node:sqlite" {
|
|
|
435
337
|
/**
|
|
436
338
|
* Whether the database is currently within a transaction. This method
|
|
437
339
|
* is a wrapper around [`sqlite3_get_autocommit()`](https://sqlite.org/c3ref/get_autocommit.html).
|
|
438
|
-
* @since
|
|
340
|
+
* @since v22.16.0
|
|
439
341
|
*/
|
|
440
342
|
readonly isTransaction: boolean;
|
|
441
|
-
/**
|
|
442
|
-
* An object for getting and setting SQLite database limits at runtime.
|
|
443
|
-
* Each property corresponds to an SQLite limit and can be read or written.
|
|
444
|
-
*
|
|
445
|
-
* ```js
|
|
446
|
-
* const db = new DatabaseSync(':memory:');
|
|
447
|
-
*
|
|
448
|
-
* // Read current limit
|
|
449
|
-
* console.log(db.limits.length);
|
|
450
|
-
*
|
|
451
|
-
* // Set a new limit
|
|
452
|
-
* db.limits.sqlLength = 100000;
|
|
453
|
-
*
|
|
454
|
-
* // Reset a limit to its compile-time maximum
|
|
455
|
-
* db.limits.sqlLength = Infinity;
|
|
456
|
-
* ```
|
|
457
|
-
*
|
|
458
|
-
* Available properties: `length`, `sqlLength`, `column`, `exprDepth`,
|
|
459
|
-
* `compoundSelect`, `vdbeOp`, `functionArg`, `attach`, `likePatternLength`,
|
|
460
|
-
* `variableNumber`, `triggerDepth`.
|
|
461
|
-
*
|
|
462
|
-
* Setting a property to `Infinity` resets the limit to its compile-time maximum value.
|
|
463
|
-
* @since v25.8.0
|
|
464
|
-
*/
|
|
465
|
-
readonly limits: DatabaseLimits;
|
|
466
343
|
/**
|
|
467
344
|
* Opens the database specified in the `path` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via
|
|
468
345
|
* the constructor. An exception is thrown if the database is already open.
|
|
469
346
|
* @since v22.5.0
|
|
470
347
|
*/
|
|
471
348
|
open(): void;
|
|
472
|
-
/**
|
|
473
|
-
* Serializes the database into a binary representation, returned as a
|
|
474
|
-
* `Uint8Array`. This is useful for saving, cloning, or transferring an in-memory
|
|
475
|
-
* database. This method is a wrapper around [`sqlite3_serialize()`](https://sqlite.org/c3ref/serialize.html).
|
|
476
|
-
*
|
|
477
|
-
* ```js
|
|
478
|
-
* import { DatabaseSync } from 'node:sqlite';
|
|
479
|
-
*
|
|
480
|
-
* const db = new DatabaseSync(':memory:');
|
|
481
|
-
* db.exec('CREATE TABLE t(key INTEGER PRIMARY KEY, value TEXT)');
|
|
482
|
-
* db.exec("INSERT INTO t VALUES (1, 'hello')");
|
|
483
|
-
* const buffer = db.serialize();
|
|
484
|
-
* console.log(buffer.length); // Prints the byte length of the database
|
|
485
|
-
* ```
|
|
486
|
-
* @since v26.1.0
|
|
487
|
-
* @param dbName Name of the database to serialize. This can be `'main'`
|
|
488
|
-
* (the default primary database) or any other database that has been added with
|
|
489
|
-
* [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html). **Default:** `'main'`.
|
|
490
|
-
* @returns A binary representation of the database.
|
|
491
|
-
*/
|
|
492
|
-
serialize(dbName?: string): NodeJS.NonSharedUint8Array;
|
|
493
|
-
/**
|
|
494
|
-
* Loads a serialized database into this connection, replacing the current
|
|
495
|
-
* database. The deserialized database is writable. Existing prepared statements
|
|
496
|
-
* are finalized before deserialization is attempted, even if the operation
|
|
497
|
-
* subsequently fails. This method is a wrapper around
|
|
498
|
-
* [`sqlite3_deserialize()`](https://sqlite.org/c3ref/deserialize.html).
|
|
499
|
-
*
|
|
500
|
-
* ```js
|
|
501
|
-
* import { DatabaseSync } from 'node:sqlite';
|
|
502
|
-
*
|
|
503
|
-
* const original = new DatabaseSync(':memory:');
|
|
504
|
-
* original.exec('CREATE TABLE t(key INTEGER PRIMARY KEY, value TEXT)');
|
|
505
|
-
* original.exec("INSERT INTO t VALUES (1, 'hello')");
|
|
506
|
-
* const buffer = original.serialize();
|
|
507
|
-
* original.close();
|
|
508
|
-
*
|
|
509
|
-
* const clone = new DatabaseSync(':memory:');
|
|
510
|
-
* clone.deserialize(buffer);
|
|
511
|
-
* console.log(clone.prepare('SELECT value FROM t').get());
|
|
512
|
-
* // Prints: { value: 'hello' }
|
|
513
|
-
* ```
|
|
514
|
-
* @since v26.1.0
|
|
515
|
-
* @param buffer A binary representation of a database, such as the
|
|
516
|
-
* output of `database.serialize()`.
|
|
517
|
-
* @param options Optional configuration for the deserialization.
|
|
518
|
-
*/
|
|
519
|
-
deserialize(buffer: Uint8Array, options?: DeserializeOptions): void;
|
|
520
349
|
/**
|
|
521
350
|
* Compiles a SQL statement into a [prepared statement](https://www.sqlite.org/c3ref/stmt.html). This method is a wrapper
|
|
522
351
|
* around [`sqlite3_prepare_v2()`](https://www.sqlite.org/c3ref/prepare.html).
|
|
523
352
|
* @since v22.5.0
|
|
524
353
|
* @param sql A SQL string to compile to a prepared statement.
|
|
525
|
-
* @param options Optional configuration for the prepared statement.
|
|
526
354
|
* @return The prepared statement.
|
|
527
355
|
*/
|
|
528
|
-
prepare(sql: string
|
|
529
|
-
/**
|
|
530
|
-
* Creates a new {@link SQLTagStore}, which is a Least Recently Used (LRU) cache
|
|
531
|
-
* for storing prepared statements. This allows for the efficient reuse of
|
|
532
|
-
* prepared statements by tagging them with a unique identifier.
|
|
533
|
-
*
|
|
534
|
-
* When a tagged SQL literal is executed, the `SQLTagStore` checks if a prepared
|
|
535
|
-
* statement for the corresponding SQL query string already exists in the cache.
|
|
536
|
-
* If it does, the cached statement is used. If not, a new prepared statement is
|
|
537
|
-
* created, executed, and then stored in the cache for future use. This mechanism
|
|
538
|
-
* helps to avoid the overhead of repeatedly parsing and preparing the same SQL
|
|
539
|
-
* statements.
|
|
540
|
-
*
|
|
541
|
-
* Tagged statements bind the placeholder values from the template literal as
|
|
542
|
-
* parameters to the underlying prepared statement. For example:
|
|
543
|
-
*
|
|
544
|
-
* ```js
|
|
545
|
-
* sqlTagStore.get`SELECT ${value}`;
|
|
546
|
-
* ```
|
|
547
|
-
*
|
|
548
|
-
* is equivalent to:
|
|
549
|
-
*
|
|
550
|
-
* ```js
|
|
551
|
-
* db.prepare('SELECT ?').get(value);
|
|
552
|
-
* ```
|
|
553
|
-
*
|
|
554
|
-
* However, in the first example, the tag store will cache the underlying prepared
|
|
555
|
-
* statement for future use.
|
|
556
|
-
*
|
|
557
|
-
* > **Note:** The `${value}` syntax in tagged statements _binds_ a parameter to
|
|
558
|
-
* > the prepared statement. This differs from its behavior in _untagged_ template
|
|
559
|
-
* > literals, where it performs string interpolation.
|
|
560
|
-
* >
|
|
561
|
-
* > ```js
|
|
562
|
-
* > // This a safe example of binding a parameter to a tagged statement.
|
|
563
|
-
* > sqlTagStore.run`INSERT INTO t1 (id) VALUES (${id})`;
|
|
564
|
-
* >
|
|
565
|
-
* > // This is an *unsafe* example of an untagged template string.
|
|
566
|
-
* > // `id` is interpolated into the query text as a string.
|
|
567
|
-
* > // This can lead to SQL injection and data corruption.
|
|
568
|
-
* > db.run(`INSERT INTO t1 (id) VALUES (${id})`);
|
|
569
|
-
* > ```
|
|
570
|
-
*
|
|
571
|
-
* The tag store will match a statement from the cache if the query strings
|
|
572
|
-
* (including the positions of any bound placeholders) are identical.
|
|
573
|
-
*
|
|
574
|
-
* ```js
|
|
575
|
-
* // The following statements will match in the cache:
|
|
576
|
-
* sqlTagStore.get`SELECT * FROM t1 WHERE id = ${id} AND active = 1`;
|
|
577
|
-
* sqlTagStore.get`SELECT * FROM t1 WHERE id = ${12345} AND active = 1`;
|
|
578
|
-
*
|
|
579
|
-
* // The following statements will not match, as the query strings
|
|
580
|
-
* // and bound placeholders differ:
|
|
581
|
-
* sqlTagStore.get`SELECT * FROM t1 WHERE id = ${id} AND active = 1`;
|
|
582
|
-
* sqlTagStore.get`SELECT * FROM t1 WHERE id = 12345 AND active = 1`;
|
|
583
|
-
*
|
|
584
|
-
* // The following statements will not match, as matches are case-sensitive:
|
|
585
|
-
* sqlTagStore.get`SELECT * FROM t1 WHERE id = ${id} AND active = 1`;
|
|
586
|
-
* sqlTagStore.get`select * from t1 where id = ${id} and active = 1`;
|
|
587
|
-
* ```
|
|
588
|
-
*
|
|
589
|
-
* The only way of binding parameters in tagged statements is with the `${value}`
|
|
590
|
-
* syntax. Do not add parameter binding placeholders (`?` etc.) to the SQL query
|
|
591
|
-
* string itself.
|
|
592
|
-
*
|
|
593
|
-
* ```js
|
|
594
|
-
* import { DatabaseSync } from 'node:sqlite';
|
|
595
|
-
*
|
|
596
|
-
* const db = new DatabaseSync(':memory:');
|
|
597
|
-
* const sql = db.createSQLTagStore();
|
|
598
|
-
*
|
|
599
|
-
* db.exec('CREATE TABLE users (id INT, name TEXT)');
|
|
600
|
-
*
|
|
601
|
-
* // Using the 'run' method to insert data.
|
|
602
|
-
* // The tagged literal is used to identify the prepared statement.
|
|
603
|
-
* sql.run`INSERT INTO users VALUES (1, 'Alice')`;
|
|
604
|
-
* sql.run`INSERT INTO users VALUES (2, 'Bob')`;
|
|
605
|
-
*
|
|
606
|
-
* // Using the 'get' method to retrieve a single row.
|
|
607
|
-
* const name = 'Alice';
|
|
608
|
-
* const user = sql.get`SELECT * FROM users WHERE name = ${name}`;
|
|
609
|
-
* console.log(user); // { id: 1, name: 'Alice' }
|
|
610
|
-
*
|
|
611
|
-
* // Using the 'all' method to retrieve all rows.
|
|
612
|
-
* const allUsers = sql.all`SELECT * FROM users ORDER BY id`;
|
|
613
|
-
* console.log(allUsers);
|
|
614
|
-
* // [
|
|
615
|
-
* // { id: 1, name: 'Alice' },
|
|
616
|
-
* // { id: 2, name: 'Bob' }
|
|
617
|
-
* // ]
|
|
618
|
-
* ```
|
|
619
|
-
* @since v24.9.0
|
|
620
|
-
* @returns A new SQL tag store for caching prepared statements.
|
|
621
|
-
*/
|
|
622
|
-
createTagStore(maxSize?: number): SQLTagStore;
|
|
356
|
+
prepare(sql: string): StatementSync;
|
|
623
357
|
/**
|
|
624
358
|
* Creates and attaches a session to the database. This method is a wrapper around
|
|
625
359
|
* [`sqlite3session_create()`](https://www.sqlite.org/session/sqlite3session_create.html) and
|
|
@@ -635,8 +369,6 @@ declare module "node:sqlite" {
|
|
|
635
369
|
* [`sqlite3changeset_apply()`](https://www.sqlite.org/session/sqlite3changeset_apply.html).
|
|
636
370
|
*
|
|
637
371
|
* ```js
|
|
638
|
-
* import { DatabaseSync } from 'node:sqlite';
|
|
639
|
-
*
|
|
640
372
|
* const sourceDb = new DatabaseSync(':memory:');
|
|
641
373
|
* const targetDb = new DatabaseSync(':memory:');
|
|
642
374
|
*
|
|
@@ -663,6 +395,7 @@ declare module "node:sqlite" {
|
|
|
663
395
|
* Closes the database connection. If the database connection is already closed
|
|
664
396
|
* then this is a no-op.
|
|
665
397
|
* @since v22.15.0
|
|
398
|
+
* @experimental
|
|
666
399
|
*/
|
|
667
400
|
[Symbol.dispose](): void;
|
|
668
401
|
}
|
|
@@ -694,107 +427,6 @@ declare module "node:sqlite" {
|
|
|
694
427
|
* [`sqlite3session_delete()`](https://www.sqlite.org/session/sqlite3session_delete.html).
|
|
695
428
|
*/
|
|
696
429
|
close(): void;
|
|
697
|
-
/**
|
|
698
|
-
* Closes the session. If the session is already closed, does nothing.
|
|
699
|
-
* @since v24.9.0
|
|
700
|
-
*/
|
|
701
|
-
[Symbol.dispose](): void;
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
* This class represents a single LRU (Least Recently Used) cache for storing
|
|
705
|
-
* prepared statements.
|
|
706
|
-
*
|
|
707
|
-
* Instances of this class are created via the `database.createTagStore()`
|
|
708
|
-
* method, not by using a constructor. The store caches prepared statements based
|
|
709
|
-
* on the provided SQL query string. When the same query is seen again, the store
|
|
710
|
-
* retrieves the cached statement and safely applies the new values through
|
|
711
|
-
* parameter binding, thereby preventing attacks like SQL injection.
|
|
712
|
-
*
|
|
713
|
-
* The cache has a maxSize that defaults to 1000 statements, but a custom size can
|
|
714
|
-
* be provided (e.g., `database.createTagStore(100)`). All APIs exposed by this
|
|
715
|
-
* class execute synchronously.
|
|
716
|
-
* @since v24.9.0
|
|
717
|
-
*/
|
|
718
|
-
interface SQLTagStore {
|
|
719
|
-
/**
|
|
720
|
-
* Executes the given SQL query and returns all resulting rows as an array of
|
|
721
|
-
* objects.
|
|
722
|
-
*
|
|
723
|
-
* This function is intended to be used as a template literal tag, not to be
|
|
724
|
-
* called directly.
|
|
725
|
-
* @since v24.9.0
|
|
726
|
-
* @param stringElements Template literal elements containing the SQL
|
|
727
|
-
* query.
|
|
728
|
-
* @param boundParameters Parameter values to be bound to placeholders in the template string.
|
|
729
|
-
* @returns An array of objects representing the rows returned by the query.
|
|
730
|
-
*/
|
|
731
|
-
all(
|
|
732
|
-
stringElements: TemplateStringsArray,
|
|
733
|
-
...boundParameters: SQLInputValue[]
|
|
734
|
-
): Record<string, SQLOutputValue>[];
|
|
735
|
-
/**
|
|
736
|
-
* Executes the given SQL query and returns the first resulting row as an object.
|
|
737
|
-
*
|
|
738
|
-
* This function is intended to be used as a template literal tag, not to be
|
|
739
|
-
* called directly.
|
|
740
|
-
* @since v24.9.0
|
|
741
|
-
* @param stringElements Template literal elements containing the SQL
|
|
742
|
-
* query.
|
|
743
|
-
* @param boundParameters Parameter values to be bound to placeholders in the template string.
|
|
744
|
-
* @returns An object representing the first row returned by
|
|
745
|
-
* the query, or `undefined` if no rows are returned.
|
|
746
|
-
*/
|
|
747
|
-
get(
|
|
748
|
-
stringElements: TemplateStringsArray,
|
|
749
|
-
...boundParameters: SQLInputValue[]
|
|
750
|
-
): Record<string, SQLOutputValue> | undefined;
|
|
751
|
-
/**
|
|
752
|
-
* Executes the given SQL query and returns an iterator over the resulting rows.
|
|
753
|
-
*
|
|
754
|
-
* This function is intended to be used as a template literal tag, not to be
|
|
755
|
-
* called directly.
|
|
756
|
-
* @since v24.9.0
|
|
757
|
-
* @param stringElements Template literal elements containing the SQL
|
|
758
|
-
* query.
|
|
759
|
-
* @param boundParameters Parameter values to be bound to placeholders in the template string.
|
|
760
|
-
* @returns An iterator that yields objects representing the rows returned by the query.
|
|
761
|
-
*/
|
|
762
|
-
iterate(
|
|
763
|
-
stringElements: TemplateStringsArray,
|
|
764
|
-
...boundParameters: SQLInputValue[]
|
|
765
|
-
): NodeJS.Iterator<Record<string, SQLOutputValue>>;
|
|
766
|
-
/**
|
|
767
|
-
* Executes the given SQL query, which is expected to not return any rows (e.g., INSERT, UPDATE, DELETE).
|
|
768
|
-
*
|
|
769
|
-
* This function is intended to be used as a template literal tag, not to be
|
|
770
|
-
* called directly.
|
|
771
|
-
* @since v24.9.0
|
|
772
|
-
* @param stringElements Template literal elements containing the SQL
|
|
773
|
-
* query.
|
|
774
|
-
* @param boundParameters Parameter values to be bound to placeholders in the template string.
|
|
775
|
-
* @returns An object containing information about the execution, including `changes` and `lastInsertRowid`.
|
|
776
|
-
*/
|
|
777
|
-
run(stringElements: TemplateStringsArray, ...boundParameters: SQLInputValue[]): StatementResultingChanges;
|
|
778
|
-
/**
|
|
779
|
-
* A read-only property that returns the number of prepared statements currently in the cache.
|
|
780
|
-
* @since v24.9.0
|
|
781
|
-
*/
|
|
782
|
-
readonly size: number;
|
|
783
|
-
/**
|
|
784
|
-
* A read-only property that returns the maximum number of prepared statements the cache can hold.
|
|
785
|
-
* @since v24.9.0
|
|
786
|
-
*/
|
|
787
|
-
readonly capacity: number;
|
|
788
|
-
/**
|
|
789
|
-
* A read-only property that returns the `DatabaseSync` object associated with this `SQLTagStore`.
|
|
790
|
-
* @since v24.9.0
|
|
791
|
-
*/
|
|
792
|
-
readonly db: DatabaseSync;
|
|
793
|
-
/**
|
|
794
|
-
* Resets the LRU cache, clearing all stored prepared statements.
|
|
795
|
-
* @since v24.9.0
|
|
796
|
-
*/
|
|
797
|
-
clear(): void;
|
|
798
430
|
}
|
|
799
431
|
interface StatementColumnMetadata {
|
|
800
432
|
/**
|
|
@@ -875,7 +507,7 @@ declare module "node:sqlite" {
|
|
|
875
507
|
/**
|
|
876
508
|
* This method is used to retrieve information about the columns returned by the
|
|
877
509
|
* prepared statement.
|
|
878
|
-
* @since
|
|
510
|
+
* @since v22.16.0
|
|
879
511
|
* @returns An array of objects. Each object corresponds to a column
|
|
880
512
|
* in the prepared statement, and contains the following properties:
|
|
881
513
|
*/
|
|
@@ -964,7 +596,7 @@ declare module "node:sqlite" {
|
|
|
964
596
|
/**
|
|
965
597
|
* When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead
|
|
966
598
|
* of objects.
|
|
967
|
-
* @since
|
|
599
|
+
* @since v22.16.0
|
|
968
600
|
* @param enabled Enables or disables the return of query results as arrays.
|
|
969
601
|
*/
|
|
970
602
|
setReturnArrays(enabled: boolean): void;
|
|
@@ -1038,14 +670,13 @@ declare module "node:sqlite" {
|
|
|
1038
670
|
*
|
|
1039
671
|
* console.log('Backup completed', totalPagesTransferred);
|
|
1040
672
|
* ```
|
|
1041
|
-
* @since
|
|
673
|
+
* @since v22.16.0
|
|
1042
674
|
* @param sourceDb The database to backup. The source database must be open.
|
|
1043
675
|
* @param path The path where the backup will be created. If the file already exists,
|
|
1044
676
|
* the contents will be overwritten.
|
|
1045
677
|
* @param options Optional configuration for the backup. The
|
|
1046
678
|
* following properties are supported:
|
|
1047
|
-
* @returns A promise that fulfills with the total number of backed-up pages upon completion, or rejects if an
|
|
1048
|
-
* error occurs.
|
|
679
|
+
* @returns A promise that fulfills with the total number of backed-up pages upon completion, or rejects if an error occurs.
|
|
1049
680
|
*/
|
|
1050
681
|
function backup(sourceDb: DatabaseSync, path: PathLike, options?: BackupOptions): Promise<number>;
|
|
1051
682
|
/**
|
|
@@ -1087,54 +718,5 @@ declare module "node:sqlite" {
|
|
|
1087
718
|
* @since v22.12.0
|
|
1088
719
|
*/
|
|
1089
720
|
const SQLITE_CHANGESET_ABORT: number;
|
|
1090
|
-
/**
|
|
1091
|
-
* Deny the operation and cause an error to be returned.
|
|
1092
|
-
* @since v24.10.0
|
|
1093
|
-
*/
|
|
1094
|
-
const SQLITE_DENY: number;
|
|
1095
|
-
/**
|
|
1096
|
-
* Ignore the operation and continue as if it had never been requested.
|
|
1097
|
-
* @since 24.10.0
|
|
1098
|
-
*/
|
|
1099
|
-
const SQLITE_IGNORE: number;
|
|
1100
|
-
/**
|
|
1101
|
-
* Allow the operation to proceed normally.
|
|
1102
|
-
* @since v24.10.0
|
|
1103
|
-
*/
|
|
1104
|
-
const SQLITE_OK: number;
|
|
1105
|
-
const SQLITE_CREATE_INDEX: number;
|
|
1106
|
-
const SQLITE_CREATE_TABLE: number;
|
|
1107
|
-
const SQLITE_CREATE_TEMP_INDEX: number;
|
|
1108
|
-
const SQLITE_CREATE_TEMP_TABLE: number;
|
|
1109
|
-
const SQLITE_CREATE_TEMP_TRIGGER: number;
|
|
1110
|
-
const SQLITE_CREATE_TEMP_VIEW: number;
|
|
1111
|
-
const SQLITE_CREATE_TRIGGER: number;
|
|
1112
|
-
const SQLITE_CREATE_VIEW: number;
|
|
1113
|
-
const SQLITE_DELETE: number;
|
|
1114
|
-
const SQLITE_DROP_INDEX: number;
|
|
1115
|
-
const SQLITE_DROP_TABLE: number;
|
|
1116
|
-
const SQLITE_DROP_TEMP_INDEX: number;
|
|
1117
|
-
const SQLITE_DROP_TEMP_TABLE: number;
|
|
1118
|
-
const SQLITE_DROP_TEMP_TRIGGER: number;
|
|
1119
|
-
const SQLITE_DROP_TEMP_VIEW: number;
|
|
1120
|
-
const SQLITE_DROP_TRIGGER: number;
|
|
1121
|
-
const SQLITE_DROP_VIEW: number;
|
|
1122
|
-
const SQLITE_INSERT: number;
|
|
1123
|
-
const SQLITE_PRAGMA: number;
|
|
1124
|
-
const SQLITE_READ: number;
|
|
1125
|
-
const SQLITE_SELECT: number;
|
|
1126
|
-
const SQLITE_TRANSACTION: number;
|
|
1127
|
-
const SQLITE_UPDATE: number;
|
|
1128
|
-
const SQLITE_ATTACH: number;
|
|
1129
|
-
const SQLITE_DETACH: number;
|
|
1130
|
-
const SQLITE_ALTER_TABLE: number;
|
|
1131
|
-
const SQLITE_REINDEX: number;
|
|
1132
|
-
const SQLITE_ANALYZE: number;
|
|
1133
|
-
const SQLITE_CREATE_VTABLE: number;
|
|
1134
|
-
const SQLITE_DROP_VTABLE: number;
|
|
1135
|
-
const SQLITE_FUNCTION: number;
|
|
1136
|
-
const SQLITE_SAVEPOINT: number;
|
|
1137
|
-
const SQLITE_COPY: number;
|
|
1138
|
-
const SQLITE_RECURSIVE: number;
|
|
1139
721
|
}
|
|
1140
722
|
}
|