pi-codex-auto-review 0.1.2 → 0.1.3
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 +19 -10
- package/dist/approval-commands.d.ts +4 -0
- package/dist/approval-commands.js +103 -0
- package/dist/approval-commands.js.map +1 -0
- package/dist/approval-settings.d.ts +9 -0
- package/dist/approval-settings.js +40 -0
- package/dist/approval-settings.js.map +1 -0
- package/dist/contracts.d.ts +2 -0
- package/dist/contracts.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -34
- package/dist/index.js.map +1 -1
- package/dist/policy/index.d.ts +0 -1
- package/dist/policy/index.js +6 -32
- package/dist/policy/index.js.map +1 -1
- package/dist/review/investigation.d.ts +3 -3
- package/dist/review/investigation.js +1 -1
- package/dist/review/investigation.js.map +1 -1
- package/dist/review/policy.js +1 -1
- package/dist/tools/controller.d.ts +7 -4
- package/dist/tools/controller.js +51 -35
- package/dist/tools/controller.js.map +1 -1
- package/dist/tools/environment.d.ts +1 -0
- package/dist/tools/environment.js +6 -0
- package/dist/tools/environment.js.map +1 -0
- package/dist/tools/executor.d.ts +14 -0
- package/dist/tools/executor.js +75 -0
- package/dist/tools/executor.js.map +1 -0
- package/dist/tools/mutation-queue.d.ts +1 -0
- package/dist/tools/mutation-queue.js +16 -0
- package/dist/tools/mutation-queue.js.map +1 -0
- package/docs/publishing.md +7 -7
- package/docs/security/dependencies.md +13 -3
- package/docs/testing/auto-review-protection.md +28 -8
- package/docs/usage.md +19 -16
- package/package.json +11 -14
- package/dist/sandbox/broker.d.ts +0 -1
- package/dist/sandbox/broker.js +0 -139
- package/dist/sandbox/broker.js.map +0 -1
- package/dist/sandbox/config.d.ts +0 -5
- package/dist/sandbox/config.js +0 -97
- package/dist/sandbox/config.js.map +0 -1
- package/dist/sandbox/directory-scan.d.ts +0 -1
- package/dist/sandbox/directory-scan.js +0 -32
- package/dist/sandbox/directory-scan.js.map +0 -1
- package/dist/sandbox/executor.d.ts +0 -20
- package/dist/sandbox/executor.js +0 -146
- package/dist/sandbox/executor.js.map +0 -1
- package/dist/sandbox/hard-links.d.ts +0 -4
- package/dist/sandbox/hard-links.js +0 -155
- package/dist/sandbox/hard-links.js.map +0 -1
- package/dist/sandbox/linux-read-paths.d.ts +0 -7
- package/dist/sandbox/linux-read-paths.js +0 -47
- package/dist/sandbox/linux-read-paths.js.map +0 -1
- package/dist/sandbox/paths.d.ts +0 -3
- package/dist/sandbox/paths.js +0 -10
- package/dist/sandbox/paths.js.map +0 -1
- package/dist/sandbox/runtime-write-paths.d.ts +0 -2
- package/dist/sandbox/runtime-write-paths.js +0 -8
- package/dist/sandbox/runtime-write-paths.js.map +0 -1
- package/dist/sandbox/seccomp.d.ts +0 -5
- package/dist/sandbox/seccomp.js +0 -16
- package/dist/sandbox/seccomp.js.map +0 -1
- package/dist/sandbox/worker.d.ts +0 -1
- package/dist/sandbox/worker.js +0 -78
- package/dist/sandbox/worker.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/LICENSE +0 -201
- package/node_modules/@anthropic-ai/sandbox-runtime/README.md +0 -901
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts +0 -3
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js +0 -472
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts +0 -19
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js +0 -17
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts +0 -52
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js +0 -153
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts +0 -164
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js +0 -246
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts +0 -58
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js +0 -128
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts +0 -124
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js +0 -258
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts +0 -87
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js +0 -138
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts +0 -67
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js +0 -113
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts +0 -70
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js +0 -171
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts +0 -120
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js +0 -281
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts +0 -108
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js +0 -208
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts +0 -82
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js +0 -155
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts +0 -44
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js +0 -220
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts +0 -150
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js +0 -678
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts +0 -32
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js +0 -111
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts +0 -305
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js +0 -2605
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts +0 -55
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js +0 -152
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts +0 -12
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js +0 -43
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts +0 -116
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js +0 -1195
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts +0 -200
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js +0 -443
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts +0 -28
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js +0 -114
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts +0 -59
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js +0 -159
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts +0 -147
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js +0 -445
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts +0 -17
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js +0 -163
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts +0 -83
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js +0 -212
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts +0 -76
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js +0 -221
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts +0 -1691
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js +0 -1233
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts +0 -97
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js +0 -1937
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts +0 -113
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js +0 -3
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts +0 -411
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js +0 -1408
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts +0 -37
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js +0 -125
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts +0 -57
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js +0 -332
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts +0 -100
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js +0 -546
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts +0 -923
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js +0 -1419
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts +0 -31
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js +0 -69
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts +0 -7
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js +0 -25
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts +0 -15
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js +0 -49
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts +0 -17
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js +0 -37
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts +0 -27
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js +0 -47
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts +0 -9
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js +0 -25
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js.map +0 -1
- package/node_modules/@anthropic-ai/sandbox-runtime/package.json +0 -88
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/build.ts +0 -95
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/srt-proxy-agent.jar +0 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/arm64/apply-seccomp +0 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/build.ts +0 -69
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/x64/apply-seccomp +0 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/arm64/srt-win.exe +0 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/build.ts +0 -28
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/x64/srt-win.exe +0 -0
- package/node_modules/@pondwader/socks5-server/.github/workflows/ci.yml +0 -27
- package/node_modules/@pondwader/socks5-server/LICENSE +0 -20
- package/node_modules/@pondwader/socks5-server/README.md +0 -151
- package/node_modules/@pondwader/socks5-server/dist/index.d.mts +0 -87
- package/node_modules/@pondwader/socks5-server/dist/index.d.ts +0 -87
- package/node_modules/@pondwader/socks5-server/dist/index.js +0 -346
- package/node_modules/@pondwader/socks5-server/dist/index.mjs +0 -307
- package/node_modules/@pondwader/socks5-server/package.json +0 -31
- package/node_modules/commander/LICENSE +0 -22
- package/node_modules/commander/Readme.md +0 -1157
- package/node_modules/commander/esm.mjs +0 -16
- package/node_modules/commander/index.js +0 -24
- package/node_modules/commander/lib/argument.js +0 -149
- package/node_modules/commander/lib/command.js +0 -2509
- package/node_modules/commander/lib/error.js +0 -39
- package/node_modules/commander/lib/help.js +0 -520
- package/node_modules/commander/lib/option.js +0 -330
- package/node_modules/commander/lib/suggestSimilar.js +0 -101
- package/node_modules/commander/package-support.json +0 -16
- package/node_modules/commander/package.json +0 -84
- package/node_modules/commander/typings/esm.d.mts +0 -3
- package/node_modules/commander/typings/index.d.ts +0 -969
- package/node_modules/node-forge/.editorconfig +0 -17
- package/node_modules/node-forge/.eslintrc.js +0 -24
- package/node_modules/node-forge/.github/workflows/main.yaml +0 -96
- package/node_modules/node-forge/.istanbul.yml +0 -2
- package/node_modules/node-forge/.npmignore +0 -15
- package/node_modules/node-forge/CHANGELOG.md +0 -555
- package/node_modules/node-forge/CONTRIBUTING.md +0 -18
- package/node_modules/node-forge/LICENSE +0 -331
- package/node_modules/node-forge/README.md +0 -2071
- package/node_modules/node-forge/RELEASE.md +0 -19
- package/node_modules/node-forge/SECURITY.md +0 -5
- package/node_modules/node-forge/examples/create-cert.js +0 -110
- package/node_modules/node-forge/examples/create-csr.js +0 -66
- package/node_modules/node-forge/examples/create-pkcs12.js +0 -160
- package/node_modules/node-forge/examples/imap.js +0 -46
- package/node_modules/node-forge/examples/sign-p7.js +0 -115
- package/node_modules/node-forge/examples/tls.js +0 -189
- package/node_modules/node-forge/flash/PooledSocket.as +0 -18
- package/node_modules/node-forge/flash/README.md +0 -48
- package/node_modules/node-forge/flash/SocketEvent.as +0 -36
- package/node_modules/node-forge/flash/SocketPool.as +0 -754
- package/node_modules/node-forge/flash/mod_fsp/README +0 -135
- package/node_modules/node-forge/flash/mod_fsp/mod_fsp.c +0 -415
- package/node_modules/node-forge/flash/package.json +0 -28
- package/node_modules/node-forge/flash/policyserver.js +0 -65
- package/node_modules/node-forge/flash/policyserver.py +0 -112
- package/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
- package/node_modules/node-forge/karma-sauce.conf.js +0 -79
- package/node_modules/node-forge/karma.conf.js +0 -133
- package/node_modules/node-forge/lib/aes.js +0 -1091
- package/node_modules/node-forge/lib/aesCipherSuites.js +0 -282
- package/node_modules/node-forge/lib/asn1-validator.js +0 -91
- package/node_modules/node-forge/lib/asn1.js +0 -1503
- package/node_modules/node-forge/lib/baseN.js +0 -186
- package/node_modules/node-forge/lib/cipher.js +0 -230
- package/node_modules/node-forge/lib/cipherModes.js +0 -999
- package/node_modules/node-forge/lib/des.js +0 -496
- package/node_modules/node-forge/lib/ed25519.js +0 -1091
- package/node_modules/node-forge/lib/forge.js +0 -13
- package/node_modules/node-forge/lib/form.js +0 -149
- package/node_modules/node-forge/lib/hmac.js +0 -146
- package/node_modules/node-forge/lib/http.js +0 -1346
- package/node_modules/node-forge/lib/index.all.js +0 -16
- package/node_modules/node-forge/lib/index.js +0 -33
- package/node_modules/node-forge/lib/jsbn.js +0 -1294
- package/node_modules/node-forge/lib/kem.js +0 -168
- package/node_modules/node-forge/lib/log.js +0 -319
- package/node_modules/node-forge/lib/md.all.js +0 -13
- package/node_modules/node-forge/lib/md.js +0 -11
- package/node_modules/node-forge/lib/md5.js +0 -289
- package/node_modules/node-forge/lib/mgf.js +0 -12
- package/node_modules/node-forge/lib/mgf1.js +0 -57
- package/node_modules/node-forge/lib/oids.js +0 -180
- package/node_modules/node-forge/lib/pbe.js +0 -1023
- package/node_modules/node-forge/lib/pbkdf2.js +0 -211
- package/node_modules/node-forge/lib/pem.js +0 -237
- package/node_modules/node-forge/lib/pkcs1.js +0 -276
- package/node_modules/node-forge/lib/pkcs12.js +0 -1078
- package/node_modules/node-forge/lib/pkcs7.js +0 -1260
- package/node_modules/node-forge/lib/pkcs7asn1.js +0 -410
- package/node_modules/node-forge/lib/pki.js +0 -102
- package/node_modules/node-forge/lib/prime.js +0 -297
- package/node_modules/node-forge/lib/prime.worker.js +0 -168
- package/node_modules/node-forge/lib/prng.js +0 -419
- package/node_modules/node-forge/lib/pss.js +0 -241
- package/node_modules/node-forge/lib/random.js +0 -191
- package/node_modules/node-forge/lib/rc2.js +0 -410
- package/node_modules/node-forge/lib/rsa.js +0 -1973
- package/node_modules/node-forge/lib/sha1.js +0 -319
- package/node_modules/node-forge/lib/sha256.js +0 -327
- package/node_modules/node-forge/lib/sha512.js +0 -561
- package/node_modules/node-forge/lib/socket.js +0 -287
- package/node_modules/node-forge/lib/ssh.js +0 -236
- package/node_modules/node-forge/lib/tls.js +0 -4282
- package/node_modules/node-forge/lib/tlssocket.js +0 -249
- package/node_modules/node-forge/lib/util.js +0 -2652
- package/node_modules/node-forge/lib/x509.js +0 -3251
- package/node_modules/node-forge/lib/xhr.js +0 -738
- package/node_modules/node-forge/package.json +0 -123
- package/node_modules/node-forge/tests/.eslintrc.js +0 -5
- package/node_modules/node-forge/tests/README.md +0 -4
- package/node_modules/node-forge/tests/benchmarks/aes-speed.js +0 -62
- package/node_modules/node-forge/tests/benchmarks/so-44303784.js +0 -246
- package/node_modules/node-forge/tests/flash/README.md +0 -7
- package/node_modules/node-forge/tests/flash/Test.as +0 -96
- package/node_modules/node-forge/tests/flash/build-flash.xml +0 -7
- package/node_modules/node-forge/tests/flash/index.html +0 -28
- package/node_modules/node-forge/tests/index.html +0 -33
- package/node_modules/node-forge/tests/issues/heartbleed.js +0 -55
- package/node_modules/node-forge/tests/issues/issue-428.html +0 -95
- package/node_modules/node-forge/tests/issues/issue-428.js +0 -375
- package/node_modules/node-forge/tests/karma/index.js +0 -8
- package/node_modules/node-forge/tests/karma/testWorker.js +0 -65
- package/node_modules/node-forge/tests/karma/web-worker-rsa.js +0 -55
- package/node_modules/node-forge/tests/legacy/common.html +0 -65
- package/node_modules/node-forge/tests/legacy/common.js +0 -2199
- package/node_modules/node-forge/tests/legacy/form.html +0 -148
- package/node_modules/node-forge/tests/legacy/form.js +0 -40
- package/node_modules/node-forge/tests/legacy/http.html +0 -235
- package/node_modules/node-forge/tests/legacy/index.html +0 -70
- package/node_modules/node-forge/tests/legacy/keygen.html +0 -113
- package/node_modules/node-forge/tests/legacy/login.css +0 -26
- package/node_modules/node-forge/tests/legacy/loginDemo.html +0 -32
- package/node_modules/node-forge/tests/legacy/loginDemo.js +0 -149
- package/node_modules/node-forge/tests/legacy/performance.html +0 -533
- package/node_modules/node-forge/tests/legacy/result.txt +0 -1
- package/node_modules/node-forge/tests/legacy/socketPool.html +0 -302
- package/node_modules/node-forge/tests/legacy/tasks.html +0 -54
- package/node_modules/node-forge/tests/legacy/tasks.js +0 -378
- package/node_modules/node-forge/tests/legacy/tls.html +0 -389
- package/node_modules/node-forge/tests/legacy/webid.html +0 -89
- package/node_modules/node-forge/tests/legacy/webid.js +0 -313
- package/node_modules/node-forge/tests/legacy/ws-webid.js +0 -120
- package/node_modules/node-forge/tests/legacy/xhr.html +0 -67
- package/node_modules/node-forge/tests/legacy/xhr.js +0 -590
- package/node_modules/node-forge/tests/pocs/ghsa-2328-f5f3-gj25.js +0 -85
- package/node_modules/node-forge/tests/pocs/ghsa-ppp5-5v6c-4jwp.js +0 -166
- package/node_modules/node-forge/tests/pocs/ghsa-q67f-28xg-22rw.js +0 -103
- package/node_modules/node-forge/tests/security/cve-2025-12816.js +0 -75
- package/node_modules/node-forge/tests/security/ghsa-554w-wpv2-vw27.js +0 -81
- package/node_modules/node-forge/tests/security/index.js +0 -3
- package/node_modules/node-forge/tests/server.crt +0 -26
- package/node_modules/node-forge/tests/server.js +0 -87
- package/node_modules/node-forge/tests/server.key +0 -27
- package/node_modules/node-forge/tests/support/task.js +0 -718
- package/node_modules/node-forge/tests/tests.css +0 -61
- package/node_modules/node-forge/tests/unit/aes.js +0 -1498
- package/node_modules/node-forge/tests/unit/asn1.js +0 -1337
- package/node_modules/node-forge/tests/unit/csr.js +0 -129
- package/node_modules/node-forge/tests/unit/des.js +0 -231
- package/node_modules/node-forge/tests/unit/ed25519.js +0 -395
- package/node_modules/node-forge/tests/unit/forge.js +0 -2
- package/node_modules/node-forge/tests/unit/hmac.js +0 -64
- package/node_modules/node-forge/tests/unit/index.html +0 -20
- package/node_modules/node-forge/tests/unit/index.js +0 -27
- package/node_modules/node-forge/tests/unit/jsbn.js +0 -40
- package/node_modules/node-forge/tests/unit/kem.js +0 -167
- package/node_modules/node-forge/tests/unit/md5.js +0 -114
- package/node_modules/node-forge/tests/unit/mgf1.js +0 -16
- package/node_modules/node-forge/tests/unit/pbkdf2.js +0 -182
- package/node_modules/node-forge/tests/unit/pem.js +0 -159
- package/node_modules/node-forge/tests/unit/pkcs1.js +0 -1077
- package/node_modules/node-forge/tests/unit/pkcs12.js +0 -739
- package/node_modules/node-forge/tests/unit/pkcs7.js +0 -792
- package/node_modules/node-forge/tests/unit/random.js +0 -48
- package/node_modules/node-forge/tests/unit/rc2.js +0 -88
- package/node_modules/node-forge/tests/unit/rsa.js +0 -1278
- package/node_modules/node-forge/tests/unit/sha1.js +0 -72
- package/node_modules/node-forge/tests/unit/sha256.js +0 -79
- package/node_modules/node-forge/tests/unit/sha512.js +0 -200
- package/node_modules/node-forge/tests/unit/ssh.js +0 -175
- package/node_modules/node-forge/tests/unit/tls.js +0 -175
- package/node_modules/node-forge/tests/unit/util.js +0 -595
- package/node_modules/node-forge/tests/unit/x509.js +0 -1986
- package/node_modules/node-forge/tests/websockets/server-webid.js +0 -495
- package/node_modules/node-forge/tests/websockets/server-ws.js +0 -158
- package/node_modules/node-forge/webpack-tests.config.js +0 -26
- package/node_modules/node-forge/webpack.config.js +0 -130
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -208
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -4
- package/node_modules/zod/index.d.ts +0 -4
- package/node_modules/zod/index.js +0 -4
- package/node_modules/zod/package.json +0 -118
- package/node_modules/zod/src/index.ts +0 -4
- package/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -257
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5136
- package/node_modules/zod/src/v4/classic/checks.ts +0 -30
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -66
- package/node_modules/zod/src/v4/classic/errors.ts +0 -75
- package/node_modules/zod/src/v4/classic/external.ts +0 -50
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/zod/src/v4/classic/parse.ts +0 -33
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1594
- package/node_modules/zod/src/v4/core/checks.ts +0 -1283
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/core.ts +0 -134
- package/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/zod/src/v4/core/errors.ts +0 -424
- package/node_modules/zod/src/v4/core/function.ts +0 -176
- package/node_modules/zod/src/v4/core/index.ts +0 -15
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -143
- package/node_modules/zod/src/v4/core/parse.ts +0 -94
- package/node_modules/zod/src/v4/core/regexes.ts +0 -135
- package/node_modules/zod/src/v4/core/registries.ts +0 -96
- package/node_modules/zod/src/v4/core/schemas.ts +0 -3842
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
- package/node_modules/zod/src/v4/core/util.ts +0 -775
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -125
- package/node_modules/zod/src/v4/locales/az.ts +0 -121
- package/node_modules/zod/src/v4/locales/be.ts +0 -184
- package/node_modules/zod/src/v4/locales/ca.ts +0 -127
- package/node_modules/zod/src/v4/locales/cs.ts +0 -142
- package/node_modules/zod/src/v4/locales/de.ts +0 -124
- package/node_modules/zod/src/v4/locales/en.ts +0 -127
- package/node_modules/zod/src/v4/locales/eo.ts +0 -125
- package/node_modules/zod/src/v4/locales/es.ts +0 -125
- package/node_modules/zod/src/v4/locales/fa.ts +0 -134
- package/node_modules/zod/src/v4/locales/fi.ts +0 -131
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
- package/node_modules/zod/src/v4/locales/fr.ts +0 -124
- package/node_modules/zod/src/v4/locales/he.ts +0 -125
- package/node_modules/zod/src/v4/locales/hu.ts +0 -126
- package/node_modules/zod/src/v4/locales/id.ts +0 -125
- package/node_modules/zod/src/v4/locales/index.ts +0 -39
- package/node_modules/zod/src/v4/locales/it.ts +0 -125
- package/node_modules/zod/src/v4/locales/ja.ts +0 -122
- package/node_modules/zod/src/v4/locales/kh.ts +0 -126
- package/node_modules/zod/src/v4/locales/ko.ts +0 -131
- package/node_modules/zod/src/v4/locales/mk.ts +0 -127
- package/node_modules/zod/src/v4/locales/ms.ts +0 -124
- package/node_modules/zod/src/v4/locales/nl.ts +0 -126
- package/node_modules/zod/src/v4/locales/no.ts +0 -124
- package/node_modules/zod/src/v4/locales/ota.ts +0 -125
- package/node_modules/zod/src/v4/locales/pl.ts +0 -126
- package/node_modules/zod/src/v4/locales/ps.ts +0 -133
- package/node_modules/zod/src/v4/locales/pt.ts +0 -123
- package/node_modules/zod/src/v4/locales/ru.ts +0 -184
- package/node_modules/zod/src/v4/locales/sl.ts +0 -126
- package/node_modules/zod/src/v4/locales/sv.ts +0 -127
- package/node_modules/zod/src/v4/locales/ta.ts +0 -125
- package/node_modules/zod/src/v4/locales/th.ts +0 -126
- package/node_modules/zod/src/v4/locales/tr.ts +0 -121
- package/node_modules/zod/src/v4/locales/ua.ts +0 -126
- package/node_modules/zod/src/v4/locales/ur.ts +0 -126
- package/node_modules/zod/src/v4/locales/vi.ts +0 -125
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
- package/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -22
- package/node_modules/zod/src/v4/mini/external.ts +0 -40
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -62
- package/node_modules/zod/src/v4/mini/parse.ts +0 -1
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
- package/node_modules/zod/src/v4-mini/index.ts +0 -1
- package/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -111
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3775
- package/node_modules/zod/v3/types.d.cts +0 -1031
- package/node_modules/zod/v3/types.d.ts +0 -1031
- package/node_modules/zod/v3/types.js +0 -3693
- package/node_modules/zod/v4/classic/checks.cjs +0 -32
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -57
- package/node_modules/zod/v4/classic/compat.d.cts +0 -46
- package/node_modules/zod/v4/classic/compat.d.ts +0 -46
- package/node_modules/zod/v4/classic/compat.js +0 -27
- package/node_modules/zod/v4/classic/errors.cjs +0 -67
- package/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/zod/v4/classic/errors.js +0 -41
- package/node_modules/zod/v4/classic/external.cjs +0 -70
- package/node_modules/zod/v4/classic/external.d.cts +0 -13
- package/node_modules/zod/v4/classic/external.d.ts +0 -13
- package/node_modules/zod/v4/classic/external.js +0 -18
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/zod/v4/classic/parse.cjs +0 -32
- package/node_modules/zod/v4/classic/parse.d.cts +0 -23
- package/node_modules/zod/v4/classic/parse.d.ts +0 -23
- package/node_modules/zod/v4/classic/parse.js +0 -6
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1109
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -630
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -630
- package/node_modules/zod/v4/classic/schemas.js +0 -1006
- package/node_modules/zod/v4/core/api.cjs +0 -1039
- package/node_modules/zod/v4/core/api.d.cts +0 -284
- package/node_modules/zod/v4/core/api.d.ts +0 -284
- package/node_modules/zod/v4/core/api.js +0 -906
- package/node_modules/zod/v4/core/checks.cjs +0 -591
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -565
- package/node_modules/zod/v4/core/core.cjs +0 -67
- package/node_modules/zod/v4/core/core.d.cts +0 -49
- package/node_modules/zod/v4/core/core.d.ts +0 -49
- package/node_modules/zod/v4/core/core.js +0 -61
- package/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/zod/v4/core/errors.cjs +0 -226
- package/node_modules/zod/v4/core/errors.d.cts +0 -208
- package/node_modules/zod/v4/core/errors.d.ts +0 -208
- package/node_modules/zod/v4/core/errors.js +0 -195
- package/node_modules/zod/v4/core/function.cjs +0 -102
- package/node_modules/zod/v4/core/function.d.cts +0 -52
- package/node_modules/zod/v4/core/function.d.ts +0 -52
- package/node_modules/zod/v4/core/function.js +0 -75
- package/node_modules/zod/v4/core/index.cjs +0 -44
- package/node_modules/zod/v4/core/index.d.cts +0 -15
- package/node_modules/zod/v4/core/index.d.ts +0 -15
- package/node_modules/zod/v4/core/index.js +0 -15
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -87
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -87
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/parse.cjs +0 -87
- package/node_modules/zod/v4/core/parse.d.cts +0 -25
- package/node_modules/zod/v4/core/parse.d.ts +0 -25
- package/node_modules/zod/v4/core/parse.js +0 -57
- package/node_modules/zod/v4/core/regexes.cjs +0 -103
- package/node_modules/zod/v4/core/regexes.d.cts +0 -62
- package/node_modules/zod/v4/core/regexes.d.ts +0 -62
- package/node_modules/zod/v4/core/regexes.js +0 -95
- package/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -1748
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1041
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1041
- package/node_modules/zod/v4/core/schemas.js +0 -1717
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
- package/node_modules/zod/v4/core/to-json-schema.js +0 -849
- package/node_modules/zod/v4/core/util.cjs +0 -539
- package/node_modules/zod/v4/core/util.d.cts +0 -183
- package/node_modules/zod/v4/core/util.d.ts +0 -183
- package/node_modules/zod/v4/core/util.js +0 -493
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -3
- package/node_modules/zod/v4/locales/ar.cjs +0 -142
- package/node_modules/zod/v4/locales/ar.d.cts +0 -4
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -116
- package/node_modules/zod/v4/locales/az.cjs +0 -141
- package/node_modules/zod/v4/locales/az.d.cts +0 -4
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -115
- package/node_modules/zod/v4/locales/be.cjs +0 -190
- package/node_modules/zod/v4/locales/be.d.cts +0 -4
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -164
- package/node_modules/zod/v4/locales/ca.cjs +0 -144
- package/node_modules/zod/v4/locales/ca.d.cts +0 -4
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -118
- package/node_modules/zod/v4/locales/cs.cjs +0 -161
- package/node_modules/zod/v4/locales/cs.d.cts +0 -4
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -135
- package/node_modules/zod/v4/locales/de.cjs +0 -142
- package/node_modules/zod/v4/locales/de.d.cts +0 -4
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -116
- package/node_modules/zod/v4/locales/en.cjs +0 -145
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -5
- package/node_modules/zod/v4/locales/en.js +0 -117
- package/node_modules/zod/v4/locales/eo.cjs +0 -144
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -5
- package/node_modules/zod/v4/locales/eo.js +0 -116
- package/node_modules/zod/v4/locales/es.cjs +0 -143
- package/node_modules/zod/v4/locales/es.d.cts +0 -4
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -117
- package/node_modules/zod/v4/locales/fa.cjs +0 -148
- package/node_modules/zod/v4/locales/fa.d.cts +0 -4
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -122
- package/node_modules/zod/v4/locales/fi.cjs +0 -148
- package/node_modules/zod/v4/locales/fi.d.cts +0 -4
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -122
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -117
- package/node_modules/zod/v4/locales/fr.cjs +0 -142
- package/node_modules/zod/v4/locales/fr.d.cts +0 -4
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -116
- package/node_modules/zod/v4/locales/he.cjs +0 -143
- package/node_modules/zod/v4/locales/he.d.cts +0 -4
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -117
- package/node_modules/zod/v4/locales/hu.cjs +0 -143
- package/node_modules/zod/v4/locales/hu.d.cts +0 -4
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -117
- package/node_modules/zod/v4/locales/id.cjs +0 -142
- package/node_modules/zod/v4/locales/id.d.cts +0 -4
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -116
- package/node_modules/zod/v4/locales/index.cjs +0 -84
- package/node_modules/zod/v4/locales/index.d.cts +0 -39
- package/node_modules/zod/v4/locales/index.d.ts +0 -39
- package/node_modules/zod/v4/locales/index.js +0 -39
- package/node_modules/zod/v4/locales/it.cjs +0 -143
- package/node_modules/zod/v4/locales/it.d.cts +0 -4
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -117
- package/node_modules/zod/v4/locales/ja.cjs +0 -141
- package/node_modules/zod/v4/locales/ja.d.cts +0 -4
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -115
- package/node_modules/zod/v4/locales/kh.cjs +0 -143
- package/node_modules/zod/v4/locales/kh.d.cts +0 -4
- package/node_modules/zod/v4/locales/kh.d.ts +0 -4
- package/node_modules/zod/v4/locales/kh.js +0 -117
- package/node_modules/zod/v4/locales/ko.cjs +0 -147
- package/node_modules/zod/v4/locales/ko.d.cts +0 -4
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -121
- package/node_modules/zod/v4/locales/mk.cjs +0 -144
- package/node_modules/zod/v4/locales/mk.d.cts +0 -4
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -118
- package/node_modules/zod/v4/locales/ms.cjs +0 -142
- package/node_modules/zod/v4/locales/ms.d.cts +0 -4
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -116
- package/node_modules/zod/v4/locales/nl.cjs +0 -143
- package/node_modules/zod/v4/locales/nl.d.cts +0 -4
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -117
- package/node_modules/zod/v4/locales/no.cjs +0 -142
- package/node_modules/zod/v4/locales/no.d.cts +0 -4
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -116
- package/node_modules/zod/v4/locales/ota.cjs +0 -143
- package/node_modules/zod/v4/locales/ota.d.cts +0 -4
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -117
- package/node_modules/zod/v4/locales/pl.cjs +0 -143
- package/node_modules/zod/v4/locales/pl.d.cts +0 -4
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -117
- package/node_modules/zod/v4/locales/ps.cjs +0 -148
- package/node_modules/zod/v4/locales/ps.d.cts +0 -4
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -122
- package/node_modules/zod/v4/locales/pt.cjs +0 -142
- package/node_modules/zod/v4/locales/pt.d.cts +0 -4
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -116
- package/node_modules/zod/v4/locales/ru.cjs +0 -190
- package/node_modules/zod/v4/locales/ru.d.cts +0 -4
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -164
- package/node_modules/zod/v4/locales/sl.cjs +0 -143
- package/node_modules/zod/v4/locales/sl.d.cts +0 -4
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -117
- package/node_modules/zod/v4/locales/sv.cjs +0 -144
- package/node_modules/zod/v4/locales/sv.d.cts +0 -4
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -118
- package/node_modules/zod/v4/locales/ta.cjs +0 -143
- package/node_modules/zod/v4/locales/ta.d.cts +0 -4
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -117
- package/node_modules/zod/v4/locales/th.cjs +0 -143
- package/node_modules/zod/v4/locales/th.d.cts +0 -4
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -117
- package/node_modules/zod/v4/locales/tr.cjs +0 -143
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -5
- package/node_modules/zod/v4/locales/tr.js +0 -115
- package/node_modules/zod/v4/locales/ua.cjs +0 -143
- package/node_modules/zod/v4/locales/ua.d.cts +0 -4
- package/node_modules/zod/v4/locales/ua.d.ts +0 -4
- package/node_modules/zod/v4/locales/ua.js +0 -117
- package/node_modules/zod/v4/locales/ur.cjs +0 -143
- package/node_modules/zod/v4/locales/ur.d.cts +0 -4
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -117
- package/node_modules/zod/v4/locales/vi.cjs +0 -142
- package/node_modules/zod/v4/locales/vi.d.cts +0 -4
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -116
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -116
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -117
- package/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -47
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -17
- package/node_modules/zod/v4/mini/external.cjs +0 -62
- package/node_modules/zod/v4/mini/external.d.cts +0 -11
- package/node_modules/zod/v4/mini/external.d.ts +0 -11
- package/node_modules/zod/v4/mini/external.js +0 -13
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -60
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -30
- package/node_modules/zod/v4/mini/parse.cjs +0 -8
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -839
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -356
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -356
- package/node_modules/zod/v4/mini/schemas.js +0 -732
- package/node_modules/zod/v4-mini/index.cjs +0 -17
- package/node_modules/zod/v4-mini/index.d.cts +0 -1
- package/node_modules/zod/v4-mini/index.d.ts +0 -1
- package/node_modules/zod/v4-mini/index.js +0 -1
|
@@ -1,754 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2009-2010 Digital Bazaar, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* @author Dave Longley
|
|
5
|
-
*/
|
|
6
|
-
package
|
|
7
|
-
{
|
|
8
|
-
import flash.display.Sprite;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A SocketPool is a flash object that can be embedded in a web page to
|
|
12
|
-
* allow javascript access to pools of Sockets.
|
|
13
|
-
*
|
|
14
|
-
* Javascript can create a pool and then as many Sockets as it desires. Each
|
|
15
|
-
* Socket will be assigned a unique ID that allows continued javascript
|
|
16
|
-
* access to it. There is no limit on the number of persistent socket
|
|
17
|
-
* connections.
|
|
18
|
-
*/
|
|
19
|
-
public class SocketPool extends Sprite
|
|
20
|
-
{
|
|
21
|
-
import flash.events.Event;
|
|
22
|
-
import flash.events.EventDispatcher;
|
|
23
|
-
import flash.errors.IOError;
|
|
24
|
-
import flash.events.IOErrorEvent;
|
|
25
|
-
import flash.events.ProgressEvent;
|
|
26
|
-
import flash.events.SecurityErrorEvent;
|
|
27
|
-
import flash.events.TextEvent;
|
|
28
|
-
import flash.external.ExternalInterface;
|
|
29
|
-
import flash.net.SharedObject;
|
|
30
|
-
import flash.system.Security;
|
|
31
|
-
import flash.utils.ByteArray;
|
|
32
|
-
import mx.utils.Base64Decoder;
|
|
33
|
-
import mx.utils.Base64Encoder;
|
|
34
|
-
|
|
35
|
-
// a map of ID to Socket
|
|
36
|
-
private var mSocketMap:Object;
|
|
37
|
-
|
|
38
|
-
// a counter for Socket IDs (Note: assumes there will be no overflow)
|
|
39
|
-
private var mNextId:uint;
|
|
40
|
-
|
|
41
|
-
// an event dispatcher for sending events to javascript
|
|
42
|
-
private var mEventDispatcher:EventDispatcher;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Creates a new, uninitialized SocketPool.
|
|
46
|
-
*
|
|
47
|
-
* @throws Error - if no external interface is available to provide
|
|
48
|
-
* javascript access.
|
|
49
|
-
*/
|
|
50
|
-
public function SocketPool()
|
|
51
|
-
{
|
|
52
|
-
if(!ExternalInterface.available)
|
|
53
|
-
{
|
|
54
|
-
trace("ExternalInterface is not available");
|
|
55
|
-
throw new Error(
|
|
56
|
-
"Flash's ExternalInterface is not available. This is a " +
|
|
57
|
-
"requirement of SocketPool and therefore, it will be " +
|
|
58
|
-
"unavailable.");
|
|
59
|
-
}
|
|
60
|
-
else
|
|
61
|
-
{
|
|
62
|
-
try
|
|
63
|
-
{
|
|
64
|
-
// set up javascript access:
|
|
65
|
-
|
|
66
|
-
// initializes/cleans up the SocketPool
|
|
67
|
-
ExternalInterface.addCallback("init", init);
|
|
68
|
-
ExternalInterface.addCallback("cleanup", cleanup);
|
|
69
|
-
|
|
70
|
-
// creates/destroys a socket
|
|
71
|
-
ExternalInterface.addCallback("create", create);
|
|
72
|
-
ExternalInterface.addCallback("destroy", destroy);
|
|
73
|
-
|
|
74
|
-
// connects/closes a socket
|
|
75
|
-
ExternalInterface.addCallback("connect", connect);
|
|
76
|
-
ExternalInterface.addCallback("close", close);
|
|
77
|
-
|
|
78
|
-
// checks for a connection
|
|
79
|
-
ExternalInterface.addCallback("isConnected", isConnected);
|
|
80
|
-
|
|
81
|
-
// sends/receives data over the socket
|
|
82
|
-
ExternalInterface.addCallback("send", send);
|
|
83
|
-
ExternalInterface.addCallback("receive", receive);
|
|
84
|
-
|
|
85
|
-
// gets the number of bytes available on a socket
|
|
86
|
-
ExternalInterface.addCallback(
|
|
87
|
-
"getBytesAvailable", getBytesAvailable);
|
|
88
|
-
|
|
89
|
-
// add a callback for subscribing to socket events
|
|
90
|
-
ExternalInterface.addCallback("subscribe", subscribe);
|
|
91
|
-
|
|
92
|
-
// add callbacks for deflate/inflate
|
|
93
|
-
ExternalInterface.addCallback("deflate", deflate);
|
|
94
|
-
ExternalInterface.addCallback("inflate", inflate);
|
|
95
|
-
|
|
96
|
-
// add callbacks for local disk storage
|
|
97
|
-
ExternalInterface.addCallback("setItem", setItem);
|
|
98
|
-
ExternalInterface.addCallback("getItem", getItem);
|
|
99
|
-
ExternalInterface.addCallback("removeItem", removeItem);
|
|
100
|
-
ExternalInterface.addCallback("clearItems", clearItems);
|
|
101
|
-
|
|
102
|
-
// socket pool is now ready
|
|
103
|
-
ExternalInterface.call("window.forge.socketPool.ready");
|
|
104
|
-
}
|
|
105
|
-
catch(e:Error)
|
|
106
|
-
{
|
|
107
|
-
log("error=" + e.errorID + "," + e.name + "," + e.message);
|
|
108
|
-
throw e;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
log("ready");
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* A debug logging function.
|
|
117
|
-
*
|
|
118
|
-
* @param obj the string or error to log.
|
|
119
|
-
*/
|
|
120
|
-
CONFIG::debugging
|
|
121
|
-
private function log(obj:Object):void
|
|
122
|
-
{
|
|
123
|
-
if(obj is String)
|
|
124
|
-
{
|
|
125
|
-
var str:String = obj as String;
|
|
126
|
-
ExternalInterface.call("console.log", "SocketPool", str);
|
|
127
|
-
}
|
|
128
|
-
else if(obj is Error)
|
|
129
|
-
{
|
|
130
|
-
var e:Error = obj as Error;
|
|
131
|
-
log("error=" + e.errorID + "," + e.name + "," + e.message);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
CONFIG::release
|
|
136
|
-
private function log(obj:Object):void
|
|
137
|
-
{
|
|
138
|
-
// log nothing in release mode
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Called by javascript to initialize this SocketPool.
|
|
143
|
-
*
|
|
144
|
-
* @param options:
|
|
145
|
-
* marshallExceptions: true to pass exceptions to and from
|
|
146
|
-
* javascript.
|
|
147
|
-
*/
|
|
148
|
-
private function init(... args):void
|
|
149
|
-
{
|
|
150
|
-
log("init()");
|
|
151
|
-
|
|
152
|
-
// get options from first argument
|
|
153
|
-
var options:Object = args.length > 0 ? args[0] : null;
|
|
154
|
-
|
|
155
|
-
// create socket map, set next ID, and create event dispatcher
|
|
156
|
-
mSocketMap = new Object();
|
|
157
|
-
mNextId = 1;
|
|
158
|
-
mEventDispatcher = new EventDispatcher();
|
|
159
|
-
|
|
160
|
-
// enable marshalling exceptions if appropriate
|
|
161
|
-
if(options != null &&
|
|
162
|
-
"marshallExceptions" in options &&
|
|
163
|
-
options.marshallExceptions === true)
|
|
164
|
-
{
|
|
165
|
-
try
|
|
166
|
-
{
|
|
167
|
-
// Note: setting marshallExceptions in IE, even inside of a
|
|
168
|
-
// try-catch block will terminate flash. Don't set this on IE.
|
|
169
|
-
ExternalInterface.marshallExceptions = true;
|
|
170
|
-
}
|
|
171
|
-
catch(e:Error)
|
|
172
|
-
{
|
|
173
|
-
log(e);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
log("init() done");
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Called by javascript to clean up a SocketPool.
|
|
182
|
-
*/
|
|
183
|
-
private function cleanup():void
|
|
184
|
-
{
|
|
185
|
-
log("cleanup()");
|
|
186
|
-
|
|
187
|
-
mSocketMap = null;
|
|
188
|
-
mNextId = 1;
|
|
189
|
-
mEventDispatcher = null;
|
|
190
|
-
|
|
191
|
-
log("cleanup() done");
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Handles events.
|
|
196
|
-
*
|
|
197
|
-
* @param e the event to handle.
|
|
198
|
-
*/
|
|
199
|
-
private function handleEvent(e:Event):void
|
|
200
|
-
{
|
|
201
|
-
// dispatch socket event
|
|
202
|
-
var message:String = (e is TextEvent) ? (e as TextEvent).text : null;
|
|
203
|
-
mEventDispatcher.dispatchEvent(
|
|
204
|
-
new SocketEvent(e.type, e.target as PooledSocket, message));
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Called by javascript to create a Socket.
|
|
209
|
-
*
|
|
210
|
-
* @return the Socket ID.
|
|
211
|
-
*/
|
|
212
|
-
private function create():String
|
|
213
|
-
{
|
|
214
|
-
log("create()");
|
|
215
|
-
|
|
216
|
-
// create a Socket
|
|
217
|
-
var id:String = "" + mNextId++;
|
|
218
|
-
var s:PooledSocket = new PooledSocket();
|
|
219
|
-
s.id = id;
|
|
220
|
-
s.addEventListener(Event.CONNECT, handleEvent);
|
|
221
|
-
s.addEventListener(Event.CLOSE, handleEvent);
|
|
222
|
-
s.addEventListener(ProgressEvent.SOCKET_DATA, handleEvent);
|
|
223
|
-
s.addEventListener(IOErrorEvent.IO_ERROR, handleEvent);
|
|
224
|
-
s.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleEvent);
|
|
225
|
-
mSocketMap[id] = s;
|
|
226
|
-
|
|
227
|
-
log("socket " + id + " created");
|
|
228
|
-
log("create() done");
|
|
229
|
-
|
|
230
|
-
return id;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Called by javascript to clean up a Socket.
|
|
235
|
-
*
|
|
236
|
-
* @param id the ID of the Socket to clean up.
|
|
237
|
-
*/
|
|
238
|
-
private function destroy(id:String):void
|
|
239
|
-
{
|
|
240
|
-
log("destroy(" + id + ")");
|
|
241
|
-
|
|
242
|
-
if(id in mSocketMap)
|
|
243
|
-
{
|
|
244
|
-
// remove Socket
|
|
245
|
-
delete mSocketMap[id];
|
|
246
|
-
log("socket " + id + " destroyed");
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
log("destroy(" + id + ") done");
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Connects the Socket with the given ID to the given host and port,
|
|
254
|
-
* using the given socket policy port.
|
|
255
|
-
*
|
|
256
|
-
* @param id the ID of the Socket.
|
|
257
|
-
* @param host the host to connect to.
|
|
258
|
-
* @param port the port to connect to.
|
|
259
|
-
* @param spPort the security policy port to use, 0 to use a url.
|
|
260
|
-
* @param spUrl the http URL to the policy file to use, null for default.
|
|
261
|
-
*/
|
|
262
|
-
private function connect(
|
|
263
|
-
id:String, host:String, port:uint, spPort:uint,
|
|
264
|
-
spUrl:String = null):void
|
|
265
|
-
{
|
|
266
|
-
log("connect(" +
|
|
267
|
-
id + "," + host + "," + port + "," + spPort + "," + spUrl + ")");
|
|
268
|
-
|
|
269
|
-
if(id in mSocketMap)
|
|
270
|
-
{
|
|
271
|
-
// get the Socket
|
|
272
|
-
var s:PooledSocket = mSocketMap[id];
|
|
273
|
-
|
|
274
|
-
// load socket policy file
|
|
275
|
-
// (permits socket access to backend)
|
|
276
|
-
if(spPort !== 0)
|
|
277
|
-
{
|
|
278
|
-
spUrl = "xmlsocket://" + host + ":" + spPort;
|
|
279
|
-
log("using cross-domain url: " + spUrl);
|
|
280
|
-
Security.loadPolicyFile(spUrl);
|
|
281
|
-
}
|
|
282
|
-
else if(spUrl !== null && typeof(spUrl) !== undefined)
|
|
283
|
-
{
|
|
284
|
-
log("using cross-domain url: " + spUrl);
|
|
285
|
-
Security.loadPolicyFile(spUrl);
|
|
286
|
-
}
|
|
287
|
-
else
|
|
288
|
-
{
|
|
289
|
-
log("not loading any cross-domain url");
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
// connect
|
|
293
|
-
s.connect(host, port);
|
|
294
|
-
}
|
|
295
|
-
else
|
|
296
|
-
{
|
|
297
|
-
// no such socket
|
|
298
|
-
log("socket " + id + " does not exist");
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
log("connect(" + id + ") done");
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Closes the Socket with the given ID.
|
|
306
|
-
*
|
|
307
|
-
* @param id the ID of the Socket.
|
|
308
|
-
*/
|
|
309
|
-
private function close(id:String):void
|
|
310
|
-
{
|
|
311
|
-
log("close(" + id + ")");
|
|
312
|
-
|
|
313
|
-
if(id in mSocketMap)
|
|
314
|
-
{
|
|
315
|
-
// close the Socket
|
|
316
|
-
var s:PooledSocket = mSocketMap[id];
|
|
317
|
-
if(s.connected)
|
|
318
|
-
{
|
|
319
|
-
s.close();
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
else
|
|
323
|
-
{
|
|
324
|
-
// no such socket
|
|
325
|
-
log("socket " + id + " does not exist");
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
log("close(" + id + ") done");
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Determines if the Socket with the given ID is connected or not.
|
|
333
|
-
*
|
|
334
|
-
* @param id the ID of the Socket.
|
|
335
|
-
*
|
|
336
|
-
* @return true if the socket is connected, false if not.
|
|
337
|
-
*/
|
|
338
|
-
private function isConnected(id:String):Boolean
|
|
339
|
-
{
|
|
340
|
-
var rval:Boolean = false;
|
|
341
|
-
log("isConnected(" + id + ")");
|
|
342
|
-
|
|
343
|
-
if(id in mSocketMap)
|
|
344
|
-
{
|
|
345
|
-
// check the Socket
|
|
346
|
-
var s:PooledSocket = mSocketMap[id];
|
|
347
|
-
rval = s.connected;
|
|
348
|
-
}
|
|
349
|
-
else
|
|
350
|
-
{
|
|
351
|
-
// no such socket
|
|
352
|
-
log("socket " + id + " does not exist");
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
log("isConnected(" + id + ") done");
|
|
356
|
-
return rval;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Writes bytes to a Socket.
|
|
361
|
-
*
|
|
362
|
-
* @param id the ID of the Socket.
|
|
363
|
-
* @param bytes the string of base64-encoded bytes to write.
|
|
364
|
-
*
|
|
365
|
-
* @return true on success, false on failure.
|
|
366
|
-
*/
|
|
367
|
-
private function send(id:String, bytes:String):Boolean
|
|
368
|
-
{
|
|
369
|
-
var rval:Boolean = false;
|
|
370
|
-
log("send(" + id + ")");
|
|
371
|
-
|
|
372
|
-
if(id in mSocketMap)
|
|
373
|
-
{
|
|
374
|
-
// write bytes to socket
|
|
375
|
-
var s:PooledSocket = mSocketMap[id];
|
|
376
|
-
try
|
|
377
|
-
{
|
|
378
|
-
var b64:Base64Decoder = new Base64Decoder();
|
|
379
|
-
b64.decode(bytes);
|
|
380
|
-
var b:ByteArray = b64.toByteArray();
|
|
381
|
-
s.writeBytes(b, 0, b.length);
|
|
382
|
-
s.flush();
|
|
383
|
-
rval = true;
|
|
384
|
-
}
|
|
385
|
-
catch(e:IOError)
|
|
386
|
-
{
|
|
387
|
-
log(e);
|
|
388
|
-
|
|
389
|
-
// dispatch IO error event
|
|
390
|
-
mEventDispatcher.dispatchEvent(new SocketEvent(
|
|
391
|
-
IOErrorEvent.IO_ERROR, s, e.message));
|
|
392
|
-
if(s.connected)
|
|
393
|
-
{
|
|
394
|
-
s.close();
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
else
|
|
399
|
-
{
|
|
400
|
-
// no such socket
|
|
401
|
-
log("socket " + id + " does not exist");
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
log("send(" + id + ") done");
|
|
405
|
-
return rval;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Receives bytes from a Socket.
|
|
410
|
-
*
|
|
411
|
-
* @param id the ID of the Socket.
|
|
412
|
-
* @param count the maximum number of bytes to receive.
|
|
413
|
-
*
|
|
414
|
-
* @return an object with 'rval' set to the received bytes,
|
|
415
|
-
* base64-encoded, or set to null on error.
|
|
416
|
-
*/
|
|
417
|
-
private function receive(id:String, count:uint):Object
|
|
418
|
-
{
|
|
419
|
-
var rval:String = null;
|
|
420
|
-
log("receive(" + id + "," + count + ")");
|
|
421
|
-
|
|
422
|
-
if(id in mSocketMap)
|
|
423
|
-
{
|
|
424
|
-
// only read what is available
|
|
425
|
-
var s:PooledSocket = mSocketMap[id];
|
|
426
|
-
if(count > s.bytesAvailable)
|
|
427
|
-
{
|
|
428
|
-
count = s.bytesAvailable;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
try
|
|
432
|
-
{
|
|
433
|
-
// read bytes from socket
|
|
434
|
-
var b:ByteArray = new ByteArray();
|
|
435
|
-
s.readBytes(b, 0, count);
|
|
436
|
-
b.position = 0;
|
|
437
|
-
var b64:Base64Encoder = new Base64Encoder();
|
|
438
|
-
b64.insertNewLines = false;
|
|
439
|
-
b64.encodeBytes(b, 0, b.length);
|
|
440
|
-
rval = b64.toString();
|
|
441
|
-
}
|
|
442
|
-
catch(e:IOError)
|
|
443
|
-
{
|
|
444
|
-
log(e);
|
|
445
|
-
|
|
446
|
-
// dispatch IO error event
|
|
447
|
-
mEventDispatcher.dispatchEvent(new SocketEvent(
|
|
448
|
-
IOErrorEvent.IO_ERROR, s, e.message));
|
|
449
|
-
if(s.connected)
|
|
450
|
-
{
|
|
451
|
-
s.close();
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
else
|
|
456
|
-
{
|
|
457
|
-
// no such socket
|
|
458
|
-
log("socket " + id + " does not exist");
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
log("receive(" + id + "," + count + ") done");
|
|
462
|
-
return {rval: rval};
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* Gets the number of bytes available from a Socket.
|
|
467
|
-
*
|
|
468
|
-
* @param id the ID of the Socket.
|
|
469
|
-
*
|
|
470
|
-
* @return the number of available bytes.
|
|
471
|
-
*/
|
|
472
|
-
private function getBytesAvailable(id:String):uint
|
|
473
|
-
{
|
|
474
|
-
var rval:uint = 0;
|
|
475
|
-
log("getBytesAvailable(" + id + ")");
|
|
476
|
-
|
|
477
|
-
if(id in mSocketMap)
|
|
478
|
-
{
|
|
479
|
-
var s:PooledSocket = mSocketMap[id];
|
|
480
|
-
rval = s.bytesAvailable;
|
|
481
|
-
}
|
|
482
|
-
else
|
|
483
|
-
{
|
|
484
|
-
// no such socket
|
|
485
|
-
log("socket " + id + " does not exist");
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
log("getBytesAvailable(" + id +") done");
|
|
489
|
-
return rval;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* Registers a javascript function as a callback for an event.
|
|
494
|
-
*
|
|
495
|
-
* @param eventType the type of event (socket event types).
|
|
496
|
-
* @param callback the name of the callback function.
|
|
497
|
-
*/
|
|
498
|
-
private function subscribe(eventType:String, callback:String):void
|
|
499
|
-
{
|
|
500
|
-
log("subscribe(" + eventType + "," + callback + ")");
|
|
501
|
-
|
|
502
|
-
switch(eventType)
|
|
503
|
-
{
|
|
504
|
-
case Event.CONNECT:
|
|
505
|
-
case Event.CLOSE:
|
|
506
|
-
case IOErrorEvent.IO_ERROR:
|
|
507
|
-
case SecurityErrorEvent.SECURITY_ERROR:
|
|
508
|
-
case ProgressEvent.SOCKET_DATA:
|
|
509
|
-
{
|
|
510
|
-
log(eventType + " => " + callback);
|
|
511
|
-
mEventDispatcher.addEventListener(
|
|
512
|
-
eventType, function(event:SocketEvent):void
|
|
513
|
-
{
|
|
514
|
-
log("event dispatched: " + eventType);
|
|
515
|
-
|
|
516
|
-
// build event for javascript
|
|
517
|
-
var e:Object = new Object();
|
|
518
|
-
e.id = event.socket ? event.socket.id : 0;
|
|
519
|
-
e.type = eventType;
|
|
520
|
-
if(event.socket && event.socket.connected)
|
|
521
|
-
{
|
|
522
|
-
e.bytesAvailable = event.socket.bytesAvailable;
|
|
523
|
-
}
|
|
524
|
-
else
|
|
525
|
-
{
|
|
526
|
-
e.bytesAvailable = 0;
|
|
527
|
-
}
|
|
528
|
-
if(event.message)
|
|
529
|
-
{
|
|
530
|
-
e.message = event.message;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
// send event to javascript
|
|
534
|
-
ExternalInterface.call(callback, e);
|
|
535
|
-
});
|
|
536
|
-
break;
|
|
537
|
-
}
|
|
538
|
-
default:
|
|
539
|
-
throw new ArgumentError(
|
|
540
|
-
"Could not subscribe to event. " +
|
|
541
|
-
"Invalid event type specified: " + eventType);
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
log("subscribe(" + eventType + "," + callback + ") done");
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Deflates the given data.
|
|
549
|
-
*
|
|
550
|
-
* @param data the base64-encoded data to deflate.
|
|
551
|
-
*
|
|
552
|
-
* @return an object with 'rval' set to deflated data, base64-encoded.
|
|
553
|
-
*/
|
|
554
|
-
private function deflate(data:String):Object
|
|
555
|
-
{
|
|
556
|
-
log("deflate");
|
|
557
|
-
|
|
558
|
-
var b64d:Base64Decoder = new Base64Decoder();
|
|
559
|
-
b64d.decode(data);
|
|
560
|
-
var b:ByteArray = b64d.toByteArray();
|
|
561
|
-
b.compress();
|
|
562
|
-
b.position = 0;
|
|
563
|
-
var b64e:Base64Encoder = new Base64Encoder();
|
|
564
|
-
b64e.insertNewLines = false;
|
|
565
|
-
b64e.encodeBytes(b, 0, b.length);
|
|
566
|
-
|
|
567
|
-
log("deflate done");
|
|
568
|
-
return {rval: b64e.toString()};
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* Inflates the given data.
|
|
573
|
-
*
|
|
574
|
-
* @param data the base64-encoded data to inflate.
|
|
575
|
-
*
|
|
576
|
-
* @return an object with 'rval' set to the inflated data,
|
|
577
|
-
* base64-encoded, null on error.
|
|
578
|
-
*/
|
|
579
|
-
private function inflate(data:String):Object
|
|
580
|
-
{
|
|
581
|
-
log("inflate");
|
|
582
|
-
var rval:Object = {rval: null};
|
|
583
|
-
|
|
584
|
-
try
|
|
585
|
-
{
|
|
586
|
-
var b64d:Base64Decoder = new Base64Decoder();
|
|
587
|
-
b64d.decode(data);
|
|
588
|
-
var b:ByteArray = b64d.toByteArray();
|
|
589
|
-
b.uncompress();
|
|
590
|
-
b.position = 0;
|
|
591
|
-
var b64e:Base64Encoder = new Base64Encoder();
|
|
592
|
-
b64e.insertNewLines = false;
|
|
593
|
-
b64e.encodeBytes(b, 0, b.length);
|
|
594
|
-
rval.rval = b64e.toString();
|
|
595
|
-
}
|
|
596
|
-
catch(e:Error)
|
|
597
|
-
{
|
|
598
|
-
log(e);
|
|
599
|
-
rval.error = {
|
|
600
|
-
id: e.errorID,
|
|
601
|
-
name: e.name,
|
|
602
|
-
message: e.message
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
log("inflate done");
|
|
607
|
-
return rval;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* Stores an item with a key and arbitrary base64-encoded data on local
|
|
612
|
-
* disk.
|
|
613
|
-
*
|
|
614
|
-
* @param key the key for the item.
|
|
615
|
-
* @param data the base64-encoded item data.
|
|
616
|
-
* @param storeId the storage ID to use, defaults to "forge.storage".
|
|
617
|
-
*
|
|
618
|
-
* @return an object with rval set to true on success, false on failure
|
|
619
|
-
* with error included.
|
|
620
|
-
*/
|
|
621
|
-
private function setItem(
|
|
622
|
-
key:String, data:String, storeId:String = "forge.storage"):Object
|
|
623
|
-
{
|
|
624
|
-
var rval:Object = {rval: false};
|
|
625
|
-
try
|
|
626
|
-
{
|
|
627
|
-
var store:SharedObject = SharedObject.getLocal(storeId);
|
|
628
|
-
if(!('keys' in store.data))
|
|
629
|
-
{
|
|
630
|
-
store.data.keys = {};
|
|
631
|
-
}
|
|
632
|
-
store.data.keys[key] = data;
|
|
633
|
-
store.flush();
|
|
634
|
-
rval.rval = true;
|
|
635
|
-
}
|
|
636
|
-
catch(e:Error)
|
|
637
|
-
{
|
|
638
|
-
log(e);
|
|
639
|
-
rval.error = {
|
|
640
|
-
id: e.errorID,
|
|
641
|
-
name: e.name,
|
|
642
|
-
message: e.message
|
|
643
|
-
};
|
|
644
|
-
}
|
|
645
|
-
return rval;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* Gets an item from the local disk.
|
|
650
|
-
*
|
|
651
|
-
* @param key the key for the item.
|
|
652
|
-
* @param storeId the storage ID to use, defaults to "forge.storage".
|
|
653
|
-
*
|
|
654
|
-
* @return an object with rval set to the item data (which may be null),
|
|
655
|
-
* check for error object if null.
|
|
656
|
-
*/
|
|
657
|
-
private function getItem(
|
|
658
|
-
key:String, storeId:String = "forge.storage"):Object
|
|
659
|
-
{
|
|
660
|
-
var rval:Object = {rval: null};
|
|
661
|
-
try
|
|
662
|
-
{
|
|
663
|
-
var store:SharedObject = SharedObject.getLocal(storeId);
|
|
664
|
-
if('keys' in store.data && key in store.data.keys)
|
|
665
|
-
{
|
|
666
|
-
rval.rval = store.data.keys[key];
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
catch(e:Error)
|
|
670
|
-
{
|
|
671
|
-
log(e);
|
|
672
|
-
rval.error = {
|
|
673
|
-
id: e.errorID,
|
|
674
|
-
name: e.name,
|
|
675
|
-
message: e.message
|
|
676
|
-
};
|
|
677
|
-
}
|
|
678
|
-
return rval;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
/**
|
|
682
|
-
* Removes an item from the local disk.
|
|
683
|
-
*
|
|
684
|
-
* @param key the key for the item.
|
|
685
|
-
* @param storeId the storage ID to use, defaults to "forge.storage".
|
|
686
|
-
*
|
|
687
|
-
* @return an object with rval set to true if removed, false if not.
|
|
688
|
-
*/
|
|
689
|
-
private function removeItem(
|
|
690
|
-
key:String, storeId:String = "forge.storage"):Object
|
|
691
|
-
{
|
|
692
|
-
var rval:Object = {rval: false};
|
|
693
|
-
try
|
|
694
|
-
{
|
|
695
|
-
var store:SharedObject = SharedObject.getLocal(storeId);
|
|
696
|
-
if('keys' in store.data && key in store.data.keys)
|
|
697
|
-
{
|
|
698
|
-
delete store.data.keys[key];
|
|
699
|
-
|
|
700
|
-
// clean up storage entirely if empty
|
|
701
|
-
var empty:Boolean = true;
|
|
702
|
-
for(var prop:String in store.data.keys)
|
|
703
|
-
{
|
|
704
|
-
empty = false;
|
|
705
|
-
break;
|
|
706
|
-
}
|
|
707
|
-
if(empty)
|
|
708
|
-
{
|
|
709
|
-
store.clear();
|
|
710
|
-
}
|
|
711
|
-
rval.rval = true;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
catch(e:Error)
|
|
715
|
-
{
|
|
716
|
-
log(e);
|
|
717
|
-
rval.error = {
|
|
718
|
-
id: e.errorID,
|
|
719
|
-
name: e.name,
|
|
720
|
-
message: e.message
|
|
721
|
-
};
|
|
722
|
-
}
|
|
723
|
-
return rval;
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* Clears an entire store of all of its items.
|
|
728
|
-
*
|
|
729
|
-
* @param storeId the storage ID to use, defaults to "forge.storage".
|
|
730
|
-
*
|
|
731
|
-
* @return an object with rval set to true if cleared, false if not.
|
|
732
|
-
*/
|
|
733
|
-
private function clearItems(storeId:String = "forge.storage"):Object
|
|
734
|
-
{
|
|
735
|
-
var rval:Object = {rval: false};
|
|
736
|
-
try
|
|
737
|
-
{
|
|
738
|
-
var store:SharedObject = SharedObject.getLocal(storeId);
|
|
739
|
-
store.clear();
|
|
740
|
-
rval.rval = true;
|
|
741
|
-
}
|
|
742
|
-
catch(e:Error)
|
|
743
|
-
{
|
|
744
|
-
log(e);
|
|
745
|
-
rval.error = {
|
|
746
|
-
id: e.errorID,
|
|
747
|
-
name: e.name,
|
|
748
|
-
message: e.message
|
|
749
|
-
};
|
|
750
|
-
}
|
|
751
|
-
return rval;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
}
|