gina 0.7.4 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (643) hide show
  1. package/CHANGELOG.md +79 -8
  2. package/CONTRIBUTING.md +1 -1
  3. package/INSTALL.md +3 -42
  4. package/README.md +56 -50
  5. package/ROADMAP.md +18 -4
  6. package/bin/cli +13 -6
  7. package/bin/gina +8 -0
  8. package/bin/gina-container +92 -11
  9. package/bin/gina-init +49 -4
  10. package/framework/v0.7.5/VERSION +1 -0
  11. package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.js +1062 -139
  12. package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js +744 -0
  13. package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
  14. package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
  15. package/framework/{v0.7.4 → v0.7.5}/core/config.js +27 -2
  16. package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/index.js +36 -2
  17. package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/connector.v3.js +63 -13
  18. package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/connector.v4.js +56 -11
  19. package/framework/{v0.7.4 → v0.7.5}/core/connectors/duckdb/index.js +10 -5
  20. package/framework/{v0.7.4 → v0.7.5}/core/connectors/duckdb/lib/connector.js +27 -3
  21. package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/index.js +10 -5
  22. package/framework/{v0.7.4 → v0.7.5}/core/connectors/mysql/index.js +10 -5
  23. package/framework/{v0.7.4 → v0.7.5}/core/connectors/postgresql/index.js +10 -5
  24. package/framework/{v0.7.4 → v0.7.5}/core/connectors/scylladb/index.js +10 -5
  25. package/framework/{v0.7.4 → v0.7.5}/core/connectors/scylladb/lib/connector.js +4 -3
  26. package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/index.js +10 -5
  27. package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/connector.js +10 -5
  28. package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/job-store.js +2 -2
  29. package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/kv-store.js +1 -1
  30. package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.js +79 -8
  31. package/framework/{v0.7.4 → v0.7.5}/core/gna.js +11 -3
  32. package/framework/{v0.7.4 → v0.7.5}/core/model/index.js +19 -12
  33. package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/src/form-validator.js +95 -8
  34. package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/src/main.js +574 -64
  35. package/framework/{v0.7.4 → v0.7.5}/core/server.isaac.js +1 -1
  36. package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/index.js +3 -1
  37. package/framework/{v0.7.4 → v0.7.5}/helpers/context.js +17 -1
  38. package/framework/{v0.7.4 → v0.7.5}/helpers/data/src/main.js +74 -4
  39. package/framework/{v0.7.4 → v0.7.5}/helpers/index.js +7 -1
  40. package/framework/v0.7.5/helpers/json/src/main.js +340 -0
  41. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/list.js +4 -2
  42. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/restart.js +2 -1
  43. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/start.js +52 -4
  44. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/status.js +2 -1
  45. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/add.js +17 -3
  46. package/framework/v0.7.5/lib/cmd/framework/inc/child-failure.js +77 -0
  47. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/init.js +31 -4
  48. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/link.js +6 -1
  49. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/start.js +6 -6
  50. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/helper.js +165 -16
  51. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/add.js +79 -27
  52. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/rename.js +1 -1
  53. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/restore.js +4 -4
  54. package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/status.js +2 -1
  55. package/framework/{v0.7.4 → v0.7.5}/lib/collection/src/main.js +59 -9
  56. package/framework/{v0.7.4 → v0.7.5}/lib/connector-config/src/main.js +52 -1
  57. package/framework/{v0.7.4 → v0.7.5}/lib/model.js +35 -11
  58. package/framework/{v0.7.4 → v0.7.5}/lib/proc.js +95 -31
  59. package/framework/{v0.7.4 → v0.7.5}/lib/routing/src/main.js +260 -54
  60. package/framework/{v0.7.4 → v0.7.5}/lib/swig-resolver/src/main.js +107 -12
  61. package/framework/{v0.7.4 → v0.7.5}/package.json +2 -2
  62. package/gna.js +4 -4
  63. package/llms.txt +35 -28
  64. package/package.json +6 -6
  65. package/schema/connectors.json +3 -3
  66. package/schema/settings.json +3 -3
  67. package/script/post_install.js +36 -9
  68. package/script/pre_install.js +9 -5
  69. package/script/smoke_in_container.js +4 -4
  70. package/types/globals.d.ts +7 -1
  71. package/types/index.d.ts +3 -3
  72. package/framework/v0.7.4/VERSION +0 -1
  73. package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -736
  74. package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
  75. package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
  76. package/framework/v0.7.4/helpers/json/src/main.js +0 -187
  77. /package/framework/{v0.7.4 → v0.7.5}/AUTHORS +0 -0
  78. /package/framework/{v0.7.4 → v0.7.5}/LICENSE +0 -0
  79. /package/framework/{v0.7.4 → v0.7.5}/core/asset/html/nolayout.html +0 -0
  80. /package/framework/{v0.7.4 → v0.7.5}/core/asset/html/static.html +0 -0
  81. /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/android-chrome-192x192.png +0 -0
  82. /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/android-chrome-512x512.png +0 -0
  83. /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/apple-touch-icon.png +0 -0
  84. /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/favicon-16x16.png +0 -0
  85. /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/favicon-32x32.png +0 -0
  86. /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/favicon.ico +0 -0
  87. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/README.md +0 -0
  88. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
  89. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
  90. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
  91. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
  92. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
  93. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
  94. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
  95. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
  96. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
  97. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
  98. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
  99. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
  100. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
  101. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
  102. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
  103. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
  104. /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
  105. /package/framework/{v0.7.4 → v0.7.5}/core/config.requirements-anchor.js +0 -0
  106. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/ai/index.js +0 -0
  107. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/ai/lib/connector.js +0 -0
  108. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/connector.js +0 -0
  109. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/n1ql.js +0 -0
  110. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/session-store.js +0 -0
  111. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
  112. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
  113. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/storage-store.js +0 -0
  114. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/connector.js +0 -0
  115. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/job-store.js +0 -0
  116. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
  117. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/session-store.js +0 -0
  118. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mysql/lib/connector.js +0 -0
  119. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/param-redact.js +0 -0
  120. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/postgresql/lib/connector.js +0 -0
  121. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/index.js +0 -0
  122. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/connector.js +0 -0
  123. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/job-store.js +0 -0
  124. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/kv-store.js +0 -0
  125. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/render-cache-store.js +0 -0
  126. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/session-store.js +0 -0
  127. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/scylladb/lib/session-store.js +0 -0
  128. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/settle-once.js +0 -0
  129. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/sql-parser.js +0 -0
  130. /package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/session-store.js +0 -0
  131. /package/framework/{v0.7.4 → v0.7.5}/core/content.encoding +0 -0
  132. /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.framework.js +0 -0
  133. /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-json.js +0 -0
  134. /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-nunjucks-async.js +0 -0
  135. /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-nunjucks.js +0 -0
  136. /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-stream.js +0 -0
  137. /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-swig-async.js +0 -0
  138. /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-swig.js +0 -0
  139. /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-v1.js +0 -0
  140. /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-xml.js +0 -0
  141. /package/framework/{v0.7.4 → v0.7.5}/core/controller/index.js +0 -0
  142. /package/framework/{v0.7.4 → v0.7.5}/core/controller/inline-script.js +0 -0
  143. /package/framework/{v0.7.4 → v0.7.5}/core/controller/inspector-window-emit.js +0 -0
  144. /package/framework/{v0.7.4 → v0.7.5}/core/controller/preload-hints.js +0 -0
  145. /package/framework/{v0.7.4 → v0.7.5}/core/controller/release-banner.js +0 -0
  146. /package/framework/{v0.7.4 → v0.7.5}/core/dev/index.js +0 -0
  147. /package/framework/{v0.7.4 → v0.7.5}/core/dev/lib/class.js +0 -0
  148. /package/framework/{v0.7.4 → v0.7.5}/core/dev/lib/factory.js +0 -0
  149. /package/framework/{v0.7.4 → v0.7.5}/core/dev/lib/tools.js +0 -0
  150. /package/framework/{v0.7.4 → v0.7.5}/core/locales/README.md +0 -0
  151. /package/framework/{v0.7.4 → v0.7.5}/core/locales/currency.json +0 -0
  152. /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/language/en.json +0 -0
  153. /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/language/fr.json +0 -0
  154. /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/region/en.json +0 -0
  155. /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/region/fr.json +0 -0
  156. /package/framework/{v0.7.4 → v0.7.5}/core/locales/index.js +0 -0
  157. /package/framework/{v0.7.4 → v0.7.5}/core/mime.types +0 -0
  158. /package/framework/{v0.7.4 → v0.7.5}/core/model/entity.js +0 -0
  159. /package/framework/{v0.7.4 → v0.7.5}/core/model/template/entityFactory.js +0 -0
  160. /package/framework/{v0.7.4 → v0.7.5}/core/model/template/index.js +0 -0
  161. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/README.md +0 -0
  162. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/index.js +0 -0
  163. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/csrf/README.md +0 -0
  164. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/csrf/package.json +0 -0
  165. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/csrf/src/main.js +0 -0
  166. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/README.md +0 -0
  167. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coep/README.md +0 -0
  168. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coep/package.json +0 -0
  169. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
  170. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coop/README.md +0 -0
  171. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coop/package.json +0 -0
  172. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
  173. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/corp/README.md +0 -0
  174. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/corp/package.json +0 -0
  175. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
  176. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/csp/README.md +0 -0
  177. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/csp/package.json +0 -0
  178. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
  179. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
  180. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
  181. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
  182. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hsts/README.md +0 -0
  183. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hsts/package.json +0 -0
  184. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
  185. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
  186. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
  187. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
  188. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/package.json +0 -0
  189. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
  190. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
  191. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
  192. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/src/main.js +0 -0
  193. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
  194. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
  195. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
  196. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
  197. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
  198. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
  199. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
  200. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
  201. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
  202. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
  203. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
  204. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
  205. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
  206. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
  207. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
  208. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
  209. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
  210. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
  211. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/session/README.md +0 -0
  212. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/session/package.json +0 -0
  213. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/session/src/main.js +0 -0
  214. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/README.md +0 -0
  215. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/build.json +0 -0
  216. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/package.json +0 -0
  217. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/src/main.js +0 -0
  218. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/README.md +0 -0
  219. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/build.json +0 -0
  220. /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/package.json +0 -0
  221. /package/framework/{v0.7.4 → v0.7.5}/core/router.js +0 -0
  222. /package/framework/{v0.7.4 → v0.7.5}/core/server.express.js +0 -0
  223. /package/framework/{v0.7.4 → v0.7.5}/core/server.isaac.rapid-reset.js +0 -0
  224. /package/framework/{v0.7.4 → v0.7.5}/core/server.js +0 -0
  225. /package/framework/{v0.7.4 → v0.7.5}/core/server.route-candidates.js +0 -0
  226. /package/framework/{v0.7.4 → v0.7.5}/core/status.codes +0 -0
  227. /package/framework/{v0.7.4 → v0.7.5}/core/template/_gitignore +0 -0
  228. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/app.json +0 -0
  229. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/connectors.json +0 -0
  230. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/routing.json +0 -0
  231. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/settings.json +0 -0
  232. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
  233. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/templates.json +0 -0
  234. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/watchers.json +0 -0
  235. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
  236. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
  237. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
  238. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/locales/en.json +0 -0
  239. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
  240. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/css/default.css +0 -0
  241. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/css/home.css +0 -0
  242. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
  243. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
  244. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
  245. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
  246. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
  247. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/readme.md +0 -0
  248. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/sw.js +0 -0
  249. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
  250. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
  251. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
  252. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
  253. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
  254. /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
  255. /package/framework/{v0.7.4 → v0.7.5}/core/template/command/gina.bat.tpl +0 -0
  256. /package/framework/{v0.7.4 → v0.7.5}/core/template/command/gina.tpl +0 -0
  257. /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/env.json +0 -0
  258. /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/manifest.json +0 -0
  259. /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/package.json +0 -0
  260. /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/settings.json +0 -0
  261. /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/statics.json +0 -0
  262. /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/templates.json +0 -0
  263. /package/framework/{v0.7.4 → v0.7.5}/core/template/error/client/json/401.json +0 -0
  264. /package/framework/{v0.7.4 → v0.7.5}/core/template/error/client/json/403.json +0 -0
  265. /package/framework/{v0.7.4 → v0.7.5}/core/template/error/client/json/404.json +0 -0
  266. /package/framework/{v0.7.4 → v0.7.5}/core/template/error/server/html/50x.html +0 -0
  267. /package/framework/{v0.7.4 → v0.7.5}/core/template/error/server/json/500.json +0 -0
  268. /package/framework/{v0.7.4 → v0.7.5}/core/template/error/server/json/503.json +0 -0
  269. /package/framework/{v0.7.4 → v0.7.5}/core/template/extensions/logger/config.json +0 -0
  270. /package/framework/{v0.7.4 → v0.7.5}/helpers/console.js +0 -0
  271. /package/framework/{v0.7.4 → v0.7.5}/helpers/data/LICENSE +0 -0
  272. /package/framework/{v0.7.4 → v0.7.5}/helpers/data/README.md +0 -0
  273. /package/framework/{v0.7.4 → v0.7.5}/helpers/data/package.json +0 -0
  274. /package/framework/{v0.7.4 → v0.7.5}/helpers/dateFormat.js +0 -0
  275. /package/framework/{v0.7.4 → v0.7.5}/helpers/json/LICENSE +0 -0
  276. /package/framework/{v0.7.4 → v0.7.5}/helpers/json/README.md +0 -0
  277. /package/framework/{v0.7.4 → v0.7.5}/helpers/json/package.json +0 -0
  278. /package/framework/{v0.7.4 → v0.7.5}/helpers/path.js +0 -0
  279. /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/README.md +0 -0
  280. /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/package.json +0 -0
  281. /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/src/api-error.js +0 -0
  282. /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/src/main.js +0 -0
  283. /package/framework/{v0.7.4 → v0.7.5}/helpers/prototypes.js +0 -0
  284. /package/framework/{v0.7.4 → v0.7.5}/helpers/task.js +0 -0
  285. /package/framework/{v0.7.4 → v0.7.5}/helpers/text.js +0 -0
  286. /package/framework/{v0.7.4 → v0.7.5}/lib/admin/package.json +0 -0
  287. /package/framework/{v0.7.4 → v0.7.5}/lib/admin/src/main.js +0 -0
  288. /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/README.md +0 -0
  289. /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/build.json +0 -0
  290. /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/package.json +0 -0
  291. /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/src/dep/jszip.min.js +0 -0
  292. /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/src/main.js +0 -0
  293. /package/framework/{v0.7.4 → v0.7.5}/lib/async/package.json +0 -0
  294. /package/framework/{v0.7.4 → v0.7.5}/lib/async/src/main.js +0 -0
  295. /package/framework/{v0.7.4 → v0.7.5}/lib/audit/package.json +0 -0
  296. /package/framework/{v0.7.4 → v0.7.5}/lib/audit/src/main.js +0 -0
  297. /package/framework/{v0.7.4 → v0.7.5}/lib/audit-store.js +0 -0
  298. /package/framework/{v0.7.4 → v0.7.5}/lib/authn/package.json +0 -0
  299. /package/framework/{v0.7.4 → v0.7.5}/lib/authn/src/lockout.js +0 -0
  300. /package/framework/{v0.7.4 → v0.7.5}/lib/authn/src/main.js +0 -0
  301. /package/framework/{v0.7.4 → v0.7.5}/lib/authn/src/totp.js +0 -0
  302. /package/framework/{v0.7.4 → v0.7.5}/lib/authz-gate/package.json +0 -0
  303. /package/framework/{v0.7.4 → v0.7.5}/lib/authz-gate/src/main.js +0 -0
  304. /package/framework/{v0.7.4 → v0.7.5}/lib/cache/README.md +0 -0
  305. /package/framework/{v0.7.4 → v0.7.5}/lib/cache/build.json +0 -0
  306. /package/framework/{v0.7.4 → v0.7.5}/lib/cache/package.json +0 -0
  307. /package/framework/{v0.7.4 → v0.7.5}/lib/cache/src/main.js +0 -0
  308. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/aliases.json +0 -0
  309. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/audit/arguments.json +0 -0
  310. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/audit/help.txt +0 -0
  311. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/audit/verify.js +0 -0
  312. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/add.js +0 -0
  313. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/arguments.json +0 -0
  314. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/build.js +0 -0
  315. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/copy.js +0 -0
  316. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/cp.js +0 -0
  317. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/help.js +0 -0
  318. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/help.txt +0 -0
  319. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/boot-lines.js +0 -0
  320. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
  321. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/name.js +0 -0
  322. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/start-status.js +0 -0
  323. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/man.js +0 -0
  324. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/mcp-start.js +0 -0
  325. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/mcp.js +0 -0
  326. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/oas.js +0 -0
  327. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/openapi.js +0 -0
  328. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/remove.js +0 -0
  329. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/rename.js +0 -0
  330. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/rm.js +0 -0
  331. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/stop.js +0 -0
  332. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/types.js +0 -0
  333. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/arguments.json +0 -0
  334. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/clear.js +0 -0
  335. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/help.txt +0 -0
  336. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/stats.js +0 -0
  337. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/add.js +0 -0
  338. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/arguments.json +0 -0
  339. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/help.js +0 -0
  340. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/help.txt +0 -0
  341. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/infer.js +0 -0
  342. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/list.js +0 -0
  343. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/migrate.js +0 -0
  344. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/models.js +0 -0
  345. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/remove.js +0 -0
  346. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/rm.js +0 -0
  347. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/test.js +0 -0
  348. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/arguments.json +0 -0
  349. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/help.js +0 -0
  350. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/help.txt +0 -0
  351. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/man.js +0 -0
  352. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/ps.js +0 -0
  353. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/stop.js +0 -0
  354. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/add.js +0 -0
  355. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/arguments.json +0 -0
  356. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/help.txt +0 -0
  357. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/args.js +0 -0
  358. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/namespace.js +0 -0
  359. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
  360. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/reference-scan.js +0 -0
  361. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/scaffold.js +0 -0
  362. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/remove.js +0 -0
  363. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/rename.js +0 -0
  364. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/rm.js +0 -0
  365. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/get.js +0 -0
  366. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/help.js +0 -0
  367. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/help.txt +0 -0
  368. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/inc/name.js +0 -0
  369. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/link-dev.js +0 -0
  370. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/list.js +0 -0
  371. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/remove.js +0 -0
  372. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/rm.js +0 -0
  373. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/set.js +0 -0
  374. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/unset.js +0 -0
  375. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/use.js +0 -0
  376. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/add.js +0 -0
  377. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/arguments.json +0 -0
  378. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/build.js +0 -0
  379. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/dot.js +0 -0
  380. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/get.js +0 -0
  381. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/help.js +0 -0
  382. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/help.txt +0 -0
  383. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/inc/listen-error.js +0 -0
  384. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/inc/ps-titles.js +0 -0
  385. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/link-node-modules.js +0 -0
  386. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/list.js +0 -0
  387. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/man.js +0 -0
  388. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/msg.json +0 -0
  389. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/open.js +0 -0
  390. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/remove.js +0 -0
  391. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/reset.js +0 -0
  392. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/restart.js +0 -0
  393. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/set.js +0 -0
  394. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/status.js +0 -0
  395. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/stop.js +0 -0
  396. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/tail.js +0 -0
  397. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/update.js +0 -0
  398. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/version.js +0 -0
  399. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/gina-dev.1.md +0 -0
  400. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/gina-framework.1.md +0 -0
  401. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/gina.1.md +0 -0
  402. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/add.js +0 -0
  403. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/arguments.json +0 -0
  404. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/export.js +0 -0
  405. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/help.js +0 -0
  406. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/help.txt +0 -0
  407. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/import.js +0 -0
  408. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/scan.js +0 -0
  409. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/_host.js +0 -0
  410. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/arguments.json +0 -0
  411. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/build.js +0 -0
  412. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/help.js +0 -0
  413. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/help.txt +0 -0
  414. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/list.js +0 -0
  415. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/man.js +0 -0
  416. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/rm.js +0 -0
  417. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/run.js +0 -0
  418. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/index.js +0 -0
  419. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/inspector/help.js +0 -0
  420. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/inspector/help.txt +0 -0
  421. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/inspector/open.js +0 -0
  422. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/man-render.js +0 -0
  423. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/arguments.json +0 -0
  424. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/help.js +0 -0
  425. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/help.txt +0 -0
  426. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/kill.js +0 -0
  427. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/list.js +0 -0
  428. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/msg.json +0 -0
  429. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/help.js +0 -0
  430. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/help.txt +0 -0
  431. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/inc/scan.js +0 -0
  432. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/list.js +0 -0
  433. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/reset.js +0 -0
  434. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/set.js +0 -0
  435. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/arguments.json +0 -0
  436. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/backup.js +0 -0
  437. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/build.js +0 -0
  438. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/help.js +0 -0
  439. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/help.txt +0 -0
  440. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/import.js +0 -0
  441. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/inc/name.js +0 -0
  442. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/list.js +0 -0
  443. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/man.js +0 -0
  444. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/move.js +0 -0
  445. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/remove.js +0 -0
  446. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/restart.js +0 -0
  447. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/rm.js +0 -0
  448. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/start.js +0 -0
  449. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/stop.js +0 -0
  450. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/arguments.json +0 -0
  451. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/help.js +0 -0
  452. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/help.txt +0 -0
  453. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/list.js +0 -0
  454. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/remove.js +0 -0
  455. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/set.js +0 -0
  456. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/add.js +0 -0
  457. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/help.js +0 -0
  458. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/help.txt +0 -0
  459. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/inc/name.js +0 -0
  460. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/link-local.js +0 -0
  461. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/link-production.js +0 -0
  462. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/list.js +0 -0
  463. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/remove.js +0 -0
  464. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/rm.js +0 -0
  465. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/use.js +0 -0
  466. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/arguments.json +0 -0
  467. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/check.js +0 -0
  468. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/help.js +0 -0
  469. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/help.txt +0 -0
  470. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/scan.js +0 -0
  471. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/help.js +0 -0
  472. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/help.txt +0 -0
  473. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/list.js +0 -0
  474. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/man.js +0 -0
  475. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/start.js +0 -0
  476. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/arguments.json +0 -0
  477. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/gc.js +0 -0
  478. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/help.txt +0 -0
  479. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/stats.js +0 -0
  480. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/verify.js +0 -0
  481. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/view/add.js +0 -0
  482. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd-status-format/package.json +0 -0
  483. /package/framework/{v0.7.4 → v0.7.5}/lib/cmd-status-format/src/main.js +0 -0
  484. /package/framework/{v0.7.4 → v0.7.5}/lib/collection/README.md +0 -0
  485. /package/framework/{v0.7.4 → v0.7.5}/lib/collection/build.json +0 -0
  486. /package/framework/{v0.7.4 → v0.7.5}/lib/collection/package.json +0 -0
  487. /package/framework/{v0.7.4 → v0.7.5}/lib/conf-view/package.json +0 -0
  488. /package/framework/{v0.7.4 → v0.7.5}/lib/conf-view/src/main.js +0 -0
  489. /package/framework/{v0.7.4 → v0.7.5}/lib/config.js +0 -0
  490. /package/framework/{v0.7.4 → v0.7.5}/lib/connector-config/package.json +0 -0
  491. /package/framework/{v0.7.4 → v0.7.5}/lib/connector-error/package.json +0 -0
  492. /package/framework/{v0.7.4 → v0.7.5}/lib/connector-error/src/main.js +0 -0
  493. /package/framework/{v0.7.4 → v0.7.5}/lib/connector-registry/package.json +0 -0
  494. /package/framework/{v0.7.4 → v0.7.5}/lib/connector-registry/src/main.js +0 -0
  495. /package/framework/{v0.7.4 → v0.7.5}/lib/cron/README.md +0 -0
  496. /package/framework/{v0.7.4 → v0.7.5}/lib/cron/package.json +0 -0
  497. /package/framework/{v0.7.4 → v0.7.5}/lib/cron/src/main.js +0 -0
  498. /package/framework/{v0.7.4 → v0.7.5}/lib/domain/LICENSE +0 -0
  499. /package/framework/{v0.7.4 → v0.7.5}/lib/domain/README.md +0 -0
  500. /package/framework/{v0.7.4 → v0.7.5}/lib/domain/package.json +0 -0
  501. /package/framework/{v0.7.4 → v0.7.5}/lib/domain/src/main.js +0 -0
  502. /package/framework/{v0.7.4 → v0.7.5}/lib/dto/package.json +0 -0
  503. /package/framework/{v0.7.4 → v0.7.5}/lib/dto/src/main.js +0 -0
  504. /package/framework/{v0.7.4 → v0.7.5}/lib/dto-pipe/package.json +0 -0
  505. /package/framework/{v0.7.4 → v0.7.5}/lib/dto-pipe/src/main.js +0 -0
  506. /package/framework/{v0.7.4 → v0.7.5}/lib/dto-types/package.json +0 -0
  507. /package/framework/{v0.7.4 → v0.7.5}/lib/dto-types/src/main.js +0 -0
  508. /package/framework/{v0.7.4 → v0.7.5}/lib/duration/package.json +0 -0
  509. /package/framework/{v0.7.4 → v0.7.5}/lib/duration/src/main.js +0 -0
  510. /package/framework/{v0.7.4 → v0.7.5}/lib/error-ref/package.json +0 -0
  511. /package/framework/{v0.7.4 → v0.7.5}/lib/error-ref/src/main.js +0 -0
  512. /package/framework/{v0.7.4 → v0.7.5}/lib/generator/index.js +0 -0
  513. /package/framework/{v0.7.4 → v0.7.5}/lib/i18n/package.json +0 -0
  514. /package/framework/{v0.7.4 → v0.7.5}/lib/i18n/src/main.js +0 -0
  515. /package/framework/{v0.7.4 → v0.7.5}/lib/idempotency/package.json +0 -0
  516. /package/framework/{v0.7.4 → v0.7.5}/lib/idempotency/src/main.js +0 -0
  517. /package/framework/{v0.7.4 → v0.7.5}/lib/image-build/package.json +0 -0
  518. /package/framework/{v0.7.4 → v0.7.5}/lib/image-build/src/main.js +0 -0
  519. /package/framework/{v0.7.4 → v0.7.5}/lib/index.js +0 -0
  520. /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/LICENSE +0 -0
  521. /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/README.md +0 -0
  522. /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/package.json +0 -0
  523. /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/src/main.js +0 -0
  524. /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-events/package.json +0 -0
  525. /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-events/src/main.js +0 -0
  526. /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-redact/package.json +0 -0
  527. /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-redact/src/main.js +0 -0
  528. /package/framework/{v0.7.4 → v0.7.5}/lib/instrument/package.json +0 -0
  529. /package/framework/{v0.7.4 → v0.7.5}/lib/instrument/src/main.js +0 -0
  530. /package/framework/{v0.7.4 → v0.7.5}/lib/job/package.json +0 -0
  531. /package/framework/{v0.7.4 → v0.7.5}/lib/job/src/main.js +0 -0
  532. /package/framework/{v0.7.4 → v0.7.5}/lib/job-store.js +0 -0
  533. /package/framework/{v0.7.4 → v0.7.5}/lib/json-config-header/package.json +0 -0
  534. /package/framework/{v0.7.4 → v0.7.5}/lib/json-config-header/src/main.js +0 -0
  535. /package/framework/{v0.7.4 → v0.7.5}/lib/kv/package.json +0 -0
  536. /package/framework/{v0.7.4 → v0.7.5}/lib/kv/src/main.js +0 -0
  537. /package/framework/{v0.7.4 → v0.7.5}/lib/kv-store.js +0 -0
  538. /package/framework/{v0.7.4 → v0.7.5}/lib/lane/package.json +0 -0
  539. /package/framework/{v0.7.4 → v0.7.5}/lib/lane/src/main.js +0 -0
  540. /package/framework/{v0.7.4 → v0.7.5}/lib/loading-state/package.json +0 -0
  541. /package/framework/{v0.7.4 → v0.7.5}/lib/loading-state/src/main.js +0 -0
  542. /package/framework/{v0.7.4 → v0.7.5}/lib/logger/README.md +0 -0
  543. /package/framework/{v0.7.4 → v0.7.5}/lib/logger/package.json +0 -0
  544. /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/default/index.js +0 -0
  545. /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/file/index.js +0 -0
  546. /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/mq/index.js +0 -0
  547. /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/mq/listener.js +0 -0
  548. /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/mq/speaker.js +0 -0
  549. /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/helper.js +0 -0
  550. /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/main.js +0 -0
  551. /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/redact.js +0 -0
  552. /package/framework/{v0.7.4 → v0.7.5}/lib/maintenance/package.json +0 -0
  553. /package/framework/{v0.7.4 → v0.7.5}/lib/maintenance/src/main.js +0 -0
  554. /package/framework/{v0.7.4 → v0.7.5}/lib/math/index.js +0 -0
  555. /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-dispatch/package.json +0 -0
  556. /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-dispatch/src/main.js +0 -0
  557. /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-http/package.json +0 -0
  558. /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-http/src/main.js +0 -0
  559. /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-server/package.json +0 -0
  560. /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-server/src/main.js +0 -0
  561. /package/framework/{v0.7.4 → v0.7.5}/lib/merge/README.md +0 -0
  562. /package/framework/{v0.7.4 → v0.7.5}/lib/merge/package.json +0 -0
  563. /package/framework/{v0.7.4 → v0.7.5}/lib/merge/src/main.js +0 -0
  564. /package/framework/{v0.7.4 → v0.7.5}/lib/message-validator/package.json +0 -0
  565. /package/framework/{v0.7.4 → v0.7.5}/lib/message-validator/src/main.js +0 -0
  566. /package/framework/{v0.7.4 → v0.7.5}/lib/metrics/package.json +0 -0
  567. /package/framework/{v0.7.4 → v0.7.5}/lib/metrics/src/main.js +0 -0
  568. /package/framework/{v0.7.4 → v0.7.5}/lib/money/package.json +0 -0
  569. /package/framework/{v0.7.4 → v0.7.5}/lib/money/src/main.js +0 -0
  570. /package/framework/{v0.7.4 → v0.7.5}/lib/multipart/package.json +0 -0
  571. /package/framework/{v0.7.4 → v0.7.5}/lib/multipart/src/main.js +0 -0
  572. /package/framework/{v0.7.4 → v0.7.5}/lib/net-locality/package.json +0 -0
  573. /package/framework/{v0.7.4 → v0.7.5}/lib/net-locality/src/main.js +0 -0
  574. /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-filters/README.md +0 -0
  575. /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-filters/package.json +0 -0
  576. /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-filters/src/main.js +0 -0
  577. /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-resolver/package.json +0 -0
  578. /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-resolver/src/main.js +0 -0
  579. /package/framework/{v0.7.4 → v0.7.5}/lib/priority/package.json +0 -0
  580. /package/framework/{v0.7.4 → v0.7.5}/lib/priority/src/main.js +0 -0
  581. /package/framework/{v0.7.4 → v0.7.5}/lib/push/package.json +0 -0
  582. /package/framework/{v0.7.4 → v0.7.5}/lib/push/src/main.js +0 -0
  583. /package/framework/{v0.7.4 → v0.7.5}/lib/rate-limit/package.json +0 -0
  584. /package/framework/{v0.7.4 → v0.7.5}/lib/rate-limit/src/main.js +0 -0
  585. /package/framework/{v0.7.4 → v0.7.5}/lib/release-watch/package.json +0 -0
  586. /package/framework/{v0.7.4 → v0.7.5}/lib/release-watch/src/main.js +0 -0
  587. /package/framework/{v0.7.4 → v0.7.5}/lib/render-cache/package.json +0 -0
  588. /package/framework/{v0.7.4 → v0.7.5}/lib/render-cache/src/main.js +0 -0
  589. /package/framework/{v0.7.4 → v0.7.5}/lib/render-cache-store.js +0 -0
  590. /package/framework/{v0.7.4 → v0.7.5}/lib/routing/README.md +0 -0
  591. /package/framework/{v0.7.4 → v0.7.5}/lib/routing/build.json +0 -0
  592. /package/framework/{v0.7.4 → v0.7.5}/lib/routing/package.json +0 -0
  593. /package/framework/{v0.7.4 → v0.7.5}/lib/routing-introspect/package.json +0 -0
  594. /package/framework/{v0.7.4 → v0.7.5}/lib/routing-introspect/src/main.js +0 -0
  595. /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/package.json +0 -0
  596. /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/backends/env.js +0 -0
  597. /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/backends/exec.js +0 -0
  598. /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/backends/file.js +0 -0
  599. /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/declaration.js +0 -0
  600. /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/env-file.js +0 -0
  601. /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/main.js +0 -0
  602. /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/sources.js +0 -0
  603. /package/framework/{v0.7.4 → v0.7.5}/lib/security-headers-emitter/package.json +0 -0
  604. /package/framework/{v0.7.4 → v0.7.5}/lib/security-headers-emitter/src/main.js +0 -0
  605. /package/framework/{v0.7.4 → v0.7.5}/lib/session-lifetime/package.json +0 -0
  606. /package/framework/{v0.7.4 → v0.7.5}/lib/session-lifetime/src/main.js +0 -0
  607. /package/framework/{v0.7.4 → v0.7.5}/lib/session-store.js +0 -0
  608. /package/framework/{v0.7.4 → v0.7.5}/lib/shell.js +0 -0
  609. /package/framework/{v0.7.4 → v0.7.5}/lib/sqlite-driver.js +0 -0
  610. /package/framework/{v0.7.4 → v0.7.5}/lib/sri/package.json +0 -0
  611. /package/framework/{v0.7.4 → v0.7.5}/lib/sri/src/main.js +0 -0
  612. /package/framework/{v0.7.4 → v0.7.5}/lib/state.js +0 -0
  613. /package/framework/{v0.7.4 → v0.7.5}/lib/storage/package.json +0 -0
  614. /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/local-cas.js +0 -0
  615. /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/local-stream.js +0 -0
  616. /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/local.js +0 -0
  617. /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/main.js +0 -0
  618. /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/meta-store.js +0 -0
  619. /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/s3.js +0 -0
  620. /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/util.js +0 -0
  621. /package/framework/{v0.7.4 → v0.7.5}/lib/storage-store.js +0 -0
  622. /package/framework/{v0.7.4 → v0.7.5}/lib/swig-filters/README.md +0 -0
  623. /package/framework/{v0.7.4 → v0.7.5}/lib/swig-filters/package.json +0 -0
  624. /package/framework/{v0.7.4 → v0.7.5}/lib/swig-filters/src/main.js +0 -0
  625. /package/framework/{v0.7.4 → v0.7.5}/lib/swig-resolver/package.json +0 -0
  626. /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/package.json +0 -0
  627. /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/src/loaders/http.js +0 -0
  628. /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/src/loaders/memory.js +0 -0
  629. /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/src/main.js +0 -0
  630. /package/framework/{v0.7.4 → v0.7.5}/lib/url/README.md +0 -0
  631. /package/framework/{v0.7.4 → v0.7.5}/lib/url/index.js +0 -0
  632. /package/framework/{v0.7.4 → v0.7.5}/lib/url/routing.json +0 -0
  633. /package/framework/{v0.7.4 → v0.7.5}/lib/uuid/package.json +0 -0
  634. /package/framework/{v0.7.4 → v0.7.5}/lib/uuid/src/main.js +0 -0
  635. /package/framework/{v0.7.4 → v0.7.5}/lib/validator.js +0 -0
  636. /package/framework/{v0.7.4 → v0.7.5}/lib/watcher/package.json +0 -0
  637. /package/framework/{v0.7.4 → v0.7.5}/lib/watcher/src/main.js +0 -0
  638. /package/framework/{v0.7.4 → v0.7.5}/lib/ws-framing/package.json +0 -0
  639. /package/framework/{v0.7.4 → v0.7.5}/lib/ws-framing/src/main.js +0 -0
  640. /package/framework/{v0.7.4 → v0.7.5}/lib/ws-query/package.json +0 -0
  641. /package/framework/{v0.7.4 → v0.7.5}/lib/ws-query/src/main.js +0 -0
  642. /package/framework/{v0.7.4 → v0.7.5}/lib/ws-session/package.json +0 -0
  643. /package/framework/{v0.7.4 → v0.7.5}/lib/ws-session/src/main.js +0 -0
