byterover-cli 1.7.0 → 1.7.2
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/README.md +7 -5
- package/dist/agent/infra/sandbox/local-sandbox.js +9 -2
- package/node_modules/@campfirein/brv-transport-client/README.md +409 -0
- package/node_modules/@campfirein/brv-transport-client/dist/constants.d.ts +19 -0
- package/node_modules/@campfirein/brv-transport-client/dist/constants.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/constants.js +24 -0
- package/node_modules/@campfirein/brv-transport-client/dist/constants.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.d.ts +77 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.js +135 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.d.ts +63 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.js +104 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.d.ts +177 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.js +319 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.d.ts +216 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.js +172 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.d.ts +22 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.js +23 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.d.ts +47 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.js +7 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/common.d.ts +31 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/common.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/common.js +49 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/common.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/event-name-validator.d.ts +21 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/event-name-validator.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/event-name-validator.js +30 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/event-name-validator.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/index.d.ts +9 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/index.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/index.js +9 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/index.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/room-name-validator.d.ts +21 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/room-name-validator.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/room-name-validator.js +30 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/room-name-validator.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/url-validator.d.ts +29 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/url-validator.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/url-validator.js +61 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/url-validator.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.d.ts +44 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-logger.d.ts +45 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-logger.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-logger.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-logger.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.d.ts +170 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-connection-state.d.ts +78 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-connection-state.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-connection-state.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-connection-state.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-event-dispatcher.d.ts +33 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-event-dispatcher.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-event-dispatcher.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-event-dispatcher.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-force-reconnect-manager.d.ts +42 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-force-reconnect-manager.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-force-reconnect-manager.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-force-reconnect-manager.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.d.ts +45 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.d.ts +19 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-reconnection-strategy.d.ts +27 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-reconnection-strategy.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-reconnection-strategy.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-reconnection-strategy.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-room-manager.d.ts +32 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-room-manager.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-room-manager.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-room-manager.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket-provider.d.ts +45 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket-provider.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket-provider.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket-provider.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket.d.ts +56 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-wake-detector.d.ts +35 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-wake-detector.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-wake-detector.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-wake-detector.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/index.d.ts +65 -0
- package/node_modules/@campfirein/brv-transport-client/dist/index.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/index.js +73 -0
- package/node_modules/@campfirein/brv-transport-client/dist/index.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.d.ts +283 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.js +451 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/connection-state-manager.d.ts +90 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/connection-state-manager.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/connection-state-manager.js +142 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/connection-state-manager.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/event-dispatcher.d.ts +168 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/event-dispatcher.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/event-dispatcher.js +265 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/event-dispatcher.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.d.ts +32 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.js +85 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.d.ts +16 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.js +47 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.d.ts +102 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.js +161 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/no-op-client-logger.d.ts +17 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/no-op-client-logger.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/no-op-client-logger.js +24 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/no-op-client-logger.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/process-utils.d.ts +17 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/process-utils.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/process-utils.js +40 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/process-utils.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/reconnection-strategy.d.ts +136 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/reconnection-strategy.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/reconnection-strategy.js +174 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/reconnection-strategy.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/room-manager.d.ts +122 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/room-manager.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/room-manager.js +306 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/room-manager.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.d.ts +14 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.js +28 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.d.ts +953 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.js +476 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.d.ts +221 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.js +2 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.d.ts +283 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.js +668 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/utils/deep-freeze.d.ts +25 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/utils/deep-freeze.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/utils/deep-freeze.js +54 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/utils/deep-freeze.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/wake-detector.d.ts +72 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/wake-detector.d.ts.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/wake-detector.js +130 -0
- package/node_modules/@campfirein/brv-transport-client/dist/infra/wake-detector.js.map +1 -0
- package/node_modules/@campfirein/brv-transport-client/package.json +62 -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/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/node_modules/debug/LICENSE +20 -0
- package/node_modules/engine.io-client/node_modules/debug/README.md +481 -0
- package/node_modules/engine.io-client/node_modules/debug/package.json +60 -0
- package/node_modules/engine.io-client/node_modules/debug/src/browser.js +271 -0
- package/node_modules/engine.io-client/node_modules/debug/src/common.js +274 -0
- package/node_modules/engine.io-client/node_modules/debug/src/index.js +10 -0
- package/node_modules/engine.io-client/node_modules/debug/src/node.js +263 -0
- package/node_modules/engine.io-client/node_modules/ws/LICENSE +20 -0
- package/node_modules/engine.io-client/node_modules/ws/README.md +548 -0
- package/node_modules/engine.io-client/node_modules/ws/browser.js +8 -0
- package/node_modules/engine.io-client/node_modules/ws/index.js +13 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/constants.js +12 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/permessage-deflate.js +514 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/receiver.js +704 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/sender.js +497 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/stream.js +159 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/validation.js +130 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/websocket-server.js +540 -0
- package/node_modules/engine.io-client/node_modules/ws/lib/websocket.js +1338 -0
- package/node_modules/engine.io-client/node_modules/ws/package.json +69 -0
- package/node_modules/engine.io-client/node_modules/ws/wrapper.mjs +8 -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/node_modules/debug/LICENSE +20 -0
- package/node_modules/socket.io-client/node_modules/debug/README.md +481 -0
- package/node_modules/socket.io-client/node_modules/debug/package.json +60 -0
- package/node_modules/socket.io-client/node_modules/debug/src/browser.js +271 -0
- package/node_modules/socket.io-client/node_modules/debug/src/common.js +274 -0
- package/node_modules/socket.io-client/node_modules/debug/src/index.js +10 -0
- package/node_modules/socket.io-client/node_modules/debug/src/node.js +263 -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/node_modules/debug/LICENSE +20 -0
- package/node_modules/socket.io-parser/node_modules/debug/README.md +481 -0
- package/node_modules/socket.io-parser/node_modules/debug/package.json +60 -0
- package/node_modules/socket.io-parser/node_modules/debug/src/browser.js +271 -0
- package/node_modules/socket.io-parser/node_modules/debug/src/common.js +274 -0
- package/node_modules/socket.io-parser/node_modules/debug/src/index.js +10 -0
- package/node_modules/socket.io-parser/node_modules/debug/src/node.js +263 -0
- package/node_modules/socket.io-parser/package.json +58 -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/oclif.manifest.json +1 -1
- package/package.json +6 -2
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { checkSync } from "recheck";
|
|
2
|
+
import { expect, test } from "vitest";
|
|
3
|
+
import * as z from "zod/v4";
|
|
4
|
+
|
|
5
|
+
test("basic datetime parsing", () => {
|
|
6
|
+
const datetime = z.string().datetime();
|
|
7
|
+
datetime.parse("1970-01-01T00:00:00.000Z");
|
|
8
|
+
datetime.parse("2022-10-13T09:52:31.816Z");
|
|
9
|
+
datetime.parse("2022-10-13T09:52:31.8162314Z");
|
|
10
|
+
datetime.parse("1970-01-01T00:00:00Z");
|
|
11
|
+
datetime.parse("2022-10-13T09:52:31Z");
|
|
12
|
+
expect(() => datetime.parse("")).toThrow();
|
|
13
|
+
expect(() => datetime.parse("foo")).toThrow();
|
|
14
|
+
expect(() => datetime.parse("2020-10-14")).toThrow();
|
|
15
|
+
expect(() => datetime.parse("T18:45:12.123")).toThrow();
|
|
16
|
+
expect(() => datetime.parse("2020-10-14T17:42:29+00:00")).toThrow();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
test("datetime parsing with precision -1", () => {
|
|
20
|
+
const datetimeNoMs = z.string().datetime({ precision: -1, offset: true, local: true });
|
|
21
|
+
datetimeNoMs.parse("1970-01-01T00:00Z");
|
|
22
|
+
datetimeNoMs.parse("2022-10-13T09:52Z");
|
|
23
|
+
datetimeNoMs.parse("2022-10-13T09:52+02:00");
|
|
24
|
+
|
|
25
|
+
datetimeNoMs.parse("2022-10-13T09:52");
|
|
26
|
+
expect(() => datetimeNoMs.parse("tuna")).toThrow();
|
|
27
|
+
expect(() => datetimeNoMs.parse("2022-10-13T09:52+02")).toThrow();
|
|
28
|
+
expect(() => datetimeNoMs.parse("1970-01-01T00:00:00.000Z")).toThrow();
|
|
29
|
+
expect(() => datetimeNoMs.parse("1970-01-01T00:00:00.Z")).toThrow();
|
|
30
|
+
expect(() => datetimeNoMs.parse("2022-10-13T09:52:31.816Z")).toThrow();
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
test("datetime parsing with precision 0", () => {
|
|
34
|
+
const datetimeNoMs = z.string().datetime({ precision: 0 });
|
|
35
|
+
datetimeNoMs.parse("1970-01-01T00:00:00Z");
|
|
36
|
+
datetimeNoMs.parse("2022-10-13T09:52:31Z");
|
|
37
|
+
expect(() => datetimeNoMs.parse("tuna")).toThrow();
|
|
38
|
+
expect(() => datetimeNoMs.parse("1970-01-01T00:00:00.000Z")).toThrow();
|
|
39
|
+
expect(() => datetimeNoMs.parse("1970-01-01T00:00:00.Z")).toThrow();
|
|
40
|
+
expect(() => datetimeNoMs.parse("2022-10-13T09:52:31.816Z")).toThrow();
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
test("datetime parsing with precision 3", () => {
|
|
44
|
+
const datetime3Ms = z.string().datetime({ precision: 3 });
|
|
45
|
+
datetime3Ms.parse("1970-01-01T00:00:00.000Z");
|
|
46
|
+
datetime3Ms.parse("2022-10-13T09:52:31.123Z");
|
|
47
|
+
expect(() => datetime3Ms.parse("tuna")).toThrow();
|
|
48
|
+
expect(() => datetime3Ms.parse("1970-01-01T00:00:00.1Z")).toThrow();
|
|
49
|
+
expect(() => datetime3Ms.parse("1970-01-01T00:00:00.12Z")).toThrow();
|
|
50
|
+
expect(() => datetime3Ms.parse("2022-10-13T09:52:31Z")).toThrow();
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
test("datetime parsing with offset", () => {
|
|
54
|
+
const datetimeOffset = z.string().datetime({ offset: true });
|
|
55
|
+
datetimeOffset.parse("1970-01-01T00:00:00.000Z");
|
|
56
|
+
datetimeOffset.parse("2022-10-13T09:52:31.816234134Z");
|
|
57
|
+
datetimeOffset.parse("1970-01-01T00:00:00Z");
|
|
58
|
+
datetimeOffset.parse("2022-10-13T09:52:31.4Z");
|
|
59
|
+
datetimeOffset.parse("2020-10-14T17:42:29+00:00");
|
|
60
|
+
datetimeOffset.parse("2020-10-14T17:42:29+03:15");
|
|
61
|
+
expect(() => datetimeOffset.parse("2020-10-14T17:42:29+0315")).toThrow();
|
|
62
|
+
expect(() => datetimeOffset.parse("2020-10-14T17:42:29+03")).toThrow();
|
|
63
|
+
expect(() => datetimeOffset.parse("tuna")).toThrow();
|
|
64
|
+
expect(() => datetimeOffset.parse("2022-10-13T09:52:31.Z")).toThrow();
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
test("datetime parsing with offset and precision 0", () => {
|
|
68
|
+
const datetimeOffsetNoMs = z.string().datetime({ offset: true, precision: 0 });
|
|
69
|
+
datetimeOffsetNoMs.parse("1970-01-01T00:00:00Z");
|
|
70
|
+
datetimeOffsetNoMs.parse("2022-10-13T09:52:31Z");
|
|
71
|
+
datetimeOffsetNoMs.parse("2020-10-14T17:42:29+00:00");
|
|
72
|
+
expect(() => datetimeOffsetNoMs.parse("2020-10-14T17:42:29+0000")).toThrow();
|
|
73
|
+
expect(() => datetimeOffsetNoMs.parse("2020-10-14T17:42:29+00")).toThrow();
|
|
74
|
+
expect(() => datetimeOffsetNoMs.parse("tuna")).toThrow();
|
|
75
|
+
expect(() => datetimeOffsetNoMs.parse("1970-01-01T00:00:00.000Z")).toThrow();
|
|
76
|
+
expect(() => datetimeOffsetNoMs.parse("1970-01-01T00:00:00.Z")).toThrow();
|
|
77
|
+
expect(() => datetimeOffsetNoMs.parse("2022-10-13T09:52:31.816Z")).toThrow();
|
|
78
|
+
expect(() => datetimeOffsetNoMs.parse("2020-10-14T17:42:29.124+00:00")).toThrow();
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
test("datetime parsing with offset and precision 4", () => {
|
|
82
|
+
const datetimeOffset4Ms = z.string().datetime({ offset: true, precision: 4 });
|
|
83
|
+
datetimeOffset4Ms.parse("1970-01-01T00:00:00.1234Z");
|
|
84
|
+
datetimeOffset4Ms.parse("2020-10-14T17:42:29.1234+00:00");
|
|
85
|
+
expect(() => datetimeOffset4Ms.parse("2020-10-14T17:42:29.1234+0000")).toThrow();
|
|
86
|
+
expect(() => datetimeOffset4Ms.parse("2020-10-14T17:42:29.1234+00")).toThrow();
|
|
87
|
+
expect(() => datetimeOffset4Ms.parse("tuna")).toThrow();
|
|
88
|
+
expect(() => datetimeOffset4Ms.parse("1970-01-01T00:00:00.123Z")).toThrow();
|
|
89
|
+
expect(() => datetimeOffset4Ms.parse("2020-10-14T17:42:29.124+00:00")).toThrow();
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
test("datetime offset normalization", () => {
|
|
93
|
+
const a = z.iso.datetime({ offset: true });
|
|
94
|
+
|
|
95
|
+
expect(a.safeParse("2020-10-14T17:42:29+02")).toMatchObject({ success: false });
|
|
96
|
+
expect(a.safeParse("2020-10-14T17:42:29+0200")).toMatchObject({ success: false });
|
|
97
|
+
a.safeParse("2020-10-14T17:42:29+02:00");
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
test("datetime parsing with local option", () => {
|
|
101
|
+
const a = z.string().datetime({ local: true });
|
|
102
|
+
|
|
103
|
+
expect(a.safeParse("1970-01-01T00:00")).toMatchObject({ success: true });
|
|
104
|
+
expect(a.safeParse("1970-01-01T00:00:00")).toMatchObject({ success: true });
|
|
105
|
+
expect(a.safeParse("2022-10-13T09:52:31.816")).toMatchObject({ success: true });
|
|
106
|
+
expect(a.safeParse("1970-01-01T00:00:00.000")).toMatchObject({ success: true });
|
|
107
|
+
expect(a.safeParse("1970-01-01T00")).toMatchObject({ success: false });
|
|
108
|
+
|
|
109
|
+
// Should reject timezone indicators and invalid formats
|
|
110
|
+
|
|
111
|
+
expect(() => a.parse("2022-10-13T09:52:31+00:00")).toThrow();
|
|
112
|
+
expect(() => a.parse("2022-10-13 09:52:31")).toThrow();
|
|
113
|
+
expect(() => a.parse("2022-10-13T24:52:31")).toThrow();
|
|
114
|
+
expect(() => a.parse("2022-10-13T24:52")).toThrow();
|
|
115
|
+
expect(() => a.parse("2022-10-13T24:52Z")).toThrow();
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
test("datetime parsing with local and offset", () => {
|
|
119
|
+
const a = z.string().datetime({ local: true, offset: true });
|
|
120
|
+
|
|
121
|
+
// expect(a.parse("2022-10-13T12:52")).toEqual("2022-10-13T12:52:00");
|
|
122
|
+
a.parse("2022-10-13T12:52:00");
|
|
123
|
+
a.parse("2022-10-13T12:52:00Z");
|
|
124
|
+
a.parse("2022-10-13T12:52Z");
|
|
125
|
+
a.parse("2022-10-13T12:52");
|
|
126
|
+
a.parse("2022-10-13T12:52+02:00");
|
|
127
|
+
expect(() => a.parse("2022-10-13T12:52:00+02")).toThrow();
|
|
128
|
+
// expect(() => a.parse("2022-10-13T12:52Z")).toThrow();
|
|
129
|
+
// expect(() => a.parse("2022-10-13T12:52+02:00")).toThrow();
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
test("date parsing", () => {
|
|
133
|
+
const date = z.string().date();
|
|
134
|
+
date.parse("1970-01-01");
|
|
135
|
+
date.parse("2022-01-31");
|
|
136
|
+
date.parse("2022-03-31");
|
|
137
|
+
date.parse("2022-04-30");
|
|
138
|
+
date.parse("2022-05-31");
|
|
139
|
+
date.parse("2022-06-30");
|
|
140
|
+
date.parse("2022-07-31");
|
|
141
|
+
date.parse("2022-08-31");
|
|
142
|
+
date.parse("2022-09-30");
|
|
143
|
+
date.parse("2022-10-31");
|
|
144
|
+
date.parse("2022-11-30");
|
|
145
|
+
date.parse("2022-12-31");
|
|
146
|
+
|
|
147
|
+
date.parse("2000-02-29");
|
|
148
|
+
date.parse("2400-02-29");
|
|
149
|
+
expect(() => date.parse("2022-02-29")).toThrow();
|
|
150
|
+
expect(() => date.parse("2100-02-29")).toThrow();
|
|
151
|
+
expect(() => date.parse("2200-02-29")).toThrow();
|
|
152
|
+
expect(() => date.parse("2300-02-29")).toThrow();
|
|
153
|
+
expect(() => date.parse("2500-02-29")).toThrow();
|
|
154
|
+
|
|
155
|
+
expect(() => date.parse("")).toThrow();
|
|
156
|
+
expect(() => date.parse("foo")).toThrow();
|
|
157
|
+
expect(() => date.parse("200-01-01")).toThrow();
|
|
158
|
+
expect(() => date.parse("20000-01-01")).toThrow();
|
|
159
|
+
expect(() => date.parse("2000-0-01")).toThrow();
|
|
160
|
+
expect(() => date.parse("2000-011-01")).toThrow();
|
|
161
|
+
expect(() => date.parse("2000-01-0")).toThrow();
|
|
162
|
+
expect(() => date.parse("2000-01-011")).toThrow();
|
|
163
|
+
expect(() => date.parse("2000/01/01")).toThrow();
|
|
164
|
+
expect(() => date.parse("01-01-2022")).toThrow();
|
|
165
|
+
expect(() => date.parse("01/01/2022")).toThrow();
|
|
166
|
+
expect(() => date.parse("2000-01-01 00:00:00Z")).toThrow();
|
|
167
|
+
expect(() => date.parse("2020-10-14T17:42:29+00:00")).toThrow();
|
|
168
|
+
expect(() => date.parse("2020-10-14T17:42:29Z")).toThrow();
|
|
169
|
+
expect(() => date.parse("2020-10-14T17:42:29")).toThrow();
|
|
170
|
+
expect(() => date.parse("2020-10-14T17:42:29.123Z")).toThrow();
|
|
171
|
+
|
|
172
|
+
expect(() => date.parse("2000-00-12")).toThrow();
|
|
173
|
+
expect(() => date.parse("2000-12-00")).toThrow();
|
|
174
|
+
expect(() => date.parse("2000-01-32")).toThrow();
|
|
175
|
+
expect(() => date.parse("2000-13-01")).toThrow();
|
|
176
|
+
expect(() => date.parse("2000-21-01")).toThrow();
|
|
177
|
+
|
|
178
|
+
expect(() => date.parse("2000-02-30")).toThrow();
|
|
179
|
+
expect(() => date.parse("2000-02-31")).toThrow();
|
|
180
|
+
expect(() => date.parse("2000-04-31")).toThrow();
|
|
181
|
+
expect(() => date.parse("2000-06-31")).toThrow();
|
|
182
|
+
expect(() => date.parse("2000-09-31")).toThrow();
|
|
183
|
+
expect(() => date.parse("2000-11-31")).toThrow();
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
test("time parsing", () => {
|
|
187
|
+
const time = z.string().time();
|
|
188
|
+
time.parse("00:00:00");
|
|
189
|
+
time.parse("23:00:00");
|
|
190
|
+
time.parse("00:59:00");
|
|
191
|
+
time.parse("00:00:59");
|
|
192
|
+
time.parse("23:59:59");
|
|
193
|
+
time.parse("09:52:31");
|
|
194
|
+
time.parse("23:59:59.9999999");
|
|
195
|
+
time.parse("00:00");
|
|
196
|
+
expect(() => time.parse("")).toThrow();
|
|
197
|
+
expect(() => time.parse("foo")).toThrow();
|
|
198
|
+
expect(() => time.parse("00:00:00Z")).toThrow();
|
|
199
|
+
expect(() => time.parse("0:00:00")).toThrow();
|
|
200
|
+
expect(() => time.parse("00:0:00")).toThrow();
|
|
201
|
+
expect(() => time.parse("00:00:0")).toThrow();
|
|
202
|
+
expect(() => time.parse("00:00:00.000+00:00")).toThrow();
|
|
203
|
+
expect(() => time.parse("24:00:00")).toThrow();
|
|
204
|
+
expect(() => time.parse("00:60:00")).toThrow();
|
|
205
|
+
expect(() => time.parse("00:00:60")).toThrow();
|
|
206
|
+
expect(() => time.parse("24:60:60")).toThrow();
|
|
207
|
+
|
|
208
|
+
const time2 = z.string().time({ precision: 2 });
|
|
209
|
+
time2.parse("00:00:00.00");
|
|
210
|
+
time2.parse("09:52:31.12");
|
|
211
|
+
time2.parse("23:59:59.99");
|
|
212
|
+
expect(() => time2.parse("")).toThrow();
|
|
213
|
+
expect(() => time2.parse("foo")).toThrow();
|
|
214
|
+
expect(() => time2.parse("00:00:00")).toThrow();
|
|
215
|
+
expect(() => time2.parse("00:00:00.00Z")).toThrow();
|
|
216
|
+
expect(() => time2.parse("00:00:00.0")).toThrow();
|
|
217
|
+
expect(() => time2.parse("00:00:00.000")).toThrow();
|
|
218
|
+
expect(() => time2.parse("00:00:00.00+00:00")).toThrow();
|
|
219
|
+
|
|
220
|
+
const time3 = z.string().time({ precision: z.TimePrecision.Minute });
|
|
221
|
+
time3.parse("00:00");
|
|
222
|
+
expect(() => time3.parse("00:00:00")).toThrow();
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
test("duration", () => {
|
|
226
|
+
const duration = z.string().duration();
|
|
227
|
+
|
|
228
|
+
const validDurations = [
|
|
229
|
+
"P3Y6M4DT12H30M5S",
|
|
230
|
+
"P2Y9M3DT12H31M8.001S",
|
|
231
|
+
// "+P3Y6M4DT12H30M5S",
|
|
232
|
+
// "-PT0.001S",
|
|
233
|
+
// "+PT0.001S",
|
|
234
|
+
"PT0,001S",
|
|
235
|
+
"PT12H30M5S",
|
|
236
|
+
// "-P2M1D",
|
|
237
|
+
// "P-2M-1D",
|
|
238
|
+
// "-P5DT10H",
|
|
239
|
+
// "P-5DT-10H",
|
|
240
|
+
"P1Y",
|
|
241
|
+
"P2MT30M",
|
|
242
|
+
"PT6H",
|
|
243
|
+
"P5W",
|
|
244
|
+
// "P0.5Y",
|
|
245
|
+
// "P0,5Y",
|
|
246
|
+
// "P42YT7.004M",
|
|
247
|
+
];
|
|
248
|
+
|
|
249
|
+
const invalidDurations = [
|
|
250
|
+
"foo bar",
|
|
251
|
+
"",
|
|
252
|
+
" ",
|
|
253
|
+
"P",
|
|
254
|
+
"PT",
|
|
255
|
+
"P1Y2MT",
|
|
256
|
+
"T1H",
|
|
257
|
+
"P0.5Y1D",
|
|
258
|
+
"P0,5Y6M",
|
|
259
|
+
"P1YT",
|
|
260
|
+
"P-2M-1D",
|
|
261
|
+
"P-5DT-10H",
|
|
262
|
+
"P1W2D",
|
|
263
|
+
"-P1D",
|
|
264
|
+
];
|
|
265
|
+
|
|
266
|
+
for (const val of validDurations) {
|
|
267
|
+
const result = duration.safeParse(val);
|
|
268
|
+
if (!result.success) {
|
|
269
|
+
throw Error(`Valid duration could not be parsed: ${val}`);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
for (const val of invalidDurations) {
|
|
274
|
+
const result = duration.safeParse(val);
|
|
275
|
+
|
|
276
|
+
if (result.success) {
|
|
277
|
+
throw Error(`Invalid duration was successful parsed: ${val}`);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
expect(result.error.issues[0].message).toEqual("Invalid ISO duration");
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
test("redos checker", () => {
|
|
285
|
+
const a = z.iso.datetime();
|
|
286
|
+
const b = z.string().datetime({ offset: true });
|
|
287
|
+
const c = z.string().datetime({ local: true });
|
|
288
|
+
const d = z.string().datetime({ local: true, offset: true, precision: 3 });
|
|
289
|
+
const e = z.string().date();
|
|
290
|
+
const f = z.string().time();
|
|
291
|
+
const g = z.string().duration();
|
|
292
|
+
for (const schema of [a, b, c, d, e, f, g]) {
|
|
293
|
+
const result = checkSync(schema._zod.pattern.source, "");
|
|
294
|
+
if (result.status !== "safe") throw Error("ReDoS issue");
|
|
295
|
+
}
|
|
296
|
+
});
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { expect, expectTypeOf, test } from "vitest";
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
|
|
4
|
+
test("basic defaults", () => {
|
|
5
|
+
expect(z.string().default("default").parse(undefined)).toBe("default");
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
test("default with optional", () => {
|
|
9
|
+
const schema = z.string().optional().default("default");
|
|
10
|
+
expect(schema.parse(undefined)).toBe("default");
|
|
11
|
+
expect(schema.unwrap().parse(undefined)).toBe(undefined);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
test("default with transform", () => {
|
|
15
|
+
const stringWithDefault = z
|
|
16
|
+
.string()
|
|
17
|
+
.transform((val) => val.toUpperCase())
|
|
18
|
+
.default("default");
|
|
19
|
+
expect(stringWithDefault.parse(undefined)).toBe("default");
|
|
20
|
+
expect(stringWithDefault).toBeInstanceOf(z.ZodDefault);
|
|
21
|
+
expect(stringWithDefault.unwrap()).toBeInstanceOf(z.ZodPipe);
|
|
22
|
+
expect(stringWithDefault.unwrap().in).toBeInstanceOf(z.ZodString);
|
|
23
|
+
expect(stringWithDefault.unwrap().out).toBeInstanceOf(z.ZodTransform);
|
|
24
|
+
|
|
25
|
+
type inp = z.input<typeof stringWithDefault>;
|
|
26
|
+
expectTypeOf<inp>().toEqualTypeOf<string | undefined>();
|
|
27
|
+
type out = z.output<typeof stringWithDefault>;
|
|
28
|
+
expectTypeOf<out>().toEqualTypeOf<string>();
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
test("default on existing optional", () => {
|
|
32
|
+
const stringWithDefault = z.string().optional().default("asdf");
|
|
33
|
+
expect(stringWithDefault.parse(undefined)).toBe("asdf");
|
|
34
|
+
expect(stringWithDefault).toBeInstanceOf(z.ZodDefault);
|
|
35
|
+
expect(stringWithDefault.unwrap()).toBeInstanceOf(z.ZodOptional);
|
|
36
|
+
expect(stringWithDefault.unwrap().unwrap()).toBeInstanceOf(z.ZodString);
|
|
37
|
+
|
|
38
|
+
type inp = z.input<typeof stringWithDefault>;
|
|
39
|
+
expectTypeOf<inp>().toEqualTypeOf<string | undefined>();
|
|
40
|
+
type out = z.output<typeof stringWithDefault>;
|
|
41
|
+
expectTypeOf<out>().toEqualTypeOf<string>();
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test("optional on default", () => {
|
|
45
|
+
const stringWithDefault = z.string().default("asdf").optional();
|
|
46
|
+
|
|
47
|
+
type inp = z.input<typeof stringWithDefault>;
|
|
48
|
+
expectTypeOf<inp>().toEqualTypeOf<string | undefined>();
|
|
49
|
+
type out = z.output<typeof stringWithDefault>;
|
|
50
|
+
expectTypeOf<out>().toEqualTypeOf<string | undefined>();
|
|
51
|
+
|
|
52
|
+
expect(stringWithDefault.parse(undefined)).toBe("asdf");
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// test("complex chain example", () => {
|
|
56
|
+
// const complex = z
|
|
57
|
+
// .string()
|
|
58
|
+
// .default("asdf")
|
|
59
|
+
// .transform((val) => val.toUpperCase())
|
|
60
|
+
// .default("qwer")
|
|
61
|
+
// .unwrap()
|
|
62
|
+
// .optional()
|
|
63
|
+
// .default("asdfasdf");
|
|
64
|
+
|
|
65
|
+
// expect(complex.parse(undefined)).toBe("asdfasdf");
|
|
66
|
+
// });
|
|
67
|
+
|
|
68
|
+
test("removeDefault", () => {
|
|
69
|
+
const stringWithRemovedDefault = z.string().default("asdf").removeDefault();
|
|
70
|
+
|
|
71
|
+
type out = z.output<typeof stringWithRemovedDefault>;
|
|
72
|
+
expectTypeOf<out>().toEqualTypeOf<string>();
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
test("apply default at output", () => {
|
|
76
|
+
const schema = z
|
|
77
|
+
.string()
|
|
78
|
+
.transform((_) => (Math.random() > 0 ? undefined : _))
|
|
79
|
+
.default("asdf");
|
|
80
|
+
expect(schema.parse("")).toEqual("asdf");
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
test("nested", () => {
|
|
84
|
+
const inner = z.string().default("asdf");
|
|
85
|
+
const outer = z.object({ inner }).default({
|
|
86
|
+
inner: "qwer",
|
|
87
|
+
});
|
|
88
|
+
type input = z.input<typeof outer>;
|
|
89
|
+
expectTypeOf<input>().toEqualTypeOf<{ inner?: string | undefined } | undefined>();
|
|
90
|
+
type out = z.output<typeof outer>;
|
|
91
|
+
expectTypeOf<out>().toEqualTypeOf<{ inner: string }>();
|
|
92
|
+
expect(outer.parse(undefined)).toEqual({ inner: "qwer" });
|
|
93
|
+
expect(outer.parse({})).toEqual({ inner: "asdf" });
|
|
94
|
+
expect(outer.parse({ inner: undefined })).toEqual({ inner: "asdf" });
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
test("chained defaults", () => {
|
|
98
|
+
const stringWithDefault = z.string().default("inner").default("outer");
|
|
99
|
+
const result = stringWithDefault.parse(undefined);
|
|
100
|
+
expect(result).toEqual("outer");
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
test("object optionality", () => {
|
|
104
|
+
const schema = z.object({
|
|
105
|
+
hi: z.string().default("hi"),
|
|
106
|
+
});
|
|
107
|
+
type schemaInput = z.input<typeof schema>;
|
|
108
|
+
type schemaOutput = z.output<typeof schema>;
|
|
109
|
+
expectTypeOf<schemaInput>().toEqualTypeOf<{ hi?: string | undefined }>();
|
|
110
|
+
expectTypeOf<schemaOutput>().toEqualTypeOf<{ hi: string }>();
|
|
111
|
+
expect(schema.parse({})).toEqual({
|
|
112
|
+
hi: "hi",
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
test("nested prefault/default", () => {
|
|
117
|
+
const a = z
|
|
118
|
+
.string()
|
|
119
|
+
.default("a")
|
|
120
|
+
.refine((val) => val.startsWith("a"));
|
|
121
|
+
const b = z
|
|
122
|
+
.string()
|
|
123
|
+
.refine((val) => val.startsWith("b"))
|
|
124
|
+
.default("b");
|
|
125
|
+
const c = z
|
|
126
|
+
.string()
|
|
127
|
+
.prefault("c")
|
|
128
|
+
.refine((val) => val.startsWith("c"));
|
|
129
|
+
const d = z
|
|
130
|
+
.string()
|
|
131
|
+
.refine((val) => val.startsWith("d"))
|
|
132
|
+
.prefault("d");
|
|
133
|
+
|
|
134
|
+
const obj = z.object({
|
|
135
|
+
a,
|
|
136
|
+
b,
|
|
137
|
+
c,
|
|
138
|
+
d,
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
expect(obj.safeParse({ a: "a1", b: "b1", c: "c1", d: "d1" })).toMatchInlineSnapshot(`
|
|
142
|
+
{
|
|
143
|
+
"data": {
|
|
144
|
+
"a": "a1",
|
|
145
|
+
"b": "b1",
|
|
146
|
+
"c": "c1",
|
|
147
|
+
"d": "d1",
|
|
148
|
+
},
|
|
149
|
+
"success": true,
|
|
150
|
+
}
|
|
151
|
+
`);
|
|
152
|
+
|
|
153
|
+
expect(obj.safeParse({ a: "f", b: "f", c: "f", d: "f" })).toMatchInlineSnapshot(`
|
|
154
|
+
{
|
|
155
|
+
"error": [ZodError: [
|
|
156
|
+
{
|
|
157
|
+
"code": "custom",
|
|
158
|
+
"path": [
|
|
159
|
+
"a"
|
|
160
|
+
],
|
|
161
|
+
"message": "Invalid input"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"code": "custom",
|
|
165
|
+
"path": [
|
|
166
|
+
"b"
|
|
167
|
+
],
|
|
168
|
+
"message": "Invalid input"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"code": "custom",
|
|
172
|
+
"path": [
|
|
173
|
+
"c"
|
|
174
|
+
],
|
|
175
|
+
"message": "Invalid input"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"code": "custom",
|
|
179
|
+
"path": [
|
|
180
|
+
"d"
|
|
181
|
+
],
|
|
182
|
+
"message": "Invalid input"
|
|
183
|
+
}
|
|
184
|
+
]],
|
|
185
|
+
"success": false,
|
|
186
|
+
}
|
|
187
|
+
`);
|
|
188
|
+
|
|
189
|
+
expect(obj.safeParse({})).toMatchInlineSnapshot(`
|
|
190
|
+
{
|
|
191
|
+
"data": {
|
|
192
|
+
"a": "a",
|
|
193
|
+
"b": "b",
|
|
194
|
+
"c": "c",
|
|
195
|
+
"d": "d",
|
|
196
|
+
},
|
|
197
|
+
"success": true,
|
|
198
|
+
}
|
|
199
|
+
`);
|
|
200
|
+
|
|
201
|
+
expect(obj.safeParse({ a: undefined, b: undefined, c: undefined, d: undefined })).toMatchInlineSnapshot(`
|
|
202
|
+
{
|
|
203
|
+
"data": {
|
|
204
|
+
"a": "a",
|
|
205
|
+
"b": "b",
|
|
206
|
+
"c": "c",
|
|
207
|
+
"d": "d",
|
|
208
|
+
},
|
|
209
|
+
"success": true,
|
|
210
|
+
}
|
|
211
|
+
`);
|
|
212
|
+
|
|
213
|
+
const obj2 = z.object({
|
|
214
|
+
a: a.optional(),
|
|
215
|
+
b: b.optional(),
|
|
216
|
+
c: c.optional(),
|
|
217
|
+
d: d.optional(),
|
|
218
|
+
});
|
|
219
|
+
expect(obj2.safeParse({ a: undefined, b: undefined, c: undefined, d: undefined })).toMatchInlineSnapshot(`
|
|
220
|
+
{
|
|
221
|
+
"data": {
|
|
222
|
+
"a": "a",
|
|
223
|
+
"b": "b",
|
|
224
|
+
"c": "c",
|
|
225
|
+
"d": "d",
|
|
226
|
+
},
|
|
227
|
+
"success": true,
|
|
228
|
+
}
|
|
229
|
+
`);
|
|
230
|
+
|
|
231
|
+
expect(a.parse(undefined)).toBe("a");
|
|
232
|
+
expect(b.parse(undefined)).toBe("b");
|
|
233
|
+
expect(c.parse(undefined)).toBe("c");
|
|
234
|
+
expect(d.parse(undefined)).toBe("d");
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
test("failing default", () => {
|
|
238
|
+
const a = z
|
|
239
|
+
.string()
|
|
240
|
+
.default("z")
|
|
241
|
+
.refine((val) => val.startsWith("a"));
|
|
242
|
+
const b = z
|
|
243
|
+
.string()
|
|
244
|
+
.refine((val) => val.startsWith("b"))
|
|
245
|
+
.default("z");
|
|
246
|
+
const c = z
|
|
247
|
+
.string()
|
|
248
|
+
.prefault("z")
|
|
249
|
+
.refine((val) => val.startsWith("c"));
|
|
250
|
+
const d = z
|
|
251
|
+
.string()
|
|
252
|
+
.refine((val) => val.startsWith("d"))
|
|
253
|
+
.prefault("z");
|
|
254
|
+
|
|
255
|
+
const obj = z.object({
|
|
256
|
+
a,
|
|
257
|
+
b,
|
|
258
|
+
c,
|
|
259
|
+
d,
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
expect(
|
|
263
|
+
obj.safeParse({
|
|
264
|
+
a: undefined,
|
|
265
|
+
b: undefined,
|
|
266
|
+
c: undefined,
|
|
267
|
+
d: undefined,
|
|
268
|
+
}).error!.issues
|
|
269
|
+
).toMatchInlineSnapshot(`
|
|
270
|
+
[
|
|
271
|
+
{
|
|
272
|
+
"code": "custom",
|
|
273
|
+
"message": "Invalid input",
|
|
274
|
+
"path": [
|
|
275
|
+
"a",
|
|
276
|
+
],
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"code": "custom",
|
|
280
|
+
"message": "Invalid input",
|
|
281
|
+
"path": [
|
|
282
|
+
"c",
|
|
283
|
+
],
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"code": "custom",
|
|
287
|
+
"message": "Invalid input",
|
|
288
|
+
"path": [
|
|
289
|
+
"d",
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
]
|
|
293
|
+
`);
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
test("partial should not clobber defaults", () => {
|
|
297
|
+
const objWithDefaults = z.object({
|
|
298
|
+
a: z.string().default("defaultA"),
|
|
299
|
+
b: z.string().default("defaultB"),
|
|
300
|
+
c: z.string().default("defaultC"),
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
const objPartialWithOneRequired = objWithDefaults.partial(); //.required({ a: true });
|
|
304
|
+
|
|
305
|
+
const test = objPartialWithOneRequired.parse({});
|
|
306
|
+
expect(test).toMatchInlineSnapshot(`
|
|
307
|
+
{
|
|
308
|
+
"a": "defaultA",
|
|
309
|
+
"b": "defaultB",
|
|
310
|
+
"c": "defaultC",
|
|
311
|
+
}
|
|
312
|
+
`);
|
|
313
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { expect, test } from "vitest";
|
|
2
|
+
|
|
3
|
+
import * as z from "zod/v4";
|
|
4
|
+
|
|
5
|
+
const description = "a description";
|
|
6
|
+
|
|
7
|
+
// test("passing `description` to schema should add a description", () => {
|
|
8
|
+
// expect(z.string({ description }).description).toEqual(description);
|
|
9
|
+
// expect(z.number({ description }).description).toEqual(description);
|
|
10
|
+
// expect(z.boolean({ description }).description).toEqual(description);
|
|
11
|
+
// });
|
|
12
|
+
|
|
13
|
+
test(".describe", () => {
|
|
14
|
+
expect(z.string().describe(description).description).toEqual(description);
|
|
15
|
+
expect(z.number().describe(description).description).toEqual(description);
|
|
16
|
+
expect(z.boolean().describe(description).description).toEqual(description);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
test("adding description with z.globalRegistry", () => {
|
|
20
|
+
const schema = z.string();
|
|
21
|
+
z.core.globalRegistry.add(schema, { description });
|
|
22
|
+
z.core.globalRegistry.get(schema);
|
|
23
|
+
expect(schema.description).toEqual(description);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
// in Zod 4 descriptions are not inherited
|
|
27
|
+
// test("description should carry over to chained schemas", () => {
|
|
28
|
+
// const schema = z.string().describe(description);
|
|
29
|
+
// expect(schema.description).toEqual(description);
|
|
30
|
+
// expect(schema.optional().description).toEqual(description);
|
|
31
|
+
// expect(schema.optional().nullable().default("default").description).toEqual(description);
|
|
32
|
+
// });
|