gina 0.7.5 → 0.7.6
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 +28 -0
- package/README.md +50 -53
- package/ROADMAP.md +1 -0
- package/framework/v0.7.6/VERSION +1 -0
- package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/js/gina.js +243 -39
- package/framework/v0.7.6/core/asset/plugin/dist/vendor/gina/js/gina.min.js +748 -0
- package/framework/v0.7.6/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.6/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/{v0.7.5 → v0.7.6}/core/config.js +1 -1
- package/framework/{v0.7.5 → v0.7.6}/core/connectors/couchbase/lib/session-store.v4.js +1 -2
- package/framework/{v0.7.5 → v0.7.6}/core/controller/controller.js +359 -79
- package/framework/{v0.7.5 → v0.7.6}/core/controller/controller.render-json.js +16 -0
- package/framework/{v0.7.5 → v0.7.6}/core/controller/controller.render-nunjucks-async.js +46 -8
- package/framework/{v0.7.5 → v0.7.6}/core/controller/controller.render-nunjucks.js +61 -23
- package/framework/{v0.7.5 → v0.7.6}/core/controller/controller.render-swig-async.js +45 -7
- package/framework/{v0.7.5 → v0.7.6}/core/controller/controller.render-swig.js +21 -38
- package/framework/{v0.7.5 → v0.7.6}/core/controller/controller.render-v1.js +17 -38
- package/framework/v0.7.6/core/controller/render-data.js +344 -0
- package/framework/v0.7.6/core/controller/render-session.js +130 -0
- package/framework/{v0.7.5 → v0.7.6}/core/gna.js +2 -2
- package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/validator/src/main.js +138 -31
- package/framework/{v0.7.5 → v0.7.6}/core/router.js +6 -0
- package/framework/{v0.7.5 → v0.7.6}/core/server.js +111 -11
- package/framework/{v0.7.5 → v0.7.6}/lib/routing/src/main.js +30 -0
- package/framework/{v0.7.5 → v0.7.6}/package.json +2 -2
- package/gna.js +4 -4
- package/llms.txt +27 -16
- package/package.json +5 -5
- package/framework/v0.7.5/VERSION +0 -1
- package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -744
- package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/AUTHORS +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/LICENSE +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/html/static.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/config.requirements-anchor.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/ai/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/ai/lib/connector.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/couchbase/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/couchbase/lib/storage-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/duckdb/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/duckdb/lib/connector.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/mongodb/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/mongodb/lib/connector.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/mongodb/lib/job-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/mongodb/lib/session-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/mysql/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/mysql/lib/connector.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/param-redact.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/postgresql/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/postgresql/lib/connector.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/redis/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/redis/lib/connector.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/redis/lib/job-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/redis/lib/kv-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/redis/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/redis/lib/session-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/scylladb/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/scylladb/lib/connector.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/scylladb/lib/session-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/settle-once.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/sql-parser.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/sqlite/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/sqlite/lib/connector.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/sqlite/lib/job-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/sqlite/lib/kv-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/connectors/sqlite/lib/session-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/content.encoding +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/controller/controller.render-stream.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/controller/controller.render-xml.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/controller/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/controller/inline-script.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/controller/inspector-window-emit.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/controller/preload-hints.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/controller/release-banner.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/dev/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/locales/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/locales/currency.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/locales/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/mime.types +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/model/entity.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/model/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/model/template/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/csrf/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/csrf/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/csrf/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/coep/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/coep/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/coop/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/coop/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/corp/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/corp/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/csp/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/csp/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/hsts/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/hsts/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/session/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/session/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/session/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/plugins/lib/validator/src/form-validator.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/server.express.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/server.isaac.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/server.isaac.rapid-reset.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/server.route-candidates.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/status.codes +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/_gitignore +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/config/connectors.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/config/watchers.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle/locales/en.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_public/css/home.css +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_public/sw.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/conf/env.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/conf/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/conf/settings.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/console.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/context.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/data/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/data/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/data/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/json/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/json/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/json/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/path.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/prototypes.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/task.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/helpers/text.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/admin/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/admin/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/archiver/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/archiver/build.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/archiver/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/async/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/async/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/audit/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/audit/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/audit-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/authn/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/authn/src/lockout.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/authn/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/authn/src/totp.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/authz-gate/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/authz-gate/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cache/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cache/build.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cache/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cache/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/aliases.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/audit/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/audit/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/audit/verify.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/build.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/inc/boot-lines.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/inc/name.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/inc/start-status.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/man.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/mcp-start.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/mcp.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/oas.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/openapi.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/restart.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/start.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/status.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/bundle/types.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/cache/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/cache/clear.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/cache/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/cache/stats.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/add.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/infer.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/migrate.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/models.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/remove.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/rm.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/connector/test.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/container/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/container/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/container/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/container/man.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/container/ps.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/container/stop.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/add.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/inc/args.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/inc/namespace.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/inc/reference-scan.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/inc/scaffold.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/remove.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/rename.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/controller/rm.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/add.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/inc/name.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/add.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/get.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/inc/child-failure.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/inc/listen-error.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/inc/ps-titles.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/init.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/link.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/man.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/remove.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/reset.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/restart.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/start.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/status.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/stop.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/tail.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/helper.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/i18n/add.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/i18n/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/i18n/export.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/i18n/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/i18n/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/i18n/import.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/i18n/scan.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/image/_host.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/image/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/image/build.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/image/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/image/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/image/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/image/man.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/image/rm.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/image/run.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/inspector/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/inspector/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/inspector/open.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/man-render.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/minion/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/minion/kill.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/minion/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/port/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/port/set.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/add.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/backup.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/build.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/inc/name.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/man.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/rename.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/restore.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/status.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/protocol/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/protocol/remove.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/scope/inc/name.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/secrets/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/secrets/check.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/secrets/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/secrets/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/secrets/scan.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/service/help.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/service/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/service/list.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/service/man.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/service/start.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/storage/arguments.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/storage/gc.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/storage/help.txt +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/storage/stats.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/storage/verify.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd-status-format/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cmd-status-format/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/collection/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/collection/build.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/collection/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/collection/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/conf-view/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/conf-view/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/config.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/connector-config/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/connector-config/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/connector-error/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/connector-error/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/connector-registry/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/connector-registry/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cron/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cron/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/domain/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/domain/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/domain/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/dto/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/dto/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/dto-pipe/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/dto-pipe/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/dto-types/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/dto-types/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/duration/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/duration/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/error-ref/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/error-ref/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/generator/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/i18n/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/i18n/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/idempotency/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/idempotency/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/image-build/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/image-build/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/inherits/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/inherits/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/inspector-events/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/inspector-events/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/inspector-redact/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/inspector-redact/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/instrument/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/instrument/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/job/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/job/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/job-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/json-config-header/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/json-config-header/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/kv/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/kv/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/kv-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/lane/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/lane/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/loading-state/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/loading-state/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/logger/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/logger/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/logger/src/containers/mq/listener.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/logger/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/logger/src/redact.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/maintenance/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/maintenance/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/math/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/mcp-dispatch/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/mcp-dispatch/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/mcp-http/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/mcp-http/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/mcp-server/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/mcp-server/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/merge/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/merge/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/merge/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/message-validator/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/message-validator/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/metrics/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/metrics/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/model.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/money/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/money/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/multipart/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/multipart/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/net-locality/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/net-locality/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/nunjucks-filters/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/nunjucks-filters/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/nunjucks-filters/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/nunjucks-resolver/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/nunjucks-resolver/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/priority/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/priority/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/proc.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/push/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/push/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/rate-limit/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/rate-limit/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/release-watch/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/release-watch/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/render-cache/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/render-cache/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/routing/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/routing/build.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/routing/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/routing-introspect/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/routing-introspect/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/secrets/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/secrets/src/backends/env.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/secrets/src/backends/exec.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/secrets/src/backends/file.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/secrets/src/declaration.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/secrets/src/env-file.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/secrets/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/secrets/src/sources.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/security-headers-emitter/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/security-headers-emitter/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/session-lifetime/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/session-lifetime/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/session-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/shell.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/sqlite-driver.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/sri/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/sri/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/state.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/storage/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/storage/src/local-cas.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/storage/src/local-stream.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/storage/src/local.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/storage/src/meta-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/storage/src/s3.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/storage/src/util.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/storage-store.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/swig-filters/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/swig-resolver/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/swig-resolver/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/template-loaders/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/template-loaders/src/loaders/http.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/template-loaders/src/loaders/memory.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/template-loaders/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/url/README.md +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/url/index.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/url/routing.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/uuid/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/uuid/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/validator.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/watcher/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/watcher/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/ws-framing/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/ws-framing/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/ws-query/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/ws-query/src/main.js +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/ws-session/package.json +0 -0
- /package/framework/{v0.7.5 → v0.7.6}/lib/ws-session/src/main.js +0 -0
|
@@ -122,6 +122,10 @@ var _carryRedactPatterns = inspectorRedact.compile(inspectorRedact.DEFAULT_PATTE
|
|
|
122
122
|
// `link` header and the 103 Early Hints), shared with controller.render-swig.js.
|
|
123
123
|
var preloadHints = require('./preload-hints');
|
|
124
124
|
|
|
125
|
+
// #B672 — `copyOwn()`: throwError() merges into a copy of the app's error object,
|
|
126
|
+
// never into the object itself (the same home as the render delegates' #B988 copy).
|
|
127
|
+
var renderData = require('./render-data');
|
|
128
|
+
|
|
125
129
|
/**
|
|
126
130
|
* #A11Y3 — BCP-47 language tag for a framework-generated document.
|
|
127
131
|
*
|
|
@@ -718,6 +722,48 @@ var _isProdScope = process.env.NODE_SCOPE_IS_PRODUCTION && process.env.NODE_S
|
|
|
718
722
|
*/
|
|
719
723
|
var _heapLimitLabel = null;
|
|
720
724
|
|
|
725
|
+
/**
|
|
726
|
+
* #TPL3 — the `version` in each project's own `package.json`, keyed by project path, read on the
|
|
727
|
+
* first render that needs it and kept for the life of the process (a dev re-require of this
|
|
728
|
+
* module reads it again). `''` records a project whose file or field is missing, so the file is
|
|
729
|
+
* read once either way. Exposed as `page.environment.packageVersion`: the config token
|
|
730
|
+
* `${projectVersion}` is the version in the gina manifest, a different value.
|
|
731
|
+
*
|
|
732
|
+
* @private
|
|
733
|
+
* @type {Object.<string, string>}
|
|
734
|
+
*/
|
|
735
|
+
var _packageVersionByProject = {};
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Reads the `version` field of `<projectPath>/package.json`, once per project path.
|
|
739
|
+
*
|
|
740
|
+
* @inner
|
|
741
|
+
* @private
|
|
742
|
+
* @param {string} projectPath - The project root (`conf.projectPath`)
|
|
743
|
+
* @returns {string} The version, or `''` when the path, the file or a string `version` is missing
|
|
744
|
+
*
|
|
745
|
+
* @example
|
|
746
|
+
* var v = readPackageVersion('/srv/myproject'); // '3.0.43', or '' without a package.json
|
|
747
|
+
*/
|
|
748
|
+
var readPackageVersion = function(projectPath) {
|
|
749
|
+
if ( !projectPath || typeof(projectPath) != 'string' ) {
|
|
750
|
+
return '';
|
|
751
|
+
}
|
|
752
|
+
if ( typeof(_packageVersionByProject[projectPath]) == 'undefined' ) {
|
|
753
|
+
var _version = '';
|
|
754
|
+
try {
|
|
755
|
+
var _pkg = JSON.parse( fs.readFileSync(projectPath.replace(/\/+$/, '') +'/package.json', 'utf8') );
|
|
756
|
+
if ( _pkg && typeof(_pkg.version) == 'string' ) {
|
|
757
|
+
_version = _pkg.version;
|
|
758
|
+
}
|
|
759
|
+
} catch (pkgErr) {
|
|
760
|
+
// no package.json, or not JSON: the field stays unset
|
|
761
|
+
}
|
|
762
|
+
_packageVersionByProject[projectPath] = _version;
|
|
763
|
+
}
|
|
764
|
+
return _packageVersionByProject[projectPath];
|
|
765
|
+
};
|
|
766
|
+
|
|
721
767
|
/**
|
|
722
768
|
* The encoded `page.environment.forms` whisper, memoized per forms catalog object (phase-2
|
|
723
769
|
* per-request trims, slice B). The export is a function of the catalog alone, and the
|
|
@@ -1501,6 +1547,11 @@ function SuperController(options) {
|
|
|
1501
1547
|
|
|
1502
1548
|
set('page.environment.bundle', options.conf.bundle);
|
|
1503
1549
|
set('page.environment.project', options.conf.projectName);
|
|
1550
|
+
// #TPL3 — the version in the project's own package.json; not set when it has none
|
|
1551
|
+
var _packageVersion = readPackageVersion(options.conf.projectPath);
|
|
1552
|
+
if (_packageVersion) {
|
|
1553
|
+
set('page.environment.packageVersion', _packageVersion);
|
|
1554
|
+
}
|
|
1504
1555
|
set('page.environment.protocol', options.conf.server.protocol);
|
|
1505
1556
|
set('page.environment.scheme', options.conf.server.scheme);
|
|
1506
1557
|
set('page.environment.port', options.conf.server.port);
|
|
@@ -2385,6 +2436,104 @@ function SuperController(options) {
|
|
|
2385
2436
|
return refToObj( local.userData )
|
|
2386
2437
|
}
|
|
2387
2438
|
|
|
2439
|
+
/**
|
|
2440
|
+
* #TPL3 — runs the bundle's `controllers/setup.js` on the swig engine a render is about to use,
|
|
2441
|
+
* when that engine has not yet run this `setup.js` module.
|
|
2442
|
+
*
|
|
2443
|
+
* The router runs `setup.js` only for a request that reaches a controller action: the route
|
|
2444
|
+
* middlewares run first and the reserved hooks run in their `done` callback, and an XHR request
|
|
2445
|
+
* past the first one skips it (`isSetupRequired`). A route middleware that answers with
|
|
2446
|
+
* `self.render()` never calls `done`, so its template saw no bundle filter, tag or extension until
|
|
2447
|
+
* an earlier request had run `setup.js` on the same engine: a 500 `Invalid filter` from boot until
|
|
2448
|
+
* a controller request, and on every request for a route set whose middleware renders them all.
|
|
2449
|
+
* The engine is per template root and outlives the request (`getDefaultSwigEngine`), so one run
|
|
2450
|
+
* per engine is enough for its registrations. The key is the module itself, so a dev re-require
|
|
2451
|
+
* (the router evicts `setup.js` when a controller changed) runs the new code once, as the router
|
|
2452
|
+
* does; outside dev a recorded run, or a recorded absence of the file, ends the check without a
|
|
2453
|
+
* probe (#P39 (G)). The router records its own runs on the same engine, so an action request does
|
|
2454
|
+
* not run `setup.js` twice. The receiver is the router's (router.js, #B807): a fresh object
|
|
2455
|
+
* inheriting from the export, with the same 15 members. Mirrors the nunjucks delegate's
|
|
2456
|
+
* `registerUserFilters`, which runs `setup.js` at render time once per Environment.
|
|
2457
|
+
*
|
|
2458
|
+
* Not awaited, as on the router path: a `setup.js` that registers after an `await` is not waited
|
|
2459
|
+
* for. A throw, or a rejection, is logged and the render goes on (the nunjucks precedent): a
|
|
2460
|
+
* template that needs nothing from `setup.js` still renders.
|
|
2461
|
+
*
|
|
2462
|
+
* Called before the delegate re-registers gina's own filters, so a bundle filter named like one of
|
|
2463
|
+
* gina's still loses, as it does on the action path.
|
|
2464
|
+
*
|
|
2465
|
+
* @inner
|
|
2466
|
+
* @private
|
|
2467
|
+
* @param {object} engine - The swig engine the render uses (`local._swigEngine`)
|
|
2468
|
+
* @param {object} req - The request being answered
|
|
2469
|
+
* @param {object} res - Its response
|
|
2470
|
+
* @param {function} [next] - Its `next`
|
|
2471
|
+
* @returns {void}
|
|
2472
|
+
*
|
|
2473
|
+
* @example
|
|
2474
|
+
* runBundleSetupForRender(local._swigEngine, local.req, local.res, local.next);
|
|
2475
|
+
*/
|
|
2476
|
+
var runBundleSetupForRender = function(engine, req, res, next) {
|
|
2477
|
+
if ( !engine || typeof(engine) != 'object' || typeof(engine.setFilter) != 'function' ) {
|
|
2478
|
+
return;
|
|
2479
|
+
}
|
|
2480
|
+
var cacheless = self.isCacheless();
|
|
2481
|
+
if ( !cacheless && ( engine._ginaSetupFn || engine._ginaSetupAbsent ) ) {
|
|
2482
|
+
return;
|
|
2483
|
+
}
|
|
2484
|
+
var opts = local.options;
|
|
2485
|
+
if ( !opts || !opts.conf || !opts.conf.bundlesPath || !opts.bundle ) {
|
|
2486
|
+
return;
|
|
2487
|
+
}
|
|
2488
|
+
var setupFile = _(opts.conf.bundlesPath +'/'+ opts.bundle +'/controllers/setup.js', true);
|
|
2489
|
+
if ( !fs.existsSync(setupFile) ) {
|
|
2490
|
+
if ( !cacheless ) {
|
|
2491
|
+
engine._ginaSetupAbsent = true;
|
|
2492
|
+
}
|
|
2493
|
+
return;
|
|
2494
|
+
}
|
|
2495
|
+
var Setup = null;
|
|
2496
|
+
try {
|
|
2497
|
+
Setup = require(setupFile);
|
|
2498
|
+
} catch (loadErr) {
|
|
2499
|
+
console.warn('[ BUNDLE ][ '+ opts.bundle +' ][ Controller ] controllers/setup.js could not be loaded for a render: '+ (loadErr.message || loadErr));
|
|
2500
|
+
return;
|
|
2501
|
+
}
|
|
2502
|
+
if ( typeof(Setup) != 'function' || engine._ginaSetupFn === Setup ) {
|
|
2503
|
+
return;
|
|
2504
|
+
}
|
|
2505
|
+
// recorded before the call, so a render setup.js itself starts does not run it again
|
|
2506
|
+
engine._ginaSetupFn = Setup;
|
|
2507
|
+
|
|
2508
|
+
var setupContext = Object.create(Setup);
|
|
2509
|
+
setupContext.engine = engine;
|
|
2510
|
+
setupContext.getConfig = self.getConfig;
|
|
2511
|
+
setupContext.checkBundleStatus = self.checkBundleStatus;
|
|
2512
|
+
setupContext.getLocales = self.getLocales;
|
|
2513
|
+
setupContext.getFormsRules = self.getFormsRules;
|
|
2514
|
+
setupContext.throwError = ( self.serverInstance && self.serverInstance.throwError ) ? self.serverInstance.throwError : self.throwError;
|
|
2515
|
+
setupContext.redirect = self.redirect;
|
|
2516
|
+
setupContext.render = self.render;
|
|
2517
|
+
setupContext.renderJSON = self.renderJSON;
|
|
2518
|
+
setupContext.renderWithoutLayout = self.renderWithoutLayout;
|
|
2519
|
+
setupContext.isXMLRequest = self.isXMLRequest;
|
|
2520
|
+
setupContext.isWithCredentials = self.isWithCredentials;
|
|
2521
|
+
setupContext.isPopinContext = self.isPopinContext;
|
|
2522
|
+
setupContext.isCacheless = self.isCacheless;
|
|
2523
|
+
setupContext.requireController = self.requireController;
|
|
2524
|
+
|
|
2525
|
+
try {
|
|
2526
|
+
var _setupResult = Setup.apply(setupContext, [req, res, next]);
|
|
2527
|
+
if ( _setupResult && typeof(_setupResult.then) == 'function' ) {
|
|
2528
|
+
_setupResult.then(null, function onSetupRejected(setupErr) {
|
|
2529
|
+
console.warn('[ BUNDLE ][ '+ opts.bundle +' ][ Controller ] controllers/setup.js rejected during a render: '+ ( (setupErr && setupErr.message) || setupErr ));
|
|
2530
|
+
});
|
|
2531
|
+
}
|
|
2532
|
+
} catch (setupErr) {
|
|
2533
|
+
console.warn('[ BUNDLE ][ '+ opts.bundle +' ][ Controller ] controllers/setup.js threw during a render: '+ ( (setupErr && setupErr.message) || setupErr ));
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2388
2537
|
|
|
2389
2538
|
|
|
2390
2539
|
/**
|
|
@@ -2641,6 +2790,12 @@ function SuperController(options) {
|
|
|
2641
2790
|
local.options.template.h2Links = '';
|
|
2642
2791
|
}
|
|
2643
2792
|
|
|
2793
|
+
// #TPL3 — a swig render runs the bundle's setup.js on its engine when that engine has not yet
|
|
2794
|
+
// run it: a route middleware's render, or an XHR one, gets the bundle's filters as an action's does
|
|
2795
|
+
if ( _engine !== 'nunjucks' ) {
|
|
2796
|
+
runBundleSetupForRender(local._swigEngine, local.req, local.res, local.next);
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2644
2799
|
// #B932 — hand the delegate the swig module the resolver holds now (see setOptions).
|
|
2645
2800
|
swig = lib.swigResolver.get();
|
|
2646
2801
|
|
|
@@ -6786,9 +6941,22 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
6786
6941
|
* Sends an HTTP/2 request to an upstream bundle (inter-bundle `self.query()`).
|
|
6787
6942
|
* Caches sessions per-authority. Validates session freshness via pre-flight PING
|
|
6788
6943
|
* before sending on a cached session whose last PONG is older than HTTP2_PREFLIGHT_STALE_MS.
|
|
6789
|
-
* Retries up to HTTP2_MAX_RETRIES times on transient failures (
|
|
6790
|
-
*
|
|
6791
|
-
* ECONNREFUSED is never retried
|
|
6944
|
+
* Retries up to HTTP2_MAX_RETRIES times on transient failures (stream error, premature
|
|
6945
|
+
* close, 502, pre-flight failure) with HTTP2_RETRY_DELAY_MS backoff on 2nd+ retry.
|
|
6946
|
+
* ECONNREFUSED is never retried, and neither is a stream timeout (#B967): the call fails
|
|
6947
|
+
* TIMEOUT at `requestTimeout` and only its stream is cancelled (RST_STREAM CANCEL); a
|
|
6948
|
+
* connected session is kept and marked stale, so the next call's pre-flight PING proves
|
|
6949
|
+
* or evicts it, and a session that never finished connecting is evicted and destroyed.
|
|
6950
|
+
* A retry never destroys a session that other streams still use (#B968, #B628, #B982):
|
|
6951
|
+
* a premature close, a 502 or a stream reset evicts the session from the cache, and the
|
|
6952
|
+
* eviction's cleanup closes it gracefully, so its other streams finish; a session error or
|
|
6953
|
+
* a connection reset (the session itself is gone) still destroys it. A stream that ends
|
|
6954
|
+
* without its response (no response headers, or an empty body on a destroyed session)
|
|
6955
|
+
* follows the premature-close rule. A call that was never sent (its stream still pending,
|
|
6956
|
+
* or its session never connected) is re-sent for any method (#B981), and a session that
|
|
6957
|
+
* failed to connect on its own (a refused connection, a failed TLS handshake) answers with
|
|
6958
|
+
* that error, typed as the stream-error path types it, and is never re-sent.
|
|
6959
|
+
* A JSON-shaped response body is parsed and delivered as
|
|
6792
6960
|
* it came, exactly like the HTTP/1.1 handler does: no `status` is added to a body that has
|
|
6793
6961
|
* none (#P47 F6).
|
|
6794
6962
|
*
|
|
@@ -6945,6 +7113,11 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
6945
7113
|
}
|
|
6946
7114
|
|
|
6947
7115
|
client = browser.connect(authority, options);
|
|
7116
|
+
// #B967 — the stream timeout tells a session that never connected by its 'connect' event:
|
|
7117
|
+
// Bun reports client.connecting false before the TLS handshake completes (measured on
|
|
7118
|
+
// 1.2.21, 1.3.14 and 1.4.2), while Node and Bun emit 'connect' only once the session is connected
|
|
7119
|
+
client._ginaConnected = false;
|
|
7120
|
+
client.once('connect', function onSessionConnected() { client._ginaConnected = true; });
|
|
6948
7121
|
client._lastPongAt = Date.now(); // session just connected — inherently validated
|
|
6949
7122
|
|
|
6950
7123
|
// Optional but recommended on M4/Orbstack
|
|
@@ -6965,6 +7138,13 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
6965
7138
|
};
|
|
6966
7139
|
|
|
6967
7140
|
client.on('error', (error) => {
|
|
7141
|
+
// #B981 — record the error that ended this session BEFORE it connected (a refused connection, a failed
|
|
7142
|
+
// TLS handshake). On Bun 1.2 / 1.3 its streams then end without a response, and 'connect' may still fire
|
|
7143
|
+
// after this event (measured after a failed handshake), so the state is captured here for the shared
|
|
7144
|
+
// handler (_onStreamIncomplete) to read; Node and Bun 1.4 cancel those streams with this error as the
|
|
7145
|
+
// cause instead. Query-path sessions only: the flag is set where they are created, and the boot
|
|
7146
|
+
// warmup's sessions carry none.
|
|
7147
|
+
if (client._ginaConnected === false) { client._ginaConnectError = error; }
|
|
6968
7148
|
// #H9 — the whole listener body is wrapped in try/catch so that a throw
|
|
6969
7149
|
// from enhancement (undefined options.protocol/scheme), cache mutation,
|
|
6970
7150
|
// or self.throwError cannot escape an 'error' event and become an
|
|
@@ -7321,8 +7501,9 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
7321
7501
|
// (1,000 burst, then 33/s): the cached session was GOAWAY'd with INTERNAL_ERROR after
|
|
7322
7502
|
// ~1,000 calls, silently on the server side. A settled stream closes itself within
|
|
7323
7503
|
// milliseconds of `end` (the listener drop alone releases it — measured); an errored
|
|
7324
|
-
//
|
|
7325
|
-
//
|
|
7504
|
+
// one is torn down by its own error or by the session destroy the retry paths run,
|
|
7505
|
+
// and a timed-out one by the RST_STREAM(CANCEL) the timeout handler sends right after
|
|
7506
|
+
// this release (#B967), so nothing here needs a close.
|
|
7326
7507
|
// replaced: try { if (!req.closed && !req.destroyed) { req.close(); } } catch (e) {}
|
|
7327
7508
|
var _finalized = false;
|
|
7328
7509
|
var _finalizeStream = function _finalizeStream() {
|
|
@@ -7346,40 +7527,42 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
7346
7527
|
// Stream-level timeout — mirrors the HTTP/1 path (handleHTTP1ClientRequest line ~2744).
|
|
7347
7528
|
// Without this, a stream that receives no events hangs indefinitely (OrbStack ARM64
|
|
7348
7529
|
// silently drops idle inter-container TCP connections without RST or FIN).
|
|
7349
|
-
//
|
|
7350
|
-
//
|
|
7530
|
+
// #B967 — a timeout fails this call with TIMEOUT and is never re-sent: a timed-out
|
|
7531
|
+
// stream is no proof of a dead connection (measured: the re-send ran mostly against a
|
|
7532
|
+
// live but slow upstream, which then ran the action again), and the session destroy
|
|
7533
|
+
// that preceded it failed every sibling stream on the session (#B628). A connected
|
|
7534
|
+
// session is kept and marked stale, so the next call's pre-flight PING proves it or
|
|
7535
|
+
// evicts it (the keepalive PING finds a dead one too); a session that never finished
|
|
7536
|
+
// connecting carried nothing out and is evicted and destroyed (a graceful close would
|
|
7537
|
+
// wait forever for a connection that never came), so the next call opens a fresh one.
|
|
7538
|
+
// replaced: evict the session + client.destroy(), then re-send a safe method (or a
|
|
7539
|
+
// retryUnsafe call) up to HTTP2_MAX_RETRIES, the second retry after HTTP2_RETRY_DELAY_MS
|
|
7351
7540
|
var _streamTimeout = parseTimeout(options.requestTimeout) || 10000;
|
|
7352
7541
|
req.setTimeout(_streamTimeout, function onStreamTimeout() {
|
|
7353
7542
|
if (isFinished) return;
|
|
7354
7543
|
isFinished = true;
|
|
7355
|
-
|
|
7356
|
-
//
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
//
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
if (
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
handleHTTP2ClientRequest(browser, options, callback, _tNext, isCritical);
|
|
7374
|
-
}, HTTP2_RETRY_DELAY_MS);
|
|
7375
|
-
}
|
|
7376
|
-
return handleHTTP2ClientRequest(browser, options, callback, _tNext, isCritical);
|
|
7377
|
-
}
|
|
7378
|
-
// All retries exhausted — surface the error (H4: typed GinaHttp2Error)
|
|
7379
|
-
var _timeoutMsg = '[HTTP2] No response from '+ options[':authority'] +' after '+ (_streamTimeout > 1000 ? (_streamTimeout / 1000) + 's' : _streamTimeout + 'ms') +' (exhausted '+ HTTP2_MAX_RETRIES +' retries)';
|
|
7544
|
+
var _tLabel = _streamTimeout > 1000 ? (_streamTimeout / 1000) + 's' : _streamTimeout + 'ms';
|
|
7545
|
+
// a session without the flag (the boot warmup's) falls back to client.connecting
|
|
7546
|
+
if (client._ginaConnected === false || (client._ginaConnected === undefined && client.connecting)) {
|
|
7547
|
+
console.warn('[HTTP2] Stream timeout ('+ _tLabel +') on '+ options[':method'] +' '+ options[':path'] +' — the session never connected: evicting it, no re-send');
|
|
7548
|
+
if (_isCached(sessKey, client)) { cache.delete(sessKey); } // #B625 — only our entry
|
|
7549
|
+
if (!client.destroyed) client.destroy(); // no error arg — suppresses session 'error' event
|
|
7550
|
+
} else {
|
|
7551
|
+
console.warn('[HTTP2] Stream timeout ('+ _tLabel +') on '+ options[':method'] +' '+ options[':path'] +' — cancelling this stream, no re-send');
|
|
7552
|
+
// stale: the next call PINGs the session first (HTTP2_PREFLIGHT_STALE_MS)
|
|
7553
|
+
client._lastPongAt = Date.now() - HTTP2_PREFLIGHT_STALE_MS - 1;
|
|
7554
|
+
}
|
|
7555
|
+
// RST_STREAM(CANCEL) for this stream only (a pending one just leaves the queue); its
|
|
7556
|
+
// stream error comes after _finalizeStream() dropped the listeners, so a no-op takes it
|
|
7557
|
+
var _cancelStream = function _cancelStream() {
|
|
7558
|
+
try { req.on('error', function onCancelledStreamError() {}); } catch (e) {}
|
|
7559
|
+
try { if (!req.closed && !req.destroyed) { req.close(browser.constants.NGHTTP2_CANCEL); } } catch (e) {}
|
|
7560
|
+
};
|
|
7561
|
+
var _timeoutMsg = '[HTTP2] No response from '+ options[':authority'] +' after '+ _tLabel;
|
|
7380
7562
|
var _timeoutErr = new GinaHttp2Error(_timeoutMsg, { code: 'TIMEOUT', retryable: false, status: 503, retryCount: retryCount });
|
|
7381
7563
|
// #B52 — release the settled stream (covers both the swallow-return and the callback below)
|
|
7382
7564
|
_finalizeStream();
|
|
7565
|
+
_cancelStream();
|
|
7383
7566
|
// H3: if non-critical, swallow and return
|
|
7384
7567
|
if (_swallowIfNonCritical(_timeoutErr)) return;
|
|
7385
7568
|
try {
|
|
@@ -7416,13 +7599,21 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
7416
7599
|
// goaway/close listeners evict it), one that merely refused a stream is
|
|
7417
7600
|
// healthy and reused. The refused stream is already destroyed by the reset
|
|
7418
7601
|
// and its timer cleared with it (measured), so there is nothing to release.
|
|
7602
|
+
// #B981 — the third case: a stream cancelled while still PENDING (never
|
|
7603
|
+
// submitted, no stream id) by our own session destroy, which passes no error,
|
|
7604
|
+
// so the cancel has no cause (the stream timeout's destroy of a session that
|
|
7605
|
+
// never connected, the keepalive's deadline). A cancel WITH a cause comes from
|
|
7606
|
+
// a session that failed on its own (a refused connection, a failed handshake:
|
|
7607
|
+
// Node and Bun 1.4 give its pending streams that error as the cause); it takes
|
|
7608
|
+
// the generic terminal below, typed ECONNREFUSED or STREAM_ERROR, never retried.
|
|
7419
7609
|
var _neverProcessed = (errorCode === 'ERR_HTTP2_GOAWAY_SESSION')
|
|
7420
|
-
|| (errorCode === 'ERR_HTTP2_STREAM_ERROR' && req.rstCode === 7 /* NGHTTP2_REFUSED_STREAM */)
|
|
7610
|
+
|| (errorCode === 'ERR_HTTP2_STREAM_ERROR' && req.rstCode === 7 /* NGHTTP2_REFUSED_STREAM */)
|
|
7611
|
+
|| (errorCode === 'ERR_HTTP2_STREAM_CANCEL' && req.pending === true && !error.cause); // #B981 — never submitted, cancelled by our own destroy
|
|
7421
7612
|
if (retryCount < HTTP2_MAX_RETRIES && _neverProcessed) {
|
|
7422
7613
|
isFinished = true;
|
|
7423
7614
|
options.queryData = options._body; // restore body for retry
|
|
7424
7615
|
var _npNext = retryCount + 1;
|
|
7425
|
-
console.warn('[HTTP2][RETRYING] Request on '+ options[':path'] +' was refused before it was processed ('+ (errorCode === '
|
|
7616
|
+
console.warn('[HTTP2][RETRYING] Request on '+ options[':path'] +' was refused before it was processed ('+ (errorCode === 'ERR_HTTP2_STREAM_ERROR' ? 'REFUSED_STREAM' : errorCode) +') — retry '+ _npNext +'/'+ HTTP2_MAX_RETRIES +', any method');
|
|
7426
7617
|
if (_npNext > 1) {
|
|
7427
7618
|
return setTimeout(function() {
|
|
7428
7619
|
handleHTTP2ClientRequest(browser, options, callback, _npNext, isCritical);
|
|
@@ -7431,6 +7622,14 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
7431
7622
|
return handleHTTP2ClientRequest(browser, options, callback, _npNext, isCritical);
|
|
7432
7623
|
}
|
|
7433
7624
|
|
|
7625
|
+
// #B968 — an OPEN stream cancelled by our own session destroy (a cancel with no cause): Bun 1.4 reports it
|
|
7626
|
+
// this way, while Node and Bun 1.2 / 1.3 end such a stream without a response (onEnd below). Either way the
|
|
7627
|
+
// stream ended without its response, and the shared handler decides: re-sent or PREMATURE_CLOSE.
|
|
7628
|
+
if (errorCode === 'ERR_HTTP2_STREAM_CANCEL' && !error.cause) {
|
|
7629
|
+
isFinished = true;
|
|
7630
|
+
return _onStreamIncomplete();
|
|
7631
|
+
}
|
|
7632
|
+
|
|
7434
7633
|
// If the session closed exactly when we sent the request (Race Condition)
|
|
7435
7634
|
// Retry with a fresh connection (up to HTTP2_MAX_RETRIES, with backoff)
|
|
7436
7635
|
// #B612 — a server GOAWAY (ENHANCE_YOUR_CALM from a rapid-reset guard,
|
|
@@ -7452,7 +7651,10 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
7452
7651
|
if (_eIdx !== -1) self.serverInstance._http2Sessions.splice(_eIdx, 1);
|
|
7453
7652
|
_eIdx = null;
|
|
7454
7653
|
}
|
|
7455
|
-
|
|
7654
|
+
// #B982 — ERR_HTTP2_STREAM_ERROR is the upstream resetting THIS stream: the session is evicted above
|
|
7655
|
+
// (its cleanup closes it gracefully, so the other streams on it finish) and kept alive here. A session
|
|
7656
|
+
// error or a connection reset means the session itself is gone, and it is torn down as before.
|
|
7657
|
+
if (errorCode !== 'ERR_HTTP2_STREAM_ERROR' && !client.destroyed) client.destroy();
|
|
7456
7658
|
options.queryData = options._body; // restore body for retry
|
|
7457
7659
|
var _eNext = retryCount + 1;
|
|
7458
7660
|
console.warn('[HTTP2][RETRYING] Stream failed on '+ options[':path'] +' ('+ errorCode +') — retry '+ _eNext +'/'+ HTTP2_MAX_RETRIES);
|
|
@@ -7531,43 +7733,99 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
7531
7733
|
// (no callback, no query#complete). Now retries with a fresh session on
|
|
7532
7734
|
// premature close — covers GOAWAY race, server timeout, and network reset.
|
|
7533
7735
|
// Retries up to HTTP2_MAX_RETRIES times with backoff.
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7736
|
+
/**
|
|
7737
|
+
* One handler for every stream that ended without its complete response (#B968, #B981), whichever
|
|
7738
|
+
* event says so: `close` before `end` (H1), `end` with no response headers or with an empty body on
|
|
7739
|
+
* a destroyed session (onEnd below), and an open stream cancelled by our own session destroy (Bun 1.4,
|
|
7740
|
+
* onQueryError above). In order:
|
|
7741
|
+
* 1. the session failed to connect on its own (`client._ginaConnectError`, recorded by its `error`
|
|
7742
|
+
* listener before `connect`): that error is the answer, typed ECONNREFUSED (503) for a refused or
|
|
7743
|
+
* reset connection and STREAM_ERROR (500) otherwise, and the call is never re-sent;
|
|
7744
|
+
* 2. nothing was sent (the stream is still pending, or its session never connected): re-sent for any
|
|
7745
|
+
* method within HTTP2_MAX_RETRIES, with nothing to evict;
|
|
7746
|
+
* 3. else a safe method, or a `retryUnsafe` call, is re-sent on a fresh session: this one is evicted,
|
|
7747
|
+
* and the eviction's cleanup closes it gracefully, so its other streams still finish (#B628's class);
|
|
7748
|
+
* 4. else the call fails PREMATURE_CLOSE (503).
|
|
7749
|
+
* Terminals 1 and 4 release the settled stream (#B52) and deliver through the one swallow / callback
|
|
7750
|
+
* sequence; the re-sends release nothing, as every retry branch of this handler.
|
|
7751
|
+
*
|
|
7752
|
+
* @inner
|
|
7753
|
+
* @private
|
|
7754
|
+
* @returns {void}
|
|
7755
|
+
*/
|
|
7756
|
+
var _onStreamIncomplete = function _onStreamIncomplete() {
|
|
7757
|
+
var _incompleteErr;
|
|
7758
|
+
// #B981 — the session failed to connect on its own (its 'error' fired before 'connect': a refused connection,
|
|
7759
|
+
// a failed TLS handshake). Bun 1.2 / 1.3 then end its streams without a response, so that error is the answer,
|
|
7760
|
+
// typed as the stream error path types it on Node and Bun 1.4 (a cancel whose cause it is), and never re-sent:
|
|
7761
|
+
// re-sent from here, a call to a dead port never settled on Bun 1.2 / 1.3 (measured: it hung until its timeout).
|
|
7762
|
+
var _connectErr = client._ginaConnectError || null;
|
|
7763
|
+
if (_connectErr) {
|
|
7764
|
+
var _refused = /ECONNREFUSED|ECONNRESET/.test(String(_connectErr.code));
|
|
7765
|
+
_incompleteErr = new GinaHttp2Error('[HTTP2] '+ _connectErr.message, {
|
|
7766
|
+
code : _refused ? 'ECONNREFUSED' : 'STREAM_ERROR',
|
|
7767
|
+
retryable : retryCount < HTTP2_MAX_RETRIES,
|
|
7768
|
+
status : _refused ? 503 : 500,
|
|
7769
|
+
retryCount : retryCount
|
|
7770
|
+
});
|
|
7771
|
+
_incompleteErr.cause = _connectErr;
|
|
7772
|
+
if (_connectErr.accessPoint) { _incompleteErr.accessPoint = _connectErr.accessPoint; }
|
|
7773
|
+
} else {
|
|
7774
|
+
// #B981 — nothing was sent: the stream is still pending, or its session never connected (our own
|
|
7775
|
+
// destroy: the stream timeout's, the keepalive's) — replay-safe for ANY method, nothing to evict
|
|
7776
|
+
if (retryCount < HTTP2_MAX_RETRIES && (req.pending === true || client._ginaConnected === false)) {
|
|
7777
|
+
options.queryData = options._body;
|
|
7778
|
+
var _nsNext = retryCount + 1;
|
|
7779
|
+
console.warn('[HTTP2][RETRYING] Request on '+ options[':path'] +' was never sent (its session never connected) — retry '+ _nsNext +'/'+ HTTP2_MAX_RETRIES +', any method');
|
|
7780
|
+
if (_nsNext > 1) {
|
|
7781
|
+
return setTimeout(function() {
|
|
7782
|
+
handleHTTP2ClientRequest(browser, options, callback, _nsNext, isCritical);
|
|
7783
|
+
}, HTTP2_RETRY_DELAY_MS);
|
|
7784
|
+
}
|
|
7785
|
+
return handleHTTP2ClientRequest(browser, options, callback, _nsNext, isCritical);
|
|
7544
7786
|
}
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7787
|
+
console.warn('[HTTP2] Premature stream close on '+ options[':method'] +' '+ options[':path'] +' — no complete response: its session was destroyed, or the stream was reset (attempt '+ (retryCount + 1) +'/'+ (HTTP2_MAX_RETRIES + 1) +')');
|
|
7788
|
+
// #B53 — only re-send non-idempotent methods when the caller opted in (replay-safe).
|
|
7789
|
+
if (retryCount < HTTP2_MAX_RETRIES && isRetryableMethod(options[':method'], options.retryUnsafe)) {
|
|
7790
|
+
// #B968 — evicted, never destroyed: the eviction's cleanup closes the session gracefully, so the other
|
|
7791
|
+
// streams in flight on it still finish (a destroy failed them all, the #B628 class)
|
|
7792
|
+
if (_isCached(sessKey, client)) { // #B625 — only our entry
|
|
7793
|
+
cache.delete(sessKey);
|
|
7794
|
+
var _cIdx = self.serverInstance._http2Sessions.indexOf(sessKey);
|
|
7795
|
+
if (_cIdx !== -1) self.serverInstance._http2Sessions.splice(_cIdx, 1);
|
|
7796
|
+
}
|
|
7797
|
+
// (until 0.7.6 this retry also tore the session down, which failed every other stream on it)
|
|
7798
|
+
options.queryData = options._body;
|
|
7799
|
+
var _cNext = retryCount + 1;
|
|
7800
|
+
if (_cNext > 1) {
|
|
7801
|
+
return setTimeout(function() {
|
|
7802
|
+
handleHTTP2ClientRequest(browser, options, callback, _cNext, isCritical);
|
|
7803
|
+
}, HTTP2_RETRY_DELAY_MS);
|
|
7804
|
+
}
|
|
7805
|
+
return handleHTTP2ClientRequest(browser, options, callback, _cNext, isCritical);
|
|
7552
7806
|
}
|
|
7553
|
-
|
|
7807
|
+
// H4: typed GinaHttp2Error — callers can check err.code === 'PREMATURE_CLOSE'
|
|
7808
|
+
_incompleteErr = new GinaHttp2Error('[HTTP2] Stream closed before response was complete (GOAWAY / session timeout / network reset)', {
|
|
7809
|
+
code : 'PREMATURE_CLOSE',
|
|
7810
|
+
retryable : false,
|
|
7811
|
+
status : 503,
|
|
7812
|
+
retryCount : retryCount
|
|
7813
|
+
});
|
|
7554
7814
|
}
|
|
7555
|
-
// H4: typed GinaHttp2Error — callers can check err.code === 'PREMATURE_CLOSE'
|
|
7556
|
-
var prematureCloseErr = new GinaHttp2Error('[HTTP2] Stream closed before response was complete (GOAWAY / session timeout / network reset)', {
|
|
7557
|
-
code : 'PREMATURE_CLOSE',
|
|
7558
|
-
retryable : false,
|
|
7559
|
-
status : 503,
|
|
7560
|
-
retryCount : retryCount
|
|
7561
|
-
});
|
|
7562
7815
|
// #B52 — release the settled stream (covers both the swallow-return and the callback below)
|
|
7563
7816
|
_finalizeStream();
|
|
7564
7817
|
// H3: if non-critical, swallow and return
|
|
7565
|
-
if (_swallowIfNonCritical(
|
|
7818
|
+
if (_swallowIfNonCritical(_incompleteErr)) return;
|
|
7566
7819
|
try {
|
|
7567
|
-
_ownAsyncCbRejection(callback(
|
|
7820
|
+
_ownAsyncCbRejection(callback(_incompleteErr));
|
|
7568
7821
|
} catch (_syncCbErr) {
|
|
7569
7822
|
_ownSyncCbThrow(_syncCbErr);
|
|
7570
7823
|
}
|
|
7824
|
+
};
|
|
7825
|
+
req.on('close', function onQueryClosed() {
|
|
7826
|
+
if (isFinished) return;
|
|
7827
|
+
isFinished = true;
|
|
7828
|
+
_onStreamIncomplete();
|
|
7571
7829
|
});
|
|
7572
7830
|
|
|
7573
7831
|
req.on('end', function onEnd() {
|
|
@@ -7578,16 +7836,19 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
7578
7836
|
// Assemble chunks into a single string — one allocation, one conversion
|
|
7579
7837
|
data = Buffer.concat(chunks).toString();
|
|
7580
7838
|
|
|
7581
|
-
// 2. Guard Clause:
|
|
7839
|
+
// 2. Guard Clause: a stream that ended without its response, then an empty response
|
|
7840
|
+
// #B968 — no response headers, or an empty body on a session destroyed under it, is not a response: the
|
|
7841
|
+
// shared handler re-sends or fails it. The stream's own `destroyed` is no longer read: Bun 1.2 / 1.3 set
|
|
7842
|
+
// it at every normal end, which turned every empty body (HEAD, 204, an empty 404) into a 500. Known limit
|
|
7843
|
+
// (#B985): on Bun 1.2 / 1.3 the session also reads destroyed while it closes gracefully, so an empty body
|
|
7844
|
+
// completing then is read as incomplete (a safe method is sent again, an unsafe one fails).
|
|
7845
|
+
if (httpStatus === null || ((!data || data.trim() === "") && client.destroyed)) {
|
|
7846
|
+
return _onStreamIncomplete();
|
|
7847
|
+
}
|
|
7582
7848
|
if (!data || data.trim() === "") {
|
|
7583
|
-
//
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
} else {
|
|
7587
|
-
// Might be a 204 No Content, but usually the upstream bundle should return {}
|
|
7588
|
-
console.warn('[HTTP2] Empty response received');
|
|
7589
|
-
data = { status: 200, empty: true };
|
|
7590
|
-
}
|
|
7849
|
+
// Might be a 204 No Content, but usually the upstream bundle should return {}
|
|
7850
|
+
console.warn('[HTTP2] Empty response received');
|
|
7851
|
+
data = { status: 200, empty: true };
|
|
7591
7852
|
}
|
|
7592
7853
|
|
|
7593
7854
|
// H2 fix: 502 from nginx means the upstream bundle was unreachable (idle TCP
|
|
@@ -7598,12 +7859,13 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
7598
7859
|
var _502Next = retryCount + 1;
|
|
7599
7860
|
console.warn('[HTTP2][RETRYING] 502 from '+ options[':authority'] + options[':path'] +' — retry '+ _502Next +'/'+ HTTP2_MAX_RETRIES +' in 2s');
|
|
7600
7861
|
setTimeout(function onHttp2RetryAfter502() {
|
|
7862
|
+
// #B628 (its 502 half) — evicted, not torn down: the eviction's cleanup closes the session
|
|
7863
|
+
// gracefully, so the other streams in flight on it still answer (before 0.7.6 they all failed)
|
|
7601
7864
|
if (_isCached(sessKey, client)) { // #B625 — only our entry
|
|
7602
7865
|
cache.delete(sessKey);
|
|
7603
7866
|
var _rIdx = self.serverInstance._http2Sessions.indexOf(sessKey);
|
|
7604
7867
|
if (_rIdx !== -1) self.serverInstance._http2Sessions.splice(_rIdx, 1);
|
|
7605
7868
|
}
|
|
7606
|
-
if (!client.destroyed) client.destroy();
|
|
7607
7869
|
options.queryData = options._body;
|
|
7608
7870
|
handleHTTP2ClientRequest(browser, options, callback, _502Next, isCritical);
|
|
7609
7871
|
}, 2000);
|
|
@@ -9592,7 +9854,9 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
9592
9854
|
if (_lastArg.stack) errorObject.stack = _lastArg.stack;
|
|
9593
9855
|
if (!errorObject.error) errorObject.error = _lastArg.message || standardErrorMessage;
|
|
9594
9856
|
} else {
|
|
9595
|
-
|
|
9857
|
+
// #B672 — merge into a copy: the app's object is never written.
|
|
9858
|
+
// was: errorObject = merge(_lastArg, errorObject);
|
|
9859
|
+
errorObject = merge(renderData.copyOwn(_lastArg), errorObject);
|
|
9596
9860
|
}
|
|
9597
9861
|
} else if (
|
|
9598
9862
|
!(arguments[arguments.length-1] instanceof Error)
|
|
@@ -9612,7 +9876,14 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
9612
9876
|
&& typeof(res.error) != 'undefined'
|
|
9613
9877
|
&& typeof(res.errors) != 'undefined'
|
|
9614
9878
|
) { // ApiError merge
|
|
9615
|
-
|
|
9879
|
+
// #B672 — merge into a copy of the app's object. As the target of the
|
|
9880
|
+
// merge, the object itself received `status`, then the incident `ref`, a
|
|
9881
|
+
// callsite `stack` and the custom error page's data, so an object reused
|
|
9882
|
+
// across requests (a module-level error catalogue) answered a later
|
|
9883
|
+
// request with the first request's ref and, carrying a stack, lost its
|
|
9884
|
+
// `fields` on the HTML page.
|
|
9885
|
+
// was: errorObject = merge(arguments[arguments.length-1], errorObject)
|
|
9886
|
+
errorObject = merge(renderData.copyOwn(arguments[arguments.length-1]), errorObject)
|
|
9616
9887
|
}
|
|
9617
9888
|
|
|
9618
9889
|
// #B518 — a ONE-argument error object keeps its `message` and its `ref`.
|
|
@@ -9627,7 +9898,8 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
9627
9898
|
// built. Both values are checked downstream like any other: the ref is
|
|
9628
9899
|
// honoured only when relay-safe, and a message carrying a stack keeps its
|
|
9629
9900
|
// first line outside the local scope (#B670). After the ApiError merge
|
|
9630
|
-
// above `errorObject`
|
|
9901
|
+
// above `errorObject` is a copy of the caller's object (#B672), which
|
|
9902
|
+
// carries the same `message` and `ref`, so nothing is written there.
|
|
9631
9903
|
if ( arguments.length == 1 && res && typeof(res) == 'object' ) {
|
|
9632
9904
|
if ( typeof(errorObject.message) == 'undefined' && typeof(res.message) == 'string' && res.message != '' ) {
|
|
9633
9905
|
errorObject.message = res.message;
|
|
@@ -10098,18 +10370,26 @@ if ( /^local$/i.test(process.env.NODE_SCOPE) ) {
|
|
|
10098
10370
|
// via renderCustomError at L5266-5281 are consumer-owned.
|
|
10099
10371
|
if (msg.stack && _isLocalScope) {
|
|
10100
10372
|
|
|
10373
|
+
// #B672 — trim a local copy: `msg` is the caller's own object (an
|
|
10374
|
+
// Error or a plain object passed as the last argument), and the
|
|
10375
|
+
// trimmed text used to be written back into its `stack` at every call.
|
|
10376
|
+
// was: if (msg.error) { msg.stack = msg.stack.replace(msg.error, '') }
|
|
10377
|
+
// was: if (msg.message) { msg.stack = msg.stack.replace(msg.message, '') }
|
|
10378
|
+
// was: msg.stack = msg.stack.replace('Error:', '').replace(' ', '');
|
|
10379
|
+
var _msgStack = msg.stack;
|
|
10380
|
+
|
|
10101
10381
|
if (msg.error) {
|
|
10102
|
-
|
|
10382
|
+
_msgStack = _msgStack.replace(msg.error, '')
|
|
10103
10383
|
}
|
|
10104
10384
|
|
|
10105
10385
|
if (msg.message) {
|
|
10106
|
-
|
|
10386
|
+
_msgStack = _msgStack.replace(msg.message, '')
|
|
10107
10387
|
}
|
|
10108
10388
|
|
|
10109
|
-
|
|
10389
|
+
_msgStack = _msgStack.replace('Error:', '').replace(' ', '');
|
|
10110
10390
|
// was: msgString += '<pre class="'+ eCode +' stack">'+ msg.stack +'</pre>';
|
|
10111
10391
|
// #B554 — escape: this value is caller-supplied and reached the page as markup.
|
|
10112
|
-
msgString += '<pre class="'+ eCode +' stack">'+ _escapeHtml(
|
|
10392
|
+
msgString += '<pre class="'+ eCode +' stack">'+ _escapeHtml(_msgStack) +'</pre>';
|
|
10113
10393
|
}
|
|
10114
10394
|
|
|
10115
10395
|
} else {
|