gina 0.7.13 → 0.7.14

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.
Files changed (636) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +42 -39
  3. package/ROADMAP.md +2 -0
  4. package/framework/v0.7.14/VERSION +1 -0
  5. package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/index.js +121 -14
  6. package/framework/{v0.7.13 → v0.7.14}/core/connectors/sqlite/index.js +69 -6
  7. package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.js +31 -3
  8. package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-json.js +19 -1
  9. package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-nunjucks.js +19 -1
  10. package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-swig.js +29 -1
  11. package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-v1.js +4 -0
  12. package/framework/{v0.7.13 → v0.7.14}/core/gna.js +67 -57
  13. package/framework/{v0.7.13 → v0.7.14}/core/server.isaac.js +36 -2
  14. package/framework/{v0.7.13 → v0.7.14}/core/server.js +436 -182
  15. package/framework/{v0.7.13 → v0.7.14}/helpers/json/src/main.js +48 -16
  16. package/framework/{v0.7.13 → v0.7.14}/lib/cache/src/main.js +10 -3
  17. package/framework/{v0.7.13 → v0.7.14}/lib/render-cache/src/main.js +487 -25
  18. package/framework/{v0.7.13 → v0.7.14}/lib/sqlite-driver.js +20 -4
  19. package/framework/{v0.7.13 → v0.7.14}/package.json +1 -1
  20. package/gna.js +4 -4
  21. package/llms.txt +12 -12
  22. package/package.json +3 -3
  23. package/framework/v0.7.13/VERSION +0 -1
  24. /package/framework/{v0.7.13 → v0.7.14}/AUTHORS +0 -0
  25. /package/framework/{v0.7.13 → v0.7.14}/LICENSE +0 -0
  26. /package/framework/{v0.7.13 → v0.7.14}/core/asset/html/nolayout.html +0 -0
  27. /package/framework/{v0.7.13 → v0.7.14}/core/asset/html/static.html +0 -0
  28. /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/android-chrome-192x192.png +0 -0
  29. /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/android-chrome-512x512.png +0 -0
  30. /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/apple-touch-icon.png +0 -0
  31. /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/favicon-16x16.png +0 -0
  32. /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/favicon-32x32.png +0 -0
  33. /package/framework/{v0.7.13 → v0.7.14}/core/asset/img/favicon.ico +0 -0
  34. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/README.md +0 -0
  35. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
  36. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
  37. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
  38. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
  39. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
  40. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
  41. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
  42. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
  43. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
  44. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
  45. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
  46. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
  47. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
  48. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
  49. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.js +0 -0
  50. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -0
  51. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
  52. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
  53. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
  54. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
  55. /package/framework/{v0.7.13 → v0.7.14}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
  56. /package/framework/{v0.7.13 → v0.7.14}/core/config.js +0 -0
  57. /package/framework/{v0.7.13 → v0.7.14}/core/config.param-bindings.js +0 -0
  58. /package/framework/{v0.7.13 → v0.7.14}/core/config.requirements-anchor.js +0 -0
  59. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/ai/index.js +0 -0
  60. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/ai/lib/connector.js +0 -0
  61. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/connector.js +0 -0
  62. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/connector.v3.js +0 -0
  63. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/connector.v4.js +0 -0
  64. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/n1ql.js +0 -0
  65. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/session-store.js +0 -0
  66. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
  67. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
  68. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/couchbase/lib/storage-store.js +0 -0
  69. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/duckdb/index.js +0 -0
  70. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/duckdb/lib/connector.js +0 -0
  71. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mongodb/index.js +0 -0
  72. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mongodb/lib/connector.js +0 -0
  73. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mongodb/lib/job-store.js +0 -0
  74. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
  75. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mongodb/lib/session-store.js +0 -0
  76. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mysql/index.js +0 -0
  77. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/mysql/lib/connector.js +0 -0
  78. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/param-redact.js +0 -0
  79. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/postgresql/index.js +0 -0
  80. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/postgresql/lib/connector.js +0 -0
  81. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/index.js +0 -0
  82. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/lib/connector.js +0 -0
  83. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/lib/job-store.js +0 -0
  84. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/lib/kv-store.js +0 -0
  85. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/lib/render-cache-store.js +0 -0
  86. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/redis/lib/session-store.js +0 -0
  87. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/scylladb/index.js +0 -0
  88. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/scylladb/lib/connector.js +0 -0
  89. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/scylladb/lib/session-store.js +0 -0
  90. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/settle-once.js +0 -0
  91. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/sql-parser.js +0 -0
  92. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/sqlite/lib/connector.js +0 -0
  93. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/sqlite/lib/job-store.js +0 -0
  94. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/sqlite/lib/kv-store.js +0 -0
  95. /package/framework/{v0.7.13 → v0.7.14}/core/connectors/sqlite/lib/session-store.js +0 -0
  96. /package/framework/{v0.7.13 → v0.7.14}/core/content.encoding +0 -0
  97. /package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.framework.js +0 -0
  98. /package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-nunjucks-async.js +0 -0
  99. /package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-stream.js +0 -0
  100. /package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-swig-async.js +0 -0
  101. /package/framework/{v0.7.13 → v0.7.14}/core/controller/controller.render-xml.js +0 -0
  102. /package/framework/{v0.7.13 → v0.7.14}/core/controller/index.js +0 -0
  103. /package/framework/{v0.7.13 → v0.7.14}/core/controller/inline-script.js +0 -0
  104. /package/framework/{v0.7.13 → v0.7.14}/core/controller/inspector-window-emit.js +0 -0
  105. /package/framework/{v0.7.13 → v0.7.14}/core/controller/layout-source.js +0 -0
  106. /package/framework/{v0.7.13 → v0.7.14}/core/controller/preload-hints.js +0 -0
  107. /package/framework/{v0.7.13 → v0.7.14}/core/controller/release-banner.js +0 -0
  108. /package/framework/{v0.7.13 → v0.7.14}/core/controller/render-data.js +0 -0
  109. /package/framework/{v0.7.13 → v0.7.14}/core/controller/render-session.js +0 -0
  110. /package/framework/{v0.7.13 → v0.7.14}/core/dev/index.js +0 -0
  111. /package/framework/{v0.7.13 → v0.7.14}/core/dev/lib/class.js +0 -0
  112. /package/framework/{v0.7.13 → v0.7.14}/core/dev/lib/factory.js +0 -0
  113. /package/framework/{v0.7.13 → v0.7.14}/core/dev/lib/tools.js +0 -0
  114. /package/framework/{v0.7.13 → v0.7.14}/core/locales/README.md +0 -0
  115. /package/framework/{v0.7.13 → v0.7.14}/core/locales/currency.json +0 -0
  116. /package/framework/{v0.7.13 → v0.7.14}/core/locales/dist/language/en.json +0 -0
  117. /package/framework/{v0.7.13 → v0.7.14}/core/locales/dist/language/fr.json +0 -0
  118. /package/framework/{v0.7.13 → v0.7.14}/core/locales/dist/region/en.json +0 -0
  119. /package/framework/{v0.7.13 → v0.7.14}/core/locales/dist/region/fr.json +0 -0
  120. /package/framework/{v0.7.13 → v0.7.14}/core/locales/index.js +0 -0
  121. /package/framework/{v0.7.13 → v0.7.14}/core/mime.types +0 -0
  122. /package/framework/{v0.7.13 → v0.7.14}/core/model/entity.js +0 -0
  123. /package/framework/{v0.7.13 → v0.7.14}/core/model/index.js +0 -0
  124. /package/framework/{v0.7.13 → v0.7.14}/core/model/template/entityFactory.js +0 -0
  125. /package/framework/{v0.7.13 → v0.7.14}/core/model/template/index.js +0 -0
  126. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/README.md +0 -0
  127. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/index.js +0 -0
  128. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/csrf/README.md +0 -0
  129. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/csrf/package.json +0 -0
  130. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/csrf/src/main.js +0 -0
  131. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/README.md +0 -0
  132. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coep/README.md +0 -0
  133. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coep/package.json +0 -0
  134. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
  135. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coop/README.md +0 -0
  136. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coop/package.json +0 -0
  137. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
  138. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/corp/README.md +0 -0
  139. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/corp/package.json +0 -0
  140. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
  141. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/csp/README.md +0 -0
  142. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/csp/package.json +0 -0
  143. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
  144. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
  145. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
  146. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
  147. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hsts/README.md +0 -0
  148. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hsts/package.json +0 -0
  149. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
  150. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
  151. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
  152. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
  153. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/package.json +0 -0
  154. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
  155. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
  156. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
  157. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/src/main.js +0 -0
  158. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
  159. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
  160. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
  161. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
  162. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
  163. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
  164. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
  165. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
  166. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
  167. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
  168. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
  169. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
  170. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
  171. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
  172. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
  173. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
  174. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
  175. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
  176. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/session/README.md +0 -0
  177. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/session/package.json +0 -0
  178. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/session/src/main.js +0 -0
  179. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/storage/README.md +0 -0
  180. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/storage/build.json +0 -0
  181. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/storage/package.json +0 -0
  182. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/storage/src/main.js +0 -0
  183. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/validator/README.md +0 -0
  184. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/validator/build.json +0 -0
  185. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/validator/package.json +0 -0
  186. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/validator/src/form-validator.js +0 -0
  187. /package/framework/{v0.7.13 → v0.7.14}/core/plugins/lib/validator/src/main.js +0 -0
  188. /package/framework/{v0.7.13 → v0.7.14}/core/router.js +0 -0
  189. /package/framework/{v0.7.13 → v0.7.14}/core/server.express.js +0 -0
  190. /package/framework/{v0.7.13 → v0.7.14}/core/server.isaac.early-answer.js +0 -0
  191. /package/framework/{v0.7.13 → v0.7.14}/core/server.isaac.rapid-reset.js +0 -0
  192. /package/framework/{v0.7.13 → v0.7.14}/core/server.route-candidates.js +0 -0
  193. /package/framework/{v0.7.13 → v0.7.14}/core/status.codes +0 -0
  194. /package/framework/{v0.7.13 → v0.7.14}/core/template/_gitignore +0 -0
  195. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/app.json +0 -0
  196. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/connectors.json +0 -0
  197. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/routing.json +0 -0
  198. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/settings.json +0 -0
  199. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
  200. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/templates.json +0 -0
  201. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/config/watchers.json +0 -0
  202. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
  203. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
  204. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
  205. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/index.js +0 -0
  206. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle/locales/en.json +0 -0
  207. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
  208. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/css/default.css +0 -0
  209. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/css/home.css +0 -0
  210. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
  211. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
  212. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
  213. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
  214. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
  215. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/readme.md +0 -0
  216. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_public/sw.js +0 -0
  217. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
  218. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
  219. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
  220. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
  221. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
  222. /package/framework/{v0.7.13 → v0.7.14}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
  223. /package/framework/{v0.7.13 → v0.7.14}/core/template/command/gina.bat.tpl +0 -0
  224. /package/framework/{v0.7.13 → v0.7.14}/core/template/command/gina.tpl +0 -0
  225. /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/env.json +0 -0
  226. /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/manifest.json +0 -0
  227. /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/package.json +0 -0
  228. /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/settings.json +0 -0
  229. /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/statics.json +0 -0
  230. /package/framework/{v0.7.13 → v0.7.14}/core/template/conf/templates.json +0 -0
  231. /package/framework/{v0.7.13 → v0.7.14}/core/template/error/client/json/401.json +0 -0
  232. /package/framework/{v0.7.13 → v0.7.14}/core/template/error/client/json/403.json +0 -0
  233. /package/framework/{v0.7.13 → v0.7.14}/core/template/error/client/json/404.json +0 -0
  234. /package/framework/{v0.7.13 → v0.7.14}/core/template/error/server/html/50x.html +0 -0
  235. /package/framework/{v0.7.13 → v0.7.14}/core/template/error/server/json/500.json +0 -0
  236. /package/framework/{v0.7.13 → v0.7.14}/core/template/error/server/json/503.json +0 -0
  237. /package/framework/{v0.7.13 → v0.7.14}/core/template/extensions/logger/config.json +0 -0
  238. /package/framework/{v0.7.13 → v0.7.14}/helpers/console.js +0 -0
  239. /package/framework/{v0.7.13 → v0.7.14}/helpers/context.js +0 -0
  240. /package/framework/{v0.7.13 → v0.7.14}/helpers/data/LICENSE +0 -0
  241. /package/framework/{v0.7.13 → v0.7.14}/helpers/data/README.md +0 -0
  242. /package/framework/{v0.7.13 → v0.7.14}/helpers/data/package.json +0 -0
  243. /package/framework/{v0.7.13 → v0.7.14}/helpers/data/src/main.js +0 -0
  244. /package/framework/{v0.7.13 → v0.7.14}/helpers/dateFormat.js +0 -0
  245. /package/framework/{v0.7.13 → v0.7.14}/helpers/index.js +0 -0
  246. /package/framework/{v0.7.13 → v0.7.14}/helpers/json/LICENSE +0 -0
  247. /package/framework/{v0.7.13 → v0.7.14}/helpers/json/README.md +0 -0
  248. /package/framework/{v0.7.13 → v0.7.14}/helpers/json/package.json +0 -0
  249. /package/framework/{v0.7.13 → v0.7.14}/helpers/path.js +0 -0
  250. /package/framework/{v0.7.13 → v0.7.14}/helpers/plugins/README.md +0 -0
  251. /package/framework/{v0.7.13 → v0.7.14}/helpers/plugins/package.json +0 -0
  252. /package/framework/{v0.7.13 → v0.7.14}/helpers/plugins/src/api-error.js +0 -0
  253. /package/framework/{v0.7.13 → v0.7.14}/helpers/plugins/src/main.js +0 -0
  254. /package/framework/{v0.7.13 → v0.7.14}/helpers/prototypes.js +0 -0
  255. /package/framework/{v0.7.13 → v0.7.14}/helpers/task.js +0 -0
  256. /package/framework/{v0.7.13 → v0.7.14}/helpers/text.js +0 -0
  257. /package/framework/{v0.7.13 → v0.7.14}/lib/admin/package.json +0 -0
  258. /package/framework/{v0.7.13 → v0.7.14}/lib/admin/src/main.js +0 -0
  259. /package/framework/{v0.7.13 → v0.7.14}/lib/archiver/README.md +0 -0
  260. /package/framework/{v0.7.13 → v0.7.14}/lib/archiver/build.json +0 -0
  261. /package/framework/{v0.7.13 → v0.7.14}/lib/archiver/package.json +0 -0
  262. /package/framework/{v0.7.13 → v0.7.14}/lib/archiver/src/dep/jszip.min.js +0 -0
  263. /package/framework/{v0.7.13 → v0.7.14}/lib/archiver/src/main.js +0 -0
  264. /package/framework/{v0.7.13 → v0.7.14}/lib/async/package.json +0 -0
  265. /package/framework/{v0.7.13 → v0.7.14}/lib/async/src/main.js +0 -0
  266. /package/framework/{v0.7.13 → v0.7.14}/lib/audit/package.json +0 -0
  267. /package/framework/{v0.7.13 → v0.7.14}/lib/audit/src/main.js +0 -0
  268. /package/framework/{v0.7.13 → v0.7.14}/lib/audit-store.js +0 -0
  269. /package/framework/{v0.7.13 → v0.7.14}/lib/authn/package.json +0 -0
  270. /package/framework/{v0.7.13 → v0.7.14}/lib/authn/src/lockout.js +0 -0
  271. /package/framework/{v0.7.13 → v0.7.14}/lib/authn/src/main.js +0 -0
  272. /package/framework/{v0.7.13 → v0.7.14}/lib/authn/src/totp.js +0 -0
  273. /package/framework/{v0.7.13 → v0.7.14}/lib/authz-gate/package.json +0 -0
  274. /package/framework/{v0.7.13 → v0.7.14}/lib/authz-gate/src/main.js +0 -0
  275. /package/framework/{v0.7.13 → v0.7.14}/lib/cache/README.md +0 -0
  276. /package/framework/{v0.7.13 → v0.7.14}/lib/cache/build.json +0 -0
  277. /package/framework/{v0.7.13 → v0.7.14}/lib/cache/package.json +0 -0
  278. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/aliases.json +0 -0
  279. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/audit/arguments.json +0 -0
  280. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/audit/help.txt +0 -0
  281. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/audit/verify.js +0 -0
  282. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/add.js +0 -0
  283. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/arguments.json +0 -0
  284. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/build.js +0 -0
  285. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/copy.js +0 -0
  286. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/cp.js +0 -0
  287. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/help.js +0 -0
  288. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/help.txt +0 -0
  289. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/inc/boot-lines.js +0 -0
  290. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
  291. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/inc/name.js +0 -0
  292. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/inc/start-status.js +0 -0
  293. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/list.js +0 -0
  294. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/man.js +0 -0
  295. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/mcp-start.js +0 -0
  296. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/mcp.js +0 -0
  297. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/oas.js +0 -0
  298. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/openapi.js +0 -0
  299. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/remove.js +0 -0
  300. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/rename.js +0 -0
  301. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/restart.js +0 -0
  302. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/rm.js +0 -0
  303. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/start.js +0 -0
  304. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/status.js +0 -0
  305. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/stop.js +0 -0
  306. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/bundle/types.js +0 -0
  307. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/cache/arguments.json +0 -0
  308. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/cache/clear.js +0 -0
  309. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/cache/help.txt +0 -0
  310. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/cache/stats.js +0 -0
  311. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/add.js +0 -0
  312. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/arguments.json +0 -0
  313. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/help.js +0 -0
  314. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/help.txt +0 -0
  315. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/infer.js +0 -0
  316. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/list.js +0 -0
  317. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/migrate.js +0 -0
  318. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/models.js +0 -0
  319. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/remove.js +0 -0
  320. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/rm.js +0 -0
  321. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/connector/test.js +0 -0
  322. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/arguments.json +0 -0
  323. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/help.js +0 -0
  324. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/help.txt +0 -0
  325. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/man.js +0 -0
  326. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/ps.js +0 -0
  327. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/container/stop.js +0 -0
  328. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/add.js +0 -0
  329. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/arguments.json +0 -0
  330. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/help.txt +0 -0
  331. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/inc/args.js +0 -0
  332. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/inc/namespace.js +0 -0
  333. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
  334. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/inc/reference-scan.js +0 -0
  335. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/inc/scaffold.js +0 -0
  336. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/remove.js +0 -0
  337. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/rename.js +0 -0
  338. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/controller/rm.js +0 -0
  339. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/add.js +0 -0
  340. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/get.js +0 -0
  341. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/help.js +0 -0
  342. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/help.txt +0 -0
  343. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/inc/name.js +0 -0
  344. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/link-dev.js +0 -0
  345. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/list.js +0 -0
  346. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/remove.js +0 -0
  347. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/rm.js +0 -0
  348. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/set.js +0 -0
  349. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/unset.js +0 -0
  350. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/env/use.js +0 -0
  351. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/add.js +0 -0
  352. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/arguments.json +0 -0
  353. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/build.js +0 -0
  354. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/dot.js +0 -0
  355. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/get.js +0 -0
  356. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/help.js +0 -0
  357. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/help.txt +0 -0
  358. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/inc/child-failure.js +0 -0
  359. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/inc/listen-error.js +0 -0
  360. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/inc/ps-titles.js +0 -0
  361. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/init.js +0 -0
  362. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/link-node-modules.js +0 -0
  363. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/link.js +0 -0
  364. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/list.js +0 -0
  365. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/man.js +0 -0
  366. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/msg.json +0 -0
  367. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/open.js +0 -0
  368. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/remove.js +0 -0
  369. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/reset.js +0 -0
  370. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/restart.js +0 -0
  371. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/set.js +0 -0
  372. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/start.js +0 -0
  373. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/status.js +0 -0
  374. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/stop.js +0 -0
  375. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/tail.js +0 -0
  376. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/update.js +0 -0
  377. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/framework/version.js +0 -0
  378. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/gina-dev.1.md +0 -0
  379. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/gina-framework.1.md +0 -0
  380. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/gina.1.md +0 -0
  381. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/helper.js +0 -0
  382. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/add.js +0 -0
  383. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/arguments.json +0 -0
  384. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/export.js +0 -0
  385. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/help.js +0 -0
  386. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/help.txt +0 -0
  387. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/import.js +0 -0
  388. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/i18n/scan.js +0 -0
  389. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/_host.js +0 -0
  390. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/arguments.json +0 -0
  391. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/build.js +0 -0
  392. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/help.js +0 -0
  393. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/help.txt +0 -0
  394. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/list.js +0 -0
  395. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/man.js +0 -0
  396. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/rm.js +0 -0
  397. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/image/run.js +0 -0
  398. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/index.js +0 -0
  399. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/inspector/help.js +0 -0
  400. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/inspector/help.txt +0 -0
  401. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/inspector/open.js +0 -0
  402. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/man-render.js +0 -0
  403. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/minion/arguments.json +0 -0
  404. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/minion/help.js +0 -0
  405. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/minion/help.txt +0 -0
  406. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/minion/kill.js +0 -0
  407. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/minion/list.js +0 -0
  408. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/msg.json +0 -0
  409. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/help.js +0 -0
  410. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/help.txt +0 -0
  411. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/inc/scan.js +0 -0
  412. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/list.js +0 -0
  413. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/reset.js +0 -0
  414. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/port/set.js +0 -0
  415. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/add.js +0 -0
  416. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/arguments.json +0 -0
  417. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/backup.js +0 -0
  418. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/build.js +0 -0
  419. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/help.js +0 -0
  420. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/help.txt +0 -0
  421. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/import.js +0 -0
  422. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/inc/name.js +0 -0
  423. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/list.js +0 -0
  424. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/man.js +0 -0
  425. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/move.js +0 -0
  426. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/remove.js +0 -0
  427. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/rename.js +0 -0
  428. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/restart.js +0 -0
  429. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/restore.js +0 -0
  430. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/rm.js +0 -0
  431. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/start.js +0 -0
  432. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/status.js +0 -0
  433. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/project/stop.js +0 -0
  434. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/arguments.json +0 -0
  435. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/help.js +0 -0
  436. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/help.txt +0 -0
  437. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/list.js +0 -0
  438. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/remove.js +0 -0
  439. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/protocol/set.js +0 -0
  440. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/add.js +0 -0
  441. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/help.js +0 -0
  442. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/help.txt +0 -0
  443. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/inc/name.js +0 -0
  444. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/link-local.js +0 -0
  445. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/link-production.js +0 -0
  446. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/list.js +0 -0
  447. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/remove.js +0 -0
  448. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/rm.js +0 -0
  449. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/scope/use.js +0 -0
  450. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/secrets/arguments.json +0 -0
  451. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/secrets/check.js +0 -0
  452. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/secrets/help.js +0 -0
  453. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/secrets/help.txt +0 -0
  454. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/secrets/scan.js +0 -0
  455. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/service/help.js +0 -0
  456. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/service/help.txt +0 -0
  457. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/service/list.js +0 -0
  458. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/service/man.js +0 -0
  459. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/service/start.js +0 -0
  460. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/storage/arguments.json +0 -0
  461. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/storage/gc.js +0 -0
  462. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/storage/help.txt +0 -0
  463. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/storage/stats.js +0 -0
  464. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/storage/verify.js +0 -0
  465. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd/view/add.js +0 -0
  466. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd-status-format/package.json +0 -0
  467. /package/framework/{v0.7.13 → v0.7.14}/lib/cmd-status-format/src/main.js +0 -0
  468. /package/framework/{v0.7.13 → v0.7.14}/lib/collection/README.md +0 -0
  469. /package/framework/{v0.7.13 → v0.7.14}/lib/collection/build.json +0 -0
  470. /package/framework/{v0.7.13 → v0.7.14}/lib/collection/package.json +0 -0
  471. /package/framework/{v0.7.13 → v0.7.14}/lib/collection/src/main.js +0 -0
  472. /package/framework/{v0.7.13 → v0.7.14}/lib/conf-view/package.json +0 -0
  473. /package/framework/{v0.7.13 → v0.7.14}/lib/conf-view/src/main.js +0 -0
  474. /package/framework/{v0.7.13 → v0.7.14}/lib/config.js +0 -0
  475. /package/framework/{v0.7.13 → v0.7.14}/lib/connector-config/package.json +0 -0
  476. /package/framework/{v0.7.13 → v0.7.14}/lib/connector-config/src/main.js +0 -0
  477. /package/framework/{v0.7.13 → v0.7.14}/lib/connector-error/package.json +0 -0
  478. /package/framework/{v0.7.13 → v0.7.14}/lib/connector-error/src/main.js +0 -0
  479. /package/framework/{v0.7.13 → v0.7.14}/lib/connector-registry/package.json +0 -0
  480. /package/framework/{v0.7.13 → v0.7.14}/lib/connector-registry/src/main.js +0 -0
  481. /package/framework/{v0.7.13 → v0.7.14}/lib/cron/README.md +0 -0
  482. /package/framework/{v0.7.13 → v0.7.14}/lib/cron/package.json +0 -0
  483. /package/framework/{v0.7.13 → v0.7.14}/lib/cron/src/main.js +0 -0
  484. /package/framework/{v0.7.13 → v0.7.14}/lib/domain/LICENSE +0 -0
  485. /package/framework/{v0.7.13 → v0.7.14}/lib/domain/README.md +0 -0
  486. /package/framework/{v0.7.13 → v0.7.14}/lib/domain/package.json +0 -0
  487. /package/framework/{v0.7.13 → v0.7.14}/lib/domain/src/main.js +0 -0
  488. /package/framework/{v0.7.13 → v0.7.14}/lib/dto/package.json +0 -0
  489. /package/framework/{v0.7.13 → v0.7.14}/lib/dto/src/main.js +0 -0
  490. /package/framework/{v0.7.13 → v0.7.14}/lib/dto-pipe/package.json +0 -0
  491. /package/framework/{v0.7.13 → v0.7.14}/lib/dto-pipe/src/main.js +0 -0
  492. /package/framework/{v0.7.13 → v0.7.14}/lib/dto-types/package.json +0 -0
  493. /package/framework/{v0.7.13 → v0.7.14}/lib/dto-types/src/main.js +0 -0
  494. /package/framework/{v0.7.13 → v0.7.14}/lib/duration/package.json +0 -0
  495. /package/framework/{v0.7.13 → v0.7.14}/lib/duration/src/main.js +0 -0
  496. /package/framework/{v0.7.13 → v0.7.14}/lib/error-ref/package.json +0 -0
  497. /package/framework/{v0.7.13 → v0.7.14}/lib/error-ref/src/main.js +0 -0
  498. /package/framework/{v0.7.13 → v0.7.14}/lib/generator/index.js +0 -0
  499. /package/framework/{v0.7.13 → v0.7.14}/lib/i18n/package.json +0 -0
  500. /package/framework/{v0.7.13 → v0.7.14}/lib/i18n/src/main.js +0 -0
  501. /package/framework/{v0.7.13 → v0.7.14}/lib/idempotency/package.json +0 -0
  502. /package/framework/{v0.7.13 → v0.7.14}/lib/idempotency/src/main.js +0 -0
  503. /package/framework/{v0.7.13 → v0.7.14}/lib/image-build/package.json +0 -0
  504. /package/framework/{v0.7.13 → v0.7.14}/lib/image-build/src/main.js +0 -0
  505. /package/framework/{v0.7.13 → v0.7.14}/lib/index.js +0 -0
  506. /package/framework/{v0.7.13 → v0.7.14}/lib/inherits/LICENSE +0 -0
  507. /package/framework/{v0.7.13 → v0.7.14}/lib/inherits/README.md +0 -0
  508. /package/framework/{v0.7.13 → v0.7.14}/lib/inherits/package.json +0 -0
  509. /package/framework/{v0.7.13 → v0.7.14}/lib/inherits/src/main.js +0 -0
  510. /package/framework/{v0.7.13 → v0.7.14}/lib/inspector-events/package.json +0 -0
  511. /package/framework/{v0.7.13 → v0.7.14}/lib/inspector-events/src/main.js +0 -0
  512. /package/framework/{v0.7.13 → v0.7.14}/lib/inspector-redact/package.json +0 -0
  513. /package/framework/{v0.7.13 → v0.7.14}/lib/inspector-redact/src/main.js +0 -0
  514. /package/framework/{v0.7.13 → v0.7.14}/lib/instrument/package.json +0 -0
  515. /package/framework/{v0.7.13 → v0.7.14}/lib/instrument/src/main.js +0 -0
  516. /package/framework/{v0.7.13 → v0.7.14}/lib/job/package.json +0 -0
  517. /package/framework/{v0.7.13 → v0.7.14}/lib/job/src/main.js +0 -0
  518. /package/framework/{v0.7.13 → v0.7.14}/lib/job-store.js +0 -0
  519. /package/framework/{v0.7.13 → v0.7.14}/lib/json-config-header/package.json +0 -0
  520. /package/framework/{v0.7.13 → v0.7.14}/lib/json-config-header/src/main.js +0 -0
  521. /package/framework/{v0.7.13 → v0.7.14}/lib/kv/package.json +0 -0
  522. /package/framework/{v0.7.13 → v0.7.14}/lib/kv/src/main.js +0 -0
  523. /package/framework/{v0.7.13 → v0.7.14}/lib/kv-store.js +0 -0
  524. /package/framework/{v0.7.13 → v0.7.14}/lib/lane/package.json +0 -0
  525. /package/framework/{v0.7.13 → v0.7.14}/lib/lane/src/main.js +0 -0
  526. /package/framework/{v0.7.13 → v0.7.14}/lib/loading-state/package.json +0 -0
  527. /package/framework/{v0.7.13 → v0.7.14}/lib/loading-state/src/main.js +0 -0
  528. /package/framework/{v0.7.13 → v0.7.14}/lib/logger/README.md +0 -0
  529. /package/framework/{v0.7.13 → v0.7.14}/lib/logger/package.json +0 -0
  530. /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/containers/default/index.js +0 -0
  531. /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/containers/file/index.js +0 -0
  532. /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/containers/mq/index.js +0 -0
  533. /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/containers/mq/listener.js +0 -0
  534. /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/containers/mq/speaker.js +0 -0
  535. /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/helper.js +0 -0
  536. /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/main.js +0 -0
  537. /package/framework/{v0.7.13 → v0.7.14}/lib/logger/src/redact.js +0 -0
  538. /package/framework/{v0.7.13 → v0.7.14}/lib/maintenance/package.json +0 -0
  539. /package/framework/{v0.7.13 → v0.7.14}/lib/maintenance/src/main.js +0 -0
  540. /package/framework/{v0.7.13 → v0.7.14}/lib/math/index.js +0 -0
  541. /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-dispatch/package.json +0 -0
  542. /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-dispatch/src/main.js +0 -0
  543. /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-http/package.json +0 -0
  544. /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-http/src/main.js +0 -0
  545. /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-server/package.json +0 -0
  546. /package/framework/{v0.7.13 → v0.7.14}/lib/mcp-server/src/main.js +0 -0
  547. /package/framework/{v0.7.13 → v0.7.14}/lib/merge/README.md +0 -0
  548. /package/framework/{v0.7.13 → v0.7.14}/lib/merge/package.json +0 -0
  549. /package/framework/{v0.7.13 → v0.7.14}/lib/merge/src/main.js +0 -0
  550. /package/framework/{v0.7.13 → v0.7.14}/lib/message-validator/package.json +0 -0
  551. /package/framework/{v0.7.13 → v0.7.14}/lib/message-validator/src/main.js +0 -0
  552. /package/framework/{v0.7.13 → v0.7.14}/lib/metrics/package.json +0 -0
  553. /package/framework/{v0.7.13 → v0.7.14}/lib/metrics/src/main.js +0 -0
  554. /package/framework/{v0.7.13 → v0.7.14}/lib/model.js +0 -0
  555. /package/framework/{v0.7.13 → v0.7.14}/lib/money/package.json +0 -0
  556. /package/framework/{v0.7.13 → v0.7.14}/lib/money/src/main.js +0 -0
  557. /package/framework/{v0.7.13 → v0.7.14}/lib/multipart/package.json +0 -0
  558. /package/framework/{v0.7.13 → v0.7.14}/lib/multipart/src/main.js +0 -0
  559. /package/framework/{v0.7.13 → v0.7.14}/lib/net-locality/package.json +0 -0
  560. /package/framework/{v0.7.13 → v0.7.14}/lib/net-locality/src/main.js +0 -0
  561. /package/framework/{v0.7.13 → v0.7.14}/lib/nunjucks-filters/README.md +0 -0
  562. /package/framework/{v0.7.13 → v0.7.14}/lib/nunjucks-filters/package.json +0 -0
  563. /package/framework/{v0.7.13 → v0.7.14}/lib/nunjucks-filters/src/main.js +0 -0
  564. /package/framework/{v0.7.13 → v0.7.14}/lib/nunjucks-resolver/package.json +0 -0
  565. /package/framework/{v0.7.13 → v0.7.14}/lib/nunjucks-resolver/src/main.js +0 -0
  566. /package/framework/{v0.7.13 → v0.7.14}/lib/priority/package.json +0 -0
  567. /package/framework/{v0.7.13 → v0.7.14}/lib/priority/src/main.js +0 -0
  568. /package/framework/{v0.7.13 → v0.7.14}/lib/proc.js +0 -0
  569. /package/framework/{v0.7.13 → v0.7.14}/lib/push/package.json +0 -0
  570. /package/framework/{v0.7.13 → v0.7.14}/lib/push/src/main.js +0 -0
  571. /package/framework/{v0.7.13 → v0.7.14}/lib/rate-limit/package.json +0 -0
  572. /package/framework/{v0.7.13 → v0.7.14}/lib/rate-limit/src/main.js +0 -0
  573. /package/framework/{v0.7.13 → v0.7.14}/lib/release-watch/package.json +0 -0
  574. /package/framework/{v0.7.13 → v0.7.14}/lib/release-watch/src/main.js +0 -0
  575. /package/framework/{v0.7.13 → v0.7.14}/lib/render-cache/package.json +0 -0
  576. /package/framework/{v0.7.13 → v0.7.14}/lib/render-cache-store.js +0 -0
  577. /package/framework/{v0.7.13 → v0.7.14}/lib/routing/README.md +0 -0
  578. /package/framework/{v0.7.13 → v0.7.14}/lib/routing/build.json +0 -0
  579. /package/framework/{v0.7.13 → v0.7.14}/lib/routing/package.json +0 -0
  580. /package/framework/{v0.7.13 → v0.7.14}/lib/routing/src/main.js +0 -0
  581. /package/framework/{v0.7.13 → v0.7.14}/lib/routing-introspect/package.json +0 -0
  582. /package/framework/{v0.7.13 → v0.7.14}/lib/routing-introspect/src/main.js +0 -0
  583. /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/package.json +0 -0
  584. /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/backends/env.js +0 -0
  585. /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/backends/exec.js +0 -0
  586. /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/backends/file.js +0 -0
  587. /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/declaration.js +0 -0
  588. /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/env-file.js +0 -0
  589. /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/main.js +0 -0
  590. /package/framework/{v0.7.13 → v0.7.14}/lib/secrets/src/sources.js +0 -0
  591. /package/framework/{v0.7.13 → v0.7.14}/lib/security-headers-emitter/package.json +0 -0
  592. /package/framework/{v0.7.13 → v0.7.14}/lib/security-headers-emitter/src/main.js +0 -0
  593. /package/framework/{v0.7.13 → v0.7.14}/lib/session-lifetime/package.json +0 -0
  594. /package/framework/{v0.7.13 → v0.7.14}/lib/session-lifetime/src/main.js +0 -0
  595. /package/framework/{v0.7.13 → v0.7.14}/lib/session-store.js +0 -0
  596. /package/framework/{v0.7.13 → v0.7.14}/lib/shell.js +0 -0
  597. /package/framework/{v0.7.13 → v0.7.14}/lib/sri/package.json +0 -0
  598. /package/framework/{v0.7.13 → v0.7.14}/lib/sri/src/main.js +0 -0
  599. /package/framework/{v0.7.13 → v0.7.14}/lib/stall-watchdog/package.json +0 -0
  600. /package/framework/{v0.7.13 → v0.7.14}/lib/stall-watchdog/src/detector.js +0 -0
  601. /package/framework/{v0.7.13 → v0.7.14}/lib/stall-watchdog/src/frames.js +0 -0
  602. /package/framework/{v0.7.13 → v0.7.14}/lib/stall-watchdog/src/main.js +0 -0
  603. /package/framework/{v0.7.13 → v0.7.14}/lib/stall-watchdog/src/worker.js +0 -0
  604. /package/framework/{v0.7.13 → v0.7.14}/lib/state.js +0 -0
  605. /package/framework/{v0.7.13 → v0.7.14}/lib/storage/package.json +0 -0
  606. /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/local-cas.js +0 -0
  607. /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/local-stream.js +0 -0
  608. /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/local.js +0 -0
  609. /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/main.js +0 -0
  610. /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/meta-store.js +0 -0
  611. /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/s3.js +0 -0
  612. /package/framework/{v0.7.13 → v0.7.14}/lib/storage/src/util.js +0 -0
  613. /package/framework/{v0.7.13 → v0.7.14}/lib/storage-store.js +0 -0
  614. /package/framework/{v0.7.13 → v0.7.14}/lib/swig-filters/README.md +0 -0
  615. /package/framework/{v0.7.13 → v0.7.14}/lib/swig-filters/package.json +0 -0
  616. /package/framework/{v0.7.13 → v0.7.14}/lib/swig-filters/src/main.js +0 -0
  617. /package/framework/{v0.7.13 → v0.7.14}/lib/swig-resolver/package.json +0 -0
  618. /package/framework/{v0.7.13 → v0.7.14}/lib/swig-resolver/src/main.js +0 -0
  619. /package/framework/{v0.7.13 → v0.7.14}/lib/template-loaders/package.json +0 -0
  620. /package/framework/{v0.7.13 → v0.7.14}/lib/template-loaders/src/loaders/http.js +0 -0
  621. /package/framework/{v0.7.13 → v0.7.14}/lib/template-loaders/src/loaders/memory.js +0 -0
  622. /package/framework/{v0.7.13 → v0.7.14}/lib/template-loaders/src/main.js +0 -0
  623. /package/framework/{v0.7.13 → v0.7.14}/lib/url/README.md +0 -0
  624. /package/framework/{v0.7.13 → v0.7.14}/lib/url/index.js +0 -0
  625. /package/framework/{v0.7.13 → v0.7.14}/lib/url/routing.json +0 -0
  626. /package/framework/{v0.7.13 → v0.7.14}/lib/uuid/package.json +0 -0
  627. /package/framework/{v0.7.13 → v0.7.14}/lib/uuid/src/main.js +0 -0
  628. /package/framework/{v0.7.13 → v0.7.14}/lib/validator.js +0 -0
  629. /package/framework/{v0.7.13 → v0.7.14}/lib/watcher/package.json +0 -0
  630. /package/framework/{v0.7.13 → v0.7.14}/lib/watcher/src/main.js +0 -0
  631. /package/framework/{v0.7.13 → v0.7.14}/lib/ws-framing/package.json +0 -0
  632. /package/framework/{v0.7.13 → v0.7.14}/lib/ws-framing/src/main.js +0 -0
  633. /package/framework/{v0.7.13 → v0.7.14}/lib/ws-query/package.json +0 -0
  634. /package/framework/{v0.7.13 → v0.7.14}/lib/ws-query/src/main.js +0 -0
  635. /package/framework/{v0.7.13 → v0.7.14}/lib/ws-session/package.json +0 -0
  636. /package/framework/{v0.7.13 → v0.7.14}/lib/ws-session/src/main.js +0 -0
