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
|
@@ -100,9 +100,12 @@ function NunjucksFilters(conf) {
|
|
|
100
100
|
return getInstance();
|
|
101
101
|
} else {
|
|
102
102
|
NunjucksFilters.instance = self;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
// #B519 — the first call stamps by the same rule as every later one
|
|
104
|
+
// (getInstance below): made inside a request, its context is bound to that
|
|
105
|
+
// request and the instance keeps none; made outside any request, it goes to
|
|
106
|
+
// the process-wide slot as before.
|
|
107
|
+
// was: if (self.options) { NunjucksFilters.instance._options = self.options; }
|
|
108
|
+
getInstance();
|
|
106
109
|
NunjucksFilters.initialized = true;
|
|
107
110
|
return NunjucksFilters.instance;
|
|
108
111
|
}
|
|
@@ -110,13 +113,32 @@ function NunjucksFilters(conf) {
|
|
|
110
113
|
|
|
111
114
|
var getInstance = function() {
|
|
112
115
|
if (conf) {
|
|
113
|
-
// #
|
|
114
|
-
//
|
|
115
|
-
//
|
|
116
|
-
//
|
|
117
|
-
//
|
|
118
|
-
//
|
|
119
|
-
|
|
116
|
+
// #B519 — a factory call made INSIDE a request binds its context to THAT
|
|
117
|
+
// request — the store core/server.js handle() opens for every dispatch — and
|
|
118
|
+
// writes nothing process-wide. The slot below used to receive every
|
|
119
|
+
// request's context, so any reader with no render store of its own (a
|
|
120
|
+
// template run in an action outside a render delegate, a cron, worker or
|
|
121
|
+
// WebSocket render) resolved whichever request had stamped it last. A job's
|
|
122
|
+
// detached copy of a request context carries no `req`: it counts as outside
|
|
123
|
+
// a request, like boot, the CLI and a cron task.
|
|
124
|
+
var _reqStore = ( typeof(process) != 'undefined' && process.gina && process.gina._reqALS )
|
|
125
|
+
? process.gina._reqALS.getStore()
|
|
126
|
+
: null;
|
|
127
|
+
if ( _reqStore && _reqStore.req ) {
|
|
128
|
+
_reqStore.filterCtx = conf;
|
|
129
|
+
// the first call's `self` IS the instance: it must not keep a request's context
|
|
130
|
+
if ( NunjucksFilters.instance === self ) {
|
|
131
|
+
self.options = undefined;
|
|
132
|
+
}
|
|
133
|
+
} else {
|
|
134
|
+
// #P39 — stash by REFERENCE, mirroring lib/swig-filters: `_options`
|
|
135
|
+
// has no writer beyond this assignment (the getUrl/getWebroot merge
|
|
136
|
+
// fills a fresh `{}` target), the wrapper's `.options` is the
|
|
137
|
+
// render's per-request `local.options` (#M1), and `req`/`res` were
|
|
138
|
+
// by-reference through the former deep copy anyway. The per-call
|
|
139
|
+
// copy was pure CPU waste on every render.
|
|
140
|
+
self.options = NunjucksFilters.instance._options = conf;
|
|
141
|
+
}
|
|
120
142
|
}
|
|
121
143
|
return NunjucksFilters.instance;
|
|
122
144
|
};
|
|
@@ -147,7 +169,30 @@ function NunjucksFilters(conf) {
|
|
|
147
169
|
var _store = ( typeof(process) != 'undefined' && process.gina && process.gina._renderALS )
|
|
148
170
|
? process.gina._renderALS.getStore()
|
|
149
171
|
: null;
|
|
150
|
-
|
|
172
|
+
if ( !_store ) {
|
|
173
|
+
// #B519 — inside a request the filter context is THAT request's own, and the
|
|
174
|
+
// process-wide slot below is never read: first the context a factory call
|
|
175
|
+
// bound to this request (getInstance above), else one built from the request
|
|
176
|
+
// store itself — the options and the error responder controller.setOptions
|
|
177
|
+
// registered on it (none before a controller exists: getUrl then takes the
|
|
178
|
+
// bundle's conf from the registry), this request's own proxied
|
|
179
|
+
// classification, and its req / res.
|
|
180
|
+
var _reqStore = ( typeof(process) != 'undefined' && process.gina && process.gina._reqALS )
|
|
181
|
+
? process.gina._reqALS.getStore()
|
|
182
|
+
: null;
|
|
183
|
+
if ( _reqStore && _reqStore.req ) {
|
|
184
|
+
return _reqStore.filterCtx || {
|
|
185
|
+
options : _reqStore.options || {},
|
|
186
|
+
isProxyHost : ( _reqStore.req._ginaIsProxyHost === true ),
|
|
187
|
+
throwError : _reqStore.throwError,
|
|
188
|
+
req : _reqStore.req,
|
|
189
|
+
res : _reqStore.res
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
// outside a request: the slot (only ever stamped outside a request), then the
|
|
194
|
+
// first call's own context, then an empty one
|
|
195
|
+
return _store || NunjucksFilters.instance._options || self.options || { options: {} };
|
|
151
196
|
};
|
|
152
197
|
|
|
153
198
|
/**
|
|
@@ -204,11 +249,20 @@ function NunjucksFilters(conf) {
|
|
|
204
249
|
* bundle webroot prepended. Honours proxy mode via
|
|
205
250
|
* `process.gina.PROXY_HOSTNAME` / `PROXY_HOST`.
|
|
206
251
|
*
|
|
252
|
+
* A render context with no request (a mail or cron render, a library that
|
|
253
|
+
* builds the filters outside a request) degrades instead of throwing (#B516):
|
|
254
|
+
* the URL is built from the target bundle's configured hostname, or from the
|
|
255
|
+
* worker's proxy host when one is known — what a caller with no request in
|
|
256
|
+
* scope gets from `lib.routing.getRoute()`. A context with no `options.conf`
|
|
257
|
+
* takes the current bundle's conf from the Config registry.
|
|
258
|
+
*
|
|
207
259
|
* @memberof NunjucksFilters
|
|
208
260
|
* @param {string} route - Route name, `route@bundle`, or absolute path
|
|
209
261
|
* @param {object} [params] - Path/query parameters; pass `null` if `base` is needed but params aren't
|
|
210
262
|
* @param {string} [base] - Optional base — a CDN URL, `http://domain.com`, or another bundle name
|
|
211
263
|
* @returns {string} The resolved relative or absolute URL
|
|
264
|
+
* @throws {Error} when the context has no `throwError` and `base` names an unknown
|
|
265
|
+
* bundle, or when no bundle configuration resolves for the render context
|
|
212
266
|
*
|
|
213
267
|
* @example
|
|
214
268
|
* <a href="{{ '/homepage' | getUrl }}">Homepage</a>
|
|
@@ -222,6 +276,36 @@ function NunjucksFilters(conf) {
|
|
|
222
276
|
params = {};
|
|
223
277
|
}
|
|
224
278
|
var ctx = getRenderCtx();
|
|
279
|
+
// #B516 — a render context with no request (a mail or cron render, a library
|
|
280
|
+
// building the filters outside a request) or with no bundle configuration (the
|
|
281
|
+
// boot registration, an async delegate's context-free registration) used to
|
|
282
|
+
// throw a TypeError below: every rule form and every bundle base reads
|
|
283
|
+
// `ctx.req.headers`, and `ctx.options.conf` is read before that. Give the rest
|
|
284
|
+
// of this function a request-shaped VIEW of such a context instead of guarding
|
|
285
|
+
// each deref: empty headers, the method the context names (else GET), and the
|
|
286
|
+
// current bundle's conf from the Config registry — the lookup getWebroot makes.
|
|
287
|
+
// A context carrying both `req.headers` and `options.conf` is used as it is, so
|
|
288
|
+
// a request render is byte-identical. The view is local to this call: the
|
|
289
|
+
// caller's context object is never written.
|
|
290
|
+
var _ctxOptions = ctx.options || {};
|
|
291
|
+
var _isRequestLess = ( !ctx.req || !ctx.req.headers ) ? true : false;
|
|
292
|
+
if ( _isRequestLess || !_ctxOptions.conf ) {
|
|
293
|
+
var _ctxConf = _ctxOptions.conf;
|
|
294
|
+
if ( !_ctxConf ) {
|
|
295
|
+
var _registry = getContext('gina').Config.instance;
|
|
296
|
+
_ctxConf = _registry.Env.getConf(getContext('bundle'), _registry.env);
|
|
297
|
+
if ( !_ctxConf ) {
|
|
298
|
+
throw new Error('[nunjucks-filter] getUrl: this render context carries no bundle configuration, and none resolved for bundle `'+ getContext('bundle') +'`');
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
ctx = {
|
|
302
|
+
options : { conf: _ctxConf, rule: _ctxOptions.rule, method: _ctxOptions.method },
|
|
303
|
+
isProxyHost : ctx.isProxyHost,
|
|
304
|
+
throwError : ctx.throwError,
|
|
305
|
+
req : ( _isRequestLess ) ? { headers: {}, method: ( _ctxOptions.method || 'GET' ) } : ctx.req,
|
|
306
|
+
res : ctx.res
|
|
307
|
+
};
|
|
308
|
+
}
|
|
225
309
|
|
|
226
310
|
var config = null
|
|
227
311
|
, scheme = null
|
|
@@ -297,6 +381,23 @@ function NunjucksFilters(conf) {
|
|
|
297
381
|
|
|
298
382
|
scheme = hostname.match(/^(https|http)/)[0];
|
|
299
383
|
requestPort = (ctx.req.headers.port||ctx.req.headers[':port']||parseInt(process.gina.PROXY_PORT));
|
|
384
|
+
if ( _isRequestLess ) {
|
|
385
|
+
// #B516 — no request to read a port or a host from. With no
|
|
386
|
+
// worker-global port either, `requestPort` is NaN, which the proxied
|
|
387
|
+
// rewrite below appended to the host as `:NaN`: read it as the
|
|
388
|
+
// scheme's default port, which that rewrite never appends. And with
|
|
389
|
+
// no worker-global proxy host, the rewrite would emit
|
|
390
|
+
// `scheme://undefined`: hand the view the target bundle's own host, so
|
|
391
|
+
// a proxied classification with nothing to build from degrades to the
|
|
392
|
+
// configured hostname (the #B168 rule: degrade, never stringify an
|
|
393
|
+
// unset value).
|
|
394
|
+
if ( requestPort !== requestPort ) {
|
|
395
|
+
requestPort = ( scheme === 'https' ) ? 443 : 80;
|
|
396
|
+
}
|
|
397
|
+
if ( !process.gina.PROXY_HOST ) {
|
|
398
|
+
ctx.req.headers.host = config.hostname.replace(/^(https|http)\:\/\//, '');
|
|
399
|
+
}
|
|
400
|
+
}
|
|
300
401
|
var hostPort = config.hostname.match(/(\:d+\/|\:\d+)$/);
|
|
301
402
|
hostPort = (hostPort) ? ~~(hostPort[0].replace(/\:/g, '')) : config.port[config.server.protocol][config.server.scheme];
|
|
302
403
|
var isSpecialCase = (
|
|
@@ -332,6 +433,12 @@ function NunjucksFilters(conf) {
|
|
|
332
433
|
isMaster = (mainConf.bundles[0] === config.bundle) ? true : false;
|
|
333
434
|
|
|
334
435
|
} else {
|
|
436
|
+
// #B516 — a context with no `throwError` has no response to answer
|
|
437
|
+
// (a request-less render): the caller owns the failure, so throw a
|
|
438
|
+
// named Error instead of a TypeError on the call below.
|
|
439
|
+
if ( typeof(ctx.throwError) != 'function' ) {
|
|
440
|
+
throw new Error('[nunjucks-filter] getUrl: bundle `'+ base +'` not found (base `'+ base +'`, route `'+ route +'`)');
|
|
441
|
+
}
|
|
335
442
|
ctx.throwError(ctx.res, 500, new Error('bundle `'+ base +'` not found: NunjucksFilters.getUrl() filter encountered a problem while trying to compile base `'+base+'` and route `'+route+'`').stack);
|
|
336
443
|
}
|
|
337
444
|
} else {
|
|
@@ -67,7 +67,14 @@ var generator = require( _(__dirname + '/generator') );
|
|
|
67
67
|
*
|
|
68
68
|
* @param {string} bundle - Bundle name
|
|
69
69
|
* @param {object} [proc] - Existing process descriptor to attach to
|
|
70
|
-
* @param {boolean} [usePidFile] - Write
|
|
70
|
+
* @param {boolean} [usePidFile] - Write the `<bundle>.pid` file in the run directory
|
|
71
|
+
* (default: true). With `false` the process still gets its `gina: <bundle>` title and
|
|
72
|
+
* its signal handlers, but no pid file, so `onReady()` never fires (it waits for the
|
|
73
|
+
* file). A worker child loaded with `--argv-filename` registers this way (#B850).
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* var bundleProcess = new Proc('api@shop', process); // title, handlers, api@shop.pid
|
|
77
|
+
* var workerProcess = new Proc('api@shop', process, false); // title, handlers, no pid file
|
|
71
78
|
*/
|
|
72
79
|
function Proc(bundle, proc, usePidFile){
|
|
73
80
|
|
|
@@ -658,13 +665,25 @@ function Proc(bundle, proc, usePidFile){
|
|
|
658
665
|
}
|
|
659
666
|
}
|
|
660
667
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
+
// #B850 — the title and the signal handlers (setPID) are set for every registered
|
|
669
|
+
// process; only the pid file depends on `usePidFile`. With `false` none of the three
|
|
670
|
+
// was set, so a process could not register without a pid file and keep its handlers.
|
|
671
|
+
// was: if (self.usePidFile) {
|
|
672
|
+
// was: // save file
|
|
673
|
+
// was: if (!isReplacementNeeded) {
|
|
674
|
+
// was: self.PID = self.proc.pid;
|
|
675
|
+
// was: self.path = path + pathObj.sep;
|
|
676
|
+
// was: //Add PID file.
|
|
677
|
+
// was: setPID(bundle, self.PID, self.proc);
|
|
678
|
+
// was: save(bundle, self.PID, self.proc);
|
|
679
|
+
// was: }
|
|
680
|
+
// was: }
|
|
681
|
+
if (!isReplacementNeeded) {
|
|
682
|
+
self.PID = self.proc.pid;
|
|
683
|
+
self.path = path + pathObj.sep;
|
|
684
|
+
setPID(bundle, self.PID, self.proc);
|
|
685
|
+
//Add PID file.
|
|
686
|
+
if (self.usePidFile) {
|
|
668
687
|
save(bundle, self.PID, self.proc);
|
|
669
688
|
}
|
|
670
689
|
}
|
|
@@ -1173,4 +1173,101 @@ RenderCache.swapNonces = function (content, oldNonces, nonce) {
|
|
|
1173
1173
|
return content;
|
|
1174
1174
|
};
|
|
1175
1175
|
|
|
1176
|
+
/**
|
|
1177
|
+
* The six keys the framework's `env.json` template defines under `server.cache`
|
|
1178
|
+
* (`enable`, `path`, `ttl`, `sliding`, `maxAge`, `maxEntries`). In `settings.json`'s
|
|
1179
|
+
* TOP-LEVEL `cache` block they are inert by construction (#B744): the #B114 fold
|
|
1180
|
+
* into `server.cache` is fill-only and runs after the template has set all six,
|
|
1181
|
+
* so the block can only contribute `type`, `store` and `name`.
|
|
1182
|
+
*
|
|
1183
|
+
* @memberof RenderCache
|
|
1184
|
+
* @static
|
|
1185
|
+
* @constant {string[]}
|
|
1186
|
+
*/
|
|
1187
|
+
RenderCache.INERT_TOP_LEVEL_KEYS = ['enable', 'path', 'ttl', 'sliding', 'maxAge', 'maxEntries'];
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* Names the keys of a `settings.json` top-level `cache` block that the framework
|
|
1191
|
+
* ignores there (#B744) — the boot warns once per key, naming `server.cache`,
|
|
1192
|
+
* the block that works. Pure; any non-object answers an empty list.
|
|
1193
|
+
*
|
|
1194
|
+
* @memberof RenderCache
|
|
1195
|
+
* @static
|
|
1196
|
+
* @param {object} [settingsCache] - The bundle's `settings.json` → `cache` block, as written.
|
|
1197
|
+
* @returns {string[]} the inert keys present, in {@link RenderCache.INERT_TOP_LEVEL_KEYS} order.
|
|
1198
|
+
*
|
|
1199
|
+
* @example
|
|
1200
|
+
* RenderCache.inertTopLevelKeys({ type: 'memory' }); // []
|
|
1201
|
+
* RenderCache.inertTopLevelKeys({ enable: 'true', ttl: 120 }); // ['enable', 'ttl']
|
|
1202
|
+
*/
|
|
1203
|
+
RenderCache.inertTopLevelKeys = function(settingsCache) {
|
|
1204
|
+
if ( !settingsCache || typeof(settingsCache) !== 'object' || Array.isArray(settingsCache) ) {
|
|
1205
|
+
return [];
|
|
1206
|
+
}
|
|
1207
|
+
var keys = RenderCache.INERT_TOP_LEVEL_KEYS, out = [];
|
|
1208
|
+
for (var i = 0; i < keys.length; i++) {
|
|
1209
|
+
if ( Object.prototype.hasOwnProperty.call(settingsCache, keys[i]) ) {
|
|
1210
|
+
out.push(keys[i]);
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
return out;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* Resolves a bundle's render/output-cache root — the writer's `server.cache.path` —
|
|
1218
|
+
* OFFLINE, from the sources the config loader merges and in the order it was
|
|
1219
|
+
* measured (#B744): the per-env sub-file `settings.server.cache.<env>.json`, then
|
|
1220
|
+
* `settings.json`'s `server.cache`, then the project `env.json`'s `<bundle>.<env>`
|
|
1221
|
+
* block, then the framework default `${cachePath}` (`<projectPath>/cache`, or the
|
|
1222
|
+
* env block's own `cachePath`). Pure — the caller reads the files (#B785: the
|
|
1223
|
+
* `cache:clear` offline reclaim used to assume the default root). `${cachePath}`,
|
|
1224
|
+
* `${projectPath}`, `${executionPath}` and `${bundle}` are substituted; any other
|
|
1225
|
+
* token is left verbatim, as the loader does.
|
|
1226
|
+
*
|
|
1227
|
+
* @memberof RenderCache
|
|
1228
|
+
* @static
|
|
1229
|
+
* @param {object} sources
|
|
1230
|
+
* @param {object|null} [sources.subFile] - Parsed `settings.server.cache.<env>.json` (the block's own keys).
|
|
1231
|
+
* @param {object|null} [sources.settings] - Parsed `settings.json`.
|
|
1232
|
+
* @param {object|null} [sources.envBlock] - Parsed `env.json` → `<bundle>.<env>`.
|
|
1233
|
+
* @param {object} tokens
|
|
1234
|
+
* @param {string} tokens.projectPath - The project directory (`${projectPath}` / `${executionPath}`).
|
|
1235
|
+
* @param {string} [tokens.bundle] - The bundle name (`${bundle}`).
|
|
1236
|
+
* @returns {string} the resolved root.
|
|
1237
|
+
*
|
|
1238
|
+
* @example
|
|
1239
|
+
* RenderCache.resolveCacheRoot({ settings: { server: { cache: { path: '/var/cache/app' } } } },
|
|
1240
|
+
* { projectPath: '/srv/proj', bundle: 'app' }); // '/var/cache/app'
|
|
1241
|
+
* RenderCache.resolveCacheRoot({}, { projectPath: '/srv/proj' }); // '/srv/proj/cache'
|
|
1242
|
+
*/
|
|
1243
|
+
RenderCache.resolveCacheRoot = function(sources, tokens) {
|
|
1244
|
+
sources = sources || {};
|
|
1245
|
+
tokens = tokens || {};
|
|
1246
|
+
var projectPath = ( typeof(tokens.projectPath) === 'string' ) ? tokens.projectPath : '';
|
|
1247
|
+
var sub = {
|
|
1248
|
+
projectPath : projectPath,
|
|
1249
|
+
executionPath : ( typeof(tokens.executionPath) === 'string' ) ? tokens.executionPath : projectPath,
|
|
1250
|
+
bundle : ( typeof(tokens.bundle) === 'string' ) ? tokens.bundle : ''
|
|
1251
|
+
};
|
|
1252
|
+
var substitute = function(str) {
|
|
1253
|
+
return str.replace(/\$\{(cachePath|projectPath|executionPath|bundle)\}/g, function(m, k) {
|
|
1254
|
+
return ( typeof(sub[k]) === 'string' ) ? sub[k] : m;
|
|
1255
|
+
});
|
|
1256
|
+
};
|
|
1257
|
+
var envBlock = sources.envBlock || null;
|
|
1258
|
+
var cacheTok = ( envBlock && typeof(envBlock.cachePath) === 'string' && envBlock.cachePath )
|
|
1259
|
+
? envBlock.cachePath
|
|
1260
|
+
: projectPath + '/cache';
|
|
1261
|
+
sub.cachePath = substitute(cacheTok);
|
|
1262
|
+
|
|
1263
|
+
var pathOf = function(block) {
|
|
1264
|
+
return ( block && typeof(block.path) === 'string' && block.path ) ? block.path : null;
|
|
1265
|
+
};
|
|
1266
|
+
var picked = pathOf(sources.subFile)
|
|
1267
|
+
|| pathOf(sources.settings && sources.settings.server && sources.settings.server.cache)
|
|
1268
|
+
|| pathOf(envBlock && envBlock.server && envBlock.server.cache)
|
|
1269
|
+
|| '${cachePath}';
|
|
1270
|
+
return substitute(picked);
|
|
1271
|
+
};
|
|
1272
|
+
|
|
1176
1273
|
module.exports = RenderCache;
|
|
@@ -23,6 +23,33 @@ function Routing() {
|
|
|
23
23
|
notFound: {}
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* #B830 (2026-10-09) — render the control characters of a value (C0 U+0000-U+001F, DEL
|
|
28
|
+
* and C1 U+007F-U+009F, the line separators U+2028 / U+2029) as visible escapes
|
|
29
|
+
* (`\n`/`\r`/`\t`, else `\uXXXX`) before it is written into a log message, so a request
|
|
30
|
+
* value substituted into a route URL cannot forge a physical log line (CWE-117).
|
|
31
|
+
* Declared inside `Routing()`: this file is also in the browser bundle, where a
|
|
32
|
+
* top-level function of the same name would meet the validator's copy.
|
|
33
|
+
* `test/lib/log-escape-parity-b830.test.js` fails when a copy drifts.
|
|
34
|
+
*
|
|
35
|
+
* @inner
|
|
36
|
+
* @private
|
|
37
|
+
* @param {*} value - Coerced with `String()`.
|
|
38
|
+
* @returns {string} The value with its control characters shown as escapes.
|
|
39
|
+
* @example
|
|
40
|
+
* escapeLogControlChars('/a\nb'); // the five characters / a \ n b, on one physical line
|
|
41
|
+
*/
|
|
42
|
+
function escapeLogControlChars(value) {
|
|
43
|
+
return String(value).replace(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/g, function (c) {
|
|
44
|
+
switch (c) {
|
|
45
|
+
case '\n': return '\\n';
|
|
46
|
+
case '\r': return '\\r';
|
|
47
|
+
case '\t': return '\\t';
|
|
48
|
+
default: return '\\u' + ('000' + c.charCodeAt(0).toString(16)).slice(-4);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
26
53
|
self.getInstance = function(params) {
|
|
27
54
|
return Routing.instance;
|
|
28
55
|
}
|
|
@@ -670,11 +697,22 @@ function Routing() {
|
|
|
670
697
|
* This is for server side use only
|
|
671
698
|
* http://en.wikipedia.org/wiki/Regular_expression
|
|
672
699
|
*
|
|
673
|
-
*
|
|
674
|
-
*
|
|
675
|
-
*
|
|
700
|
+
* Before the requirement test, writes `urlVal` in place of the `urlVar` placeholder in
|
|
701
|
+
* `params.param.path`, `.namespace` and `.title`, verbatim: through a function replacer,
|
|
702
|
+
* so `$`-patterns in the value are not expanded (#B688).
|
|
676
703
|
*
|
|
677
|
-
* @
|
|
704
|
+
* @param {string} urlVar - the rule's URL segment, e.g. `:id`
|
|
705
|
+
* @param {string} urlVal - the request's URL segment at the same position
|
|
706
|
+
* @param {object} params - the per-request route description (its `param` is a per-request copy)
|
|
707
|
+
* @param {object} request
|
|
708
|
+
* @param {object} response
|
|
709
|
+
* @param {function} next
|
|
710
|
+
*
|
|
711
|
+
* @returns {Promise<boolean>} `true` if it fits
|
|
712
|
+
*
|
|
713
|
+
* @example
|
|
714
|
+
* // rule url `/user/:id`, param `{ title: 'User :id' }`, request `/user/$%60`
|
|
715
|
+
* await fitsWithRequirements(':id', '$`', params, req, res, next); // params.param.title === 'User $`'
|
|
678
716
|
*
|
|
679
717
|
* @private
|
|
680
718
|
* */
|
|
@@ -704,14 +742,21 @@ function Routing() {
|
|
|
704
742
|
|
|
705
743
|
if (!_param.length) return false;
|
|
706
744
|
|
|
745
|
+
// #B688 — the path, namespace and title rewrites take the URL value through a FUNCTION
|
|
746
|
+
// replacer. A string replacement expanded `$`-patterns found in the value (`` $` `` the
|
|
747
|
+
// text before the placeholder, `$&` the placeholder, `$'` the text after it, `$$` a `$`):
|
|
748
|
+
// a request to `/user/$%60` turned `"title": "User :id"` into `User User `. The value is
|
|
749
|
+
// now written verbatim, as the URL and `param.file` already were.
|
|
707
750
|
// if custom path, path rewrite
|
|
708
751
|
if (params.param.path && regex.test(params.param.path)) {
|
|
709
|
-
params.param.path = params.param.path.replace(regex, urlVal);
|
|
752
|
+
// was: params.param.path = params.param.path.replace(regex, urlVal);
|
|
753
|
+
params.param.path = params.param.path.replace(regex, function () { return urlVal; });
|
|
710
754
|
}
|
|
711
755
|
|
|
712
756
|
// if custom namespace, namespace rewrite
|
|
713
757
|
if (params.param.namespace && regex.test(params.param.namespace)) {
|
|
714
|
-
params.param.namespace = params.param.namespace.replace(regex, urlVal);
|
|
758
|
+
// was: params.param.namespace = params.param.namespace.replace(regex, urlVal);
|
|
759
|
+
params.param.namespace = params.param.namespace.replace(regex, function () { return urlVal; });
|
|
715
760
|
}
|
|
716
761
|
|
|
717
762
|
// if custom file, file rewrite
|
|
@@ -726,9 +771,10 @@ function Routing() {
|
|
|
726
771
|
_regex = null;
|
|
727
772
|
}
|
|
728
773
|
|
|
729
|
-
// if custom title, title rewrite
|
|
774
|
+
// if custom title, title rewrite (#B688: a function replacer, as for the path above)
|
|
730
775
|
if (params.param.title && regex.test(params.param.title)) {
|
|
731
|
-
params.param.title = params.param.title.replace(regex, urlVal);
|
|
776
|
+
// was: params.param.title = params.param.title.replace(regex, urlVal);
|
|
777
|
+
params.param.title = params.param.title.replace(regex, function () { return urlVal; });
|
|
732
778
|
}
|
|
733
779
|
|
|
734
780
|
|
|
@@ -1000,16 +1046,69 @@ function Routing() {
|
|
|
1000
1046
|
return false
|
|
1001
1047
|
}
|
|
1002
1048
|
|
|
1049
|
+
/**
|
|
1050
|
+
* String.prototype.replace callback shared by the placeholder writers: returns
|
|
1051
|
+
* `replacement.variable`, plus the `/` the match consumed when the regex matched `:id/`.
|
|
1052
|
+
* A function replacer writes the value verbatim, where a string replacement would expand
|
|
1053
|
+
* `$`-patterns in it (#B688). Set `replacement.variable` right before each `.replace()`.
|
|
1054
|
+
*
|
|
1055
|
+
* @inner
|
|
1056
|
+
* @param {string} matched - the matched placeholder, `:id` or `:id/`
|
|
1057
|
+
* @returns {string|*} the value, with a trailing `/` when `matched` had one
|
|
1058
|
+
*
|
|
1059
|
+
* @example
|
|
1060
|
+
* replacement.variable = '42';
|
|
1061
|
+
* '/users/:id/edit'.replace(/(:id\/|:id$)/g, replacement); // '/users/42/edit'
|
|
1062
|
+
*/
|
|
1003
1063
|
var replacement = function(matched){
|
|
1004
1064
|
return ( /\/$/.test(matched) ? replacement.variable+ '/': replacement.variable )
|
|
1005
1065
|
};
|
|
1006
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* #B833 — a route placeholder value coming from the REQUEST (checkRouteParams is fed
|
|
1069
|
+
* `request[method]`, which merges the query string and body) is substituted VERBATIM into
|
|
1070
|
+
* `param.file` / `param.path` / `param.namespace`, AFTER the route requirement was matched
|
|
1071
|
+
* against the URL segment. A query value of the same name therefore overrides a
|
|
1072
|
+
* requirement-validated URL segment and can carry `..` into the rendered template path
|
|
1073
|
+
* (CWE-22, the CVE-2023-25345 class the render delegates guard). This predicate flags a value
|
|
1074
|
+
* that would ESCAPE when used as a path component: a `..` path segment, or a leading path
|
|
1075
|
+
* separator (an absolute path, which `path.resolve` honours over the root). Developer-authored
|
|
1076
|
+
* static prefixes in `param.file` (e.g. `../shared/:template`, reaching a sibling namespace
|
|
1077
|
+
* directory) are NOT request values and are never tested here — only the substituted value is.
|
|
1078
|
+
*
|
|
1079
|
+
* @inner
|
|
1080
|
+
* @param {*} value - the request-supplied placeholder value
|
|
1081
|
+
* @returns {boolean} true when the value would escape as a path component
|
|
1082
|
+
*
|
|
1083
|
+
* @example
|
|
1084
|
+
* _isUnsafePathValue('../../etc/passwd'); // true (`..` segment)
|
|
1085
|
+
* _isUnsafePathValue('/etc/passwd'); // true (leading separator — absolute path)
|
|
1086
|
+
* _isUnsafePathValue('estimate-add'); // false
|
|
1087
|
+
* _isUnsafePathValue('foo/bar'); // false (stays within the root once prefixed)
|
|
1088
|
+
*/
|
|
1089
|
+
var _isUnsafePathValue = function(value){
|
|
1090
|
+
var v = (typeof value === 'string') ? value : String(value);
|
|
1091
|
+
return /(^|[\/\\])\.\.([\/\\]|$)/.test(v) || /^[\/\\]/.test(v);
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1007
1094
|
/**
|
|
1008
1095
|
* checkRouteParams
|
|
1009
1096
|
*
|
|
1010
|
-
*
|
|
1011
|
-
*
|
|
1097
|
+
* Fills the route's `:placeholders` from `params`: for each `param` entry declared as a
|
|
1098
|
+
* placeholder (`"id": ":id"`), writes `params.id` into `param.path`, `.title`,
|
|
1099
|
+
* `.namespace`, `.file` and the url. Every value goes through `replacement`, so it is
|
|
1100
|
+
* written verbatim (`$`-patterns are not expanded) and the `/` after a `:id/` placeholder
|
|
1101
|
+
* is kept (#B688).
|
|
1102
|
+
*
|
|
1103
|
+
* @inner
|
|
1104
|
+
* @param {object} route - the route to fill: a copy (getRoute clones the rule, the
|
|
1105
|
+
* request path clones `param` per request)
|
|
1106
|
+
* @param {object} params - placeholder values, keyed by variable name
|
|
1012
1107
|
* @return {object} route - updated route object
|
|
1108
|
+
*
|
|
1109
|
+
* @example
|
|
1110
|
+
* // param `{ id: ':id', path: '/users/:id/edit', title: 'User :id' }`
|
|
1111
|
+
* checkRouteParams(route, { id: '42' }); // param.path '/users/42/edit', param.title 'User 42'
|
|
1013
1112
|
*/
|
|
1014
1113
|
var checkRouteParams = function(route, params) {
|
|
1015
1114
|
var variable = null
|
|
@@ -1032,15 +1131,38 @@ function Routing() {
|
|
|
1032
1131
|
|
|
1033
1132
|
regex = new RegExp('(:'+variable+'/|:'+variable+'$)', 'g');
|
|
1034
1133
|
|
|
1134
|
+
// #B833 — fail closed BEFORE substituting: a request value that would escape as
|
|
1135
|
+
// a path component must never fill a filesystem-path param (`file`/`path`/
|
|
1136
|
+
// `namespace`). Only guard when THIS variable actually fills one of those (a `..`
|
|
1137
|
+
// in a value that fills only `title`/`url` is harmless). A traversal attempt
|
|
1138
|
+
// throws the same CVE-2023-25345 block the render delegates raise.
|
|
1139
|
+
if ( _isUnsafePathValue(params[variable]) ) {
|
|
1140
|
+
var _b833Ph = new RegExp(':' + variable.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '(?:/|$)');
|
|
1141
|
+
if (
|
|
1142
|
+
( typeof(route.param.file) != 'undefined' && _b833Ph.test(route.param.file) )
|
|
1143
|
+
|| ( typeof(route.param.path) != 'undefined' && _b833Ph.test(route.param.path) )
|
|
1144
|
+
|| ( typeof(route.param.namespace) != 'undefined' && _b833Ph.test(route.param.namespace) )
|
|
1145
|
+
) {
|
|
1146
|
+
throw new Error('[CVE-2023-25345] Path traversal attempt blocked in route param `' + variable + '`');
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1035
1149
|
|
|
1150
|
+
// #B688 — path, title and namespace go through `replacement`, as `file` and the
|
|
1151
|
+
// URL below already did. A string replacement expanded `$`-patterns found in the
|
|
1152
|
+
// value (`` $` `` `$&` `$'` `$$`) and dropped the `/` this regex consumes:
|
|
1153
|
+
// `/users/:id/edit` gave `/users/42edit`.
|
|
1154
|
+
replacement.variable = params[variable];
|
|
1036
1155
|
if ( typeof(route.param.path) != 'undefined' && /\:/.test(route.param.path) ) {
|
|
1037
|
-
route.param.path = route.param.path.replace( regex, params[variable]);
|
|
1156
|
+
// was: route.param.path = route.param.path.replace( regex, params[variable]);
|
|
1157
|
+
route.param.path = route.param.path.replace( regex, replacement );
|
|
1038
1158
|
}
|
|
1039
1159
|
if (typeof (route.param.title) != 'undefined' && /\:/.test(route.param.title)) {
|
|
1040
|
-
route.param.title = route.param.title.replace( regex, params[variable]);
|
|
1160
|
+
// was: route.param.title = route.param.title.replace( regex, params[variable]);
|
|
1161
|
+
route.param.title = route.param.title.replace( regex, replacement );
|
|
1041
1162
|
}
|
|
1042
1163
|
if (typeof (route.param.namespace) != 'undefined' && /\:/.test(route.param.namespace)) {
|
|
1043
|
-
route.param.namespace = route.param.namespace.replace( regex, params[variable]);
|
|
1164
|
+
// was: route.param.namespace = route.param.namespace.replace( regex, params[variable]);
|
|
1165
|
+
route.param.namespace = route.param.namespace.replace( regex, replacement );
|
|
1044
1166
|
}
|
|
1045
1167
|
// file is handle like url replacement (path is like pathname)
|
|
1046
1168
|
if (typeof (route.param.file) != 'undefined' && /\:/.test(route.param.file)) {
|
|
@@ -1513,7 +1635,11 @@ function Routing() {
|
|
|
1513
1635
|
var paramList = route.url
|
|
1514
1636
|
.match(/(\:(.*)\/|\:(.*)$)/g)
|
|
1515
1637
|
.map(function(el){ return el.replace(/\//g, ''); }).join(', ');
|
|
1516
|
-
|
|
1638
|
+
// #B830 — `route.url` holds the request values already written into it, and the
|
|
1639
|
+
// list below is cut out of it: both are written with their control characters as
|
|
1640
|
+
// visible escapes, so neither can start a line of its own in the log
|
|
1641
|
+
// was: … param placeholder not defined: `' + route.url + '` !\n Check … [ '+ paramList +']';
|
|
1642
|
+
msg = '[ RoutingHelper::getRoute(rule[, bundle, method]) ] : route [ %r ] param placeholder not defined: `' + escapeLogControlChars(route.url) + '` !\n Check your route description to compare requirements against param variables [ '+ escapeLogControlChars(paramList) +']';
|
|
1517
1643
|
msg = msg.replace(/\%r/, rule);
|
|
1518
1644
|
var err = new Error(msg);
|
|
1519
1645
|
console.warn( err );
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
* 1. `node:sqlite` (Node.js built-in since 22.5.0) — tried FIRST, so the
|
|
13
13
|
* Node path is byte-identical to a direct require, and any future
|
|
14
14
|
* runtime that implements `node:sqlite` (Bun tracks it upstream as
|
|
15
|
-
* oven-sh/bun#20412) automatically retires the adapter below.
|
|
15
|
+
* oven-sh/bun#20412) automatically retires the adapter below. The class
|
|
16
|
+
* is taken as `Database` where the module exports it (Node 26.11.0
|
|
17
|
+
* renamed `DatabaseSync` and deprecated the old name, DEP0210) and as
|
|
18
|
+
* `DatabaseSync` everywhere else.
|
|
16
19
|
* 2. Under the Bun runtime, `bun:sqlite` behind a `DatabaseSync`-shaped
|
|
17
20
|
* adapter covering exactly the surface the framework uses:
|
|
18
21
|
* constructor(path) / exec() / prepare() -> get()/all()/run() with
|
|
@@ -160,9 +163,11 @@ function makeAdapter(bunSqlite) {
|
|
|
160
163
|
/**
|
|
161
164
|
* Resolves the synchronous SQLite driver constructor for this runtime.
|
|
162
165
|
*
|
|
163
|
-
* Returns `node:sqlite`'s
|
|
164
|
-
* supported Node, and
|
|
165
|
-
*
|
|
166
|
+
* Returns `node:sqlite`'s own class verbatim when available (every
|
|
167
|
+
* supported Node, and a Bun that implements the module) — `Database` where
|
|
168
|
+
* the module exports it, since Node 26.11.0 renamed the class and kept
|
|
169
|
+
* `DatabaseSync` as a deprecated alias, and `DatabaseSync` otherwise — else
|
|
170
|
+
* the `bun:sqlite` adapter under Bun. Throws when this runtime offers no
|
|
166
171
|
* SQLite driver — callers wrap the message with their component tag and
|
|
167
172
|
* keep their existing degrade semantics.
|
|
168
173
|
*
|
|
@@ -182,7 +187,12 @@ function getDatabaseSync() {
|
|
|
182
187
|
|
|
183
188
|
var nodeErr;
|
|
184
189
|
try {
|
|
185
|
-
|
|
190
|
+
// Node 26.11.0 renamed the class to `Database` and kept `DatabaseSync` as
|
|
191
|
+
// a deprecated alias (DEP0210). Take the current name where the runtime
|
|
192
|
+
// exports it and the older one everywhere else — one and the same class
|
|
193
|
+
// on a runtime that has both (#B829).
|
|
194
|
+
var nodeSqlite = require('node:sqlite');
|
|
195
|
+
_DatabaseSync = nodeSqlite.Database || nodeSqlite.DatabaseSync;
|
|
186
196
|
return _DatabaseSync;
|
|
187
197
|
} catch (e) {
|
|
188
198
|
nodeErr = e;
|