@@ -459,9 +459,17 @@ function Proc(bundle, proc, usePidFile){
459
459
  }
460
460
 
461
461
  /**
462
- * Save PID file
463
- * @param {string} bundle
464
- * @param {integer} PID Id of the PID to save
462
+ * Writes the process's pid file, `<run directory>/<title without "gina: ">.pid`, then emits
463
+ * `proc#complete-<PID>` on the next tick — `(false, PID)` once the file is in place,
464
+ * `(err)` when it cannot be written — so a listener attached after the Proc constructor
465
+ * returns (`onReady()`) still receives it. Since #B857 the pid is written to a dot-named
466
+ * temporary file in the run directory and renamed into place, synchronously: a reader
467
+ * finds no file or the complete one, never an empty one, and no run-directory scan reads
468
+ * the temporary file (they skip dot entries or want a `.pid` suffix). Its inputs come from
469
+ * `self` (`bundle`, `PID`, `proc.title`, `path`), set by `register()`.
470
+ *
471
+ * @returns {void}
472
+ * @fires proc#complete-<PID>
465
473
  *
466
474
  * @private
467
475
  * */
@@ -479,25 +487,47 @@ function Proc(bundle, proc, usePidFile){
479
487
  && typeof(PID) != "undefined" && PID != '' && PID != null
480
488
  && typeof(proc) != "undefined" && proc != '' && proc != null
481
489
  ) {
490
+ // #B857 — was:
491
+ // try {
492
+ // file = proc.title.replace(/^gina\:\s+/, '');
493
+ // // if ( !/^gina-/.test(file) ) {
494
+ // // e.emit('proc#registered', file);
495
+ // // }
496
+ // file += '.pid';
497
+ //
498
+ // console.debug('[ PROC ] Now saving `'+file+'`');
499
+ // var fileStream = fs.createWriteStream(path + file);
500
+ // fileStream.once('open', function(fd) {
501
+ // //fileStream.write(bundle);
502
+ // fileStream.write(''+PID);
503
+ // fileStream.end();
504
+ // e.emit('proc#complete-'+self.PID, false, PID)
505
+ // });
506
+ // fileStream.once('error', function(err) {
507
+ // });
508
+ // } catch (err) {
509
+ // e.emit('proc#complete-'+self.PID, err)
510
+ // }
511
+ // createWriteStream() created the file EMPTY when it opened, and the pid was written
512
+ // in the 'open' callback, after the process returned to the event loop: a concurrent
513
+ // checkRunningPids() (the init chain of any other gina command) read the empty file
514
+ // and deleted it as garbage, and every other reader took the process for not running.
515
+ // An open error hit the empty 'error' handler, so the daemon's onReady() never fired.
516
+ file = proc.title.replace(/^gina\:\s+/, '') + '.pid';
517
+ var tmp = path + '.' + file + '.' + PID + '.tmp';
482
518
  try {
483
- file = proc.title.replace(/^gina\:\s+/, '');
484
- // if ( !/^gina-/.test(file) ) {
485
- // e.emit('proc#registered', file);
486
- // }
487
- file += '.pid';
488
-
489
519
  console.debug('[ PROC ] Now saving `'+file+'`');
490
- var fileStream = fs.createWriteStream(path + file);
491
- fileStream.once('open', function(fd) {
492
- //fileStream.write(bundle);
493
- fileStream.write(''+PID);
494
- fileStream.end();
520
+ fs.writeFileSync(tmp, ''+PID);
521
+ fs.renameSync(tmp, path + file);
522
+ process.nextTick(function onPidFileSaved() {
495
523
  e.emit('proc#complete-'+self.PID, false, PID)
496
524
  });
497
- fileStream.once('error', function(err) {
498
- });
499
525
  } catch (err) {
500
- e.emit('proc#complete-'+self.PID, err)
526
+ try { fs.unlinkSync(tmp) } catch (tmpErr) { /* nothing left to remove */ }
527
+ console.warn('[ PROC ] Could not write the pid file `'+ path + file +'`: '+ err.message);
528
+ process.nextTick(function onPidFileFailed() {
529
+ e.emit('proc#complete-'+self.PID, err)
530
+ });
501
531
  }
502
532
 
503
533
  } else {
@@ -612,6 +642,25 @@ function Proc(bundle, proc, usePidFile){
612
642
  }
613
643
  };
614
644
 
645
+ /**
646
+ * Registers a process: sets its title and its signal handlers (the SIGTERM drain, the
647
+ * uncaughtException guard, the exit cleanup), writes its pid file in the run directory
648
+ * when the Proc was built with `usePidFile` (the default), and records it in
649
+ * `process.list` and `process.pids` (and in `~/.gina/procs.json` for a framework daemon).
650
+ * A missing run directory is created first; since #B852 the process that creates it is
651
+ * registered like any other (it used to get no title, no handlers and no pid file). A
652
+ * process already listed under the same name and pid is removed from the list and
653
+ * dismissed instead.
654
+ *
655
+ * @param {string} bundle - The process name: `<bundle>@<project>`, or `gina-v<version>` for the daemon
656
+ * @param {number} pid - The process id
657
+ * @returns {void}
658
+ *
659
+ * @example
660
+ * // called by the constructor's init(): for a bundle this titles the process
661
+ * // `gina: web@shop` and writes `<run directory>/web@shop.pid`
662
+ * proc.register('web@shop', process.pid);
663
+ */
615
664
  self.register = function(bundle, pid) {
616
665
 
617
666
  var processCollection = new Collection(process.list);
@@ -654,14 +703,31 @@ function Proc(bundle, proc, usePidFile){
654
703
  //isBundleMounted(projects, bundlesPath, getContext('bundle'));
655
704
  };
656
705
 
657
- var isReplacementNeeded = false, path = _(pathObj.toUnixStyle(), true);
706
+ // #B852 — was:
707
+ // var isReplacementNeeded = false, path = _(pathObj.toUnixStyle(), true);
708
+ // if ( self.usePidFile && !pathObj.existsSync() ) {
709
+ // try {
710
+ // pathObj.mkdirSync();
711
+ // console.debug('[ PROC ] Path created ('+ path +')');
712
+ // isReplacementNeeded = true;
713
+ // } catch (pathErr) {
714
+ // throw pathErr
715
+ // }
716
+ // }
717
+ // and the block below ran only `if (!isReplacementNeeded)`: the process that had to
718
+ // create the run directory got no title, no signal handlers and no pid file, so
719
+ // `bundle:stop` and `bundle:status` could not find it and an uncaught EPIPE or a
720
+ // SIGTERM ended it without its drain. Nothing ever read the flag again. The directory
721
+ // is now created and the registration carries on. helpers/path.js's `mkdirSync()`
722
+ // RETURNS its error instead of throwing it (the catch above never ran): the error is
723
+ // logged here, and save() then reports the pid file it cannot write.
724
+ var path = _(pathObj.toUnixStyle(), true);
658
725
  if ( self.usePidFile && !pathObj.existsSync() ) {
659
- try {
660
- pathObj.mkdirSync();
726
+ var mkdirErr = pathObj.mkdirSync();
727
+ if ( mkdirErr instanceof Error ) {
728
+ console.debug('[ PROC ] Could not create the run directory ('+ path +'): '+ mkdirErr.message);
729
+ } else {
661
730
  console.debug('[ PROC ] Path created ('+ path +')');
662
- isReplacementNeeded = true;
663
- } catch (pathErr) {
664
- throw pathErr
665
731
  }
666
732
  }
667
733
 
@@ -678,14 +744,12 @@ function Proc(bundle, proc, usePidFile){
678
744
  // was: save(bundle, self.PID, self.proc);
679
745
  // was: }
680
746
  // was: }
681
- if (!isReplacementNeeded) {
682
- self.PID = self.proc.pid;
683
- self.path = path + pathObj.sep;
684
- setPID(bundle, self.PID, self.proc);
685
- //Add PID file.
686
- if (self.usePidFile) {
687
- save(bundle, self.PID, self.proc);
688
- }
747
+ self.PID = self.proc.pid;
748
+ self.path = path + pathObj.sep;
749
+ setPID(bundle, self.PID, self.proc);
750
+ //Add PID file.
751
+ if (self.usePidFile) {
752
+ save(bundle, self.PID, self.proc);
689
753
  }
690
754
 
691
755
  processRegistration()
@@ -684,7 +684,13 @@ function Routing() {
684
684
  // attaching routing description for this request
685
685
  //request.routing = params; // can be retried in controller with: req.routing
686
686
  // && replacing placeholders
687
- request.routing = checkRouteParams(params, request[method]);
687
+ // #B877 — the route's placeholders take the values the route MATCHED: each URL segment,
688
+ // and each query key a requirement of the rule validated (`request.params`), over the
689
+ // request data. Fed the request data alone, a query or body key named like a URL-segment
690
+ // placeholder replaced that segment in `param.file` after it had passed its requirement.
691
+ // The #B833 guard in checkRouteParams still checks every value it fills.
692
+ // was: request.routing = checkRouteParams(params, request[method]);
693
+ request.routing = checkRouteParams(params, fillValuesOf(request[method], request.params));
688
694
  foundRoute.request = request;
689
695
  }
690
696
 
@@ -699,7 +705,9 @@ function Routing() {
699
705
  *
700
706
  * Before the requirement test, writes `urlVal` in place of the `urlVar` placeholder in
701
707
  * `params.param.path`, `.namespace` and `.title`, verbatim: through a function replacer,
702
- * so `$`-patterns in the value are not expanded (#B688).
708
+ * so `$`-patterns in the value are not expanded (#B688). A `urlVal` that would escape as a
709
+ * path component (`_isUnsafePathValue`) is not written into `.path` or `.namespace`: their
710
+ * placeholder is left for checkRouteParams, whose #B833 guard rejects the value (#B883).
703
711
  *
704
712
  * @param {string} urlVar - the rule's URL segment, e.g. `:id`
705
713
  * @param {string} urlVal - the request's URL segment at the same position
@@ -747,14 +755,23 @@ function Routing() {
747
755
  // text before the placeholder, `$&` the placeholder, `$'` the text after it, `$$` a `$`):
748
756
  // a request to `/user/$%60` turned `"title": "User :id"` into `User User `. The value is
749
757
  // now written verbatim, as the URL and `param.file` already were.
758
+ // #B883 — a value that would escape as a path component (a `..` segment or a leading
759
+ // separator, `_isUnsafePathValue`) is not written into `param.path` or `param.namespace`
760
+ // here: the placeholder is left for checkRouteParams, whose #B833 guard rejects the value.
761
+ // Written here, it reached both fields unchecked, from a URL segment or from a query key
762
+ // that its requirement folds in as a segment. The value is tested before `regex.test()`:
763
+ // a passing test moves this `g` regex's `lastIndex` past the match, and a skipped rewrite
764
+ // would leave it there for the next field's test (only a replace() resets it).
750
765
  // if custom path, path rewrite
751
- if (params.param.path && regex.test(params.param.path)) {
766
+ // was: if (params.param.path && regex.test(params.param.path)) {
767
+ if (params.param.path && !_isUnsafePathValue(urlVal) && regex.test(params.param.path)) {
752
768
  // was: params.param.path = params.param.path.replace(regex, urlVal);
753
769
  params.param.path = params.param.path.replace(regex, function () { return urlVal; });
754
770
  }
755
771
 
756
772
  // if custom namespace, namespace rewrite
757
- if (params.param.namespace && regex.test(params.param.namespace)) {
773
+ // was: if (params.param.namespace && regex.test(params.param.namespace)) {
774
+ if (params.param.namespace && !_isUnsafePathValue(urlVal) && regex.test(params.param.namespace)) {
758
775
  // was: params.param.namespace = params.param.namespace.replace(regex, urlVal);
759
776
  params.param.namespace = params.param.namespace.replace(regex, function () { return urlVal; });
760
777
  }
@@ -763,13 +780,17 @@ function Routing() {
763
780
  // if (params.param.file && regex.test(params.param.file)) {
764
781
  // params.param.file = params.param.file.replace(regex, urlVal);
765
782
  // }
766
- // file is handle like url replacement (path is like pathname)
767
- if ( typeof(params.param.file) != 'undefined' && /\:/.test(params.param.file)) {
768
- var _regex = new RegExp('(:'+urlVar+'/|:'+urlVar+'$)', 'g');
769
- replacement.variable = urlVal;
770
- params.param.file = params.param.file.replace( _regex, replacement );
771
- _regex = null;
772
- }
783
+ // #B877 — `param.file` is not rewritten here: checkRouteParams fills it once the route has
784
+ // matched, from the values the route matched (see parseRouting), behind the #B833 guard.
785
+ // The block below never matched, because `urlVar` already starts with `:` and its pattern
786
+ // read `::name`; fixing that pattern instead would fill `param.file` before the guard sees
787
+ // the value.
788
+ // was: if ( typeof(params.param.file) != 'undefined' && /\:/.test(params.param.file)) {
789
+ // was: var _regex = new RegExp('(:'+urlVar+'/|:'+urlVar+'$)', 'g');
790
+ // was: replacement.variable = urlVal;
791
+ // was: params.param.file = params.param.file.replace( _regex, replacement );
792
+ // was: _regex = null;
793
+ // was: }
773
794
 
774
795
  // if custom title, title rewrite (#B688: a function replacer, as for the path above)
775
796
  if (params.param.title && regex.test(params.param.title)) {
@@ -1075,6 +1096,8 @@ function Routing() {
1075
1096
  * separator (an absolute path, which `path.resolve` honours over the root). Developer-authored
1076
1097
  * static prefixes in `param.file` (e.g. `../shared/:template`, reaching a sibling namespace
1077
1098
  * directory) are NOT request values and are never tested here — only the substituted value is.
1099
+ * fitsWithRequirements consults it too, and leaves a flagged URL value out of its early
1100
+ * `param.path` / `param.namespace` rewrite, so the value reaches the guard (#B883).
1078
1101
  *
1079
1102
  * @inner
1080
1103
  * @param {*} value - the request-supplied placeholder value
@@ -1091,6 +1114,40 @@ function Routing() {
1091
1114
  return /(^|[\/\\])\.\.([\/\\]|$)/.test(v) || /^[\/\\]/.test(v);
1092
1115
  };
1093
1116
 
1117
+ /**
1118
+ * #B877 — the values checkRouteParams fills a MATCHED route's placeholders with, on the request
1119
+ * path: the request data (`request[method]`, query and body), overlaid by the values the route
1120
+ * matched (`request.params`: each URL segment, and each query key a requirement of the rule
1121
+ * validated). A query or body key named like a URL-segment placeholder therefore no longer
1122
+ * replaces that segment, and a placeholder the URL does not carry is still filled from the
1123
+ * request data.
1124
+ *
1125
+ * Own keys only, copied as data properties (the rule of the Express adapter's query copy,
1126
+ * #B666), so a key named `__proto__` stays an ordinary property of the copy and never reaches the
1127
+ * prototype setter. An `undefined` value is skipped, so it never hides a defined one. Neither
1128
+ * argument is modified.
1129
+ *
1130
+ * @inner
1131
+ * @param {object} [data] - the request data, `request[method]`
1132
+ * @param {object} [matched] - the values the route matched, `request.params`
1133
+ * @returns {object} a new plain object
1134
+ *
1135
+ * @example
1136
+ * fillValuesOf({ name: 'other', foo: '1' }, { name: 'page' }); // { name: 'page', foo: '1' }
1137
+ * fillValuesOf({ tpl: 'home' }, { 0: '/t' }); // { tpl: 'home', 0: '/t' }
1138
+ */
1139
+ var fillValuesOf = function(data, matched) {
1140
+ var out = {}, sources = [data, matched], s = 0, k = null;
1141
+ for (; s < sources.length; ++s) {
1142
+ if ( !sources[s] || typeof(sources[s]) != 'object' ) continue;
1143
+ for (k in sources[s]) {
1144
+ if ( !hasOwn(sources[s], k) || typeof(sources[s][k]) == 'undefined' ) continue;
1145
+ Object.defineProperty(out, k, { value: sources[s][k], writable: true, enumerable: true, configurable: true });
1146
+ }
1147
+ }
1148
+ return out;
1149
+ };
1150
+
1094
1151
  /**
1095
1152
  * checkRouteParams
1096
1153
  *
@@ -1103,7 +1160,8 @@ function Routing() {
1103
1160
  * @inner
1104
1161
  * @param {object} route - the route to fill: a copy (getRoute clones the rule, the
1105
1162
  * request path clones `param` per request)
1106
- * @param {object} params - placeholder values, keyed by variable name
1163
+ * @param {object} params - placeholder values, keyed by variable name (on the request path:
1164
+ * the request data overlaid by the matched values, see fillValuesOf, #B877)
1107
1165
  * @return {object} route - updated route object
1108
1166
  *
1109
1167
  * @example
@@ -1116,9 +1174,7 @@ function Routing() {
1116
1174
  , urls = null
1117
1175
  , i = null
1118
1176
  , len = null
1119
- , rawRouteUrl = route.url
1120
1177
  , p = null
1121
- , pLen = null
1122
1178
  ;
1123
1179
 
1124
1180
  for (p in route.param) {
@@ -1186,39 +1242,97 @@ function Routing() {
1186
1242
  }
1187
1243
  }
1188
1244
 
1189
- // Selecting url in case of multiple urls & optional requirmements
1190
- if ( urls ) {
1191
- i = 0; len = urls.length;
1192
- var rawUrlVars = null
1193
- , rawUrlScore = null
1194
- , rawUrls = rawRouteUrl.split(/\,/g)
1195
- , pKey = null
1196
- , lastScore = 0
1197
- ;
1198
- route.urlIndex = 0; // by default
1199
- for (; i < len; ++i) {
1200
- rawUrlScore = 0;
1201
- rawUrlVars = rawUrls[0].match(/\:[-_a-z0-9]+/ig);
1202
- if ( !rawUrlVars ) continue;
1203
- p = 0;
1204
- pLen = rawUrlVars.length;
1205
- for (; p < pLen; p++) {
1206
- pKey = rawUrlVars[p].substring(1);
1207
- if ( typeof(params[ pKey ]) != 'undefined' && params[ pKey ] ) {
1208
- rawUrlScore++;
1209
- }
1210
- }
1211
- // We just rely in params count for now
1212
- if (rawUrlScore > lastScore) {
1213
- lastScore = rawUrlScore;
1214
- route.urlIndex = i;
1215
- }
1216
- }
1217
- }
1245
+ // #B374 — which url of a multi-url rule getRoute() composes is chosen there, on the rule's
1246
+ // own url (selectUrlIndex). The loop that chose it here read the FIRST url on every pass
1247
+ // (`rawUrls[0]`), so it always chose 0, and getRoute() let that 0 override the caller's
1248
+ // own urlIndex whenever a placeholder had been filled.
1249
+ // was: // Selecting url in case of multiple urls & optional requirmements
1250
+ // was: if ( urls ) {
1251
+ // was: i = 0; len = urls.length;
1252
+ // was: var rawUrlVars = null
1253
+ // was: , rawUrlScore = null
1254
+ // was: , rawUrls = rawRouteUrl.split(/\,/g)
1255
+ // was: , pKey = null
1256
+ // was: , lastScore = 0
1257
+ // was: ;
1258
+ // was: route.urlIndex = 0; // by default
1259
+ // was: for (; i < len; ++i) {
1260
+ // was: rawUrlScore = 0;
1261
+ // was: rawUrlVars = rawUrls[0].match(/\:[-_a-z0-9]+/ig);
1262
+ // was: if ( !rawUrlVars ) continue;
1263
+ // was: p = 0;
1264
+ // was: pLen = rawUrlVars.length;
1265
+ // was: for (; p < pLen; p++) {
1266
+ // was: pKey = rawUrlVars[p].substring(1);
1267
+ // was: if ( typeof(params[ pKey ]) != 'undefined' && params[ pKey ] ) {
1268
+ // was: rawUrlScore++;
1269
+ // was: }
1270
+ // was: }
1271
+ // was: // We just rely in params count for now
1272
+ // was: if (rawUrlScore > lastScore) {
1273
+ // was: lastScore = rawUrlScore;
1274
+ // was: route.urlIndex = i;
1275
+ // was: }
1276
+ // was: }
1277
+ // was: }
1218
1278
 
1219
1279
  return route;
1220
1280
  }
1221
1281
 
1282
+ /**
1283
+ * selectUrlIndex
1284
+ *
1285
+ * #B374 — the url of a multi-url rule that getRoute() composes when the caller names none:
1286
+ * the first url whose placeholders all receive a value, preferring among those the url that
1287
+ * uses the most values; when no url is complete, the url that receives the most values. Ties
1288
+ * go to the first url, so a rule whose urls carry the same placeholders (one url per
1289
+ * language, for instance) keeps composing its first url. A placeholder receives a value
1290
+ * when its value is not `undefined`, the test the fill itself applies (checkRouteParams
1291
+ * writes `''` and `null` too).
1292
+ *
1293
+ * @inner
1294
+ * @param {string} rawUrl - the rule's own url, its urls separated by commas, before any value
1295
+ * is filled in
1296
+ * @param {object} [params] - the values getRoute() fills in, keyed by placeholder name
1297
+ * @returns {number} index of the url to compose; `0` for a rule with a single url
1298
+ *
1299
+ * @example
1300
+ * selectUrlIndex('/logout/:timestamp,/logout', {}); // 1
1301
+ * selectUrlIndex('/logout/:timestamp,/logout', { timestamp: 9 }); // 0
1302
+ * selectUrlIndex('/s,/s/:ts', { ts: '12' }); // 1
1303
+ * selectUrlIndex('/help,/aide', {}); // 0
1304
+ */
1305
+ var selectUrlIndex = function(rawUrl, params) {
1306
+ var urls = rawUrl.split(/\,/g)
1307
+ , best = 0
1308
+ , bestDone = -1
1309
+ , bestFill = -1
1310
+ , names = null
1311
+ , fill = 0
1312
+ , done = 0
1313
+ , value = null
1314
+ , u = 0
1315
+ , n = 0
1316
+ ;
1317
+ for (; u < urls.length; ++u) {
1318
+ names = urls[u].match(/\:[-_a-z0-9]+/ig) || [];
1319
+ fill = 0;
1320
+ for (n = 0; n < names.length; ++n) {
1321
+ value = ( params ) ? params[ names[n].substring(1) ] : undefined;
1322
+ if ( typeof(value) != 'undefined' ) {
1323
+ ++fill;
1324
+ }
1325
+ }
1326
+ done = ( fill === names.length ) ? 1 : 0;
1327
+ if ( done > bestDone || ( done === bestDone && fill > bestFill ) ) {
1328
+ best = u;
1329
+ bestDone = done;
1330
+ bestFill = fill;
1331
+ }
1332
+ }
1333
+ return best;
1334
+ };
1335
+
1222
1336
  /**
1223
1337
  * #B168 — once-per-process latch for the proxied-context degrade warning in
1224
1338
  * getRoute(): the resolver sits on the per-request hot path, so the abnormal
@@ -1229,7 +1343,21 @@ function Routing() {
1229
1343
  var _proxyHostDegradeWarned = false;
1230
1344
 
1231
1345
  /**
1232
- * @function getRoute
1346
+ * Composes the url of a routing rule and returns the route object (`url`, `toUrl()`,
1347
+ * `request()`). The values in `params` fill the rule's `:placeholders`; on a GET rule, the
1348
+ * other values become query parameters.
1349
+ *
1350
+ * A rule with several urls (`"url": "/a/:id, /b/:id"`) composes one of them (#B374): the
1351
+ * one `urlIndex` names or, without `urlIndex`, the first url whose placeholders all receive
1352
+ * a value, preferring among those the url that uses the most values; when no url is
1353
+ * complete, the url that receives the most values. Ties go to the first url. A placeholder
1354
+ * receives a value when its value is not `undefined`.
1355
+ *
1356
+ * Query parameters, on a GET rule: a value whose key `param` declares, when the url composed
1357
+ * does not carry it (#B220): its placeholder, or a fixed value as written, is not in that url;
1358
+ * `requirements` does not keep such a value out. Then every other value that is neither
1359
+ * reserved, nor declared in the rule's `requirements`, nor already written into the path
1360
+ * (#B943). No value is appended twice (#B944).
1233
1361
  *
1234
1362
  * On the server, the proxied classification and proxy hostname come from the
1235
1363
  * REQUEST first (#B502): core/router.js fills `proxy` on the process.gina._reqALS
@@ -1243,11 +1371,25 @@ function Routing() {
1243
1371
  * hostname (route.isProxyHost is flipped false) instead of failing, and a
1244
1372
  * once-per-process warning is emitted.
1245
1373
  *
1374
+ * @function getRoute
1375
+ *
1246
1376
  * @param {string} rule e.g.: [ <scheme>:// ]<name>[ @<bundle> ][ /<environment> ]
1247
- * @param {object} params - substituted into the route's `:placeholders`; on a GET route, leftover keys that are neither reserved nor declared in the rule's `requirements` are appended to `route.url` as query parameters (a rule with no `requirements` block is safe — the block is optional)
1248
- * @param {number} [urlIndex] in case you have more than one url registered for the current route, you can select the one you want to use. Default is 0.
1377
+ * @param {object} [params] - values for the rule's `:placeholders`; on a GET rule, the values left over are appended to `route.url` as query parameters, as described above (a rule with no `requirements` block is safe — the block is optional)
1378
+ * @param {number|string} [urlIndex] - for a rule with several urls, the 0-based index of the url to compose; a numeric string such as `"1"` is accepted. Ignored for a rule with a single url.
1249
1379
  *
1250
1380
  * @returns {object} route
1381
+ *
1382
+ * @throws {Error} when the rule is not found, or when `urlIndex` names no url of a rule with several urls
1383
+ *
1384
+ * @example
1385
+ * // "logout": { "url": "/logout/:timestamp, /logout", "param": { "control": "logout", "timestamp": ":timestamp" } }
1386
+ * routing.getRoute('logout@auth').url; // '/logout'
1387
+ * routing.getRoute('logout@auth', { timestamp: '9' }).url; // '/logout/9'
1388
+ * routing.getRoute('logout@auth', { timestamp: '9' }, 1).url; // '/logout?timestamp=9'
1389
+ *
1390
+ * @example
1391
+ * // "invoice": { "url": "/invoice/:id", "param": { "control": "get", "id": ":id" } }
1392
+ * routing.getRoute('invoice@frontend', { id: 'abc-123', tab: '2' }).url; // '/invoice/abc-123?tab=2'
1251
1393
  * */
1252
1394
  self.getRoute = function(rule, params, urlIndex) {
1253
1395
 
@@ -1390,12 +1532,50 @@ function Routing() {
1390
1532
  }
1391
1533
 
1392
1534
  if ( /\,/.test(route.url) ) {
1393
- if ( typeof(route.urlIndex) != 'undefined' ) {
1394
- urlIndex = route.urlIndex; // set by checkRouteParams(route, params)
1395
- delete route.urlIndex;
1535
+ // #B374, #B946 — the url to compose is chosen on the rule's own url, before any value
1536
+ // is filled in: a filled url can carry a comma inside a value, which the split used to
1537
+ // read as a url boundary (`{ x: 'a,b' }` on `/o/:x` composed `/o/a`). The caller's
1538
+ // urlIndex wins; it used to be overridden by the 0 the fill always chose. An index that
1539
+ // names no url throws instead of composing `undefined`. Without one, selectUrlIndex()
1540
+ // chooses. Only the url chosen is filled, by the same checkRouteParams().
1541
+ // was: if ( typeof(route.urlIndex) != 'undefined' ) {
1542
+ // was: urlIndex = route.urlIndex; // set by checkRouteParams(route, params)
1543
+ // was: delete route.urlIndex;
1544
+ // was: }
1545
+ // was: urlIndex = ( typeof(urlIndex) != 'undefined' ) ? urlIndex : 0;
1546
+ // was: route.url = route.url.split(/,/g)[urlIndex];
1547
+ var _ruleUrls = routing[rule].url.split(/\,/g);
1548
+ if ( _ruleUrls.length > 1 ) {
1549
+ if ( typeof(urlIndex) != 'undefined' && urlIndex !== null ) {
1550
+ var _index = ( typeof(urlIndex) == 'string' && /^\d+$/.test(urlIndex) ) ? parseInt(urlIndex, 10) : urlIndex;
1551
+ if ( typeof(_index) != 'number' || _index % 1 !== 0 || _index < 0 || _index >= _ruleUrls.length ) {
1552
+ throw new Error('[ RoutingHelper::getRoute(rule, params, urlIndex) ] : urlIndex `'+ urlIndex +'` names no url of rule `'+ rule +'`, which has '+ _ruleUrls.length +' urls');
1553
+ }
1554
+ urlIndex = _index;
1555
+ } else {
1556
+ urlIndex = selectUrlIndex(routing[rule].url, params);
1557
+ }
1558
+ // #B947 — the placeholder bindings only (`"id": ":id"`), read on the rule's own param:
1559
+ // the first checkRouteParams() call above wrote the values into `path`, `title`,
1560
+ // `namespace` and `file`, so a placeholder bound under one of those keys
1561
+ // (`"file": ":file"`) no longer read as a binding on the route and stayed in the url.
1562
+ // Only `.url` is kept from this second fill.
1563
+ // was: var _bindings = {};
1564
+ // was: for (var _key in route.param) {
1565
+ // was: if ( typeof(route.param[_key]) == 'string' && /^:/.test(route.param[_key]) ) {
1566
+ // was: _bindings[_key] = route.param[_key];
1567
+ // was: }
1568
+ // was: }
1569
+ var _bindings = {}, _ruleParam = routing[rule].param || {};
1570
+ for (var _key in _ruleParam) {
1571
+ if ( typeof(_ruleParam[_key]) == 'string' && /^:/.test(_ruleParam[_key]) ) {
1572
+ _bindings[_key] = _ruleParam[_key];
1573
+ }
1574
+ }
1575
+ route.url = checkRouteParams({ url: _ruleUrls[urlIndex], param: _bindings }, params).url;
1576
+ // read by the query append below, which needs the url actually composed; removed there
1577
+ route.urlIndex = urlIndex;
1396
1578
  }
1397
- urlIndex = ( typeof(urlIndex) != 'undefined' ) ? urlIndex : 0;
1398
- route.url = route.url.split(/,/g)[urlIndex];
1399
1579
  }
1400
1580
  // fix url in case of empty param value allowed by the routing rule
1401
1581
  // to prevent having a folder.
@@ -1406,17 +1586,33 @@ function Routing() {
1406
1586
  // Completeting url with extra params e.g.: ?param1=val1&param2=val2
1407
1587
  if ( /GET/i.test(route.method) && typeof(params) != 'undefined' ) {
1408
1588
  var queryParams = '?'
1409
- , maskedUrl = routing[rule].url
1589
+ // #B220 — the url actually composed (the one chosen above), not every url of the
1590
+ // rule joined: a value whose placeholder sits only in another url of the rule was
1591
+ // skipped here and, when declared in `requirements`, dropped by the loop below.
1592
+ // was: , maskedUrl = routing[rule].url
1593
+ , maskedUrl = routing[rule].url.split(/\,/g)[ route.urlIndex || 0 ] || routing[rule].url
1410
1594
  ;
1411
1595
 
1412
1596
  // in route.rule params
1413
1597
  var extracted = [], i = 0;
1414
1598
  for (let r in route.param) {
1415
- if ( self.reservedParams.indexOf(r) > -1 || new RegExp(route.param[r]).test(maskedUrl) )
1599
+ // #B220 — a placeholder is in the url only where the fill writes it: `:name` followed
1600
+ // by `/` or the end (checkRouteParams), so `:key` no longer matches inside `:keyXyz`.
1601
+ // was: if ( self.reservedParams.indexOf(r) > -1 || new RegExp(route.param[r]).test(maskedUrl) )
1602
+ if (
1603
+ self.reservedParams.indexOf(r) > -1
1604
+ || (
1605
+ ( /^:/.test(route.param[r]) )
1606
+ ? new RegExp('('+ route.param[r] +'/|'+ route.param[r] +'$)').test(maskedUrl)
1607
+ : new RegExp(route.param[r]).test(maskedUrl)
1608
+ )
1609
+ )
1416
1610
  continue;
1417
1611
  if (typeof(params[r]) != 'undefined' ) {
1418
1612
  queryParams += r +'='+ encodeRFC5987ValueChars(params[r])+ '&';
1419
- extracted[i] = params[r];
1613
+ // #B944 — the loop below tests KEYS: record the key, not its value
1614
+ // was: extracted[i] = params[r];
1615
+ extracted[i] = r;
1420
1616
  ++i;
1421
1617
  }
1422
1618
  }
@@ -1430,6 +1626,14 @@ function Routing() {
1430
1626
  // on such a GET route appends the query params instead of throwing
1431
1627
  || ( route.requirements && typeof(route.requirements[p]) != 'undefined' )
1432
1628
  || extracted.indexOf(p) > -1
1629
+ // #B943 — a key bound to a placeholder of the url composed (`"id": ":id"`) is in
1630
+ // the path already; an unbound one keeps travelling as a query parameter
1631
+ || (
1632
+ route.param
1633
+ && typeof(route.param[p]) == 'string'
1634
+ && /^:/.test(route.param[p])
1635
+ && new RegExp('('+ route.param[p] +'/|'+ route.param[p] +'$)').test(maskedUrl)
1636
+ )
1433
1637
  ) {
1434
1638
  continue;
1435
1639
  }
@@ -1450,6 +1654,8 @@ function Routing() {
1450
1654
  }
1451
1655
  queryParams = null;
1452
1656
  }
1657
+ // #B374 — the index handed over by the url choice above is not part of the route returned
1658
+ delete route.urlIndex;
1453
1659
 
1454
1660
  // recommanded for x-bundle coms
1455
1661
  // leave `ignoreWebRoot` empty or set it to false for x-bundle coms