gina 0.7.3 → 0.7.4
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 +65 -0
- package/README.md +48 -40
- package/ROADMAP.md +1 -0
- package/bin/cli +33 -4
- package/bin/cli-debug +37 -1
- package/bin/cmd +18 -0
- package/framework/v0.7.4/VERSION +1 -0
- package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.js +1504 -621
- package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js +736 -0
- package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/{v0.7.3 → v0.7.4}/core/config.js +13 -3
- package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.js +268 -14
- package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-json.js +9 -2
- package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-nunjucks.js +88 -9
- package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-swig-async.js +87 -7
- package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-swig.js +115 -9
- package/framework/{v0.7.3 → v0.7.4}/core/gna.js +44 -2
- package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/src/form-validator.js +43 -4
- package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/src/main.js +847 -515
- package/framework/{v0.7.3 → v0.7.4}/core/router.js +139 -40
- package/framework/{v0.7.3 → v0.7.4}/core/server.express.js +5 -4
- package/framework/{v0.7.3 → v0.7.4}/core/server.isaac.js +93 -10
- package/framework/{v0.7.3 → v0.7.4}/core/server.js +348 -46
- package/framework/{v0.7.3 → v0.7.4}/helpers/context.js +47 -2
- package/framework/{v0.7.3 → v0.7.4}/helpers/data/src/main.js +10 -1
- package/framework/{v0.7.3 → v0.7.4}/helpers/prototypes.js +23 -1
- package/framework/v0.7.4/lib/cmd/bundle/inc/start-status.js +420 -0
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/restart.js +71 -1
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/start.js +207 -41
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/clear.js +39 -8
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/help.txt +3 -4
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/inc/ps-titles.js +62 -6
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/init.js +12 -1
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/restart.js +49 -11
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/status.js +23 -1
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/stop.js +150 -48
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/helper.js +24 -0
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/run.js +6 -0
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/index.js +8 -1
- package/framework/{v0.7.3 → v0.7.4}/lib/collection/src/main.js +373 -74
- package/framework/{v0.7.3 → v0.7.4}/lib/job/src/main.js +49 -5
- package/framework/{v0.7.3 → v0.7.4}/lib/lane/src/main.js +81 -5
- package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/main.js +184 -15
- package/framework/v0.7.4/lib/logger/src/redact.js +1003 -0
- package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-filters/src/main.js +118 -11
- package/framework/{v0.7.3 → v0.7.4}/lib/proc.js +27 -8
- package/framework/{v0.7.3 → v0.7.4}/lib/render-cache/src/main.js +97 -0
- package/framework/{v0.7.3 → v0.7.4}/lib/routing/src/main.js +140 -14
- package/framework/{v0.7.3 → v0.7.4}/lib/sqlite-driver.js +15 -5
- package/framework/{v0.7.3 → v0.7.4}/lib/swig-filters/src/main.js +123 -16
- package/framework/{v0.7.3 → v0.7.4}/package.json +1 -1
- package/gna.js +4 -4
- package/llms.txt +24 -22
- package/package.json +5 -4
- package/schema/settings.json +25 -1
- package/script/smoke_in_container.js +69 -12
- package/types/index.d.ts +3 -2
- package/utils/prototypes.js +37 -2
- package/framework/v0.7.3/VERSION +0 -1
- package/framework/v0.7.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -726
- package/framework/v0.7.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/v0.7.3/lib/logger/src/redact.js +0 -391
- /package/framework/{v0.7.3 → v0.7.4}/AUTHORS +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/LICENSE +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/html/static.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/config.requirements-anchor.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/ai/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/ai/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/storage-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/duckdb/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/duckdb/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/job-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mysql/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mysql/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/param-redact.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/postgresql/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/postgresql/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/job-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/kv-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/scylladb/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/scylladb/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/scylladb/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/settle-once.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sql-parser.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/job-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/kv-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/content.encoding +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-nunjucks-async.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-stream.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-v1.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-xml.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/inline-script.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/inspector-window-emit.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/preload-hints.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/release-banner.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/dev/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/currency.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/mime.types +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/model/entity.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/model/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/model/template/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/csrf/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/csrf/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/csrf/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coep/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coep/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coop/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coop/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/corp/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/corp/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/csp/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/csp/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hsts/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hsts/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/session/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/session/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/session/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/server.isaac.rapid-reset.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/server.route-candidates.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/status.codes +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/_gitignore +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/connectors.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/watchers.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/locales/en.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/css/home.css +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/sw.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/env.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/settings.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/console.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/data/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/data/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/json/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/json/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/json/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/path.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/task.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/text.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/admin/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/admin/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/async/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/async/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/audit/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/audit/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/audit-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authn/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authn/src/lockout.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authn/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authn/src/totp.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authz-gate/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authz-gate/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cache/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cache/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cache/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cache/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/aliases.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/audit/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/audit/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/audit/verify.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/build.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/inc/boot-lines.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/inc/name.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/mcp-start.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/mcp.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/oas.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/openapi.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/status.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/types.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/stats.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/infer.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/migrate.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/models.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/test.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/ps.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/stop.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/args.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/namespace.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/reference-scan.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/scaffold.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/rename.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/inc/name.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/get.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/inc/listen-error.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/link.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/reset.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/start.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/tail.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/export.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/import.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/scan.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/_host.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/build.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/inspector/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/inspector/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/inspector/open.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/man-render.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/kill.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/set.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/backup.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/build.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/inc/name.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/rename.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/restore.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/status.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/inc/name.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/check.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/scan.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/start.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/gc.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/stats.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/verify.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd-status-format/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd-status-format/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/collection/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/collection/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/collection/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/conf-view/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/conf-view/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/config.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-config/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-config/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-error/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-error/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-registry/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-registry/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cron/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cron/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/domain/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/domain/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/domain/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto-pipe/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto-pipe/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto-types/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto-types/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/duration/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/duration/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/error-ref/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/error-ref/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/generator/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/i18n/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/i18n/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/idempotency/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/idempotency/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/image-build/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/image-build/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-events/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-events/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-redact/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-redact/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/instrument/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/instrument/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/job/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/job-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/json-config-header/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/json-config-header/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/kv/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/kv/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/kv-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/lane/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/loading-state/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/loading-state/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/mq/listener.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/maintenance/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/maintenance/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/math/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-dispatch/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-dispatch/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-http/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-http/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-server/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-server/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/merge/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/merge/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/merge/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/message-validator/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/message-validator/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/metrics/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/metrics/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/model.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/money/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/money/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/multipart/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/multipart/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/net-locality/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/net-locality/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-filters/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-filters/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-resolver/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-resolver/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/priority/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/priority/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/push/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/push/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/rate-limit/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/rate-limit/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/release-watch/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/release-watch/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/render-cache/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/routing/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/routing/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/routing/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/routing-introspect/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/routing-introspect/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/backends/env.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/backends/exec.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/backends/file.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/declaration.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/env-file.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/sources.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/security-headers-emitter/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/security-headers-emitter/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/session-lifetime/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/session-lifetime/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/shell.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/sri/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/sri/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/state.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/local-cas.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/local-stream.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/local.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/meta-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/s3.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/util.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/swig-resolver/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/swig-resolver/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/src/loaders/http.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/src/loaders/memory.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/url/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/url/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/url/routing.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/uuid/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/uuid/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/validator.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/watcher/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/watcher/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-framing/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-framing/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-query/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-query/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-session/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-session/src/main.js +0 -0
|
@@ -694,7 +694,8 @@ function sendHtmlResponse(local, html, req, res) {
|
|
|
694
694
|
* @param {object} self - SuperController instance (for `self.throwError`)
|
|
695
695
|
* @param {object} local - Per-request closure (`req`, `res`, `next`, `options`)
|
|
696
696
|
* @param {object} localOptions - The controller's localOptions (already has `conf`)
|
|
697
|
-
* @returns {
|
|
697
|
+
* @returns {object} the render-store context — the same five values the factory call
|
|
698
|
+
* received; the caller runs both render calls inside the store with it (#B519)
|
|
698
699
|
*/
|
|
699
700
|
function registerGinaFilters(env, self, local, localOptions, req, res) {
|
|
700
701
|
// FRAMEWORK PATCH: use module-scope libRef fallback so
|
|
@@ -765,6 +766,40 @@ function registerGinaFilters(env, self, local, localOptions, req, res) {
|
|
|
765
766
|
env.addFilter(name, filters[name]);
|
|
766
767
|
}
|
|
767
768
|
}
|
|
769
|
+
|
|
770
|
+
// #B519 — the context the two render calls enter the render store with
|
|
771
|
+
// (renderNunjucks below): the same five values, by reference, as the factory call
|
|
772
|
+
// above received, so the store and the factory's binding cannot disagree.
|
|
773
|
+
return {
|
|
774
|
+
options: localOptions,
|
|
775
|
+
isProxyHost: isProxyHost,
|
|
776
|
+
throwError: self.throwError,
|
|
777
|
+
req: req,
|
|
778
|
+
res: res
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Lazily construct the process-wide render-context AsyncLocalStorage, parked on
|
|
784
|
+
* `process.gina` so it survives dev-mode `require.cache` eviction of this
|
|
785
|
+
* delegate. The SAME store the other render delegates enter, and the one the
|
|
786
|
+
* context-bearing gina filters read first in `getRenderCtx()`.
|
|
787
|
+
*
|
|
788
|
+
* #B519 — this delegate used to enter no store: its filters resolved the
|
|
789
|
+
* process-wide slot its own factory call had just stamped, correct only because
|
|
790
|
+
* nothing awaits between that call and the render. It now runs both render
|
|
791
|
+
* calls inside the store with the context `registerGinaFilters` returns, like
|
|
792
|
+
* every other delegate, so an inherited render store cannot win over it either.
|
|
793
|
+
*
|
|
794
|
+
* @inner
|
|
795
|
+
* @returns {AsyncLocalStorage} the shared render-context store
|
|
796
|
+
*/
|
|
797
|
+
function getRenderALS() {
|
|
798
|
+
if (!process.gina._renderALS) {
|
|
799
|
+
var AsyncLocalStorage = require('async_hooks').AsyncLocalStorage;
|
|
800
|
+
process.gina._renderALS = new AsyncLocalStorage();
|
|
801
|
+
}
|
|
802
|
+
return process.gina._renderALS;
|
|
768
803
|
}
|
|
769
804
|
|
|
770
805
|
/**
|
|
@@ -785,6 +820,11 @@ function registerGinaFilters(env, self, local, localOptions, req, res) {
|
|
|
785
820
|
* is stamped on the env itself so re-renders are no-ops, and a fresh
|
|
786
821
|
* env (e.g. after `nunjucksResolver.reset()`) re-runs setup.
|
|
787
822
|
*
|
|
823
|
+
* `this` inside `setup.js` is a receiver of this run's own, inheriting from
|
|
824
|
+
* the export (#B807): `this.engine` and `this.throwError` are set on it,
|
|
825
|
+
* never on the export, which the router's per-request setup runs share.
|
|
826
|
+
* Statics of the export stay readable through `this`.
|
|
827
|
+
*
|
|
788
828
|
* @inner
|
|
789
829
|
* @param {*} env - cached `nunjucks.Environment`
|
|
790
830
|
* @param {object} self - SuperController instance (provides throwError)
|
|
@@ -819,11 +859,21 @@ function registerUserFilters(env, self, local, localOptions, req, res, _next) {
|
|
|
819
859
|
return;
|
|
820
860
|
}
|
|
821
861
|
|
|
822
|
-
|
|
823
|
-
|
|
862
|
+
// #B807 — this run's members go on a receiver of its own, which inherits from the
|
|
863
|
+
// export, instead of being written onto the export: the export is a cached module
|
|
864
|
+
// shared with the router's per-request setup runs, and a member written onto it is the
|
|
865
|
+
// one of whichever run wrote it last. Statics of the export stay readable through
|
|
866
|
+
// `this`; state the setup stores on `this` stays with this run.
|
|
867
|
+
// The writes onto the export, as they were:
|
|
868
|
+
// Setup.engine = env;
|
|
869
|
+
// Setup.throwError = self.throwError;
|
|
870
|
+
var setupContext = Object.create(Setup);
|
|
871
|
+
setupContext.engine = env;
|
|
872
|
+
setupContext.throwError = self.throwError;
|
|
824
873
|
|
|
825
874
|
try {
|
|
826
|
-
|
|
875
|
+
// was: the export itself as the receiver
|
|
876
|
+
Setup.apply(setupContext, [req, res, _next]);
|
|
827
877
|
} catch (setupErr) {
|
|
828
878
|
try { console.warn('[render-nunjucks] user setup.js threw: ' + (setupErr.message || setupErr)); } catch (e) {}
|
|
829
879
|
}
|
|
@@ -1233,8 +1283,9 @@ module.exports = async function renderNunjucks(userData, displayInspector, errOp
|
|
|
1233
1283
|
// env is safe under Node's single-threaded event loop because the
|
|
1234
1284
|
// env.render() / env.renderString() calls below are synchronous and
|
|
1235
1285
|
// cannot interleave with another request's addFilter pass.
|
|
1286
|
+
var _filterCtx = null;
|
|
1236
1287
|
try {
|
|
1237
|
-
registerGinaFilters(env, self, local, localOptions, req, res);
|
|
1288
|
+
_filterCtx = registerGinaFilters(env, self, local, localOptions, req, res);
|
|
1238
1289
|
} catch (filterErr) {
|
|
1239
1290
|
return self.throwError(filterErr);
|
|
1240
1291
|
}
|
|
@@ -1331,7 +1382,10 @@ module.exports = async function renderNunjucks(userData, displayInspector, errOp
|
|
|
1331
1382
|
}
|
|
1332
1383
|
if (typeof _errSource === 'string') {
|
|
1333
1384
|
try {
|
|
1334
|
-
|
|
1385
|
+
// #B519 — inside the render store, like the main render below
|
|
1386
|
+
getRenderALS().run(_filterCtx, function () {
|
|
1387
|
+
html = env.renderString(_errSource, data);
|
|
1388
|
+
});
|
|
1335
1389
|
} catch (renderErr) {
|
|
1336
1390
|
// was: the same raw title + raw text — #B554, both escaped below.
|
|
1337
1391
|
html = '<!doctype html><html lang="' + _errLang + '"><head><title>Error ' + _escapeHtml(_errStatusCode) + '</title></head>'
|
|
@@ -1353,6 +1407,20 @@ module.exports = async function renderNunjucks(userData, displayInspector, errOp
|
|
|
1353
1407
|
return self.throwError(pathErr);
|
|
1354
1408
|
}
|
|
1355
1409
|
|
|
1410
|
+
// #B867 — the page template must stay inside the template root, checked before anything
|
|
1411
|
+
// below touches the filesystem. A template path can come from request data through
|
|
1412
|
+
// self.setTemplate() or a req.routing.param.file write, and nunjucks' FileSystemLoader only
|
|
1413
|
+
// tests `fullpath.indexOf(root) === 0`, with no separator: a sibling directory whose name
|
|
1414
|
+
// starts with the root's (`html2/`) passed it, and the existence pre-flight below ran on an
|
|
1415
|
+
// unchecked join. The path checked is the one the loader resolves, path.resolve(root, name);
|
|
1416
|
+
// it must sit under the resolved root plus a separator. The custom error branch above reads
|
|
1417
|
+
// its own configured file and is not concerned.
|
|
1418
|
+
var _pageTemplateRoot = nodePath.resolve(templateRoot);
|
|
1419
|
+
var _pageRootPrefix = ( _pageTemplateRoot.charAt(_pageTemplateRoot.length - 1) === nodePath.sep ) ? _pageTemplateRoot : _pageTemplateRoot + nodePath.sep;
|
|
1420
|
+
if ( nodePath.resolve(templateRoot, templateRel).indexOf(_pageRootPrefix) !== 0 ) {
|
|
1421
|
+
return self.throwError(new Error('[CVE-2023-25345] Path traversal attempt blocked: the template path of route `'+ localOptions.rule +'` resolves outside the template root'));
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1356
1424
|
// Template-existence pre-flight — nunjucks throws on missing templates
|
|
1357
1425
|
// with a generic message; this produces a Gina-style error object with
|
|
1358
1426
|
// a clear path so the dev sees what was looked up.
|
|
@@ -1365,7 +1433,11 @@ module.exports = async function renderNunjucks(userData, displayInspector, errOp
|
|
|
1365
1433
|
}
|
|
1366
1434
|
|
|
1367
1435
|
try {
|
|
1368
|
-
|
|
1436
|
+
// #B519 — the filters resolve THIS render's context from the store, not from
|
|
1437
|
+
// the process-wide slot
|
|
1438
|
+
getRenderALS().run(_filterCtx, function () {
|
|
1439
|
+
html = env.render(templateRel, data);
|
|
1440
|
+
});
|
|
1369
1441
|
} catch (renderErr) {
|
|
1370
1442
|
return self.throwError(renderErr);
|
|
1371
1443
|
}
|
|
@@ -1461,11 +1533,18 @@ module.exports = async function renderNunjucks(userData, displayInspector, errOp
|
|
|
1461
1533
|
}
|
|
1462
1534
|
|
|
1463
1535
|
// Cache-Control: miss path — inform browsers/CDNs of the response lifetime (#C6).
|
|
1464
|
-
// Mirror of render-swig.js
|
|
1536
|
+
// Mirror of render-swig.js's two miss-path sites. The hit path in server.isaac.js
|
|
1465
1537
|
// re-computes its own Cache-Control header from `cachedContentObj.ttl`
|
|
1466
1538
|
// so this header is only meaningful when a client receives the
|
|
1467
1539
|
// freshly-rendered bytes.
|
|
1468
|
-
|
|
1540
|
+
// #B744 — on the write's own gate: the server cache on, a GET, a route `cache`.
|
|
1541
|
+
// With the switch off nothing stores this render, so the browser is not told
|
|
1542
|
+
// to reuse it either (dev with the cache off; an event-invalidated route).
|
|
1543
|
+
if (
|
|
1544
|
+
String(self.serverInstance._cacheIsEnabled).toLowerCase() === 'true'
|
|
1545
|
+
&& req.method.toUpperCase() === 'GET'
|
|
1546
|
+
&& typeof(req.routing.cache) != 'undefined' && req.routing.cache
|
|
1547
|
+
) {
|
|
1469
1548
|
var _ccCfg = ( typeof(req.routing.cache) == 'string' ) ? { type: req.routing.cache } : req.routing.cache;
|
|
1470
1549
|
var _ccTtl = ( typeof(_ccCfg.ttl) != 'undefined' && _ccCfg.ttl > 0 ) ? _ccCfg.ttl : localOptions.conf.server.cache.ttl;
|
|
1471
1550
|
if ( _ccTtl > 0 ) {
|
|
@@ -109,7 +109,10 @@ function getRenderALS() {
|
|
|
109
109
|
* @param {boolean} autoescape - Per-bundle autoescape (captured by initSwigEngine)
|
|
110
110
|
* @param {function} SwigFilters - The SwigFilters factory (from `deps`), registered once
|
|
111
111
|
* @param {function} throwError - `self.throwError`, carried into the filter set
|
|
112
|
-
* @returns {{engine:*, compiled:Map
|
|
112
|
+
* @returns {{engine:*, compiled:Map, ginaFilterNames:Object<string, boolean>, bundleEngine:*, bundleRev:number}}
|
|
113
|
+
* The cached-or-built engine + its compiled-fn memo, and the #B825 replay state
|
|
114
|
+
* (`replayBundleRegistrations`): gina's filter names, the bundle engine and the
|
|
115
|
+
* record revision last replayed
|
|
113
116
|
*/
|
|
114
117
|
function getSwigEngine(swigMod, templateRoot, loader, autoescape, SwigFilters, throwError) {
|
|
115
118
|
if (!process.gina._swigEngines) {
|
|
@@ -133,10 +136,15 @@ function getSwigEngine(swigMod, templateRoot, loader, autoescape, SwigFilters, t
|
|
|
133
136
|
});
|
|
134
137
|
// #B25 / #TPL1 Tier-2 — register the gina filters ONCE on the shared
|
|
135
138
|
// engine (context-free; per-request context flows via _renderALS).
|
|
136
|
-
registerGinaFilters(engine, SwigFilters, throwError, (autoescape === true));
|
|
139
|
+
var ginaFilterNames = registerGinaFilters(engine, SwigFilters, throwError, (autoescape === true));
|
|
137
140
|
process.gina._swigEngines[key] = {
|
|
138
|
-
engine:
|
|
139
|
-
compiled:
|
|
141
|
+
engine: engine,
|
|
142
|
+
compiled: new Map(),
|
|
143
|
+
// #B825 — replay state (replayBundleRegistrations): gina's filter names are
|
|
144
|
+
// never replayed over; the bundle engine and record revision last replayed
|
|
145
|
+
ginaFilterNames: ginaFilterNames,
|
|
146
|
+
bundleEngine: null,
|
|
147
|
+
bundleRev: -1
|
|
140
148
|
};
|
|
141
149
|
}
|
|
142
150
|
return process.gina._swigEngines[key];
|
|
@@ -231,21 +239,85 @@ function computeIsProxyHost(req, localOptions) {
|
|
|
231
239
|
* its input and is flagged `.safe` only when the engine escapes, and the empty
|
|
232
240
|
* options cannot say so, so it is passed explicitly.
|
|
233
241
|
*
|
|
242
|
+
* Note the factory is a first-call singleton (lib/swig-filters): every call
|
|
243
|
+
* returns the filters its FIRST call built. Measured in a production boot
|
|
244
|
+
* (#B808): initSwigEngine's boot call comes first, so the mode it read from
|
|
245
|
+
* `settings.swig.autoescape` applies and the value passed here is not used.
|
|
246
|
+
* In one bundle both come from that setting, so nl2br still matches the
|
|
247
|
+
* engine; where several bundles share a process, the first to boot decides,
|
|
248
|
+
* as on the sync render path. Development reloads the lib registry per
|
|
249
|
+
* request; which call comes first there was not measured.
|
|
250
|
+
*
|
|
234
251
|
* @inner
|
|
235
252
|
* @param {*} engine - The per-bundle swig engine instance
|
|
236
253
|
* @param {function} SwigFilters - The SwigFilters factory (from `deps`)
|
|
237
254
|
* @param {function} throwError - `self.throwError`, carried for the singleton-fallback path
|
|
238
255
|
* @param {boolean} [autoescape=false] - The engine's own autoescape mode
|
|
239
|
-
* @returns {
|
|
256
|
+
* @returns {Object<string, boolean>} the names registered (#B825: a bundle filter
|
|
257
|
+
* of one of these names is not replayed over gina's)
|
|
240
258
|
*/
|
|
241
259
|
function registerGinaFilters(engine, SwigFilters, throwError, autoescape) {
|
|
242
260
|
var filters = SwigFilters({ options: {}, isProxyHost: false, throwError: throwError, autoescape: (autoescape === true) });
|
|
261
|
+
var names = Object.create(null);
|
|
243
262
|
|
|
244
263
|
for (var name in filters) {
|
|
245
264
|
if (typeof filters[name] === 'function' && name !== 'getConfig') {
|
|
246
265
|
engine.setFilter(name, filters[name]);
|
|
266
|
+
names[name] = true;
|
|
247
267
|
}
|
|
248
268
|
}
|
|
269
|
+
return names;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* #B825 — replay onto the async engine what the bundle registered on its own
|
|
274
|
+
* engine: `this.engine` in `controllers/setup.js`, `self.engine` in an action.
|
|
275
|
+
*
|
|
276
|
+
* swig gives every instance private filter and tag maps, so a registration on
|
|
277
|
+
* the bundle's engine never reaches the engine this delegate builds;
|
|
278
|
+
* controller.js records each one on the bundle's engine when the bundle renders
|
|
279
|
+
* through an async loader (`recordRegistrations`, `engine._ginaRegistrations`),
|
|
280
|
+
* and this replays the record whenever it changed. setup.js runs before the
|
|
281
|
+
* render, and again on later requests, so a registration made after this engine
|
|
282
|
+
* was minted lands at the next render; a render with nothing new replays nothing.
|
|
283
|
+
*
|
|
284
|
+
* A bundle filter named like one of gina's is not replayed: on the default
|
|
285
|
+
* render path gina registers its filters again at each render, after setup.js,
|
|
286
|
+
* so gina's wins there (measured), and it wins here too. Tags and extensions
|
|
287
|
+
* are replayed as recorded.
|
|
288
|
+
*
|
|
289
|
+
* @inner
|
|
290
|
+
* @param {{engine:*, ginaFilterNames:Object<string, boolean>, bundleEngine:*, bundleRev:number}} entry
|
|
291
|
+
* The async engine's registry entry (from `getSwigEngine`), updated in place
|
|
292
|
+
* @param {*} bundleEngine - The bundle's own engine (`deps.swig`); the swig
|
|
293
|
+
* module, or an engine with no record, replays nothing
|
|
294
|
+
* @returns {void}
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* var entry = getSwigEngine(swigMod, loaderKey, stash.loader, stash.autoescape, SwigFilters, self.throwError);
|
|
298
|
+
* replayBundleRegistrations(entry, deps.swig);
|
|
299
|
+
*/
|
|
300
|
+
function replayBundleRegistrations(entry, bundleEngine) {
|
|
301
|
+
var record = (bundleEngine && bundleEngine._ginaRegistrations) || null;
|
|
302
|
+
if ( !record || (entry.bundleEngine === bundleEngine && entry.bundleRev === record.rev) ) {
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
var engine = entry.engine, name, tag;
|
|
306
|
+
for (name in record.filters) {
|
|
307
|
+
if (entry.ginaFilterNames && entry.ginaFilterNames[name] === true) {
|
|
308
|
+
continue;
|
|
309
|
+
}
|
|
310
|
+
engine.setFilter(name, record.filters[name]);
|
|
311
|
+
}
|
|
312
|
+
for (name in record.tags) {
|
|
313
|
+
tag = record.tags[name];
|
|
314
|
+
engine.setTag(name, tag.parse, tag.compile, tag.ends, tag.blockLevel);
|
|
315
|
+
}
|
|
316
|
+
for (name in record.extensions) {
|
|
317
|
+
engine.setExtension(name, record.extensions[name]);
|
|
318
|
+
}
|
|
319
|
+
entry.bundleEngine = bundleEngine;
|
|
320
|
+
entry.bundleRev = record.rev;
|
|
249
321
|
}
|
|
250
322
|
|
|
251
323
|
/**
|
|
@@ -437,7 +509,7 @@ function injectAssets(html, data, localOptions, cspNonce) {
|
|
|
437
509
|
* @param {object} userData - Controller-supplied template data
|
|
438
510
|
* @param {boolean=} displayInspector - Dev Inspector toggle (deferred — unused in the MVP)
|
|
439
511
|
* @param {object=} errOptions - Options when invoked from the error pipeline
|
|
440
|
-
* @param {object} deps - Injected controller refs ({ self, local, getData, hasViews, setResources, headersSent, SwigFilters, swig })
|
|
512
|
+
* @param {object} deps - Injected controller refs ({ self, local, getData, hasViews, setResources, headersSent, SwigFilters, swig, swigModule }): `swigModule` is the swig module this delegate builds its own engine from (#B808); `swig` is the bundle's engine instance the other delegates render through
|
|
441
513
|
* @returns {Promise<void>}
|
|
442
514
|
*
|
|
443
515
|
* @example
|
|
@@ -452,7 +524,12 @@ module.exports = async function renderSwigAsync(userData, displayInspector, errO
|
|
|
452
524
|
var headersSent = deps.headersSent;
|
|
453
525
|
var SwigFilters = deps.SwigFilters;
|
|
454
526
|
var setResources = deps.setResources; // #TPL1 — populates data.page.view.stylesheets/.scripts for asset injection
|
|
455
|
-
|
|
527
|
+
// #B808 — the swig MODULE: this delegate builds its own engine with `new swigMod.Swig()`.
|
|
528
|
+
// controller.js hands it as `deps.swigModule`; `deps.swig` has been the bundle's engine
|
|
529
|
+
// INSTANCE since #B514 (0.6.30), and an instance has no `.Swig`. A caller handing the
|
|
530
|
+
// module as `deps.swig` alone (the shape before 0.6.30) keeps working.
|
|
531
|
+
// was: var swigMod = deps.swig; // the resolved swig MODULE (exposes .Swig)
|
|
532
|
+
var swigMod = deps.swigModule || deps.swig;
|
|
456
533
|
|
|
457
534
|
// Function-scoped captures of the per-request refs (#M1 race fix — mirror of
|
|
458
535
|
// render-nunjucks/render-swig). This render awaits (getTemplate + execute);
|
|
@@ -564,6 +641,9 @@ module.exports = async function renderSwigAsync(userData, displayInspector, errO
|
|
|
564
641
|
try {
|
|
565
642
|
engineEntry = getSwigEngine(swigMod, loaderKey, stash.loader, stash.autoescape, SwigFilters, self.throwError);
|
|
566
643
|
engine = engineEntry.engine;
|
|
644
|
+
// #B825 — what the bundle registered through `this.engine` (setup.js) or
|
|
645
|
+
// `self.engine` (an action): `deps.swig` is that engine.
|
|
646
|
+
replayBundleRegistrations(engineEntry, deps.swig);
|
|
567
647
|
} catch (engErr) {
|
|
568
648
|
return self.throwError(engErr);
|
|
569
649
|
}
|
|
@@ -63,6 +63,61 @@ var STYLESHEETS_PLACED_RE = /\{\{\s+(page\.view\.stylesheets)(\s*\|\s*safe)?\s
|
|
|
63
63
|
*/
|
|
64
64
|
var SCRIPTS_PLACED_RE = /\{\{ page\.view\.scripts(\s*\|\s*safe)? \}\}/;
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* #B830 (2026-10-09) — render the control characters of a value (C0 U+0000-U+001F, DEL and
|
|
68
|
+
* C1 U+007F-U+009F, the line separators U+2028 / U+2029) as visible escapes (`\n`/`\r`/`\t`,
|
|
69
|
+
* else `\uXXXX`) before it is concatenated into a log message. A template file name can come
|
|
70
|
+
* from the request (a `:placeholder` in a route's `param.file`, a `setTemplate()` call fed by
|
|
71
|
+
* a request value), so the lines that print it must not let it start a line of its own
|
|
72
|
+
* (CWE-117). Deliberately duplicated across the logger, core/server.js, core/server.isaac.js,
|
|
73
|
+
* core/controller/controller.js, this file, helpers/context.js, lib/lane, lib/routing and the
|
|
74
|
+
* validator, the way escapeForJsonString is (#B600).
|
|
75
|
+
* `test/lib/log-escape-parity-b830.test.js` fails when a copy drifts.
|
|
76
|
+
*
|
|
77
|
+
* @inner
|
|
78
|
+
* @private
|
|
79
|
+
* @param {*} value - Coerced with `String()`.
|
|
80
|
+
* @returns {string} The value with its control characters shown as escapes.
|
|
81
|
+
* @example
|
|
82
|
+
* escapeLogControlChars('a\nb'); // the four characters a \ n b, on one physical line
|
|
83
|
+
*/
|
|
84
|
+
function escapeLogControlChars(value) {
|
|
85
|
+
return String(value).replace(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/g, function (c) {
|
|
86
|
+
switch (c) {
|
|
87
|
+
case '\n': return '\\n';
|
|
88
|
+
case '\r': return '\\r';
|
|
89
|
+
case '\t': return '\\t';
|
|
90
|
+
default: return '\\u' + ('000' + c.charCodeAt(0).toString(16)).slice(-4);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* #B830 — render an error detail safe from line-forging while keeping its stack readable:
|
|
97
|
+
* the control characters of every line are escaped, and a REAL line feed is kept only
|
|
98
|
+
* before a line shaped like a V8 stack frame (whitespace, `at`, whitespace, then any text)
|
|
99
|
+
* or starting with `caused by:`; any other line feed becomes the visible escape.
|
|
100
|
+
* Residual, accepted: a value crafted to look like a frame line renders as one.
|
|
101
|
+
*
|
|
102
|
+
* @inner
|
|
103
|
+
* @private
|
|
104
|
+
* @param {*} detail - The error detail (a stack, a message).
|
|
105
|
+
* @returns {string} The detail with injected line breaks neutralised, frame lines kept.
|
|
106
|
+
* @example
|
|
107
|
+
* escapeLogDetailKeepFrames("ENOENT: no such file, open '/t/a\nb'\n at open (node:fs:1:1)");
|
|
108
|
+
* // the message on one line with a visible \n, then a real line feed and the frame
|
|
109
|
+
*/
|
|
110
|
+
function escapeLogDetailKeepFrames(detail) {
|
|
111
|
+
if (detail === null || typeof detail === 'undefined') { return ''; }
|
|
112
|
+
var lines = String(detail).split('\n');
|
|
113
|
+
var out = escapeLogControlChars(lines[0]);
|
|
114
|
+
for (var i = 1; i < lines.length; i++) {
|
|
115
|
+
var keep = /^\s+at\s/.test(lines[i]) || /^caused by:/.test(lines[i]);
|
|
116
|
+
out += (keep ? '\n' : '\\n') + escapeLogControlChars(lines[i]);
|
|
117
|
+
}
|
|
118
|
+
return out;
|
|
119
|
+
}
|
|
120
|
+
|
|
66
121
|
/**
|
|
67
122
|
* Lazily construct the process-wide render-context AsyncLocalStorage, parked on
|
|
68
123
|
* `process.gina` so it survives dev-mode `require.cache` eviction of this
|
|
@@ -466,8 +521,10 @@ module.exports = async function render(userData, displayInspector, errOptions, d
|
|
|
466
521
|
if ( file.charAt(0) !== '.' && file.charAt(0) !== '/' && file.charAt(0) !== '\\' && file != fileNamingConvention ) {
|
|
467
522
|
var _ext = data.page.view.ext;
|
|
468
523
|
|
|
469
|
-
|
|
470
|
-
|
|
524
|
+
// #B830 — the file name and its extension can come from the request: written with
|
|
525
|
+
// their control characters as visible escapes in the two lines below
|
|
526
|
+
console.warn('file `'+ escapeLogControlChars(file) +'` used in routing `'+ localOptions.rule +'` does not respect gina naming convention ! You should rename the file `'+ escapeLogControlChars(file + _ext) +'` to `'+ ''+ escapeLogControlChars(fileNamingConvention + _ext) +'`');
|
|
527
|
+
console.warn('The reason you are getting this message is because your filename begins with `<namespace>-`\n If you don\‘t want to rename, use template path like ./../'+ localOptions.namespace +'/'+ escapeLogControlChars(file));
|
|
471
528
|
file = ''+ file.replace(localOptions.namespace+'-', '');
|
|
472
529
|
}
|
|
473
530
|
fileNamingConvention = null;
|
|
@@ -525,6 +582,34 @@ module.exports = async function render(userData, displayInspector, errOptions, d
|
|
|
525
582
|
path += data.page.view.ext
|
|
526
583
|
}
|
|
527
584
|
|
|
585
|
+
// #B867 — the page template must stay inside the section's template root. A template path
|
|
586
|
+
// can come from request data by routes the routing fill (#B833) never sees: a controller that
|
|
587
|
+
// passes a request value to self.setTemplate() or writes it to req.routing.param.file. The
|
|
588
|
+
// branches above join it under the root unchecked (the setTemplate, namespace and param.path
|
|
589
|
+
// branches had no check; the CVE-2023-25345 check above looks at the first character only,
|
|
590
|
+
// and for a leading `.` it checks one path while the read below uses another, relative to the
|
|
591
|
+
// cwd), and `_()` normalises a path BEFORE it turns `\` into `/`, so a backslash-separated
|
|
592
|
+
// `..` survived until the read. So the path the read below opens is checked here, resolved
|
|
593
|
+
// the way the read resolves it: it must sit under the resolved root plus a separator (a
|
|
594
|
+
// sibling such as `html2/` does not pass), compared as written on both sides (a symlinked
|
|
595
|
+
// bundle directory is a prefix both share; resolving links on one side only would refuse
|
|
596
|
+
// every page). That comparison is lexical, so the path read must also hold no `..`
|
|
597
|
+
// segment: `_()` collapses a `/`-separated `..`, so one still in the path came from a
|
|
598
|
+
// backslash-separated value, and the read resolves it AFTER following any symlink inside
|
|
599
|
+
// the root, out of it — a symlinked subdirectory with a `..` behind it passed the
|
|
600
|
+
// comparison and read its target's parent. Custom error pages are exempt on the flag
|
|
601
|
+
// renderCustomError sets on the options, never on a flag carried by the render data: they
|
|
602
|
+
// may live in <sharedPath>/errors.
|
|
603
|
+
if ( localOptions.isRenderingCustomError !== true ) {
|
|
604
|
+
var _pageTemplateRoot = nodePath.resolve(localOptions.template.html);
|
|
605
|
+
var _pageRootPrefix = ( _pageTemplateRoot.charAt(_pageTemplateRoot.length - 1) === nodePath.sep ) ? _pageTemplateRoot : _pageTemplateRoot + nodePath.sep;
|
|
606
|
+
if ( nodePath.resolve(path).indexOf(_pageRootPrefix) !== 0 || /(^|[\/\\])\.\.([\/\\]|$)/.test(path) ) {
|
|
607
|
+
throw new Error('[CVE-2023-25345] Path traversal attempt blocked: the template path of route `'+ localOptions.rule +'` resolves outside the template root');
|
|
608
|
+
}
|
|
609
|
+
_pageTemplateRoot = null;
|
|
610
|
+
_pageRootPrefix = null;
|
|
611
|
+
}
|
|
612
|
+
|
|
528
613
|
data.page.view.path = path;
|
|
529
614
|
} catch (dataErr) {
|
|
530
615
|
return self.throwError(dataErr);
|
|
@@ -537,7 +622,10 @@ module.exports = async function render(userData, displayInspector, errOptions, d
|
|
|
537
622
|
// replaced: fs.readFileSync — async read (#P28)
|
|
538
623
|
_templateContent = (await fs.promises.readFile(path)).toString()
|
|
539
624
|
} catch (pathException) {
|
|
540
|
-
|
|
625
|
+
// #B830 — a file-system error quotes the path it could not open, and the path can
|
|
626
|
+
// hold a request value: frame lines kept, any other line break escaped
|
|
627
|
+
// was: console.warn("Path exception: ", pathException);
|
|
628
|
+
console.warn("Path exception: ", escapeLogDetailKeepFrames( ( pathException && ( pathException.stack || pathException.message ) ) || pathException ));
|
|
541
629
|
}
|
|
542
630
|
var hasLayoutInPath = /\{\%(\s+extends|extends)/.test(_templateContent) || false;
|
|
543
631
|
var layoutPath = null;
|
|
@@ -927,8 +1015,12 @@ module.exports = async function render(userData, displayInspector, errOptions, d
|
|
|
927
1015
|
self.throwError(err);
|
|
928
1016
|
return;
|
|
929
1017
|
}
|
|
930
|
-
|
|
931
|
-
|
|
1018
|
+
// #B830 — `path` can hold a request value (see escapeLogControlChars above): the
|
|
1019
|
+
// message names it with its control characters as visible escapes, so the
|
|
1020
|
+
// multi-line text below keeps its own line breaks and gains none
|
|
1021
|
+
// was: msg = 'could not open "'+ path +'"' + … 'Can you find: '+path +
|
|
1022
|
+
msg = 'could not open "'+ escapeLogControlChars(path) +'"' +
|
|
1023
|
+
'\n1) The requested file does not exists in your templates/html (check your template directory). Can you find: '+ escapeLogControlChars(path) +
|
|
932
1024
|
'\n2) Check the following rule in your `'+localOptions.conf.bundlePath+'/config/routing.json` and look around `param` to make sure that nothing is wrong with your file declaration: '+
|
|
933
1025
|
'\n' + localOptions.rule +':'+ JSON.stringify(localOptions.conf.content.routing[localOptions.rule], null, 4) +
|
|
934
1026
|
'\n3) At this point, if you still have problems trying to run this portion of code, you can contact us telling us how to reproduce the bug.'
|
|
@@ -1291,8 +1383,15 @@ module.exports = async function render(userData, displayInspector, errOptions, d
|
|
|
1291
1383
|
}
|
|
1292
1384
|
}
|
|
1293
1385
|
|
|
1294
|
-
// Cache-Control: miss path — inform browsers/CDNs of the response lifetime (#C6)
|
|
1295
|
-
|
|
1386
|
+
// Cache-Control: miss path — inform browsers/CDNs of the response lifetime (#C6).
|
|
1387
|
+
// #B744 — on the write's own gate: the server cache on, a GET, a route `cache`.
|
|
1388
|
+
// With the switch off nothing stores this render, so the browser is not told
|
|
1389
|
+
// to reuse it either (dev with the cache off; an event-invalidated route).
|
|
1390
|
+
if (
|
|
1391
|
+
String(self.serverInstance._cacheIsEnabled).toLowerCase() === 'true'
|
|
1392
|
+
&& req.method.toUpperCase() === 'GET'
|
|
1393
|
+
&& typeof(req.routing.cache) != 'undefined' && req.routing.cache
|
|
1394
|
+
) {
|
|
1296
1395
|
var _ccCfg = ( typeof(req.routing.cache) == 'string' ) ? { type: req.routing.cache } : req.routing.cache;
|
|
1297
1396
|
var _ccTtl = ( typeof(_ccCfg.ttl) != 'undefined' && _ccCfg.ttl > 0 ) ? _ccCfg.ttl : localOptions.conf.server.cache.ttl;
|
|
1298
1397
|
if ( _ccTtl > 0 ) {
|
|
@@ -2001,8 +2100,15 @@ module.exports = async function render(userData, displayInspector, errOptions, d
|
|
|
2001
2100
|
}
|
|
2002
2101
|
}
|
|
2003
2102
|
|
|
2004
|
-
// Cache-Control: miss path — inform browsers/CDNs of the response lifetime (#C6)
|
|
2005
|
-
|
|
2103
|
+
// Cache-Control: miss path — inform browsers/CDNs of the response lifetime (#C6).
|
|
2104
|
+
// #B744 — on the write's own gate: the server cache on, a GET, a route `cache`.
|
|
2105
|
+
// With the switch off nothing stores this render, so the browser is not told
|
|
2106
|
+
// to reuse it either (dev with the cache off; an event-invalidated route).
|
|
2107
|
+
if (
|
|
2108
|
+
String(self.serverInstance._cacheIsEnabled).toLowerCase() === 'true'
|
|
2109
|
+
&& req.method.toUpperCase() === 'GET'
|
|
2110
|
+
&& typeof(req.routing.cache) != 'undefined' && req.routing.cache
|
|
2111
|
+
) {
|
|
2006
2112
|
var _ccCfg = ( typeof(req.routing.cache) == 'string' ) ? { type: req.routing.cache } : req.routing.cache;
|
|
2007
2113
|
var _ccTtl = ( typeof(_ccCfg.ttl) != 'undefined' && _ccCfg.ttl > 0 ) ? _ccCfg.ttl : localOptions.conf.server.cache.ttl;
|
|
2008
2114
|
if ( _ccTtl > 0 ) {
|
|
@@ -1691,6 +1691,24 @@ isBundleMounted(projects, bundlesPath, getContext('bundle'), function onBundleMo
|
|
|
1691
1691
|
console.warn('[render-cache] config validation skipped: ' + (rcErr.message || rcErr));
|
|
1692
1692
|
}
|
|
1693
1693
|
|
|
1694
|
+
// #B744 — settings.json's top-level `cache` block holds the default
|
|
1695
|
+
// backend (`type`/`store`/`name`); the switch and the bundle-wide
|
|
1696
|
+
// defaults live under `server.cache`. The six keys the framework
|
|
1697
|
+
// template defines are inert in that block (the #B114 fold is
|
|
1698
|
+
// fill-only and runs after the template has set them), so each one
|
|
1699
|
+
// found there is named at boot with the block that works. Advisory
|
|
1700
|
+
// only — never affects boot.
|
|
1701
|
+
try {
|
|
1702
|
+
var _rcTopLevel = null;
|
|
1703
|
+
try {
|
|
1704
|
+
_rcTopLevel = config.getInstance()[gna.core.startingApp][env].content.settings.cache;
|
|
1705
|
+
} catch (rcTopErr) { _rcTopLevel = null; }
|
|
1706
|
+
var _rcInert = lib.RenderCache.inertTopLevelKeys(_rcTopLevel);
|
|
1707
|
+
for (var _rcK = 0; _rcK < _rcInert.length; _rcK++) {
|
|
1708
|
+
console.warn('[render-cache] settings.json > cache.' + _rcInert[_rcK] + ' is ignored there — set `' + _rcInert[_rcK] + '` under server.cache (settings.json, settings.server.cache.<env>.json or the project env.json)');
|
|
1709
|
+
}
|
|
1710
|
+
} catch (rcTopWarnErr) { /* advisory only */ }
|
|
1711
|
+
|
|
1694
1712
|
// #STO1 — pluggable object storage. Validate the bundle's
|
|
1695
1713
|
// `storage` block, build any connector-backed metadata
|
|
1696
1714
|
// stores, then install the drivers before the first
|
|
@@ -2232,7 +2250,22 @@ isBundleMounted(projects, bundlesPath, getContext('bundle'), function onBundleMo
|
|
|
2232
2250
|
}
|
|
2233
2251
|
|
|
2234
2252
|
// placing end:flag to allow the CLI to retrieve bundl info from here
|
|
2235
|
-
|
|
2253
|
+
// #B851 — the flag waits for the bind. It was printed on this timer
|
|
2254
|
+
// whether or not the server listened, so after a failed bind
|
|
2255
|
+
// `bundle:start` still read the bundle as started. core/server.js now
|
|
2256
|
+
// ends the boot on a bind error; the flag is printed once
|
|
2257
|
+
// `process.server.listening` is true, or on 'listening' when the bind is
|
|
2258
|
+
// still pending here. A server without a boolean `listening` keeps the
|
|
2259
|
+
// timer alone.
|
|
2260
|
+
// was: console.notice('[ FRAMEWORK ] Bundle started !');
|
|
2261
|
+
var _flagServer = process.server;
|
|
2262
|
+
if ( _flagServer && typeof(_flagServer.listening) == 'boolean' && !_flagServer.listening && typeof(_flagServer.once) == 'function' ) {
|
|
2263
|
+
_flagServer.once('listening', function onBundleListening() {
|
|
2264
|
+
console.notice('[ FRAMEWORK ] Bundle started !');
|
|
2265
|
+
});
|
|
2266
|
+
} else {
|
|
2267
|
+
console.notice('[ FRAMEWORK ] Bundle started !');
|
|
2268
|
+
}
|
|
2236
2269
|
}, 700); // 1000 - Wait to make sure that the bundle is mounted on the file system
|
|
2237
2270
|
});
|
|
2238
2271
|
|
|
@@ -2521,7 +2554,16 @@ isBundleMounted(projects, bundlesPath, getContext('bundle'), function onBundleMo
|
|
|
2521
2554
|
projectName = getContext('projectName');
|
|
2522
2555
|
processList = getContext('processList');
|
|
2523
2556
|
process.list = processList;
|
|
2524
|
-
|
|
2557
|
+
// #B850 — a worker child (an entry named `child.js` / `child-*.js`, loaded with
|
|
2558
|
+
// `--argv-filename`) runs under its parent bundle's name but is not the bundle. It
|
|
2559
|
+
// registers WITHOUT a pid file: it wrote its own pid into `<bundle>@<project>.pid`
|
|
2560
|
+
// and removed that file when it exited, so `bundle:stop` signalled the worker, and
|
|
2561
|
+
// `bundle:restart` reported success while the bundle kept serving. It is also marked
|
|
2562
|
+
// a minion, so its exit never unlinks the bundle's mount (lib/proc.js dismiss). Its
|
|
2563
|
+
// title and signal handlers are unchanged.
|
|
2564
|
+
// was: bundleProcess = new Proc(appName + '@' + projectName, process);
|
|
2565
|
+
process.isMinion = true;
|
|
2566
|
+
bundleProcess = new Proc(appName + '@' + projectName, process, false);
|
|
2525
2567
|
}
|
|
2526
2568
|
} catch (err) {
|
|
2527
2569
|
abort(err)
|
|
@@ -72,6 +72,42 @@ function escapeForJsonString(value) {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/**
|
|
76
|
+
* #B830 (2026-10-09) — render the control characters of a value as visible escapes before
|
|
77
|
+
* it is written into a log or error message, so a client-supplied value cannot forge a
|
|
78
|
+
* physical log line (CWE-117). The escaped set: C0 (U+0000-U+001F), DEL and C1
|
|
79
|
+
* (U+007F-U+009F), and the line separators U+2028 / U+2029 — every character a terminal or
|
|
80
|
+
* a line-based reader can take for a line break or a control sequence. `\n`, `\r`, `\t`
|
|
81
|
+
* become the two-character sequences; any other character of the set becomes `\uXXXX`;
|
|
82
|
+
* every other character is left untouched, so a value holding none comes back unchanged.
|
|
83
|
+
* Deliberately duplicated — in the logger, core/server.js, core/server.isaac.js,
|
|
84
|
+
* core/controller/controller.js, controller.render-swig.js, helpers/context.js, lib/lane,
|
|
85
|
+
* lib/routing and the validator — the way `escapeForJsonString` is (#B600): the logger is
|
|
86
|
+
* server-side only and two of those files are in the browser bundle, so no single
|
|
87
|
+
* requireable home serves them all without adding a public API surface.
|
|
88
|
+
* `test/lib/log-escape-parity-b830.test.js` fails when a copy drifts. The log redaction
|
|
89
|
+
* reads these escapes back (`lib/logger/src/redact.js`, `decodeView`): a change of the set
|
|
90
|
+
* here is a change there. On the server path (`backendInit` -> `validate`) a
|
|
91
|
+
* warning of a rule can print a value of the request body; in the browser the same line goes to the
|
|
92
|
+
* console only, where the escape is harmless.
|
|
93
|
+
*
|
|
94
|
+
* @inner
|
|
95
|
+
* @param {*} value - Coerced with `String()`.
|
|
96
|
+
* @returns {string} The value with its control characters shown as escapes.
|
|
97
|
+
* @example
|
|
98
|
+
* escapeLogControlChars('a\nb'); // the four characters a \ n b, on one physical line
|
|
99
|
+
*/
|
|
100
|
+
function escapeLogControlChars(value) {
|
|
101
|
+
return String(value).replace(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/g, function (c) {
|
|
102
|
+
switch (c) {
|
|
103
|
+
case '\n': return '\\n';
|
|
104
|
+
case '\r': return '\\r';
|
|
105
|
+
case '\t': return '\\t';
|
|
106
|
+
default : return '\\u' + ('000' + c.charCodeAt(0).toString(16)).slice(-4);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
75
111
|
/**
|
|
76
112
|
* Restores the field values spliced into a `query` rule's request body (#B600).
|
|
77
113
|
*
|
|
@@ -1579,7 +1615,10 @@ function FormValidatorUtil(data, $fields, xhrOptions, fieldsSet, culture) {
|
|
|
1579
1615
|
// and stays literal for the grammar to refuse — it used to splice `undefined`.
|
|
1580
1616
|
var fieldNames = [];
|
|
1581
1617
|
for (var fieldKey in self) {
|
|
1582
|
-
|
|
1618
|
+
// #B837 — the built-in own-key test: a field named `hasOwnProperty` is an own
|
|
1619
|
+
// field object on the instance, and calling it threw « not a function ».
|
|
1620
|
+
// was: if ( self.hasOwnProperty(fieldKey) && self[fieldKey] && typeof(self[fieldKey]) == 'object' && ('value' in self[fieldKey]) )
|
|
1621
|
+
if ( Object.prototype.hasOwnProperty.call(self, fieldKey) && self[fieldKey] && typeof(self[fieldKey]) == 'object' && ('value' in self[fieldKey]) ) {
|
|
1583
1622
|
fieldNames.push(fieldKey);
|
|
1584
1623
|
}
|
|
1585
1624
|
}
|
|
@@ -1669,7 +1708,7 @@ function FormValidatorUtil(data, $fields, xhrOptions, fieldsSet, culture) {
|
|
|
1669
1708
|
// A genuine authoring typo stays visible via the warning
|
|
1670
1709
|
// without killing live validation. Fail-closed: the field is
|
|
1671
1710
|
// treated as invalid on both the client and the server.
|
|
1672
|
-
console.warn('[FormValidator] Could not evaluate condition `' + compiledCondition + '` - treating field as invalid.\n(grammar: <operand><op><operand>; operand ∈ number | "string" | true | false | null | undefined; op ∈ === !== == != < > <= >=)');
|
|
1711
|
+
console.warn('[FormValidator] Could not evaluate condition `' + escapeLogControlChars(compiledCondition) + '` - treating field as invalid.\n(grammar: <operand><op><operand>; operand ∈ number | "string" | true | false | null | undefined; op ∈ === !== == != < > <= >=)');
|
|
1673
1712
|
isValid = false;
|
|
1674
1713
|
} else {
|
|
1675
1714
|
var _scsParseOperand = function(s) {
|
|
@@ -1705,7 +1744,7 @@ function FormValidatorUtil(data, $fields, xhrOptions, fieldsSet, culture) {
|
|
|
1705
1744
|
// #B600 — an operand that cannot be read fails the FIELD, like a
|
|
1706
1745
|
// grammar mismatch: a throw here would leave through the catch
|
|
1707
1746
|
// below and abort the whole validity pass.
|
|
1708
|
-
console.warn('[FormValidator] Could not read an operand of `' + compiledCondition + '` - treating field as invalid.\n(' + _scsOperandErr.message + ')');
|
|
1747
|
+
console.warn('[FormValidator] Could not read an operand of `' + escapeLogControlChars(compiledCondition) + '` - treating field as invalid.\n(' + escapeLogControlChars(_scsOperandErr.message) + ')');
|
|
1709
1748
|
isValid = false;
|
|
1710
1749
|
} else {
|
|
1711
1750
|
var _scsOp = _scsBinMatch[2];
|
|
@@ -2691,7 +2730,7 @@ function FormValidatorUtil(data, $fields, xhrOptions, fieldsSet, culture) {
|
|
|
2691
2730
|
// Default validation on livecheck & invalid init value
|
|
2692
2731
|
if (!val || val == '' || /NaN|Invalid Date/i.test(val) ) {
|
|
2693
2732
|
if ( /NaN|Invalid Date/i.test(val) ) {
|
|
2694
|
-
console.warn('[FormValidator::isDate] Provided value for field `'+ this.name +'` is not allowed: `'+ val +'`');
|
|
2733
|
+
console.warn('[FormValidator::isDate] Provided value for field `'+ escapeLogControlChars(this.name) +'` is not allowed: `'+ escapeLogControlChars(val) +'`');
|
|
2695
2734
|
errors['isDate'] = replace(this.error || local.errorLabels['isDate'], this, 'isDate');
|
|
2696
2735
|
|
|
2697
2736
|
}
|