gina 0.7.8 → 0.7.9
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/CHANGELOG.md +27 -6
- package/README.md +42 -41
- package/ROADMAP.md +1 -0
- package/framework/v0.7.9/VERSION +1 -0
- package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/js/gina.js +357 -25
- package/framework/v0.7.9/core/asset/plugin/dist/vendor/gina/js/gina.min.js +758 -0
- package/framework/v0.7.9/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.9/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/{v0.7.8 → v0.7.9}/core/controller/controller.js +37 -10
- package/framework/{v0.7.8 → v0.7.9}/core/controller/controller.render-json.js +2 -0
- package/framework/{v0.7.8 → v0.7.9}/core/controller/controller.render-nunjucks-async.js +2 -0
- package/framework/{v0.7.8 → v0.7.9}/core/controller/controller.render-nunjucks.js +2 -0
- package/framework/{v0.7.8 → v0.7.9}/core/controller/controller.render-stream.js +2 -0
- package/framework/{v0.7.8 → v0.7.9}/core/controller/controller.render-swig-async.js +2 -0
- package/framework/{v0.7.8 → v0.7.9}/core/controller/controller.render-swig.js +4 -0
- package/framework/{v0.7.8 → v0.7.9}/core/controller/controller.render-xml.js +2 -0
- package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/validator/src/main.js +216 -15
- package/framework/v0.7.9/core/server.isaac.early-answer.js +279 -0
- package/framework/{v0.7.8 → v0.7.9}/core/server.isaac.js +15 -0
- package/framework/{v0.7.8 → v0.7.9}/core/server.js +152 -3
- package/framework/{v0.7.8 → v0.7.9}/lib/merge/src/main.js +141 -10
- package/framework/{v0.7.8 → v0.7.9}/package.json +2 -2
- package/gna.js +4 -4
- package/llms.txt +12 -11
- package/package.json +5 -5
- package/types/index.d.ts +6 -2
- package/framework/v0.7.8/VERSION +0 -1
- package/framework/v0.7.8/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -754
- package/framework/v0.7.8/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.8/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/AUTHORS +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/LICENSE +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/html/static.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/config.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/config.requirements-anchor.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/ai/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/ai/lib/connector.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/couchbase/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/couchbase/lib/storage-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/duckdb/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/duckdb/lib/connector.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/mongodb/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/mongodb/lib/connector.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/mongodb/lib/job-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/mongodb/lib/session-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/mysql/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/mysql/lib/connector.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/param-redact.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/postgresql/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/postgresql/lib/connector.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/redis/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/redis/lib/connector.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/redis/lib/job-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/redis/lib/kv-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/redis/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/redis/lib/session-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/scylladb/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/scylladb/lib/connector.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/scylladb/lib/session-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/settle-once.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/sql-parser.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/sqlite/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/sqlite/lib/connector.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/sqlite/lib/job-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/sqlite/lib/kv-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/connectors/sqlite/lib/session-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/content.encoding +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/controller/controller.render-v1.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/controller/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/controller/inline-script.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/controller/inspector-window-emit.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/controller/preload-hints.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/controller/release-banner.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/controller/render-data.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/controller/render-session.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/dev/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/gna.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/locales/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/locales/currency.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/locales/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/mime.types +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/model/entity.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/model/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/model/template/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/csrf/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/csrf/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/csrf/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/coep/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/coep/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/coop/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/coop/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/corp/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/corp/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/csp/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/csp/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/hsts/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/hsts/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/session/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/session/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/session/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/plugins/lib/validator/src/form-validator.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/router.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/server.express.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/server.isaac.rapid-reset.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/server.route-candidates.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/status.codes +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/_gitignore +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/config/connectors.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/config/watchers.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle/locales/en.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_public/css/home.css +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_public/sw.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/conf/env.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/conf/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/conf/settings.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/console.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/context.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/data/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/data/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/data/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/json/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/json/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/json/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/path.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/prototypes.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/task.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/helpers/text.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/admin/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/admin/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/archiver/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/archiver/build.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/archiver/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/async/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/async/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/audit/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/audit/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/audit-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/authn/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/authn/src/lockout.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/authn/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/authn/src/totp.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/authz-gate/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/authz-gate/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cache/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cache/build.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cache/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cache/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/aliases.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/audit/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/audit/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/audit/verify.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/build.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/inc/boot-lines.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/inc/name.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/inc/start-status.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/man.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/mcp-start.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/mcp.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/oas.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/openapi.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/restart.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/start.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/status.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/bundle/types.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/cache/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/cache/clear.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/cache/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/cache/stats.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/add.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/infer.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/migrate.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/models.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/remove.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/rm.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/connector/test.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/container/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/container/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/container/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/container/man.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/container/ps.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/container/stop.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/add.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/inc/args.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/inc/namespace.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/inc/reference-scan.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/inc/scaffold.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/remove.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/rename.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/controller/rm.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/add.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/inc/name.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/add.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/get.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/inc/child-failure.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/inc/listen-error.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/inc/ps-titles.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/init.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/link.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/man.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/remove.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/reset.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/restart.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/start.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/status.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/stop.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/tail.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/helper.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/i18n/add.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/i18n/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/i18n/export.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/i18n/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/i18n/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/i18n/import.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/i18n/scan.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/image/_host.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/image/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/image/build.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/image/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/image/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/image/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/image/man.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/image/rm.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/image/run.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/inspector/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/inspector/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/inspector/open.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/man-render.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/minion/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/minion/kill.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/minion/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/port/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/port/set.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/add.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/backup.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/build.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/inc/name.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/man.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/rename.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/restore.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/status.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/protocol/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/protocol/remove.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/scope/inc/name.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/secrets/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/secrets/check.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/secrets/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/secrets/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/secrets/scan.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/service/help.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/service/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/service/list.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/service/man.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/service/start.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/storage/arguments.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/storage/gc.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/storage/help.txt +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/storage/stats.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/storage/verify.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd-status-format/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cmd-status-format/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/collection/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/collection/build.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/collection/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/collection/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/conf-view/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/conf-view/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/config.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/connector-config/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/connector-config/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/connector-error/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/connector-error/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/connector-registry/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/connector-registry/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cron/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cron/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/domain/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/domain/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/domain/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/dto/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/dto/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/dto-pipe/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/dto-pipe/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/dto-types/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/dto-types/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/duration/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/duration/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/error-ref/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/error-ref/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/generator/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/i18n/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/i18n/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/idempotency/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/idempotency/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/image-build/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/image-build/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/inherits/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/inherits/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/inspector-events/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/inspector-events/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/inspector-redact/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/inspector-redact/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/instrument/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/instrument/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/job/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/job/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/job-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/json-config-header/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/json-config-header/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/kv/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/kv/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/kv-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/lane/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/lane/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/loading-state/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/loading-state/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/logger/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/logger/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/logger/src/containers/mq/listener.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/logger/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/logger/src/redact.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/maintenance/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/maintenance/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/math/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/mcp-dispatch/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/mcp-dispatch/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/mcp-http/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/mcp-http/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/mcp-server/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/mcp-server/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/merge/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/merge/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/message-validator/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/message-validator/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/metrics/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/metrics/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/model.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/money/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/money/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/multipart/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/multipart/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/net-locality/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/net-locality/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/nunjucks-filters/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/nunjucks-filters/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/nunjucks-filters/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/nunjucks-resolver/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/nunjucks-resolver/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/priority/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/priority/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/proc.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/push/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/push/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/rate-limit/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/rate-limit/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/release-watch/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/release-watch/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/render-cache/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/render-cache/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/routing/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/routing/build.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/routing/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/routing/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/routing-introspect/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/routing-introspect/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/secrets/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/secrets/src/backends/env.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/secrets/src/backends/exec.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/secrets/src/backends/file.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/secrets/src/declaration.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/secrets/src/env-file.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/secrets/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/secrets/src/sources.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/security-headers-emitter/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/security-headers-emitter/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/session-lifetime/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/session-lifetime/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/session-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/shell.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/sqlite-driver.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/sri/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/sri/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/state.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/storage/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/storage/src/local-cas.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/storage/src/local-stream.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/storage/src/local.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/storage/src/meta-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/storage/src/s3.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/storage/src/util.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/storage-store.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/swig-filters/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/swig-resolver/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/swig-resolver/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/template-loaders/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/template-loaders/src/loaders/http.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/template-loaders/src/loaders/memory.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/template-loaders/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/url/README.md +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/url/index.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/url/routing.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/uuid/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/uuid/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/validator.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/watcher/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/watcher/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/ws-framing/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/ws-framing/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/ws-query/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/ws-query/src/main.js +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/ws-session/package.json +0 -0
- /package/framework/{v0.7.8 → v0.7.9}/lib/ws-session/src/main.js +0 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP/2 early answers on Bun — discarding the body of a request answered before
|
|
3
|
+
* its body is read, and closing its stream once the answer has gone out (#B1076).
|
|
4
|
+
*
|
|
5
|
+
* Over HTTP/2, gina answers some requests before it reads their body: the
|
|
6
|
+
* `/_gina/*` control endpoints and the cross-origin guard in `server.isaac.js`'s
|
|
7
|
+
* request listener, the maintenance gate, and the admin endpoints `core/server.js`
|
|
8
|
+
* answers ahead of routing (`/_gina/storage/gc`, for one). Node.js closes such a
|
|
9
|
+
* stream itself once its answer has gone out; Bun 1.2 and 1.3 keep it open and
|
|
10
|
+
* keep everything the client sends into it, without bound.
|
|
11
|
+
*
|
|
12
|
+
* Closing the stream once the answer has gone out (`RST_STREAM(NO_ERROR)`, which
|
|
13
|
+
* RFC 9113 § 8.1 allows a server that has sent a complete response) bounds that
|
|
14
|
+
* for a client that reads its answer. A client that never reads it (a zero receive
|
|
15
|
+
* window) never lets the answer's writable side finish, so a close waiting for
|
|
16
|
+
* `'finish'` never runs. The body is therefore also discarded as soon as the
|
|
17
|
+
* answer is handed to the stream: the stream's own `'data'` readers are removed
|
|
18
|
+
* (the compatibility request's among them) and the stream is resumed, so what the
|
|
19
|
+
* client sends is read and dropped, and its window granted back, instead of kept.
|
|
20
|
+
* Measured on 2026-11-03 under a zero receive window with 128 MB offered by the
|
|
21
|
+
* client: about 230 MB held by the process on Bun 1.2.21 and 1.3.14 before, about
|
|
22
|
+
* 100 MB, close to its baseline, after; on Bun 1.4.4 the client was held at the
|
|
23
|
+
* stream's flow-control window before, and its body is drained after.
|
|
24
|
+
*
|
|
25
|
+
* The discard goes through the stream, not the compatibility request: a
|
|
26
|
+
* `request.resume()` is undone by a `request.destroy()` that follows the answer,
|
|
27
|
+
* which several stops do — the 431 counted past `upload.maxFieldsSize` on a
|
|
28
|
+
* request with no `content-length`, the 413 past `server.maxBodySize` (#B1071),
|
|
29
|
+
* and a maintenance or instrumentation control body past its 4 KB cap.
|
|
30
|
+
*
|
|
31
|
+
* A static answer is the exception: `core/server.js`'s `handleStatics` discards an
|
|
32
|
+
* armed request's body through the compatibility request
|
|
33
|
+
* ({@link discardThroughRequest}) before any of its answers. No static path destroys
|
|
34
|
+
* its request, so the resume holds there, and the stream-level detach cut a large
|
|
35
|
+
* static read by a slow client: on Bun 1.2.21, a POST with a body to a 600 KB file
|
|
36
|
+
* read by a paused reader ended early in 9 of 26 runs; with the compatibility resume,
|
|
37
|
+
* in none of 16 runs on each of Bun 1.2.21, 1.3.14 and 1.4.4 (measured 2026-11-03).
|
|
38
|
+
*
|
|
39
|
+
* Which requests are armed:
|
|
40
|
+
*
|
|
41
|
+
* - Bun only, picked by RUNTIME at load ({@link RUNTIME_IS_BUN}, the #B615 rule:
|
|
42
|
+
* never by version, never by probing a stream). On Node.js nothing is armed:
|
|
43
|
+
* Node closes a never-read stream itself, its compatibility response always
|
|
44
|
+
* waits for trailers (a close at `'finish'` drops them), and `respondWithFile()`
|
|
45
|
+
* finishes its writable side before the file is sent (a close at `'finish'`
|
|
46
|
+
* there cut a static file to 0 B and ended the process on Node 26).
|
|
47
|
+
* - A request whose body may still come (`stream.endAfterHeaders !== true`): a
|
|
48
|
+
* GET or a HEAD without a body is never armed.
|
|
49
|
+
*
|
|
50
|
+
* What an armed request does:
|
|
51
|
+
*
|
|
52
|
+
* - When an answer is handed to its stream (`stream.respond()`, which the
|
|
53
|
+
* compatibility response calls too) while {@link keepOpen} has not been called,
|
|
54
|
+
* the body is discarded ({@link discard}).
|
|
55
|
+
* - When the answer's writable side finishes while {@link keepOpen} has not been
|
|
56
|
+
* called, the stream is closed with `NGHTTP2_NO_ERROR`.
|
|
57
|
+
* - A static answer discards through the compatibility request first
|
|
58
|
+
* ({@link discardThroughRequest}), so the hook's {@link discard} then finds the
|
|
59
|
+
* body discarded and does nothing.
|
|
60
|
+
*
|
|
61
|
+
* {@link keepOpen} is called by every answer that reads its body or stays open by
|
|
62
|
+
* design, before it answers: `core/server.js` from its non-static branch (the body
|
|
63
|
+
* is read and the router owns the answer from there; its parse-time stops discard
|
|
64
|
+
* through `closeStreamAfterAnswer`). The three server-sent-event endpoints of
|
|
65
|
+
* `server.isaac.js` set the same property inline
|
|
66
|
+
* (`request._ginaStreamKeepOpen = true`), which keeps each handler block
|
|
67
|
+
* self-contained. An armed binary static is sent buffered by `core/server.js`
|
|
68
|
+
* ({@link isArmed}): `respondWithFile()` finishes before the file's bytes, so a
|
|
69
|
+
* close at its `'finish'` would cut the file.
|
|
70
|
+
*
|
|
71
|
+
* Framework-free on purpose, like `server.isaac.rapid-reset`: it is unit-tested on
|
|
72
|
+
* both runtime rules with a stand-in stream, which `server.isaac.js` (loading the
|
|
73
|
+
* lib registry at require time) cannot be. Its one dependency, `utils/runtime`, is
|
|
74
|
+
* a dependency-free leaf at the package root.
|
|
75
|
+
*
|
|
76
|
+
* @module core/server.isaac.early-answer
|
|
77
|
+
*/
|
|
78
|
+
'use strict';
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The `RST_STREAM` code of the close (`0`, no error): the answer went out whole.
|
|
82
|
+
*
|
|
83
|
+
* @constant {number}
|
|
84
|
+
*/
|
|
85
|
+
var NGHTTP2_NO_ERROR = require('http2').constants.NGHTTP2_NO_ERROR;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Whether this process runs on Bun — decided once at load. The early-answer hooks
|
|
89
|
+
* are needed on Bun and wrong on Node.js (module header), so they are picked by
|
|
90
|
+
* RUNTIME, never by feature-probing a stream (the #B615 rule).
|
|
91
|
+
*
|
|
92
|
+
* @constant {boolean}
|
|
93
|
+
*/
|
|
94
|
+
var RUNTIME_IS_BUN = require(__dirname + '/../../../utils/runtime').isBun();
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Marks a request whose body is read, or whose stream stays open by design, from
|
|
98
|
+
* here on: an armed request's hooks then neither discard its body nor close its
|
|
99
|
+
* stream. Call it before the answer is handed to the stream.
|
|
100
|
+
*
|
|
101
|
+
* Harmless on a request that was never armed (Node.js, HTTP/1.1, a request with
|
|
102
|
+
* no body).
|
|
103
|
+
*
|
|
104
|
+
* @param {object} request - The compatibility request
|
|
105
|
+
* @returns {void}
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* // core/server.js, where the body read starts and the router owns the answer:
|
|
109
|
+
* earlyAnswer.keepOpen(request);
|
|
110
|
+
* // the same, inline: a server-sent-event endpoint, before its 200 goes out:
|
|
111
|
+
* request._ginaStreamKeepOpen = true;
|
|
112
|
+
* response.stream.respond({ ':status': 200, 'content-type': 'text/event-stream' });
|
|
113
|
+
*/
|
|
114
|
+
function keepOpen(request) {
|
|
115
|
+
if ( request ) {
|
|
116
|
+
request._ginaStreamKeepOpen = true;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Whether {@link arm} armed this request: Bun, an HTTP/2 stream, and a body that
|
|
122
|
+
* may still come.
|
|
123
|
+
*
|
|
124
|
+
* @param {object} request - The compatibility request
|
|
125
|
+
* @returns {boolean} `true` when the request is armed
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* // core/server.js, an HTTP/2 binary static:
|
|
129
|
+
* if ( isBinary && earlyAnswer.isArmed(request) ) {
|
|
130
|
+
* // send it buffered: the close at 'finish' must follow the bytes
|
|
131
|
+
* } else if ( isBinary ) {
|
|
132
|
+
* stream.respondWithFile(filename, header);
|
|
133
|
+
* }
|
|
134
|
+
*/
|
|
135
|
+
function isArmed(request) {
|
|
136
|
+
return !!( request && request._ginaStreamCloseArmed === true );
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Discards what the client still sends on an armed request's stream: its `'data'`
|
|
141
|
+
* readers are removed (the compatibility request's among them) and the stream is
|
|
142
|
+
* resumed, so the bytes are read and dropped and the client's window is granted
|
|
143
|
+
* back. Once per request.
|
|
144
|
+
*
|
|
145
|
+
* Called by the {@link arm} hook when an early answer is handed to the stream, and
|
|
146
|
+
* by `core/server.js`'s `closeStreamAfterAnswer` when a parse-time stop (#B1071)
|
|
147
|
+
* answers a request whose body it no longer reads.
|
|
148
|
+
*
|
|
149
|
+
* @param {object} request - The compatibility request
|
|
150
|
+
* @returns {boolean} `true` when the body is now discarded; `false` when the
|
|
151
|
+
* request is not armed, was already discarded, or its stream is closed or
|
|
152
|
+
* destroyed
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* // an armed request (Bun), answered before its body was read in full:
|
|
156
|
+
* earlyAnswer.discard(request); // true: what the client still sends is read and dropped
|
|
157
|
+
* earlyAnswer.discard(request); // false: once per request
|
|
158
|
+
* // a request that was never armed (Node.js, HTTP/1.1, no body):
|
|
159
|
+
* earlyAnswer.discard(request); // false: nothing is done
|
|
160
|
+
*/
|
|
161
|
+
function discard(request) {
|
|
162
|
+
if ( !isArmed(request) || request._ginaBodyDiscarded === true ) {
|
|
163
|
+
return false;
|
|
164
|
+
}
|
|
165
|
+
var stream = request.stream;
|
|
166
|
+
if ( !stream || stream.closed || stream.destroyed ) {
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
request._ginaBodyDiscarded = true;
|
|
170
|
+
try {
|
|
171
|
+
stream.removeAllListeners('data');
|
|
172
|
+
stream.resume();
|
|
173
|
+
} catch (streamGone) {
|
|
174
|
+
// the stream went away between the checks and the calls: nothing is left to discard
|
|
175
|
+
}
|
|
176
|
+
return true;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Discards what the client still sends on an armed request through its
|
|
181
|
+
* compatibility request instead: the request is resumed, so the runtime reads the
|
|
182
|
+
* bytes and drops them, and the stream's own `'data'` readers stay in place. Marks
|
|
183
|
+
* the body discarded, so {@link discard} does nothing afterwards. Once per request.
|
|
184
|
+
*
|
|
185
|
+
* Called by `core/server.js`'s `handleStatics` before any of its answers: no static
|
|
186
|
+
* path destroys its request (a `request.destroy()` after the answer would undo the
|
|
187
|
+
* resume), and the stream-level detach of {@link discard} cut a large static read by
|
|
188
|
+
* a slow client on Bun 1.2.21.
|
|
189
|
+
*
|
|
190
|
+
* @param {object} request - The compatibility request
|
|
191
|
+
* @returns {boolean} `true` when the body is now discarded through the request;
|
|
192
|
+
* `false` when the request is not armed or its body was already discarded
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* // core/server.js, handleStatics, an armed POST to a static file, before its answer:
|
|
196
|
+
* earlyAnswer.discardThroughRequest(request); // true: the body is read and dropped from now on
|
|
197
|
+
* earlyAnswer.discard(request); // false: already discarded
|
|
198
|
+
* // a request that was never armed (Node.js, HTTP/1.1, no body):
|
|
199
|
+
* earlyAnswer.discardThroughRequest(request); // false: nothing is done
|
|
200
|
+
*/
|
|
201
|
+
function discardThroughRequest(request) {
|
|
202
|
+
if ( !isArmed(request) || request._ginaBodyDiscarded === true ) {
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
request._ginaBodyDiscarded = true;
|
|
206
|
+
try {
|
|
207
|
+
request.resume();
|
|
208
|
+
} catch (requestGone) {
|
|
209
|
+
// the request went away before the call: nothing is left to discard
|
|
210
|
+
}
|
|
211
|
+
return true;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Arms the early-answer hooks on one HTTP/2 request (module header): on Bun, for a
|
|
216
|
+
* request whose body may still come, an answer handed to its stream before
|
|
217
|
+
* {@link keepOpen} discards the body ({@link discard}), and the stream closes with
|
|
218
|
+
* `NGHTTP2_NO_ERROR` once that answer's writable side has finished. Once per
|
|
219
|
+
* request; a second call changes nothing.
|
|
220
|
+
*
|
|
221
|
+
* Call it at the top of the engine's request listener, before any answer.
|
|
222
|
+
*
|
|
223
|
+
* @param {object} request - The compatibility request; `request.stream` is the
|
|
224
|
+
* server stream over HTTP/2
|
|
225
|
+
* @param {boolean} isBun - Whether the hooks apply: {@link RUNTIME_IS_BUN} in the
|
|
226
|
+
* engine, injectable so a test can drive both runtime rules
|
|
227
|
+
* @returns {boolean} `true` when the request is armed; `false` otherwise (Node.js,
|
|
228
|
+
* HTTP/1.1, or a request whose body ended with its headers), and nothing is done
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* server.on('request', function (request, response) {
|
|
232
|
+
* earlyAnswer.arm(request, earlyAnswer.RUNTIME_IS_BUN);
|
|
233
|
+
* // an early answer: on Bun its body is discarded, and its stream closes once
|
|
234
|
+
* // the answer has gone out
|
|
235
|
+
* response.writeHead(403);
|
|
236
|
+
* response.end();
|
|
237
|
+
* });
|
|
238
|
+
*/
|
|
239
|
+
function arm(request, isBun) {
|
|
240
|
+
if ( isBun !== true ) {
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
var stream = ( request && request.stream ) ? request.stream : null;
|
|
244
|
+
if ( !stream || typeof(stream.close) != 'function' || typeof(stream.respond) != 'function' ) {
|
|
245
|
+
return false;
|
|
246
|
+
}
|
|
247
|
+
if ( stream.endAfterHeaders === true ) {
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
if ( isArmed(request) ) {
|
|
251
|
+
return true;
|
|
252
|
+
}
|
|
253
|
+
request._ginaStreamCloseArmed = true;
|
|
254
|
+
|
|
255
|
+
var respond = stream.respond;
|
|
256
|
+
stream.respond = function respondThenDiscard() {
|
|
257
|
+
var sent = respond.apply(this, arguments);
|
|
258
|
+
if ( request._ginaStreamKeepOpen !== true ) {
|
|
259
|
+
discard(request);
|
|
260
|
+
}
|
|
261
|
+
return sent;
|
|
262
|
+
};
|
|
263
|
+
stream.once('finish', function closeAfterEarlyAnswer() {
|
|
264
|
+
if ( request._ginaStreamKeepOpen !== true && !stream.closed && !stream.destroyed ) {
|
|
265
|
+
stream.close(NGHTTP2_NO_ERROR);
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
return true;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
module.exports = {
|
|
272
|
+
NGHTTP2_NO_ERROR : NGHTTP2_NO_ERROR,
|
|
273
|
+
RUNTIME_IS_BUN : RUNTIME_IS_BUN,
|
|
274
|
+
keepOpen : keepOpen,
|
|
275
|
+
isArmed : isArmed,
|
|
276
|
+
discard : discard,
|
|
277
|
+
discardThroughRequest : discardThroughRequest,
|
|
278
|
+
arm : arm
|
|
279
|
+
};
|
|
@@ -1309,9 +1309,19 @@ function ServerEngineClass(options) {
|
|
|
1309
1309
|
// http2stream handle by the Router class & the SuperController class
|
|
1310
1310
|
// See `${core}/router.js` & `${core}/controller/controller.js`
|
|
1311
1311
|
|
|
1312
|
+
// #B1076 — the early-answer hooks of an HTTP/2 request on Bun: ./server.isaac.early-answer.js
|
|
1313
|
+
var _earlyAnswer = require('./server.isaac.early-answer');
|
|
1312
1314
|
server.on('request', (request, response) => {
|
|
1313
1315
|
|
|
1314
1316
|
request.originalUrl = request.url;
|
|
1317
|
+
|
|
1318
|
+
// #B1076 — on Bun, a request whose body may still come is armed before any answer: an
|
|
1319
|
+
// answer handed to its stream before keepOpen() discards the body (Bun 1.2 / 1.3 would
|
|
1320
|
+
// otherwise keep everything the client sends), and the stream closes with NO_ERROR once
|
|
1321
|
+
// that answer has gone out. keepOpen() is called where the body is read (core/server.js,
|
|
1322
|
+
// its non-static branch), and inline by the SSE endpoints below. Nothing is armed on Node.js,
|
|
1323
|
+
// over HTTP/1.1, or for a request whose body ended with its headers.
|
|
1324
|
+
_earlyAnswer.arm(request, _earlyAnswer.RUNTIME_IS_BUN);
|
|
1315
1325
|
// #FI — dev-mode request timeline for Inspector Flow tab
|
|
1316
1326
|
// Only initialized when the Inspector has been opened (process.gina._inspectorActive)
|
|
1317
1327
|
// #INS10 — or during a prod instrumentation window (process.gina._inspectorWindowUntil).
|
|
@@ -1848,6 +1858,7 @@ function ServerEngineClass(options) {
|
|
|
1848
1858
|
'x-content-type-options': 'nosniff'
|
|
1849
1859
|
});
|
|
1850
1860
|
var _rwWrite, _rwOnClose;
|
|
1861
|
+
request._ginaStreamKeepOpen = true; // #B1076 — keepOpen(), inline: an SSE stream stays open by design, so its early-answer hooks must not discard or close it
|
|
1851
1862
|
// HTTP/2
|
|
1852
1863
|
if (response.stream) {
|
|
1853
1864
|
response.stream.respond({ ':status': 200, ..._rwSseHeaders });
|
|
@@ -2191,6 +2202,7 @@ function ServerEngineClass(options) {
|
|
|
2191
2202
|
});
|
|
2192
2203
|
|
|
2193
2204
|
var _write, _onClose;
|
|
2205
|
+
request._ginaStreamKeepOpen = true; // #B1076 — keepOpen(), inline: an SSE stream stays open by design, so its early-answer hooks must not discard or close it
|
|
2194
2206
|
|
|
2195
2207
|
// HTTP/2
|
|
2196
2208
|
if (response.stream) {
|
|
@@ -2276,6 +2288,7 @@ function ServerEngineClass(options) {
|
|
|
2276
2288
|
});
|
|
2277
2289
|
|
|
2278
2290
|
var _agWrite, _agOnClose;
|
|
2291
|
+
request._ginaStreamKeepOpen = true; // #B1076 — keepOpen(), inline: an SSE stream stays open by design, so its early-answer hooks must not discard or close it
|
|
2279
2292
|
|
|
2280
2293
|
// HTTP/2
|
|
2281
2294
|
if (response.stream) {
|
|
@@ -3213,6 +3226,8 @@ function ServerEngineClass(options) {
|
|
|
3213
3226
|
}
|
|
3214
3227
|
|
|
3215
3228
|
|
|
3229
|
+
// #B1076 — no keepOpen() here: core/server.js calls it where its body read starts, since it
|
|
3230
|
+
// answers some requests itself before that (the maintenance gate, the admin endpoints)
|
|
3216
3231
|
cb(request, response);
|
|
3217
3232
|
}
|
|
3218
3233
|
});
|
|
@@ -411,6 +411,60 @@ var buildAllowHeader = function(ruleMethods) {
|
|
|
411
411
|
return out.join(', ');
|
|
412
412
|
};
|
|
413
413
|
|
|
414
|
+
/**
|
|
415
|
+
* #B1071 — closes the HTTP/2 stream of a request whose body is no longer read, once its answer has gone
|
|
416
|
+
* out.
|
|
417
|
+
*
|
|
418
|
+
* Some answers go out while the client may still be sending its body: the 431 past
|
|
419
|
+
* `upload.maxFieldsSize`, the 413 past `server.maxBodySize`, the 400 of a multipart body that fails to
|
|
420
|
+
* parse. Over HTTP/2 the answer goes out on the request's own stream. Node closes a server stream by
|
|
421
|
+
* itself only when its body was never read, and `destroy()` on the compatibility request resets
|
|
422
|
+
* nothing, so once gina has read part of the body, the client may push one more stream window into a
|
|
423
|
+
* request nobody reads and is then left stalled; Bun 1.2 / 1.3, which apply no flow control to it,
|
|
424
|
+
* take everything the client sends.
|
|
425
|
+
*
|
|
426
|
+
* RFC 9113 § 8.1 lets a server that has sent a complete response ask the client to stop sending the
|
|
427
|
+
* request with RST_STREAM(NO_ERROR). The stream is closed once its writable side has finished, on the
|
|
428
|
+
* stream's own 'finish' (the compatibility response emits its 'finish' only from the stream's
|
|
429
|
+
* 'close'), because a close requested earlier ends the stream at once and loses an answer still being
|
|
430
|
+
* produced, such as a custom error page rendered after throwError has returned.
|
|
431
|
+
*
|
|
432
|
+
* Not for an answer that waits for trailers (Node's compatibility response always does, and the render
|
|
433
|
+
* delegates do once an action has registered trailers): its 'finish' comes before the trailers, and a
|
|
434
|
+
* close there drops them and leaves the client with no reset. The callers answer through throwError,
|
|
435
|
+
* whose HTTP/2 sends carry no trailers, during the body parse, before any action runs.
|
|
436
|
+
*
|
|
437
|
+
* #B1076 — a client that never reads the answer (a zero receive window) never lets it finish, so the close
|
|
438
|
+
* never runs; on Bun 1.2 / 1.3 the stream would meanwhile keep everything the client sends. On a request
|
|
439
|
+
* the Isaac listener armed (Bun, see server.isaac.early-answer.js), what the client still sends is
|
|
440
|
+
* therefore also discarded here, through the stream itself: the 431 counted on a request with no
|
|
441
|
+
* content-length and the 413 call request.destroy() right after this, which would undo a discard made
|
|
442
|
+
* through the compatibility request.
|
|
443
|
+
*
|
|
444
|
+
* @inner
|
|
445
|
+
* @param {object} request - The request just answered; `request.stream` is set over HTTP/2.
|
|
446
|
+
* @returns {boolean} `true` when the request has an HTTP/2 stream, which closes once its answer has
|
|
447
|
+
* gone out (and, when armed on Bun, whose body is discarded from now on); `false` otherwise
|
|
448
|
+
* (HTTP/1.1), and nothing is done.
|
|
449
|
+
* @example
|
|
450
|
+
* // the 431 past upload.maxFieldsSize, over HTTP/2:
|
|
451
|
+
* closeStreamAfterAnswer(req); // true: req.stream closes with NO_ERROR once the answer has gone out
|
|
452
|
+
* // the same over HTTP/1.1:
|
|
453
|
+
* closeStreamAfterAnswer(req); // false: there is no stream to close
|
|
454
|
+
*/
|
|
455
|
+
var closeStreamAfterAnswer = function(request) {
|
|
456
|
+
var stream = ( request && request.stream && typeof(request.stream.close) == 'function' ) ? request.stream : null;
|
|
457
|
+
if ( !stream ) { return false; }
|
|
458
|
+
var close = function() {
|
|
459
|
+
if ( !stream.closed && !stream.destroyed ) { stream.close(require('http2').constants.NGHTTP2_NO_ERROR); }
|
|
460
|
+
};
|
|
461
|
+
if ( stream.writableFinished ) { close(); } else { stream.once('finish', close); }
|
|
462
|
+
// #B1076 — the armed flag is read directly: a request that was never armed (Node.js, a request whose
|
|
463
|
+
// body ended with its headers) never reaches the early-answer module from here
|
|
464
|
+
if ( request._ginaStreamCloseArmed === true ) { earlyAnswer.discard(request); }
|
|
465
|
+
return true;
|
|
466
|
+
};
|
|
467
|
+
|
|
414
468
|
var parseByteSize = function(value) {
|
|
415
469
|
if ( typeof(value) == 'number' ) { return value * 1024 * 1024; } // bare number = MB
|
|
416
470
|
if ( typeof(value) != 'string' ) { return NaN; }
|
|
@@ -595,6 +649,10 @@ var routingLib = lib.routing;
|
|
|
595
649
|
// #P46 — the cold routing loop's candidate index: which rules could match a request
|
|
596
650
|
// (server-only; kept out of lib/routing/src/, which the pre-commit gate treats as bundled).
|
|
597
651
|
var routeCandidates = require('./server.route-candidates');
|
|
652
|
+
// #B1076 — the early-answer hooks of an HTTP/2 request on Bun (armed by server.isaac.js's request
|
|
653
|
+
// listener): this file calls keepOpen() where its body read starts, discards at its parse-time stops
|
|
654
|
+
// and sends an armed binary static buffered.
|
|
655
|
+
var earlyAnswer = require('./server.isaac.early-answer');
|
|
598
656
|
// #RC4 — the engine-agnostic render/output-cache read path (design f). One gen-0
|
|
599
657
|
// instance (plain-required RenderCache survives refreshCore), pointed at the shared
|
|
600
658
|
// Map per request via `from()`. Mirrors server.isaac.js's module-scope renderCache.
|
|
@@ -4244,6 +4302,9 @@ function Server(options) {
|
|
|
4244
4302
|
if ( /http\/2/.test(protocol) ) {
|
|
4245
4303
|
|
|
4246
4304
|
stream = response.stream;
|
|
4305
|
+
// #B1076 — on an armed request (Bun, a body may still come), discard the body through the
|
|
4306
|
+
// compatibility request before any answer below: see server.isaac.early-answer.js
|
|
4307
|
+
earlyAnswer.discardThroughRequest(request);
|
|
4247
4308
|
}
|
|
4248
4309
|
|
|
4249
4310
|
var isCacheless = bundleConf.isCacheless;
|
|
@@ -4547,7 +4608,18 @@ function Server(options) {
|
|
|
4547
4608
|
}
|
|
4548
4609
|
|
|
4549
4610
|
header = completeHeaders(header, request, response);
|
|
4550
|
-
if (isBinary) {
|
|
4611
|
+
if ( isBinary && earlyAnswer.isArmed(request) ) {
|
|
4612
|
+
// #B1076 — an armed request (Bun, a body may still come) closes at its answer's
|
|
4613
|
+
// 'finish', and respondWithFile() finishes before the file is sent: send the
|
|
4614
|
+
// file buffered, so that 'finish' follows the bytes
|
|
4615
|
+
fs.readFile(filename, function onArmedStaticRead(readErr, buf) {
|
|
4616
|
+
if (readErr) { return throwError(response, 404, 'Page not found: \n' + pathname, next); }
|
|
4617
|
+
if ( stream.destroyed || stream.closed ) { return; }
|
|
4618
|
+
header['content-length'] = buf.length;
|
|
4619
|
+
stream.respond(header);
|
|
4620
|
+
stream.end(buf);
|
|
4621
|
+
});
|
|
4622
|
+
} else if (isBinary) {
|
|
4551
4623
|
stream.respondWithFile(filename, header)
|
|
4552
4624
|
} else {
|
|
4553
4625
|
stream.respond(header);
|
|
@@ -6303,6 +6375,10 @@ function Server(options) {
|
|
|
6303
6375
|
}
|
|
6304
6376
|
|
|
6305
6377
|
} else { // not a static request
|
|
6378
|
+
// #B1076 — the body is read from here on and the router owns the answer: an armed request's
|
|
6379
|
+
// early-answer hooks neither discard nor close it (its parse-time stops discard through
|
|
6380
|
+
// closeStreamAfterAnswer)
|
|
6381
|
+
earlyAnswer.keepOpen(request);
|
|
6306
6382
|
// init content
|
|
6307
6383
|
request.body = ( typeof(request.body) != 'undefined' ) ? request.body : {};
|
|
6308
6384
|
request.get = {};
|
|
@@ -6374,7 +6450,11 @@ function Server(options) {
|
|
|
6374
6450
|
// cap (was: `fileSize > maxSize` with maxSize=NaN naturally skipped; maxSize=0
|
|
6375
6451
|
// would have rejected everything — 0 now means "no limit", as for maxFields).
|
|
6376
6452
|
if (maxSize && fileSize > maxSize) {
|
|
6377
|
-
|
|
6453
|
+
// #B1071 — over HTTP/2 the stream is closed once the answer has gone out.
|
|
6454
|
+
// was: return throwError(response, 431, 'Attachment exceeded maximum file size [ '+ opt.maxFieldsSize +' ]');
|
|
6455
|
+
var answered = throwError(response, 431, 'Attachment exceeded maximum file size [ '+ opt.maxFieldsSize +' ]');
|
|
6456
|
+
closeStreamAfterAnswer(request);
|
|
6457
|
+
return answered;
|
|
6378
6458
|
}
|
|
6379
6459
|
|
|
6380
6460
|
// #B49 (2026-06-16) — honour the configured upload directory.
|
|
@@ -6589,6 +6669,8 @@ function Server(options) {
|
|
|
6589
6669
|
if (!response.headersSent && !request.handled) {
|
|
6590
6670
|
request.handled = true;
|
|
6591
6671
|
throwError(response, 500, 'Could not evaluate ' + request.method + ' request data.\n' + ((listenerErr && listenerErr.stack) ? listenerErr.stack : listenerErr), next);
|
|
6672
|
+
// #B1086 — stop the upload too: a throw in 'file' leaves its part unread, a throw in 'field' lets the parser go on
|
|
6673
|
+
stopRefusedMultipart();
|
|
6592
6674
|
} else {
|
|
6593
6675
|
// #B844 (review F4) — nothing answers here: the request is already answered
|
|
6594
6676
|
// or handed off, or this is the cleanup timer's callback. No pairing line will
|
|
@@ -6613,6 +6695,8 @@ function Server(options) {
|
|
|
6613
6695
|
if ( !response.headersSent && !request.handled ) {
|
|
6614
6696
|
request.handled = true;
|
|
6615
6697
|
throwError(response, 400, 'multipart text field `'+ escapeLogControlChars(name) +'` exceeds the allowed size. See the `upload.maxTextFieldSize` definition in settings.json.', next);
|
|
6698
|
+
// #B1086 — stop the upload: the parser would go on and stage later file parts that nobody owns
|
|
6699
|
+
stopRefusedMultipart();
|
|
6616
6700
|
}
|
|
6617
6701
|
return;
|
|
6618
6702
|
}
|
|
@@ -6632,6 +6716,8 @@ function Server(options) {
|
|
|
6632
6716
|
if ( !response.headersSent && !request.handled ) {
|
|
6633
6717
|
request.handled = true;
|
|
6634
6718
|
throwError(response, 400, 'too many multipart text fields (max '+ maxTextFields +'). See the `upload.maxTextFields` definition in settings.json.', next);
|
|
6719
|
+
// #B1086 — stop the upload: the parser would go on and stage later file parts that nobody owns
|
|
6720
|
+
stopRefusedMultipart();
|
|
6635
6721
|
}
|
|
6636
6722
|
});
|
|
6637
6723
|
|
|
@@ -6687,6 +6773,8 @@ function Server(options) {
|
|
|
6687
6773
|
var maxFields = parseInt(opt.maxFields, 10);
|
|
6688
6774
|
if ( maxFields && fileCount > maxFields ) {
|
|
6689
6775
|
throwError(response, 400, 'too many upload fields (max '+ maxFields +'). See the `upload.maxFields` definition in settings.json.');
|
|
6776
|
+
// #B1086 — the refused part is never read: stop the upload, and close the stream once the answer is out
|
|
6777
|
+
stopRefusedMultipart();
|
|
6690
6778
|
return false;
|
|
6691
6779
|
}
|
|
6692
6780
|
|
|
@@ -6730,8 +6818,19 @@ function Server(options) {
|
|
|
6730
6818
|
var fileGroup = ( typeof(group) != 'undefined' && group ) ? group : 'untagged';
|
|
6731
6819
|
|
|
6732
6820
|
// deny an unconfigured upload group (was: silently streamed through)
|
|
6733
|
-
|
|
6821
|
+
// #B1089 (2026-11-05) — an OWN key of `opt.groups`, not any name that resolves on it:
|
|
6822
|
+
// `opt.groups` is a plain object, so `opt.groups['__proto__']` is `Object.prototype`,
|
|
6823
|
+
// `['constructor']` is `Object`, and every own name of `Object.prototype`
|
|
6824
|
+
// (`hasOwnProperty`, `toString`, …) is a function — none reads `'undefined'`. A part
|
|
6825
|
+
// tagged with such a group passed this gate, and the rules read on it below
|
|
6826
|
+
// (`allowedExtensions`, `isMultipleAllowed`, `path`) read `undefined` and were
|
|
6827
|
+
// skipped: any extension, several files in a single-file group, staged to the
|
|
6828
|
+
// global upload directory — around a restricted `untagged` group. Was:
|
|
6829
|
+
// if ( typeof(opt.groups) == 'undefined' || typeof(opt.groups[fileGroup]) == 'undefined' ) {
|
|
6830
|
+
if ( typeof(opt.groups) == 'undefined' || !Object.prototype.hasOwnProperty.call(opt.groups, fileGroup) ) {
|
|
6734
6831
|
throwError(response, 400, '`'+ escapeLogControlChars(fileGroup) +'` is not a configured upload group. See the `upload.groups` definition in settings.json.');
|
|
6832
|
+
// #B1086 — the refused part is never read: stop the upload, and close the stream once the answer is out
|
|
6833
|
+
stopRefusedMultipart();
|
|
6735
6834
|
return false;
|
|
6736
6835
|
}
|
|
6737
6836
|
|
|
@@ -6747,6 +6846,8 @@ function Server(options) {
|
|
|
6747
6846
|
|
|
6748
6847
|
if ( ext.indexOf(fileExt) < 0 ) {
|
|
6749
6848
|
throwError(response, 400, '`'+ escapeLogControlChars(fileExt) +'` is not an allowed extension. See `'+ escapeLogControlChars(fileGroup) +'` upload group definition.');
|
|
6849
|
+
// #B1086 — the refused part is never read: stop the upload, and close the stream once the answer is out
|
|
6850
|
+
stopRefusedMultipart();
|
|
6750
6851
|
return false;
|
|
6751
6852
|
}
|
|
6752
6853
|
}
|
|
@@ -6757,6 +6858,8 @@ function Server(options) {
|
|
|
6757
6858
|
&& fileCount > 1
|
|
6758
6859
|
) {
|
|
6759
6860
|
throwError(response, 400, 'multiple uploads not allowed. See `'+ fileGroup +'` upload group definition.');
|
|
6861
|
+
// #B1086 — the refused part is never read: stop the upload, and close the stream once the answer is out
|
|
6862
|
+
stopRefusedMultipart();
|
|
6760
6863
|
return false;
|
|
6761
6864
|
}
|
|
6762
6865
|
|
|
@@ -6827,6 +6930,8 @@ function Server(options) {
|
|
|
6827
6930
|
} catch (mkdirErr) {
|
|
6828
6931
|
console.error('[ busboy ] [ onUploadDirError ]', mkdirErr);
|
|
6829
6932
|
throwError(response, 500, 'upload destination for group `'+ escapeLogControlChars(fileGroup) +'` is not creatable ('+ fileUploadDir +')\n' + mkdirErr, next);
|
|
6933
|
+
// #B1086 — the refused part is never read: stop the upload, and close the stream once the answer is out
|
|
6934
|
+
stopRefusedMultipart();
|
|
6830
6935
|
return false;
|
|
6831
6936
|
}
|
|
6832
6937
|
|
|
@@ -6846,9 +6951,16 @@ function Server(options) {
|
|
|
6846
6951
|
// the request stays terminal at the 500 (the pre-#B143 semantics).
|
|
6847
6952
|
++pending;
|
|
6848
6953
|
writeStreams[index].on('error', guardMultipartListener(function(err) {
|
|
6954
|
+
// #B1075 — abortMultipart() destroys a write stream with its write in flight,
|
|
6955
|
+
// which errors here: the upload has stopped, and its caller answers (the 400
|
|
6956
|
+
// of a failed parse, the 431 past maxFieldsSize) or the client has gone. A 500
|
|
6957
|
+
// now would replace an HTML answer still being rendered.
|
|
6958
|
+
if ( multipartAborted ) { return; }
|
|
6849
6959
|
console.error('[ busboy ] [ onWriteError ]', err);
|
|
6850
6960
|
throwError(response, 500, 'Internal server error\n' + err, next);
|
|
6851
6961
|
this.close();
|
|
6962
|
+
// #B1086 — the part is no longer written: stop the upload, and close the stream once the answer is out
|
|
6963
|
+
stopRefusedMultipart();
|
|
6852
6964
|
return;
|
|
6853
6965
|
}));
|
|
6854
6966
|
writeStreams[index].on('finish', guardMultipartListener(function() {
|
|
@@ -7045,6 +7157,35 @@ function Server(options) {
|
|
|
7045
7157
|
});
|
|
7046
7158
|
};
|
|
7047
7159
|
|
|
7160
|
+
/**
|
|
7161
|
+
* #B1086 — stops the upload of a request refused while its body is parsed, once the refusal is answered.
|
|
7162
|
+
*
|
|
7163
|
+
* The upload stops (abortMultipart: the request no longer feeds the parser, the files it staged are
|
|
7164
|
+
* removed), the request is held, then, over HTTP/2, the request's stream closes with NO_ERROR once the
|
|
7165
|
+
* answer has gone out, and on Bun what the client still sends is discarded (closeStreamAfterAnswer,
|
|
7166
|
+
* #B1071 / #B1076). The hold is for a refusal answered after the parser has stopped taking input (the
|
|
7167
|
+
* write stream's 'error'): there unpipe() resumes the request, and its byte counter would read and drop
|
|
7168
|
+
* whatever a client that never reads the answer keeps sending; held, that client stays at the stream
|
|
7169
|
+
* window on Node.js. Without the stop a refused file part is never read, so the parser waits on it
|
|
7170
|
+
* while the client keeps sending, and a refused text field lets the parser go on and stage later file
|
|
7171
|
+
* parts that nobody owns. The shape of the stop of a parse that fails (onBusboyError). It answers
|
|
7172
|
+
* nothing, and a second call does nothing more.
|
|
7173
|
+
*
|
|
7174
|
+
* @inner
|
|
7175
|
+
* @returns {void}
|
|
7176
|
+
* @example
|
|
7177
|
+
* // in a busboy listener, right after a refusal has been answered:
|
|
7178
|
+
* stopRefusedMultipart();
|
|
7179
|
+
*/
|
|
7180
|
+
var stopRefusedMultipart = function stopRefusedMultipart() {
|
|
7181
|
+
abortMultipart();
|
|
7182
|
+
// the write stream's 'error' answers after the parser has stopped taking input: unpipe() then
|
|
7183
|
+
// runs the pipe's pending drain handler, which resumes a request that still has a 'data'
|
|
7184
|
+
// listener (the #B1056 counter), so hold it: on Node.js the client stays at the stream window
|
|
7185
|
+
request.pause();
|
|
7186
|
+
closeStreamAfterAnswer(request);
|
|
7187
|
+
};
|
|
7188
|
+
|
|
7048
7189
|
// #B97 — a malformed / empty / non-multipart body sent with a
|
|
7049
7190
|
// multipart/form-data content-type makes busboy emit 'error' (never
|
|
7050
7191
|
// 'finish'). With no listener this surfaced as an uncaughtException,
|
|
@@ -7061,6 +7202,8 @@ function Server(options) {
|
|
|
7061
7202
|
request.handled = true;
|
|
7062
7203
|
throwError(response, 400, 'Malformed multipart/form-data request', next);
|
|
7063
7204
|
}
|
|
7205
|
+
// #B1071 — over HTTP/2, close the stream once the answer has gone out.
|
|
7206
|
+
closeStreamAfterAnswer(request);
|
|
7064
7207
|
});
|
|
7065
7208
|
|
|
7066
7209
|
busboy.on('finish', function() {
|
|
@@ -7124,6 +7267,9 @@ function Server(options) {
|
|
|
7124
7267
|
request.handled = true;
|
|
7125
7268
|
throwError(response, 431, 'Attachment exceeded maximum file size [ '+ opt.maxFieldsSize +' ]');
|
|
7126
7269
|
}
|
|
7270
|
+
// #B1071 — over HTTP/2 the destroy below resets nothing: close the stream once
|
|
7271
|
+
// the answer has gone out.
|
|
7272
|
+
closeStreamAfterAnswer(request);
|
|
7127
7273
|
// Stop the peer streaming into a request nobody will read (#OW2).
|
|
7128
7274
|
try { request.destroy() } catch (destroyErr) {}
|
|
7129
7275
|
}));
|
|
@@ -7185,6 +7331,9 @@ function Server(options) {
|
|
|
7185
7331
|
_bodyRejected = true;
|
|
7186
7332
|
request.body = '';
|
|
7187
7333
|
throwError(response, 413, 'Request body exceeded maximum size [ '+ _bodySrv.maxBodySize +' ]', next);
|
|
7334
|
+
// #B1071 — over HTTP/2 the destroy below resets nothing: close the stream once
|
|
7335
|
+
// the answer has gone out.
|
|
7336
|
+
closeStreamAfterAnswer(request);
|
|
7188
7337
|
// Stop the peer streaming into a request nobody will read.
|
|
7189
7338
|
try { request.destroy() } catch (destroyErr) {}
|
|
7190
7339
|
return
|