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
|
@@ -101,12 +101,35 @@ function Start(opt, cmd) {
|
|
|
101
101
|
start(opt, cmd);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/**
|
|
105
|
+
* #B890 — the error this command reports for a project file it cannot use. Its message
|
|
106
|
+
* names the file and the reason (the reason names the path), and it carries no stack: the
|
|
107
|
+
* branches that report it print `err.stack` (isRealApp's callback, proceedToStart), and
|
|
108
|
+
* the frames of a fault the user fixes in that file would only bury the reason.
|
|
109
|
+
*
|
|
110
|
+
* @inner
|
|
111
|
+
* @private
|
|
112
|
+
* @param {string} name - the file's name as the message shows it (`manifest.json`)
|
|
113
|
+
* @param {Error} err - the read or parse error (parseJSONWithComments() names the file)
|
|
114
|
+
* @returns {Error} an Error whose message and stack are « <name> cannot be used: <reason> »
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* cb(fileError('package.json', parseErr));
|
|
118
|
+
* // Error: package.json cannot be used: could not parse `/path/to/package.json`: …
|
|
119
|
+
*/
|
|
120
|
+
var fileError = function(name, err) {
|
|
121
|
+
var e = new Error(name +' cannot be used: '+ err.message);
|
|
122
|
+
e.stack = e.message;
|
|
123
|
+
return e;
|
|
124
|
+
};
|
|
125
|
+
|
|
104
126
|
/**
|
|
105
127
|
* Checks if the project's node_modules need to be reinstalled due to an arch/platform mismatch.
|
|
106
128
|
* Reinstalls via `npm install` (or `bun install` under Bun) if needed, re-links
|
|
107
129
|
* gina with this install's own `bin/gina framework:link`, run under the current
|
|
108
130
|
* runtime from an argument vector without a shell (#B665), then calls cb(false)
|
|
109
|
-
* to proceed.
|
|
131
|
+
* to proceed. A project package.json that cannot be read or parsed calls cb() with
|
|
132
|
+
* « package.json cannot be used: <reason> » (#B890: requireJSON() ended the daemon).
|
|
110
133
|
* @inner
|
|
111
134
|
* @private
|
|
112
135
|
* @param {object} opt
|
|
@@ -151,7 +174,12 @@ function Start(opt, cmd) {
|
|
|
151
174
|
nodeModulesContentArr = newNodeModulesContentArr.slice();
|
|
152
175
|
newNodeModulesContentArr = null;
|
|
153
176
|
|
|
154
|
-
var pack =
|
|
177
|
+
var pack = null;
|
|
178
|
+
try {
|
|
179
|
+
pack = parseJSONWithComments(fs.readFileSync(packagePath, 'utf8'), packagePath); // #B890 — requireJSON() ended the daemon on a malformed package.json
|
|
180
|
+
} catch (packErr) {
|
|
181
|
+
return cb(fileError('package.json', packErr));
|
|
182
|
+
}
|
|
155
183
|
var scope = process.env.NODE_SCOPE || self.defaultScope
|
|
156
184
|
var env = process.env.NODE_ENV || self.defaultEnv;
|
|
157
185
|
|
|
@@ -314,7 +342,12 @@ function Start(opt, cmd) {
|
|
|
314
342
|
// terminal.debug('bundle -> ', bundle);
|
|
315
343
|
|
|
316
344
|
var msg = null;
|
|
317
|
-
|
|
345
|
+
// #B890 — a bundle the ports registry knows but the manifest does not declare (a
|
|
346
|
+
// manifest.json rewritten from the template after it went missing) is refused here
|
|
347
|
+
// too: the lines below read its manifest entry, and threw a TypeError on `def_env`
|
|
348
|
+
var isDeclared = !!( self.bundlesByProject[self.projectName] && typeof(self.bundlesByProject[self.projectName][bundle]) != 'undefined' );
|
|
349
|
+
// was: if ( !isBulkStart && !isDefined('bundle', bundle) ) {
|
|
350
|
+
if ( !isBulkStart && ( !isDefined('bundle', bundle) || !isDeclared ) ) {
|
|
318
351
|
msg = 'Bundle [ '+ bundle +' ] is not registered inside `@'+ self.projectName +'`.\nDid you run `gina bundle:add '+ bundle +' @'+ self.projectName +'` first?';
|
|
319
352
|
terminal.error(msg);
|
|
320
353
|
|
|
@@ -876,6 +909,9 @@ function Start(opt, cmd) {
|
|
|
876
909
|
|
|
877
910
|
/**
|
|
878
911
|
* Resolves the bundle's entry point path based on manifest and env, and verifies it exists.
|
|
912
|
+
* A manifest.json that cannot be read or parsed calls back with « manifest.json cannot be
|
|
913
|
+
* used: <reason> » (#B890: requireJSON() ended the daemon); loadAssets() has read the same
|
|
914
|
+
* file just before, so only a file changed in between reaches that branch.
|
|
879
915
|
* @inner
|
|
880
916
|
* @private
|
|
881
917
|
* @param {string} bundle - Bundle name
|
|
@@ -893,9 +929,21 @@ function Start(opt, cmd) {
|
|
|
893
929
|
, bundleInit = null
|
|
894
930
|
;
|
|
895
931
|
|
|
932
|
+
// #B890 — read outside the try below: its catch falls back to `bundles/<bundle>`,
|
|
933
|
+
// a path that cannot boot, and requireJSON() ended the daemon before reaching it
|
|
934
|
+
var manifest = null
|
|
935
|
+
, manifestFile = _(root+ '/manifest.json', true)
|
|
936
|
+
;
|
|
937
|
+
try {
|
|
938
|
+
manifest = parseJSONWithComments(fs.readFileSync(manifestFile, 'utf8'), manifestFile);
|
|
939
|
+
} catch (manifestErr) {
|
|
940
|
+
return callback(fileError('manifest.json', manifestErr));
|
|
941
|
+
}
|
|
942
|
+
|
|
896
943
|
try {
|
|
897
944
|
//This is mostly for dev.
|
|
898
|
-
var pkg = requireJSON( _(root+ '/manifest.json', true) ).bundles;
|
|
945
|
+
// was: var pkg = requireJSON( _(root+ '/manifest.json', true) ).bundles;
|
|
946
|
+
var pkg = manifest.bundles;
|
|
899
947
|
if ( typeof(pkg[bundle].version) == 'undefined' && typeof(pkg[bundle].tag) != 'undefined') {
|
|
900
948
|
pkg[bundle].version = pkg[bundle].tag
|
|
901
949
|
}
|
|
@@ -117,7 +117,8 @@ function Status(opt, cmd) {
|
|
|
117
117
|
var existsInManifest = false;
|
|
118
118
|
try {
|
|
119
119
|
var path = self.projects[projectName].path;
|
|
120
|
-
var
|
|
120
|
+
var manifestFile = _(path + '/manifest.json', true);
|
|
121
|
+
var bundles = parseJSONWithComments(fs.readFileSync(manifestFile, 'utf8'), manifestFile).bundles; // #B891 — comments accepted, as requireJSON accepts them
|
|
121
122
|
existsInManifest = ( typeof(bundles[bundle]) != 'undefined' );
|
|
122
123
|
} catch (err) {
|
|
123
124
|
existsInManifest = false;
|
|
@@ -123,12 +123,23 @@ function Add(opt, cmd) {
|
|
|
123
123
|
* ran the writer alone (no manifest check, no env.json, no port scan, no
|
|
124
124
|
* message, no exit).
|
|
125
125
|
*
|
|
126
|
+
* #B938 — `~/.gina/ports.json` and `ports.reverse.json` are read fresh with
|
|
127
|
+
* `parseJSONWithComments()`, as the command helper read them a moment before
|
|
128
|
+
* (#B906): a `//` comment is ignored and a trailing comma is accepted with a
|
|
129
|
+
* warning. A read that fails here (the file changed since the helper's read)
|
|
130
|
+
* throws to saveEnvs(), which ends the command with exit code 1.
|
|
131
|
+
*
|
|
126
132
|
* @inner
|
|
127
133
|
* @private
|
|
134
|
+
* @throws {Error} when a ports file cannot be read or is not JSON
|
|
128
135
|
*/
|
|
129
136
|
var addEnvToProjectAndBundles = function() {
|
|
137
|
+
// #B938 — require() refused the comment and the trailing comma the helper had just
|
|
138
|
+
// accepted, so env:add stopped on node's SyntaxError after the helper's warning
|
|
139
|
+
// was: , ports = require(_(GINA_HOMEDIR + '/ports.json'))
|
|
130
140
|
var file = _(self.projects[self.projectName].path + '/env.json')
|
|
131
|
-
,
|
|
141
|
+
, portsFile = _(GINA_HOMEDIR + '/ports.json')
|
|
142
|
+
, ports = parseJSONWithComments(fs.readFileSync(portsFile, 'utf8'), portsFile)
|
|
132
143
|
;
|
|
133
144
|
|
|
134
145
|
if ( !fs.existsSync( _(self.projects[self.projectName].path + '/manifest.json') )) {
|
|
@@ -187,9 +198,12 @@ function Add(opt, cmd) {
|
|
|
187
198
|
self.envPath = _(self.projects[self.projectName].path + '/env.json');
|
|
188
199
|
self.envData = requireJSON(self.envPath);
|
|
189
200
|
self.portsPath = _(GINA_HOMEDIR + '/ports.json');
|
|
190
|
-
|
|
201
|
+
// #B938 — read fresh, as above: what rollback writes back is the file as it is now
|
|
202
|
+
// was: self.portsData = require(self.portsPath);
|
|
203
|
+
self.portsData = parseJSONWithComments(fs.readFileSync(self.portsPath, 'utf8'), self.portsPath);
|
|
191
204
|
self.portsReversePath = _(GINA_HOMEDIR + '/ports.reverse.json');
|
|
192
|
-
self.portsReverseData = require(self.portsReversePath);
|
|
205
|
+
// was: self.portsReverseData = require(self.portsReversePath);
|
|
206
|
+
self.portsReverseData = parseJSONWithComments(fs.readFileSync(self.portsReversePath, 'utf8'), self.portsReversePath);
|
|
193
207
|
|
|
194
208
|
addEnvToBundles(0)
|
|
195
209
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module gina/lib/cmd/framework/inc/child-failure
|
|
3
|
+
*
|
|
4
|
+
* Builds the message a command reports when a gina CLI command it ran as a child
|
|
5
|
+
* (`execFileSync(process.execPath, [<install>/bin/cli, …])`) failed (#B905).
|
|
6
|
+
*
|
|
7
|
+
* A gina CLI command writes its errors through gina's logger, on stdout: the
|
|
8
|
+
* catch in `lib/cmd/framework/init.js` logs « Gina has some troubles with this
|
|
9
|
+
* command » there and exits 1. The callers built their message from the
|
|
10
|
+
* child's stderr alone, an empty Buffer in that case (truthy, so it was used),
|
|
11
|
+
* and `exit('')` frames exit code 0 for an empty message: `gina bundle:start`
|
|
12
|
+
* reported success with nothing started when its `framework:link-node-modules`
|
|
13
|
+
* child failed (measured), and `framework:link` reported a bare `Error`.
|
|
14
|
+
*
|
|
15
|
+
* The message built here is never empty: it names the child command and its
|
|
16
|
+
* exit code (or signal), and carries the child's stderr and its stdout, or else
|
|
17
|
+
* the error's own message. Both streams, because either may hold the reason: the
|
|
18
|
+
* gina CLI writes its errors on stdout, while Node writes on stderr an uncaught
|
|
19
|
+
* exception and its own warnings — and a warning there is timing-dependent
|
|
20
|
+
* (Node emits it on a later tick, which a child that exits at once never
|
|
21
|
+
* reaches), so preferring stderr hid the reason behind « ExperimentalWarning:
|
|
22
|
+
* SQLite … » in one run of the same failure and not in the next (measured).
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The trimmed text of a child's captured output.
|
|
27
|
+
*
|
|
28
|
+
* @inner
|
|
29
|
+
* @private
|
|
30
|
+
* @param {Buffer|string|null|undefined} output - `err.stderr` or `err.stdout`
|
|
31
|
+
* @returns {string} the trimmed text, `''` when there is none
|
|
32
|
+
*/
|
|
33
|
+
function textOf(output) {
|
|
34
|
+
if ( output === null || typeof(output) == 'undefined' ) {
|
|
35
|
+
return '';
|
|
36
|
+
}
|
|
37
|
+
return String(output).trim();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Describes a failed child command for the user, never as an empty string.
|
|
42
|
+
*
|
|
43
|
+
* @param {Error} err - the error `execFileSync()` threw: its `status` (exit code),
|
|
44
|
+
* `signal`, `stderr` and `stdout`
|
|
45
|
+
* @param {string} command - the command as the user would type it, e.g.
|
|
46
|
+
* `gina framework:link-node-modules @myproject`
|
|
47
|
+
* @returns {string} « `<command>` failed (exit code N) », followed on the next lines
|
|
48
|
+
* by the child's stderr and its stdout (each when not empty), or else the error's message
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* try {
|
|
52
|
+
* execFileSync(process.execPath, [cli, 'link-node-modules', '@myproject']);
|
|
53
|
+
* } catch (linkErr) {
|
|
54
|
+
* return exit(describeChildFailure(linkErr, 'gina framework:link-node-modules @myproject'));
|
|
55
|
+
* }
|
|
56
|
+
* // `gina framework:link-node-modules @myproject` failed (exit code 1):
|
|
57
|
+
* // … Gina has some troubles with this command: …
|
|
58
|
+
*/
|
|
59
|
+
function describeChildFailure(err, command) {
|
|
60
|
+
var head = '`'+ command +'` failed';
|
|
61
|
+
if ( err && typeof(err.status) == 'number' ) {
|
|
62
|
+
head += ' (exit code '+ err.status +')';
|
|
63
|
+
} else if ( err && err.signal ) {
|
|
64
|
+
head += ' (signal '+ err.signal +')';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
var output = '';
|
|
68
|
+
if ( err ) {
|
|
69
|
+
output = [ textOf(err.stderr), textOf(err.stdout) ].filter(function (text) { return text !== ''; }).join('\n')
|
|
70
|
+
|| textOf(err.message);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return ( output ) ? head +':\n'+ output : head;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
module.exports = describeChildFailure;
|
|
77
|
+
module.exports.describeChildFailure = describeChildFailure;
|
|
@@ -355,17 +355,29 @@ function Initialize(opt) {
|
|
|
355
355
|
* registrar (bin/cli's start sync, gina-container, post_install) wrote
|
|
356
356
|
* `frameworks[<release>]` first (#B680).
|
|
357
357
|
*
|
|
358
|
+
* The file is read with `parseJSONWithComments()`, as bin/cli and the command
|
|
359
|
+
* helper read it (#B938): a `//` comment is ignored and a trailing comma is
|
|
360
|
+
* accepted with a warning. The commit rewrites the file as plain JSON, so neither
|
|
361
|
+
* stays in it.
|
|
362
|
+
*
|
|
358
363
|
* After the commit, `main.json` is dropped from Node's require cache, so the
|
|
359
364
|
* later steps that `require()` it read the migrated file (#B681).
|
|
360
365
|
*
|
|
361
366
|
* @private
|
|
362
|
-
* @param {function} done - Step callback; called with the error
|
|
363
|
-
*
|
|
364
|
-
* the
|
|
367
|
+
* @param {function} done - Step callback; called with the error when a missing
|
|
368
|
+
* `main.json` cannot be created, and with « main.json cannot be used:
|
|
369
|
+
* <reason> » when the file cannot be read or is still not JSON (#B938).
|
|
370
|
+
* Any other failure throws. The `begin()` chain prints either and exits
|
|
371
|
+
* the process with code 1.
|
|
365
372
|
* @returns {void}
|
|
366
373
|
* @example
|
|
367
374
|
* // A 0.6 main.json read by 0.7.0: def_culture {'0.6':'fr_FR'} gains '0.7':'fr_FR'
|
|
368
375
|
* // and the step logs `Migrating main.json: 0.6 → 0.7`; a second run changes nothing.
|
|
376
|
+
* @example
|
|
377
|
+
* // A trailing comma in main.json: a warning naming the file, then the step completes.
|
|
378
|
+
* // A missing closing brace: the command prints
|
|
379
|
+
* // « Error: main.json cannot be used: could not parse `/home/me/.gina/main.json`: … »
|
|
380
|
+
* // and exits 1, the file left as it was.
|
|
369
381
|
*/
|
|
370
382
|
self.checkIfMain = function(done) {
|
|
371
383
|
console.debug('Checking main...');
|
|
@@ -398,7 +410,19 @@ function Initialize(opt) {
|
|
|
398
410
|
}
|
|
399
411
|
}
|
|
400
412
|
// update if needed : like the version number ...
|
|
401
|
-
|
|
413
|
+
// #B938 — read with parseJSONWithComments(), as bin/cli and the command helper read
|
|
414
|
+
// this file (#B906). require() refused the `//` comment and the trailing comma they
|
|
415
|
+
// accept, and every offline command and the framework start run this step, so a
|
|
416
|
+
// hand edit stopped all of them with node's SyntaxError. A file that is
|
|
417
|
+
// still not JSON, or cannot be read, refuses the command here, before the commit
|
|
418
|
+
// below can rewrite it.
|
|
419
|
+
// was: var mainConfig = require(target);
|
|
420
|
+
var mainConfig = null;
|
|
421
|
+
try {
|
|
422
|
+
mainConfig = parseJSONWithComments(fs.readFileSync(target, 'utf8'), target);
|
|
423
|
+
} catch (mainErr) {
|
|
424
|
+
return done(new Error('main.json cannot be used: '+ (mainErr.message || mainErr)));
|
|
425
|
+
}
|
|
402
426
|
mainConfig = whisper(dic, mainConfig);
|
|
403
427
|
|
|
404
428
|
// MIGRATION — first run on a new short version (e.g. 0.1 → 0.2, 0.5 → 1.0).
|
|
@@ -533,6 +557,9 @@ function Initialize(opt) {
|
|
|
533
557
|
// archs[<release>] and the first command exited 1. Dropping the entry makes
|
|
534
558
|
// their next require() read the file just written. Once per process: init's
|
|
535
559
|
// check chain runs from onComplete only, never per online command.
|
|
560
|
+
// #B938 — the read at the top of this step no longer goes through require(), so
|
|
561
|
+
// it no longer fills that cache; the drop stays for a require() of the file made
|
|
562
|
+
// earlier in this process.
|
|
536
563
|
try {
|
|
537
564
|
delete require.cache[require.resolve(target)];
|
|
538
565
|
} catch (cacheErr) {
|
|
@@ -4,6 +4,8 @@ const {spawn} = require('child_process');
|
|
|
4
4
|
// const {execSync} = require('child_process');
|
|
5
5
|
const { execFileSync } = require('child_process');
|
|
6
6
|
var CmdHelper = require('./../helper');
|
|
7
|
+
// #B905 — a failed link-node-modules child's message, with the child's own reason
|
|
8
|
+
var describeChildFailure = require('./inc/child-failure');
|
|
7
9
|
var console = lib.logger;
|
|
8
10
|
/**
|
|
9
11
|
* @module gina/lib/cmd/framework/link
|
|
@@ -119,7 +121,10 @@ var console = lib.logger;
|
|
|
119
121
|
// was: execSync('"'+ process.execPath +'" "'+ cli +'" link-node-modules @'+ self.projectName);
|
|
120
122
|
execFileSync(process.execPath, [cli, 'link-node-modules', '@' + self.projectName]);
|
|
121
123
|
} catch (linkErr) {
|
|
122
|
-
|
|
124
|
+
// #B905 — the child writes its error on stdout, so its stderr was empty and
|
|
125
|
+
// the command ended on a bare `Error`, without the child's reason
|
|
126
|
+
// was: var errOutput = (linkErr.stderr) ? linkErr.stderr.toString().trim() : (linkErr.message || linkErr.stack);
|
|
127
|
+
var errOutput = describeChildFailure(linkErr, 'gina framework:link-node-modules @'+ self.projectName);
|
|
123
128
|
console.warn('[link] '+ errOutput);
|
|
124
129
|
return end(new Error(errOutput), 'error')
|
|
125
130
|
}
|
|
@@ -11,12 +11,12 @@ var lib = require( getPath('gina').lib );// jshint ignore:line
|
|
|
11
11
|
//var helpers = require( getPath('gina').helpers );
|
|
12
12
|
var console = lib.logger;
|
|
13
13
|
/**
|
|
14
|
-
* Framework start command
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
14
|
+
* Framework start command (`gina start` / `gina framework:start`). It runs as
|
|
15
|
+
* the current user and needs no elevated privileges. Its pid files go where
|
|
16
|
+
* `getRunDir()` (utils/helper.js) puts them: under the npm prefix, or in
|
|
17
|
+
* `~/.gina/run` when the prefix is not writable; `GINA_RUNDIR` overrides both.
|
|
18
|
+
* (#B889: this header used to ask for root and describe a `/var/run/gina` pid
|
|
19
|
+
* folder that no code uses.)
|
|
20
20
|
*
|
|
21
21
|
* @class Start
|
|
22
22
|
* @constructor
|
|
@@ -12,6 +12,8 @@ var helpers = require( getPath('gina').helpers);
|
|
|
12
12
|
var escapeRegex = require('./bundle/inc/name-rewrite').escapeRegex;
|
|
13
13
|
// #B855 — the framed exit code exit() sends an online command's client
|
|
14
14
|
var startStatus = require('./bundle/inc/start-status');
|
|
15
|
+
// #B905 — a failed link child's message, never empty (an empty one framed exit code 0)
|
|
16
|
+
var describeChildFailure = require('./framework/inc/child-failure');
|
|
15
17
|
/**
|
|
16
18
|
* @module gina/lib/cmd/helper
|
|
17
19
|
*/
|
|
@@ -238,11 +240,19 @@ function CmdHelper(cmd, client, debug) {
|
|
|
238
240
|
* Validates the command context, filters argv, and loads all project/bundle
|
|
239
241
|
* configuration assets into `cmd`. Must be called once at the top of a
|
|
240
242
|
* handler's `init()`. Delegates to getParams() then loadAssets().
|
|
243
|
+
* `~/.gina/main.json` and `projects.json` are read without requireJSON()'s
|
|
244
|
+
* `process.exit(1)` (#B906): a file that cannot be read or parsed refuses the command with
|
|
245
|
+
* « <file> cannot be used: <reason> » (refuseProjectFile()), which inside the framework
|
|
246
|
+
* daemon (`bundle:start`) ends only that client, and the function returns false.
|
|
241
247
|
* Assigns itself to the global `isCmdConfigured` so all cmd handlers can call it.
|
|
242
248
|
*
|
|
243
249
|
* @global
|
|
244
250
|
* @async
|
|
245
251
|
* @returns {boolean} True when configuration loaded successfully; false on error
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* isCmdConfigured();
|
|
255
|
+
* if (self.cmdExited) return false; // a refusal inside the daemon marks the command
|
|
246
256
|
*/
|
|
247
257
|
isCmdConfigured = async function() {
|
|
248
258
|
|
|
@@ -263,7 +273,18 @@ function CmdHelper(cmd, client, debug) {
|
|
|
263
273
|
if ( typeof(require.cache[cmd.mainConfigPath]) != 'undefined') {
|
|
264
274
|
delete require.cache[require.resolve(cmd.mainConfigPath)]
|
|
265
275
|
}
|
|
266
|
-
|
|
276
|
+
// #B906 — main.json and projects.json are read without requireJSON()'s
|
|
277
|
+
// `process.exit(1)`: `bundle:start` runs inside the framework daemon, where a
|
|
278
|
+
// malformed or unreadable projects.json ended the daemon (measured). A file that
|
|
279
|
+
// cannot be used refuses the command (refuseProjectFile()), which inside the daemon
|
|
280
|
+
// ends only this client.
|
|
281
|
+
// was: cmd.mainConfig = requireJSON( cmd.mainConfigPath );
|
|
282
|
+
try {
|
|
283
|
+
cmd.mainConfig = readProjectJSON( cmd.mainConfigPath );
|
|
284
|
+
} catch (mainErr) {
|
|
285
|
+
refuseProjectFile('main.json', mainErr);
|
|
286
|
+
return false;
|
|
287
|
+
}
|
|
267
288
|
|
|
268
289
|
// projects
|
|
269
290
|
cmd.projectConfigPath = _(GINA_HOMEDIR + '/projects.json', true);
|
|
@@ -271,7 +292,13 @@ function CmdHelper(cmd, client, debug) {
|
|
|
271
292
|
delete require.cache[require.resolve(cmd.projectConfigPath)]
|
|
272
293
|
}
|
|
273
294
|
|
|
274
|
-
cmd.projects = requireJSON( cmd.projectConfigPath );
|
|
295
|
+
// was: cmd.projects = requireJSON( cmd.projectConfigPath );
|
|
296
|
+
try {
|
|
297
|
+
cmd.projects = readProjectJSON( cmd.projectConfigPath ); // #B906
|
|
298
|
+
} catch (projectsErr) {
|
|
299
|
+
refuseProjectFile('projects.json', projectsErr);
|
|
300
|
+
return false;
|
|
301
|
+
}
|
|
275
302
|
var pIndex = 0;
|
|
276
303
|
for (let p in cmd.projects) {
|
|
277
304
|
// #B59 — a corrupt registration (empty / undefined / too-short `.path`,
|
|
@@ -690,13 +717,68 @@ function CmdHelper(cmd, client, debug) {
|
|
|
690
717
|
return coreEnv
|
|
691
718
|
}
|
|
692
719
|
|
|
720
|
+
/**
|
|
721
|
+
* #B890 — reads a project's JSON file (manifest.json, env.json) the way requireJSON()
|
|
722
|
+
* does, comments accepted, but never exits the process. loadAssets() runs inside the
|
|
723
|
+
* framework daemon for `bundle:start`, where requireJSON()'s `process.exit(1)` on an
|
|
724
|
+
* unreadable or malformed file ended the daemon (measured). The caller decides what a
|
|
725
|
+
* failure means. #B906 — gina's own state files are read with it too: `~/.gina/main.json`
|
|
726
|
+
* and `projects.json` in isCmdConfigured(), `ports.json` and `ports.reverse.json` in
|
|
727
|
+
* loadAssets().
|
|
728
|
+
*
|
|
729
|
+
* @inner
|
|
730
|
+
* @private
|
|
731
|
+
* @param {string} file - absolute path of the JSON file
|
|
732
|
+
* @returns {*} the parsed value
|
|
733
|
+
* @throws {Error} the read error, which names the path, or parseJSONWithComments()'s
|
|
734
|
+
* « could not parse `<file>`: <reason> »
|
|
735
|
+
*
|
|
736
|
+
* @example
|
|
737
|
+
* var manifest = readProjectJSON(projectPath + '/manifest.json');
|
|
738
|
+
*/
|
|
739
|
+
var readProjectJSON = function(file) {
|
|
740
|
+
return parseJSONWithComments(fs.readFileSync(file, 'utf8'), file);
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* #B890 — refuses the command because a file of the current project cannot be used, or
|
|
745
|
+
* (#B906) one of gina's own state files: logs « <name> cannot be used: <reason> », then
|
|
746
|
+
* ends the command as the #B855 refusal in isCmdConfigured() does: online (`bundle:start`,
|
|
747
|
+
* inside the framework daemon) it ends only this client, with exit code 1 framed; offline
|
|
748
|
+
* it exits the process with code 1. The caller returns right after it.
|
|
749
|
+
*
|
|
750
|
+
* @inner
|
|
751
|
+
* @private
|
|
752
|
+
* @param {string} name - the file's name as the message shows it (`manifest.json`,
|
|
753
|
+
* `projects.json`)
|
|
754
|
+
* @param {Error} err - the error readProjectJSON() threw
|
|
755
|
+
*
|
|
756
|
+
* @example
|
|
757
|
+
* try { cmd.envData = readProjectJSON(cmd.envPath); }
|
|
758
|
+
* catch (envErr) { return refuseProjectFile('env.json', envErr); }
|
|
759
|
+
*/
|
|
760
|
+
var refuseProjectFile = function(name, err) {
|
|
761
|
+
var msg = name +' cannot be used: '+ err.message;
|
|
762
|
+
console.error(msg);
|
|
763
|
+
if ( client && client.ginaStatusFrames === true ) {
|
|
764
|
+
exit(msg);
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
process.exit(1);
|
|
768
|
+
};
|
|
769
|
+
|
|
693
770
|
/**
|
|
694
771
|
* Reads all framework config files (main.json, projects.json, manifest.json,
|
|
695
772
|
* env.json, ports.json, ports.reverse.json) fresh from disk (no require cache).
|
|
696
773
|
* Populates cmd with scopes, envs, protocols, schemes, port maps, and bundle lists.
|
|
697
774
|
* A registered project whose directory exists but whose manifest.json is missing
|
|
698
775
|
* (a stale ~/.gina/projects.json entry) is warned and skipped (#B24) rather than
|
|
699
|
-
* aborting the whole command.
|
|
776
|
+
* aborting the whole command; one whose manifest.json cannot be read or parsed is
|
|
777
|
+
* skipped the same way (#B890). The current project's manifest.json and env.json are
|
|
778
|
+
* read without requireJSON()'s `process.exit(1)`: a file that cannot be used refuses
|
|
779
|
+
* the command with « <file> cannot be used: <reason> » (refuseProjectFile()), which
|
|
780
|
+
* inside the framework daemon (`bundle:start`) ends only that client (#B890). So do
|
|
781
|
+
* `~/.gina/ports.json` and `ports.reverse.json`, at each of their reads here (#B906).
|
|
700
782
|
* On `project:add`/`project:import`, the current project's bundle list is the
|
|
701
783
|
* UNION of the manifest's declared bundles and the bundle directories found on
|
|
702
784
|
* disk (#B375): declared entries are preserved as-is, disk-only bundles are
|
|
@@ -766,17 +848,29 @@ function CmdHelper(cmd, client, debug) {
|
|
|
766
848
|
// down sits BEFORE the canonical ports load, and `remove.js` end() rewrites
|
|
767
849
|
// ports.json / ports.reverse.json unconditionally — so without loading them
|
|
768
850
|
// the maps would be the empty `{}` defaults and EVERY project's ports would
|
|
769
|
-
// be wiped. Mirror the canonical load (see the `cmd.portsData =
|
|
851
|
+
// be wiped. Mirror the canonical load (see the `cmd.portsData = readProjectJSON`
|
|
770
852
|
// site later in this function); the port paths are already set at `:563-564`.
|
|
853
|
+
// #B906 — a ports file that cannot be used refuses the command here too: an
|
|
854
|
+
// empty map written back would wipe every project's ports.
|
|
771
855
|
cmd.projectLocation = _(cmd.projects[cmd.projectName].path, true);
|
|
772
856
|
if ( typeof(require.cache[cmd.portsPath]) != 'undefined') {
|
|
773
857
|
delete require.cache[require.resolve(cmd.portsPath)]
|
|
774
858
|
}
|
|
775
|
-
cmd.portsData = requireJSON(cmd.portsPath) || {};
|
|
859
|
+
// was: cmd.portsData = requireJSON(cmd.portsPath) || {};
|
|
860
|
+
try {
|
|
861
|
+
cmd.portsData = readProjectJSON(cmd.portsPath) || {};
|
|
862
|
+
} catch (portsErr) {
|
|
863
|
+
return refuseProjectFile('ports.json', portsErr);
|
|
864
|
+
}
|
|
776
865
|
if ( typeof(require.cache[cmd.portsReversePath]) != 'undefined') {
|
|
777
866
|
delete require.cache[require.resolve(cmd.portsReversePath)]
|
|
778
867
|
}
|
|
779
|
-
cmd.portsReverseData = requireJSON(cmd.portsReversePath) || {};
|
|
868
|
+
// was: cmd.portsReverseData = requireJSON(cmd.portsReversePath) || {};
|
|
869
|
+
try {
|
|
870
|
+
cmd.portsReverseData = readProjectJSON(cmd.portsReversePath) || {};
|
|
871
|
+
} catch (portsReverseErr) {
|
|
872
|
+
return refuseProjectFile('ports.reverse.json', portsReverseErr);
|
|
873
|
+
}
|
|
780
874
|
return;
|
|
781
875
|
} else if ( ! fs.existsSync(cmd.projects[cmd.projectName].path) ) {
|
|
782
876
|
// #B59 — the project DIRECTORY itself is gone (a valid-length path pointing
|
|
@@ -815,10 +909,18 @@ function CmdHelper(cmd, client, debug) {
|
|
|
815
909
|
contentFile,
|
|
816
910
|
_(cmd.projectManifestPath, true)
|
|
817
911
|
);
|
|
818
|
-
|
|
912
|
+
try {
|
|
913
|
+
cmd.projectData = readProjectJSON(cmd.projectManifestPath); // #B890
|
|
914
|
+
} catch (manifestErr) {
|
|
915
|
+
return refuseProjectFile('manifest.json', manifestErr);
|
|
916
|
+
}
|
|
819
917
|
}
|
|
820
918
|
} else {
|
|
821
|
-
|
|
919
|
+
try {
|
|
920
|
+
cmd.projectData = readProjectJSON(cmd.projectManifestPath); // #B890 — requireJSON() ended the daemon on an unreadable or malformed file
|
|
921
|
+
} catch (manifestErr) {
|
|
922
|
+
return refuseProjectFile('manifest.json', manifestErr);
|
|
923
|
+
}
|
|
822
924
|
}
|
|
823
925
|
|
|
824
926
|
cmd.projectHomedir = (
|
|
@@ -1026,7 +1128,11 @@ function CmdHelper(cmd, client, debug) {
|
|
|
1026
1128
|
delete require.cache[require.resolve(cmd.envPath)]
|
|
1027
1129
|
}
|
|
1028
1130
|
console.debug('[ ConfigAssetsLoaderHelper ] envPath ', cmd.envPath);
|
|
1029
|
-
|
|
1131
|
+
try {
|
|
1132
|
+
cmd.envData = readProjectJSON(cmd.envPath); // #B890 — a malformed env.json ended the daemon too
|
|
1133
|
+
} catch (envErr) {
|
|
1134
|
+
return refuseProjectFile('env.json', envErr);
|
|
1135
|
+
}
|
|
1030
1136
|
|
|
1031
1137
|
cmd.def_framework = ( typeof(cmd.projects[cmd.projectName].framework) != 'undefined' ) ? (cmd.projects[cmd.projectName].framework.replace(/^v/, '').split(/\./g)).join('.') : (cmd.mainConfig.def_framework.split(/\./g)).join('.');
|
|
1032
1138
|
cmd.def_framework_short = ( typeof(cmd.projects[cmd.projectName].framework) != 'undefined' ) ? (cmd.projects[cmd.projectName].framework.replace(/^v/, '').split(/\./g).splice(0,2)).join('.') : (cmd.mainConfig.def_framework.split(/\./g).splice(0,2)).join('.');
|
|
@@ -1188,12 +1294,25 @@ function CmdHelper(cmd, client, debug) {
|
|
|
1188
1294
|
if ( typeof(require.cache[cmd.portsPath]) != 'undefined') {
|
|
1189
1295
|
delete require.cache[require.resolve(cmd.portsPath)]
|
|
1190
1296
|
}
|
|
1191
|
-
|
|
1297
|
+
// #B906 — read without requireJSON()'s `process.exit(1)`, which ended the framework
|
|
1298
|
+
// daemon for `bundle:start` (measured): a ports file that cannot be used refuses the
|
|
1299
|
+
// command (refuseProjectFile()), which inside the daemon ends only this client.
|
|
1300
|
+
// was: cmd.portsData = requireJSON(cmd.portsPath) || {};
|
|
1301
|
+
try {
|
|
1302
|
+
cmd.portsData = readProjectJSON(cmd.portsPath) || {};
|
|
1303
|
+
} catch (portsErr) {
|
|
1304
|
+
return refuseProjectFile('ports.json', portsErr);
|
|
1305
|
+
}
|
|
1192
1306
|
|
|
1193
1307
|
if ( typeof(require.cache[cmd.portsReversePath]) != 'undefined') {
|
|
1194
1308
|
delete require.cache[require.resolve(cmd.portsReversePath)]
|
|
1195
1309
|
}
|
|
1196
|
-
cmd.portsReverseData = requireJSON(cmd.portsReversePath) || {};
|
|
1310
|
+
// was: cmd.portsReverseData = requireJSON(cmd.portsReversePath) || {};
|
|
1311
|
+
try {
|
|
1312
|
+
cmd.portsReverseData = readProjectJSON(cmd.portsReversePath) || {};
|
|
1313
|
+
} catch (portsReverseErr) {
|
|
1314
|
+
return refuseProjectFile('ports.reverse.json', portsReverseErr);
|
|
1315
|
+
}
|
|
1197
1316
|
|
|
1198
1317
|
|
|
1199
1318
|
|
|
@@ -1274,7 +1393,11 @@ function CmdHelper(cmd, client, debug) {
|
|
|
1274
1393
|
// was: execSync('"'+ process.execPath +'" "'+ selfCli +'" link-node-modules @'+cmd.projectName +cmd.paramsStringified, …);
|
|
1275
1394
|
execFileSync(process.execPath, [selfCli, 'link-node-modules', '@' + cmd.projectName].concat(cmd.paramsArgv), { env: _linkEnv });
|
|
1276
1395
|
} catch (linkErr) {
|
|
1277
|
-
|
|
1396
|
+
// #B905 — the child writes its error on stdout (gina's logger), so its stderr
|
|
1397
|
+
// was an empty Buffer, the message '' and exit('') framed exit code 0:
|
|
1398
|
+
// `bundle:start` reported success with nothing started (measured)
|
|
1399
|
+
// was: var linkErrOutput = (linkErr.stderr) ? linkErr.stderr.toString().trim() : (linkErr.message || linkErr.stack);
|
|
1400
|
+
var linkErrOutput = describeChildFailure(linkErr, 'gina framework:link-node-modules @'+ cmd.projectName);
|
|
1278
1401
|
console.error(linkErrOutput);
|
|
1279
1402
|
return exit(linkErrOutput);
|
|
1280
1403
|
}
|
|
@@ -1285,7 +1408,9 @@ function CmdHelper(cmd, client, debug) {
|
|
|
1285
1408
|
// was: console.debug(execSync('"'+ process.execPath +'" "'+ selfCli +'" link @'+cmd.projectName +cmd.paramsStringified, …).toString().trim());
|
|
1286
1409
|
console.debug(execFileSync(process.execPath, [selfCli, 'link', '@' + cmd.projectName].concat(cmd.paramsArgv), { env: _linkEnv }).toString().trim());
|
|
1287
1410
|
} catch (err) {
|
|
1288
|
-
|
|
1411
|
+
// #B905 — the same empty-message exit code 0 as the link-node-modules child above
|
|
1412
|
+
// was: var errOutput = (err.stderr) ? err.stderr.toString().trim() : (err.message || err.stack);
|
|
1413
|
+
var errOutput = describeChildFailure(err, 'gina framework:link @'+ cmd.projectName);
|
|
1289
1414
|
console.emerg(errOutput);
|
|
1290
1415
|
return exit(errOutput);
|
|
1291
1416
|
}
|
|
@@ -1351,8 +1476,20 @@ function CmdHelper(cmd, client, debug) {
|
|
|
1351
1476
|
delete require.cache[require.resolve(cmd.portsPath)]
|
|
1352
1477
|
}
|
|
1353
1478
|
|
|
1354
|
-
|
|
1355
|
-
|
|
1479
|
+
// #B906 — read without requireJSON()'s `process.exit(1)`, as above; this second read
|
|
1480
|
+
// sits outside the project block, so it also runs when no project is named
|
|
1481
|
+
// was: ports = requireJSON(cmd.portsPath);
|
|
1482
|
+
// was: portsReverse = requireJSON(cmd.portsReversePath);
|
|
1483
|
+
try {
|
|
1484
|
+
ports = readProjectJSON(cmd.portsPath);
|
|
1485
|
+
} catch (portsErr) {
|
|
1486
|
+
return refuseProjectFile('ports.json', portsErr);
|
|
1487
|
+
}
|
|
1488
|
+
try {
|
|
1489
|
+
portsReverse = readProjectJSON(cmd.portsReversePath);
|
|
1490
|
+
} catch (portsReverseErr) {
|
|
1491
|
+
return refuseProjectFile('ports.reverse.json', portsReverseErr);
|
|
1492
|
+
}
|
|
1356
1493
|
|
|
1357
1494
|
// protocols list
|
|
1358
1495
|
if (cmd.protocols.length == 0)
|
|
@@ -1432,7 +1569,19 @@ function CmdHelper(cmd, client, debug) {
|
|
|
1432
1569
|
continue;
|
|
1433
1570
|
}
|
|
1434
1571
|
|
|
1435
|
-
|
|
1572
|
+
// #B890 — every registered project's manifest is read here, so a malformed one in
|
|
1573
|
+
// ANOTHER project ended the daemon during `bundle:start` (requireJSON() exits). It
|
|
1574
|
+
// is skipped with an error line, as #B24 skips a missing one; the current project's
|
|
1575
|
+
// own manifest was refused earlier in this function.
|
|
1576
|
+
// was: cmd.bundlesByProject[project] = (cmd.bundlesByProject[project].count() > 0) ? cmd.bundlesByProject[project] : requireJSON(projectPropertiesPath).bundles;
|
|
1577
|
+
if ( cmd.bundlesByProject[project].count() == 0 ) {
|
|
1578
|
+
try {
|
|
1579
|
+
cmd.bundlesByProject[project] = readProjectJSON(projectPropertiesPath).bundles;
|
|
1580
|
+
} catch (manifestErr) {
|
|
1581
|
+
console.error('[ '+ project +' ] manifest.json cannot be used, the project is skipped: '+ manifestErr.message);
|
|
1582
|
+
continue;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1436
1585
|
// #B375 — the "additional checks" block below (introduced 2023, absorbed into an
|
|
1437
1586
|
// automated version-bump commit, never revisited) compared each project's declared
|
|
1438
1587
|
// bundle COUNT against a readdir of `<project>/src` (else `/releases`) and, on ANY
|