gina 0.7.4 → 0.7.5
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 +79 -8
- package/CONTRIBUTING.md +1 -1
- package/INSTALL.md +3 -42
- package/README.md +56 -50
- package/ROADMAP.md +18 -4
- package/bin/cli +13 -6
- package/bin/gina +8 -0
- package/bin/gina-container +92 -11
- package/bin/gina-init +49 -4
- package/framework/v0.7.5/VERSION +1 -0
- package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.js +1062 -139
- package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js +744 -0
- package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/{v0.7.4 → v0.7.5}/core/config.js +27 -2
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/index.js +36 -2
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/connector.v3.js +63 -13
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/connector.v4.js +56 -11
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/duckdb/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/duckdb/lib/connector.js +27 -3
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/mysql/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/postgresql/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/scylladb/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/scylladb/lib/connector.js +4 -3
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/connector.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/job-store.js +2 -2
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/kv-store.js +1 -1
- package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.js +79 -8
- package/framework/{v0.7.4 → v0.7.5}/core/gna.js +11 -3
- package/framework/{v0.7.4 → v0.7.5}/core/model/index.js +19 -12
- package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/src/form-validator.js +95 -8
- package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/src/main.js +574 -64
- package/framework/{v0.7.4 → v0.7.5}/core/server.isaac.js +1 -1
- package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/index.js +3 -1
- package/framework/{v0.7.4 → v0.7.5}/helpers/context.js +17 -1
- package/framework/{v0.7.4 → v0.7.5}/helpers/data/src/main.js +74 -4
- package/framework/{v0.7.4 → v0.7.5}/helpers/index.js +7 -1
- package/framework/v0.7.5/helpers/json/src/main.js +340 -0
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/list.js +4 -2
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/restart.js +2 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/start.js +52 -4
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/status.js +2 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/add.js +17 -3
- package/framework/v0.7.5/lib/cmd/framework/inc/child-failure.js +77 -0
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/init.js +31 -4
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/link.js +6 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/start.js +6 -6
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/helper.js +165 -16
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/add.js +79 -27
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/rename.js +1 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/restore.js +4 -4
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/status.js +2 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/collection/src/main.js +59 -9
- package/framework/{v0.7.4 → v0.7.5}/lib/connector-config/src/main.js +52 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/model.js +35 -11
- package/framework/{v0.7.4 → v0.7.5}/lib/proc.js +95 -31
- package/framework/{v0.7.4 → v0.7.5}/lib/routing/src/main.js +260 -54
- package/framework/{v0.7.4 → v0.7.5}/lib/swig-resolver/src/main.js +107 -12
- package/framework/{v0.7.4 → v0.7.5}/package.json +2 -2
- package/gna.js +4 -4
- package/llms.txt +35 -28
- package/package.json +6 -6
- package/schema/connectors.json +3 -3
- package/schema/settings.json +3 -3
- package/script/post_install.js +36 -9
- package/script/pre_install.js +9 -5
- package/script/smoke_in_container.js +4 -4
- package/types/globals.d.ts +7 -1
- package/types/index.d.ts +3 -3
- package/framework/v0.7.4/VERSION +0 -1
- package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -736
- 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.4/helpers/json/src/main.js +0 -187
- /package/framework/{v0.7.4 → v0.7.5}/AUTHORS +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/LICENSE +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/html/static.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/config.requirements-anchor.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/ai/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/ai/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/storage-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/job-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mysql/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/param-redact.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/postgresql/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/job-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/kv-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/scylladb/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/settle-once.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/sql-parser.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/content.encoding +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-json.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-nunjucks-async.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-nunjucks.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-stream.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-swig-async.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-swig.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-v1.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-xml.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/inline-script.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/inspector-window-emit.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/preload-hints.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/release-banner.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/dev/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/currency.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/mime.types +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/model/entity.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/model/template/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/csrf/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/csrf/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/csrf/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coep/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coep/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coop/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coop/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/corp/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/corp/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/csp/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/csp/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hsts/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hsts/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/session/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/session/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/session/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/router.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/server.express.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/server.isaac.rapid-reset.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/server.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/server.route-candidates.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/status.codes +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/_gitignore +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/connectors.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/watchers.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/locales/en.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/css/home.css +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/sw.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/env.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/settings.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/console.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/data/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/data/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/json/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/json/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/path.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/prototypes.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/task.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/text.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/admin/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/admin/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/async/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/async/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/audit/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/audit/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/audit-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authn/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authn/src/lockout.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authn/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authn/src/totp.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authz-gate/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authz-gate/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cache/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cache/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cache/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cache/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/aliases.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/audit/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/audit/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/audit/verify.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/build.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/boot-lines.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/name.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/start-status.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/mcp-start.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/mcp.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/oas.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/openapi.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/types.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/clear.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/stats.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/infer.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/migrate.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/models.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/test.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/ps.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/stop.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/args.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/namespace.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/reference-scan.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/scaffold.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/rename.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/inc/name.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/get.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/inc/listen-error.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/inc/ps-titles.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/reset.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/restart.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/status.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/stop.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/tail.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/export.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/import.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/scan.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/_host.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/build.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/run.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/inspector/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/inspector/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/inspector/open.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/man-render.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/kill.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/set.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/backup.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/build.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/inc/name.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/inc/name.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/check.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/scan.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/start.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/gc.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/stats.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/verify.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd-status-format/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd-status-format/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/collection/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/collection/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/collection/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/conf-view/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/conf-view/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/config.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/connector-config/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/connector-error/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/connector-error/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/connector-registry/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/connector-registry/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cron/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cron/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/domain/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/domain/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/domain/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto-pipe/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto-pipe/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto-types/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto-types/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/duration/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/duration/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/error-ref/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/error-ref/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/generator/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/i18n/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/i18n/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/idempotency/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/idempotency/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/image-build/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/image-build/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-events/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-events/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-redact/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-redact/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/instrument/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/instrument/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/job/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/job/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/job-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/json-config-header/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/json-config-header/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/kv/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/kv/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/kv-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/lane/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/lane/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/loading-state/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/loading-state/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/mq/listener.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/redact.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/maintenance/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/maintenance/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/math/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-dispatch/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-dispatch/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-http/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-http/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-server/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-server/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/merge/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/merge/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/merge/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/message-validator/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/message-validator/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/metrics/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/metrics/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/money/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/money/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/multipart/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/multipart/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/net-locality/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/net-locality/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-filters/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-filters/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-filters/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-resolver/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-resolver/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/priority/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/priority/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/push/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/push/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/rate-limit/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/rate-limit/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/release-watch/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/release-watch/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/render-cache/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/render-cache/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/routing/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/routing/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/routing/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/routing-introspect/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/routing-introspect/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/backends/env.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/backends/exec.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/backends/file.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/declaration.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/env-file.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/sources.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/security-headers-emitter/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/security-headers-emitter/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/session-lifetime/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/session-lifetime/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/shell.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/sqlite-driver.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/sri/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/sri/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/state.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/local-cas.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/local-stream.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/local.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/meta-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/s3.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/util.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/swig-filters/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/swig-resolver/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/src/loaders/http.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/src/loaders/memory.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/url/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/url/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/url/routing.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/uuid/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/uuid/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/validator.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/watcher/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/watcher/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-framing/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-framing/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-query/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-query/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-session/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-session/src/main.js +0 -0
|
@@ -459,9 +459,17 @@ function Proc(bundle, proc, usePidFile){
|
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
/**
|
|
462
|
-
*
|
|
463
|
-
*
|
|
464
|
-
*
|
|
462
|
+
* Writes the process's pid file, `<run directory>/<title without "gina: ">.pid`, then emits
|
|
463
|
+
* `proc#complete-<PID>` on the next tick — `(false, PID)` once the file is in place,
|
|
464
|
+
* `(err)` when it cannot be written — so a listener attached after the Proc constructor
|
|
465
|
+
* returns (`onReady()`) still receives it. Since #B857 the pid is written to a dot-named
|
|
466
|
+
* temporary file in the run directory and renamed into place, synchronously: a reader
|
|
467
|
+
* finds no file or the complete one, never an empty one, and no run-directory scan reads
|
|
468
|
+
* the temporary file (they skip dot entries or want a `.pid` suffix). Its inputs come from
|
|
469
|
+
* `self` (`bundle`, `PID`, `proc.title`, `path`), set by `register()`.
|
|
470
|
+
*
|
|
471
|
+
* @returns {void}
|
|
472
|
+
* @fires proc#complete-<PID>
|
|
465
473
|
*
|
|
466
474
|
* @private
|
|
467
475
|
* */
|
|
@@ -479,25 +487,47 @@ function Proc(bundle, proc, usePidFile){
|
|
|
479
487
|
&& typeof(PID) != "undefined" && PID != '' && PID != null
|
|
480
488
|
&& typeof(proc) != "undefined" && proc != '' && proc != null
|
|
481
489
|
) {
|
|
490
|
+
// #B857 — was:
|
|
491
|
+
// try {
|
|
492
|
+
// file = proc.title.replace(/^gina\:\s+/, '');
|
|
493
|
+
// // if ( !/^gina-/.test(file) ) {
|
|
494
|
+
// // e.emit('proc#registered', file);
|
|
495
|
+
// // }
|
|
496
|
+
// file += '.pid';
|
|
497
|
+
//
|
|
498
|
+
// console.debug('[ PROC ] Now saving `'+file+'`');
|
|
499
|
+
// var fileStream = fs.createWriteStream(path + file);
|
|
500
|
+
// fileStream.once('open', function(fd) {
|
|
501
|
+
// //fileStream.write(bundle);
|
|
502
|
+
// fileStream.write(''+PID);
|
|
503
|
+
// fileStream.end();
|
|
504
|
+
// e.emit('proc#complete-'+self.PID, false, PID)
|
|
505
|
+
// });
|
|
506
|
+
// fileStream.once('error', function(err) {
|
|
507
|
+
// });
|
|
508
|
+
// } catch (err) {
|
|
509
|
+
// e.emit('proc#complete-'+self.PID, err)
|
|
510
|
+
// }
|
|
511
|
+
// createWriteStream() created the file EMPTY when it opened, and the pid was written
|
|
512
|
+
// in the 'open' callback, after the process returned to the event loop: a concurrent
|
|
513
|
+
// checkRunningPids() (the init chain of any other gina command) read the empty file
|
|
514
|
+
// and deleted it as garbage, and every other reader took the process for not running.
|
|
515
|
+
// An open error hit the empty 'error' handler, so the daemon's onReady() never fired.
|
|
516
|
+
file = proc.title.replace(/^gina\:\s+/, '') + '.pid';
|
|
517
|
+
var tmp = path + '.' + file + '.' + PID + '.tmp';
|
|
482
518
|
try {
|
|
483
|
-
file = proc.title.replace(/^gina\:\s+/, '');
|
|
484
|
-
// if ( !/^gina-/.test(file) ) {
|
|
485
|
-
// e.emit('proc#registered', file);
|
|
486
|
-
// }
|
|
487
|
-
file += '.pid';
|
|
488
|
-
|
|
489
519
|
console.debug('[ PROC ] Now saving `'+file+'`');
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
fileStream.write(''+PID);
|
|
494
|
-
fileStream.end();
|
|
520
|
+
fs.writeFileSync(tmp, ''+PID);
|
|
521
|
+
fs.renameSync(tmp, path + file);
|
|
522
|
+
process.nextTick(function onPidFileSaved() {
|
|
495
523
|
e.emit('proc#complete-'+self.PID, false, PID)
|
|
496
524
|
});
|
|
497
|
-
fileStream.once('error', function(err) {
|
|
498
|
-
});
|
|
499
525
|
} catch (err) {
|
|
500
|
-
|
|
526
|
+
try { fs.unlinkSync(tmp) } catch (tmpErr) { /* nothing left to remove */ }
|
|
527
|
+
console.warn('[ PROC ] Could not write the pid file `'+ path + file +'`: '+ err.message);
|
|
528
|
+
process.nextTick(function onPidFileFailed() {
|
|
529
|
+
e.emit('proc#complete-'+self.PID, err)
|
|
530
|
+
});
|
|
501
531
|
}
|
|
502
532
|
|
|
503
533
|
} else {
|
|
@@ -612,6 +642,25 @@ function Proc(bundle, proc, usePidFile){
|
|
|
612
642
|
}
|
|
613
643
|
};
|
|
614
644
|
|
|
645
|
+
/**
|
|
646
|
+
* Registers a process: sets its title and its signal handlers (the SIGTERM drain, the
|
|
647
|
+
* uncaughtException guard, the exit cleanup), writes its pid file in the run directory
|
|
648
|
+
* when the Proc was built with `usePidFile` (the default), and records it in
|
|
649
|
+
* `process.list` and `process.pids` (and in `~/.gina/procs.json` for a framework daemon).
|
|
650
|
+
* A missing run directory is created first; since #B852 the process that creates it is
|
|
651
|
+
* registered like any other (it used to get no title, no handlers and no pid file). A
|
|
652
|
+
* process already listed under the same name and pid is removed from the list and
|
|
653
|
+
* dismissed instead.
|
|
654
|
+
*
|
|
655
|
+
* @param {string} bundle - The process name: `<bundle>@<project>`, or `gina-v<version>` for the daemon
|
|
656
|
+
* @param {number} pid - The process id
|
|
657
|
+
* @returns {void}
|
|
658
|
+
*
|
|
659
|
+
* @example
|
|
660
|
+
* // called by the constructor's init(): for a bundle this titles the process
|
|
661
|
+
* // `gina: web@shop` and writes `<run directory>/web@shop.pid`
|
|
662
|
+
* proc.register('web@shop', process.pid);
|
|
663
|
+
*/
|
|
615
664
|
self.register = function(bundle, pid) {
|
|
616
665
|
|
|
617
666
|
var processCollection = new Collection(process.list);
|
|
@@ -654,14 +703,31 @@ function Proc(bundle, proc, usePidFile){
|
|
|
654
703
|
//isBundleMounted(projects, bundlesPath, getContext('bundle'));
|
|
655
704
|
};
|
|
656
705
|
|
|
657
|
-
|
|
706
|
+
// #B852 — was:
|
|
707
|
+
// var isReplacementNeeded = false, path = _(pathObj.toUnixStyle(), true);
|
|
708
|
+
// if ( self.usePidFile && !pathObj.existsSync() ) {
|
|
709
|
+
// try {
|
|
710
|
+
// pathObj.mkdirSync();
|
|
711
|
+
// console.debug('[ PROC ] Path created ('+ path +')');
|
|
712
|
+
// isReplacementNeeded = true;
|
|
713
|
+
// } catch (pathErr) {
|
|
714
|
+
// throw pathErr
|
|
715
|
+
// }
|
|
716
|
+
// }
|
|
717
|
+
// and the block below ran only `if (!isReplacementNeeded)`: the process that had to
|
|
718
|
+
// create the run directory got no title, no signal handlers and no pid file, so
|
|
719
|
+
// `bundle:stop` and `bundle:status` could not find it and an uncaught EPIPE or a
|
|
720
|
+
// SIGTERM ended it without its drain. Nothing ever read the flag again. The directory
|
|
721
|
+
// is now created and the registration carries on. helpers/path.js's `mkdirSync()`
|
|
722
|
+
// RETURNS its error instead of throwing it (the catch above never ran): the error is
|
|
723
|
+
// logged here, and save() then reports the pid file it cannot write.
|
|
724
|
+
var path = _(pathObj.toUnixStyle(), true);
|
|
658
725
|
if ( self.usePidFile && !pathObj.existsSync() ) {
|
|
659
|
-
|
|
660
|
-
|
|
726
|
+
var mkdirErr = pathObj.mkdirSync();
|
|
727
|
+
if ( mkdirErr instanceof Error ) {
|
|
728
|
+
console.debug('[ PROC ] Could not create the run directory ('+ path +'): '+ mkdirErr.message);
|
|
729
|
+
} else {
|
|
661
730
|
console.debug('[ PROC ] Path created ('+ path +')');
|
|
662
|
-
isReplacementNeeded = true;
|
|
663
|
-
} catch (pathErr) {
|
|
664
|
-
throw pathErr
|
|
665
731
|
}
|
|
666
732
|
}
|
|
667
733
|
|
|
@@ -678,14 +744,12 @@ function Proc(bundle, proc, usePidFile){
|
|
|
678
744
|
// was: save(bundle, self.PID, self.proc);
|
|
679
745
|
// was: }
|
|
680
746
|
// was: }
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
save(bundle, self.PID, self.proc);
|
|
688
|
-
}
|
|
747
|
+
self.PID = self.proc.pid;
|
|
748
|
+
self.path = path + pathObj.sep;
|
|
749
|
+
setPID(bundle, self.PID, self.proc);
|
|
750
|
+
//Add PID file.
|
|
751
|
+
if (self.usePidFile) {
|
|
752
|
+
save(bundle, self.PID, self.proc);
|
|
689
753
|
}
|
|
690
754
|
|
|
691
755
|
processRegistration()
|
|
@@ -684,7 +684,13 @@ function Routing() {
|
|
|
684
684
|
// attaching routing description for this request
|
|
685
685
|
//request.routing = params; // can be retried in controller with: req.routing
|
|
686
686
|
// && replacing placeholders
|
|
687
|
-
|
|
687
|
+
// #B877 — the route's placeholders take the values the route MATCHED: each URL segment,
|
|
688
|
+
// and each query key a requirement of the rule validated (`request.params`), over the
|
|
689
|
+
// request data. Fed the request data alone, a query or body key named like a URL-segment
|
|
690
|
+
// placeholder replaced that segment in `param.file` after it had passed its requirement.
|
|
691
|
+
// The #B833 guard in checkRouteParams still checks every value it fills.
|
|
692
|
+
// was: request.routing = checkRouteParams(params, request[method]);
|
|
693
|
+
request.routing = checkRouteParams(params, fillValuesOf(request[method], request.params));
|
|
688
694
|
foundRoute.request = request;
|
|
689
695
|
}
|
|
690
696
|
|
|
@@ -699,7 +705,9 @@ function Routing() {
|
|
|
699
705
|
*
|
|
700
706
|
* Before the requirement test, writes `urlVal` in place of the `urlVar` placeholder in
|
|
701
707
|
* `params.param.path`, `.namespace` and `.title`, verbatim: through a function replacer,
|
|
702
|
-
* so `$`-patterns in the value are not expanded (#B688).
|
|
708
|
+
* so `$`-patterns in the value are not expanded (#B688). A `urlVal` that would escape as a
|
|
709
|
+
* path component (`_isUnsafePathValue`) is not written into `.path` or `.namespace`: their
|
|
710
|
+
* placeholder is left for checkRouteParams, whose #B833 guard rejects the value (#B883).
|
|
703
711
|
*
|
|
704
712
|
* @param {string} urlVar - the rule's URL segment, e.g. `:id`
|
|
705
713
|
* @param {string} urlVal - the request's URL segment at the same position
|
|
@@ -747,14 +755,23 @@ function Routing() {
|
|
|
747
755
|
// text before the placeholder, `$&` the placeholder, `$'` the text after it, `$$` a `$`):
|
|
748
756
|
// a request to `/user/$%60` turned `"title": "User :id"` into `User User `. The value is
|
|
749
757
|
// now written verbatim, as the URL and `param.file` already were.
|
|
758
|
+
// #B883 — a value that would escape as a path component (a `..` segment or a leading
|
|
759
|
+
// separator, `_isUnsafePathValue`) is not written into `param.path` or `param.namespace`
|
|
760
|
+
// here: the placeholder is left for checkRouteParams, whose #B833 guard rejects the value.
|
|
761
|
+
// Written here, it reached both fields unchecked, from a URL segment or from a query key
|
|
762
|
+
// that its requirement folds in as a segment. The value is tested before `regex.test()`:
|
|
763
|
+
// a passing test moves this `g` regex's `lastIndex` past the match, and a skipped rewrite
|
|
764
|
+
// would leave it there for the next field's test (only a replace() resets it).
|
|
750
765
|
// if custom path, path rewrite
|
|
751
|
-
if (params.param.path && regex.test(params.param.path)) {
|
|
766
|
+
// was: if (params.param.path && regex.test(params.param.path)) {
|
|
767
|
+
if (params.param.path && !_isUnsafePathValue(urlVal) && regex.test(params.param.path)) {
|
|
752
768
|
// was: params.param.path = params.param.path.replace(regex, urlVal);
|
|
753
769
|
params.param.path = params.param.path.replace(regex, function () { return urlVal; });
|
|
754
770
|
}
|
|
755
771
|
|
|
756
772
|
// if custom namespace, namespace rewrite
|
|
757
|
-
if (params.param.namespace && regex.test(params.param.namespace)) {
|
|
773
|
+
// was: if (params.param.namespace && regex.test(params.param.namespace)) {
|
|
774
|
+
if (params.param.namespace && !_isUnsafePathValue(urlVal) && regex.test(params.param.namespace)) {
|
|
758
775
|
// was: params.param.namespace = params.param.namespace.replace(regex, urlVal);
|
|
759
776
|
params.param.namespace = params.param.namespace.replace(regex, function () { return urlVal; });
|
|
760
777
|
}
|
|
@@ -763,13 +780,17 @@ function Routing() {
|
|
|
763
780
|
// if (params.param.file && regex.test(params.param.file)) {
|
|
764
781
|
// params.param.file = params.param.file.replace(regex, urlVal);
|
|
765
782
|
// }
|
|
766
|
-
// file is
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
783
|
+
// #B877 — `param.file` is not rewritten here: checkRouteParams fills it once the route has
|
|
784
|
+
// matched, from the values the route matched (see parseRouting), behind the #B833 guard.
|
|
785
|
+
// The block below never matched, because `urlVar` already starts with `:` and its pattern
|
|
786
|
+
// read `::name`; fixing that pattern instead would fill `param.file` before the guard sees
|
|
787
|
+
// the value.
|
|
788
|
+
// was: if ( typeof(params.param.file) != 'undefined' && /\:/.test(params.param.file)) {
|
|
789
|
+
// was: var _regex = new RegExp('(:'+urlVar+'/|:'+urlVar+'$)', 'g');
|
|
790
|
+
// was: replacement.variable = urlVal;
|
|
791
|
+
// was: params.param.file = params.param.file.replace( _regex, replacement );
|
|
792
|
+
// was: _regex = null;
|
|
793
|
+
// was: }
|
|
773
794
|
|
|
774
795
|
// if custom title, title rewrite (#B688: a function replacer, as for the path above)
|
|
775
796
|
if (params.param.title && regex.test(params.param.title)) {
|
|
@@ -1075,6 +1096,8 @@ function Routing() {
|
|
|
1075
1096
|
* separator (an absolute path, which `path.resolve` honours over the root). Developer-authored
|
|
1076
1097
|
* static prefixes in `param.file` (e.g. `../shared/:template`, reaching a sibling namespace
|
|
1077
1098
|
* directory) are NOT request values and are never tested here — only the substituted value is.
|
|
1099
|
+
* fitsWithRequirements consults it too, and leaves a flagged URL value out of its early
|
|
1100
|
+
* `param.path` / `param.namespace` rewrite, so the value reaches the guard (#B883).
|
|
1078
1101
|
*
|
|
1079
1102
|
* @inner
|
|
1080
1103
|
* @param {*} value - the request-supplied placeholder value
|
|
@@ -1091,6 +1114,40 @@ function Routing() {
|
|
|
1091
1114
|
return /(^|[\/\\])\.\.([\/\\]|$)/.test(v) || /^[\/\\]/.test(v);
|
|
1092
1115
|
};
|
|
1093
1116
|
|
|
1117
|
+
/**
|
|
1118
|
+
* #B877 — the values checkRouteParams fills a MATCHED route's placeholders with, on the request
|
|
1119
|
+
* path: the request data (`request[method]`, query and body), overlaid by the values the route
|
|
1120
|
+
* matched (`request.params`: each URL segment, and each query key a requirement of the rule
|
|
1121
|
+
* validated). A query or body key named like a URL-segment placeholder therefore no longer
|
|
1122
|
+
* replaces that segment, and a placeholder the URL does not carry is still filled from the
|
|
1123
|
+
* request data.
|
|
1124
|
+
*
|
|
1125
|
+
* Own keys only, copied as data properties (the rule of the Express adapter's query copy,
|
|
1126
|
+
* #B666), so a key named `__proto__` stays an ordinary property of the copy and never reaches the
|
|
1127
|
+
* prototype setter. An `undefined` value is skipped, so it never hides a defined one. Neither
|
|
1128
|
+
* argument is modified.
|
|
1129
|
+
*
|
|
1130
|
+
* @inner
|
|
1131
|
+
* @param {object} [data] - the request data, `request[method]`
|
|
1132
|
+
* @param {object} [matched] - the values the route matched, `request.params`
|
|
1133
|
+
* @returns {object} a new plain object
|
|
1134
|
+
*
|
|
1135
|
+
* @example
|
|
1136
|
+
* fillValuesOf({ name: 'other', foo: '1' }, { name: 'page' }); // { name: 'page', foo: '1' }
|
|
1137
|
+
* fillValuesOf({ tpl: 'home' }, { 0: '/t' }); // { tpl: 'home', 0: '/t' }
|
|
1138
|
+
*/
|
|
1139
|
+
var fillValuesOf = function(data, matched) {
|
|
1140
|
+
var out = {}, sources = [data, matched], s = 0, k = null;
|
|
1141
|
+
for (; s < sources.length; ++s) {
|
|
1142
|
+
if ( !sources[s] || typeof(sources[s]) != 'object' ) continue;
|
|
1143
|
+
for (k in sources[s]) {
|
|
1144
|
+
if ( !hasOwn(sources[s], k) || typeof(sources[s][k]) == 'undefined' ) continue;
|
|
1145
|
+
Object.defineProperty(out, k, { value: sources[s][k], writable: true, enumerable: true, configurable: true });
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
return out;
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1094
1151
|
/**
|
|
1095
1152
|
* checkRouteParams
|
|
1096
1153
|
*
|
|
@@ -1103,7 +1160,8 @@ function Routing() {
|
|
|
1103
1160
|
* @inner
|
|
1104
1161
|
* @param {object} route - the route to fill: a copy (getRoute clones the rule, the
|
|
1105
1162
|
* request path clones `param` per request)
|
|
1106
|
-
* @param {object} params - placeholder values, keyed by variable name
|
|
1163
|
+
* @param {object} params - placeholder values, keyed by variable name (on the request path:
|
|
1164
|
+
* the request data overlaid by the matched values, see fillValuesOf, #B877)
|
|
1107
1165
|
* @return {object} route - updated route object
|
|
1108
1166
|
*
|
|
1109
1167
|
* @example
|
|
@@ -1116,9 +1174,7 @@ function Routing() {
|
|
|
1116
1174
|
, urls = null
|
|
1117
1175
|
, i = null
|
|
1118
1176
|
, len = null
|
|
1119
|
-
, rawRouteUrl = route.url
|
|
1120
1177
|
, p = null
|
|
1121
|
-
, pLen = null
|
|
1122
1178
|
;
|
|
1123
1179
|
|
|
1124
1180
|
for (p in route.param) {
|
|
@@ -1186,39 +1242,97 @@ function Routing() {
|
|
|
1186
1242
|
}
|
|
1187
1243
|
}
|
|
1188
1244
|
|
|
1189
|
-
//
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1245
|
+
// #B374 — which url of a multi-url rule getRoute() composes is chosen there, on the rule's
|
|
1246
|
+
// own url (selectUrlIndex). The loop that chose it here read the FIRST url on every pass
|
|
1247
|
+
// (`rawUrls[0]`), so it always chose 0, and getRoute() let that 0 override the caller's
|
|
1248
|
+
// own urlIndex whenever a placeholder had been filled.
|
|
1249
|
+
// was: // Selecting url in case of multiple urls & optional requirmements
|
|
1250
|
+
// was: if ( urls ) {
|
|
1251
|
+
// was: i = 0; len = urls.length;
|
|
1252
|
+
// was: var rawUrlVars = null
|
|
1253
|
+
// was: , rawUrlScore = null
|
|
1254
|
+
// was: , rawUrls = rawRouteUrl.split(/\,/g)
|
|
1255
|
+
// was: , pKey = null
|
|
1256
|
+
// was: , lastScore = 0
|
|
1257
|
+
// was: ;
|
|
1258
|
+
// was: route.urlIndex = 0; // by default
|
|
1259
|
+
// was: for (; i < len; ++i) {
|
|
1260
|
+
// was: rawUrlScore = 0;
|
|
1261
|
+
// was: rawUrlVars = rawUrls[0].match(/\:[-_a-z0-9]+/ig);
|
|
1262
|
+
// was: if ( !rawUrlVars ) continue;
|
|
1263
|
+
// was: p = 0;
|
|
1264
|
+
// was: pLen = rawUrlVars.length;
|
|
1265
|
+
// was: for (; p < pLen; p++) {
|
|
1266
|
+
// was: pKey = rawUrlVars[p].substring(1);
|
|
1267
|
+
// was: if ( typeof(params[ pKey ]) != 'undefined' && params[ pKey ] ) {
|
|
1268
|
+
// was: rawUrlScore++;
|
|
1269
|
+
// was: }
|
|
1270
|
+
// was: }
|
|
1271
|
+
// was: // We just rely in params count for now
|
|
1272
|
+
// was: if (rawUrlScore > lastScore) {
|
|
1273
|
+
// was: lastScore = rawUrlScore;
|
|
1274
|
+
// was: route.urlIndex = i;
|
|
1275
|
+
// was: }
|
|
1276
|
+
// was: }
|
|
1277
|
+
// was: }
|
|
1218
1278
|
|
|
1219
1279
|
return route;
|
|
1220
1280
|
}
|
|
1221
1281
|
|
|
1282
|
+
/**
|
|
1283
|
+
* selectUrlIndex
|
|
1284
|
+
*
|
|
1285
|
+
* #B374 — the url of a multi-url rule that getRoute() composes when the caller names none:
|
|
1286
|
+
* the first url whose placeholders all receive a value, preferring among those the url that
|
|
1287
|
+
* uses the most values; when no url is complete, the url that receives the most values. Ties
|
|
1288
|
+
* go to the first url, so a rule whose urls carry the same placeholders (one url per
|
|
1289
|
+
* language, for instance) keeps composing its first url. A placeholder receives a value
|
|
1290
|
+
* when its value is not `undefined`, the test the fill itself applies (checkRouteParams
|
|
1291
|
+
* writes `''` and `null` too).
|
|
1292
|
+
*
|
|
1293
|
+
* @inner
|
|
1294
|
+
* @param {string} rawUrl - the rule's own url, its urls separated by commas, before any value
|
|
1295
|
+
* is filled in
|
|
1296
|
+
* @param {object} [params] - the values getRoute() fills in, keyed by placeholder name
|
|
1297
|
+
* @returns {number} index of the url to compose; `0` for a rule with a single url
|
|
1298
|
+
*
|
|
1299
|
+
* @example
|
|
1300
|
+
* selectUrlIndex('/logout/:timestamp,/logout', {}); // 1
|
|
1301
|
+
* selectUrlIndex('/logout/:timestamp,/logout', { timestamp: 9 }); // 0
|
|
1302
|
+
* selectUrlIndex('/s,/s/:ts', { ts: '12' }); // 1
|
|
1303
|
+
* selectUrlIndex('/help,/aide', {}); // 0
|
|
1304
|
+
*/
|
|
1305
|
+
var selectUrlIndex = function(rawUrl, params) {
|
|
1306
|
+
var urls = rawUrl.split(/\,/g)
|
|
1307
|
+
, best = 0
|
|
1308
|
+
, bestDone = -1
|
|
1309
|
+
, bestFill = -1
|
|
1310
|
+
, names = null
|
|
1311
|
+
, fill = 0
|
|
1312
|
+
, done = 0
|
|
1313
|
+
, value = null
|
|
1314
|
+
, u = 0
|
|
1315
|
+
, n = 0
|
|
1316
|
+
;
|
|
1317
|
+
for (; u < urls.length; ++u) {
|
|
1318
|
+
names = urls[u].match(/\:[-_a-z0-9]+/ig) || [];
|
|
1319
|
+
fill = 0;
|
|
1320
|
+
for (n = 0; n < names.length; ++n) {
|
|
1321
|
+
value = ( params ) ? params[ names[n].substring(1) ] : undefined;
|
|
1322
|
+
if ( typeof(value) != 'undefined' ) {
|
|
1323
|
+
++fill;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
done = ( fill === names.length ) ? 1 : 0;
|
|
1327
|
+
if ( done > bestDone || ( done === bestDone && fill > bestFill ) ) {
|
|
1328
|
+
best = u;
|
|
1329
|
+
bestDone = done;
|
|
1330
|
+
bestFill = fill;
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
return best;
|
|
1334
|
+
};
|
|
1335
|
+
|
|
1222
1336
|
/**
|
|
1223
1337
|
* #B168 — once-per-process latch for the proxied-context degrade warning in
|
|
1224
1338
|
* getRoute(): the resolver sits on the per-request hot path, so the abnormal
|
|
@@ -1229,7 +1343,21 @@ function Routing() {
|
|
|
1229
1343
|
var _proxyHostDegradeWarned = false;
|
|
1230
1344
|
|
|
1231
1345
|
/**
|
|
1232
|
-
*
|
|
1346
|
+
* Composes the url of a routing rule and returns the route object (`url`, `toUrl()`,
|
|
1347
|
+
* `request()`). The values in `params` fill the rule's `:placeholders`; on a GET rule, the
|
|
1348
|
+
* other values become query parameters.
|
|
1349
|
+
*
|
|
1350
|
+
* A rule with several urls (`"url": "/a/:id, /b/:id"`) composes one of them (#B374): the
|
|
1351
|
+
* one `urlIndex` names or, without `urlIndex`, the first url whose placeholders all receive
|
|
1352
|
+
* a value, preferring among those the url that uses the most values; when no url is
|
|
1353
|
+
* complete, the url that receives the most values. Ties go to the first url. A placeholder
|
|
1354
|
+
* receives a value when its value is not `undefined`.
|
|
1355
|
+
*
|
|
1356
|
+
* Query parameters, on a GET rule: a value whose key `param` declares, when the url composed
|
|
1357
|
+
* does not carry it (#B220): its placeholder, or a fixed value as written, is not in that url;
|
|
1358
|
+
* `requirements` does not keep such a value out. Then every other value that is neither
|
|
1359
|
+
* reserved, nor declared in the rule's `requirements`, nor already written into the path
|
|
1360
|
+
* (#B943). No value is appended twice (#B944).
|
|
1233
1361
|
*
|
|
1234
1362
|
* On the server, the proxied classification and proxy hostname come from the
|
|
1235
1363
|
* REQUEST first (#B502): core/router.js fills `proxy` on the process.gina._reqALS
|
|
@@ -1243,11 +1371,25 @@ function Routing() {
|
|
|
1243
1371
|
* hostname (route.isProxyHost is flipped false) instead of failing, and a
|
|
1244
1372
|
* once-per-process warning is emitted.
|
|
1245
1373
|
*
|
|
1374
|
+
* @function getRoute
|
|
1375
|
+
*
|
|
1246
1376
|
* @param {string} rule e.g.: [ <scheme>:// ]<name>[ @<bundle> ][ /<environment> ]
|
|
1247
|
-
* @param {object} params -
|
|
1248
|
-
* @param {number} [urlIndex]
|
|
1377
|
+
* @param {object} [params] - values for the rule's `:placeholders`; on a GET rule, the values left over are appended to `route.url` as query parameters, as described above (a rule with no `requirements` block is safe — the block is optional)
|
|
1378
|
+
* @param {number|string} [urlIndex] - for a rule with several urls, the 0-based index of the url to compose; a numeric string such as `"1"` is accepted. Ignored for a rule with a single url.
|
|
1249
1379
|
*
|
|
1250
1380
|
* @returns {object} route
|
|
1381
|
+
*
|
|
1382
|
+
* @throws {Error} when the rule is not found, or when `urlIndex` names no url of a rule with several urls
|
|
1383
|
+
*
|
|
1384
|
+
* @example
|
|
1385
|
+
* // "logout": { "url": "/logout/:timestamp, /logout", "param": { "control": "logout", "timestamp": ":timestamp" } }
|
|
1386
|
+
* routing.getRoute('logout@auth').url; // '/logout'
|
|
1387
|
+
* routing.getRoute('logout@auth', { timestamp: '9' }).url; // '/logout/9'
|
|
1388
|
+
* routing.getRoute('logout@auth', { timestamp: '9' }, 1).url; // '/logout?timestamp=9'
|
|
1389
|
+
*
|
|
1390
|
+
* @example
|
|
1391
|
+
* // "invoice": { "url": "/invoice/:id", "param": { "control": "get", "id": ":id" } }
|
|
1392
|
+
* routing.getRoute('invoice@frontend', { id: 'abc-123', tab: '2' }).url; // '/invoice/abc-123?tab=2'
|
|
1251
1393
|
* */
|
|
1252
1394
|
self.getRoute = function(rule, params, urlIndex) {
|
|
1253
1395
|
|
|
@@ -1390,12 +1532,50 @@ function Routing() {
|
|
|
1390
1532
|
}
|
|
1391
1533
|
|
|
1392
1534
|
if ( /\,/.test(route.url) ) {
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1535
|
+
// #B374, #B946 — the url to compose is chosen on the rule's own url, before any value
|
|
1536
|
+
// is filled in: a filled url can carry a comma inside a value, which the split used to
|
|
1537
|
+
// read as a url boundary (`{ x: 'a,b' }` on `/o/:x` composed `/o/a`). The caller's
|
|
1538
|
+
// urlIndex wins; it used to be overridden by the 0 the fill always chose. An index that
|
|
1539
|
+
// names no url throws instead of composing `undefined`. Without one, selectUrlIndex()
|
|
1540
|
+
// chooses. Only the url chosen is filled, by the same checkRouteParams().
|
|
1541
|
+
// was: if ( typeof(route.urlIndex) != 'undefined' ) {
|
|
1542
|
+
// was: urlIndex = route.urlIndex; // set by checkRouteParams(route, params)
|
|
1543
|
+
// was: delete route.urlIndex;
|
|
1544
|
+
// was: }
|
|
1545
|
+
// was: urlIndex = ( typeof(urlIndex) != 'undefined' ) ? urlIndex : 0;
|
|
1546
|
+
// was: route.url = route.url.split(/,/g)[urlIndex];
|
|
1547
|
+
var _ruleUrls = routing[rule].url.split(/\,/g);
|
|
1548
|
+
if ( _ruleUrls.length > 1 ) {
|
|
1549
|
+
if ( typeof(urlIndex) != 'undefined' && urlIndex !== null ) {
|
|
1550
|
+
var _index = ( typeof(urlIndex) == 'string' && /^\d+$/.test(urlIndex) ) ? parseInt(urlIndex, 10) : urlIndex;
|
|
1551
|
+
if ( typeof(_index) != 'number' || _index % 1 !== 0 || _index < 0 || _index >= _ruleUrls.length ) {
|
|
1552
|
+
throw new Error('[ RoutingHelper::getRoute(rule, params, urlIndex) ] : urlIndex `'+ urlIndex +'` names no url of rule `'+ rule +'`, which has '+ _ruleUrls.length +' urls');
|
|
1553
|
+
}
|
|
1554
|
+
urlIndex = _index;
|
|
1555
|
+
} else {
|
|
1556
|
+
urlIndex = selectUrlIndex(routing[rule].url, params);
|
|
1557
|
+
}
|
|
1558
|
+
// #B947 — the placeholder bindings only (`"id": ":id"`), read on the rule's own param:
|
|
1559
|
+
// the first checkRouteParams() call above wrote the values into `path`, `title`,
|
|
1560
|
+
// `namespace` and `file`, so a placeholder bound under one of those keys
|
|
1561
|
+
// (`"file": ":file"`) no longer read as a binding on the route and stayed in the url.
|
|
1562
|
+
// Only `.url` is kept from this second fill.
|
|
1563
|
+
// was: var _bindings = {};
|
|
1564
|
+
// was: for (var _key in route.param) {
|
|
1565
|
+
// was: if ( typeof(route.param[_key]) == 'string' && /^:/.test(route.param[_key]) ) {
|
|
1566
|
+
// was: _bindings[_key] = route.param[_key];
|
|
1567
|
+
// was: }
|
|
1568
|
+
// was: }
|
|
1569
|
+
var _bindings = {}, _ruleParam = routing[rule].param || {};
|
|
1570
|
+
for (var _key in _ruleParam) {
|
|
1571
|
+
if ( typeof(_ruleParam[_key]) == 'string' && /^:/.test(_ruleParam[_key]) ) {
|
|
1572
|
+
_bindings[_key] = _ruleParam[_key];
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
route.url = checkRouteParams({ url: _ruleUrls[urlIndex], param: _bindings }, params).url;
|
|
1576
|
+
// read by the query append below, which needs the url actually composed; removed there
|
|
1577
|
+
route.urlIndex = urlIndex;
|
|
1396
1578
|
}
|
|
1397
|
-
urlIndex = ( typeof(urlIndex) != 'undefined' ) ? urlIndex : 0;
|
|
1398
|
-
route.url = route.url.split(/,/g)[urlIndex];
|
|
1399
1579
|
}
|
|
1400
1580
|
// fix url in case of empty param value allowed by the routing rule
|
|
1401
1581
|
// to prevent having a folder.
|
|
@@ -1406,17 +1586,33 @@ function Routing() {
|
|
|
1406
1586
|
// Completeting url with extra params e.g.: ?param1=val1¶m2=val2
|
|
1407
1587
|
if ( /GET/i.test(route.method) && typeof(params) != 'undefined' ) {
|
|
1408
1588
|
var queryParams = '?'
|
|
1409
|
-
,
|
|
1589
|
+
// #B220 — the url actually composed (the one chosen above), not every url of the
|
|
1590
|
+
// rule joined: a value whose placeholder sits only in another url of the rule was
|
|
1591
|
+
// skipped here and, when declared in `requirements`, dropped by the loop below.
|
|
1592
|
+
// was: , maskedUrl = routing[rule].url
|
|
1593
|
+
, maskedUrl = routing[rule].url.split(/\,/g)[ route.urlIndex || 0 ] || routing[rule].url
|
|
1410
1594
|
;
|
|
1411
1595
|
|
|
1412
1596
|
// in route.rule params
|
|
1413
1597
|
var extracted = [], i = 0;
|
|
1414
1598
|
for (let r in route.param) {
|
|
1415
|
-
|
|
1599
|
+
// #B220 — a placeholder is in the url only where the fill writes it: `:name` followed
|
|
1600
|
+
// by `/` or the end (checkRouteParams), so `:key` no longer matches inside `:keyXyz`.
|
|
1601
|
+
// was: if ( self.reservedParams.indexOf(r) > -1 || new RegExp(route.param[r]).test(maskedUrl) )
|
|
1602
|
+
if (
|
|
1603
|
+
self.reservedParams.indexOf(r) > -1
|
|
1604
|
+
|| (
|
|
1605
|
+
( /^:/.test(route.param[r]) )
|
|
1606
|
+
? new RegExp('('+ route.param[r] +'/|'+ route.param[r] +'$)').test(maskedUrl)
|
|
1607
|
+
: new RegExp(route.param[r]).test(maskedUrl)
|
|
1608
|
+
)
|
|
1609
|
+
)
|
|
1416
1610
|
continue;
|
|
1417
1611
|
if (typeof(params[r]) != 'undefined' ) {
|
|
1418
1612
|
queryParams += r +'='+ encodeRFC5987ValueChars(params[r])+ '&';
|
|
1419
|
-
|
|
1613
|
+
// #B944 — the loop below tests KEYS: record the key, not its value
|
|
1614
|
+
// was: extracted[i] = params[r];
|
|
1615
|
+
extracted[i] = r;
|
|
1420
1616
|
++i;
|
|
1421
1617
|
}
|
|
1422
1618
|
}
|
|
@@ -1430,6 +1626,14 @@ function Routing() {
|
|
|
1430
1626
|
// on such a GET route appends the query params instead of throwing
|
|
1431
1627
|
|| ( route.requirements && typeof(route.requirements[p]) != 'undefined' )
|
|
1432
1628
|
|| extracted.indexOf(p) > -1
|
|
1629
|
+
// #B943 — a key bound to a placeholder of the url composed (`"id": ":id"`) is in
|
|
1630
|
+
// the path already; an unbound one keeps travelling as a query parameter
|
|
1631
|
+
|| (
|
|
1632
|
+
route.param
|
|
1633
|
+
&& typeof(route.param[p]) == 'string'
|
|
1634
|
+
&& /^:/.test(route.param[p])
|
|
1635
|
+
&& new RegExp('('+ route.param[p] +'/|'+ route.param[p] +'$)').test(maskedUrl)
|
|
1636
|
+
)
|
|
1433
1637
|
) {
|
|
1434
1638
|
continue;
|
|
1435
1639
|
}
|
|
@@ -1450,6 +1654,8 @@ function Routing() {
|
|
|
1450
1654
|
}
|
|
1451
1655
|
queryParams = null;
|
|
1452
1656
|
}
|
|
1657
|
+
// #B374 — the index handed over by the url choice above is not part of the route returned
|
|
1658
|
+
delete route.urlIndex;
|
|
1453
1659
|
|
|
1454
1660
|
// recommanded for x-bundle coms
|
|
1455
1661
|
// leave `ignoreWebRoot` empty or set it to false for x-bundle coms
|