tokentracker-cli 0.2.23
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/LICENSE +21 -0
- package/README.md +136 -0
- package/README.old.md +324 -0
- package/README.zh-CN.md +440 -0
- package/bin/tracker.js +28 -0
- package/dashboard/dist/apple-touch-icon.png +0 -0
- package/dashboard/dist/assets/AsciiBox-vyDhXYY5.js +1 -0
- package/dashboard/dist/assets/DashboardPage-CrplxZFL.js +12 -0
- package/dashboard/dist/assets/LandingExtras-DlrtqIDj.js +1 -0
- package/dashboard/dist/assets/LeaderboardPage-Czwkjje0.js +1 -0
- package/dashboard/dist/assets/LeaderboardProfilePage-C4rorru6.js +1 -0
- package/dashboard/dist/assets/MatrixRain-bGmRmuOW.js +1 -0
- package/dashboard/dist/assets/MatrixShell-BfOGBm5o.js +1 -0
- package/dashboard/dist/assets/geist-mono-cyrillic-400-normal-BPBWmzPh.woff +0 -0
- package/dashboard/dist/assets/geist-mono-cyrillic-400-normal-Ce5q_31Z.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-cyrillic-500-normal-CJBLNVQT.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-cyrillic-500-normal-mNhfPmgl.woff +0 -0
- package/dashboard/dist/assets/geist-mono-cyrillic-700-normal-DH5Q319x.woff +0 -0
- package/dashboard/dist/assets/geist-mono-cyrillic-700-normal-VCNRadI3.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-cyrillic-900-normal-BKC3PZkM.woff +0 -0
- package/dashboard/dist/assets/geist-mono-cyrillic-900-normal-DdrQ8KBw.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-latin-400-normal-CoULgQGM.woff +0 -0
- package/dashboard/dist/assets/geist-mono-latin-400-normal-LC9RFr9I.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-latin-500-normal-D3o2eNa9.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-latin-500-normal-DOxI7kZ4.woff +0 -0
- package/dashboard/dist/assets/geist-mono-latin-700-normal-D6izGJRP.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-latin-700-normal-QGw08Lff.woff +0 -0
- package/dashboard/dist/assets/geist-mono-latin-900-normal-CmoKXrdK.woff +0 -0
- package/dashboard/dist/assets/geist-mono-latin-900-normal-Cu5MFKsu.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-latin-ext-400-normal-Cgks_Qgx.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-latin-ext-400-normal-CxNRRMGd.woff +0 -0
- package/dashboard/dist/assets/geist-mono-latin-ext-500-normal-CQcGuCNt.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-latin-ext-500-normal-diTenJ8L.woff +0 -0
- package/dashboard/dist/assets/geist-mono-latin-ext-700-normal-BX9f1BHp.woff +0 -0
- package/dashboard/dist/assets/geist-mono-latin-ext-700-normal-YOllDaLV.woff2 +0 -0
- package/dashboard/dist/assets/geist-mono-latin-ext-900-normal-Br6WNUGb.woff +0 -0
- package/dashboard/dist/assets/geist-mono-latin-ext-900-normal-CrmBTzU2.woff2 +0 -0
- package/dashboard/dist/assets/index-BeoRn2gJ.js +2 -0
- package/dashboard/dist/assets/main-BYPG1_bI.js +2056 -0
- package/dashboard/dist/assets/main-hwTpulbk.css +1 -0
- package/dashboard/dist/favicon-16.png +0 -0
- package/dashboard/dist/favicon-32.png +0 -0
- package/dashboard/dist/favicon.ico +0 -0
- package/dashboard/dist/feed.xml +18 -0
- package/dashboard/dist/icon-192.png +0 -0
- package/dashboard/dist/icon-512.png +0 -0
- package/dashboard/dist/icon.svg +1 -0
- package/dashboard/dist/index.html +181 -0
- package/dashboard/dist/landing-dashboard.jpg +0 -0
- package/dashboard/dist/llms.txt +25 -0
- package/dashboard/dist/og-image.jpg +0 -0
- package/dashboard/dist/robots.txt +7 -0
- package/dashboard/dist/share-dashboard.jpg +0 -0
- package/dashboard/dist/share.html +118 -0
- package/dashboard/dist/sitemap.xml +13 -0
- package/dashboard/dist/social-preview.png +0 -0
- package/dashboard/dist/wrapped-2025.html +60 -0
- package/dashboard/dist/wrapped-2025.png +0 -0
- package/node_modules/@insforge/sdk/LICENSE +201 -0
- package/node_modules/@insforge/sdk/README.md +259 -0
- package/node_modules/@insforge/sdk/dist/index.d.mts +854 -0
- package/node_modules/@insforge/sdk/dist/index.d.ts +854 -0
- package/node_modules/@insforge/sdk/dist/index.js +1823 -0
- package/node_modules/@insforge/sdk/dist/index.js.map +1 -0
- package/node_modules/@insforge/sdk/dist/index.mjs +1784 -0
- package/node_modules/@insforge/sdk/dist/index.mjs.map +1 -0
- package/node_modules/@insforge/sdk/package.json +68 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts +583 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js +111 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts +188 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.js +48 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts +1127 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js +277 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts +187 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.js +105 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts +144 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js +41 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts +1627 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js +209 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.d.ts +263 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.js +89 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts +4 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.js +22 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.d.ts +34 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js +24 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts +39 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js +18 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts +34 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.js +14 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/index.d.ts +19 -0
- package/node_modules/@insforge/shared-schemas/dist/index.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/index.js +19 -0
- package/node_modules/@insforge/shared-schemas/dist/index.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.d.ts +237 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js +41 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts +79 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.js +31 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts +940 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js +50 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts +395 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js +73 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts +269 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js +109 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts +166 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js +49 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts +39 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.js +15 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/package.json +31 -0
- package/node_modules/@socket.io/component-emitter/LICENSE +24 -0
- package/node_modules/@socket.io/component-emitter/Readme.md +79 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +179 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.js +176 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/package.json +4 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +179 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/index.js +169 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/package.json +4 -0
- package/node_modules/@socket.io/component-emitter/package.json +28 -0
- package/node_modules/@supabase/node-fetch/LICENSE.md +22 -0
- package/node_modules/@supabase/node-fetch/README.md +633 -0
- package/node_modules/@supabase/node-fetch/browser.js +22 -0
- package/node_modules/@supabase/node-fetch/lib/index.es.js +1778 -0
- package/node_modules/@supabase/node-fetch/lib/index.js +1787 -0
- package/node_modules/@supabase/node-fetch/lib/index.mjs +1776 -0
- package/node_modules/@supabase/node-fetch/package.json +80 -0
- package/node_modules/@supabase/postgrest-js/LICENSE +21 -0
- package/node_modules/@supabase/postgrest-js/README.md +56 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.d.ts +71 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.js +222 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.d.ts +74 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.js +121 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.d.ts +17 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.js +18 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.d.ts +108 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.js +381 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.d.ts +117 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.js +251 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.d.ts +157 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.js +226 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.d.ts +4 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.js +6 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.d.ts +19 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.js +28 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.d.ts +261 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.js +5 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.d.ts +157 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.d.ts +31 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.d.ts +264 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.d.ts +106 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.d.ts +2 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.js +5 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/esm/wrapper.mjs +28 -0
- package/node_modules/@supabase/postgrest-js/package.json +75 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestBuilder.ts +300 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestClient.ts +192 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestError.ts +18 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestFilterBuilder.ts +604 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestQueryBuilder.ts +437 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestTransformBuilder.ts +368 -0
- package/node_modules/@supabase/postgrest-js/src/constants.ts +2 -0
- package/node_modules/@supabase/postgrest-js/src/index.ts +35 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/parser.ts +469 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/result.ts +503 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/types.ts +115 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/utils.ts +602 -0
- package/node_modules/@supabase/postgrest-js/src/types.ts +201 -0
- package/node_modules/@supabase/postgrest-js/src/version.ts +1 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +60 -0
- package/node_modules/debug/src/browser.js +271 -0
- package/node_modules/debug/src/common.js +274 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/engine.io-client/LICENSE +22 -0
- package/node_modules/engine.io-client/README.md +331 -0
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +14 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +38 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +67 -0
- package/node_modules/engine.io-client/build/cjs/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/cjs/globals.js +26 -0
- package/node_modules/engine.io-client/build/cjs/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/cjs/globals.node.js +97 -0
- package/node_modules/engine.io-client/build/cjs/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/index.js +32 -0
- package/node_modules/engine.io-client/build/cjs/package.json +10 -0
- package/node_modules/engine.io-client/build/cjs/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/cjs/socket.js +765 -0
- package/node_modules/engine.io-client/build/cjs/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/cjs/transport.js +153 -0
- package/node_modules/engine.io-client/build/cjs/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/cjs/transports/index.js +11 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +60 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +285 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +44 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling.js +165 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.js +136 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +68 -0
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.js +94 -0
- package/node_modules/engine.io-client/build/cjs/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/cjs/util.js +65 -0
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.js +2 -0
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.js +11 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.js +34 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.js +64 -0
- package/node_modules/engine.io-client/build/esm/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/esm/globals.js +22 -0
- package/node_modules/engine.io-client/build/esm/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/esm/globals.node.js +91 -0
- package/node_modules/engine.io-client/build/esm/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/index.js +15 -0
- package/node_modules/engine.io-client/build/esm/package.json +10 -0
- package/node_modules/engine.io-client/build/esm/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/esm/socket.js +727 -0
- package/node_modules/engine.io-client/build/esm/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/esm/transport.js +142 -0
- package/node_modules/engine.io-client/build/esm/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/esm/transports/index.js +8 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +56 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +271 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +17 -0
- package/node_modules/engine.io-client/build/esm/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/esm/transports/polling.js +145 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.js +125 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.js +41 -0
- package/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/esm/transports/webtransport.js +80 -0
- package/node_modules/engine.io-client/build/esm/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/esm/util.js +59 -0
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +11 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +34 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +64 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.js +22 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.node.js +91 -0
- package/node_modules/engine.io-client/build/esm-debug/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/index.js +15 -0
- package/node_modules/engine.io-client/build/esm-debug/package.json +10 -0
- package/node_modules/engine.io-client/build/esm-debug/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/esm-debug/socket.js +756 -0
- package/node_modules/engine.io-client/build/esm-debug/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/esm-debug/transport.js +145 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/index.js +8 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +56 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +276 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +17 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.js +158 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +128 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +41 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +87 -0
- package/node_modules/engine.io-client/build/esm-debug/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/esm-debug/util.js +59 -0
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js +7 -0
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +1 -0
- package/node_modules/engine.io-client/dist/engine.io.js +2968 -0
- package/node_modules/engine.io-client/dist/engine.io.js.map +1 -0
- package/node_modules/engine.io-client/dist/engine.io.min.js +7 -0
- package/node_modules/engine.io-client/dist/engine.io.min.js.map +1 -0
- package/node_modules/engine.io-client/package.json +95 -0
- package/node_modules/engine.io-parser/LICENSE +22 -0
- package/node_modules/engine.io-parser/Readme.md +158 -0
- package/node_modules/engine.io-parser/build/cjs/commons.d.ts +14 -0
- package/node_modules/engine.io-parser/build/cjs/commons.js +19 -0
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +48 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +66 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.js +59 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +4 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +72 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +3 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.js +38 -0
- package/node_modules/engine.io-parser/build/cjs/index.d.ts +9 -0
- package/node_modules/engine.io-parser/build/cjs/index.js +164 -0
- package/node_modules/engine.io-parser/build/cjs/package.json +8 -0
- package/node_modules/engine.io-parser/build/esm/commons.d.ts +14 -0
- package/node_modules/engine.io-parser/build/esm/commons.js +14 -0
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +43 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +62 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.js +55 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +4 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +68 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +3 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.js +33 -0
- package/node_modules/engine.io-parser/build/esm/index.d.ts +9 -0
- package/node_modules/engine.io-parser/build/esm/index.js +156 -0
- package/node_modules/engine.io-parser/build/esm/package.json +8 -0
- package/node_modules/engine.io-parser/package.json +46 -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/socket.io-client/LICENSE +21 -0
- package/node_modules/socket.io-client/README.md +29 -0
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.js +69 -0
- package/node_modules/socket.io-client/build/cjs/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/cjs/index.js +76 -0
- package/node_modules/socket.io-client/build/cjs/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/cjs/manager.js +416 -0
- package/node_modules/socket.io-client/build/cjs/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/cjs/on.js +9 -0
- package/node_modules/socket.io-client/build/cjs/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/cjs/socket.js +910 -0
- package/node_modules/socket.io-client/build/cjs/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/cjs/url.js +69 -0
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.js +2 -0
- package/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/esm/contrib/backo2.js +66 -0
- package/node_modules/socket.io-client/build/esm/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/esm/index.js +58 -0
- package/node_modules/socket.io-client/build/esm/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/esm/manager.js +367 -0
- package/node_modules/socket.io-client/build/esm/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm/on.js +6 -0
- package/node_modules/socket.io-client/build/esm/package.json +5 -0
- package/node_modules/socket.io-client/build/esm/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/esm/socket.js +882 -0
- package/node_modules/socket.io-client/build/esm/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/esm/url.js +59 -0
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +66 -0
- package/node_modules/socket.io-client/build/esm-debug/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/esm-debug/index.js +62 -0
- package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/esm-debug/manager.js +386 -0
- package/node_modules/socket.io-client/build/esm-debug/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm-debug/on.js +6 -0
- package/node_modules/socket.io-client/build/esm-debug/package.json +5 -0
- package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/esm-debug/socket.js +903 -0
- package/node_modules/socket.io-client/build/esm-debug/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/esm-debug/url.js +63 -0
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.js +4908 -0
- package/node_modules/socket.io-client/dist/socket.io.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -0
- package/node_modules/socket.io-client/package.json +101 -0
- package/node_modules/socket.io-parser/LICENSE +20 -0
- package/node_modules/socket.io-parser/Readme.md +81 -0
- package/node_modules/socket.io-parser/build/cjs/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/cjs/binary.js +88 -0
- package/node_modules/socket.io-parser/build/cjs/index.d.ts +90 -0
- package/node_modules/socket.io-parser/build/cjs/index.js +321 -0
- package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/cjs/is-binary.js +55 -0
- package/node_modules/socket.io-parser/build/cjs/package.json +3 -0
- package/node_modules/socket.io-parser/build/esm/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/esm/binary.js +83 -0
- package/node_modules/socket.io-parser/build/esm/index.d.ts +90 -0
- package/node_modules/socket.io-parser/build/esm/index.js +311 -0
- package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/esm/is-binary.js +50 -0
- package/node_modules/socket.io-parser/build/esm/package.json +3 -0
- package/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/esm-debug/binary.js +83 -0
- package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +90 -0
- package/node_modules/socket.io-parser/build/esm-debug/index.js +316 -0
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.js +50 -0
- package/node_modules/socket.io-parser/build/esm-debug/package.json +3 -0
- package/node_modules/socket.io-parser/package.json +58 -0
- package/node_modules/tr46/.npmignore +4 -0
- package/node_modules/tr46/index.js +193 -0
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +1 -0
- package/node_modules/tr46/package.json +31 -0
- package/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/node_modules/webidl-conversions/README.md +53 -0
- package/node_modules/webidl-conversions/lib/index.js +189 -0
- package/node_modules/webidl-conversions/package.json +23 -0
- package/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/node_modules/whatwg-url/README.md +67 -0
- package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- package/node_modules/whatwg-url/lib/URL.js +196 -0
- package/node_modules/whatwg-url/lib/public-api.js +11 -0
- package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- package/node_modules/whatwg-url/lib/utils.js +20 -0
- package/node_modules/whatwg-url/package.json +32 -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 +13 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +12 -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 +514 -0
- package/node_modules/ws/lib/receiver.js +704 -0
- package/node_modules/ws/lib/sender.js +497 -0
- package/node_modules/ws/lib/stream.js +159 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +130 -0
- package/node_modules/ws/lib/websocket-server.js +540 -0
- package/node_modules/ws/lib/websocket.js +1338 -0
- package/node_modules/ws/package.json +69 -0
- package/node_modules/ws/wrapper.mjs +8 -0
- package/node_modules/xmlhttprequest-ssl/LICENSE +22 -0
- package/node_modules/xmlhttprequest-ssl/README.md +67 -0
- package/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +689 -0
- package/node_modules/xmlhttprequest-ssl/package.json +40 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +58 -0
- package/src/cli.js +83 -0
- package/src/commands/activate-if-needed.js +41 -0
- package/src/commands/diagnostics.js +38 -0
- package/src/commands/doctor.js +96 -0
- package/src/commands/init.js +975 -0
- package/src/commands/serve.js +200 -0
- package/src/commands/status.js +215 -0
- package/src/commands/sync.js +783 -0
- package/src/commands/uninstall.js +167 -0
- package/src/lib/activation-check.js +341 -0
- package/src/lib/browser-auth.js +177 -0
- package/src/lib/claude-config.js +190 -0
- package/src/lib/cli-ui.js +179 -0
- package/src/lib/codex-config.js +350 -0
- package/src/lib/debug-flags.js +7 -0
- package/src/lib/diagnostics.js +216 -0
- package/src/lib/doctor.js +351 -0
- package/src/lib/fs.js +77 -0
- package/src/lib/gemini-config.js +288 -0
- package/src/lib/init-flow.js +42 -0
- package/src/lib/insforge-client.js +79 -0
- package/src/lib/insforge.js +29 -0
- package/src/lib/local-api.js +511 -0
- package/src/lib/openclaw-hook.js +420 -0
- package/src/lib/openclaw-session-plugin.js +520 -0
- package/src/lib/opencode-config.js +99 -0
- package/src/lib/opencode-usage-audit.js +205 -0
- package/src/lib/progress.js +76 -0
- package/src/lib/project-usage-purge.js +106 -0
- package/src/lib/prompt.js +24 -0
- package/src/lib/rollout.js +2472 -0
- package/src/lib/runtime-config.js +132 -0
- package/src/lib/static-server.js +59 -0
- package/src/lib/subscriptions.js +319 -0
- package/src/lib/tracker-paths.js +15 -0
- package/src/lib/upload-throttle.js +148 -0
- package/src/lib/uploader.js +224 -0
- package/src/lib/vibeusage-api.js +243 -0
- package/src/lib/vibeusage-public-repo.js +105 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const PostgrestFilterBuilder_1 = __importDefault(require("./PostgrestFilterBuilder"));
|
|
7
|
+
class PostgrestQueryBuilder {
|
|
8
|
+
constructor(url, { headers = {}, schema, fetch, }) {
|
|
9
|
+
this.url = url;
|
|
10
|
+
this.headers = new Headers(headers);
|
|
11
|
+
this.schema = schema;
|
|
12
|
+
this.fetch = fetch;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Perform a SELECT query on the table or view.
|
|
16
|
+
*
|
|
17
|
+
* @param columns - The columns to retrieve, separated by commas. Columns can be renamed when returned with `customName:columnName`
|
|
18
|
+
*
|
|
19
|
+
* @param options - Named parameters
|
|
20
|
+
*
|
|
21
|
+
* @param options.head - When set to `true`, `data` will not be returned.
|
|
22
|
+
* Useful if you only need the count.
|
|
23
|
+
*
|
|
24
|
+
* @param options.count - Count algorithm to use to count rows in the table or view.
|
|
25
|
+
*
|
|
26
|
+
* `"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the
|
|
27
|
+
* hood.
|
|
28
|
+
*
|
|
29
|
+
* `"planned"`: Approximated but fast count algorithm. Uses the Postgres
|
|
30
|
+
* statistics under the hood.
|
|
31
|
+
*
|
|
32
|
+
* `"estimated"`: Uses exact count for low numbers and planned count for high
|
|
33
|
+
* numbers.
|
|
34
|
+
*/
|
|
35
|
+
select(columns, { head = false, count, } = {}) {
|
|
36
|
+
const method = head ? 'HEAD' : 'GET';
|
|
37
|
+
// Remove whitespaces except when quoted
|
|
38
|
+
let quoted = false;
|
|
39
|
+
const cleanedColumns = (columns !== null && columns !== void 0 ? columns : '*')
|
|
40
|
+
.split('')
|
|
41
|
+
.map((c) => {
|
|
42
|
+
if (/\s/.test(c) && !quoted) {
|
|
43
|
+
return '';
|
|
44
|
+
}
|
|
45
|
+
if (c === '"') {
|
|
46
|
+
quoted = !quoted;
|
|
47
|
+
}
|
|
48
|
+
return c;
|
|
49
|
+
})
|
|
50
|
+
.join('');
|
|
51
|
+
this.url.searchParams.set('select', cleanedColumns);
|
|
52
|
+
if (count) {
|
|
53
|
+
this.headers.append('Prefer', `count=${count}`);
|
|
54
|
+
}
|
|
55
|
+
return new PostgrestFilterBuilder_1.default({
|
|
56
|
+
method,
|
|
57
|
+
url: this.url,
|
|
58
|
+
headers: this.headers,
|
|
59
|
+
schema: this.schema,
|
|
60
|
+
fetch: this.fetch,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Perform an INSERT into the table or view.
|
|
65
|
+
*
|
|
66
|
+
* By default, inserted rows are not returned. To return it, chain the call
|
|
67
|
+
* with `.select()`.
|
|
68
|
+
*
|
|
69
|
+
* @param values - The values to insert. Pass an object to insert a single row
|
|
70
|
+
* or an array to insert multiple rows.
|
|
71
|
+
*
|
|
72
|
+
* @param options - Named parameters
|
|
73
|
+
*
|
|
74
|
+
* @param options.count - Count algorithm to use to count inserted rows.
|
|
75
|
+
*
|
|
76
|
+
* `"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the
|
|
77
|
+
* hood.
|
|
78
|
+
*
|
|
79
|
+
* `"planned"`: Approximated but fast count algorithm. Uses the Postgres
|
|
80
|
+
* statistics under the hood.
|
|
81
|
+
*
|
|
82
|
+
* `"estimated"`: Uses exact count for low numbers and planned count for high
|
|
83
|
+
* numbers.
|
|
84
|
+
*
|
|
85
|
+
* @param options.defaultToNull - Make missing fields default to `null`.
|
|
86
|
+
* Otherwise, use the default value for the column. Only applies for bulk
|
|
87
|
+
* inserts.
|
|
88
|
+
*/
|
|
89
|
+
insert(values, { count, defaultToNull = true, } = {}) {
|
|
90
|
+
var _a;
|
|
91
|
+
const method = 'POST';
|
|
92
|
+
if (count) {
|
|
93
|
+
this.headers.append('Prefer', `count=${count}`);
|
|
94
|
+
}
|
|
95
|
+
if (!defaultToNull) {
|
|
96
|
+
this.headers.append('Prefer', `missing=default`);
|
|
97
|
+
}
|
|
98
|
+
if (Array.isArray(values)) {
|
|
99
|
+
const columns = values.reduce((acc, x) => acc.concat(Object.keys(x)), []);
|
|
100
|
+
if (columns.length > 0) {
|
|
101
|
+
const uniqueColumns = [...new Set(columns)].map((column) => `"${column}"`);
|
|
102
|
+
this.url.searchParams.set('columns', uniqueColumns.join(','));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return new PostgrestFilterBuilder_1.default({
|
|
106
|
+
method,
|
|
107
|
+
url: this.url,
|
|
108
|
+
headers: this.headers,
|
|
109
|
+
schema: this.schema,
|
|
110
|
+
body: values,
|
|
111
|
+
fetch: (_a = this.fetch) !== null && _a !== void 0 ? _a : fetch,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Perform an UPSERT on the table or view. Depending on the column(s) passed
|
|
116
|
+
* to `onConflict`, `.upsert()` allows you to perform the equivalent of
|
|
117
|
+
* `.insert()` if a row with the corresponding `onConflict` columns doesn't
|
|
118
|
+
* exist, or if it does exist, perform an alternative action depending on
|
|
119
|
+
* `ignoreDuplicates`.
|
|
120
|
+
*
|
|
121
|
+
* By default, upserted rows are not returned. To return it, chain the call
|
|
122
|
+
* with `.select()`.
|
|
123
|
+
*
|
|
124
|
+
* @param values - The values to upsert with. Pass an object to upsert a
|
|
125
|
+
* single row or an array to upsert multiple rows.
|
|
126
|
+
*
|
|
127
|
+
* @param options - Named parameters
|
|
128
|
+
*
|
|
129
|
+
* @param options.onConflict - Comma-separated UNIQUE column(s) to specify how
|
|
130
|
+
* duplicate rows are determined. Two rows are duplicates if all the
|
|
131
|
+
* `onConflict` columns are equal.
|
|
132
|
+
*
|
|
133
|
+
* @param options.ignoreDuplicates - If `true`, duplicate rows are ignored. If
|
|
134
|
+
* `false`, duplicate rows are merged with existing rows.
|
|
135
|
+
*
|
|
136
|
+
* @param options.count - Count algorithm to use to count upserted rows.
|
|
137
|
+
*
|
|
138
|
+
* `"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the
|
|
139
|
+
* hood.
|
|
140
|
+
*
|
|
141
|
+
* `"planned"`: Approximated but fast count algorithm. Uses the Postgres
|
|
142
|
+
* statistics under the hood.
|
|
143
|
+
*
|
|
144
|
+
* `"estimated"`: Uses exact count for low numbers and planned count for high
|
|
145
|
+
* numbers.
|
|
146
|
+
*
|
|
147
|
+
* @param options.defaultToNull - Make missing fields default to `null`.
|
|
148
|
+
* Otherwise, use the default value for the column. This only applies when
|
|
149
|
+
* inserting new rows, not when merging with existing rows under
|
|
150
|
+
* `ignoreDuplicates: false`. This also only applies when doing bulk upserts.
|
|
151
|
+
*/
|
|
152
|
+
upsert(values, { onConflict, ignoreDuplicates = false, count, defaultToNull = true, } = {}) {
|
|
153
|
+
var _a;
|
|
154
|
+
const method = 'POST';
|
|
155
|
+
this.headers.append('Prefer', `resolution=${ignoreDuplicates ? 'ignore' : 'merge'}-duplicates`);
|
|
156
|
+
if (onConflict !== undefined)
|
|
157
|
+
this.url.searchParams.set('on_conflict', onConflict);
|
|
158
|
+
if (count) {
|
|
159
|
+
this.headers.append('Prefer', `count=${count}`);
|
|
160
|
+
}
|
|
161
|
+
if (!defaultToNull) {
|
|
162
|
+
this.headers.append('Prefer', 'missing=default');
|
|
163
|
+
}
|
|
164
|
+
if (Array.isArray(values)) {
|
|
165
|
+
const columns = values.reduce((acc, x) => acc.concat(Object.keys(x)), []);
|
|
166
|
+
if (columns.length > 0) {
|
|
167
|
+
const uniqueColumns = [...new Set(columns)].map((column) => `"${column}"`);
|
|
168
|
+
this.url.searchParams.set('columns', uniqueColumns.join(','));
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return new PostgrestFilterBuilder_1.default({
|
|
172
|
+
method,
|
|
173
|
+
url: this.url,
|
|
174
|
+
headers: this.headers,
|
|
175
|
+
schema: this.schema,
|
|
176
|
+
body: values,
|
|
177
|
+
fetch: (_a = this.fetch) !== null && _a !== void 0 ? _a : fetch,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Perform an UPDATE on the table or view.
|
|
182
|
+
*
|
|
183
|
+
* By default, updated rows are not returned. To return it, chain the call
|
|
184
|
+
* with `.select()` after filters.
|
|
185
|
+
*
|
|
186
|
+
* @param values - The values to update with
|
|
187
|
+
*
|
|
188
|
+
* @param options - Named parameters
|
|
189
|
+
*
|
|
190
|
+
* @param options.count - Count algorithm to use to count updated rows.
|
|
191
|
+
*
|
|
192
|
+
* `"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the
|
|
193
|
+
* hood.
|
|
194
|
+
*
|
|
195
|
+
* `"planned"`: Approximated but fast count algorithm. Uses the Postgres
|
|
196
|
+
* statistics under the hood.
|
|
197
|
+
*
|
|
198
|
+
* `"estimated"`: Uses exact count for low numbers and planned count for high
|
|
199
|
+
* numbers.
|
|
200
|
+
*/
|
|
201
|
+
update(values, { count, } = {}) {
|
|
202
|
+
var _a;
|
|
203
|
+
const method = 'PATCH';
|
|
204
|
+
if (count) {
|
|
205
|
+
this.headers.append('Prefer', `count=${count}`);
|
|
206
|
+
}
|
|
207
|
+
return new PostgrestFilterBuilder_1.default({
|
|
208
|
+
method,
|
|
209
|
+
url: this.url,
|
|
210
|
+
headers: this.headers,
|
|
211
|
+
schema: this.schema,
|
|
212
|
+
body: values,
|
|
213
|
+
fetch: (_a = this.fetch) !== null && _a !== void 0 ? _a : fetch,
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Perform a DELETE on the table or view.
|
|
218
|
+
*
|
|
219
|
+
* By default, deleted rows are not returned. To return it, chain the call
|
|
220
|
+
* with `.select()` after filters.
|
|
221
|
+
*
|
|
222
|
+
* @param options - Named parameters
|
|
223
|
+
*
|
|
224
|
+
* @param options.count - Count algorithm to use to count deleted rows.
|
|
225
|
+
*
|
|
226
|
+
* `"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the
|
|
227
|
+
* hood.
|
|
228
|
+
*
|
|
229
|
+
* `"planned"`: Approximated but fast count algorithm. Uses the Postgres
|
|
230
|
+
* statistics under the hood.
|
|
231
|
+
*
|
|
232
|
+
* `"estimated"`: Uses exact count for low numbers and planned count for high
|
|
233
|
+
* numbers.
|
|
234
|
+
*/
|
|
235
|
+
delete({ count, } = {}) {
|
|
236
|
+
var _a;
|
|
237
|
+
const method = 'DELETE';
|
|
238
|
+
if (count) {
|
|
239
|
+
this.headers.append('Prefer', `count=${count}`);
|
|
240
|
+
}
|
|
241
|
+
return new PostgrestFilterBuilder_1.default({
|
|
242
|
+
method,
|
|
243
|
+
url: this.url,
|
|
244
|
+
headers: this.headers,
|
|
245
|
+
schema: this.schema,
|
|
246
|
+
fetch: (_a = this.fetch) !== null && _a !== void 0 ? _a : fetch,
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
exports.default = PostgrestQueryBuilder;
|
|
251
|
+
//# sourceMappingURL=PostgrestQueryBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgrestQueryBuilder.js","sourceRoot":"","sources":["../../src/PostgrestQueryBuilder.ts"],"names":[],"mappings":";;;;;AAAA,sFAA6D;AAI7D,MAAqB,qBAAqB;IAaxC,YACE,GAAQ,EACR,EACE,OAAO,GAAG,EAAE,EACZ,MAAM,EACN,KAAK,GAKN;QAED,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAWJ,OAAe,EACf,EACE,IAAI,GAAG,KAAK,EACZ,KAAK,MAIH,EAAE;QAUN,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAA;QACpC,wCAAwC;QACxC,IAAI,MAAM,GAAG,KAAK,CAAA;QAClB,MAAM,cAAc,GAAG,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,GAAG,CAAC;aACpC,KAAK,CAAC,EAAE,CAAC;aACT,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACT,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE;gBAC3B,OAAO,EAAE,CAAA;aACV;YACD,IAAI,CAAC,KAAK,GAAG,EAAE;gBACb,MAAM,GAAG,CAAC,MAAM,CAAA;aACjB;YACD,OAAO,CAAC,CAAA;QACV,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,CAAC,CAAA;QACX,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ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AAE;YACT,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,KAAK,EAAE,CAAC,CAAA;SAChD;QAED,OAAO,IAAI,gCAAsB,CAAC;YAChC,MAAM;YACN,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,MAAA,IAAI,CAAC,KAAK,mCAAI,KAAK;SAC3B,CAAC,CAAA;IACJ,CAAC;CACF;AAhbD,wCAgbC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import PostgrestBuilder from './PostgrestBuilder';
|
|
2
|
+
import { InvalidMethodError } from './PostgrestFilterBuilder';
|
|
3
|
+
import { GetResult } from './select-query-parser/result';
|
|
4
|
+
import { GenericSchema, CheckMatchingArrayTypes, ClientServerOptions, MaxAffectedEnabled } from './types';
|
|
5
|
+
export default class PostgrestTransformBuilder<ClientOptions extends ClientServerOptions, Schema extends GenericSchema, Row extends Record<string, unknown>, Result, RelationName = unknown, Relationships = unknown, Method = unknown> extends PostgrestBuilder<ClientOptions, Result> {
|
|
6
|
+
/**
|
|
7
|
+
* Perform a SELECT on the query result.
|
|
8
|
+
*
|
|
9
|
+
* By default, `.insert()`, `.update()`, `.upsert()`, and `.delete()` do not
|
|
10
|
+
* return modified rows. By calling this method, modified rows are returned in
|
|
11
|
+
* `data`.
|
|
12
|
+
*
|
|
13
|
+
* @param columns - The columns to retrieve, separated by commas
|
|
14
|
+
*/
|
|
15
|
+
select<Query extends string = '*', NewResultOne = GetResult<Schema, Row, RelationName, Relationships, Query, ClientOptions>>(columns?: Query): PostgrestTransformBuilder<ClientOptions, Schema, Row, NewResultOne[], RelationName, Relationships, Method>;
|
|
16
|
+
order<ColumnName extends string & keyof Row>(column: ColumnName, options?: {
|
|
17
|
+
ascending?: boolean;
|
|
18
|
+
nullsFirst?: boolean;
|
|
19
|
+
referencedTable?: undefined;
|
|
20
|
+
}): this;
|
|
21
|
+
order(column: string, options?: {
|
|
22
|
+
ascending?: boolean;
|
|
23
|
+
nullsFirst?: boolean;
|
|
24
|
+
referencedTable?: string;
|
|
25
|
+
}): this;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use `options.referencedTable` instead of `options.foreignTable`
|
|
28
|
+
*/
|
|
29
|
+
order<ColumnName extends string & keyof Row>(column: ColumnName, options?: {
|
|
30
|
+
ascending?: boolean;
|
|
31
|
+
nullsFirst?: boolean;
|
|
32
|
+
foreignTable?: undefined;
|
|
33
|
+
}): this;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use `options.referencedTable` instead of `options.foreignTable`
|
|
36
|
+
*/
|
|
37
|
+
order(column: string, options?: {
|
|
38
|
+
ascending?: boolean;
|
|
39
|
+
nullsFirst?: boolean;
|
|
40
|
+
foreignTable?: string;
|
|
41
|
+
}): this;
|
|
42
|
+
/**
|
|
43
|
+
* Limit the query result by `count`.
|
|
44
|
+
*
|
|
45
|
+
* @param count - The maximum number of rows to return
|
|
46
|
+
* @param options - Named parameters
|
|
47
|
+
* @param options.referencedTable - Set this to limit rows of referenced
|
|
48
|
+
* tables instead of the parent table
|
|
49
|
+
* @param options.foreignTable - Deprecated, use `options.referencedTable`
|
|
50
|
+
* instead
|
|
51
|
+
*/
|
|
52
|
+
limit(count: number, { foreignTable, referencedTable, }?: {
|
|
53
|
+
foreignTable?: string;
|
|
54
|
+
referencedTable?: string;
|
|
55
|
+
}): this;
|
|
56
|
+
/**
|
|
57
|
+
* Limit the query result by starting at an offset `from` and ending at the offset `to`.
|
|
58
|
+
* Only records within this range are returned.
|
|
59
|
+
* This respects the query order and if there is no order clause the range could behave unexpectedly.
|
|
60
|
+
* The `from` and `to` values are 0-based and inclusive: `range(1, 3)` will include the second, third
|
|
61
|
+
* and fourth rows of the query.
|
|
62
|
+
*
|
|
63
|
+
* @param from - The starting index from which to limit the result
|
|
64
|
+
* @param to - The last index to which to limit the result
|
|
65
|
+
* @param options - Named parameters
|
|
66
|
+
* @param options.referencedTable - Set this to limit rows of referenced
|
|
67
|
+
* tables instead of the parent table
|
|
68
|
+
* @param options.foreignTable - Deprecated, use `options.referencedTable`
|
|
69
|
+
* instead
|
|
70
|
+
*/
|
|
71
|
+
range(from: number, to: number, { foreignTable, referencedTable, }?: {
|
|
72
|
+
foreignTable?: string;
|
|
73
|
+
referencedTable?: string;
|
|
74
|
+
}): this;
|
|
75
|
+
/**
|
|
76
|
+
* Set the AbortSignal for the fetch request.
|
|
77
|
+
*
|
|
78
|
+
* @param signal - The AbortSignal to use for the fetch request
|
|
79
|
+
*/
|
|
80
|
+
abortSignal(signal: AbortSignal): this;
|
|
81
|
+
/**
|
|
82
|
+
* Return `data` as a single object instead of an array of objects.
|
|
83
|
+
*
|
|
84
|
+
* Query result must be one row (e.g. using `.limit(1)`), otherwise this
|
|
85
|
+
* returns an error.
|
|
86
|
+
*/
|
|
87
|
+
single<ResultOne = Result extends (infer ResultOne)[] ? ResultOne : never>(): PostgrestBuilder<ClientOptions, ResultOne>;
|
|
88
|
+
/**
|
|
89
|
+
* Return `data` as a single object instead of an array of objects.
|
|
90
|
+
*
|
|
91
|
+
* Query result must be zero or one row (e.g. using `.limit(1)`), otherwise
|
|
92
|
+
* this returns an error.
|
|
93
|
+
*/
|
|
94
|
+
maybeSingle<ResultOne = Result extends (infer ResultOne)[] ? ResultOne : never>(): PostgrestBuilder<ClientOptions, ResultOne | null>;
|
|
95
|
+
/**
|
|
96
|
+
* Return `data` as a string in CSV format.
|
|
97
|
+
*/
|
|
98
|
+
csv(): PostgrestBuilder<ClientOptions, string>;
|
|
99
|
+
/**
|
|
100
|
+
* Return `data` as an object in [GeoJSON](https://geojson.org) format.
|
|
101
|
+
*/
|
|
102
|
+
geojson(): PostgrestBuilder<ClientOptions, Record<string, unknown>>;
|
|
103
|
+
/**
|
|
104
|
+
* Return `data` as the EXPLAIN plan for the query.
|
|
105
|
+
*
|
|
106
|
+
* You need to enable the
|
|
107
|
+
* [db_plan_enabled](https://supabase.com/docs/guides/database/debugging-performance#enabling-explain)
|
|
108
|
+
* setting before using this method.
|
|
109
|
+
*
|
|
110
|
+
* @param options - Named parameters
|
|
111
|
+
*
|
|
112
|
+
* @param options.analyze - If `true`, the query will be executed and the
|
|
113
|
+
* actual run time will be returned
|
|
114
|
+
*
|
|
115
|
+
* @param options.verbose - If `true`, the query identifier will be returned
|
|
116
|
+
* and `data` will include the output columns of the query
|
|
117
|
+
*
|
|
118
|
+
* @param options.settings - If `true`, include information on configuration
|
|
119
|
+
* parameters that affect query planning
|
|
120
|
+
*
|
|
121
|
+
* @param options.buffers - If `true`, include information on buffer usage
|
|
122
|
+
*
|
|
123
|
+
* @param options.wal - If `true`, include information on WAL record generation
|
|
124
|
+
*
|
|
125
|
+
* @param options.format - The format of the output, can be `"text"` (default)
|
|
126
|
+
* or `"json"`
|
|
127
|
+
*/
|
|
128
|
+
explain({ analyze, verbose, settings, buffers, wal, format, }?: {
|
|
129
|
+
analyze?: boolean;
|
|
130
|
+
verbose?: boolean;
|
|
131
|
+
settings?: boolean;
|
|
132
|
+
buffers?: boolean;
|
|
133
|
+
wal?: boolean;
|
|
134
|
+
format?: 'json' | 'text';
|
|
135
|
+
}): PostgrestBuilder<ClientOptions, string, false> | PostgrestBuilder<ClientOptions, Record<string, unknown>[], false>;
|
|
136
|
+
/**
|
|
137
|
+
* Rollback the query.
|
|
138
|
+
*
|
|
139
|
+
* `data` will still be returned, but the query is not committed.
|
|
140
|
+
*/
|
|
141
|
+
rollback(): this;
|
|
142
|
+
/**
|
|
143
|
+
* Override the type of the returned `data`.
|
|
144
|
+
*
|
|
145
|
+
* @typeParam NewResult - The new result type to override with
|
|
146
|
+
* @deprecated Use overrideTypes<yourType, { merge: false }>() method at the end of your call chain instead
|
|
147
|
+
*/
|
|
148
|
+
returns<NewResult>(): PostgrestTransformBuilder<ClientOptions, Schema, Row, CheckMatchingArrayTypes<Result, NewResult>, RelationName, Relationships, Method>;
|
|
149
|
+
/**
|
|
150
|
+
* Set the maximum number of rows that can be affected by the query.
|
|
151
|
+
* Only available in PostgREST v13+ and only works with PATCH and DELETE methods.
|
|
152
|
+
*
|
|
153
|
+
* @param value - The maximum number of rows that can be affected
|
|
154
|
+
*/
|
|
155
|
+
maxAffected(value: number): MaxAffectedEnabled<ClientOptions['PostgrestVersion']> extends true ? Method extends 'PATCH' | 'DELETE' | 'RPC' ? this : InvalidMethodError<'maxAffected method only available on update or delete'> : InvalidMethodError<'maxAffected method only available on postgrest 13+'>;
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=PostgrestTransformBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgrestTransformBuilder.d.ts","sourceRoot":"","sources":["../../src/PostgrestTransformBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAEhB,MAAM,CAAC,OAAO,OAAO,yBAAyB,CAC5C,aAAa,SAAS,mBAAmB,EACzC,MAAM,SAAS,aAAa,EAC5B,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,MAAM,EACN,YAAY,GAAG,OAAO,EACtB,aAAa,GAAG,OAAO,EACvB,MAAM,GAAG,OAAO,CAChB,SAAQ,gBAAgB,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/C;;;;;;;;OAQG;IACH,MAAM,CACJ,KAAK,SAAS,MAAM,GAAG,GAAG,EAC1B,YAAY,GAAG,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,CAAC,EAExF,OAAO,CAAC,EAAE,KA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C,EAC1C,YAAY,EACZ,aAAa,EACb,MAAM,CACP;IAYD;;;;;OAKG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,SAAS,IAAI,GAE1F,MAAM,SAAS,OAAO,GAAG,QAAQ,GAAG,KAAK,GACvC,IAAI,GACJ,kBAAkB,CAAC,uDAAuD,CAAC,GAC7E,kBAAkB,CAAC,oDAAoD,CAAC;CAS7E"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const PostgrestBuilder_1 = __importDefault(require("./PostgrestBuilder"));
|
|
7
|
+
class PostgrestTransformBuilder extends PostgrestBuilder_1.default {
|
|
8
|
+
/**
|
|
9
|
+
* Perform a SELECT on the query result.
|
|
10
|
+
*
|
|
11
|
+
* By default, `.insert()`, `.update()`, `.upsert()`, and `.delete()` do not
|
|
12
|
+
* return modified rows. By calling this method, modified rows are returned in
|
|
13
|
+
* `data`.
|
|
14
|
+
*
|
|
15
|
+
* @param columns - The columns to retrieve, separated by commas
|
|
16
|
+
*/
|
|
17
|
+
select(columns) {
|
|
18
|
+
// Remove whitespaces except when quoted
|
|
19
|
+
let quoted = false;
|
|
20
|
+
const cleanedColumns = (columns !== null && columns !== void 0 ? columns : '*')
|
|
21
|
+
.split('')
|
|
22
|
+
.map((c) => {
|
|
23
|
+
if (/\s/.test(c) && !quoted) {
|
|
24
|
+
return '';
|
|
25
|
+
}
|
|
26
|
+
if (c === '"') {
|
|
27
|
+
quoted = !quoted;
|
|
28
|
+
}
|
|
29
|
+
return c;
|
|
30
|
+
})
|
|
31
|
+
.join('');
|
|
32
|
+
this.url.searchParams.set('select', cleanedColumns);
|
|
33
|
+
this.headers.append('Prefer', 'return=representation');
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Order the query result by `column`.
|
|
38
|
+
*
|
|
39
|
+
* You can call this method multiple times to order by multiple columns.
|
|
40
|
+
*
|
|
41
|
+
* You can order referenced tables, but it only affects the ordering of the
|
|
42
|
+
* parent table if you use `!inner` in the query.
|
|
43
|
+
*
|
|
44
|
+
* @param column - The column to order by
|
|
45
|
+
* @param options - Named parameters
|
|
46
|
+
* @param options.ascending - If `true`, the result will be in ascending order
|
|
47
|
+
* @param options.nullsFirst - If `true`, `null`s appear first. If `false`,
|
|
48
|
+
* `null`s appear last.
|
|
49
|
+
* @param options.referencedTable - Set this to order a referenced table by
|
|
50
|
+
* its columns
|
|
51
|
+
* @param options.foreignTable - Deprecated, use `options.referencedTable`
|
|
52
|
+
* instead
|
|
53
|
+
*/
|
|
54
|
+
order(column, { ascending = true, nullsFirst, foreignTable, referencedTable = foreignTable, } = {}) {
|
|
55
|
+
const key = referencedTable ? `${referencedTable}.order` : 'order';
|
|
56
|
+
const existingOrder = this.url.searchParams.get(key);
|
|
57
|
+
this.url.searchParams.set(key, `${existingOrder ? `${existingOrder},` : ''}${column}.${ascending ? 'asc' : 'desc'}${nullsFirst === undefined ? '' : nullsFirst ? '.nullsfirst' : '.nullslast'}`);
|
|
58
|
+
return this;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Limit the query result by `count`.
|
|
62
|
+
*
|
|
63
|
+
* @param count - The maximum number of rows to return
|
|
64
|
+
* @param options - Named parameters
|
|
65
|
+
* @param options.referencedTable - Set this to limit rows of referenced
|
|
66
|
+
* tables instead of the parent table
|
|
67
|
+
* @param options.foreignTable - Deprecated, use `options.referencedTable`
|
|
68
|
+
* instead
|
|
69
|
+
*/
|
|
70
|
+
limit(count, { foreignTable, referencedTable = foreignTable, } = {}) {
|
|
71
|
+
const key = typeof referencedTable === 'undefined' ? 'limit' : `${referencedTable}.limit`;
|
|
72
|
+
this.url.searchParams.set(key, `${count}`);
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Limit the query result by starting at an offset `from` and ending at the offset `to`.
|
|
77
|
+
* Only records within this range are returned.
|
|
78
|
+
* This respects the query order and if there is no order clause the range could behave unexpectedly.
|
|
79
|
+
* The `from` and `to` values are 0-based and inclusive: `range(1, 3)` will include the second, third
|
|
80
|
+
* and fourth rows of the query.
|
|
81
|
+
*
|
|
82
|
+
* @param from - The starting index from which to limit the result
|
|
83
|
+
* @param to - The last index to which to limit the result
|
|
84
|
+
* @param options - Named parameters
|
|
85
|
+
* @param options.referencedTable - Set this to limit rows of referenced
|
|
86
|
+
* tables instead of the parent table
|
|
87
|
+
* @param options.foreignTable - Deprecated, use `options.referencedTable`
|
|
88
|
+
* instead
|
|
89
|
+
*/
|
|
90
|
+
range(from, to, { foreignTable, referencedTable = foreignTable, } = {}) {
|
|
91
|
+
const keyOffset = typeof referencedTable === 'undefined' ? 'offset' : `${referencedTable}.offset`;
|
|
92
|
+
const keyLimit = typeof referencedTable === 'undefined' ? 'limit' : `${referencedTable}.limit`;
|
|
93
|
+
this.url.searchParams.set(keyOffset, `${from}`);
|
|
94
|
+
// Range is inclusive, so add 1
|
|
95
|
+
this.url.searchParams.set(keyLimit, `${to - from + 1}`);
|
|
96
|
+
return this;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Set the AbortSignal for the fetch request.
|
|
100
|
+
*
|
|
101
|
+
* @param signal - The AbortSignal to use for the fetch request
|
|
102
|
+
*/
|
|
103
|
+
abortSignal(signal) {
|
|
104
|
+
this.signal = signal;
|
|
105
|
+
return this;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Return `data` as a single object instead of an array of objects.
|
|
109
|
+
*
|
|
110
|
+
* Query result must be one row (e.g. using `.limit(1)`), otherwise this
|
|
111
|
+
* returns an error.
|
|
112
|
+
*/
|
|
113
|
+
single() {
|
|
114
|
+
this.headers.set('Accept', 'application/vnd.pgrst.object+json');
|
|
115
|
+
return this;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Return `data` as a single object instead of an array of objects.
|
|
119
|
+
*
|
|
120
|
+
* Query result must be zero or one row (e.g. using `.limit(1)`), otherwise
|
|
121
|
+
* this returns an error.
|
|
122
|
+
*/
|
|
123
|
+
maybeSingle() {
|
|
124
|
+
// Temporary partial fix for https://github.com/supabase/postgrest-js/issues/361
|
|
125
|
+
// Issue persists e.g. for `.insert([...]).select().maybeSingle()`
|
|
126
|
+
if (this.method === 'GET') {
|
|
127
|
+
this.headers.set('Accept', 'application/json');
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
this.headers.set('Accept', 'application/vnd.pgrst.object+json');
|
|
131
|
+
}
|
|
132
|
+
this.isMaybeSingle = true;
|
|
133
|
+
return this;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Return `data` as a string in CSV format.
|
|
137
|
+
*/
|
|
138
|
+
csv() {
|
|
139
|
+
this.headers.set('Accept', 'text/csv');
|
|
140
|
+
return this;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Return `data` as an object in [GeoJSON](https://geojson.org) format.
|
|
144
|
+
*/
|
|
145
|
+
geojson() {
|
|
146
|
+
this.headers.set('Accept', 'application/geo+json');
|
|
147
|
+
return this;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Return `data` as the EXPLAIN plan for the query.
|
|
151
|
+
*
|
|
152
|
+
* You need to enable the
|
|
153
|
+
* [db_plan_enabled](https://supabase.com/docs/guides/database/debugging-performance#enabling-explain)
|
|
154
|
+
* setting before using this method.
|
|
155
|
+
*
|
|
156
|
+
* @param options - Named parameters
|
|
157
|
+
*
|
|
158
|
+
* @param options.analyze - If `true`, the query will be executed and the
|
|
159
|
+
* actual run time will be returned
|
|
160
|
+
*
|
|
161
|
+
* @param options.verbose - If `true`, the query identifier will be returned
|
|
162
|
+
* and `data` will include the output columns of the query
|
|
163
|
+
*
|
|
164
|
+
* @param options.settings - If `true`, include information on configuration
|
|
165
|
+
* parameters that affect query planning
|
|
166
|
+
*
|
|
167
|
+
* @param options.buffers - If `true`, include information on buffer usage
|
|
168
|
+
*
|
|
169
|
+
* @param options.wal - If `true`, include information on WAL record generation
|
|
170
|
+
*
|
|
171
|
+
* @param options.format - The format of the output, can be `"text"` (default)
|
|
172
|
+
* or `"json"`
|
|
173
|
+
*/
|
|
174
|
+
explain({ analyze = false, verbose = false, settings = false, buffers = false, wal = false, format = 'text', } = {}) {
|
|
175
|
+
var _a;
|
|
176
|
+
const options = [
|
|
177
|
+
analyze ? 'analyze' : null,
|
|
178
|
+
verbose ? 'verbose' : null,
|
|
179
|
+
settings ? 'settings' : null,
|
|
180
|
+
buffers ? 'buffers' : null,
|
|
181
|
+
wal ? 'wal' : null,
|
|
182
|
+
]
|
|
183
|
+
.filter(Boolean)
|
|
184
|
+
.join('|');
|
|
185
|
+
// An Accept header can carry multiple media types but postgrest-js always sends one
|
|
186
|
+
const forMediatype = (_a = this.headers.get('Accept')) !== null && _a !== void 0 ? _a : 'application/json';
|
|
187
|
+
this.headers.set('Accept', `application/vnd.pgrst.plan+${format}; for="${forMediatype}"; options=${options};`);
|
|
188
|
+
if (format === 'json') {
|
|
189
|
+
return this;
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
return this;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Rollback the query.
|
|
197
|
+
*
|
|
198
|
+
* `data` will still be returned, but the query is not committed.
|
|
199
|
+
*/
|
|
200
|
+
rollback() {
|
|
201
|
+
this.headers.append('Prefer', 'tx=rollback');
|
|
202
|
+
return this;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Override the type of the returned `data`.
|
|
206
|
+
*
|
|
207
|
+
* @typeParam NewResult - The new result type to override with
|
|
208
|
+
* @deprecated Use overrideTypes<yourType, { merge: false }>() method at the end of your call chain instead
|
|
209
|
+
*/
|
|
210
|
+
returns() {
|
|
211
|
+
return this;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Set the maximum number of rows that can be affected by the query.
|
|
215
|
+
* Only available in PostgREST v13+ and only works with PATCH and DELETE methods.
|
|
216
|
+
*
|
|
217
|
+
* @param value - The maximum number of rows that can be affected
|
|
218
|
+
*/
|
|
219
|
+
maxAffected(value) {
|
|
220
|
+
this.headers.append('Prefer', 'handling=strict');
|
|
221
|
+
this.headers.append('Prefer', `max-affected=${value}`);
|
|
222
|
+
return this;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.default = PostgrestTransformBuilder;
|
|
226
|
+
//# sourceMappingURL=PostgrestTransformBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgrestTransformBuilder.js","sourceRoot":"","sources":["../../src/PostgrestTransformBuilder.ts"],"names":[],"mappings":";;;;;AAAA,0EAAiD;AAUjD,MAAqB,yBAQnB,SAAQ,0BAAuC;IAC/C;;;;;;;;OAQG;IACH,MAAM,CAIJ,OAAe;QAUf,wCAAwC;QACxC,IAAI,MAAM,GAAG,KAAK,CAAA;QAClB,MAAM,cAAc,GAAG,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,GAAG,CAAC;aACpC,KAAK,CAAC,EAAE,CAAC;aACT,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACT,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE;gBAC3B,OAAO,EAAE,CAAA;aACV;YACD,IAAI,CAAC,KAAK,GAAG,EAAE;gBACb,MAAM,GAAG,CAAC,MAAM,CAAA;aACjB;YACD,OAAO,CAAC,CAAA;QACV,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,CAAC,CAAA;QACX,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAA;QACnD,IA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