@@ -411,6 +411,62 @@ var buildAllowHeader = function(ruleMethods) {
411
411
  return out.join(', ');
412
412
  };
413
413
 
414
+ /**
415
+ * #B1168 — the request methods Node's HTTP parser accepts, upper case: `http.METHODS`, or, on a
416
+ * runtime whose `http` module does not list them, the HTTP/1 methods llhttp defines (the
417
+ * parser Node builds `http.METHODS` from).
418
+ *
419
+ * @constant
420
+ * @inner
421
+ * @type {string[]}
422
+ */
423
+ var KNOWN_HTTP_METHODS = (function() {
424
+ var listed = require('http').METHODS;
425
+ if ( Array.isArray(listed) && listed.length > 0 ) {
426
+ return listed.slice();
427
+ }
428
+ return [
429
+ 'ACL', 'BIND', 'CHECKOUT', 'CONNECT', 'COPY', 'DELETE', 'GET', 'HEAD', 'LINK', 'LOCK',
430
+ 'M-SEARCH', 'MERGE', 'MKACTIVITY', 'MKCALENDAR', 'MKCOL', 'MOVE', 'NOTIFY', 'OPTIONS',
431
+ 'PATCH', 'POST', 'PROPFIND', 'PROPPATCH', 'PURGE', 'PUT', 'QUERY', 'REBIND', 'REPORT',
432
+ 'SEARCH', 'SOURCE', 'SUBSCRIBE', 'TRACE', 'UNBIND', 'UNLINK', 'UNLOCK', 'UNSUBSCRIBE'
433
+ ];
434
+ })();
435
+
436
+ /**
437
+ * #B1168 — whether a request's method is one Node's HTTP parser accepts. The comparison is
438
+ * upper case, as the routing loop matches methods without regard to case. Over HTTP/1.1 Node
439
+ * refuses any other method with 400 before the request reaches gina; over HTTP/2 a client can
440
+ * send any token as `:method`.
441
+ *
442
+ * @inner
443
+ * @param {*} method - The request's method.
444
+ * @returns {boolean} `true` for a string that `KNOWN_HTTP_METHODS` names.
445
+ * @example
446
+ * isKnownHttpMethod('GET'); // true
447
+ * isKnownHttpMethod('get'); // true
448
+ * isKnownHttpMethod('P.ST'); // false
449
+ * isKnownHttpMethod('*'); // false
450
+ */
451
+ var isKnownHttpMethod = function(method) {
452
+ return typeof(method) == 'string' && KNOWN_HTTP_METHODS.indexOf(method.toUpperCase()) > -1;
453
+ };
454
+
455
+ /**
456
+ * #B1168 — a text as a regular-expression source that matches its characters literally (the
457
+ * escape lib/routing applies to URL values).
458
+ *
459
+ * @inner
460
+ * @param {*} str - The text; converted to a string.
461
+ * @returns {string} The escaped source.
462
+ * @example
463
+ * escapeRegExpSource('P.ST'); // 'P\\.ST'
464
+ * escapeRegExpSource('GET'); // 'GET'
465
+ */
466
+ var escapeRegExpSource = function(str) {
467
+ return String(str).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
468
+ };
469
+
414
470
  /**
415
471
  * #B1071 — closes the HTTP/2 stream of a request whose body is no longer read, once its answer has gone
416
472
  * out.
@@ -3211,6 +3267,100 @@ function Server(options) {
3211
3267
  return raw;
3212
3268
  };
3213
3269
 
3270
+ /**
3271
+ * #B1132 — the culture-negotiation options of a bundle: the cultures its loaded catalogs
3272
+ * offer (constrained by `settings.i18n.cultures`, #B102), its culture-cookie name
3273
+ * (`settings.i18n.cookieName`, #B99) and its default culture (`settings.region.culture`).
3274
+ * ONE derivation, two readers: `_negotiateReqCulture` (the request's own culture, after
3275
+ * routing) and the output cache's request variant (`instance._renderCacheVariant`, before
3276
+ * routing), so a cached page is keyed on the culture it was rendered with whenever the
3277
+ * request's headers decided it. Moved verbatim from `_negotiateReqCulture` (#B84). May
3278
+ * throw on a malformed config: both readers catch it.
3279
+ *
3280
+ * @inner
3281
+ * @private
3282
+ * @param {string} bundle - The bundle whose catalogs and settings decide.
3283
+ * @returns {{ availableCultures: string[], cookieName: (string|null), defaultCulture: (string|null) }}
3284
+ * @example
3285
+ * var options = resolveCultureNegotiation('demo');
3286
+ * // → { availableCultures: ['en', 'fr'], cookieName: 'gina_culture', defaultCulture: 'en_US' }
3287
+ */
3288
+ var resolveCultureNegotiation = function(bundle) {
3289
+ var _i18nBundle = bundle || null;
3290
+ var _i18nAvail = ( _i18nBundle
3291
+ && process.gina._i18nCatalogs
3292
+ && process.gina._i18nCatalogs[_i18nBundle] )
3293
+ ? Object.keys(process.gina._i18nCatalogs[_i18nBundle])
3294
+ : [];
3295
+ // #B102 — `settings.i18n.cultures`, honoured since 0.5.22: a
3296
+ // non-empty array constrains which cultures the USER-SIGNAL
3297
+ // steps (URL prefix / cookie / Accept-Language) may match —
3298
+ // e.g. a staged rollout keeps a shipped-but-unlaunched catalog
3299
+ // out of negotiation. The bundle-default step
3300
+ // (settings.region.culture) is deliberately NOT constrained —
3301
+ // the operator's fallback needs no catalog match. `null`, `[]`
3302
+ // or a non-array keep the historical derive-from-loaded-
3303
+ // catalogs behavior.
3304
+ if ( _i18nAvail.length > 0
3305
+ && _i18nBundle
3306
+ && self.conf[_i18nBundle]
3307
+ && self.conf[_i18nBundle][self.env]
3308
+ && self.conf[_i18nBundle][self.env].content
3309
+ && self.conf[_i18nBundle][self.env].content.settings
3310
+ && self.conf[_i18nBundle][self.env].content.settings.i18n
3311
+ ) {
3312
+ var _i18nCulturesConf = self.conf[_i18nBundle][self.env].content.settings.i18n.cultures;
3313
+ if ( Array.isArray(_i18nCulturesConf) && _i18nCulturesConf.length > 0 ) {
3314
+ _i18nAvail = _i18nAvail.filter(function(c) {
3315
+ return _i18nCulturesConf.indexOf(c) > -1;
3316
+ });
3317
+ }
3318
+ }
3319
+ // #I18N — bundle-level default culture: settings.region.culture
3320
+ // (full underscore culture, e.g. `xx_XX`, resolved at bundle:add).
3321
+ // Ranks below URL/cookie/Accept-Language (which need loaded catalogs
3322
+ // to match) and above the GINA_CULTURE env fallback (negotiateCulture
3323
+ // step 5). Format-guarded so an unresolved `${culture}` placeholder
3324
+ // never leaks through as the culture.
3325
+ var _i18nDefault = null;
3326
+ if ( _i18nBundle
3327
+ && self.conf[_i18nBundle]
3328
+ && self.conf[_i18nBundle][self.env]
3329
+ && self.conf[_i18nBundle][self.env].content
3330
+ && self.conf[_i18nBundle][self.env].content.settings
3331
+ && self.conf[_i18nBundle][self.env].content.settings.region
3332
+ && typeof(self.conf[_i18nBundle][self.env].content.settings.region.culture) == 'string'
3333
+ && /^[a-z]{2,3}([_-][A-Za-z]{2,4})?$/.test(self.conf[_i18nBundle][self.env].content.settings.region.culture)
3334
+ ) {
3335
+ _i18nDefault = self.conf[_i18nBundle][self.env].content.settings.region.culture;
3336
+ }
3337
+ // #B99 — `settings.i18n.cookieName`, honoured since 0.5.16: a
3338
+ // bundle may rename the locale-persistence cookie; an explicit
3339
+ // `null` disables cookie-based negotiation (negotiateCulture
3340
+ // skips its cookie step on a falsy name). Absent, empty or
3341
+ // non-string values keep the historical `gina_culture` default.
3342
+ var _i18nCookieName = 'gina_culture';
3343
+ if ( _i18nBundle
3344
+ && self.conf[_i18nBundle]
3345
+ && self.conf[_i18nBundle][self.env]
3346
+ && self.conf[_i18nBundle][self.env].content
3347
+ && self.conf[_i18nBundle][self.env].content.settings
3348
+ && self.conf[_i18nBundle][self.env].content.settings.i18n
3349
+ ) {
3350
+ var _i18nCookieConf = self.conf[_i18nBundle][self.env].content.settings.i18n.cookieName;
3351
+ if ( _i18nCookieConf === null ) {
3352
+ _i18nCookieName = null;
3353
+ } else if ( typeof(_i18nCookieConf) == 'string' && _i18nCookieConf.length > 0 ) {
3354
+ _i18nCookieName = _i18nCookieConf;
3355
+ }
3356
+ }
3357
+ return {
3358
+ availableCultures : _i18nAvail,
3359
+ cookieName : _i18nCookieName,
3360
+ defaultCulture : _i18nDefault
3361
+ };
3362
+ };
3363
+
3214
3364
  /**
3215
3365
  * Attaches the server engine instance, injects helper references
3216
3366
  * (`throwError`, `getAssets`, `completeHeaders`) onto it, and returns
@@ -3260,6 +3410,46 @@ function Server(options) {
3260
3410
  if ( typeof(instance._cacheName) == 'undefined' ) {
3261
3411
  instance._cacheName = lib.RenderCache.resolveCacheName(self.conf[self.appName][self.env].server.cache);
3262
3412
  }
3413
+ // #B1132 — the output cache's request variant (lib/render-cache variantFor), ONE
3414
+ // function both engines call: isaac before its pre-routing read (core/server.isaac.js),
3415
+ // a slot-less engine (Express) in handle() before the shared read. The culture
3416
+ // options are resolveCultureNegotiation's and the negotiator is the request
3417
+ // negotiation's own; the bundle's scheme is the slot-less host's last fallback.
3418
+ if ( typeof(instance._renderCacheVariant) == 'undefined' ) {
3419
+ instance._renderCacheVariant = function(req, bundle) {
3420
+ var _vBundle = bundle || self.appName, _vOptions = null, _vScheme = null;
3421
+ try { _vOptions = resolveCultureNegotiation(_vBundle); } catch (_vErr) { _vOptions = null; }
3422
+ try { _vScheme = self.conf[_vBundle][self.env].server.scheme; } catch (_vErr) { _vScheme = null; }
3423
+ return lib.RenderCache.variantFor(req, { negotiate: lib.i18n.negotiateCulture, i18n: _vOptions, scheme: _vScheme });
3424
+ };
3425
+ }
3426
+ // #B1104 — THIS request's Access-Control-Allow-Origin for isaac's pre-routing
3427
+ // render-cache hit, which runs no completeHeaders(): the same rule (allowOriginFor),
3428
+ // set under each configured `access-control-allow-origin` name, as completeHeaders()
3429
+ // sets it. The hit never replays a stored value (lib/render-cache RECOMPUTED_HEADERS).
3430
+ // A rule that throws (a malformed origin or host) sets none.
3431
+ if ( typeof(instance._renderCacheAllowOrigin) == 'undefined' ) {
3432
+ instance._renderCacheAllowOrigin = function(req, res) {
3433
+ var _aoHeaders = self.conf[self.appName][self.env].server.response.header;
3434
+ if ( !_aoHeaders || typeof(_aoHeaders) != 'object' || Object.keys(_aoHeaders).length == 0 || res.headersSent ) {
3435
+ return;
3436
+ }
3437
+ var _ao = null;
3438
+ try { _ao = allowOriginFor(req); } catch (_aoErr) { _ao = null; }
3439
+ if ( !_ao ) {
3440
+ return;
3441
+ }
3442
+ for (var _aoName in _aoHeaders) {
3443
+ if ( /access\-control\-allow\-origin/i.test(_aoName) ) {
3444
+ try {
3445
+ res.setHeader(_aoName, _ao);
3446
+ } catch (headerError) {
3447
+ console.error(headerError)
3448
+ }
3449
+ }
3450
+ }
3451
+ };
3452
+ }
3263
3453
 
3264
3454
  // #P48 — the routing table's per-variant tokens (built with the maps in
3265
3455
  // init, before the engine), stamped where the controller reads them to
@@ -3295,7 +3485,10 @@ function Server(options) {
3295
3485
  // dev-mode hot reloads, dies on restart). The resolver is fail-closed
3296
3486
  // on an enabled block (a bad value refuses the boot) and verifies the
3297
3487
  // named kv namespace is DECLARED — the kv boot band installed the
3298
- // namespaces before the first request, upstream of this engine start.
3488
+ // namespaces before the first request, upstream of this engine start
3489
+ // (gna.js, at the top of the 'complete' handler: #B1165 moved it there
3490
+ // from the started band, where it ran too late and this resolve refused
3491
+ // every boot).
3299
3492
  if ( typeof(instance._rateLimit) == 'undefined' ) {
3300
3493
  var _rlContent = self.conf[self.appName][self.env].content;
3301
3494
  instance._rateLimit = lib.rateLimit.resolveConf(self.conf[self.appName][self.env].server, {
@@ -4134,10 +4327,178 @@ function Server(options) {
4134
4327
  // return header
4135
4328
  // }
4136
4329
 
4330
+ /**
4331
+ * The `Access-Control-Allow-Origin` value THIS request gets from the bundle's
4332
+ * `server.response.header` (#B1104): the request's own origin when it is the bundle's
4333
+ * own hostname; else, with a comma-separated list configured, the request's origin when
4334
+ * the list holds it and none when it does not; else the configured value (a
4335
+ * `{bundle@project}` token resolved to that bundle's hostname), or the request's origin
4336
+ * when the configured value is empty. The request's origin is its `Origin` header, else
4337
+ * its scheme and authority.
4338
+ *
4339
+ * The one rule, with two callers: completeHeaders(), and isaac's pre-routing
4340
+ * render-cache hit (`instance._renderCacheAllowOrigin`), which runs no completeHeaders —
4341
+ * so a cached page never answers with the value of the request that filled it. Lifted
4342
+ * verbatim from completeHeaders(), which calls it where that code picked the value: for a
4343
+ * configured `access-control-allow-origin` name, before the headers are sent. It builds no
4344
+ * regular expression from the request's origin or host (#B1166: one did, and a malformed
4345
+ * `Origin` or `Host` threw), and it resolves `{bundle@project}` tokens in a configured value
4346
+ * only, never in the request's own origin (#B1167). A configured value that is not a string
4347
+ * still throws; both callers guard the call and send none.
4348
+ *
4349
+ * @inner
4350
+ * @private
4351
+ * @param {object} request - Incoming request object
4352
+ * @returns {string|null} The value to send, or null to send none
4353
+ *
4354
+ * @example
4355
+ * // server.response.header['access-control-allow-origin'] = 'https://a.example, https://b.example'
4356
+ * allowOriginFor({ headers: { origin: 'https://b.example' } }); // → 'https://b.example'
4357
+ * allowOriginFor({ headers: { origin: 'https://c.example' } }); // → null
4358
+ */
4359
+ var allowOriginFor = function(request) {
4360
+
4361
+ var referer = null
4362
+ , authority = null
4363
+ , scheme = null
4364
+ , re = null
4365
+ , allowedOrigin = null
4366
+ , sameOrigin = false
4367
+ , found = null
4368
+ , origin = null
4369
+ , origins = null
4370
+ , conf = self.conf[self.appName][self.env]
4371
+ ;
4372
+
4373
+ if ( typeof(request.headers.origin) != 'undefined' ) {
4374
+ authority = request.headers.origin;
4375
+ } else if (request.headers.referer) {
4376
+ referer = request.headers.referer.match(/^[https://|http://][a-z0-9-_.:/]+\//);
4377
+ if (Array.isArray(referer) && referer.length > 0) {
4378
+ referer = referer[0].substring(0, referer.length-1);
4379
+ }
4380
+ }
4381
+
4382
+ // authority by default if no Access Control Allow Origin set
4383
+ if (!authority) {
4384
+ if (!referer) {
4385
+ if ( /http\/2/.test(conf.server.protocol) ) {
4386
+ authority = request.headers[':authority'] || request.headers.host;
4387
+ scheme = request.headers[':scheme'] || request.headers['x-forwarded-proto'] || conf.server.scheme;
4388
+ } else {
4389
+ authority = request.headers.host;
4390
+ // #B1166 — the scheme came from a regular expression built from the request's
4391
+ // Host and tested against `referer`, which is always '' or null here (a matched
4392
+ // Referer is cut to '' above, and this branch runs only without one). So it
4393
+ // either fell back to the bundle's scheme or threw: a SyntaxError for a Host
4394
+ // that is not a valid pattern (`a(`), a TypeError when the Host's pattern
4395
+ // matched (`n`, or no Host at all: an HTTP/1.0 request). The fallback was the
4396
+ // only value it ever returned.
4397
+ // was: scheme = ( <a pattern built from the Host> ).test(referer) ? <the referer's scheme> : conf.server.scheme;
4398
+ scheme = conf.server.scheme;
4399
+ }
4400
+ authority = scheme +'://'+ authority;
4401
+ } else {
4402
+ authority = referer;
4403
+ sameOrigin = authority;
4404
+ }
4405
+ }
4406
+
4407
+ if (!sameOrigin && conf.hostname == authority || !sameOrigin && conf.hostname.replace(/\:\d+$/, '') == authority.replace(/\:\d+$/, '') ) {
4408
+ sameOrigin = authority
4409
+ }
4410
+
4411
+ // #B1166 — a dead store (`re` is reassigned below, before any use) built a regular
4412
+ // expression from the request's origin or host, so an origin that is not a valid
4413
+ // pattern (`Origin: http://a(`) threw; on a static file the throw stopped the bundle.
4414
+ // was: re = <a pattern built from authority>;
4415
+ // #B1167 — whether a value is configured: only a configured value names other bundles.
4416
+ var isConfigured = ( typeof(conf.server.response.header['access-control-allow-origin']) != 'undefined' && conf.server.response.header['access-control-allow-origin'] != '' );
4417
+ allowedOrigin = ( isConfigured ) ? conf.server.response.header['access-control-allow-origin'] : authority;
4418
+ // was: allowedOrigin = ( <the same test, inline> ) ? conf.server.response.header['access-control-allow-origin'] : authority;
4419
+ // console.debug('[ server ][access-control-allow-origin] ', allowedOrigin);
4420
+
4421
+ var originHostReplacement = function(name) {
4422
+ // #B1167 — with no configured value, `allowedOrigin` is the request's own origin:
4423
+ // keep it as received. Resolving its tokens answered `Origin: {api@proj}` with that
4424
+ // bundle's configured hostname.
4425
+ if ( !isConfigured ) {
4426
+ return name
4427
+ }
4428
+ var matched = name.match(/{([-_A-z]+?@[-_A-z]+?)}/g);
4429
+ if (!matched || !Array.isArray(matched) || Array.isArray(matched) && matched.length == 0 ) {
4430
+ return name
4431
+ }
4432
+
4433
+ var env = self.conf.env || self.env
4434
+ , scope = self.conf.scope || self.scope
4435
+ ;
4436
+
4437
+ for (let i=0, len=matched.length; i<len; ++i) {
4438
+ let oldHost = matched[i];
4439
+ let newHost = matched[i].replace(/\{|\}|\s+/g, '');
4440
+ newHost = newHost.split(/\@/);
4441
+ let bundle = newHost[0]
4442
+ , project = newHost[1]
4443
+ , arr = null
4444
+ , hostname = null
4445
+ , scheme = null
4446
+ ;
4447
+ if ( /\//.test(newHost[1]) ) {
4448
+ arr = newHost[1].split(/\//);
4449
+ project = arr[0];
4450
+ env = (arr[1]) ? arr[1] : env;
4451
+ }
4452
+ // #B1166 — a name with no bundle configuration behind it is left as written,
4453
+ // as an unknown name was: an `Object.prototype` member (`{constructor@y}`,
4454
+ // `{__proto__@y}`) or another own key of `self.conf` passed the old undefined
4455
+ // test and threw a TypeError on its `.server`.
4456
+ // was: if ( typeof(self.conf[bundle]) == 'undefined' ) {
4457
+ if (
4458
+ !self.conf[bundle]
4459
+ || typeof(self.conf[bundle]) != 'object'
4460
+ || !self.conf[bundle][env]
4461
+ || typeof(self.conf[bundle][env]) != 'object'
4462
+ || !self.conf[bundle][env].server
4463
+ ) {
4464
+ continue;
4465
+ }
4466
+ scheme = self.conf[bundle][env].server.scheme;
4467
+ hostname = ( !self.conf[bundle][env].hostname ) ? self.conf[bundle][env].server.scheme + '://' + self.conf[bundle][env].host + ':' + self.conf[bundle][env].server.port : self.conf[bundle][env].hostname;
4468
+ name = name.replace(oldHost, hostname);
4469
+ }
4470
+ matched = null;
4471
+ env = null;
4472
+
4473
+ return name;
4474
+ }
4475
+
4476
+ // handles multiple origins
4477
+ re = new RegExp('\{\s*(.*)\s*\}', 'g');
4478
+ if (sameOrigin) {
4479
+ origin = sameOrigin
4480
+ } else {
4481
+ if ( /\,/.test(allowedOrigin) ) {
4482
+ origins = allowedOrigin.replace(/\s+/g, '').replace(re, originHostReplacement).split(/\,/g);
4483
+
4484
+ found = ( origins.indexOf(authority) > -1 ) ? origins[origins.indexOf(authority)] : false;
4485
+ if ( found != false ) {
4486
+ origin = found
4487
+ }
4488
+ } else {
4489
+ origin = allowedOrigin.replace(/\s+/g, '').replace(re, originHostReplacement);
4490
+ }
4491
+ }
4492
+
4493
+ return origin || sameOrigin || null;
4494
+ }
4495
+
4137
4496
  /**
4138
4497
  * Merges configured response headers (CORS, cache-control, etc.) into the
4139
4498
  * response. Resolves `Access-Control-Allow-Origin` against the bundle's
4140
- * allowed origins list and normalises HTTP/1.1 vs HTTP/2 header names.
4499
+ * allowed origins list (allowOriginFor, the rule isaac's pre-routing
4500
+ * render-cache hit applies too, #B1104; a rule that throws sends none, #B1166)
4501
+ * and normalises HTTP/1.1 vs HTTP/2 header names.
4141
4502
  * When `server.http3Advertisement` is enabled, also emits the opt-in
4142
4503
  * `Alt-Svc: h3=":443"; ma=86400` HTTP/3-advertisement header (#H11).
4143
4504
  *
@@ -4151,13 +4512,8 @@ function Server(options) {
4151
4512
  var completeHeaders = function(responseHeaders, request, response) {
4152
4513
 
4153
4514
  var resHeaders = null
4154
- , referer = null
4155
- , authority = null
4156
4515
  , method = null
4157
- , scheme = null
4158
- , re = null
4159
- , allowedOrigin = null
4160
- , sameOrigin = false
4516
+ , allowOrigin = null
4161
4517
  , conf = self.conf[self.appName][self.env]
4162
4518
  ;
4163
4519
 
@@ -4205,116 +4561,39 @@ function Server(options) {
4205
4561
  // Should not override main server.response.header.methods
4206
4562
  resHeaders['access-control-allow-methods'] = request.routing.method.replace(/(\,\s+|\,)/g, ', ').toUpperCase();
4207
4563
 
4208
- if ( typeof(request.headers.origin) != 'undefined' ) {
4209
- authority = request.headers.origin;
4210
- } else if (request.headers.referer) {
4211
- referer = request.headers.referer.match(/^[https://|http://][a-z0-9-_.:/]+\//);
4212
- if (Array.isArray(referer) && referer.length > 0) {
4213
- referer = referer[0].substring(0, referer.length-1);
4214
- }
4215
- }
4216
-
4217
4564
  // access-control-allow-origin settings
4218
4565
  if ( resHeaders.count() > 0 ) {
4219
4566
 
4220
- // authority by default if no Access Control Allow Origin set
4221
- if (!authority) {
4222
- if (!referer) {
4223
- if ( /http\/2/.test(conf.server.protocol) ) {
4224
- authority = request.headers[':authority'] || request.headers.host;
4225
- scheme = request.headers[':scheme'] || request.headers['x-forwarded-proto'] || conf.server.scheme;
4226
- } else {
4227
- authority = request.headers.host;
4228
- scheme = ( new RegExp(authority).test(referer) ) ? referer.match(/^http(.*)\:\/\//)[0].replace(/\:\/\//, '') : conf.server.scheme;
4229
- }
4230
- authority = scheme +'://'+ authority;
4231
- } else {
4232
- authority = referer;
4233
- sameOrigin = authority;
4234
- }
4235
- }
4236
-
4237
- if (!sameOrigin && conf.hostname == authority || !sameOrigin && conf.hostname.replace(/\:\d+$/, '') == authority.replace(/\:\d+$/, '') ) {
4238
- sameOrigin = authority
4239
- }
4240
-
4241
- re = new RegExp(authority);
4242
- allowedOrigin = ( typeof(conf.server.response.header['access-control-allow-origin']) != 'undefined' && conf.server.response.header['access-control-allow-origin'] != '' ) ? conf.server.response.header['access-control-allow-origin'] : authority;
4243
- // console.debug('[ server ][access-control-allow-origin] ', allowedOrigin);
4244
- var found = null, origin = null, origins = null; // to handles multiple origins
4245
-
4246
- var originHostReplacement = function(name) {
4247
- var matched = name.match(/{([-_A-z]+?@[-_A-z]+?)}/g);
4248
- if (!matched || !Array.isArray(matched) || Array.isArray(matched) && matched.length == 0 ) {
4249
- return name
4250
- }
4251
-
4252
- var env = self.conf.env || self.env
4253
- , scope = self.conf.scope || self.scope
4254
- ;
4255
-
4256
- for (let i=0, len=matched.length; i<len; ++i) {
4257
- let oldHost = matched[i];
4258
- let newHost = matched[i].replace(/\{|\}|\s+/g, '');
4259
- newHost = newHost.split(/\@/);
4260
- let bundle = newHost[0]
4261
- , project = newHost[1]
4262
- , arr = null
4263
- , hostname = null
4264
- , scheme = null
4265
- ;
4266
- if ( /\//.test(newHost[1]) ) {
4267
- arr = newHost[1].split(/\//);
4268
- project = arr[0];
4269
- env = (arr[1]) ? arr[1] : env;
4270
- }
4271
- if ( typeof(self.conf[bundle]) == 'undefined' ) {
4272
- continue;
4273
- }
4274
- scheme = self.conf[bundle][env].server.scheme;
4275
- hostname = ( !self.conf[bundle][env].hostname ) ? self.conf[bundle][env].server.scheme + '://' + self.conf[bundle][env].host + ':' + self.conf[bundle][env].server.port : self.conf[bundle][env].hostname;
4276
- name = name.replace(oldHost, hostname);
4277
- }
4278
- matched = null;
4279
- env = null;
4280
-
4281
- return name;
4282
- }
4283
-
4284
- var headerValue = null, re = new RegExp('\{\s*(.*)\s*\}', 'g');
4567
+ var headerValue = null;
4285
4568
  for (let h in resHeaders) {
4286
4569
  if (
4287
4570
  !response.headersSent
4288
4571
  ) {
4289
4572
  // handles multiple origins
4290
4573
  if ( /access\-control\-allow\-origin/i.test(h) ) { // re.test(resHeaders[h]
4291
- if (sameOrigin) {
4292
- origin = sameOrigin
4293
- } else {
4294
- if ( /\,/.test(allowedOrigin) ) {
4295
- origins = allowedOrigin.replace(/\s+/g, '').replace(re, originHostReplacement).split(/\,/g);
4296
-
4297
- found = ( origins.indexOf(authority) > -1 ) ? origins[origins.indexOf(authority)] : false;
4298
- if ( found != false ) {
4299
- origin = found
4300
- }
4301
- } else {
4302
- origin = allowedOrigin.replace(/\s+/g, '').replace(re, originHostReplacement);
4303
- }
4574
+ // #B1104 — THIS request's value, by the one rule allowOriginFor() holds
4575
+ // (isaac's pre-routing render-cache hit, which runs no completeHeaders(),
4576
+ // applies it too: instance._renderCacheAllowOrigin). Picked here, for a
4577
+ // configured access-control-allow-origin name and before the headers are
4578
+ // sent, where the lifted code picked it: a bundle that configures no such
4579
+ // name never runs the rule.
4580
+ // #B1166 — a rule that throws (a configured value that is not a string)
4581
+ // sends no Access-Control-Allow-Origin, as isaac's render-cache stamp does:
4582
+ // thrown here, on a static file, it reached uncaughtException and stopped
4583
+ // the bundle.
4584
+ try {
4585
+ allowOrigin = allowOriginFor(request);
4586
+ } catch (allowOriginErr) {
4587
+ console.error(allowOriginErr);
4588
+ allowOrigin = null;
4304
4589
  }
4305
-
4306
- if (origin || sameOrigin) {
4307
- if (!origin && sameOrigin) {
4308
- origin = sameOrigin;
4309
- }
4310
-
4590
+ if (allowOrigin) {
4311
4591
  try {
4312
- response.setHeader(h, origin);
4592
+ response.setHeader(h, allowOrigin);
4313
4593
  } catch (headerError) {
4314
4594
  console.error(headerError)
4315
4595
  }
4316
4596
  }
4317
- sameOrigin = false;
4318
4597
  } else {
4319
4598
  // #B13 — preserve preflight echo of access-control-allow-headers.
4320
4599
  // checkPreflightRequest() echoes back the browser's
@@ -8642,6 +8921,9 @@ function Server(options) {
8642
8921
  // this hit). The store drops them; an entry stored by an older release (a redis
8643
8922
  // L2 value) may still carry them. Keep in sync with the isaac pre-routing read.
8644
8923
  if ( lib.RenderCache.isPerRequestHeader(h) ) { continue; }
8924
+ // #B1104 — nor the filling request's Access-Control-Allow-Origin: this response
8925
+ // keeps the value completeHeaders() set for THIS request in handle(), before this hit.
8926
+ if ( lib.RenderCache.isRecomputedHeader(h) ) { continue; }
8645
8927
  res.setHeader(h, _hitHeaders[h]);
8646
8928
  }
8647
8929
  }
@@ -8655,13 +8937,18 @@ function Server(options) {
8655
8937
  res.setHeader('Cache-Status', _cs);
8656
8938
  if ( _remaining !== null ) {
8657
8939
  res.setHeader('Cache-Control', _vis + ', max-age=' + _remaining);
8940
+ // #B1164 — the page varies with its request variant: Vary lists those request
8941
+ // headers (an entry stored by an older release lacks them). Keep in sync with the
8942
+ // isaac pre-routing read.
8943
+ lib.RenderCache.appendVariantVary(res);
8658
8944
  }
8659
8945
  if ( _isH2 ) {
8660
8946
  // Fold res.getHeaders() (the cache metadata + page headers set just above)
8661
8947
  // into the stream.respond() headers — they don't travel on a raw Http2Stream.
8662
- // NOTE completeHeaders() runs during dispatch, which this hit short-circuits,
8663
- // so the ORIGINAL render's completeHeaders output is already baked into
8664
- // hit.responseHeaders (captured at write time) — it is not re-derived here.
8948
+ // NOTE completeHeaders() already ran for THIS request in handle(), before this
8949
+ // hit: the stored headers (the original render's completeHeaders output among
8950
+ // them, captured at write time) replay over it, except this request's own
8951
+ // Access-Control-Allow-Origin, which the loop above keeps (#B1104).
8665
8952
  if ( !res.stream.headersSent && !res.stream.destroyed ) {
8666
8953
  var _sh = { ':status': 200 };
8667
8954
  var _pending = res.getHeaders ? res.getHeaders() : {};
@@ -8695,6 +8982,18 @@ function Server(options) {
8695
8982
  // repopulates L1 so the next request hits L1. Returns true when it SERVED (or abandoned
8696
8983
  // a dead response) → the caller returns; false → fall through to the normal render.
8697
8984
  var tryServeRenderCacheHit = async function(req, res, bundle) {
8985
+ // #B1132 — first, before any gate: the request variant the output cache keys on.
8986
+ // isaac stamped it before its pre-routing read; a slot-less engine (Express) computes
8987
+ // it here, once per matched request, for this read AND for the render writers that
8988
+ // follow, which read the stamp and never recompute it. A failure leaves `null`:
8989
+ // nothing is read or stored for this request.
8990
+ if ( typeof(req._ginaCacheVariant) == 'undefined' && String(self.instance._cacheIsEnabled).toLowerCase() === 'true' ) {
8991
+ try {
8992
+ req._ginaCacheVariant = self.instance._renderCacheVariant(req, bundle);
8993
+ } catch (_cacheVariantErr) {
8994
+ req._ginaCacheVariant = null;
8995
+ }
8996
+ }
8698
8997
  var _method = ( /http\/2/.test(self.conf[self.appName][self.env].server.protocol) ) ? req.headers[':method'] : req.method;
8699
8998
  if ( !/^get$/i.test(_method || req.method || '') ) { return false; }
8700
8999
  if ( !req.routing || !req.routing.cache ) { return false; }
@@ -8727,6 +9026,9 @@ function Server(options) {
8727
9026
  _rcType = _serverCache && _serverCache.type;
8728
9027
  }
8729
9028
  if ( !/^redis$/i.test(_rcType || '') ) { return false; }
9029
+ // #B1132 — the entry stored for THIS request's variant, stamped by the engine before this read.
9030
+ var _variant = req._ginaCacheVariant || null;
9031
+ if ( !_variant ) { return false; }
8730
9032
 
8731
9033
  // F1 — warm() MUST re-register the route's invalidateOnEvents (a warmed entry
8732
9034
  // skipped the delegate's setEvents; without them an event can neither evict L1 nor
@@ -8740,7 +9042,7 @@ function Server(options) {
8740
9042
  var _hit = null, _hitSource = null, i, _k;
8741
9043
  // L1 first (sync, no redis): a warmed entry from a prior request, or the express L1.
8742
9044
  for (i = 0; i < _kinds.length; i++) {
8743
- _k = renderCache.buildKey(_kinds[i], bundle, _url);
9045
+ _k = renderCache.buildKey(_kinds[i], bundle, _url, _variant);
8744
9046
  if ( renderCache.has(_k) ) {
8745
9047
  _hit = renderCache.get(_k);
8746
9048
  if ( _hit ) { _hitSource = 'memory'; break; }
@@ -8750,7 +9052,7 @@ function Server(options) {
8750
9052
  // L2 warm on an L1 miss (reads redis, repopulates L1; fail-open → undefined).
8751
9053
  if ( !_hit ) {
8752
9054
  for (i = 0; i < _kinds.length; i++) {
8753
- _k = renderCache.buildKey(_kinds[i], bundle, _url);
9055
+ _k = renderCache.buildKey(_kinds[i], bundle, _url, _variant);
8754
9056
  _hit = await renderCache.warm(_k, _events);
8755
9057
  if ( _hit ) { _hitSource = 'redis'; break; }
8756
9058
  _hit = null;
@@ -8885,6 +9187,17 @@ function Server(options) {
8885
9187
  // headers object, so headers written here reach the client on every JSON response.
8886
9188
  completeHeaders(null, req, res);
8887
9189
 
9190
+ // #B1168 — a method Node's HTTP parser does not accept is answered 501 Not Implemented
9191
+ // (RFC 9110 §15.6.2) before anything below reads it. Over HTTP/1.1 Node refuses such a
9192
+ // method with 400 before the request reaches gina, but an HTTP/2 client can send any token
9193
+ // as `:method`. The method used to reach the regexp below unescaped: `*` or `+` threw there,
9194
+ // so the request was never answered; `.` matched every rule's method, so an action ran
9195
+ // under a method its rule does not list, without its body; and a long run of `.*` made the
9196
+ // match backtrack. The routing loop also keys the request's bags by the method's name.
9197
+ if ( !isKnownHttpMethod(req.method || req.headers[':method']) ) {
9198
+ return throwError(res, 501, 'Not Implemented.\n The request method is not supported.', next);
9199
+ }
9200
+
8888
9201
  // #B645 — the method is the REQUEST's own. It was read from the `:method` pseudo-header
8889
9202
  // whenever the BUNDLE was configured for http/2.0, but an HTTP/1.1 request served through
8890
9203
  // the allowHTTP1 fallback carries none: `method` was `undefined`, the regexp below matched
@@ -8895,7 +9208,10 @@ function Server(options) {
8895
9208
  , _routing = {}
8896
9209
  // was: , method = ( /http\/2/.test(self.conf[self.appName][self.env].server.protocol) ) ? req.headers[':method'] : req.method
8897
9210
  , method = req.method || req.headers[':method']
8898
- , reMethod = new RegExp(method, 'i')
9211
+ // #B1168 — escaped, so the method is matched as text. The guard above admits only the
9212
+ // methods Node lists (letters and `-`), whose matching does not change.
9213
+ // was: , reMethod = new RegExp(method, 'i')
9214
+ , reMethod = new RegExp(escapeRegExpSource(method), 'i')
8899
9215
  ;
8900
9216
  try {
8901
9217
 
@@ -8932,79 +9248,9 @@ function Server(options) {
8932
9248
  // shared route entry would cross-request-bleed).
8933
9249
  var _negotiateReqCulture = function(req, routeBundle) {
8934
9250
  try {
8935
- var _i18nBundle = routeBundle || null;
8936
- var _i18nAvail = ( _i18nBundle
8937
- && process.gina._i18nCatalogs
8938
- && process.gina._i18nCatalogs[_i18nBundle] )
8939
- ? Object.keys(process.gina._i18nCatalogs[_i18nBundle])
8940
- : [];
8941
- // #B102 — `settings.i18n.cultures`, honoured since 0.5.22: a
8942
- // non-empty array constrains which cultures the USER-SIGNAL
8943
- // steps (URL prefix / cookie / Accept-Language) may match —
8944
- // e.g. a staged rollout keeps a shipped-but-unlaunched catalog
8945
- // out of negotiation. The bundle-default step
8946
- // (settings.region.culture) is deliberately NOT constrained —
8947
- // the operator's fallback needs no catalog match. `null`, `[]`
8948
- // or a non-array keep the historical derive-from-loaded-
8949
- // catalogs behavior.
8950
- if ( _i18nAvail.length > 0
8951
- && _i18nBundle
8952
- && self.conf[_i18nBundle]
8953
- && self.conf[_i18nBundle][self.env]
8954
- && self.conf[_i18nBundle][self.env].content
8955
- && self.conf[_i18nBundle][self.env].content.settings
8956
- && self.conf[_i18nBundle][self.env].content.settings.i18n
8957
- ) {
8958
- var _i18nCulturesConf = self.conf[_i18nBundle][self.env].content.settings.i18n.cultures;
8959
- if ( Array.isArray(_i18nCulturesConf) && _i18nCulturesConf.length > 0 ) {
8960
- _i18nAvail = _i18nAvail.filter(function(c) {
8961
- return _i18nCulturesConf.indexOf(c) > -1;
8962
- });
8963
- }
8964
- }
8965
- // #I18N — bundle-level default culture: settings.region.culture
8966
- // (full underscore culture, e.g. `xx_XX`, resolved at bundle:add).
8967
- // Ranks below URL/cookie/Accept-Language (which need loaded catalogs
8968
- // to match) and above the GINA_CULTURE env fallback (negotiateCulture
8969
- // step 5). Format-guarded so an unresolved `${culture}` placeholder
8970
- // never leaks through as the culture.
8971
- var _i18nDefault = null;
8972
- if ( _i18nBundle
8973
- && self.conf[_i18nBundle]
8974
- && self.conf[_i18nBundle][self.env]
8975
- && self.conf[_i18nBundle][self.env].content
8976
- && self.conf[_i18nBundle][self.env].content.settings
8977
- && self.conf[_i18nBundle][self.env].content.settings.region
8978
- && typeof(self.conf[_i18nBundle][self.env].content.settings.region.culture) == 'string'
8979
- && /^[a-z]{2,3}([_-][A-Za-z]{2,4})?$/.test(self.conf[_i18nBundle][self.env].content.settings.region.culture)
8980
- ) {
8981
- _i18nDefault = self.conf[_i18nBundle][self.env].content.settings.region.culture;
8982
- }
8983
- // #B99 — `settings.i18n.cookieName`, honoured since 0.5.16: a
8984
- // bundle may rename the locale-persistence cookie; an explicit
8985
- // `null` disables cookie-based negotiation (negotiateCulture
8986
- // skips its cookie step on a falsy name). Absent, empty or
8987
- // non-string values keep the historical `gina_culture` default.
8988
- var _i18nCookieName = 'gina_culture';
8989
- if ( _i18nBundle
8990
- && self.conf[_i18nBundle]
8991
- && self.conf[_i18nBundle][self.env]
8992
- && self.conf[_i18nBundle][self.env].content
8993
- && self.conf[_i18nBundle][self.env].content.settings
8994
- && self.conf[_i18nBundle][self.env].content.settings.i18n
8995
- ) {
8996
- var _i18nCookieConf = self.conf[_i18nBundle][self.env].content.settings.i18n.cookieName;
8997
- if ( _i18nCookieConf === null ) {
8998
- _i18nCookieName = null;
8999
- } else if ( typeof(_i18nCookieConf) == 'string' && _i18nCookieConf.length > 0 ) {
9000
- _i18nCookieName = _i18nCookieConf;
9001
- }
9002
- }
9003
- req.culture = lib.i18n.negotiateCulture(req, {
9004
- availableCultures : _i18nAvail,
9005
- cookieName : _i18nCookieName,
9006
- defaultCulture : _i18nDefault
9007
- });
9251
+ // #B1132 — the options come from resolveCultureNegotiation, which the output
9252
+ // cache's request variant reads too (instance._renderCacheVariant).
9253
+ req.culture = lib.i18n.negotiateCulture(req, resolveCultureNegotiation(routeBundle));
9008
9254
  } catch (_i18nErr) {
9009
9255
  req.culture = (getEnvVar('GINA_CULTURE') || 'en').replace(/-/g, '_');
9010
9256
  }
@@ -9480,6 +9726,14 @@ function Server(options) {
9480
9726
  }
9481
9727
 
9482
9728
  if (matched) {
9729
+ // #B1171 — the routing method is the method the rule serves the request under, in upper
9730
+ // case, whichever path matched: a warm route-cache hit builds req.routing from the request,
9731
+ // with its method lower-cased (lib/routing getCached), the cold scan from the rule. The
9732
+ // routing guide documents `method : "GET"`, and setRequestMethod writes it upper-cased.
9733
+ if ( req.routing && typeof(req.routing.method) == 'string' ) {
9734
+ req.routing.method = req.routing.method.toUpperCase();
9735
+ }
9736
+
9483
9737
  // #B675 — a HEAD served by a GET rule runs the GET action in full (RFC 9110 §9.3.2),
9484
9738
  // but processRequestData keeps a HEAD's params in `req.head` and clears `req.get`, so a
9485
9739
  // GET action reading `req.get.<param>` threw on the undefined bag and answered 500.