gina 0.7.13 → 0.7.14
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 +20 -0
- package/README.md +42 -39
- package/ROADMAP.md +2 -0
- package/framework/v0.7.14/VERSION +1 -0
- package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/index.js +121 -14
- package/framework/{v0.7.13 → v0.7.14}/core/connectors/sqlite/index.js +69 -6
- package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.js +31 -3
- package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-json.js +19 -1
- package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-nunjucks.js +19 -1
- package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-swig.js +29 -1
- package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-v1.js +4 -0
- package/framework/{v0.7.13 → v0.7.14}/core/gna.js +67 -57
- package/framework/{v0.7.13 → v0.7.14}/core/server.isaac.js +36 -2
- package/framework/{v0.7.13 → v0.7.14}/core/server.js +436 -182
- package/framework/{v0.7.13 → v0.7.14}/helpers/json/src/main.js +48 -16
- package/framework/{v0.7.13 → v0.7.14}/lib/cache/src/main.js +10 -3
- package/framework/{v0.7.13 → v0.7.14}/lib/render-cache/src/main.js +487 -25
- package/framework/{v0.7.13 → v0.7.14}/lib/sqlite-driver.js +20 -4
- package/framework/{v0.7.13 → v0.7.14}/package.json +1 -1
- package/gna.js +4 -4
- package/llms.txt +12 -12
- package/package.json +3 -3
- package/framework/v0.7.13/VERSION +0 -1
- /package/framework/{v0.7.13 → v0.7.14}/AUTHORS +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/LICENSE +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/html/static.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/config.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/config.param-bindings.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/config.requirements-anchor.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/ai/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/ai/lib/connector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/storage-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/duckdb/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/duckdb/lib/connector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mongodb/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mongodb/lib/connector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mongodb/lib/job-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mongodb/lib/session-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mysql/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mysql/lib/connector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/param-redact.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/postgresql/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/postgresql/lib/connector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/lib/connector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/lib/job-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/lib/kv-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/lib/session-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/scylladb/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/scylladb/lib/connector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/scylladb/lib/session-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/settle-once.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/sql-parser.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/sqlite/lib/connector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/sqlite/lib/job-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/sqlite/lib/kv-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/connectors/sqlite/lib/session-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/content.encoding +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-nunjucks-async.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-stream.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-swig-async.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-xml.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/inline-script.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/inspector-window-emit.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/layout-source.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/preload-hints.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/release-banner.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/render-data.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/controller/render-session.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/dev/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/locales/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/locales/currency.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/locales/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/mime.types +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/model/entity.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/model/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/model/template/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/csrf/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/csrf/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/csrf/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coep/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coep/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coop/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coop/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/corp/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/corp/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/csp/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/csp/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hsts/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hsts/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/session/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/session/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/session/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/validator/src/form-validator.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/validator/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/router.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/server.express.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/server.isaac.early-answer.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/server.isaac.rapid-reset.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/server.route-candidates.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/status.codes +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/_gitignore +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/connectors.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/watchers.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/locales/en.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/css/home.css +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/sw.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/env.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/settings.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/console.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/context.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/data/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/data/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/data/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/json/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/json/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/path.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/prototypes.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/task.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/helpers/text.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/admin/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/admin/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/archiver/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/archiver/build.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/archiver/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/async/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/async/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/audit/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/audit/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/audit-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/authn/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/authn/src/lockout.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/authn/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/authn/src/totp.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/authz-gate/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/authz-gate/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cache/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cache/build.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cache/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/aliases.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/audit/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/audit/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/audit/verify.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/build.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/inc/boot-lines.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/inc/name.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/inc/start-status.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/man.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/mcp-start.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/mcp.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/oas.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/openapi.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/restart.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/start.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/status.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/types.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/cache/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/cache/clear.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/cache/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/cache/stats.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/add.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/infer.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/migrate.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/models.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/remove.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/rm.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/test.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/man.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/ps.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/stop.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/add.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/inc/args.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/inc/namespace.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/inc/reference-scan.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/inc/scaffold.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/remove.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/rename.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/rm.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/add.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/inc/name.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/add.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/get.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/inc/child-failure.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/inc/listen-error.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/inc/ps-titles.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/init.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/link.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/man.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/remove.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/reset.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/restart.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/start.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/status.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/stop.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/tail.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/helper.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/add.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/export.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/import.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/scan.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/_host.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/build.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/man.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/rm.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/run.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/inspector/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/inspector/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/inspector/open.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/man-render.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/minion/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/minion/kill.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/minion/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/set.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/add.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/backup.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/build.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/inc/name.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/man.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/rename.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/restore.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/status.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/remove.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/inc/name.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/secrets/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/secrets/check.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/secrets/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/secrets/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/secrets/scan.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/service/help.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/service/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/service/list.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/service/man.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/service/start.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/storage/arguments.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/storage/gc.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/storage/help.txt +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/storage/stats.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/storage/verify.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd-status-format/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cmd-status-format/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/collection/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/collection/build.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/collection/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/collection/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/conf-view/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/conf-view/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/config.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/connector-config/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/connector-config/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/connector-error/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/connector-error/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/connector-registry/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/connector-registry/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cron/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cron/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/domain/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/domain/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/domain/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/dto/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/dto/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/dto-pipe/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/dto-pipe/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/dto-types/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/dto-types/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/duration/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/duration/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/error-ref/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/error-ref/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/generator/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/i18n/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/i18n/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/idempotency/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/idempotency/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/image-build/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/image-build/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/inherits/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/inherits/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/inspector-events/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/inspector-events/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/inspector-redact/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/inspector-redact/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/instrument/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/instrument/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/job/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/job/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/job-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/json-config-header/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/json-config-header/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/kv/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/kv/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/kv-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/lane/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/lane/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/loading-state/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/loading-state/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/logger/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/logger/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/containers/mq/listener.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/redact.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/maintenance/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/maintenance/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/math/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-dispatch/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-dispatch/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-http/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-http/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-server/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-server/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/merge/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/merge/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/merge/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/message-validator/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/message-validator/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/metrics/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/metrics/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/model.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/money/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/money/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/multipart/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/multipart/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/net-locality/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/net-locality/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/nunjucks-filters/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/nunjucks-filters/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/nunjucks-filters/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/nunjucks-resolver/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/nunjucks-resolver/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/priority/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/priority/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/proc.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/push/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/push/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/rate-limit/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/rate-limit/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/release-watch/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/release-watch/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/render-cache/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/routing/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/routing/build.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/routing/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/routing/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/routing-introspect/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/routing-introspect/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/backends/env.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/backends/exec.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/backends/file.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/declaration.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/env-file.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/sources.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/security-headers-emitter/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/security-headers-emitter/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/session-lifetime/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/session-lifetime/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/session-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/shell.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/sri/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/sri/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/stall-watchdog/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/stall-watchdog/src/detector.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/stall-watchdog/src/frames.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/stall-watchdog/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/stall-watchdog/src/worker.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/state.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/storage/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/local-cas.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/local-stream.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/local.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/meta-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/s3.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/util.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/storage-store.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/swig-filters/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/swig-resolver/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/swig-resolver/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/template-loaders/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/template-loaders/src/loaders/http.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/template-loaders/src/loaders/memory.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/template-loaders/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/url/README.md +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/url/index.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/url/routing.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/uuid/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/uuid/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/validator.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/watcher/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/watcher/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/ws-framing/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/ws-framing/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/ws-query/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/ws-query/src/main.js +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/ws-session/package.json +0 -0
- /package/framework/{v0.7.13 → v0.7.14}/lib/ws-session/src/main.js +0 -0
|
@@ -56,12 +56,23 @@ var fs = require('fs');
|
|
|
56
56
|
var crypto = require('crypto');
|
|
57
57
|
var Cache = require('../../cache/src/main');
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* #B1132 — the shape of a request-variant segment: `v` + 32 lowercase hex (the first 128
|
|
61
|
+
* bits of the SHA-256 of the variant's readable form, see {@link RenderCache.buildVariant}).
|
|
62
|
+
* Unambiguous as a key segment (a URL starts with `/` or a scheme, never with this) and safe
|
|
63
|
+
* as a path segment.
|
|
64
|
+
*
|
|
65
|
+
* @inner
|
|
66
|
+
* @constant {RegExp}
|
|
67
|
+
*/
|
|
68
|
+
var VARIANT_SEGMENT_RE = /^v[0-9a-f]{32}$/;
|
|
69
|
+
|
|
59
70
|
/**
|
|
60
71
|
* Build the on-disk paths for an `fs`-strategy entry. Single source of truth
|
|
61
72
|
* shared by `set('fs')` (write) and the read-back (`has`/`get`), so the write
|
|
62
73
|
* filename and the read-back filename can never drift.
|
|
63
74
|
*
|
|
64
|
-
* Layout: `<root>/<bundle>[/<token>]/<html|data><url>.<ext>`, trailing-slash
|
|
75
|
+
* Layout: `<root>/<bundle>[/<token>][/<variant>]/<html|data><url>.<ext>`, trailing-slash
|
|
65
76
|
* url → `.../index.<ext>`, resolved through the `_` PathObject global exactly
|
|
66
77
|
* as the pre-strategy code did. The release-namespace `token` (empty by
|
|
67
78
|
* default) is a path segment under the bundle so a namespace change lands NEW
|
|
@@ -74,26 +85,33 @@ var Cache = require('../../cache/src/main');
|
|
|
74
85
|
* @param {string} bundle - Bundle name.
|
|
75
86
|
* @param {string} kind - 'data' (JSON, `/data`+`.json`) | anything else (HTML, `/html`+`.html`).
|
|
76
87
|
* @param {string} url - Request URL (`req.originalUrl`).
|
|
88
|
+
* @param {string} [variant] - #B1132 — the request variant's segment (`v` + 32 hex, see
|
|
89
|
+
* {@link RenderCache.buildVariant}), or '' for none.
|
|
77
90
|
* @returns {{ body: string, meta: string }} Absolute body path + its `.meta` sidecar path.
|
|
78
91
|
*/
|
|
79
|
-
function fsPaths(root, token, bundle, kind, url) {
|
|
92
|
+
function fsPaths(root, token, bundle, kind, url, variant) {
|
|
80
93
|
var sub = ( kind === 'data' ) ? '/data' : '/html';
|
|
81
94
|
var ext = ( kind === 'data' ) ? '.json' : '.html';
|
|
82
95
|
if ( url.endsWith('/') ) {
|
|
83
96
|
url += 'index';
|
|
84
97
|
}
|
|
85
98
|
var ns = token ? ('/' + token) : '';
|
|
86
|
-
|
|
99
|
+
// #B1132 — each variant of a URL has its own file: the segment is a directory under the
|
|
100
|
+
// release namespace (a path segment by construction, see VARIANT_SEGMENT_RE).
|
|
101
|
+
var vs = ( variant && VARIANT_SEGMENT_RE.test(variant) ) ? ('/' + variant) : '';
|
|
102
|
+
var body = _(root + '/' + bundle + ns + vs + sub + url + ext, true);
|
|
87
103
|
return { body: body, meta: body + '.meta' };
|
|
88
104
|
}
|
|
89
105
|
|
|
90
106
|
/**
|
|
91
107
|
* Parse an `fs`-eligible cache key into the pieces needed to reconstruct its
|
|
92
|
-
* on-disk path. Key shape: `[<token>:]<static|data>:<bundle
|
|
93
|
-
* optional leading segment is the release namespace `buildKey` prepends
|
|
108
|
+
* on-disk path. Key shape: `[<token>:]<static|data>:<bundle>:[<variant>:]<url>`
|
|
109
|
+
* (the optional leading segment is the release namespace `buildKey` prepends; the
|
|
110
|
+
* optional segment after the bundle is the #B1132 request variant, `v` + 32 hex). The
|
|
94
111
|
* url may itself contain colons (querystrings), so it is the rejoined
|
|
95
112
|
* remainder; `buildKey` sanitizes the token to `[A-Za-z0-9._-]` (no colon), so
|
|
96
|
-
* the leading segments split unambiguously
|
|
113
|
+
* the leading segments split unambiguously, and a URL starts with `/` (or a
|
|
114
|
+
* scheme), never with a variant-shaped segment.
|
|
97
115
|
*
|
|
98
116
|
* `static:` → HTML kind, `data:` → JSON kind (mirrors the delegate write:
|
|
99
117
|
* swig/nunjucks write `static:`+kind `html`, json writes `data:`+kind `data`).
|
|
@@ -102,7 +120,7 @@ function fsPaths(root, token, bundle, kind, url) {
|
|
|
102
120
|
*
|
|
103
121
|
* @inner
|
|
104
122
|
* @param {string} key
|
|
105
|
-
* @returns {{ token: string, kind: string, bundle: string, url: string }|null}
|
|
123
|
+
* @returns {{ token: string, kind: string, bundle: string, variant: string, url: string }|null}
|
|
106
124
|
*/
|
|
107
125
|
function parseFsKey(key) {
|
|
108
126
|
if ( typeof(key) != 'string' ) {
|
|
@@ -120,12 +138,18 @@ function parseFsKey(key) {
|
|
|
120
138
|
if ( prefix !== 'static' && prefix !== 'data' ) {
|
|
121
139
|
return null;
|
|
122
140
|
}
|
|
123
|
-
var bundle
|
|
124
|
-
var
|
|
141
|
+
var bundle = parts[idx + 1];
|
|
142
|
+
var urlAt = idx + 2;
|
|
143
|
+
var variant = '';
|
|
144
|
+
if ( VARIANT_SEGMENT_RE.test(parts[urlAt] || '') ) {
|
|
145
|
+
variant = parts[urlAt];
|
|
146
|
+
urlAt++;
|
|
147
|
+
}
|
|
148
|
+
var url = parts.slice(urlAt).join(':');
|
|
125
149
|
if ( !bundle || !url ) {
|
|
126
150
|
return null;
|
|
127
151
|
}
|
|
128
|
-
return { token: token, kind: ( prefix === 'data' ) ? 'data' : 'html', bundle: bundle, url: url };
|
|
152
|
+
return { token: token, kind: ( prefix === 'data' ) ? 'data' : 'html', bundle: bundle, variant: variant, url: url };
|
|
129
153
|
}
|
|
130
154
|
|
|
131
155
|
/**
|
|
@@ -278,7 +302,7 @@ function RenderCache(options) {
|
|
|
278
302
|
if ( !p ) {
|
|
279
303
|
return null;
|
|
280
304
|
}
|
|
281
|
-
return fsPaths(_cachePath, p.token, p.bundle, p.kind, p.url).body;
|
|
305
|
+
return fsPaths(_cachePath, p.token, p.bundle, p.kind, p.url, p.variant).body;
|
|
282
306
|
}
|
|
283
307
|
|
|
284
308
|
/**
|
|
@@ -325,6 +349,10 @@ function RenderCache(options) {
|
|
|
325
349
|
responseHeaders : meta.responseHeaders,
|
|
326
350
|
visibility : meta.visibility
|
|
327
351
|
};
|
|
352
|
+
// #B1132 — the readable request variant the writer stored (listed by stats()).
|
|
353
|
+
if ( typeof(meta.variant) === 'string' ) {
|
|
354
|
+
entry.variant = meta.variant;
|
|
355
|
+
}
|
|
328
356
|
var hasTtl = ( typeof(meta.ttl) != 'undefined' && meta.ttl > 0 );
|
|
329
357
|
|
|
330
358
|
if ( meta.sliding === true ) {
|
|
@@ -410,11 +438,24 @@ function RenderCache(options) {
|
|
|
410
438
|
* @param {string} kind - 'static' (HTML) | 'data' (JSON).
|
|
411
439
|
* @param {string} bundle - Bundle name.
|
|
412
440
|
* @param {string} url - Request URL (`req.originalUrl` on write, `request.url` on read).
|
|
441
|
+
* @param {object} [variant] - #B1132 — the request variant ({@link RenderCache.buildVariant},
|
|
442
|
+
* stamped once per request as `req._ginaCacheVariant`): its
|
|
443
|
+
* segment sits between the bundle and the URL, so each variant
|
|
444
|
+
* of a URL is its own entry. The engines and the writers always
|
|
445
|
+
* pass one; without a valid one the key keeps the pre-#B1132
|
|
446
|
+
* format.
|
|
413
447
|
* @returns {string} The namespaced cache key.
|
|
448
|
+
*
|
|
449
|
+
* @example
|
|
450
|
+
* var v = RenderCache.buildVariant({ host: 'https://a.example', prefix: '', culture: 'fr' });
|
|
451
|
+
* renderCache.buildKey('static', 'demo', '/page', v); // 'static:demo:v<32 hex>:/page'
|
|
414
452
|
*/
|
|
415
|
-
instance.buildKey = function(kind, bundle, url) {
|
|
453
|
+
instance.buildKey = function(kind, bundle, url, variant) {
|
|
416
454
|
var token = resolveReleaseToken();
|
|
417
|
-
|
|
455
|
+
var seg = ( variant && typeof(variant.segment) === 'string' && VARIANT_SEGMENT_RE.test(variant.segment) )
|
|
456
|
+
? variant.segment + ':'
|
|
457
|
+
: '';
|
|
458
|
+
return ( token ? token + ':' : '' ) + kind + ':' + bundle + ':' + seg + url;
|
|
418
459
|
};
|
|
419
460
|
|
|
420
461
|
/**
|
|
@@ -423,7 +464,7 @@ function RenderCache(options) {
|
|
|
423
464
|
* Behaviour-identical extraction of the memory/fs branch previously inlined
|
|
424
465
|
* in each render delegate's `writeCache()`:
|
|
425
466
|
* - `memory` — stamps `fromMemory: true` + the inline `content`, `set()`s it.
|
|
426
|
-
* - `fs` — writes the body to `<path>/<bundle
|
|
467
|
+
* - `fs` — writes the body to `<path>/<bundle>[/<token>][/<variant>]/<html|data><url>.<html|json>`
|
|
427
468
|
* (creating the dir), stamps `filename`, `set()`s the entry with
|
|
428
469
|
* a cleanup fn that removes the file (+ its `.meta`) on eviction,
|
|
429
470
|
* and writes a `<file>.meta` JSON sidecar carrying everything the
|
|
@@ -433,10 +474,16 @@ function RenderCache(options) {
|
|
|
433
474
|
* behaviour: neither `/^memory$/` nor `/^fs$/` matched, so
|
|
434
475
|
* nothing was stored).
|
|
435
476
|
*
|
|
477
|
+
* Before any strategy stores it, `entry.responseHeaders` loses the filling
|
|
478
|
+
* request's per-request headers ({@link RenderCache.PER_REQUEST_HEADERS}) and the
|
|
479
|
+
* headers a hit recomputes ({@link RenderCache.RECOMPUTED_HEADERS}); an entry that
|
|
480
|
+
* carries a `variant` (#B1132) has {@link RenderCache.VARY_HEADERS} appended to its
|
|
481
|
+
* `Vary` ({@link RenderCache.withVariantVary}). The caller's snapshot is never mutated.
|
|
482
|
+
*
|
|
436
483
|
* @memberof RenderCache
|
|
437
484
|
* @param {string} type - 'memory' | 'fs' (case-insensitive).
|
|
438
485
|
* @param {string} key - Fully-namespaced cache key.
|
|
439
|
-
* @param {object} entry - The cache entry (responseHeaders / visibility / ttl / sliding / maxAge).
|
|
486
|
+
* @param {object} entry - The cache entry (responseHeaders / visibility / ttl / sliding / maxAge / variant).
|
|
440
487
|
* @param {object} [payload]
|
|
441
488
|
* @param {string} [payload.content] - Rendered body (memory: stored inline; fs: written to disk).
|
|
442
489
|
* @param {string} [payload.path] - Cache root (`server.cache.path`) — fs only.
|
|
@@ -448,13 +495,24 @@ function RenderCache(options) {
|
|
|
448
495
|
instance.set = async function(type, key, entry, payload) {
|
|
449
496
|
payload = payload || {};
|
|
450
497
|
|
|
451
|
-
// #B1100 / #B1101 — never store the filling request's per-request headers
|
|
452
|
-
// X-Request-Id, its Set-Cookie
|
|
453
|
-
// memory Map, the fs .meta sidecar, the
|
|
454
|
-
// the visitors that come after. The
|
|
498
|
+
// #B1100 / #B1101 / #B1105 — never store the filling request's per-request headers
|
|
499
|
+
// (its X-Request-Id, its Set-Cookie, its RateLimit and RateLimit-Policy): every
|
|
500
|
+
// strategy below stores this snapshot (the memory Map, the fs .meta sidecar, the
|
|
501
|
+
// redis L2 value) and every hit replays it to the visitors that come after. The
|
|
502
|
+
// filling request's own response keeps them.
|
|
455
503
|
if ( entry && entry.responseHeaders ) {
|
|
456
504
|
entry.responseHeaders = RenderCache.omitPerRequestHeaders(entry.responseHeaders);
|
|
457
505
|
}
|
|
506
|
+
// #B1104 — nor the headers each hit computes for its own request (its
|
|
507
|
+
// Access-Control-Allow-Origin). #B1164 — an entry keyed on a request variant (#B1132:
|
|
508
|
+
// every render delegate's) lists the variant's request headers in Vary, so a hit served
|
|
509
|
+
// by a release that does not append them (a peer replica on a shared L2) still sends them.
|
|
510
|
+
if ( entry && entry.responseHeaders ) {
|
|
511
|
+
entry.responseHeaders = RenderCache.omitRecomputedHeaders(entry.responseHeaders);
|
|
512
|
+
if ( typeof(entry.variant) === 'string' ) {
|
|
513
|
+
entry.responseHeaders = RenderCache.withVariantVary(entry.responseHeaders);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
458
516
|
|
|
459
517
|
if ( /^memory$/i.test(type) ) {
|
|
460
518
|
entry.fromMemory = true;
|
|
@@ -471,7 +529,9 @@ function RenderCache(options) {
|
|
|
471
529
|
// read-back filename (fsBodyFor, also key-derived) cannot drift.
|
|
472
530
|
var _pk = parseFsKey(key);
|
|
473
531
|
var _token = _pk ? _pk.token : '';
|
|
474
|
-
|
|
532
|
+
// #B1132 — the variant segment too comes from the key, as the read-back derives it.
|
|
533
|
+
var _variant = _pk ? _pk.variant : '';
|
|
534
|
+
var p = fsPaths(payload.path, _token, payload.bundle, payload.kind, payload.url, _variant);
|
|
475
535
|
var filename = p.body;
|
|
476
536
|
var dir = filename.split(/\//g).slice(0, -1).join('/');
|
|
477
537
|
var dirObj = new _(dir);
|
|
@@ -498,7 +558,9 @@ function RenderCache(options) {
|
|
|
498
558
|
sliding : entry.sliding === true,
|
|
499
559
|
maxAge : entry.maxAge,
|
|
500
560
|
visibility : entry.visibility,
|
|
501
|
-
responseHeaders : entry.responseHeaders
|
|
561
|
+
responseHeaders : entry.responseHeaders,
|
|
562
|
+
// #B1132 — the readable request variant (omitted when the writer gave none)
|
|
563
|
+
variant : entry.variant
|
|
502
564
|
};
|
|
503
565
|
await fs.promises.writeFile(p.meta, JSON.stringify(meta));
|
|
504
566
|
return;
|
|
@@ -538,7 +600,9 @@ function RenderCache(options) {
|
|
|
538
600
|
_l2Value = JSON.stringify({
|
|
539
601
|
content : payload.content,
|
|
540
602
|
responseHeaders : entry.responseHeaders,
|
|
541
|
-
visibility : entry.visibility
|
|
603
|
+
visibility : entry.visibility,
|
|
604
|
+
// #B1132 — the readable request variant (omitted when the writer gave none)
|
|
605
|
+
variant : entry.variant
|
|
542
606
|
});
|
|
543
607
|
} catch (e) {
|
|
544
608
|
return; // unserializable payload → L1-only (fail-open)
|
|
@@ -615,6 +679,10 @@ function RenderCache(options) {
|
|
|
615
679
|
responseHeaders : parsed.responseHeaders,
|
|
616
680
|
visibility : parsed.visibility
|
|
617
681
|
};
|
|
682
|
+
// #B1132 — the readable request variant the writer stored (listed by stats()).
|
|
683
|
+
if ( typeof(parsed.variant) === 'string' ) {
|
|
684
|
+
entry.variant = parsed.variant;
|
|
685
|
+
}
|
|
618
686
|
// Remaining life from PTTL (ms → s). null (no expiry) → non-expiring L1
|
|
619
687
|
// entry, matching a non-ttl memory entry.
|
|
620
688
|
if ( raw.ttlMs && raw.ttlMs > 0 ) {
|
|
@@ -1183,10 +1251,13 @@ RenderCache.swapNonces = function (content, oldNonces, nonce) {
|
|
|
1183
1251
|
|
|
1184
1252
|
/**
|
|
1185
1253
|
* The response headers that belong to ONE request, so a render-cache entry never stores
|
|
1186
|
-
* them and a hit never replays them (#B1100, #B1101): `x-request-id`, the correlation id
|
|
1254
|
+
* them and a hit never replays them (#B1100, #B1101, #B1105): `x-request-id`, the correlation id
|
|
1187
1255
|
* every response echoes as its own, and `set-cookie`, the cookies set for the visitor whose
|
|
1188
1256
|
* request filled the entry (a token cookie set by middleware before the render, or any
|
|
1189
|
-
* cookie an action sets)
|
|
1257
|
+
* cookie an action sets); and `ratelimit` with `ratelimit-policy` (#B1105), the standing
|
|
1258
|
+
* the router's rate-limit gate reports to the caller whose request it counted: a hit answers
|
|
1259
|
+
* before that gate, so it is not counted and carries neither, as an unidentified caller's
|
|
1260
|
+
* answer does. Lowercase, as `res.getHeaders()` returns them.
|
|
1190
1261
|
*
|
|
1191
1262
|
* `instance.set()` drops them before any strategy stores the entry; the two replay loops
|
|
1192
1263
|
* (the isaac pre-routing hit in core/server.isaac.js, `serveRenderCacheHit` in
|
|
@@ -1197,7 +1268,7 @@ RenderCache.swapNonces = function (content, oldNonces, nonce) {
|
|
|
1197
1268
|
* @static
|
|
1198
1269
|
* @constant {string[]}
|
|
1199
1270
|
*/
|
|
1200
|
-
RenderCache.PER_REQUEST_HEADERS = ['set-cookie', 'x-request-id'];
|
|
1271
|
+
RenderCache.PER_REQUEST_HEADERS = ['set-cookie', 'x-request-id', 'ratelimit', 'ratelimit-policy'];
|
|
1201
1272
|
|
|
1202
1273
|
/**
|
|
1203
1274
|
* Tells whether a response header is one of {@link RenderCache.PER_REQUEST_HEADERS},
|
|
@@ -1254,6 +1325,206 @@ RenderCache.omitPerRequestHeaders = function (responseHeaders) {
|
|
|
1254
1325
|
return headers;
|
|
1255
1326
|
};
|
|
1256
1327
|
|
|
1328
|
+
/**
|
|
1329
|
+
* The response headers a render-cache hit computes for its own request instead of replaying
|
|
1330
|
+
* the stored value (#B1104): `access-control-allow-origin`, which core/server.js picks per
|
|
1331
|
+
* request (`allowOriginFor`: the request's origin when the configured list holds it or when it
|
|
1332
|
+
* is the bundle's own, the request's origin when the configured value is empty). Lowercase,
|
|
1333
|
+
* as `res.getHeaders()` returns them.
|
|
1334
|
+
*
|
|
1335
|
+
* `instance.set()` never stores them; the two replay loops skip them too (an entry stored by
|
|
1336
|
+
* an older release may carry one). Then the isaac pre-routing hit, which runs no
|
|
1337
|
+
* `completeHeaders`, sets the request's own value through `instance._renderCacheAllowOrigin`,
|
|
1338
|
+
* and `serveRenderCacheHit` keeps the value `completeHeaders` set before it.
|
|
1339
|
+
*
|
|
1340
|
+
* @memberof RenderCache
|
|
1341
|
+
* @static
|
|
1342
|
+
* @constant {string[]}
|
|
1343
|
+
*/
|
|
1344
|
+
RenderCache.RECOMPUTED_HEADERS = ['access-control-allow-origin'];
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* Tells whether a response header is one of {@link RenderCache.RECOMPUTED_HEADERS},
|
|
1348
|
+
* whatever its case.
|
|
1349
|
+
*
|
|
1350
|
+
* @function isRecomputedHeader
|
|
1351
|
+
* @memberof RenderCache
|
|
1352
|
+
* @static
|
|
1353
|
+
*
|
|
1354
|
+
* @param {string} name - A response header name
|
|
1355
|
+
*
|
|
1356
|
+
* @returns {boolean} `true` for a header a hit recomputes; `false` otherwise, a non-string included
|
|
1357
|
+
*
|
|
1358
|
+
* @example
|
|
1359
|
+
* RenderCache.isRecomputedHeader('Access-Control-Allow-Origin'); // true
|
|
1360
|
+
* RenderCache.isRecomputedHeader('vary'); // false
|
|
1361
|
+
*/
|
|
1362
|
+
RenderCache.isRecomputedHeader = function (name) {
|
|
1363
|
+
return typeof(name) === 'string' && RenderCache.RECOMPUTED_HEADERS.indexOf(name.toLowerCase()) > -1;
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* Returns a copy of a stored headers snapshot without the headers a hit recomputes
|
|
1368
|
+
* ({@link RenderCache.RECOMPUTED_HEADERS}). The input is never mutated.
|
|
1369
|
+
*
|
|
1370
|
+
* @function omitRecomputedHeaders
|
|
1371
|
+
* @memberof RenderCache
|
|
1372
|
+
* @static
|
|
1373
|
+
*
|
|
1374
|
+
* @param {object|null|undefined} responseHeaders - A `res.getHeaders()` snapshot
|
|
1375
|
+
*
|
|
1376
|
+
* @returns {object|null|undefined} A new object holding every other header; the input
|
|
1377
|
+
* itself when it is not an object
|
|
1378
|
+
*
|
|
1379
|
+
* @example
|
|
1380
|
+
* RenderCache.omitRecomputedHeaders({ 'content-type': 'text/html', 'access-control-allow-origin': 'https://a.example' });
|
|
1381
|
+
* // → { 'content-type': 'text/html' }
|
|
1382
|
+
*/
|
|
1383
|
+
RenderCache.omitRecomputedHeaders = function (responseHeaders) {
|
|
1384
|
+
if ( !responseHeaders || typeof(responseHeaders) !== 'object' ) {
|
|
1385
|
+
return responseHeaders;
|
|
1386
|
+
}
|
|
1387
|
+
var headers = {};
|
|
1388
|
+
for (var h in responseHeaders) {
|
|
1389
|
+
if ( RenderCache.isRecomputedHeader(h) ) { continue; }
|
|
1390
|
+
headers[h] = responseHeaders[h];
|
|
1391
|
+
}
|
|
1392
|
+
return headers;
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* The request headers a cached page's variant is read from ({@link RenderCache.variantFor},
|
|
1397
|
+
* #B1132): `Accept-Language` and the culture cookie (`Cookie`) select its culture,
|
|
1398
|
+
* `X-Forwarded-Host` and `X-Forwarded-Proto` its public origin, `X-Forwarded-Prefix` its
|
|
1399
|
+
* webroot. A response a cache may keep (`Cache-Control: <visibility>, max-age=`, on a miss
|
|
1400
|
+
* and on a hit) lists them in `Vary` (#B1164), so a browser or a shared cache reuses it only
|
|
1401
|
+
* for a request carrying the same values; without them a browser kept showing a page in the
|
|
1402
|
+
* language it first received for the page's whole `max-age`.
|
|
1403
|
+
*
|
|
1404
|
+
* @memberof RenderCache
|
|
1405
|
+
* @static
|
|
1406
|
+
* @constant {string[]}
|
|
1407
|
+
*/
|
|
1408
|
+
RenderCache.VARY_HEADERS = ['Accept-Language', 'Cookie', 'X-Forwarded-Host', 'X-Forwarded-Proto', 'X-Forwarded-Prefix'];
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* Returns a `Vary` value (RFC 9110 § 12.5.5) with `names` appended to `current`, by the rule
|
|
1412
|
+
* of core/server.js `appendVary` (#B743): a name already listed, in any case, is not added
|
|
1413
|
+
* again, nothing is added after a `*`, and the names already listed keep their order and
|
|
1414
|
+
* case. Pure.
|
|
1415
|
+
*
|
|
1416
|
+
* @function mergeVary
|
|
1417
|
+
* @memberof RenderCache
|
|
1418
|
+
* @static
|
|
1419
|
+
*
|
|
1420
|
+
* @param {string|string[]|null|undefined} current - The value set so far: a comma-separated list, or an array of them
|
|
1421
|
+
* @param {string|string[]|null|undefined} names - The name(s) to add: a comma-separated list, or an array of them
|
|
1422
|
+
*
|
|
1423
|
+
* @returns {string} The merged value; `''` when both are empty
|
|
1424
|
+
*
|
|
1425
|
+
* @example
|
|
1426
|
+
* RenderCache.mergeVary('Origin', ['Accept-Language', 'origin']); // → 'Origin, Accept-Language'
|
|
1427
|
+
* RenderCache.mergeVary(undefined, 'Cookie'); // → 'Cookie'
|
|
1428
|
+
* RenderCache.mergeVary('*', 'Cookie'); // → '*'
|
|
1429
|
+
*/
|
|
1430
|
+
RenderCache.mergeVary = function (current, names) {
|
|
1431
|
+
var asList = function (v) {
|
|
1432
|
+
if ( Array.isArray(v) ) {
|
|
1433
|
+
v = v.join(', ');
|
|
1434
|
+
}
|
|
1435
|
+
return ( typeof(v) == 'undefined' || v === null ) ? '' : String(v).trim();
|
|
1436
|
+
};
|
|
1437
|
+
var cur = asList(current);
|
|
1438
|
+
var present = ( cur === '' ) ? [] : cur.toLowerCase().split(',').map(function (n) { return n.trim(); });
|
|
1439
|
+
var added = [];
|
|
1440
|
+
asList(names).split(',').forEach(function (n) {
|
|
1441
|
+
n = n.trim();
|
|
1442
|
+
if ( n === '' || present.indexOf('*') > -1 || present.indexOf(n.toLowerCase()) > -1 ) {
|
|
1443
|
+
return;
|
|
1444
|
+
}
|
|
1445
|
+
present.push(n.toLowerCase());
|
|
1446
|
+
added.push(n);
|
|
1447
|
+
});
|
|
1448
|
+
if ( added.length === 0 ) {
|
|
1449
|
+
return cur;
|
|
1450
|
+
}
|
|
1451
|
+
return ( cur === '' ) ? added.join(', ') : cur + ', ' + added.join(', ');
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Appends {@link RenderCache.VARY_HEADERS} to a response's `Vary` header
|
|
1456
|
+
* ({@link RenderCache.mergeVary}). The render delegates call it where they send a cached
|
|
1457
|
+
* route's `Cache-Control: <visibility>, max-age=`, and both hit paths after theirs (#B1164).
|
|
1458
|
+
* Does nothing once the headers are sent, or for an object that is not a response.
|
|
1459
|
+
*
|
|
1460
|
+
* @function appendVariantVary
|
|
1461
|
+
* @memberof RenderCache
|
|
1462
|
+
* @static
|
|
1463
|
+
*
|
|
1464
|
+
* @param {object} response - A server response (HTTP/1.x, or the HTTP/2 compatibility API)
|
|
1465
|
+
*
|
|
1466
|
+
* @returns {void}
|
|
1467
|
+
*
|
|
1468
|
+
* @example
|
|
1469
|
+
* // Vary: Origin → Vary: Origin, Accept-Language, Cookie, X-Forwarded-Host, X-Forwarded-Proto, X-Forwarded-Prefix
|
|
1470
|
+
* res.setHeader('Cache-Control', 'private, max-age=3600');
|
|
1471
|
+
* RenderCache.appendVariantVary(res);
|
|
1472
|
+
*/
|
|
1473
|
+
RenderCache.appendVariantVary = function (response) {
|
|
1474
|
+
if (
|
|
1475
|
+
!response
|
|
1476
|
+
|| typeof(response.getHeader) != 'function'
|
|
1477
|
+
|| typeof(response.setHeader) != 'function'
|
|
1478
|
+
|| response.headersSent
|
|
1479
|
+
) {
|
|
1480
|
+
return;
|
|
1481
|
+
}
|
|
1482
|
+
var current = response.getHeader('vary');
|
|
1483
|
+
var merged = RenderCache.mergeVary(current, RenderCache.VARY_HEADERS);
|
|
1484
|
+
if ( merged !== '' && merged !== current ) {
|
|
1485
|
+
response.setHeader('vary', merged);
|
|
1486
|
+
}
|
|
1487
|
+
};
|
|
1488
|
+
|
|
1489
|
+
/**
|
|
1490
|
+
* Returns a copy of a stored headers snapshot whose `Vary` lists
|
|
1491
|
+
* {@link RenderCache.VARY_HEADERS} after the names it already holds
|
|
1492
|
+
* ({@link RenderCache.mergeVary}); a snapshot without `Vary` gains a lowercase `vary`
|
|
1493
|
+
* (#B1164). `instance.set()` applies it to an entry keyed on a request variant, so a hit
|
|
1494
|
+
* served by a release that does not append them itself still sends them. The input is
|
|
1495
|
+
* never mutated.
|
|
1496
|
+
*
|
|
1497
|
+
* @function withVariantVary
|
|
1498
|
+
* @memberof RenderCache
|
|
1499
|
+
* @static
|
|
1500
|
+
*
|
|
1501
|
+
* @param {object|null|undefined} responseHeaders - A `res.getHeaders()` snapshot
|
|
1502
|
+
*
|
|
1503
|
+
* @returns {object|null|undefined} A new object; the input itself when it is not an object
|
|
1504
|
+
*
|
|
1505
|
+
* @example
|
|
1506
|
+
* RenderCache.withVariantVary({ 'content-type': 'text/html', 'vary': 'Origin' });
|
|
1507
|
+
* // → { 'content-type': 'text/html',
|
|
1508
|
+
* // 'vary': 'Origin, Accept-Language, Cookie, X-Forwarded-Host, X-Forwarded-Proto, X-Forwarded-Prefix' }
|
|
1509
|
+
*/
|
|
1510
|
+
RenderCache.withVariantVary = function (responseHeaders) {
|
|
1511
|
+
if ( !responseHeaders || typeof(responseHeaders) !== 'object' ) {
|
|
1512
|
+
return responseHeaders;
|
|
1513
|
+
}
|
|
1514
|
+
var headers = {}, key = 'vary';
|
|
1515
|
+
for (var h in responseHeaders) {
|
|
1516
|
+
headers[h] = responseHeaders[h];
|
|
1517
|
+
if ( h.toLowerCase() === 'vary' ) {
|
|
1518
|
+
key = h;
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
var merged = RenderCache.mergeVary(headers[key], RenderCache.VARY_HEADERS);
|
|
1522
|
+
if ( merged !== '' ) {
|
|
1523
|
+
headers[key] = merged;
|
|
1524
|
+
}
|
|
1525
|
+
return headers;
|
|
1526
|
+
};
|
|
1527
|
+
|
|
1257
1528
|
/**
|
|
1258
1529
|
* The six keys the framework's `env.json` template defines under `server.cache`
|
|
1259
1530
|
* (`enable`, `path`, `ttl`, `sliding`, `maxAge`, `maxEntries`). In `settings.json`'s
|
|
@@ -1351,4 +1622,195 @@ RenderCache.resolveCacheRoot = function(sources, tokens) {
|
|
|
1351
1622
|
return substitute(picked);
|
|
1352
1623
|
};
|
|
1353
1624
|
|
|
1625
|
+
/**
|
|
1626
|
+
* #B1132 — the culture a request falls back to when no negotiation could run: the value
|
|
1627
|
+
* core/server.js `_negotiateReqCulture` falls back to (`GINA_CULTURE`, else `en`, in
|
|
1628
|
+
* underscore form). Read through the getEnvVar accessor, typeof-guarded so an isolated
|
|
1629
|
+
* unit-require (no boot) never throws.
|
|
1630
|
+
*
|
|
1631
|
+
* @inner
|
|
1632
|
+
* @returns {string}
|
|
1633
|
+
*/
|
|
1634
|
+
function fallbackCulture() {
|
|
1635
|
+
var env = ( typeof(getEnvVar) === 'function' ) ? getEnvVar('GINA_CULTURE') : null;
|
|
1636
|
+
return String(env || 'en').replace(/-/g, '_');
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* #B1132 — the proxied public origin of a request its engine has not classified yet (a
|
|
1641
|
+
* slot-less engine, Express, before routing): `<scheme>://<host>` when the request is
|
|
1642
|
+
* proxied, '' for a direct `host:port` access. It is the derivation of core/router.js's
|
|
1643
|
+
* fill-when-absent block, which fills the request's slots later on that engine: keep the
|
|
1644
|
+
* two in sync (the core/server.isaac.js #B65 block is the third twin). Every header is
|
|
1645
|
+
* sanitised as there (#B367): an unsafe value is ignored.
|
|
1646
|
+
*
|
|
1647
|
+
* @inner
|
|
1648
|
+
* @param {object} headers - The request headers.
|
|
1649
|
+
* @param {string} [scheme] - The bundle's `server.scheme`, the last scheme fallback.
|
|
1650
|
+
* @returns {string}
|
|
1651
|
+
*/
|
|
1652
|
+
function proxiedHostnameFromHeaders(headers, scheme) {
|
|
1653
|
+
var isSafeHostToken = function(v) {
|
|
1654
|
+
return ( typeof(v) == 'string' && v.length > 0 && v.length <= 255
|
|
1655
|
+
&& /^[A-Za-z0-9._:\[\]-]+$/.test(v) );
|
|
1656
|
+
};
|
|
1657
|
+
var rawHost = headers.host || headers[':authority'];
|
|
1658
|
+
var host = isSafeHostToken(rawHost) ? rawHost : null;
|
|
1659
|
+
var xfh = isSafeHostToken(headers['x-forwarded-host']) ? headers['x-forwarded-host'] : null;
|
|
1660
|
+
var xfProto = headers['x-forwarded-proto'];
|
|
1661
|
+
var safeProto = ( xfProto === 'http' || xfProto === 'https' ) ? xfProto : null;
|
|
1662
|
+
var requireForwarded = !!( process.gina && process.gina._proxyRequireForwarded === true );
|
|
1663
|
+
var proxied = ( ( host && !/\:[0-9]+$/.test(host) && !requireForwarded ) || xfh ) ? true : false;
|
|
1664
|
+
if ( !proxied ) {
|
|
1665
|
+
return '';
|
|
1666
|
+
}
|
|
1667
|
+
var scheme_ = safeProto || ( process.gina && process.gina.PROXY_SCHEME ) || scheme;
|
|
1668
|
+
return scheme_ + '://' + ( xfh || host );
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* #B1132 — the request variant of the output cache: the per-request inputs a cached page's
|
|
1673
|
+
* values depend on, so two requests share an entry only when their pages are the same.
|
|
1674
|
+
* - `host` — the proxied public origin (`<scheme>://<host>`, X-Forwarded-Proto's scheme):
|
|
1675
|
+
* the page's `hostname`, `proxyHost`, `proxyHostname` and every absolute URL it
|
|
1676
|
+
* builds; '' for a direct access (the page then carries the config hostname).
|
|
1677
|
+
* - `prefix` — the X-Forwarded-Prefix mount path: the page's `webroot`.
|
|
1678
|
+
* - `culture` — the negotiated culture string, exact (`fr` and `fr_FR` are two variants): the
|
|
1679
|
+
* page's `culture`, `validatorLabels` and every translated string.
|
|
1680
|
+
* Returns the parts, their readable form (`host|prefix|culture`; `|` never occurs in a
|
|
1681
|
+
* sanitised host or prefix, so the form is unambiguous) and the key and path segment
|
|
1682
|
+
* (`v` + the first 32 hex of the readable form's SHA-256). Pure.
|
|
1683
|
+
*
|
|
1684
|
+
* @memberof RenderCache
|
|
1685
|
+
* @static
|
|
1686
|
+
* @param {object} [parts]
|
|
1687
|
+
* @param {string} [parts.host] - `<scheme>://<host>` of a proxied request, or ''.
|
|
1688
|
+
* @param {string} [parts.prefix] - The forwarded prefix, or ''.
|
|
1689
|
+
* @param {string} [parts.culture] - The negotiated culture.
|
|
1690
|
+
* @returns {{ host: string, prefix: string, culture: string, readable: string, segment: string }}
|
|
1691
|
+
*
|
|
1692
|
+
* @example
|
|
1693
|
+
* RenderCache.buildVariant({ host: 'https://a.example', prefix: '', culture: 'fr' });
|
|
1694
|
+
* // → { host: 'https://a.example', prefix: '', culture: 'fr',
|
|
1695
|
+
* // readable: 'https://a.example||fr', segment: 'v' + 32 hex }
|
|
1696
|
+
*/
|
|
1697
|
+
RenderCache.buildVariant = function(parts) {
|
|
1698
|
+
parts = parts || {};
|
|
1699
|
+
var host = ( typeof(parts.host) === 'string' ) ? parts.host : '';
|
|
1700
|
+
var prefix = ( typeof(parts.prefix) === 'string' ) ? parts.prefix : '';
|
|
1701
|
+
var culture = ( typeof(parts.culture) === 'string' ) ? parts.culture : '';
|
|
1702
|
+
var readable = host + '|' + prefix + '|' + culture;
|
|
1703
|
+
var segment = 'v' + crypto.createHash('sha256').update(readable).digest('hex').slice(0, 32);
|
|
1704
|
+
return { host: host, prefix: prefix, culture: culture, readable: readable, segment: segment };
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* #B1132 — compute a request's variant ({@link RenderCache.buildVariant}) from what its
|
|
1709
|
+
* engine knows BEFORE routing, so the pre-routing read (core/server.isaac.js) and the
|
|
1710
|
+
* writers key alike:
|
|
1711
|
+
* - the host: the engine's proxy slots (`_ginaIsProxyHost`, `_ginaProxyHostname`); a
|
|
1712
|
+
* slot-less engine (Express, before routing) derives it from the headers as core/router.js
|
|
1713
|
+
* will;
|
|
1714
|
+
* - the prefix: the `_ginaProxyPrefix` slot only, the one input of the page's webroot;
|
|
1715
|
+
* - the culture: the negotiation steps a request's HEADERS decide (the culture cookie,
|
|
1716
|
+
* Accept-Language, then the bundle default, `GINA_CULTURE`, `en`), run by the caller's
|
|
1717
|
+
* negotiator over the bundle's options. The URL-prefix step needs the matched route and
|
|
1718
|
+
* is never consulted: a writer refuses a page whose culture came from it
|
|
1719
|
+
* ({@link RenderCache.storableVariant}).
|
|
1720
|
+
* The engine computes it ONCE per request and stamps it as `req._ginaCacheVariant`.
|
|
1721
|
+
*
|
|
1722
|
+
* @memberof RenderCache
|
|
1723
|
+
* @static
|
|
1724
|
+
* @param {object} req - The incoming request (its headers and the engine's proxy slots).
|
|
1725
|
+
* @param {object} [opts]
|
|
1726
|
+
* @param {function} [opts.negotiate] - The culture negotiator, the function the request's own
|
|
1727
|
+
* negotiation runs (`lib.i18n.negotiateCulture`).
|
|
1728
|
+
* @param {object} [opts.i18n] - The bundle's negotiation options (core/server.js
|
|
1729
|
+
* `resolveCultureNegotiation`).
|
|
1730
|
+
* @param {string} [opts.scheme] - The bundle's `server.scheme` (the slot-less host's last fallback).
|
|
1731
|
+
* @returns {{ host: string, prefix: string, culture: string, readable: string, segment: string }}
|
|
1732
|
+
*
|
|
1733
|
+
* @example
|
|
1734
|
+
* request._ginaCacheVariant = RenderCache.variantFor(request, {
|
|
1735
|
+
* negotiate : negotiateCulture,
|
|
1736
|
+
* i18n : { availableCultures: ['en', 'fr'], cookieName: 'gina_culture', defaultCulture: 'en_US' },
|
|
1737
|
+
* scheme : 'https'
|
|
1738
|
+
* });
|
|
1739
|
+
*/
|
|
1740
|
+
RenderCache.variantFor = function(req, opts) {
|
|
1741
|
+
req = req || {};
|
|
1742
|
+
opts = opts || {};
|
|
1743
|
+
var headers = ( req.headers && typeof(req.headers) === 'object' ) ? req.headers : {};
|
|
1744
|
+
var host = '';
|
|
1745
|
+
if ( typeof(req._ginaIsProxyHost) != 'undefined' ) {
|
|
1746
|
+
if ( req._ginaIsProxyHost === true && typeof(req._ginaProxyHostname) === 'string' ) {
|
|
1747
|
+
host = req._ginaProxyHostname;
|
|
1748
|
+
}
|
|
1749
|
+
} else {
|
|
1750
|
+
host = proxiedHostnameFromHeaders(headers, opts.scheme);
|
|
1751
|
+
}
|
|
1752
|
+
var prefix = ( typeof(req._ginaProxyPrefix) === 'string' ) ? req._ginaProxyPrefix : '';
|
|
1753
|
+
var culture = null;
|
|
1754
|
+
if ( typeof(opts.negotiate) === 'function' ) {
|
|
1755
|
+
try {
|
|
1756
|
+
// The headers alone: no `routing`, so the URL-prefix step cannot run.
|
|
1757
|
+
culture = opts.negotiate({ headers: headers }, opts.i18n || {});
|
|
1758
|
+
} catch (e) {
|
|
1759
|
+
culture = null;
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
if ( typeof(culture) !== 'string' || culture.length === 0 ) {
|
|
1763
|
+
culture = fallbackCulture();
|
|
1764
|
+
}
|
|
1765
|
+
return RenderCache.buildVariant({ host: host, prefix: prefix, culture: culture });
|
|
1766
|
+
};
|
|
1767
|
+
|
|
1768
|
+
/**
|
|
1769
|
+
* #B1132 — the write-side refusal: the variant a page may be stored under, or `null`. The
|
|
1770
|
+
* variant is recomputed from the values the page was rendered with and compared with the
|
|
1771
|
+
* one the engine stamped before routing, so a page whose values that stamp did not predict
|
|
1772
|
+
* is never stored, and no reader can be served another request's values:
|
|
1773
|
+
* - no stamp (the read looked nothing up for this request);
|
|
1774
|
+
* - a culture other than the stamp's (a URL-prefix culture, a middleware that set
|
|
1775
|
+
* `req.culture`, a merged-mode bundle's catalogs), or none;
|
|
1776
|
+
* - a request its engine never classified (`_ginaIsProxyHost` unset: its page reads the
|
|
1777
|
+
* worker-global proxy values), or a proxied one without its hostname slot;
|
|
1778
|
+
* - another host or prefix than the stamp's;
|
|
1779
|
+
* - the merged-mode direct-host render core/controller/controller.js marks
|
|
1780
|
+
* (`_ginaHostSpecialCase`: its hostname comes from another bundle's config).
|
|
1781
|
+
* The #B158 / #SPA1 idiom: the key carries what the page depends on, or the page is not
|
|
1782
|
+
* stored. The three render writers call it before they build the key.
|
|
1783
|
+
*
|
|
1784
|
+
* @memberof RenderCache
|
|
1785
|
+
* @static
|
|
1786
|
+
* @param {object} req - The request a writer is about to store a page for.
|
|
1787
|
+
* @returns {object|null} The variant ({@link RenderCache.buildVariant} shape) to key on, or `null`.
|
|
1788
|
+
*
|
|
1789
|
+
* @example
|
|
1790
|
+
* var cacheVariant = lib.RenderCache.storableVariant(req);
|
|
1791
|
+
* if ( !cacheVariant ) { return; }
|
|
1792
|
+
* var cacheKey = renderCache.buildKey('static', bundle, req.originalUrl, cacheVariant);
|
|
1793
|
+
*/
|
|
1794
|
+
RenderCache.storableVariant = function(req) {
|
|
1795
|
+
if ( !req || !req._ginaCacheVariant || typeof(req._ginaCacheVariant.segment) !== 'string' ) {
|
|
1796
|
+
return null;
|
|
1797
|
+
}
|
|
1798
|
+
if ( req._ginaHostSpecialCase === true || typeof(req._ginaIsProxyHost) == 'undefined' ) {
|
|
1799
|
+
return null;
|
|
1800
|
+
}
|
|
1801
|
+
var host = '';
|
|
1802
|
+
if ( req._ginaIsProxyHost === true ) {
|
|
1803
|
+
if ( typeof(req._ginaProxyHostname) !== 'string' ) {
|
|
1804
|
+
return null;
|
|
1805
|
+
}
|
|
1806
|
+
host = req._ginaProxyHostname;
|
|
1807
|
+
}
|
|
1808
|
+
var page = RenderCache.buildVariant({
|
|
1809
|
+
host : host,
|
|
1810
|
+
prefix : ( typeof(req._ginaProxyPrefix) === 'string' ) ? req._ginaProxyPrefix : '',
|
|
1811
|
+
culture : req.culture
|
|
1812
|
+
});
|
|
1813
|
+
return ( page.segment === req._ginaCacheVariant.segment ) ? page : null;
|
|
1814
|
+
};
|
|
1815
|
+
|
|
1354
1816
|
module.exports = RenderCache;
|