gina 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -0
- package/README.md +48 -40
- package/ROADMAP.md +1 -0
- package/bin/cli +33 -4
- package/bin/cli-debug +37 -1
- package/bin/cmd +18 -0
- package/framework/v0.7.4/VERSION +1 -0
- package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.js +1504 -621
- package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js +736 -0
- package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/{v0.7.3 → v0.7.4}/core/config.js +13 -3
- package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.js +268 -14
- package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-json.js +9 -2
- package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-nunjucks.js +88 -9
- package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-swig-async.js +87 -7
- package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-swig.js +115 -9
- package/framework/{v0.7.3 → v0.7.4}/core/gna.js +44 -2
- package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/src/form-validator.js +43 -4
- package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/src/main.js +847 -515
- package/framework/{v0.7.3 → v0.7.4}/core/router.js +139 -40
- package/framework/{v0.7.3 → v0.7.4}/core/server.express.js +5 -4
- package/framework/{v0.7.3 → v0.7.4}/core/server.isaac.js +93 -10
- package/framework/{v0.7.3 → v0.7.4}/core/server.js +348 -46
- package/framework/{v0.7.3 → v0.7.4}/helpers/context.js +47 -2
- package/framework/{v0.7.3 → v0.7.4}/helpers/data/src/main.js +10 -1
- package/framework/{v0.7.3 → v0.7.4}/helpers/prototypes.js +23 -1
- package/framework/v0.7.4/lib/cmd/bundle/inc/start-status.js +420 -0
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/restart.js +71 -1
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/start.js +207 -41
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/clear.js +39 -8
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/help.txt +3 -4
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/inc/ps-titles.js +62 -6
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/init.js +12 -1
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/restart.js +49 -11
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/status.js +23 -1
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/stop.js +150 -48
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/helper.js +24 -0
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/run.js +6 -0
- package/framework/{v0.7.3 → v0.7.4}/lib/cmd/index.js +8 -1
- package/framework/{v0.7.3 → v0.7.4}/lib/collection/src/main.js +373 -74
- package/framework/{v0.7.3 → v0.7.4}/lib/job/src/main.js +49 -5
- package/framework/{v0.7.3 → v0.7.4}/lib/lane/src/main.js +81 -5
- package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/main.js +184 -15
- package/framework/v0.7.4/lib/logger/src/redact.js +1003 -0
- package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-filters/src/main.js +118 -11
- package/framework/{v0.7.3 → v0.7.4}/lib/proc.js +27 -8
- package/framework/{v0.7.3 → v0.7.4}/lib/render-cache/src/main.js +97 -0
- package/framework/{v0.7.3 → v0.7.4}/lib/routing/src/main.js +140 -14
- package/framework/{v0.7.3 → v0.7.4}/lib/sqlite-driver.js +15 -5
- package/framework/{v0.7.3 → v0.7.4}/lib/swig-filters/src/main.js +123 -16
- package/framework/{v0.7.3 → v0.7.4}/package.json +1 -1
- package/gna.js +4 -4
- package/llms.txt +24 -22
- package/package.json +5 -4
- package/schema/settings.json +25 -1
- package/script/smoke_in_container.js +69 -12
- package/types/index.d.ts +3 -2
- package/utils/prototypes.js +37 -2
- package/framework/v0.7.3/VERSION +0 -1
- package/framework/v0.7.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -726
- package/framework/v0.7.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/v0.7.3/lib/logger/src/redact.js +0 -391
- /package/framework/{v0.7.3 → v0.7.4}/AUTHORS +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/LICENSE +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/html/static.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/config.requirements-anchor.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/ai/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/ai/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/storage-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/duckdb/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/duckdb/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/job-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mysql/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mysql/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/param-redact.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/postgresql/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/postgresql/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/job-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/kv-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/scylladb/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/scylladb/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/scylladb/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/settle-once.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sql-parser.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/connector.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/job-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/kv-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/content.encoding +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-nunjucks-async.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-stream.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-v1.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-xml.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/inline-script.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/inspector-window-emit.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/preload-hints.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/controller/release-banner.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/dev/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/currency.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/locales/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/mime.types +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/model/entity.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/model/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/model/template/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/csrf/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/csrf/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/csrf/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coep/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coep/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coop/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coop/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/corp/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/corp/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/csp/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/csp/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hsts/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hsts/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/session/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/session/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/session/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/server.isaac.rapid-reset.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/server.route-candidates.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/status.codes +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/_gitignore +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/connectors.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/watchers.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/locales/en.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/css/home.css +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/sw.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/env.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/settings.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/console.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/data/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/data/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/json/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/json/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/json/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/path.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/task.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/helpers/text.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/admin/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/admin/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/async/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/async/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/audit/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/audit/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/audit-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authn/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authn/src/lockout.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authn/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authn/src/totp.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authz-gate/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/authz-gate/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cache/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cache/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cache/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cache/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/aliases.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/audit/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/audit/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/audit/verify.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/build.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/inc/boot-lines.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/inc/name.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/mcp-start.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/mcp.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/oas.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/openapi.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/status.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/types.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/stats.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/infer.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/migrate.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/models.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/test.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/ps.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/stop.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/args.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/namespace.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/reference-scan.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/scaffold.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/rename.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/inc/name.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/get.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/inc/listen-error.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/link.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/reset.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/start.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/tail.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/export.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/import.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/scan.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/_host.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/build.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/inspector/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/inspector/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/inspector/open.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/man-render.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/kill.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/set.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/backup.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/build.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/inc/name.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/rename.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/restore.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/status.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/inc/name.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/check.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/scan.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/help.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/list.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/man.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/start.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/arguments.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/gc.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/help.txt +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/stats.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/verify.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd-status-format/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cmd-status-format/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/collection/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/collection/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/collection/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/conf-view/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/conf-view/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/config.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-config/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-config/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-error/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-error/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-registry/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/connector-registry/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cron/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cron/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/domain/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/domain/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/domain/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto-pipe/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto-pipe/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto-types/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/dto-types/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/duration/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/duration/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/error-ref/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/error-ref/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/generator/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/i18n/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/i18n/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/idempotency/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/idempotency/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/image-build/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/image-build/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-events/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-events/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-redact/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-redact/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/instrument/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/instrument/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/job/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/job-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/json-config-header/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/json-config-header/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/kv/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/kv/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/kv-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/lane/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/loading-state/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/loading-state/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/mq/listener.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/maintenance/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/maintenance/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/math/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-dispatch/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-dispatch/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-http/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-http/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-server/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-server/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/merge/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/merge/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/merge/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/message-validator/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/message-validator/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/metrics/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/metrics/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/model.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/money/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/money/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/multipart/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/multipart/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/net-locality/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/net-locality/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-filters/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-filters/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-resolver/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-resolver/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/priority/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/priority/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/push/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/push/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/rate-limit/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/rate-limit/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/release-watch/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/release-watch/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/render-cache/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/routing/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/routing/build.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/routing/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/routing-introspect/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/routing-introspect/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/backends/env.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/backends/exec.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/backends/file.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/declaration.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/env-file.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/sources.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/security-headers-emitter/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/security-headers-emitter/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/session-lifetime/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/session-lifetime/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/session-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/shell.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/sri/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/sri/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/state.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/local-cas.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/local-stream.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/local.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/meta-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/s3.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/util.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/storage-store.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/swig-resolver/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/swig-resolver/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/src/loaders/http.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/src/loaders/memory.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/url/README.md +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/url/index.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/url/routing.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/uuid/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/uuid/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/validator.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/watcher/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/watcher/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-framing/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-framing/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-query/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-query/src/main.js +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-session/package.json +0 -0
- /package/framework/{v0.7.3 → v0.7.4}/lib/ws-session/src/main.js +0 -0
|
@@ -309,6 +309,50 @@ function ContextHelper(contexts) {
|
|
|
309
309
|
code = 500
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
+
// #B830 (2026-10-09) — the two log lines below print the error's detail, which can
|
|
313
|
+
// carry a value a client supplied. The pair is declared INSIDE this function, not at
|
|
314
|
+
// module level like its copies (core/server.js, core/controller/controller.js,
|
|
315
|
+
// lib/lane, …), so the function stays self-contained for the tests that extract and
|
|
316
|
+
// run it. Same bodies: `test/lib/log-escape-parity-b830.test.js` fails on a drift.
|
|
317
|
+
/**
|
|
318
|
+
* Render the control characters of a value (C0, DEL and C1, U+2028 / U+2029) as
|
|
319
|
+
* visible escapes (`\n`/`\r`/`\t`, else `\uXXXX`).
|
|
320
|
+
*
|
|
321
|
+
* @inner
|
|
322
|
+
* @private
|
|
323
|
+
* @param {*} value - Coerced with `String()`.
|
|
324
|
+
* @returns {string} The value with its control characters shown as escapes.
|
|
325
|
+
*/
|
|
326
|
+
function escapeLogControlChars(value) {
|
|
327
|
+
return String(value).replace(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/g, function (c) {
|
|
328
|
+
switch (c) {
|
|
329
|
+
case '\n': return '\\n';
|
|
330
|
+
case '\r': return '\\r';
|
|
331
|
+
case '\t': return '\\t';
|
|
332
|
+
default: return '\\u' + ('000' + c.charCodeAt(0).toString(16)).slice(-4);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Escape every line of an error detail and keep a REAL line feed only before a
|
|
338
|
+
* stack-frame line (whitespace, `at`, whitespace, any text) or a `caused by:` line.
|
|
339
|
+
*
|
|
340
|
+
* @inner
|
|
341
|
+
* @private
|
|
342
|
+
* @param {*} detail - The error detail (a stack, a message).
|
|
343
|
+
* @returns {string} The detail with injected line breaks neutralised, frame lines kept.
|
|
344
|
+
*/
|
|
345
|
+
function escapeLogDetailKeepFrames(detail) {
|
|
346
|
+
if (detail === null || typeof detail === 'undefined') { return ''; }
|
|
347
|
+
var lines = String(detail).split('\n');
|
|
348
|
+
var out = escapeLogControlChars(lines[0]);
|
|
349
|
+
for (var i = 1; i < lines.length; i++) {
|
|
350
|
+
var keep = /^\s+at\s/.test(lines[i]) || /^caused by:/.test(lines[i]);
|
|
351
|
+
out += (keep ? '\n' : '\\n') + escapeLogControlChars(lines[i]);
|
|
352
|
+
}
|
|
353
|
+
return out;
|
|
354
|
+
}
|
|
355
|
+
|
|
312
356
|
// #B534 — the `router` context slot (core/router.js) is process-wide and is
|
|
313
357
|
// never cleared, so it holds whichever request was routed LAST rather than
|
|
314
358
|
// the one whose call failed. A callback resumed after an await could
|
|
@@ -368,7 +412,7 @@ function ContextHelper(contexts) {
|
|
|
368
412
|
// operator can correlate. Prefer the store's request when the store is
|
|
369
413
|
// what supplied `res`, and keep `res.req` for the fallback path.
|
|
370
414
|
var _req = ( _fromStore && _reqStore.req ) ? _reqStore.req : ( ( res.req ) ? res.req : null );
|
|
371
|
-
console.error('[ CONTEXT ][ '+ ( getContext('bundle') || '-' ) +' ][ ref '+ ref +' ][ req '+ ( ( _req && _req._ginaReqId ) || '-' ) +' ] '+ ( ( _req && _req.method ) || '-' ) +' [ '+ code +' ] '+ ( ( _req && _req.url ) || '-' ) +'\n'+ _errDetail);
|
|
415
|
+
console.error('[ CONTEXT ][ '+ ( getContext('bundle') || '-' ) +' ][ ref '+ ref +' ][ req '+ ( ( _req && _req._ginaReqId ) || '-' ) +' ] '+ ( ( _req && _req.method ) || '-' ) +' [ '+ code +' ] '+ ( ( _req && _req.url ) || '-' ) +'\n'+ escapeLogDetailKeepFrames(_errDetail));
|
|
372
416
|
var _wireDetail = _isLocal ? _errDetail : ( ( _isErrObj && err.message ) ? err.message : String(err) );
|
|
373
417
|
// #B254 — the former HTML arm of this branch was unreachable (its guard
|
|
374
418
|
// read a self-assigned, always-undefined local), so this path has only
|
|
@@ -396,7 +440,8 @@ function ContextHelper(contexts) {
|
|
|
396
440
|
// stale routerObj whose `next` is no longer callable. Surface the error
|
|
397
441
|
// instead of crashing on a dead response / `next`.
|
|
398
442
|
if ( isFatal && /^true$/.test(isFatal) ) {
|
|
399
|
-
|
|
443
|
+
var _fatalDetail = err.stack||err.message||err;
|
|
444
|
+
console.emerg( typeof(_fatalDetail) == 'string' ? escapeLogDetailKeepFrames(_fatalDetail) : _fatalDetail );
|
|
400
445
|
return;
|
|
401
446
|
}
|
|
402
447
|
|
|
@@ -374,7 +374,16 @@ function DataHelper(){
|
|
|
374
374
|
let _key = key[k];
|
|
375
375
|
if (i == k) {
|
|
376
376
|
// Array or Object ?
|
|
377
|
-
if ( typeof(obj[ key[k] ]) == 'undefined' || typeof(obj[ key[k] ]) == 'string' ) {
|
|
377
|
+
// #B792 — was: if ( typeof(obj[ key[k] ]) == 'undefined' || typeof(obj[ key[k] ]) == 'string' ) {
|
|
378
|
+
// A slot an earlier pair set to `null` (a JSON value like `a=[null]`, or a planted
|
|
379
|
+
// array/object element) cannot hold children; descending into it below dereferenced
|
|
380
|
+
// `null` and threw `Cannot read properties of null`. On the GET/HEAD `inheritedData`
|
|
381
|
+
// path that throw had no try/catch and exited the bundle process (the #B591 SIGTERM
|
|
382
|
+
// class — #B591 removed a DIFFERENT null seed and left this one). Treat a null slot
|
|
383
|
+
// like a string one: replace it with a fresh container (last-write-wins) and descend
|
|
384
|
+
// safely. A non-null primitive (number/boolean) still boxes and no-ops as before, so
|
|
385
|
+
// only the crashing null case changes. The validator client twin carries the same guard.
|
|
386
|
+
if ( obj[ key[k] ] === null || typeof(obj[ key[k] ]) == 'undefined' || typeof(obj[ key[k] ]) == 'string' ) {
|
|
378
387
|
if ( Array.isArray(obj) ) {
|
|
379
388
|
// index
|
|
380
389
|
// _key = obj.length;
|
|
@@ -166,6 +166,26 @@ function PrototypesHelper(instance) {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
if ( typeof(Object.count) == 'undefined' ) {
|
|
169
|
+
/**
|
|
170
|
+
* Object.prototype.count — the number of the receiver's own enumerable properties:
|
|
171
|
+
* the keys of an object, the indices of an array. Installed here only when no
|
|
172
|
+
* `count` exists yet: in a bundle process `utils/prototypes.js` has installed its
|
|
173
|
+
* own copy first, so this is the copy the browser bundle carries.
|
|
174
|
+
*
|
|
175
|
+
* Each key is tested with the built-in `Object.prototype.hasOwnProperty`, reached
|
|
176
|
+
* through `.call` (#B837). `this.hasOwnProperty(prop)` was an ordinary property
|
|
177
|
+
* lookup: an own key of that name that is not a function (a form field named
|
|
178
|
+
* `hasOwnProperty`) made the call throw on the first key, as did an object with
|
|
179
|
+
* no prototype (`Object.create(null)`), and the catch returned the count so far, 0.
|
|
180
|
+
*
|
|
181
|
+
* Changes made here must be reflected in:
|
|
182
|
+
* - gina/utils/prototypes.js (the copy a bundle process installs)
|
|
183
|
+
*
|
|
184
|
+
* @returns {number} The number of own enumerable properties.
|
|
185
|
+
* @example
|
|
186
|
+
* ({ a: 1, b: 2 }).count(); // → 2
|
|
187
|
+
* Object.prototype.count.call({ hasOwnProperty: 'x', a: 1 }); // → 2
|
|
188
|
+
*/
|
|
169
189
|
Object.defineProperty( Object.prototype, 'count', {
|
|
170
190
|
writable: true,
|
|
171
191
|
enumerable: false,
|
|
@@ -177,8 +197,10 @@ function PrototypesHelper(instance) {
|
|
|
177
197
|
var self = this;
|
|
178
198
|
if (this instanceof String) self = JSON.parse(this);
|
|
179
199
|
|
|
200
|
+
// #B837 — the built-in own-key test, which no own key of the receiver can shadow
|
|
201
|
+
// was: for (var prop in this) if (this.hasOwnProperty(prop)) ++i;
|
|
180
202
|
for (var prop in this)
|
|
181
|
-
if (
|
|
203
|
+
if (Object.prototype.hasOwnProperty.call(this, prop)) ++i;
|
|
182
204
|
|
|
183
205
|
return i;
|
|
184
206
|
} catch (err) {
|
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module gina/lib/cmd/bundle/inc/start-status
|
|
3
|
+
*
|
|
4
|
+
* The outcome of `gina bundle:start`, carried from the framework daemon to the CLI, and the
|
|
5
|
+
* rules that decide it (#B851, #B854).
|
|
6
|
+
*
|
|
7
|
+
* `bundle:start` is the one command `bin/cli` sends to the daemon over its command socket; the
|
|
8
|
+
* daemon runs `lib/cmd/bundle/start.js` and writes text back, then ends the connection.
|
|
9
|
+
* Nothing carried the outcome: `bin/cli` exited 0 when the connection ended, whatever had
|
|
10
|
+
* happened (measured: a crash, a port another program holds, the 64 s timeout, a refusal,
|
|
11
|
+
* a bundle already running — all 0).
|
|
12
|
+
*
|
|
13
|
+
* The daemon now frames two records on that connection: a header right after it reads the
|
|
14
|
+
* command (`bin/cmd`), and the command's exit code just before it ends the connection
|
|
15
|
+
* (`start.js`'s `end()`, and the online refusal paths). A frame is its payload between two
|
|
16
|
+
* ASCII record separators (`\x1e`), a byte no log line carries. `bin/cli` reads them with
|
|
17
|
+
* `createCliState()`: with the header it waits for the outcome and exits with the trailer's
|
|
18
|
+
* code, or 1 when the connection ended without one; without the header (a daemon started
|
|
19
|
+
* before this change and not restarted) it keeps its old behaviour, exactly.
|
|
20
|
+
*
|
|
21
|
+
* The module is pure: no fs, no framework globals, no process access except through the
|
|
22
|
+
* probes its callers pass; `inc/ps-titles.js` gives the `ps` readings.
|
|
23
|
+
*/
|
|
24
|
+
'use strict';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The ASCII record separator that opens and closes a frame.
|
|
28
|
+
*
|
|
29
|
+
* @constant
|
|
30
|
+
* @type {string}
|
|
31
|
+
*/
|
|
32
|
+
var RS = '\u001e';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The header's payload: the daemon reports the outcome of this command.
|
|
36
|
+
*
|
|
37
|
+
* @constant
|
|
38
|
+
* @type {string}
|
|
39
|
+
*/
|
|
40
|
+
var HEADER_PAYLOAD = 'gina-status:1';
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The trailer's payload prefix; the exit code follows it.
|
|
44
|
+
*
|
|
45
|
+
* @constant
|
|
46
|
+
* @type {string}
|
|
47
|
+
*/
|
|
48
|
+
var EXIT_PREFIX = 'gina-exit:';
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The longest payload read as a frame. An opening separator with no closing one within it
|
|
52
|
+
* is plain text, so a stray `\x1e` can never hold the output back for long.
|
|
53
|
+
*
|
|
54
|
+
* @constant
|
|
55
|
+
* @type {number}
|
|
56
|
+
*/
|
|
57
|
+
var MAX_FRAME = 64;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The line node prints on stderr when the inspector cannot bind its port (`--inspect`,
|
|
61
|
+
* `--inspect-brk`). The bundle then runs without the inspector (measured: it starts and
|
|
62
|
+
* listens), so the line is a warning for the CLI, not an outcome.
|
|
63
|
+
*
|
|
64
|
+
* @constant
|
|
65
|
+
* @type {RegExp}
|
|
66
|
+
*/
|
|
67
|
+
var INSPECTOR_FAILURE_RE = /Starting inspector on \S+ failed: address already in use/;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The bind failure core/server.js reports before it ends the boot: its emerg line
|
|
71
|
+
* (`[ SERVER ] could not listen on port <port>: <code> (…)`) and its stderr line
|
|
72
|
+
* (`[ FRAMEWORK ] abort: could not listen on port <port>: <code> (…)`) both carry it.
|
|
73
|
+
*
|
|
74
|
+
* @constant
|
|
75
|
+
* @type {RegExp}
|
|
76
|
+
*/
|
|
77
|
+
var BIND_FAILURE_RE = /could not listen on port (\S+): ([A-Z][A-Z0-9_]*)/;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Reads an exit code: an integer from 0 to 255; anything else is 1.
|
|
81
|
+
*
|
|
82
|
+
* @param {*} code - The candidate
|
|
83
|
+
* @returns {number} The exit code
|
|
84
|
+
* @example
|
|
85
|
+
* normalizeCode(3); // 3
|
|
86
|
+
* normalizeCode('3'); // 1 — not a number
|
|
87
|
+
* normalizeCode(300); // 1
|
|
88
|
+
*/
|
|
89
|
+
function normalizeCode(code) {
|
|
90
|
+
return ( typeof(code) == 'number' && code === Math.floor(code) && code >= 0 && code <= 255 ) ? code : 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The header frame.
|
|
95
|
+
*
|
|
96
|
+
* @returns {string} `\x1egina-status:1\x1e`
|
|
97
|
+
* @example
|
|
98
|
+
* conn.write(encodeHeader());
|
|
99
|
+
*/
|
|
100
|
+
function encodeHeader() {
|
|
101
|
+
return RS + HEADER_PAYLOAD + RS;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The trailer frame for an exit code.
|
|
106
|
+
*
|
|
107
|
+
* @param {number} code - The exit code (read with `normalizeCode()`)
|
|
108
|
+
* @returns {string} `\x1egina-exit:<code>\x1e`
|
|
109
|
+
* @example
|
|
110
|
+
* encodeExit(0); // '\x1egina-exit:0\x1e'
|
|
111
|
+
*/
|
|
112
|
+
function encodeExit(code) {
|
|
113
|
+
return RS + EXIT_PREFIX + normalizeCode(code) + RS;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Writes the trailer to a client that takes frames: the connection `bin/cmd` marked with
|
|
118
|
+
* `ginaStatusFrames`. Any other client (process.stdout for an offline command) is left alone,
|
|
119
|
+
* and so is one already destroyed. Never throws.
|
|
120
|
+
*
|
|
121
|
+
* @param {object} client - The command's client
|
|
122
|
+
* @param {number} code - The exit code
|
|
123
|
+
* @returns {boolean} `true` when the trailer was written
|
|
124
|
+
* @example
|
|
125
|
+
* writeExit(opt.client, 1);
|
|
126
|
+
* opt.client.emit('end');
|
|
127
|
+
*/
|
|
128
|
+
function writeExit(client, code) {
|
|
129
|
+
if ( !client || client.ginaStatusFrames !== true || client.destroyed ) {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
try {
|
|
133
|
+
client.write(encodeExit(code));
|
|
134
|
+
return true;
|
|
135
|
+
} catch (writeErr) {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Reads the frames out of a stream of chunks. `push()` returns the text with every frame of
|
|
142
|
+
* ours removed; an incomplete frame at the end of a chunk is held until the next one; a
|
|
143
|
+
* payload that is not ours is passed through as text, and its closing separator is read again
|
|
144
|
+
* as the one that may open our next frame, so a stray separator just before a frame of ours
|
|
145
|
+
* does not hide it.
|
|
146
|
+
*
|
|
147
|
+
* @returns {{push: function(*): string, flush: function(): string, hasHeader: function(): boolean, exitCode: function(): ?number}}
|
|
148
|
+
* @example
|
|
149
|
+
* var r = createStatusReader();
|
|
150
|
+
* r.push('Trying to start\x1egina-st'); // 'Trying to start'
|
|
151
|
+
* r.push('atus:1\x1e … started\x1egina-exit:0\x1e'); // ' … started'
|
|
152
|
+
* r.hasHeader(); // true
|
|
153
|
+
* r.exitCode(); // 0
|
|
154
|
+
*/
|
|
155
|
+
function createStatusReader() {
|
|
156
|
+
var pending = '', header = false, exit = null;
|
|
157
|
+
return {
|
|
158
|
+
push: function (chunk) {
|
|
159
|
+
var s = pending + String(chunk);
|
|
160
|
+
var out = '', i = 0;
|
|
161
|
+
pending = '';
|
|
162
|
+
while (i < s.length) {
|
|
163
|
+
var a = s.indexOf(RS, i);
|
|
164
|
+
if (a < 0) {
|
|
165
|
+
out += s.slice(i);
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
out += s.slice(i, a);
|
|
169
|
+
var b = s.indexOf(RS, a + 1);
|
|
170
|
+
if (b < 0 || b - a - 1 > MAX_FRAME) {
|
|
171
|
+
if (b < 0 && s.length - a - 1 <= MAX_FRAME) {
|
|
172
|
+
// possibly a frame split across chunks: hold it
|
|
173
|
+
pending = s.slice(a);
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
// not a frame: the separator is text
|
|
177
|
+
out += RS;
|
|
178
|
+
i = a + 1;
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
var payload = s.slice(a + 1, b);
|
|
182
|
+
if (payload === HEADER_PAYLOAD) {
|
|
183
|
+
header = true;
|
|
184
|
+
} else if (payload.indexOf(EXIT_PREFIX) === 0 && /^\d{1,3}$/.test(payload.slice(EXIT_PREFIX.length))) {
|
|
185
|
+
exit = normalizeCode(parseInt(payload.slice(EXIT_PREFIX.length), 10));
|
|
186
|
+
} else {
|
|
187
|
+
// not ours: the opening separator and the payload are text, and the closing
|
|
188
|
+
// separator is read again, since it may open our next frame. Consumed here, a
|
|
189
|
+
// stray separator up to MAX_FRAME characters before the trailer swallowed the
|
|
190
|
+
// trailer's own opening one and the exit code was lost (the #B851 review, F1).
|
|
191
|
+
// was: out += s.slice(a, b + 1);
|
|
192
|
+
out += s.slice(a, b);
|
|
193
|
+
i = b;
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
i = b + 1;
|
|
197
|
+
}
|
|
198
|
+
return out;
|
|
199
|
+
},
|
|
200
|
+
flush: function () {
|
|
201
|
+
var p = pending;
|
|
202
|
+
pending = '';
|
|
203
|
+
return p;
|
|
204
|
+
},
|
|
205
|
+
hasHeader: function () { return header; },
|
|
206
|
+
exitCode: function () { return exit; }
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The state `bin/cli` keeps for one online command.
|
|
212
|
+
*
|
|
213
|
+
* `onData(chunk)` returns what to print and what to do: with the daemon's header, nothing ends
|
|
214
|
+
* the command early, and the debugger hint is asked for once, when node could not bind the
|
|
215
|
+
* inspector; without it (an older daemon) a chunk carrying `address already in use` asks for
|
|
216
|
+
* the hint and for the connection to end at once, as `bin/cli` always did. `onEnd()` returns
|
|
217
|
+
* the exit code: the trailer's with the header, 1 with the header and no trailer (the
|
|
218
|
+
* connection ended before the daemon reported the outcome), 0 without the header.
|
|
219
|
+
*
|
|
220
|
+
* @returns {{onData: function(*): {print: string, hint: boolean, endNow: boolean}, onEnd: function(): {print: string, code: number, message: ?string}}}
|
|
221
|
+
* @example
|
|
222
|
+
* var state = createCliState();
|
|
223
|
+
* client.on('data', function (d) { var r = state.onData(d); process.stdout.write(r.print); });
|
|
224
|
+
* client.on('end', function () { var r = state.onEnd(); process.exit(r.code); });
|
|
225
|
+
*/
|
|
226
|
+
function createCliState() {
|
|
227
|
+
var reader = createStatusReader(), hinted = false;
|
|
228
|
+
return {
|
|
229
|
+
onData: function (chunk) {
|
|
230
|
+
var text = reader.push(chunk);
|
|
231
|
+
var r = { print: text, hint: false, endNow: false };
|
|
232
|
+
if ( reader.hasHeader() ) {
|
|
233
|
+
if ( !hinted && INSPECTOR_FAILURE_RE.test(text) ) {
|
|
234
|
+
hinted = true;
|
|
235
|
+
r.hint = true;
|
|
236
|
+
}
|
|
237
|
+
} else if ( /address already in use/.test(text) ) {
|
|
238
|
+
r.hint = true;
|
|
239
|
+
r.endNow = true;
|
|
240
|
+
}
|
|
241
|
+
return r;
|
|
242
|
+
},
|
|
243
|
+
onEnd: function () {
|
|
244
|
+
var rest = reader.flush();
|
|
245
|
+
if ( !reader.hasHeader() ) {
|
|
246
|
+
return { print: rest, code: 0, message: null };
|
|
247
|
+
}
|
|
248
|
+
var code = reader.exitCode();
|
|
249
|
+
if ( code === null ) {
|
|
250
|
+
return { print: rest, code: 1, message: 'gina: the framework ended this command before it reported the outcome.' };
|
|
251
|
+
}
|
|
252
|
+
return { print: rest, code: code, message: null };
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* The exit code for a bundle that stopped before it was ready: its own code when it is not 0,
|
|
259
|
+
* 128 + the signal number when a signal stopped it (1 for a signal with no known number), 1
|
|
260
|
+
* when it exited 0 — `bin/gina`'s `exitCodeBeforeReady()` for the framework (#B759).
|
|
261
|
+
*
|
|
262
|
+
* @param {?number} code - The child's exit code; null when a signal ended it
|
|
263
|
+
* @param {?string} signal - The signal; null when it exited
|
|
264
|
+
* @returns {number} The exit code
|
|
265
|
+
* @example
|
|
266
|
+
* exitCodeBeforeReady(3, null); // 3
|
|
267
|
+
* exitCodeBeforeReady(null, 'SIGKILL'); // 137
|
|
268
|
+
* exitCodeBeforeReady(0, null); // 1
|
|
269
|
+
*/
|
|
270
|
+
function exitCodeBeforeReady(code, signal) {
|
|
271
|
+
if ( typeof(code) == 'number' && code !== 0 ) {
|
|
272
|
+
return normalizeCode(code);
|
|
273
|
+
}
|
|
274
|
+
if ( signal ) {
|
|
275
|
+
var signo = require('os').constants.signals[signal];
|
|
276
|
+
return ( typeof(signo) == 'number' ) ? 128 + signo : 1;
|
|
277
|
+
}
|
|
278
|
+
return 1;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Reads the bind failure out of a bundle's output.
|
|
283
|
+
*
|
|
284
|
+
* @param {*} text - A chunk of the bundle's stdout or stderr
|
|
285
|
+
* @returns {?{port: string, code: string}} The port and the error code, or `null`
|
|
286
|
+
* @example
|
|
287
|
+
* parseBindFailure('[ FRAMEWORK ] abort: could not listen on port 3100: EADDRINUSE (listen …)');
|
|
288
|
+
* // { port: '3100', code: 'EADDRINUSE' }
|
|
289
|
+
*/
|
|
290
|
+
function parseBindFailure(text) {
|
|
291
|
+
var m = BIND_FAILURE_RE.exec(String(text));
|
|
292
|
+
return m ? { port: m[1], code: m[2] } : null;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* The line `bundle:start` prints when the bundle could not bind its port: for `EADDRINUSE`,
|
|
297
|
+
* another program holds it (a running gina bundle of this name is found before the spawn), and
|
|
298
|
+
* outside Windows the line names a command that finds the holder — the wording of the
|
|
299
|
+
* framework's own held-port message (#B761).
|
|
300
|
+
*
|
|
301
|
+
* @param {string} name - `<bundle>@<project>`
|
|
302
|
+
* @param {{port: string, code: string}} failure - From `parseBindFailure()`
|
|
303
|
+
* @param {boolean} [isWin32] - True on Windows (no `lsof`)
|
|
304
|
+
* @returns {string} The line, starting with two spaces like the other outcome lines
|
|
305
|
+
* @example
|
|
306
|
+
* bindFailureMessage('api@shop', { port: '3100', code: 'EADDRINUSE' }, false);
|
|
307
|
+
* // ' [ api@shop ] could not start: port 3100 is held by another program, not a running gina bundle api@shop.\n Find the holder: lsof -nP -iTCP:3100 -sTCP:LISTEN'
|
|
308
|
+
*/
|
|
309
|
+
function bindFailureMessage(name, failure, isWin32) {
|
|
310
|
+
if ( failure.code !== 'EADDRINUSE' ) {
|
|
311
|
+
return ' [ '+ name +' ] could not start: it could not listen on port '+ failure.port +' ('+ failure.code +').';
|
|
312
|
+
}
|
|
313
|
+
var msg = ' [ '+ name +' ] could not start: port '+ failure.port +' is held by another program, not a running gina bundle '+ name +'.';
|
|
314
|
+
if ( !isWin32 ) {
|
|
315
|
+
msg += '\n Find the holder: lsof -nP -iTCP:'+ failure.port +' -sTCP:LISTEN';
|
|
316
|
+
}
|
|
317
|
+
return msg;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Escapes a string for a RegExp.
|
|
322
|
+
*
|
|
323
|
+
* @inner
|
|
324
|
+
* @param {string} s - The text
|
|
325
|
+
* @returns {string} The escaped text
|
|
326
|
+
*/
|
|
327
|
+
function escapeRegex(s) {
|
|
328
|
+
return String(s).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Finds the bundle that already runs under this name, from its pid file (#B851, #B854): the
|
|
333
|
+
* pid the file holds is a running process titled `gina: <bundle>@<project>`; on Bun, which
|
|
334
|
+
* shows no title to `ps`, a running process whose command line holds the bundle's entry; where
|
|
335
|
+
* `ps` cannot tell (Windows, busybox), a live pid. A zombie, a dead pid, a pid that another
|
|
336
|
+
* program now has and a file that holds no pid are not a running bundle. The title check is
|
|
337
|
+
* the framework's own rule (#B761): in a fresh pid namespace a stale file can name a live,
|
|
338
|
+
* unrelated process.
|
|
339
|
+
*
|
|
340
|
+
* @param {*} pidContent - The pid file's content; `null` when there is no file
|
|
341
|
+
* @param {string} name - `<bundle>@<project>`
|
|
342
|
+
* @param {?string} entry - The bundle's entry (its `index.js` path), for Bun; may be null
|
|
343
|
+
* @param {{read: function(number): (?object|undefined), alive: function(number): boolean, parsePid: function(*): ?number}} probe
|
|
344
|
+
* `read` is `inc/ps-titles.js` `readPidTitle()`; `alive` sends signal 0; `parsePid` reads the content
|
|
345
|
+
* @returns {?number} The running bundle's pid, or `null`
|
|
346
|
+
* @example
|
|
347
|
+
* findRunningBundle('4242', 'api@shop', '/srv/shop/src/api/index.js', probe); // 4242 while it runs
|
|
348
|
+
*/
|
|
349
|
+
function findRunningBundle(pidContent, name, entry, probe) {
|
|
350
|
+
if ( pidContent === null || typeof(pidContent) == 'undefined' ) {
|
|
351
|
+
return null;
|
|
352
|
+
}
|
|
353
|
+
var pid = probe.parsePid(pidContent);
|
|
354
|
+
if ( pid === null ) {
|
|
355
|
+
return null;
|
|
356
|
+
}
|
|
357
|
+
var seen = probe.read(pid);
|
|
358
|
+
if ( seen === null ) {
|
|
359
|
+
return null;
|
|
360
|
+
}
|
|
361
|
+
if ( typeof(seen) == 'undefined' ) {
|
|
362
|
+
return probe.alive(pid) ? pid : null;
|
|
363
|
+
}
|
|
364
|
+
if ( seen.zombie ) {
|
|
365
|
+
return null;
|
|
366
|
+
}
|
|
367
|
+
var command = String(seen.command || '');
|
|
368
|
+
if ( new RegExp('^gina: '+ escapeRegex(name) +'(\\s|$)').test(command) ) {
|
|
369
|
+
return pid;
|
|
370
|
+
}
|
|
371
|
+
if ( entry && command.indexOf(entry) > -1 ) {
|
|
372
|
+
return pid;
|
|
373
|
+
}
|
|
374
|
+
return null;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Whether `bundle:restart` restarted the bundle (#B851, the check moved from #B850): after a
|
|
379
|
+
* start that exited 0, a bundle runs (`findRunningBundle()` read its pid file) and it is not
|
|
380
|
+
* the process that ran before the stop. A start that reported « already running » after a stop
|
|
381
|
+
* that did not stop the bundle exits 0 with the same pid; a start that read as started while no
|
|
382
|
+
* bundle runs is the older daemon's case (`b850-design.md` § 7).
|
|
383
|
+
*
|
|
384
|
+
* @param {?number} prePid - The running bundle's pid before the stop, or null
|
|
385
|
+
* @param {?number} postPid - The running bundle's pid after the start, or null
|
|
386
|
+
* @returns {?string} `null` when it restarted; otherwise the reason, for
|
|
387
|
+
* `[ <bundle>@<project> ] did not restart: <reason>`
|
|
388
|
+
* @example
|
|
389
|
+
* restartFailure(4242, 4300); // null
|
|
390
|
+
* restartFailure(4242, 4242); // 'PID 4242 still runs after the stop'
|
|
391
|
+
* restartFailure(null, null); // 'no running bundle after the start'
|
|
392
|
+
*/
|
|
393
|
+
function restartFailure(prePid, postPid) {
|
|
394
|
+
if ( postPid === null || typeof(postPid) == 'undefined' ) {
|
|
395
|
+
return 'no running bundle after the start';
|
|
396
|
+
}
|
|
397
|
+
if ( prePid !== null && typeof(prePid) != 'undefined' && postPid === prePid ) {
|
|
398
|
+
return 'PID '+ postPid +' still runs after the stop';
|
|
399
|
+
}
|
|
400
|
+
return null;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
module.exports = {
|
|
404
|
+
restartFailure : restartFailure,
|
|
405
|
+
RS : RS,
|
|
406
|
+
HEADER_PAYLOAD : HEADER_PAYLOAD,
|
|
407
|
+
EXIT_PREFIX : EXIT_PREFIX,
|
|
408
|
+
INSPECTOR_FAILURE_RE : INSPECTOR_FAILURE_RE,
|
|
409
|
+
BIND_FAILURE_RE : BIND_FAILURE_RE,
|
|
410
|
+
normalizeCode : normalizeCode,
|
|
411
|
+
encodeHeader : encodeHeader,
|
|
412
|
+
encodeExit : encodeExit,
|
|
413
|
+
writeExit : writeExit,
|
|
414
|
+
createStatusReader : createStatusReader,
|
|
415
|
+
createCliState : createCliState,
|
|
416
|
+
exitCodeBeforeReady : exitCodeBeforeReady,
|
|
417
|
+
parseBindFailure : parseBindFailure,
|
|
418
|
+
bindFailureMessage : bindFailureMessage,
|
|
419
|
+
findRunningBundle : findRunningBundle
|
|
420
|
+
};
|
|
@@ -5,6 +5,11 @@ const { runMain } = require('module');
|
|
|
5
5
|
var execFile = require('child_process').execFile;
|
|
6
6
|
|
|
7
7
|
var CmdHelper = require('./../helper');
|
|
8
|
+
// #B851 — the restart checks its own outcome (the running bundle's pid before and after), with
|
|
9
|
+
// the rule bundle:start uses; ps-titles reads a pid's title without a shell. Relative paths: the
|
|
10
|
+
// bare `lib/<name>` form is unavailable in CLI scope.
|
|
11
|
+
var startStatus = require('./inc/start-status');
|
|
12
|
+
var psTitles = require('./../framework/inc/ps-titles');
|
|
8
13
|
var console = lib.logger;
|
|
9
14
|
// var Shell = lib.Shell;
|
|
10
15
|
|
|
@@ -71,6 +76,8 @@ function Restart(opt, cmd) {
|
|
|
71
76
|
// start all bundles
|
|
72
77
|
opt.onlineCount = 0;
|
|
73
78
|
opt.notStarted = [];
|
|
79
|
+
// #B853 — set by the first bundle that fails to restart, read by the final end()
|
|
80
|
+
self.anyFailed = false;
|
|
74
81
|
if (!self.name) {
|
|
75
82
|
// bulk mode needs at least one bundle — `self.bundles[0]` is undefined on a zero-bundle project
|
|
76
83
|
if ( !self.bundles || !self.bundles.length ) {
|
|
@@ -209,12 +216,22 @@ function Restart(opt, cmd) {
|
|
|
209
216
|
// end(opt, cmd, isBulkRestart, bundleIndex)
|
|
210
217
|
// }, 250); // 500
|
|
211
218
|
// })
|
|
219
|
+
// #B851 (B2, moved from #B850) — the bundle that runs before the stop, to compare
|
|
220
|
+
// with the one that runs after the start
|
|
221
|
+
var prePid = runningPid(bundle, appPath);
|
|
212
222
|
execFile(self.cliArgv[0], stopArgv, function onStopped(err, stopStdout) {
|
|
213
223
|
if (err) {
|
|
214
224
|
return onFailed(err);
|
|
215
225
|
}
|
|
216
226
|
execFile(self.cliArgv[0], startArgv, function onStarted(err, startStdout) {
|
|
217
227
|
if (err) {
|
|
228
|
+
// #B851 — a failed start now exits non-zero: print what the stop and the
|
|
229
|
+
// start said (the start's own line names the reason; « Command failed »
|
|
230
|
+
// names only the command)
|
|
231
|
+
var failedOut = (stopStdout || '') + (startStdout || '');
|
|
232
|
+
if (failedOut) {
|
|
233
|
+
console.log(failedOut);
|
|
234
|
+
}
|
|
218
235
|
return onFailed(err);
|
|
219
236
|
}
|
|
220
237
|
// retrieve messages from the parent stdout
|
|
@@ -222,6 +239,15 @@ function Restart(opt, cmd) {
|
|
|
222
239
|
if (stdout) {
|
|
223
240
|
console.log(stdout.replace(/\n\rTrying to.*/gm, ''));
|
|
224
241
|
}
|
|
242
|
+
// #B851 (B2) — the restart checks its own outcome: a start that exits 0
|
|
243
|
+
// must leave a running bundle that is not the one that ran before the stop.
|
|
244
|
+
// A stop that did not stop the bundle made the start report « already
|
|
245
|
+
// running » with the old pid, and the restart exited 0 while the old code
|
|
246
|
+
// kept serving (the #B850 shape).
|
|
247
|
+
var restartFailure = startStatus.restartFailure(prePid, runningPid(bundle, appPath));
|
|
248
|
+
if (restartFailure) {
|
|
249
|
+
return onFailed(new Error('[ '+ bundle +'@'+ self.projectName +' ] did not restart: '+ restartFailure));
|
|
250
|
+
}
|
|
225
251
|
setTimeout(() => {
|
|
226
252
|
//opt.client.write(' => bundle [ ' + bundle + '@' + self.projectName + ' ] restarted on port #'+ bundlePort+' :D\n');
|
|
227
253
|
end(opt, cmd, isBulkRestart, bundleIndex)
|
|
@@ -244,13 +270,19 @@ function Restart(opt, cmd) {
|
|
|
244
270
|
* @param {Error} [error] - Truthy when restart failed; causes process.exit(1)
|
|
245
271
|
*/
|
|
246
272
|
var end = function (opt, cmd, isBulkRestart, i, error) {
|
|
273
|
+
// #B853 — a bulk restart exited with the LAST bundle's outcome only: a bundle that failed
|
|
274
|
+
// in the middle of the list was reported, and the command still exited 0
|
|
275
|
+
if ( typeof(error) != 'undefined' ) {
|
|
276
|
+
self.anyFailed = true;
|
|
277
|
+
}
|
|
247
278
|
if (isBulkRestart) {
|
|
248
279
|
++i;
|
|
249
280
|
if ( typeof(self.bundles[i]) != 'undefined' ) {
|
|
250
281
|
restart(opt, cmd, i)
|
|
251
282
|
} else {
|
|
252
283
|
|
|
253
|
-
if ( typeof(error) != 'undefined') {
|
|
284
|
+
// #B853 — was: if ( typeof(error) != 'undefined') {
|
|
285
|
+
if ( self.anyFailed ) {
|
|
254
286
|
return process.exit(1);
|
|
255
287
|
}
|
|
256
288
|
if (!opt.client.destroyed)
|
|
@@ -270,6 +302,44 @@ function Restart(opt, cmd) {
|
|
|
270
302
|
}
|
|
271
303
|
}
|
|
272
304
|
|
|
305
|
+
/**
|
|
306
|
+
* #B851 (B2) — the pid of the bundle that runs, read from its pid file with the rule
|
|
307
|
+
* `bundle:start` uses (`inc/start-status.js` `findRunningBundle()`): a running process
|
|
308
|
+
* titled `gina: <bundle>@<project>` (on Bun, one running the bundle's entry; where `ps`
|
|
309
|
+
* cannot tell, a live pid). `null` when there is no such file or process. Never throws.
|
|
310
|
+
*
|
|
311
|
+
* @inner
|
|
312
|
+
* @private
|
|
313
|
+
* @param {string} bundle - Bundle name
|
|
314
|
+
* @param {?string} appPath - The bundle's entry (`index.js`), which Bun's `ps` shows
|
|
315
|
+
* @returns {?number} The running bundle's pid, or `null`
|
|
316
|
+
*/
|
|
317
|
+
var runningPid = function(bundle, appPath) {
|
|
318
|
+
var content = null;
|
|
319
|
+
try {
|
|
320
|
+
content = fs.readFileSync(_(GINA_RUNDIR +'/'+ bundle +'@'+ self.projectName +'.pid', true)).toString();
|
|
321
|
+
} catch (pidErr) {
|
|
322
|
+
return null;
|
|
323
|
+
}
|
|
324
|
+
try {
|
|
325
|
+
return startStatus.findRunningBundle(content, bundle +'@'+ self.projectName, appPath || null, {
|
|
326
|
+
parsePid : psTitles.parsePid,
|
|
327
|
+
read : psTitles.readPidTitle,
|
|
328
|
+
alive : function(pid) {
|
|
329
|
+
try {
|
|
330
|
+
process.kill(pid, 0);
|
|
331
|
+
return true;
|
|
332
|
+
} catch (killErr) {
|
|
333
|
+
return !!(killErr && killErr.code === 'EPERM');
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
} catch (findErr) {
|
|
338
|
+
console.debug('[bundle:restart] running check skipped: '+ findErr.message);
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
|
|
273
343
|
/**
|
|
274
344
|
* Resolves the bundle entry point path (dev source or compiled release) and
|
|
275
345
|
* verifies it exists and is a directory.
|